8884e973ab5ed0d75d60cef0e39e18c8de85218b
Files Diff
- Added: 2
- Removed: 7
- Renamed: 0
- Modified: 47
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 3 | ||
Change Parameter Type examples : GeneralDataset<L,F> to examples : List<RVFDatum<L,F>> in method public trainClassifier(examples List<RVFDatum<L,F>>, featureSet Set<F>) : NaiveBayesClassifier<L,F> in class edu.stanford.nlp.classify.NaiveBayesClassifierFactory | From | To | |
Change Parameter Type callback : Consumer<Annotation> to callback : Function<Annotation,Object> in method public annotate(annotations Iterable<Annotation>, callback Function<Annotation,Object>) : void in class edu.stanford.nlp.pipeline.AnnotationPipeline | From | To | |
Change Parameter Type callback : Consumer<Annotation> to callback : Function<Annotation,Object> in method public annotate(annotations Iterable<Annotation>, numThreads int, callback Function<Annotation,Object>) : void in class edu.stanford.nlp.pipeline.AnnotationPipeline | From | To | |
Move Method | 3 | ||
Move Method public decodeArray(encoded String) : String[] from class edu.stanford.nlp.util.StringUtils to private decodeArray(encoded String) : String[] from class edu.stanford.nlp.util.MetaClass | From | To | |
Move Method public decodeMap(encoded String) : Map<String,String> from class edu.stanford.nlp.util.StringUtils to private decodeMap(encoded String) : Map<String,String> from class edu.stanford.nlp.util.MetaClass | From | To | |
Move Method public cleanJSON(s String) : String from class edu.stanford.nlp.pipeline.JSONOutputter to protected cleanJSON(s String) : String from class edu.stanford.nlp.pipeline.JSONOutputter.JSONWriter | From | To | |
Inline Method | 5 | ||
Inline Method protected processFiles(base String, files Collection<File>, numThreads int, properties Properties, annotate BiConsumer<Annotation,Consumer<Annotation>>, print BiConsumer<Annotation,OutputStream>, outputFormat OutputFormat) : void inlined to public processFiles(base String, files Collection<File>, numThreads int) : void in class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Inline Method public console(prompt String, callback Consumer<String>) : void inlined to public console(callback Consumer<String>) : void in class edu.stanford.nlp.io.IOUtils | From | To | |
Inline Method public getString(key Class<KEY>, def String) : String inlined to public getString(key Class<KEY>) : String in class edu.stanford.nlp.ling.CoreLabel | From | To | |
Inline Method protected createOutputter(properties Properties, outputOptions AnnotationOutputter.Options) : BiConsumer<Annotation,OutputStream> inlined to public processFiles(base String, files Collection<File>, numThreads int) : void in class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Move And Rename Class | 1 | ||
Move And Rename Class edu.stanford.nlp.trees.conllu.CoNLLUDocumentReaderWriterTest moved and renamed to edu.stanford.nlp.trees.CoNLLUDocumentReaderTest | From | To | |
Move Class | 2 | ||
Move Class edu.stanford.nlp.trees.conllu.CoNLLUDocumentReader.WordProcessor moved to edu.stanford.nlp.trees.CoNLLUDocumentReader.WordProcessor | From | To | |
Move Class edu.stanford.nlp.trees.conllu.CoNLLUDocumentReader.SentenceProcessor moved to edu.stanford.nlp.trees.CoNLLUDocumentReader.SentenceProcessor | From | To | |
Change Variable Type | 1 | ||
Change Variable Type outputFormat : StanfordCoreNLP.OutputFormat to outputFormat : OutputFormat in method public processFiles(base String, files Collection<File>, numThreads int) : void in class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Extract Method | 4 | ||
Extract Method private initializeParamRange(func Function, x double[]) : Set<Integer> extracted from private constrainSearchDir(dir double[], fg double[], x double[], func Function) : void in class edu.stanford.nlp.optimization.QNMinimizer | From | To | |
Extract Method private initializeParamRange(func Function, x double[]) : Set<Integer> extracted from private l1NormOWL(x double[], func Function) : double in class edu.stanford.nlp.optimization.QNMinimizer | From | To | |
Extract Method private initializeParamRange(func Function, x double[]) : Set<Integer> extracted from private projectOWL(x double[], orthant double[], func Function) : double[] in class edu.stanford.nlp.optimization.QNMinimizer | From | To | |
Extract Method private scoreDerivatives(trainingBatch List<Tree>) : ModelDerivatives extracted from public calculate(theta double[]) : void in class edu.stanford.nlp.sentiment.SentimentCostAndGradient | From | To | |
Rename Parameter | 2 | ||
Rename Parameter dFunction : DiffFunction to dfunction : DiffFunction in method public minimize(dfunction DiffFunction, functionTolerance double, initial double[], maxFunctionEvaluations int, qn QNInfo) : double[] in class edu.stanford.nlp.optimization.QNMinimizer | From | To | |
Rename Parameter dFunction : DiffFunction to dfunction : DiffFunction in method public minimize(dfunction DiffFunction, functionTolerance double, initial double[], maxFunctionEvaluations int) : double[] in class edu.stanford.nlp.optimization.QNMinimizer | From | To |