Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
shingle_size=4
feature_count=1024
if [[ ! -d $1 || ! -d $2 ]]; then
echo "Usage: <dir1> <dir2>"
exit 1
fi
simhash -f $feature_count -s $shingle_size -w $1/*.class
simhash -f $feature_count -s $shingle_size -w $2/*.class