yegor256 / cam

Classes and Metriсs (CaM): a dataset of Java classes from public open-source GitHub repositories
http://cam.yegor256.com
MIT License
23 stars 32 forks source link

Added NOMR metric to ast.py #317

Closed zaqbez39me closed 3 months ago

zaqbez39me commented 3 months ago

Added new metric - count of number methods with @Override divided by total number of methods. Here it is namedNumber of Overriding Methods Ratio (NOMR)

Blocked by #316 Closes #192

zaqbez39me commented 3 months ago

@yegor256 please, check this out after #316

yegor256 commented 3 months ago

@zaqbez39me what about a unit test? how do we know that this code works as expected?

zaqbez39me commented 3 months ago

@yegor256 tests are implemented in #316

yegor256 commented 3 months ago

@zaqbez39me I think, you should also remove the shellcheck disable=SC2317 line

zaqbez39me commented 3 months ago

@yegor256 oops, sorry, forgot to add this change to staged

zaqbez39me commented 3 months ago

@yegor256 check it. Fixed all the issues and enabled tests

yegor256 commented 3 months ago

@rultor merge

rultor commented 3 months ago

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

rultor commented 3 months ago

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 20min)

yegor256 commented 3 months ago

@zaqbez39me thanks!