use active patterns to clean up SourceCodeClassifier
fix compilation
refactoring according to review
Merge pull request #528 from vasily-kirichenko/SourceCodeClassifier-refactoring

Source code classifier refactoring