Final clean versions of logs analysis code in Java.