cholakov11 / JPlag

Detecting Software Plagiarism and Collusion
GNU General Public License v3.0
0 stars 1 forks source link

1. How to use #2

Open cholakov11 opened 2 years ago

cholakov11 commented 2 years ago

Reporting using the API

Reporting in JPlag can be used to create report files from a JPlagResult, which can then be easily saved, transferred or supplied to an application for displaying. Currently JPlag support reporting in JSON format. Further formats can be specified. Reporting can be done through the Report interface. It provides two functions - getReportStrings and saveReport.

Example:

Report report = new JsonReport();

// Returns JSON strings in a list
List<String> jsonStrings = report.getReporStrings(jplagResult);

// Saves JSON strings of the report in the specified folder
report.saveReport(jPlagResult, "./path/to/destination/folder");

Running the Report Viewer

The JPlag Report Viewer is a Vue 3 + Typescript standalone application which can be used to display the JSON files generated by the JPlag reporting. The application requires Node.js and npm to be installed on the system.

After the application has been started the user can select files to display in the following ways:

Start page of the application fileupload

sebinside commented 2 years ago

Here is some feedback: