jplag / JPlag

State-of-the-Art Software Plagiarism & Collusion Detection
https://jplag.github.io/JPlag/
GNU General Public License v3.0
1.37k stars 312 forks source link

Update python language module #1750

Closed TwoOfTwelve closed 4 months ago

TwoOfTwelve commented 5 months ago

Added python grammar changes from the antlr repository. Also migrated the language module to the new framework.

The token creation has not been altered, except for two new tokens for "async" and "await". That feature has been added to python since the language module was created. Except for that I did not find any big changes that JPlag needs to reflect.

Addresses #1669

Kr0nox commented 5 months ago

Since after this the state of the python language module is no longer that of the legacy version do we want to change that in the README and docs?

tsaglam commented 4 months ago

@TwoOfTwelve could you elaborate in the PR description whether this PR changes anything regarding the tokenization or support of python language features?

TwoOfTwelve commented 4 months ago

There are still 4 sonar-cloud issues, but since they are in the files from the antlr-grammar I would suggest leaving them as is, so we don't have any changes compared to the antlr repository.

tsaglam commented 4 months ago

Since after this the state of the python language module is no longer that of the legacy version do we want to change that in the README and docs?

Yes, we should change it to beta. @TwoOfTwelve can you adapt the docs?

TwoOfTwelve commented 4 months ago

I have changed it in the project README. As far as I know, that is the only place where we track the language module states.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed for 'JPlag Plagiarism Detector'

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
82.4% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud