@@ -23,18 +23,12 @@ public class DocFeatureHandler {
2323 private ArrayList <String > automaticFeatureSet ;
2424 private HashMap <String , AnnotatedMethod > manualFeatureData ;
2525 private HashMap <String , HashMap <String , Double >> automaticFeatureData ;
26- private Set <Method > methodSet ;
2726
28- public DocFeatureHandler (Set < Method > trainingSet ) {
27+ public DocFeatureHandler () {
2928 manualFeatureSet = new HashSet <>();
3029 manualFeatureData = new HashMap <>();
3130 automaticFeatureSet = new ArrayList <>();
3231 automaticFeatureData = new HashMap <>();
33- methodSet = new HashSet <>(trainingSet );
34- }
35-
36- public Set <Method > getMethodSet () {
37- return methodSet ;
3832 }
3933
4034 public HashMap <String , AnnotatedMethod > getManualFeatureData () {
@@ -45,12 +39,12 @@ public HashMap<String, HashMap<String, Double>> getAutomaticFeatureData() {
4539 return automaticFeatureData ;
4640 }
4741
48- public void evaluateManualFeatureData () {
42+ public void evaluateManualFeatureData (Set < Method > methodSet ) {
4943 CoreNLPExecutor nlpExecutor = new CoreNLPExecutor ();
5044 manualFeatureData = nlpExecutor .run (new ArrayList <>(methodSet ));
5145 }
5246
53- public void evaluateAutomaticFeatureData () {
47+ public void evaluateAutomaticFeatureData (Set < Method > methodSet ) {
5448 DocCommentVector docCommentVector = new DocCommentVector ();
5549 docCommentVector .fitVectors ();
5650
0 commit comments