You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When submitting two identical programming exercises, plagiarism detection will never produce a 100% similarity because the template code is considered part of the total tokens by which the tool presumably divides the similarity value.
Screenshots
No response
Which version of Artemis are you seeing the problem on?
9.8.3
What browsers do you see the problem on?
Firefox
Additional context
No response
Relevant log output
No response
To Reproduce
Create a programming exercise Sort exercise template, e.g., Java
log in as User 1 and submit the following piece of code in BubbleSort.java:
Login as User 2 and submit the same piece of code in BubbleSort.java
log in as a tutor and navigate to Plagiarism in the exercise dashboard
Run plagiarism detection
Observe a <100% similarity despite the identical repositories for both submissions
As we increase the number of identical lines, we see that the similarity tends to be 100% but never reaches 100%, which makes me assume that the template code is somehow factored in. I confirmed this with a Python exercise from which I removed the template code and only submitted identical code with both users, producing a 100% similarity.
Submissions with multiple identical lines:
similarity.mp4
Expected behavior
Similarity value should reflect the actual content similarity of the submissions.
Solution approach suggestion: Add a checkbox that does not consider template code as part of the input to JPlag
Screenshots
No response
Which version of Artemis are you seeing the problem on?
9.8.3
What browsers are you seeing the problem on?
Firefox
Additional context
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
github-actionsbot
added
assessment
Pull requests that affect the corresponding module
exercise
Pull requests that affect the corresponding module
lecture
Pull requests that affect the corresponding module
plagiarism
Pull requests that affect the corresponding module
programming
Pull requests that affect the corresponding module
labels
Jan 14, 2025
Describe the bug
When submitting two identical programming exercises, plagiarism detection will never produce a 100% similarity because the template code is considered part of the total tokens by which the tool presumably divides the similarity value.
Screenshots
No response
Which version of Artemis are you seeing the problem on?
9.8.3
What browsers do you see the problem on?
Firefox
Additional context
No response
Relevant log output
No response
To Reproduce
As we increase the number of identical lines, we see that the similarity tends to be 100% but never reaches 100%, which makes me assume that the template code is somehow factored in. I confirmed this with a Python exercise from which I removed the template code and only submitted identical code with both users, producing a 100% similarity.
Submissions with multiple identical lines:
similarity.mp4
Expected behavior
Similarity value should reflect the actual content similarity of the submissions.
Solution approach suggestion: Add a checkbox that does not consider template code as part of the input to JPlag
Screenshots
No response
Which version of Artemis are you seeing the problem on?
9.8.3
What browsers are you seeing the problem on?
Firefox
Additional context
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: