|
Arkanjo 0.1
A tool for find code duplicated functions in codebases
|
Directory dependency graph for file_parser:Files | |
| filter.cpp | |
| parser.cpp | |
This tool uses as a subrotine the tool from Duplicate Code Detection Tool as a subrotine to compare functions
The tool was created with the desire to facilitate code duplication detection and at the moment the tool it has the following functionalities:
The concept of similarity is a black-box concept given by the Duplicate Code Detection Tool with the help of Machine Learning.
Similarity of two objects is a number between on 0 and 100. Higher the number, higher the similarity between the objects.
It is required access to internet to download the subrotine tool.
It is required the g++. The standard C++ compiler in the GNU/Linux environment
Execute the setup.sh script and follow the steps:
After you done the setup, you can request comparations about the folder you given to the tool while you run the setup script.
It is not stored setup's. So if you want to check another code base you will lose the setup of a previous one.
If you has done the standard setup. This is the following command you can execute with the tool:
The output of the all command start with a number n, the number of comparations made by the tool.
The following n lines of the output has two strings s,t and a decimal number SIMILARITY, a pair of files compared and the similarity between them.
The list of comparations of the output is sorted by similarity in decending order.
To execute the similar_from_all, save the output of an all command on a temporary file and pass the name of the file to the command.