Cheating detection script [duplicate]

The pandemics has incredibly increased the number of cheating cases. Do you know of any script (bash or other scripting language) for checking a bunch of Java code submissions for similarity? I know I could use diff, but it would be hard to detect similarity.

• Let me give a warning about such things, as I've done on another site. Any cheating detection system, automated or not, needs to have the property that it produces zero false positives. But it isn't well understood that a system permitting no false positives will almost invariably produce some false negatives. But the consequences of error in a cheating detection system are so asymmetrical that such a rule is required. So, to use such a script, if it exists, you need additional measures as well to assure fair treatment. Nov 20 '20 at 16:37
• If your question is different from the one indicated in the closed message, please edit the question to make the difference clearer and it can be reopened.
– Ben I.
Nov 22 '20 at 22:55