ab79c91b0441b4f043e4b98e4577de89a6cc56f6
Files Diff
- Added: 4
- Removed: 0
- Renamed: 0
- Modified: 87
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Rename Method | 11 | ||
Move And Rename Method public setSpeakerIdIsAutoDetermined(value boolean) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public mergeSpeakerInfo(value CoreNLPProtos.SpeakerInfo) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder | From | To | |
Move And Rename Method public getSpeakerIdBytes() : ByteString from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public getSentenceIDBytes() : ByteString from class edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder | From | To | |
Move And Rename Method public getSpeakerId() : String from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo to public getSentenceID() : String from class edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence | From | To | |
Move And Rename Method public clearSpeakerId() : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public clearSentenceID() : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder | From | To | |
Move And Rename Method public getSpeakerIdBytes() : ByteString from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo to public getSentenceIDBytes() : ByteString from class edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence | From | To | |
Move And Rename Method public clearSpeakerDesc() : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public clearSpeakerInfo() : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder | From | To | |
Move And Rename Method public setSpeakerIdBytes(value ByteString) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public setSentenceIDBytes(value ByteString) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder | From | To | |
Move And Rename Method public setSpeakerIdIsNumber(value boolean) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public setSpeakerInfo(builderForValue CoreNLPProtos.SpeakerInfo.Builder) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder | From | To | |
Move And Rename Method public getSpeakerId() : String from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public getSentenceID() : String from class edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder | From | To | |
Move And Rename Method public setSpeakerDesc(value String) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public setSpeakerInfo(value CoreNLPProtos.SpeakerInfo) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder | From | To | |
Move And Rename Method public setSpeakerId(value String) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder to public setSentenceID(value String) : Builder from class edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder | From | To | |
Change Parameter Type | 4 | ||
Change Parameter Type value : String to value : CoreNLPProtos.SpeakerInfo in method public setSpeakerInfo(value CoreNLPProtos.SpeakerInfo) : Builder in class edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder | From | To | |
Change Parameter Type value : boolean to builderForValue : CoreNLPProtos.SpeakerInfo.Builder in method public setSpeakerInfo(builderForValue CoreNLPProtos.SpeakerInfo.Builder) : Builder in class edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder | From | To | |
Change Parameter Type value : boolean to value : CoreNLPProtos.SpeakerInfo in method public mergeSpeakerInfo(value CoreNLPProtos.SpeakerInfo) : Builder in class edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder | From | To | |
Change Parameter Type pattern : SequencePattern to pattern : SequencePattern<CoreMap> in method public TokenSequenceMatcher(pattern SequencePattern<CoreMap>, tokens List<? extends CoreMap>) in class edu.stanford.nlp.ling.tokensregex.TokenSequenceMatcher | From | To | |
Rename Variable | 3 | ||
Rename Variable v : String to stringPairEntry : Map.Entry<String,Pair<Pattern,String>> in method public expandStringRegex(regex String) : String in class edu.stanford.nlp.ling.tokensregex.Env | From | To | |
Rename Variable inputfiles : Collection<File> to inputFiles : Collection<File> in method public run() : void in class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Rename Variable verbExtraction : Optional<RelationTriple> to extraction : Optional<RelationTriple> in method public segment(parse SemanticGraph, confidence Optional<Double>, consumeAll boolean) : Optional<RelationTriple> in class edu.stanford.nlp.naturalli.RelationTripleSegmenter | From | To | |
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 | |
Replace Variable With Attribute | 1 | ||
Replace Variable With Attribute setupTime : long to pipelineSetupTime : long in method public run() : void in class edu.stanford.nlp.pipeline.StanfordCoreNLP | 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 | |
Extract Variable | 1 | ||
Extract Variable pairs : Map<Pair<Integer,Integer>,Boolean> in method public runCoref(document Document) : void from class edu.stanford.nlp.scoref.BestFirstCorefSystem | From | To | |
Change Variable Type | 4 | ||
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 | |
Change Variable Type v : String to stringPairEntry : Map.Entry<String,Pair<Pattern,String>> in method public expandStringRegex(regex String) : String in class edu.stanford.nlp.ling.tokensregex.Env | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type srparser : ShiftReduceParser to srparser : Lazy<ShiftReduceParser> in class edu.stanford.nlp.parser.server.LexicalizedParserServerITest | From | To | |
Extract Method | 6 | ||
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 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 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 private getLoggerAndLevel(channel Object[]) : Pair<Logger,Redwood.Flag> extracted from public print(channel Object[], line String) : void in class edu.stanford.nlp.util.logging.SLF4JHandler | 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 | |
Rename Parameter | 2 | ||
Rename Parameter value : boolean to builderForValue : CoreNLPProtos.SpeakerInfo.Builder in method public setSpeakerInfo(builderForValue CoreNLPProtos.SpeakerInfo.Builder) : Builder in class edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder | From | To | |
Rename Parameter wordCountsPath : String to wordCountsFile : String in method public BestFirstCorefSystem(props Properties, wordCountsFile String, modelPath String, maxMentionDistance int, maxMentionDistanceWithStringMatch int, thresholds double[]) in class edu.stanford.nlp.scoref.BestFirstCorefSystem | From | To |