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

Made the GreedyStringTiling class deterministic in case both submissi… #1351

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

TwoOfTwelve
Copy link
Contributor

@TwoOfTwelve TwoOfTwelve commented Oct 25, 2023

The greedy string tiling class used to result in an arbitrary comparison direction if both submissions had the same amount of tokens. This did result in noticeable discrepancies in the similarity (see #1279). This PR fixes that by using the submission name as a tie breaker.

Also made some small changes removing warnings.

@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change labels Oct 26, 2023
Copy link
Member

@tsaglam tsaglam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small thing...

core/src/main/java/de/jplag/GreedyStringTiling.java Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Oct 30, 2023

[JPlag Plagiarism Detector] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@tsaglam tsaglam merged commit 366e47b into develop Oct 31, 2023
10 checks passed
@tsaglam tsaglam deleted the feature/greedyStringTiling-deterministic branch October 31, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants