A CLI Application to detect plagiarism in Source Code Files.
- Compare source code files for plagiarism.
- Extract code features from a file.
- Language support for C++ and Java.
- Cross-platform compatibilty.
- User customizability.
- Python (version >= 3.0)(Recommended = 3.6)
- Clone this repository.
- Change the current directory to the repository
cd <path_to_repository>
- Install the python package
python setup.py install
- Check the version of Plag.
plag --version
- Comparing Source Code Files for similarity.
plag compare ../data/file1.cpp ../data --filetype cpp
- Extracting features of a Source Code file.
plag extract ../data/file1.cpp
- Show current preferences
plag preference show
- Set a preference.
plag preference set filetype py
- Reset all preferences
plag preference reset
NOTE : The preferences currently supported are
- filetype
- threshold
- result_path
- comment_weight
- In case of permission errors, try running the application as administrator.