-
Notifications
You must be signed in to change notification settings - Fork 65
[cocom] Add repository level analysis via lizard #39
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
[cocom] Add repository level analysis via lizard #39
Conversation
d341d05
to
3f8a84d
Compare
@valeriocos after considering only the
Also, please let me know what you think of the changes. Thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, I left a comment about the use of the library typing
.
3f8a84d
to
e859c4f
Compare
@valeriocos I had a question. Let me know what you think :) |
Good point @inishchith. Yes, please try to integrate it cloc info, thanks! |
e859c4f
to
0a05bb6
Compare
@valeriocos Thanks. Done!. |
@valeriocos Addition of Evaluation:
I can think of two ways now:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please @inishchith squash the commits and improve the commit message and description.
Thanks
+1! thanks! |
2891e0a
to
6a59a9b
Compare
@valeriocos Thanks for the review. Thanks! |
'ccn': analysis.CCN, | ||
'tokens': analysis.token_count, | ||
'num_funs': len(analysis.function_list), | ||
'file_path': analysis.filename, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The local repository path should be stripped out, for instance with:
'file_path': analysis.filename.replace(repository_path, '')
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It should be!
I'll update the PR with the change
We could add to this PR the code to identify files modified in a commit when executing the analysis at repo-level, what do you think? The change should be so big, it would be just a matter of passing the commit (or the list of files in the commit), and then mark the files in the result of the analysis. See an attempt below:
|
@valeriocos The changes look good to me and hopefully we can use this information to provide some insights at file-level as mentioned at inishchith/gsoc#11 (comment) I shall update the PR now. Thanks! |
6a59a9b
to
b38400e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @inishchith for the PR. I left a minor comment about a docstring, once fixed the PR can be merged
Add repository level analysis by adding a new category of analyzer(RepositoryAnalyzer) which executes lizard at repository level for cocom backend. Add and alter tests for corresponding changes. Signed-off-by: inishchith <inishchith@gmail.com>
b38400e
to
26921fe
Compare
A repository level analysis implementation for CoCom Backend via Lizard.
This implementation doesn't harm the
incremental fetches
(which was one of the issues with implementation proposed in #38)Evaluation:
@valeriocos Please do have a look when you get time. Thanks :)
WIP
Closes #36
Signed-off-by: inishchith inishchith@gmail.com