Skip to content
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

🐛 Wrong comparison when comparing submissions within current sem #401

Closed
2 tasks done
sibinhho99 opened this issue Jan 7, 2024 · 0 comments · Fixed by #400
Closed
2 tasks done

🐛 Wrong comparison when comparing submissions within current sem #401

sibinhho99 opened this issue Jan 7, 2024 · 0 comments · Fixed by #400
Assignees
Labels
Type: Bug A problem with existing functionality

Comments

@sibinhho99
Copy link
Collaborator

sibinhho99 commented Jan 7, 2024

Cc:

Hi

Describe the Bug

This is a bug of the change introduced in #389 .

When submitting the Arhive.zip file in #399, skeleton code is mysteriously included in current sem submissions' comparisons

This is because there's a careless mistake in the comparison in
https://github.com/WING-NUS/SSID/blob/0fb4da9054d0148605f65cc050a426866e7dfb5a/lib/java/PlagiarismDetection/src/pd/SimComparer.java#L82C5-L82C5 , whereby the s2 submission should be from the currentSemSubmissions variable instead of submissions.

To Reproduce

Steps to reproduce the behavior:

  1. Try to submit Archive.zip file in 🐛 Bug when handling skeleton code after implementing references #399
  2. Error processing, printing out the processing results shows a "skeleton" student appearing in the comparison results.

Expected Behavior

Correct comparisons made

Tasks

  • Investigate
  • Fix

Acceptance Criteria

More Information

Environment

  • Device: [e.g. iPhone 12]
  • Browser: [e.g. chrome, safari]
  • OS: [e.g. iOS]

Screenshots

Thanks!

@sibinhho99 sibinhho99 added the Type: Bug A problem with existing functionality label Jan 7, 2024
@sibinhho99 sibinhho99 self-assigned this Jan 7, 2024
sibinhho99 added a commit to sibinhho99/SSID that referenced this issue Jan 7, 2024
@sibinhho99 sibinhho99 linked a pull request Jan 7, 2024 that will close this issue
6 tasks
@sibinhho99 sibinhho99 moved this to Pending Review in SSID Project Jan 7, 2024
huyuxin0429 pushed a commit to sibinhho99/SSID that referenced this issue Jan 13, 2024
@github-project-automation github-project-automation bot moved this from Pending Review to Done in SSID Project Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug A problem with existing functionality
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant