This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using dep "com.typesafe:config:1.4.3" | |
//> using dep "com.github.pureconfig::pureconfig:0.17.6" | |
//> using scala "2.13.14" | |
import com.typesafe.config._ | |
import pureconfig.generic.semiauto._ | |
import pureconfig.ConfigReader | |
import pureconfig.ConfigSource | |
import java.{util => ju} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |