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

Updated switch implementation #2108

Closed
wants to merge 539 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
539 commits
Select commit Hold shift + click to select a range
4f512d5
Added documentation and better error messages.
TwoOfTwelve Aug 13, 2024
bda9eaf
Moved the git hooks documentation from README to wiki.
TwoOfTwelve Aug 13, 2024
16b08f8
Dependency(deps): Bump vue-router from 4.4.0 to 4.4.3 in /report-view…
dependabot[bot] Aug 14, 2024
abcfccd
Dependency(deps-dev): Bump vitest from 2.0.1 to 2.0.5 in /report-view…
dependabot[bot] Aug 14, 2024
e2480d3
Dependency(deps-dev): Bump lint-staged from 15.2.7 to 15.2.9 in /repo…
dependabot[bot] Aug 14, 2024
ee44ce9
Dependency(deps-dev): Bump autoprefixer from 10.4.19 to 10.4.20 in /r…
dependabot[bot] Aug 14, 2024
d42f404
Dependency(deps-dev): Bump postcss from 8.4.40 to 8.4.41 in /report-v…
dependabot[bot] Aug 14, 2024
630e27b
change LLVM IR name
Kr0nox Aug 15, 2024
c753a2b
use identifiers instead of names in report for language
Kr0nox Aug 15, 2024
3af6c7a
fix wrong emf identifiers
Kr0nox Aug 15, 2024
1129588
fix use of remove languages
Kr0nox Aug 15, 2024
9c82157
fix unit tests
Kr0nox Aug 15, 2024
e2cb4b8
desaturate colors
Kr0nox Aug 15, 2024
147ff0a
Dependency(deps-dev): Bump @types/node from 18.19.42 to 22.4.2 in /re…
dependabot[bot] Aug 21, 2024
2a02f69
Dependency(deps-dev): Bump husky from 9.1.4 to 9.1.5 in /report-viewe…
dependabot[bot] Aug 21, 2024
e8b93a6
Dependency(deps-dev): Bump prettier-plugin-tailwindcss from 0.6.5 to …
dependabot[bot] Aug 21, 2024
d9d3d77
Dependency(deps-dev): Bump @vitejs/plugin-vue from 5.1.1 to 5.1.2 in …
dependabot[bot] Aug 21, 2024
b7bd4df
clean up current state of readme
Kr0nox Aug 21, 2024
0748bbe
add cli packaging of report viewer
Kr0nox Aug 21, 2024
07f4448
Dependency(deps): Bump vue from 3.4.36 to 3.4.38 in /report-viewer (#…
dependabot[bot] Aug 22, 2024
41fdf7b
Dependency(deps): Bump org.apache.maven.plugins:maven-surefire-plugin…
dependabot[bot] Aug 22, 2024
203c57f
Dependency(deps): Bump org.codehaus.mojo:exec-maven-plugin from 3.4.0…
dependabot[bot] Aug 22, 2024
739367a
Dependency(deps-dev): Bump junit.version from 5.10.3 to 5.11.0 (#1922)
dependabot[bot] Aug 22, 2024
6d8db96
Dependency(deps): Bump org.apache.maven.plugins:maven-gpg-plugin from…
dependabot[bot] Aug 22, 2024
4c4b10d
Added missing CLI tests
TwoOfTwelve Aug 22, 2024
cb27a5b
Dependency(deps): Bump slf4j.version from 2.0.14 to 2.0.16 (#1920)
dependabot[bot] Aug 22, 2024
a0a4db5
Added new version of ANTLR grammar and adapted the listener.
TwoOfTwelve Aug 25, 2024
7860d71
Merge pull request #1924 from jplag/feature/export-lang-identifier
tsaglam Aug 26, 2024
7eeee1f
Merge remote-tracking branch 'origin/develop' into feature/better-lan…
Kr0nox Aug 26, 2024
1412350
Merge remote-tracking branch 'origin/develop' into feature/gitPreCommit
Kr0nox Aug 26, 2024
79863df
Merge pull request #1881 from jplag/feature/gitPreCommit
tsaglam Aug 26, 2024
9fe198e
Added new version of ANTLR grammar and adapted the listener.
TwoOfTwelve Aug 26, 2024
0923193
Improved code quality and fixed typos.
TwoOfTwelve Aug 26, 2024
cb82fc6
Test comparison table filter
Kr0nox Aug 28, 2024
18d1d4f
use correct pinia
Kr0nox Aug 28, 2024
6ec635d
install dependency
Kr0nox Aug 28, 2024
274cd9d
Dependency(deps): Bump org.apache.maven.plugins:maven-surefire-plugin
dependabot[bot] Aug 28, 2024
63bcede
Dependency(deps-dev): Bump org.mockito:mockito-core
dependabot[bot] Aug 28, 2024
65e3ad2
Dependency(deps): Bump org.apache.maven.plugins:maven-javadoc-plugin
dependabot[bot] Aug 28, 2024
2ed7542
Dependency(deps): Bump org.apache.maven.plugins:maven-deploy-plugin
dependabot[bot] Aug 28, 2024
8d0286b
Dependency(deps): Bump org.eclipse.emf:org.eclipse.emf.ecore
dependabot[bot] Aug 28, 2024
72cb878
transform tests
Kr0nox Aug 28, 2024
107e8b7
remove console log
Kr0nox Aug 28, 2024
e93555d
Dependency(deps-dev): Bump @types/node from 22.4.2 to 22.5.1 in /repo…
dependabot[bot] Aug 28, 2024
4c6d1fe
Dependency(deps-dev): Bump typescript from 5.5.3 to 5.5.4 in /report-…
dependabot[bot] Aug 28, 2024
26a145b
adjust eslint rule
Kr0nox Aug 28, 2024
25a1d71
adjust code to new console rules
Kr0nox Aug 28, 2024
621ec04
Dependency(deps): Bump chart.js from 4.4.3 to 4.4.4 in /report-viewer…
dependabot[bot] Aug 28, 2024
26aacda
Dependency(deps-dev): Bump vite from 5.3.4 to 5.4.2 in /report-viewer…
dependabot[bot] Aug 28, 2024
d5a1a72
Fixed token position zero in text module
TwoOfTwelve Aug 28, 2024
f24f83c
Dependency(deps): Bump pinia from 2.1.7 to 2.2.2 in /report-viewer (#…
dependabot[bot] Aug 28, 2024
5a03f70
use name when operating on search bar
Kr0nox Aug 28, 2024
64dfdff
base of table tests
Kr0nox Aug 29, 2024
ea59119
Merge remote-tracking branch 'origin/develop' into report-viewer/pini…
Kr0nox Aug 29, 2024
e9c9f2d
Removed redundant modifiers
TwoOfTwelve Aug 29, 2024
fb9ab93
Merge pull request #1933 from jplag/feature/cliTests
tsaglam Aug 29, 2024
1e295bd
Merge pull request #1914 from jplag/feature/columnIndexTests
tsaglam Aug 29, 2024
0a868f2
Merge pull request #1949 from jplag/feature/textModuleTokenPositionZero
tsaglam Aug 29, 2024
d808ecd
Merge pull request #1950 from jplag/report-viewer/search-name-id
tsaglam Aug 29, 2024
9b3094d
Merge pull request #1948 from jplag/report-viewer/logging-rules
tsaglam Aug 29, 2024
92837df
Merge pull request #1902 from jplag/feature/better-language-names
tsaglam Aug 29, 2024
f2d5e61
Fix typos
Kr0nox Aug 29, 2024
7010208
Fix typos
Kr0nox Aug 29, 2024
74e483d
Merge pull request #1947 from jplag/report-viewer/pinia-testing
tsaglam Aug 29, 2024
765a88d
Fix typos.
tsaglam Aug 29, 2024
91119f3
Update Home.md
tsaglam Aug 29, 2024
bcbf6ba
Update 1.-How-to-Use-JPlag.md
tsaglam Aug 29, 2024
6815ce5
Update 2.-Supported-Languages.md
tsaglam Aug 29, 2024
d0678b8
Update 3.-Contributing-to-JPlag.md
tsaglam Aug 29, 2024
fe70642
Update 4.-Adding-New-Languages.md
tsaglam Aug 29, 2024
0f8aa2d
Merge pull request #1931 from jplag/report-viewer/readme
tsaglam Aug 29, 2024
7ad50c2
change default mode
Kr0nox Aug 29, 2024
7054df7
adjust workflows
Kr0nox Aug 29, 2024
349e536
Merge remote-tracking branch 'origin/develop' into local-mode-switch
Kr0nox Aug 29, 2024
758faec
reset dev version
Kr0nox Aug 29, 2024
07851f1
fix extraction of end token
Kr0nox Aug 29, 2024
d601a0b
demo directly loads zip
Kr0nox Aug 30, 2024
d74a7ad
fix spottless
Kr0nox Aug 30, 2024
5894131
Merge pull request #1953 from jplag/fix-dev-version
tsaglam Aug 30, 2024
6d5f40e
remove single file upload
Kr0nox Aug 30, 2024
9a1287e
Merge pull request #1957 from jplag/report-viewer/remove-single-file
tsaglam Aug 30, 2024
c2baa93
Merge pull request #1956 from jplag/demo/start-on-overview
tsaglam Aug 30, 2024
2bb9562
Merge pull request #1952 from jplag/local-mode-switch
tsaglam Aug 30, 2024
a2b4048
test token position exporting
Kr0nox Aug 30, 2024
2d09661
Update 5.-End-to-End-Testing.md
tsaglam Aug 30, 2024
1677588
Remove convoluted description of the older end to end dataset.
tsaglam Aug 30, 2024
96967c6
remove test class visibility modifier
Kr0nox Aug 30, 2024
e394f56
Update 7.-Clustering-of-Submissions.md
tsaglam Aug 30, 2024
b459cce
Update 6.-Report-File-Generation.md
tsaglam Aug 30, 2024
b853591
Merge pull request #1951 from jplag/feature/wiki-overhaul
tsaglam Aug 30, 2024
04905d0
Merge pull request #1955 from jplag/fix-col-calc
tsaglam Aug 30, 2024
7e082dd
adjust cluster icons
Kr0nox Aug 31, 2024
249a9f9
fix prettier issues
Kr0nox Aug 31, 2024
2e86af6
fix prettier issues
Kr0nox Aug 31, 2024
d4f1735
test comparison table search and filter
Kr0nox Sep 1, 2024
daaf4ac
fix metric filtering
Kr0nox Sep 1, 2024
850e65b
Merge remote-tracking branch 'origin/develop' into report-viewer/comp…
Kr0nox Sep 1, 2024
487f0c9
remove skipped test
Kr0nox Sep 1, 2024
644cdb8
Merge pull request #1959 from jplag/report-viewer/fix-filter
tsaglam Sep 3, 2024
7b7bc1c
Merge branch 'develop' into report-viewer/comparison-table-test
Kr0nox Sep 3, 2024
918c709
Added token position tests for annotations
TwoOfTwelve Sep 3, 2024
6c505ea
Added names to token position tests
TwoOfTwelve Sep 3, 2024
ca2a891
Merge pull request #1961 from jplag/feature/tokenPositionTestNames
tsaglam Sep 4, 2024
4661d09
Dependency(deps): Bump org.eclipse.emf:org.eclipse.emf.common
dependabot[bot] Sep 4, 2024
9680c2d
Dependency(deps-dev): Bump vue-tsc from 2.0.29 to 2.1.4 in /report-vi…
dependabot[bot] Sep 4, 2024
2f65c44
Dependency(deps-dev): Bump @types/node from 22.5.1 to 22.5.3 in /repo…
dependabot[bot] Sep 4, 2024
1071b57
Dependency(deps-dev): Bump @vitejs/plugin-vue from 5.1.2 to 5.1.3 in …
dependabot[bot] Sep 4, 2024
e546f16
Dependency(deps-dev): Bump postcss from 8.4.41 to 8.4.45 in /report-v…
dependabot[bot] Sep 5, 2024
75ab4fd
Dependency(deps-dev): Bump tailwindcss from 3.4.6 to 3.4.10 in /repor…
dependabot[bot] Sep 5, 2024
5776afa
Merge pull request #1893 from jplag/report-viewer/dark-mode-redesign
tsaglam Sep 5, 2024
939842c
Dependency(deps): Bump org.eclipse.emf:org.eclipse.emf.ecore.xmi
dependabot[bot] Sep 4, 2024
ae1a86d
Merge branch 'develop' into dependabot/maven/develop/org.eclipse.emf-…
tsaglam Sep 6, 2024
0aa3c7e
Dependency(deps): Bump JamesIves/github-pages-deploy-action
dependabot[bot] Sep 4, 2024
8f28934
Merge pull request #1958 from jplag/report-viewer/comparison-table-test
tsaglam Sep 6, 2024
666f849
implement new fucntions for edge thickness and opacity
Kr0nox Sep 6, 2024
1a1b1bb
Merge pull request #1970 from jplag/dependabot/maven/develop/org.ecli…
tsaglam Sep 6, 2024
29e90a7
Merge pull request #1973 from jplag/report-viwer/better-cluster-edges
tsaglam Sep 9, 2024
9bd96a1
Dependency(deps-dev): Bump @playwright/test from 1.46.0 to 1.47.0 in …
dependabot[bot] Sep 11, 2024
52dcd6f
Dependency(deps-dev): Bump vue-tsc from 2.1.4 to 2.1.6 in /report-vie…
dependabot[bot] Sep 11, 2024
7125ec7
Dependency(deps-dev): Bump lint-staged from 15.2.9 to 15.2.10 in /rep…
dependabot[bot] Sep 11, 2024
371bad2
Dependency(deps): Bump org.eclipse.platform:org.eclipse.core.resources
dependabot[bot] Sep 11, 2024
92a0a84
Dependency(deps-dev): Bump vite from 5.4.2 to 5.4.4 in /report-viewer…
dependabot[bot] Sep 11, 2024
610823f
Dependency(deps): Bump vue-router from 4.4.3 to 4.4.4 in /report-view…
dependabot[bot] Sep 11, 2024
77fb1ba
Updated documentation
TwoOfTwelve Sep 11, 2024
1be60dc
Improved function names for RListener.java
TwoOfTwelve Sep 11, 2024
119a486
first draft of e2e test readme
Kr0nox Sep 12, 2024
87554d0
add complete e2e tests to wiki
Kr0nox Sep 12, 2024
8406624
Fix indentation of bullet points
Kr0nox Sep 12, 2024
3c7273b
Merge branch 'develop' into feature/tokenPositionTestsJava_Annotations
TwoOfTwelve Sep 12, 2024
500bbde
Fixed annotation token positions in java module
TwoOfTwelve Sep 12, 2024
5660b72
look up index in sorted files
Kr0nox Sep 12, 2024
5de139c
Update report-viewer/tests/e2e/README.md
tsaglam Sep 13, 2024
e56bae4
Merge pull request #1984 from jplag/report-viewer/match-click-bug
tsaglam Sep 13, 2024
489ebe5
Merge pull request #1983 from jplag/complete-e2e-doku
tsaglam Sep 13, 2024
9a13195
update contributing chapter in wiki
Kr0nox Sep 14, 2024
5b98e7d
update section on report file generation
Kr0nox Sep 15, 2024
a76a69c
Dependency(deps): Bump org.apache.maven.plugins:maven-gpg-plugin
dependabot[bot] Sep 18, 2024
004b4c3
Dependency(deps-dev): Bump jsdom from 24.1.1 to 25.0.0 in /report-vie…
dependabot[bot] Sep 19, 2024
44048df
Dependency(deps-dev): Bump @playwright/test from 1.47.0 to 1.47.1 in …
dependabot[bot] Sep 19, 2024
76a425f
Dependency(deps-dev): Bump eslint-plugin-vue from 9.27.0 to 9.28.0 in…
dependabot[bot] Sep 19, 2024
7ba1ab5
Dependency(deps-dev): Bump @vitejs/plugin-vue from 5.1.3 to 5.1.4 in …
dependabot[bot] Sep 19, 2024
383b2c8
Dependency(deps): Bump vue-router from 4.4.4 to 4.4.5 in /report-view…
dependabot[bot] Sep 19, 2024
034e63a
Update docs/6.-Report-File-Generation.md
tsaglam Sep 22, 2024
099b966
Update docs/6.-Report-File-Generation.md
tsaglam Sep 22, 2024
96c5119
Merge pull request #1985 from jplag/contributing-report-viewer-docs
tsaglam Sep 22, 2024
c0298d9
Apply suggestions from code review.
tsaglam Sep 22, 2024
82a6dc4
Merge branch 'develop' into feature/documentationCore
tsaglam Sep 22, 2024
fc4f6a1
Merge pull request #1982 from jplag/feature/documentationCore
tsaglam Sep 22, 2024
da12415
Dependency(deps-dev): Bump junit.version from 5.11.0 to 5.11.1
dependabot[bot] Sep 25, 2024
61357c8
Dependency(deps): Bump org.scalameta:scalameta_2.13 from 4.9.9 to 4.10.1
dependabot[bot] Sep 25, 2024
daa19c9
Dependency(deps): Bump org.scala-lang:scala-library
dependabot[bot] Sep 25, 2024
a96d44d
Dependency(deps-dev): Bump prettier-plugin-tailwindcss from 0.6.6 to …
dependabot[bot] Sep 25, 2024
b13f48d
Dependency(deps-dev): Bump @playwright/test from 1.47.1 to 1.47.2 in …
dependabot[bot] Sep 25, 2024
6d5538a
Dependency(deps-dev): Bump eslint from 8.57.0 to 8.57.1 in /report-vi…
dependabot[bot] Sep 25, 2024
8186da9
Dependency(deps): Bump vue from 3.4.38 to 3.5.8 in /report-viewer (#2…
dependabot[bot] Sep 27, 2024
276c218
Dependency(deps-dev): Bump @types/node from 22.5.3 to 22.7.4 in /repo…
dependabot[bot] Oct 2, 2024
24e7ff8
Dependency(deps): Bump JamesIves/github-pages-deploy-action
dependabot[bot] Oct 2, 2024
72f8e36
Dependency(deps): Bump com.fasterxml.jackson.core:jackson-databind
dependabot[bot] Oct 2, 2024
008827f
Dependency(deps): Bump org.apache.maven.plugins:maven-gpg-plugin
dependabot[bot] Oct 2, 2024
b445d0b
Dependency(deps): Bump io.soabase.record-builder:record-builder-proce…
dependabot[bot] Oct 2, 2024
03ba9ac
Dependency(deps-dev): Bump org.mockito:mockito-core
dependabot[bot] Oct 2, 2024
06daec6
Dependency(deps): Bump org.apache.maven.plugins:maven-javadoc-plugin
dependabot[bot] Oct 2, 2024
c6e2f69
Dependency(deps-dev): Bump vitest from 2.0.5 to 2.1.1 in /report-view…
dependabot[bot] Oct 3, 2024
c6d9c8e
Dependency(deps): Bump pinia from 2.2.2 to 2.2.4 in /report-viewer (#…
dependabot[bot] Oct 3, 2024
97754b7
Dependency(deps): Bump vue from 3.5.8 to 3.5.10 in /report-viewer (#2…
dependabot[bot] Oct 4, 2024
0df42a3
Dependency(deps-dev): Bump tailwindcss from 3.4.10 to 3.4.13 in /repo…
dependabot[bot] Oct 4, 2024
8df0f2d
Dependency(deps-dev): Bump junit.version from 5.11.1 to 5.11.2
dependabot[bot] Oct 9, 2024
9527bed
Dependency(deps): Bump org.apache.maven.plugins:maven-surefire-plugin
dependabot[bot] Oct 9, 2024
2f967c4
Dependency(deps-dev): Bump vitest from 2.1.1 to 2.1.2 in /report-view…
dependabot[bot] Oct 10, 2024
f677bf4
Dependency(deps-dev): Bump @playwright/test from 1.47.2 to 1.48.0 in …
dependabot[bot] Oct 10, 2024
39fec89
Dependency(deps-dev): Bump @vue/eslint-config-prettier from 9.0.0 to …
dependabot[bot] Oct 10, 2024
5e6ba5c
Dependency(deps-dev): Bump vite from 5.4.4 to 5.4.8 in /report-viewer…
dependabot[bot] Oct 10, 2024
1653da3
Dependency(deps): Bump chartjs-chart-graph from 4.3.1 to 4.3.2 in /re…
dependabot[bot] Oct 10, 2024
46c6e6c
increase default export size
Kr0nox Oct 10, 2024
645342e
Merge pull request #2022 from jplag/increase-default-export
tsaglam Oct 10, 2024
9a6bf92
Dependency(deps-dev): Bump @types/node from 22.7.4 to 22.7.5 in /repo…
dependabot[bot] Oct 16, 2024
e3c15a5
Dependency(deps-dev): Bump @pinia/testing from 0.1.5 to 0.1.6 in /rep…
dependabot[bot] Oct 16, 2024
2623d72
Dependency(deps): Bump chart.js from 4.4.4 to 4.4.5 in /report-viewer…
dependabot[bot] Oct 16, 2024
5a0b836
Dependency(deps-dev): Bump org.mockito:mockito-core
dependabot[bot] Oct 16, 2024
710580f
Dependency(deps): Bump org.scalameta:scalameta_2.13
dependabot[bot] Oct 16, 2024
f981511
Dependency(deps-dev): Bump jsdom from 25.0.0 to 25.0.1 in /report-vie…
dependabot[bot] Oct 17, 2024
e9333d7
Dependency(deps): Bump vue from 3.5.10 to 3.5.12 in /report-viewer (#…
dependabot[bot] Oct 17, 2024
f6a2ac1
Small fix for the cpp semantics. Probably doesn't make a difference.
TwoOfTwelve Oct 18, 2024
ea67fa4
Spotless
TwoOfTwelve Oct 18, 2024
7e15a99
Merge remote-tracking branch 'origin/main' into fix-dev-main-merge-is…
Kr0nox Oct 21, 2024
aef3f98
Merge pull request #2031 from jplag/feature/cppSemanticSmallFix
tsaglam Oct 23, 2024
cd6147f
Dependency(deps-dev): Bump @vue/eslint-config-prettier from 10.0.0 to…
dependabot[bot] Oct 23, 2024
b7f2add
Dependency(deps-dev): Bump eslint-plugin-vue from 9.28.0 to 9.29.1 in…
dependabot[bot] Oct 23, 2024
9c9792d
Dependency(deps): Bump org.codehaus.mojo:exec-maven-plugin
dependabot[bot] Oct 23, 2024
dbe5771
Dependency(deps): Bump org.scalameta:scalameta_2.13
dependabot[bot] Oct 23, 2024
585340e
Dependency(deps-dev): Bump @types/node from 22.7.5 to 22.7.9 in /repo…
dependabot[bot] Oct 23, 2024
060d74e
Dependency(deps): Bump chartjs-chart-graph from 4.3.2 to 4.3.3 in /re…
dependabot[bot] Oct 23, 2024
aea1fe7
Dependency(deps-dev): Bump vite from 5.4.8 to 5.4.10 in /report-viewe…
dependabot[bot] Oct 23, 2024
041106d
Merge pull request #2033 from jplag/fix-dev-main-merge-issues
tsaglam Oct 24, 2024
69cc90d
Dependency(deps-dev): Bump junit.version from 5.11.2 to 5.11.3 (#2034)
dependabot[bot] Oct 24, 2024
a84ac1e
Merge branch 'develop' into feature/refactorRLang
TwoOfTwelve Oct 29, 2024
0f0efea
Fixed token order test by ignoring certain token types.
TwoOfTwelve Oct 29, 2024
009f600
Spotless
TwoOfTwelve Oct 29, 2024
264a159
Merge pull request #1864 from jplag/feature/refactorRLang
tsaglam Oct 30, 2024
1b34d9f
Dependency(deps-dev): Bump @types/node from 22.7.9 to 22.8.4 in /repo…
dependabot[bot] Oct 30, 2024
86c13bc
Dependency(deps-dev): Bump eslint-plugin-vue from 9.29.1 to 9.30.0 in…
dependabot[bot] Oct 30, 2024
29e16e9
Dependency(deps): Bump com.fasterxml.jackson.core:jackson-databind
dependabot[bot] Oct 30, 2024
6d63263
Dependency(deps): Bump com.ibm.icu:icu4j-charset from 75.1 to 76.1
dependabot[bot] Oct 30, 2024
4624029
Dependency(deps-dev): Bump typescript from 5.5.4 to 5.6.3 in /report-…
dependabot[bot] Oct 31, 2024
4528d56
Dependency(deps): Bump chart.js from 4.4.5 to 4.4.6 in /report-viewer…
dependabot[bot] Oct 31, 2024
a5ff90e
Dependency(deps): Bump pinia from 2.2.4 to 2.2.5 in /report-viewer (#…
dependabot[bot] Oct 31, 2024
7eec092
reverse distribution in report
Kr0nox Oct 31, 2024
381bc5e
use reversed distribution in report viewer
Kr0nox Oct 31, 2024
ea94a3d
Update README.md
tsaglam Nov 1, 2024
911ef5a
adjust javadoc
Kr0nox Nov 4, 2024
caa1eb1
Fixed formatting
TwoOfTwelve Nov 4, 2024
19abd97
Dependency(deps): Bump vue-chartjs from 5.3.1 to 5.3.2 in /report-vie…
dependabot[bot] Nov 6, 2024
7abe00a
Dependency(deps-dev): Bump @types/node from 22.8.4 to 22.9.0 in /repo…
dependabot[bot] Nov 6, 2024
a7b552c
Dependency(deps-dev): Bump vue-tsc from 2.1.6 to 2.1.10 in /report-vi…
dependabot[bot] Nov 6, 2024
be08330
Dependency(deps-dev): Bump tailwindcss from 3.4.13 to 3.4.14 in /repo…
dependabot[bot] Nov 6, 2024
5272224
Dependency(deps-dev): Bump @playwright/test from 1.48.0 to 1.48.2 in …
dependabot[bot] Nov 6, 2024
99bdfdf
Dependency(deps): Bump org.apache.maven.plugins:maven-javadoc-plugin
dependabot[bot] Nov 6, 2024
91c14f4
Dependency(deps): Bump org.apache.maven.plugins:maven-surefire-plugin
dependabot[bot] Nov 6, 2024
27cd733
Merge pull request #2050 from jplag/reverse-distribution
tsaglam Nov 6, 2024
c7d39cd
Dependency(deps): Bump JamesIves/github-pages-deploy-action
dependabot[bot] Nov 13, 2024
5310202
Dependency(deps-dev): Bump vitest from 2.1.2 to 2.1.4 in /report-view…
dependabot[bot] Nov 17, 2024
8b80b18
Dependency(deps): Bump pinia from 2.2.5 to 2.2.6 in /report-viewer (#…
dependabot[bot] Nov 17, 2024
aa12c5e
Dependency(deps-dev): Bump @vue/tsconfig from 0.5.1 to 0.6.0 in /repo…
dependabot[bot] Nov 17, 2024
1b0fe00
Dependency(deps-dev): Bump @vitejs/plugin-vue from 5.1.4 to 5.1.5 in …
dependabot[bot] Nov 17, 2024
1704275
Dependency(deps-dev): Bump @pinia/testing from 0.1.6 to 0.1.7 in /rep…
dependabot[bot] Nov 17, 2024
4f6c6c1
Dependency(deps): Bump org.scalameta:scalameta_2.13
dependabot[bot] Nov 20, 2024
9a03c6a
Dependency(deps): Bump org.eclipse.emf:org.eclipse.emf.common
dependabot[bot] Nov 20, 2024
728ff65
Dependency(deps): Bump org.eclipse.emf:org.eclipse.emf.ecore
dependabot[bot] Nov 22, 2024
9fafe20
Dependency(deps-dev): Bump prettier-plugin-tailwindcss from 0.6.8 to …
dependabot[bot] Nov 24, 2024
78a5998
Dependency(deps-dev): Bump vitest from 2.1.4 to 2.1.5 in /report-view…
dependabot[bot] Nov 24, 2024
4b56975
Dependency(deps-dev): Bump vite from 5.4.10 to 5.4.11 in /report-view…
dependabot[bot] Nov 25, 2024
b3a1e57
Dependency(deps-dev): Bump prettier from 3.3.3 to 3.4.1 in /report-vi…
dependabot[bot] Nov 27, 2024
6d88487
Bump font awesome to 6.7.1 (#2084)
Kr0nox Nov 28, 2024
13d9de7
Dependency(deps-dev): Bump @playwright/test from 1.48.2 to 1.49.0 in …
dependabot[bot] Nov 28, 2024
862f483
Dependency(deps): Bump org.scalameta:scalameta_2.13
dependabot[bot] Nov 27, 2024
0dd5f8e
Implemented multi language language module
TwoOfTwelve Nov 28, 2024
d62a358
Added simple tests for multi language
TwoOfTwelve Dec 2, 2024
f9dfa80
Fixed build errors and code style
TwoOfTwelve Dec 2, 2024
1596034
Fixed error caused by number of languages
TwoOfTwelve Dec 2, 2024
631911f
Merge pull request #1960 from jplag/feature/tokenPositionTestsJava_An…
tsaglam Dec 3, 2024
2caf36f
Dependency(deps): Bump com.fasterxml.jackson.core:jackson-databind
dependabot[bot] Dec 4, 2024
d820bee
Dependency(deps): Bump org.eclipse.platform:org.eclipse.core.resources
dependabot[bot] Dec 4, 2024
918d9cf
Dependency(deps): Bump JamesIves/github-pages-deploy-action
dependabot[bot] Dec 4, 2024
31c2c2d
Fixed sonarcloud issues
TwoOfTwelve Dec 4, 2024
f660c08
Fixed sonarcloud issues
TwoOfTwelve Dec 4, 2024
0774cc7
Merge pull request #2087 from TwoOfTwelve/feature/bachelorAlex-multiL…
robinmaisch Dec 4, 2024
1fde10e
Dependency(deps): Bump vue from 3.5.12 to 3.5.13 in /report-viewer (#…
dependabot[bot] Dec 4, 2024
82e5d45
Dependency(deps): Bump pinia from 2.2.6 to 2.3.0 in /report-viewer (#…
dependabot[bot] Dec 5, 2024
7d58ca9
Dependency(deps): Bump vue-router from 4.4.5 to 4.5.0 in /report-view…
dependabot[bot] Dec 5, 2024
03d0db6
Updated the swift implementation to the new framework
TwoOfTwelve Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/complete-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
node-version: "18"

- name: Build Assembly
run: mvn -Pwith-report-viewer -DskipTests clean package assembly:single
run: mvn -DskipTests clean package assembly:single

- name: Rename Jar
run: mv cli/target/jplag-*-jar-with-dependencies.jar cli/target/jplag.jar
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- "**/pom.xml"
- "**.java"
- "**.g4"
- "report-viewer/**"
pull_request:
types: [opened, synchronize, reopened]
paths:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ jobs:
with:
node-version: "18"

- name: Set version of Report Viewer
shell: bash
run: |
VERSION=$(grep "<revision>" pom.xml | grep -oPm1 "(?<=<revision>)[^-|<]+")
MAJOR=$(echo $VERSION | cut -d '.' -f 1)
MINOR=$(echo $VERSION | cut -d '.' -f 2)
PATCH=$(echo $VERSION | cut -d '.' -f 3)
json=$(cat report-viewer/src/version.json)
json=$(echo "$json" | jq --arg MAJOR "$MAJOR" --arg MINOR "$MINOR" --arg PATCH "$PATCH" '.report_viewer_version |= { "major": $MAJOR | tonumber, "minor": $MINOR | tonumber, "patch": $PATCH | tonumber }')
echo "$json" > report-viewer/src/version.json
echo "Version of Report Viewer:"
cat report-viewer/src/version.json

- name: Build JPlag
run: mvn -Pwith-report-viewer -U -B clean package assembly:single

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-viewer-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
npm run build-demo

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.1
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages
folder: report-viewer/dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-viewer-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
npm run build-dev

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.1
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages
folder: report-viewer/dist
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/report-viewer.yml

This file was deleted.

15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img alt="JPlag logo" src="core/src/main/resources/de/jplag/logo-dark.png" width="350">
</p>

# JPlag - Detecting Software Plagiarism
# JPlag - Detecting Source Code Plagiarism
[![CI Build](https://github.com/jplag/jplag/actions/workflows/maven.yml/badge.svg)](https://github.com/jplag/jplag/actions/workflows/maven.yml)
[![Latest Release](https://img.shields.io/github/release/jplag/jplag.svg)](https://github.com/jplag/jplag/releases/latest)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.jplag/jplag/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.jplag/jplag)
Expand All @@ -13,7 +13,7 @@
[![Java Version](https://img.shields.io/badge/java-SE%2021-yellowgreen)](#download-and-installation)


JPlag finds pairwise similarities among a set of multiple programs. It can reliably detect software plagiarism and collusion in software development, even when obfuscated. All similarities are calculated locally, and no source code or plagiarism results are ever uploaded to the internet. JPlag supports a large number of programming and modeling languages.
JPlag finds pairwise similarities among a set of multiple programs. It can reliably detect software plagiarism and collusion in software development, even when obfuscated. All similarities are calculated locally; no source code or plagiarism results are ever uploaded online. JPlag supports a large number of programming and modeling languages.

* 📈 [JPlag Demo](https://jplag.github.io/Demo/)

Expand Down Expand Up @@ -53,7 +53,7 @@ You need Java SE 21 to run or build JPlag.

### Downloading a release
* Download a [released version](https://github.com/jplag/jplag/releases).
* In case you depend on the legacy version of JPlag we refer to the [legacy release v2.12.1](https://github.com/jplag/jplag/releases/tag/v2.12.1-SNAPSHOT) and the [legacy branch](https://github.com/jplag/jplag/tree/legacy).
* In case you depend on the legacy version of JPlag, we refer to the [legacy release v2.12.1](https://github.com/jplag/jplag/releases/tag/v2.12.1-SNAPSHOT) and the [legacy branch](https://github.com/jplag/jplag/tree/legacy).

### Via Maven
JPlag is released on [Maven Central](https://search.maven.org/search?q=de.jplag), it can be included as follows:
Expand All @@ -78,7 +78,7 @@ JPlag can either be used via the CLI or directly via its Java API. For more info
### CLI
*Note that the [legacy CLI](https://github.com/jplag/jplag/blob/legacy/README.md) is varying slightly.*
The language can either be set with the -l parameter or as a subcommand (`jplag [jplag options] <language name> [language options]`). A subcommand takes priority over the -l option.
When using the subcommand, language-specific arguments can be set. A list of language-specific options can be obtained by requesting the help page of a subcommand (e.g. `jplag java -h`).
Language-specific arguments can be set when using the subcommand. A list of language-specific options can be obtained by requesting the help page of a subcommand (e.g., `jplag java h`).

```
Parameter descriptions:
Expand Down Expand Up @@ -108,6 +108,7 @@ Advanced
-d, --debug Store on-parsable files in error folder.
-m, --similarity-threshold=<similarityThreshold>
Comparison similarity threshold [0.0-1.0]: All comparisons above this threshold will be saved (default: 0.0).
--overwrite Existing result files will be overwritten.
-p, --suffixes=<suffixes>[,<suffixes>...]
comma-separated list of all filename suffixes that are included.
-P, --port=<port> The port used for the internal report viewer (default: 1996).
Expand All @@ -130,7 +131,7 @@ Subsequence Match Merging
--neighbor-length=<minimumNeighborLength>
Minimal length of neighboring matches to be merged (between 1 and minTokenMatch, default: 2).

Subcommands (supported languages):
Languages:
c
cpp
csharp
Expand Down Expand Up @@ -183,7 +184,7 @@ Please consider our [guidelines for contributions](https://github.com/jplag/JPla

## Contact
If you encounter bugs or other issues, please report them [here](https://github.com/jplag/jplag/issues).
For other purposes, you can contact us at jplag@ipd.kit.edu .
If you are doing research related to JPlag, we would love to know what you are doing. Feel free to contact us!
For other purposes, you can contact us at jplag@ipd.kit.edu.
We would love to hear about your research related to JPlag. Feel free to contact us!

### More information can be found in our [Wiki](https://github.com/jplag/JPlag/wiki)!
7 changes: 6 additions & 1 deletion cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@
<artifactId>llvmir</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>de.jplag</groupId>
<artifactId>multi-language</artifactId>
<version>${revision}</version>
</dependency>
<!-- CLI -->
<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
Expand Down Expand Up @@ -183,7 +188,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version>
<version>3.5.0</version>
<executions>
<execution>
<id>npm install</id>
Expand Down
10 changes: 7 additions & 3 deletions cli/src/main/java/de/jplag/cli/CLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import de.jplag.JPlag;
import de.jplag.JPlagResult;
import de.jplag.cli.logger.CliProgressBarProvider;
import de.jplag.cli.logger.CollectedLogger;
import de.jplag.cli.logger.CollectedLoggerFactory;
import de.jplag.cli.picocli.CliInputHandler;
import de.jplag.exceptions.ExitException;
Expand Down Expand Up @@ -42,14 +43,16 @@ public CLI(String[] args) {
}

/**
* Executes the cli
* Executes the cli.
* @throws ExitException If anything on the side of JPlag goes wrong
* @throws IOException If any files did not work
*/
public void executeCli() throws ExitException, IOException {
logger.debug("Your version of JPlag is {}", JPlag.JPLAG_VERSION);
JPlagVersionChecker.printVersionNotification();

if (!this.inputHandler.parse()) {
CollectedLogger.setLogLevel(this.inputHandler.getCliOptions().advanced.logLevel);
ProgressBarLogger.setProgressBarProvider(new CliProgressBarProvider());

switch (this.inputHandler.getCliOptions().mode) {
Expand Down Expand Up @@ -84,7 +87,7 @@ public boolean executeCliAndHandleErrors() {
}

/**
* Runs JPlag and returns the file the result has been written to
* Runs JPlag and returns the file the result has been written to.
* @return The file containing the result
* @throws ExitException If JPlag threw an exception
* @throws FileNotFoundException If the file could not be written
Expand All @@ -103,11 +106,12 @@ public File runJPlag() throws ExitException, FileNotFoundException {
}

/**
* Runs the report viewer using the given file as the default result.zip
* Runs the report viewer using the given file as the default result.zip.
* @param zipFile The zip file to pass to the viewer. Can be null, if no result should be opened by default
* @throws IOException If something went wrong with the internal server
*/
public void runViewer(File zipFile) throws IOException {
finalizeLogger(); // Prints the errors. The later finalizeLogger will print any errors logged after this point.
JPlagRunner.runInternalServer(zipFile, this.inputHandler.getCliOptions().advanced.port);
}

Expand Down
4 changes: 2 additions & 2 deletions cli/src/main/java/de/jplag/cli/JPlagOptionsBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import de.jplag.options.JPlagOptions;

/**
* Handles the building of JPlag options from the cli options
* Handles the building of JPlag options from the cli options.
*/
public class JPlagOptionsBuilder {
private static final Logger logger = LoggerFactory.getLogger(JPlagOptionsBuilder.class);
Expand All @@ -25,7 +25,7 @@ public class JPlagOptionsBuilder {
private final CliOptions cliOptions;

/**
* @param cliInputHandler The cli handler containing the parsed cli options
* @param cliInputHandler The cli handler containing the parsed cli options.
*/
public JPlagOptionsBuilder(CliInputHandler cliInputHandler) {
this.cliInputHandler = cliInputHandler;
Expand Down
8 changes: 6 additions & 2 deletions cli/src/main/java/de/jplag/cli/JPlagRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private JPlagRunner() {
}

/**
* Executes JPlag
* Executes JPlag.
* @param options The options to pass to JPlag
* @return The result returned by JPlag
* @throws ExitException If JPlag throws an error
Expand All @@ -43,7 +43,11 @@ public static void runInternalServer(File zipFile, int port) throws IOException
ReportViewer reportViewer = new ReportViewer(zipFile, port);
int actualPort = reportViewer.start();
logger.info("ReportViewer started on port http://localhost:{}", actualPort);
Desktop.getDesktop().browse(URI.create("http://localhost:" + actualPort + "/"));
if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
Desktop.getDesktop().browse(URI.create("http://localhost:" + actualPort + "/"));
} else {
logger.info("Could not open browser. You can open the Report Viewer here: http://localhost:{}/", actualPort);
}

System.out.println("Press Enter key to exit...");
System.in.read();
Expand Down
91 changes: 91 additions & 0 deletions cli/src/main/java/de/jplag/cli/JPlagVersionChecker.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
package de.jplag.cli;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
import java.util.Optional;

import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonObject;
import javax.json.JsonReader;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import de.jplag.JPlag;
import de.jplag.reporting.reportobject.model.Version;

/**
* Handles the check for newer versions.
*/
public class JPlagVersionChecker {
private static final String API_URL = "https://api.github.com/repos/jplag/JPlag/releases";
private static final Logger logger = LoggerFactory.getLogger(JPlagVersionChecker.class);
private static final String EXPECTED_VERSION_FORMAT = "v\\d\\.\\d\\.\\d+";
private static final String WARNING_UNABLE_TO_FETCH = "Unable to fetch version information. New version notification will not work.";
private static final String NEWER_VERSION_AVAILABLE = "There is a newer version ({}) available. You can download the newest version here: https://github.com/jplag/JPlag/releases";
private static final String UNEXPECTED_ERROR = "There was an unexpected error, when checking for new versions. Please report this on: https://github.com/jplag/JPlag/issues";

private JPlagVersionChecker() {

}

/**
* Prints a warning if a newer version is available on GitHub.
*/
public static void printVersionNotification() {
Optional<Version> newerVersion = checkForNewVersion();
newerVersion.ifPresent(version -> logger.warn(NEWER_VERSION_AVAILABLE, version));
}

private static Optional<Version> checkForNewVersion() {
try {
JsonArray array = fetchApi();
Version newest = getNewestVersion(array);
Version current = JPlag.JPLAG_VERSION;

if (newest.compareTo(current) > 0) {
return Optional.of(newest);
}
} catch (IOException | URISyntaxException e) {
logger.info(WARNING_UNABLE_TO_FETCH);
} catch (Exception e) {
logger.warn(UNEXPECTED_ERROR, e);
}

return Optional.empty();
}

private static JsonArray fetchApi() throws IOException, URISyntaxException {
URL url = new URI(API_URL).toURL();
URLConnection connection = url.openConnection();

try (JsonReader reader = Json.createReader(connection.getInputStream())) {
return reader.readArray();
}
}

private static Version getNewestVersion(JsonArray apiResult) {
return apiResult.stream().map(JsonObject.class::cast).map(version -> version.getString("name"))
.filter(versionName -> versionName.matches(EXPECTED_VERSION_FORMAT)).limit(1).map(JPlagVersionChecker::parseVersion).findFirst()
.orElse(JPlag.JPLAG_VERSION);
}

/**
* Parses the version name.
* @param versionName The version name. The expected format is: v[major].[minor].[patch]
* @return The parsed version
*/
private static Version parseVersion(String versionName) {
String withoutPrefix = versionName.substring(1);
String[] parts = withoutPrefix.split("\\.");
return parseVersionParts(parts);
}

private static Version parseVersionParts(String[] parts) {
return new Version(Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), Integer.parseInt(parts[2]));
}
}
4 changes: 2 additions & 2 deletions cli/src/main/java/de/jplag/cli/OutputFileGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import de.jplag.reporting.reportobject.ReportObjectFactory;

/**
* Manages the creation of output files
* Manages the creation of output files.
*/
public final class OutputFileGenerator {
private static final Logger logger = LoggerFactory.getLogger(OutputFileGenerator.class);
Expand All @@ -40,7 +40,7 @@ public static void generateCsvOutput(JPlagResult result, File outputRoot, CliOpt
}

/**
* Generates the JPLag result zip
* Generates the JPLag result zip.
* @param result The JPlag result
* @param outputFile The output file
* @throws FileNotFoundException If the file cannot be written
Expand Down
Loading
Loading