{"id":20801863,"url":"https://github.com/philips-software/eaglevision","last_synced_at":"2026-02-06T22:02:07.135Z","repository":{"id":57424931,"uuid":"288707212","full_name":"philips-software/EagleVision","owner":"philips-software","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-28T03:44:58.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T13:05:47.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philips-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-19T10:55:42.000Z","updated_at":"2024-11-28T03:45:02.000Z","dependencies_parsed_at":"2025-01-18T12:39:16.248Z","dependency_job_id":null,"html_url":"https://github.com/philips-software/EagleVision","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"a218cd3e203034fb42681c4ecb4e3c2b54ed7174"},"previous_names":["philips-internal/eaglevision"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2FEagleVision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2FEagleVision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2FEagleVision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2FEagleVision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philips-software","download_url":"https://codeload.github.com/philips-software/EagleVision/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107620,"owners_count":21048967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T18:24:51.040Z","updated_at":"2026-02-06T22:02:07.128Z","avatar_url":"https://github.com/philips-software.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EagleVision\n\n## Why use this tool\n\nThis tool will help in uncovering the details in a code repository.\nFor example,\n\n- Patterns in the code\n\n- Type of asserts used in the test functions\n\n- Test functions with no assert / pattern analysed\n\n- Similarity in the source code/ test code functions\n\nNote: Similarity analysis uses cosine algorithm, if the repo path given for\nroot and repo size is relatively large, re consider to give sub-folders,\nSimilarity analysis bound to take long time, since the computation is in memory\nif not provided with adequate size expect potential memory overflow\n\n- Cyclomatic complexity of functions\n\n- Repository statistics like, Type of file, LOC, Comments, Code etc.\n\n## Dependencies\n\n- python 3.8 : 64 bit  \n\n- python packages (functiondefextractor, similarity-processor, lizard)  \n\n- cloc package `npm i -g cloc@2.6.0` `https://www.npmjs.com/package/cloc`\n  Note: cloc has a dependency for pearl,\n        if not installed please install pearl from `https://www.perl.org/`\n  \n- third party packages [Ctags, grep]\n\n## Installation\n  \n[INSTALL.md](INSTALL.md)\n\n## Usage\n\n### Commandline\n\n```sh\n\u003e\u003e\u003epython -m eaglevision --p \"path\\to\\input\\json\"\n```\n\n- sample json input,  \n\n```sh\n[\n  {\n    \"path\": \"repo/path\",\n    \"run_pattern_match\":true,\n    \"run_similarity\":true,\n    \"extraction_annotation\": null,\n    \"extraction_delta\": null,\n    \"extraction_exclude\": \"*/test_resource/*\",\n    \"pattern_match\": [\"assert\"],\n    \"pattern_seperator\": [\"(\"],\n    \"similarity_range\": \"70,100\",\n    \"run_cloc_metric\":true,\n    \"cloc_args\": \"--exclude-dir=src --exclude-ext=*.cpp,*.java\",\n    \"run_cyclomatic_complexity\":true,\n    \"cyclo_args\": \"-l java  -l python\",\n    \"cyclo_exclude\": [\"*.cpp\",\"*.java\"],\n    \"report_folder\": null\n  }\n]\n```\n\n- Input Description,  \n\n```sh\n    \"path\": Path of the repository to be analysed\n    \"run_pattern_match\": On/OFF switch for running Pattern match\n    \"run_similarity\": On/OFF switch for running Similarity check\n    \"extraction_annotation\": Functions with this annotation will be\n                             extracted else all functions\n    \"extraction_delta\": If substring of annotation is given,\n                        this input (integer value) will take number of\n                        lines above and below the annotation to report,\n    \"extraction_exclude\": Pattern to exclude for Similarity and Pattern check\n    \"pattern_match\": Type of pattern to analyse in the source code\n    \"pattern_seperator\": Seperator in the pattern, left side of which will\n                         be used for pivot reporting\n    \"similarity_range\": Range of similarity of interest example: \"70,100\",\n    \"run_cloc_metric\": On/OFF switch for running Cloc / types of\n                      files/number etc in the repo\n    \"cloc_args\": Any additional args for Cloc tool\n                 example:\"--exclude-dir=src --exclude-ext=*.cpp,*.java\",\n    \"run_cyclomatic_complexity\":On/OFF switch for running cyclomatic complexity check,\n    \"cyclo_args\": Any additional args for Lizard / cyclomatic complexity tool\n                 example:\"-l java  -l python\"\n    \"cyclo_exclude\": Pattern to exclude for cyclomatic complexity check\n                     example: [\"*.cpp\",\"*.java\"]\n    \"report_folder\": Path where report to be placed, if null will be using the path of repo\n\n```\n\nNote:\n\nAll the inputs are taken from the json file\n\n1. Do not forget to have the json as list `[...]`\n\n2. Make sure `pattern_match` and `pattern_seperator` is of same length list\n if you are not interested in any `pattern_seperator` for s specific\n `pattern_match` , mark it `null` in `pattern_seperator`\n\n3. Make sure mark it `null` if a string or list parameter is not used\n\n4. Make sure mark it `true/false` for bool type\n\n```sh\nrefer https://www.npmjs.com/package/cloc for cloc args\nrefer https://pypi.org/project/lizard/ for cyclo args\nrefer https://pypi.org/project/functiondefextractor/ for extraction_exclude\nrefer https://pypi.org/project/similarity-processor/ for similarity\n```\n\n### Output\n  \n- Output will be available in same folder as `path` given in json under  `EagleVisionReport`\n\n## Contact\n\n[MAINTAINERS.md](MAINTAINERS.md)  \n\n## License\n\n[License.md](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Feaglevision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilips-software%2Feaglevision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Feaglevision/lists"}