jplag / JPlag

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

Added idle bars #1680

Closed TwoOfTwelve closed 5 months ago

TwoOfTwelve commented 6 months ago

Adds Idle Bars, that behave like progress bars, but do not show a linear progress and instead only indicate that something is happening. They can be used, when the amount of operations is unknown.

TwoOfTwelve commented 6 months ago

@tsaglam Could you check if this looks right on Mac?

Just run the main method, that is in IdleBar.java

Kr0nox commented 6 months ago

Works good in windows terminals. Only thing I noticed was that the bouncer did not reach the left end full. There alsways was a space between < and <+>.

TwoOfTwelve commented 6 months ago

I can see the same effect happening. There are definitely "frames" of the animation, where there is no space in between. I think this is mainly happening because the terminal is not always updated in time. I think there is no way to prevent that from happening with pure Java.

Kr0nox commented 5 months ago

I could not see it hit the left side a single time. So maybe there actually is a windows issue here?

TwoOfTwelve commented 5 months ago

Could you try it now? I have increased the time between frames, so it should not skip over that frame as often.

Kr0nox commented 5 months ago

yes, with this delay it works

Kr0nox commented 5 months ago

@TwoOfTwelve I dont get a progess bar during clustering is that on purpose?

sonarcloud[bot] commented 5 months ago

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

Issues
1 New issue
0 Accepted issues

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

See analysis details on SonarCloud