A tool for detecting plagiarism in student programming assignments.
This is a normal sbt project. You can compile code with sbt compile, run it with sbt run, and sbt console will start a Scala 3 REPL.
For more information on the sbt-dotty plugin, see the scala3-example-project.
To begin, go to File -> New and select the folder containing the student submissions. Click "start" to generate a plagiarism report, which displays the similarity of each pair of programs.
To compare two programs, select one from the left table and another from the right table. This will open the Code Comparison view.
The Code Comparison view highlights the similarities between the two selected programs. Click on a highlighted code fragment in the first program to see the corresponding fragment in the second program.
The plagiarism detection process works by tokenizing the source code (i.e., converting it into a sequence of tokens) and identifying the longest common matches between two submissions. Similarity is calculated by dividing the total length of the matched code segments by the combined length of both programs.

