5af0433fd038d17f3aa335008af1aadc377cf784
Files Diff
- Added: 10
- Removed: 1
- Renamed: 0
- Modified: 77
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Parameterize Variable | 6 | ||
Parameterize Variable expectedResults : String[] to expected : String[] in method private runTest(input String, expected String[], sentenceFinalPuncWords String[], whitespaceTokenize boolean) : void in class edu.stanford.nlp.process.DocumentPreprocessorTest | From | To | |
Parameterize Variable test : String to input : String in method private runTest(input String, expected String[], sentenceFinalPuncWords String[], whitespaceTokenize boolean) : void in class edu.stanford.nlp.process.DocumentPreprocessorTest | From | To | |
Rename Attribute | 2 | ||
Rename Attribute ptbGold : String[][] to spanishGold : String[][] in class edu.stanford.nlp.international.spanish.SpanishTokenizerITest | From | To | |
Rename Attribute ptbInputs : String[] to spanishInputs : String[] in class edu.stanford.nlp.international.spanish.SpanishTokenizerITest | From | To | |
Change Variable Type | 3 | ||
Change Variable Type results : ArrayList<String> to results : List<String> in method private runTest(input String, expected String[], sentenceFinalPuncWords String[], whitespaceTokenize boolean) : void in class edu.stanford.nlp.process.DocumentPreprocessorTest | From | To | |
Extract Method | 5 | ||
Extract Method private runTest(input String, expected String[], sentenceFinalPuncWords String[], whitespaceTokenize boolean) : void extracted from public testSetSentencePunctWords() : void in class edu.stanford.nlp.process.DocumentPreprocessorTest | From | To | |
Extract Method private runTest(input String, expected String[]) : void extracted from public testText() : void in class edu.stanford.nlp.process.DocumentPreprocessorTest | From | To | |
Extract Method public tripleToString(extraction RelationTriple, docid String, sentence CoreMap) : String extracted from private processDocument(pipeline AnnotationPipeline, docid String, document String) : void in class edu.stanford.nlp.naturalli.OpenIE | From | To | |
Extract Method private runSpanish(tf TokenizerFactory<CoreLabel>, inputs String[], gold String[][]) : void extracted from public testSpanishTokenizerWord() : void in class edu.stanford.nlp.international.spanish.SpanishTokenizerITest | From | To | |
Extract Method private runTest(input String, expected String[], sentenceFinalPuncWords String[], whitespaceTokenize boolean) : void extracted from public testWhitespaceTokenization() : void in class edu.stanford.nlp.process.DocumentPreprocessorTest | From | To | |
Extract And Move Method | 2 | ||
Extract And Move Method private sendAndGetResponse(httpExchange HttpExchange, response byte[]) : void extracted from public handle(httpExchange HttpExchange) : void in class edu.stanford.nlp.pipeline.StanfordCoreNLPServer.TokensRegexHandler & moved to class edu.stanford.nlp.pipeline.StanfordCoreNLPServer | From | To | |
Extract And Move Method private sendAndGetResponse(httpExchange HttpExchange, response byte[]) : void extracted from public handle(httpExchange HttpExchange) : void in class edu.stanford.nlp.pipeline.StanfordCoreNLPServer.SemgrexHandler & moved to class edu.stanford.nlp.pipeline.StanfordCoreNLPServer | From | To |