It is useful to remove comments and literals before frequency analysis.
Simple metrics: number of bytes, LOC, and how many characters are spent for indentation.
Frequency analysis of substrings in the code.
String length (1):
Predicted length (1):
Use tokens, expressions or statements as the atoms in selection.
Refactorings based on selected elements.