The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

School-Code-Compare

This program is written in the Perl Programming Language.

Purpose

Compare files containing source code (or any plain text) on similarity to each other. This may help you to find files which contain similar code.

The approach is simplistic: Whitespace and comments are trimmed, then all files are compared using the Levenshtein algorithm.

Future releases may bring more sophisticated techniques.

Example Usage

bash find path/to/projects -type f -name Cow.java | perl -Ilib bin/find_similar_code.pl java -o html