-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plagiarism checks
: Plagiarism check shows 69% similarity for exactly same submissions
#7174
Comments
JPlag calculates the similarities. While it might be possible that Artemis inputs the data wrongly to JPlag, I don't think this is the case. It is more realistic that you found an edge case for a very simple comparison that does not work. @dfuchss any ideas? |
mmh .. I cannot reproduce the behavior with JPlag. BubbleSort.java
JPlag reports 100%: |
Nevertheless, in general depending on the input size this might be the important Issue. But, I don't understand why JPlag produces 100% and Artemis ~70% on the same file (as far as I can see in the images). @jakubriegel do you have more files. If you have very small files. This could lead to smaller values of similarity. |
I would assume the image only shows one file, so it could theoretically be the case that other files differ. Maybe this is also related to the fact that we exclude the initial template. @jakubriegel please link an example of one of the test servers or produce a minimum example to reproduce the issue |
/cc jfyi @tsaglam |
Another factor could be the basecode functionality, if you provide a class with an empty main method as a basecode template (shared code that is, for example, given to all students as part of the exercise), these parts of the source code will not be matched. I can probably give more input if I get more details on how JPlag was configured for that run. |
This is most likely an effect of using the case code feature. To verify, it I've carefully ran this comparison again on Artemis using debugger. I used the same exercise template and 3 submissions: 2 with
The number In short, this looks like a feature, not a bug 🙃 @tsaglam @dfuchss Can you confirm if JPlag works as intended in the described scenario? @krusche @MarkusPaulsen Should we keep it in Artemis like that? An idea to augment the behaviour would be not to use the base code feature. Since the minimum size parameter is implemented as the minumum number of diff between the submission and the template, instructors should have enough control over the process. What do you think? |
Yes, if you use basecode, then you basically tell JPlag: "Do not count that code, this is template code that we gave every student". These code segments are not counted for the similarity calculation to reduce false positives based on the template code. Using basecode makes sense, iff you gave students some template code that they did not alter. Thus, using this feature depends on the specific use case and assignment. I think what causes the confusion here is the Artemis UI not showing which parts of the code are matched and which parts are not. In the JPlag report viewer, matches between two submissions are not highlighted when they are part of the basecode. |
Just as an idea: Maybe it would be an option to integrate the JPlag UI into Artemis. |
Plagiarism detection
: Plagiarism check shows 69% similarity for exactly same submissionsPlagiarism checks
: Plagiarism check shows 69% similarity for exactly same submissions
Describe the bug
Two exactly same submissions got 69% similarity
To Reproduce
Expected behavior
Two exactly same submissions have 100% similarity
Screenshots
Which version of Artemis are you seeing the problem on?
6.4.3
What browsers are you seeing the problem on?
Chrome, Safari
Additional context
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: