fix several bugs in SourceCodeClassifier