revert to the deprecated methods in SourceCodeClassifier