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

Select file in view mode #2074

Closed
wants to merge 479 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
479 commits
Select commit Hold shift + click to select a range
38e72cd
Merge pull request #1871 from jplag/report-viwer/fix-scroll
tsaglam Jul 19, 2024
7e51788
Merge pull request #1880 from jplag/report-viewer/common-file-path
tsaglam Jul 19, 2024
5e89cd7
Sonarcloud
TwoOfTwelve Jul 19, 2024
ebd2505
Moved git hooks out of the report-viewer and removed husky
TwoOfTwelve Jul 19, 2024
cf76889
Dependency(deps): Bump org.apache.maven.plugins:maven-javadoc-plugin
dependabot[bot] Jul 24, 2024
9bbe477
Dependency(deps-dev): Bump jsdom from 24.1.0 to 24.1.1 in /report-vie…
dependabot[bot] Jul 24, 2024
9dc5d2a
Dependency(deps-dev): Bump vue-tsc from 2.0.26 to 2.0.28 in /report-v…
dependabot[bot] Jul 24, 2024
3af07fe
Dependency(deps-dev): Bump @types/node from 18.19.39 to 18.19.42 in /…
dependabot[bot] Jul 24, 2024
c6e174d
Dependency(deps-dev): Bump prettier from 3.3.2 to 3.3.3 in /report-vi…
dependabot[bot] Jul 24, 2024
6e4ef50
Dependency(deps): Bump vue from 3.4.31 to 3.4.33 in /report-viewer (#…
dependabot[bot] Jul 24, 2024
f61df9a
Java pre commit hook checks if mvn is installed and install script is…
TwoOfTwelve Jul 26, 2024
e8e1368
Fixed wrong order of progress bar dispose.
TwoOfTwelve Jul 26, 2024
2d9e4f6
move to soring by calling exposed function
Kr0nox Jul 27, 2024
afe6897
Merge remote-tracking branch 'origin/develop' into report-viewer/file…
Kr0nox Jul 27, 2024
6094896
Merge remote-tracking branch 'origin/develop' into report-viewer/min-…
Kr0nox Jul 27, 2024
36aa349
add toast to page
Kr0nox Jul 27, 2024
15f04cc
save shown state in session storage
Kr0nox Jul 27, 2024
43eb2ba
make colors lighter
Kr0nox Jul 30, 2024
5ccddb4
Revert disabling of topological sorting.
tsaglam Jul 30, 2024
86af3f8
Revert to more compact method reference syntax.
tsaglam Jul 30, 2024
36f025c
Merge pull request #1872 from jplag/feature/improved-normalization
tsaglam Jul 31, 2024
acde1ba
Dependency(deps-dev): Bump husky from 9.0.11 to 9.1.4 in /report-view…
dependabot[bot] Jul 31, 2024
d7a2c47
Dependency(deps-dev): Bump postcss from 8.4.39 to 8.4.40 in /report-v…
dependabot[bot] Jul 31, 2024
6f69770
Dependency(deps-dev): Bump @playwright/test from 1.45.1 to 1.45.3 in …
dependabot[bot] Jul 31, 2024
ea2b316
Dependency(deps-dev): Bump @vitejs/plugin-vue from 5.0.5 to 5.1.1 in …
dependabot[bot] Jul 31, 2024
0a75f23
Dependency(deps): Bump org.scalameta:scalameta_2.13 from 4.9.8 to 4.9.9
dependabot[bot] Jul 31, 2024
e2f9b23
Dependency(deps): Bump vue from 3.4.33 to 3.4.35 in /report-viewer (#…
dependabot[bot] Jul 31, 2024
eb6dca8
Merge pull request #1866 from jplag/feature/avoidProgressBarOverlap
tsaglam Aug 1, 2024
d9b000d
Merge pull request #1892 from jplag/report-viewer/min-version-toast
tsaglam Aug 2, 2024
4e32d90
Update Tooltips
Kr0nox Aug 2, 2024
490385b
Added warning and readme
TwoOfTwelve Aug 2, 2024
0ea796a
Merge branch 'develop' into feature/gitPreCommit
Kr0nox Aug 2, 2024
a0a6233
Merge pull request #1891 from jplag/report-viewer/file-sorting
tsaglam Aug 2, 2024
d150a6a
refactor language names
Kr0nox Aug 3, 2024
08bf805
update names in report viewer
Kr0nox Aug 3, 2024
bcec0e2
fix report viewer build
Kr0nox Aug 3, 2024
a43de41
Added a warning when a newer version is available in the cli.
TwoOfTwelve Aug 5, 2024
e3db86d
Print error messages before starting local server
TwoOfTwelve Aug 5, 2024
0dac1cd
Spotless
TwoOfTwelve Aug 5, 2024
e3d6442
Sonarcloud
TwoOfTwelve Aug 5, 2024
ad2e8d0
Added check for npm
TwoOfTwelve Aug 5, 2024
1332645
Added correct command to install checks
TwoOfTwelve Aug 5, 2024
cc5532d
Merge pull request #1905 from jplag/feature/printErrorsBeforeStarting…
tsaglam Aug 6, 2024
d342ea8
Prevented crashes during new version check.
TwoOfTwelve Aug 7, 2024
a93f9cb
Simplified regex
TwoOfTwelve Aug 7, 2024
e767ae1
Dependency(deps): Bump org.codehaus.mojo:exec-maven-plugin
dependabot[bot] Aug 7, 2024
950987d
Dependency(deps): Bump antlr4.version from 4.13.1 to 4.13.2
dependabot[bot] Aug 7, 2024
76b459f
Dependency(deps): Bump slf4j.version from 2.0.13 to 2.0.14
dependabot[bot] Aug 7, 2024
9b2c31d
Added structure for token position tests.
TwoOfTwelve Aug 7, 2024
465316a
Added missing test source.
TwoOfTwelve Aug 7, 2024
cf938ec
Removed the install-hook scripts and added the required call to the w…
TwoOfTwelve Aug 7, 2024
458e8de
Ignoring empty tests for token positions.
TwoOfTwelve Aug 7, 2024
f5896a6
Dependency(deps-dev): Bump vue-tsc from 2.0.28 to 2.0.29 in /report-v…
dependabot[bot] Aug 7, 2024
00ca743
Dependency(deps-dev): Bump @playwright/test from 1.45.3 to 1.46.0 in …
dependabot[bot] Aug 8, 2024
c628b70
Dependency(deps): Bump @fortawesome/free-brands-svg-icons from 6.5.2 …
dependabot[bot] Aug 8, 2024
3b82e08
Dependency(deps-dev): Bump @rushstack/eslint-patch from 1.10.3 to 1.1…
dependabot[bot] Aug 8, 2024
3bd16ef
Dependency(deps): Bump vue from 3.4.35 to 3.4.36 in /report-viewer (#…
dependabot[bot] Aug 8, 2024
9c18738
Changed output for version checking
TwoOfTwelve Aug 8, 2024
6e0047a
Merge pull request #1904 from jplag/feature/newVersionNotification
tsaglam Aug 8, 2024
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
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
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
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
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
3079754
Added the option to specify a result file with --move VIEW
TwoOfTwelve Nov 20, 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/[email protected].1
uses: JamesIves/[email protected].8
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/[email protected].1
uses: JamesIves/[email protected].8
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.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ Parameter descriptions:
-l, --language=<language>
Select the language of the submissions (default: java). See subcommands below.
-M, --mode=<{RUN, VIEW, RUN_AND_VIEW}>
The mode of JPlag: either only run analysis, only open the viewer, or do both (default: null)
The mode of JPlag. If VIEW is chosen, you can specify a result file to display with either the positional argument, '--new', '--old' or '-r'. Make
sure to only specify one if you do that. One of: RUN, VIEW, RUN_AND_VIEW (default: null)
-n, --shown-comparisons=<shownComparisons>
The maximum number of comparisons that will be shown in the generated report, if set to -1 all comparisons will be shown (default: 500)
-new, --new=<newDirectories>[,<newDirectories>...]
Expand All @@ -108,6 +109,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 +132,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
2 changes: 1 addition & 1 deletion cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,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
12 changes: 8 additions & 4 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,19 +43,21 @@ 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) {
case RUN -> runJPlag();
case VIEW -> runViewer(null);
case VIEW -> runViewer(this.inputHandler.getFileForViewMode());
case RUN_AND_VIEW -> runViewer(runJPlag());
}
}
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
19 changes: 14 additions & 5 deletions cli/src/main/java/de/jplag/cli/logger/CliProgressBarProvider.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package de.jplag.cli.logger;

import java.util.Set;

import org.slf4j.event.Level;

import de.jplag.logging.ProgressBar;
import de.jplag.logging.ProgressBarProvider;
import de.jplag.logging.ProgressBarType;
Expand All @@ -11,16 +15,21 @@
* A ProgressBar provider, that used the tongfei progress bar library underneath, to show progress bars on the cli.
*/
public class CliProgressBarProvider implements ProgressBarProvider {
private static final Set<Level> allowedLogLevels = Set.of(Level.INFO);

@Override
public ProgressBar initProgressBar(ProgressBarType type, int totalSteps) {
if (type.isIdleBar()) {
IdleBar idleBar = new IdleBar(type.getDefaultText());
idleBar.start();
return idleBar;
} else {
if (allowedLogLevels.contains(CollectedLogger.getLogLevel())) {
if (type.isIdleBar()) {
IdleBar idleBar = new IdleBar(type.getDefaultText());
idleBar.start();
return idleBar;
}
me.tongfei.progressbar.ProgressBar progressBar = new ProgressBarBuilder().setTaskName(type.getDefaultText()).setInitialMax(totalSteps)
.setStyle(ProgressBarStyle.ASCII).build();
return new TongfeiProgressBar(progressBar);
} else {
return new VoidProgressBar();
}
}
}
Loading