Skip to content

A CLI Application to detect plagiarism in Source Code Files.

Notifications You must be signed in to change notification settings

raghav1701/plagiarism-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plag

Description

A CLI Application to detect plagiarism in Source Code Files.

Features

  • Compare source code files for plagiarism.
  • Extract code features from a file.
  • Language support for C++ and Java.
  • Cross-platform compatibilty.
  • User customizability.

Technologies / Libraries Used

Prerequisites

  • Python (version >= 3.0)(Recommended = 3.6)

Installation

  • Clone this repository.
  • Change the current directory to the repository
    cd <path_to_repository>
    
  • Install the python package
    python setup.py install
    

Usage

  • 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

Common Issues

  • In case of permission errors, try running the application as administrator.

Releases

No releases published

Packages

No packages published

Languages