Java Language detection Engine cloned from https://code.google.com/p/language-detection/