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

Adapt loop tokenization rules of the Java language module #1223

Merged
merged 4 commits into from
Aug 8, 2023

Conversation

tsaglam
Copy link
Member

@tsaglam tsaglam commented Aug 7, 2023

Previously, different loop types led to different loop tokens. This PR adapts the tokenization rules to utilize a single token type for each the start and end of loops.

@tsaglam tsaglam changed the base branch from main to develop August 7, 2023 09:50
@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change language PR / Issue deals (partly) with new and/or existing languages for JPlag labels Aug 7, 2023
# Conflicts:
#	languages/java/src/test/java/de/jplag/java/AbstractJavaLanguageTest.java
…changes. Positive deviation over all AVG similarity values: count=120, average=0.0657, min=0.0357, max=0.1395.
@sonarcloud
Copy link

sonarcloud bot commented Aug 7, 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 requested a review from a team August 7, 2023 12:00
@tsaglam tsaglam marked this pull request as ready for review August 7, 2023 12:00
J_FOR_BEGIN("FOR{"), // check
J_FOR_END("}FOR"), // check
J_LOOP_BEGIN("LOOP{"), // check
J_LOOP_END("}LOOP"), // check
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason for the comments saying "check"? Is that an old TODO marker?

Copy link
Member Author

Choose a reason for hiding this comment

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

Those are legacy comments, I think they intend to show that this token is extracted correctly. We never threw them away so far.

@tsaglam tsaglam merged commit e328495 into develop Aug 8, 2023
24 checks passed
@tsaglam tsaglam deleted the feature/loop-mapping branch August 8, 2023 06:41
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 language PR / Issue deals (partly) with new and/or existing languages for JPlag minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants