Click here to view the Full Project Report (PDF)
BRIEF OVERVIEW
Algorithm
System Architecture
Numerical Results
To run this project, ensure Java Development Kit (JDK) or OpenJDK is installed
To Run Using CMD Line
To run, execute the following commands in the root folder (PlagiarismTool/):
- Compile Java source files:
javac src/PlagiarismTool.java - Run application:
java -cp . src.PlagiarismTool testTo run, execute the following commands in the root folder (PlagiarismTool/):
- Compile grammar file using:
java -jar lib/antlr-4.13.2-complete.jar srcANTLR/PlagiarismTool.g4- Compile Java source files generated by ANTLR:
javac -cp "lib/antlr-4.13.2-complete.jar" -d bin srcANTLR/PlagiarismToolBaseListener.java srcANTLR/PlagiarismToolLexer.java srcANTLR/PlagiarismToolListener.java srcANTLR/PlagiarismToolParser.java srcANTLR/PlagiarismToolANTLR.java- Run Application:
Windows:
for processing 2 particular files in the test folder:
java -cp "bin;lib/antlr-4.13.2-complete.jar" PlagiarismToolANTLR testfor processing all files in the data folder:
java -cp "bin;lib/antlr-4.13.2-complete.jar" PlagiarismToolANTLR dataLinux:
for processing 2 particular files in the test folder:
java -cp "bin:lib/antlr-4.13.2-complete.jar" PlagiarismToolANTLR testfor processing all files in the data folder:
java -cp "bin:lib/antlr-4.13.2-complete.jar" PlagiarismToolANTLR datafor processing 2 particular files in the test folder:
node srcTreesitter/tree-sitter.js testfor processing all files in the data folder:
node srcTreesitter/tree-sitter.js dataTo Run Web Application (Windows)
- Clone repo
git clone https://github.com/SFU-CMPT-473-2024-FALL/PlagiarismTool.git- Navigate to Application
cd PlagiarismTool- Install Dependencies
npm install --force- Run server.js
node server.js- Navigate to localhost:3000
Note: If graph fails to load, try testing two files at a time.