@@ -16,16 +16,36 @@ The command `java -jar RepoSense.jar` takes several flags.
1616** Examples** :
1717
1818An example of a command using most parameters:<br >
19- ` java -jar RepoSense.jar --repos https://github.com/reposense/RepoSense.git --output ./report_folder --since 31/1/2017 --until 31/12/2018 --formats java adoc xml --view --ignore-standalone-config --last-modified-date --timezone UTC+08 --find-previous-authors `
19+ ` java -jar RepoSense.jar --repos https://github.com/reposense/RepoSense.git --output ./report_folder --since 31/1/2017 --until 31/12/2018 --formats java adoc xml --view --ignore-standalone-config --last-modified-date --timezone UTC+08 --find-previous-authors --analyze-authorship --originality-threshold 0.66 `
2020
2121Same command as above but using most parameters in alias format:<br >
22- ` java -jar RepoSense.jar -r https://github.com/reposense/RepoSense.git -o ./report_folder -s 31/1/2017 -u 31/12/2018 -f java adoc xml -v -i -l -t UTC+08 -F `
22+ ` java -jar RepoSense.jar -r https://github.com/reposense/RepoSense.git -o ./report_folder -s 31/1/2017 -u 31/12/2018 -f java adoc xml -v -i -l -t UTC+08 -F -A -ot 0.66 `
2323</box >
2424
2525The section below provides explanations for each of the flags.
2626
2727<!-- --------------------------◘---------------------------------------------------------------------------- -->
2828
29+ ### ` --analyze-authorship ` , ` -A `
30+
31+ ** ` --analyze-authorship ` ** : Performs further analysis to distinguish between partial and full credit attribution for
32+ lines of code assigned to the author.
33+
34+ * Default: this feature is turned *** off*** by default and the author will receive partial credits for all lines of
35+ code, as the code lines are at least partial credit but may not qualify for full credit.
36+ * Alias: ` -A ` (upper case)
37+ * Example: ` --analyze-authorship ` or ` -A `
38+
39+ <box type =" info " seamless >
40+
41+ A darker background colour represents full credit, while a lighter background colour represents partial credit.
42+
43+ If the code is attributed to a different author by the user via ` @@author ` tag, then the new author will be given
44+ partial credit.
45+ </box >
46+
47+ <!-- ------------------------------------------------------------------------------------------------------ -->
48+
2949### ` --assets ` , ` -a `
3050
3151<div id =" section-assets " >
@@ -147,6 +167,26 @@ This flag overrides the `Ignore file size limit` field in the CSV config file.
147167
148168<!-- ------------------------------------------------------------------------------------------------------ -->
149169
170+ ### ` --originality-threshold ` , ` -ot `
171+
172+ ** ` --originality-threshold [VALUE] ` ** : Specifies the cut-off point for partial and full credit
173+ in ` --analyze-authorship ` . Author will be given full credit if their contribution exceeds this threshold, else partial
174+ credit is given.
175+
176+ * Parameter: ` VALUE ` Optional. Acceptable range: [ 0.0, 1.0] .<br >
177+ Default: ` 0.51 `
178+ * Alias: ` -ot `
179+ * Example: ` --originality-threshold 0.66 ` or ` -ot 0.66 `
180+
181+ <box type =" info " seamless >
182+
183+ * Requires ` --analyze-authorship ` flag.
184+ * An author's contribution, or ` originality score ` , is calculated using Levenshtein Distance (Edit Distance) algorithm.
185+ We compare the difference between current code line and its previous versions.
186+ </box >
187+
188+ <!-- ------------------------------------------------------------------------------------------------------ -->
189+
150190### ` --output ` , ` -o `
151191
152192** ` --output OUTPUT_DIRECTORY ` ** : Indicates where to save the report generated.
0 commit comments