Anti-Plagiarism is a block plugin for Moodle. It can detect cheating
in programming assignments. Also support html and plain text files. 
The core engine is MOSS.

Details: https://github.com/hit-moodle/anti_plagiarism/wiki
