Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCC in CCM is not correctly computed #449

Closed
victornoel opened this issue Apr 16, 2020 · 38 comments
Closed

NCC in CCM is not correctly computed #449

victornoel opened this issue Apr 16, 2020 · 38 comments
Labels

Comments

@victornoel
Copy link
Contributor

victornoel commented Apr 16, 2020

While investigating #447, I noticed a potential error in the xsl file, but I'm not 100% sure it is an error or not because I'm not very good with xsl.

Actually this error has no impact to solve #447 because the number it find is the correct one even though the calculation is wrong. There was another error somewhere else.

Basically, NCC is meant to be the number of connected components (of the graph where methods are the nodes and are connected according to some criteria). See for example https://www.geeksforgeeks.org/connected-components-in-an-undirected-graph/ to understand how to count them. It is not the number of nodes.

NCC is the xsl is defined like this, and it seems to count the number of nodes:

<xsl:variable name="ncc" select="count(distinct-values($edges/edge/method/text()))"/>

Furthermore it counts them incorrectly because the name of the method is used and some methods have the same name in some of the test classes... I will create another issue for that problem because it pertains to other metrics I think. actually it doesn't seem to be the case.

@0crat
Copy link
Collaborator

0crat commented Apr 16, 2020

@paulodamaso/z please, pay attention to this issue

This was referenced Apr 16, 2020
Merged
@paulodamaso
Copy link
Collaborator

@victornoel Could you please fix the title? It is just related to NCC right?

@victornoel victornoel changed the title NCC is CCM is not correctly computed NCC in CCM is not correctly computed Apr 20, 2020
@victornoel
Copy link
Contributor Author

@paulodamaso yes sorry, it was in not is :)

@paulodamaso
Copy link
Collaborator

@victornoel Thank you!

@paulodamaso
Copy link
Collaborator

@0crat in

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2020

@0crat in (here)

@paulodamaso Election failed: performer was not elected (see footprint for details)

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2020

@0crat in (here)

@paulodamaso Election failed: performer was not elected (see footprint for details)

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2020

@0crat in (here)

@paulodamaso Election failed: performer was not elected (see footprint for details)

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2020

@0crat in (here)

@paulodamaso Election failed: performer was not elected (see footprint for details)

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2020

@0crat in (here)

@paulodamaso Election failed: performer was not elected (see footprint for details)

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2020

The job #449 assigned to @HDouss/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@HDouss
Copy link
Contributor

HDouss commented Apr 20, 2020

@victornoel it is actually calculating the number of nodes having an edge. And yes, it is completely erroneous.

@HDouss
Copy link
Contributor

HDouss commented Apr 20, 2020

@0crat refuse will have to wait too much for #437 and its puzzles..

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2020

@0crat refuse will have to wait too much for #437 and its puzzles.. (here)

@HDouss The user @HDouss/z resigned from #449, please stop working. Reason for job resignation: Order was cancelled

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2020

@0crat refuse will have to wait too much for #437 and its puzzles.. (here)

@HDouss Job refused in 0 hours - no penalty, see §6

@0crat
Copy link
Collaborator

0crat commented Apr 23, 2020

The job #449 assigned to @dfrau32/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@0crat
Copy link
Collaborator

0crat commented Apr 28, 2020

@dfrau32/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@0crat
Copy link
Collaborator

0crat commented May 4, 2020

The user @dfrau32/z resigned from #449, please stop working. Reason for job resignation: It is older than 10 days, see §8

@0crat
Copy link
Collaborator

0crat commented May 7, 2020

The job #449 assigned to @vzurauskas/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@vzurauskas
Copy link
Contributor

@paulodamaso If I understand correctly, the Graph interface was created in order to do calculations like the one required here because graphs are better handled in Java than XSL, correct? If so, would it make sense to rewrite CCM metric in Java instead of fixing this calculation in the XSL?

@vzurauskas
Copy link
Contributor

@0crat wait for clarification.

@0crat 0crat added the waiting label May 8, 2020
@paulodamaso
Copy link
Collaborator

@vzurauskas Yes, it makes sense, let's use java to make these calculations that need graphs

vzurauskas added a commit to vzurauskas/jpeek that referenced this issue May 9, 2020
vzurauskas added a commit to vzurauskas/jpeek that referenced this issue May 15, 2020
vzurauskas added a commit to vzurauskas/jpeek that referenced this issue May 15, 2020
vzurauskas added a commit to vzurauskas/jpeek that referenced this issue May 22, 2020
@vzurauskas
Copy link
Contributor

@victornoel #477 was merged and todos created, can this be closed now?

@victornoel
Copy link
Contributor Author

@vzurauskas thx!

@0crat
Copy link
Collaborator

0crat commented Jun 4, 2020

@vzurauskas/z resigned from #449, since the job is not in scope anymore

@vzurauskas
Copy link
Contributor

@paulodamaso Zerocrat resigned me, but should have asked for quality review and paid me after that.

@paulodamaso
Copy link
Collaborator

@0crat status

@0crat
Copy link
Collaborator

0crat commented Jun 9, 2020

@0crat status (here)

@paulodamaso This is what I know about this job in C7JGJ00DP, as in §32:

@paulodamaso
Copy link
Collaborator

@0crat in

@0crat 0crat added scope and removed scope labels Jun 9, 2020
@vzurauskas
Copy link
Contributor

@0crat status

@0crat
Copy link
Collaborator

0crat commented Jun 11, 2020

@0crat status (here)

@vzurauskas This is what I know about this job in C7JGJ00DP, as in §32:

@vzurauskas
Copy link
Contributor

@paulodamaso The ticket is still stuck.

@vzurauskas
Copy link
Contributor

@paulodamaso ping

@0pdd
Copy link
Collaborator

0pdd commented Jun 29, 2020

@victornoel 2 puzzles #481, #482 are still not solved.

@vzurauskas
Copy link
Contributor

@paulodamaso ping

@paulodamaso
Copy link
Collaborator

@0crat quality good

@0crat
Copy link
Collaborator

0crat commented Jul 26, 2020

@0crat quality good (here)

@paulodamaso There is no quality review for #449, no performer

@0pdd
Copy link
Collaborator

0pdd commented Feb 5, 2021

@victornoel 2 puzzles #511, #512 are still not solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants