I wrote this program (DirList.java) to check for copied programs among students. Here's how it works!
The program (DirList.java, ) sits in my "grading"
folder. When I run it, I give a directory I want to check for plagiarism
(Ex - "week3"). I also give a threshold of percent matched lines to report on
(EX - 85 will only report if 85% of the lines matched).
The progam compares the contents of each sub folder of that directory("week3"),
prints results to the console and to a text file. In my case, I make the sub folder name the student's name. The sub folder and the file are reported if matches are found. The program is not too sophisticated, it does strip off blank lines and full or multi line comments. It does only look at files with the .java extension, all the rest are ignored. Other than that it just checks line by line. I might make it better with time.
IMPORTANT DISCLAMER - I have collected these materials over the past few years, some from my own mind and others from materials I have found and have been given. The line has blurred - I do not re-call the origination of all this information. If anyone feels there is information here which should be credited to them, please advise me. I will remove the information if that is the request or cite the true owner on this page.