Skip to content

Instantly share code, notes, and snippets.

@Daenyth
Daenyth / hoconLeftovers.scala
Created June 6, 2024 13:38 — forked from Baccata/hoconLeftovers.scala
Poor man's solution for getting the "remainder" of a hocon config after its decoding, in order to increase confidence when moving/deleting config values
//> 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}
#!/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