|
|
@@ -39,23 +39,27 @@ JPlag can either be used via the CLI or directly via its Java API. For more info
|
|
|
```
|
|
|
JPlag - Detecting Software Plagiarism
|
|
|
|
|
|
-Usage: JPlag [ options ] [<root-dir> ...]
|
|
|
- <root-dir> Root-directory that contains submissions
|
|
|
+Usage: JPlag [ options ] [ <root-dir> ... ] [ -new <new-dir> ... ] [ -old <old-dir> ... ]
|
|
|
+ <root-dir> Root-directory with submissions to check for plagiarism
|
|
|
+ <new-dir> Root-directory with submissions to check for plagiarism
|
|
|
+ <old-dir> Root-directory with prior submissions to compare against
|
|
|
|
|
|
named arguments:
|
|
|
- -h, --help show this help message and exit
|
|
|
- -l {java,python3,cpp,csharp,char,text,scheme} Select the language to parse the submissions (default: java)
|
|
|
- -bc BC Path of the directory containing the base code (common framework used in all submissions)
|
|
|
- -v {quiet,long} Verbosity of the logging (default: quiet)
|
|
|
- -d Debug parser. Non-parsable files will be stored (default false)
|
|
|
- -S S Look in directories <root-dir>/*/<dir> for programs
|
|
|
- -p P comma-separated list of all filename suffixes that are included
|
|
|
- -x X All files named in this file will be ignored in the comparison (line-separated list)
|
|
|
- -t T Tunes the comparison sensitivity by adjusting the minimum token required to be counted as a matching section. A smaller <n> increases the sensitivity but might lead to more false-positives
|
|
|
- -m M Comparison similarity threshold [0-100]: All comparisons above this threshold will be saved (default: 0.0)
|
|
|
- -n N The maximum number of comparisons that will be shown in the generated report, if set to -1 all comparisons will be shown (default: 30)
|
|
|
- -r R Name of the directory in which the comparison results will be stored (default: result)
|
|
|
- -c {normal,parallel} Comparison mode used to compare the programs (default: normal)
|
|
|
+ -h, --help show this help message and exit
|
|
|
+ -l {java,python3,cpp,csharp,char,text,scheme} Select the language to parse the submissions (default: java)
|
|
|
+ -bc BC Path of the directory containing the base code (common framework used in all submissions)
|
|
|
+ -v {quiet,long} Verbosity of the logging (default: quiet)
|
|
|
+ -d Debug parser. Non-parsable files will be stored (default: false)
|
|
|
+ -S S Look in directories <root-dir>/*/<dir> for programs
|
|
|
+ -p P comma-separated list of all filename suffixes that are included
|
|
|
+ -x X All files named in this file will be ignored in the comparison (line-separated list)
|
|
|
+ -t T Tunes the comparison sensitivity by adjusting the minimum token required to be counted as a matching section. A smaller
|
|
|
+ <n> increases the sensitivity but might lead to more false-positives
|
|
|
+ -m M Comparison similarity threshold [0-100]: All comparisons above this threshold will be saved (default: 0.0)
|
|
|
+ -n N The maximum number of comparisons that will be shown in the generated report, if set to -1 all comparisons will be shown
|
|
|
+ (default: 30)
|
|
|
+ -r R Name of the directory in which the comparison results will be stored (default: result)
|
|
|
+ -c {normal,parallel} Comparison mode used to compare the programs (default: normal)
|
|
|
```
|
|
|
|
|
|
### Java API
|
|
|
@@ -63,7 +67,7 @@ named arguments:
|
|
|
The new API makes it easy to integrate JPlag's plagiarism detection into external Java projects:
|
|
|
|
|
|
```java
|
|
|
-JPlagOptions options = new JPlagOptions(List.of("/path/to/rootDir"), LanguageOption.JAVA);
|
|
|
+JPlagOptions options = new JPlagOptions(List.of("/path/to/rootDir"), List.of(), LanguageOption.JAVA);
|
|
|
options.setBaseCodeSubmissionName("template");
|
|
|
|
|
|
JPlag jplag = new JPlag(options);
|