-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bugfix:Plagiarism] Fix all versions bug (#72)
* Fix multiple versions bug * add config.json * fix course * Add placeholder file * FIx tests(?)
- Loading branch information
1 parent
a45457e
commit 1fe7878
Showing
31 changed files
with
1,705 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/data/test_lichen/multiple_versions/expected_output/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"semester": "f21", | ||
"course": "plagiarism", | ||
"gradeable": "multiple_versions", | ||
"config_id": 1, | ||
"version": "all_versions", | ||
"regex": [ | ||
"" | ||
], | ||
"regex_dirs": [ | ||
"submissions" | ||
], | ||
"language": "plaintext", | ||
"threshold": 10, | ||
"hash_size": 4, | ||
"other_gradeables": [], | ||
"ignore_submissions": [] | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/data/test_lichen/multiple_versions/expected_output/logs/lichen_job_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Beginning Lichen run: 2021-12-21 17:20:31 | ||
CONCATENATE ALL...done in 0 seconds, 949 Bytes concatenated | ||
TOKENIZE ALL...done in 0 seconds | ||
HASH ALL...done in 0 seconds | ||
COMPARE HASHES...finished loading in 0 seconds | ||
hash walk: 33% complete | ||
hash walk: 66% complete | ||
hash walk: 100% complete | ||
finished walking in 0 seconds | ||
COMPARE HASHES done in 0 seconds |
Empty file.
2 changes: 2 additions & 0 deletions
2
tests/data/test_lichen/multiple_versions/expected_output/overall_ranking.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
aphacker 2 81.4% 35 | ||
bitdiddle 1 81.4% 35 |
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
tests/data/test_lichen/multiple_versions/expected_output/provided_code/tokens.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
62 changes: 62 additions & 0 deletions
62
tests/data/test_lichen/multiple_versions/expected_output/users/aphacker/1/hashes.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
ccbfc51b | ||
46d2e902 | ||
0a1bc040 | ||
6d14f9b3 | ||
a5d513dd | ||
5e030a24 | ||
c715d526 | ||
fd3fa0fe | ||
b1917b6c | ||
ccbfc51b | ||
fcf8964c | ||
6afa4117 | ||
25a42a47 | ||
2ac066f5 | ||
c6097572 | ||
6011cbf5 | ||
adefe73d | ||
36182b9f | ||
36d719a0 | ||
fe129c06 | ||
e44ef48d | ||
6bb90c04 | ||
083a9efd | ||
93d49734 | ||
0f905a05 | ||
8bfb058d | ||
06410254 | ||
61b171ee | ||
6c920afa | ||
05660ab4 | ||
30a548ac | ||
b38f50f3 | ||
2997d7c5 | ||
297c601f | ||
e8ccd482 | ||
ae6d442f | ||
4de258e3 | ||
fae8aa98 | ||
24ac3d5d | ||
fbdad65f | ||
fc98ba6b | ||
44bbaa49 | ||
83df01b7 | ||
964fade5 | ||
2ea0ba40 | ||
5494f32a | ||
e248b1d9 | ||
528feb65 | ||
27d1db1f | ||
c552988d | ||
cf65191e | ||
eff2064e | ||
0847585b | ||
c64da9e5 | ||
7b3dc1c1 | ||
045fe7d1 | ||
50ac87da | ||
f5f088e7 | ||
ecb2eef0 | ||
7d75f52c | ||
8576ec09 | ||
497a431b |
136 changes: 136 additions & 0 deletions
136
tests/data/test_lichen/multiple_versions/expected_output/users/aphacker/1/matches.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
[ | ||
{ | ||
"end": 4, | ||
"others": [ | ||
{ | ||
"matchingpositions": [ | ||
{ | ||
"end": 4, | ||
"start": 1 | ||
}, | ||
{ | ||
"end": 13, | ||
"start": 10 | ||
} | ||
], | ||
"source_gradeable": "f21__plagiarism__multiple_versions", | ||
"username": "bitdiddle", | ||
"version": 1 | ||
} | ||
], | ||
"start": 1, | ||
"type": "match" | ||
}, | ||
{ | ||
"end": 6, | ||
"others": [ | ||
{ | ||
"matchingpositions": [ | ||
{ | ||
"end": 6, | ||
"start": 2 | ||
} | ||
], | ||
"source_gradeable": "f21__plagiarism__multiple_versions", | ||
"username": "bitdiddle", | ||
"version": 1 | ||
} | ||
], | ||
"start": 2, | ||
"type": "match" | ||
}, | ||
{ | ||
"end": 12, | ||
"others": [ | ||
{ | ||
"matchingpositions": [ | ||
{ | ||
"end": 12, | ||
"start": 8 | ||
} | ||
], | ||
"source_gradeable": "f21__plagiarism__multiple_versions", | ||
"username": "bitdiddle", | ||
"version": 1 | ||
} | ||
], | ||
"start": 8, | ||
"type": "match" | ||
}, | ||
{ | ||
"end": 13, | ||
"others": [ | ||
{ | ||
"matchingpositions": [ | ||
{ | ||
"end": 4, | ||
"start": 1 | ||
}, | ||
{ | ||
"end": 13, | ||
"start": 10 | ||
} | ||
], | ||
"source_gradeable": "f21__plagiarism__multiple_versions", | ||
"username": "bitdiddle", | ||
"version": 1 | ||
} | ||
], | ||
"start": 10, | ||
"type": "match" | ||
}, | ||
{ | ||
"end": 14, | ||
"others": [ | ||
{ | ||
"matchingpositions": [ | ||
{ | ||
"end": 14, | ||
"start": 11 | ||
} | ||
], | ||
"source_gradeable": "f21__plagiarism__multiple_versions", | ||
"username": "bitdiddle", | ||
"version": 1 | ||
} | ||
], | ||
"start": 11, | ||
"type": "match" | ||
}, | ||
{ | ||
"end": 20, | ||
"others": [ | ||
{ | ||
"matchingpositions": [ | ||
{ | ||
"end": 32, | ||
"start": 26 | ||
} | ||
], | ||
"source_gradeable": "f21__plagiarism__multiple_versions", | ||
"username": "bitdiddle", | ||
"version": 1 | ||
} | ||
], | ||
"start": 14, | ||
"type": "match" | ||
}, | ||
{ | ||
"end": 34, | ||
"others": [ | ||
{ | ||
"matchingpositions": [ | ||
{ | ||
"end": 46, | ||
"start": 34 | ||
} | ||
], | ||
"source_gradeable": "f21__plagiarism__multiple_versions", | ||
"username": "bitdiddle", | ||
"version": 1 | ||
} | ||
], | ||
"start": 22, | ||
"type": "match" | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
tests/data/test_lichen/multiple_versions/expected_output/users/aphacker/1/ranking.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bitdiddle 1 f21__plagiarism__multiple_versions 32.79% |
2 changes: 2 additions & 0 deletions
2
...ta/test_lichen/multiple_versions/expected_output/users/aphacker/1/submission.concatenated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
==== submission_1.txt ==== | ||
This file is meant to represent the first submission of three in a small test involving users with multiple submissions. This submission is a little longer than the other two submissions because we want to test that the system still works when the highest matching version is the second version. |
Oops, something went wrong.