2e5a33d241b445a66fc6fec781037bba8b769308
Files Diff
- Added: 4
- Removed: 0
- Renamed: 0
- Modified: 19
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Pull Up Method | 1 | ||
Pull Up Method private getRelevantWords(t Token[], relWords CollectionValuedMap<String,String>) : void from class edu.stanford.nlp.patterns.surface.SurfacePattern to protected getRelevantWords(t Token[], relWords CollectionValuedMap<String,String>) : void from class edu.stanford.nlp.patterns.Pattern | From | To | |
Rename Variable | 1 | ||
Rename Variable matchedTokensIndex : Pair<Integer,Integer> to matched : Collection<IntPair> in method public call() : Pair<TwoDimensionalCounter<Pair<String,String>,E>,CollectionValuedMap<E,Triple<String,Integer,Integer>>> in class edu.stanford.nlp.patterns.dep.ApplyDepPatterns | From | To | |
Change Return Type | 1 | ||
Change Return Type Map<String,Map<Integer,Set<Integer>>> to Boolean in method public call() : Boolean in class edu.stanford.nlp.patterns.surface.CreatePatterns.CreatePatternsThread | From | To | |
Change Variable Type | 5 | ||
Change Variable Type submit : Future<Map<String,Map<Integer,Set<Integer>>>> to submit : Future<Boolean> in method public getAllPatterns(sents Map<String,DataInstance>, props Properties, storePatsForEachTokenWay ConstantsAndVariables.PatternForEachTokenWay) : void in class edu.stanford.nlp.patterns.surface.CreatePatterns | From | To | |
Change Variable Type list : List<Future<Map<String,Map<Integer,Set<Integer>>>>> to list : List<Future<Boolean>> in method public getAllPatterns(sents Map<String,DataInstance>, props Properties, storePatsForEachTokenWay ConstantsAndVariables.PatternForEachTokenWay) : void in class edu.stanford.nlp.patterns.surface.CreatePatterns | From | To | |
Change Variable Type pSur : SurfacePattern to pSur : Pattern in method public call() : Pair<TwoDimensionalCounter<Pair<String,String>,E>,CollectionValuedMap<E,Triple<String,Integer,Integer>>> in class edu.stanford.nlp.patterns.dep.ApplyDepPatterns | From | To | |
Change Variable Type matchedTokensIndex : Pair<Integer,Integer> to matched : Collection<IntPair> in method public call() : Pair<TwoDimensionalCounter<Pair<String,String>,E>,CollectionValuedMap<E,Triple<String,Integer,Integer>>> in class edu.stanford.nlp.patterns.dep.ApplyDepPatterns | From | To | |
Change Variable Type future : Future<Map<String,Map<Integer,Set<Integer>>>> to future : Future<Boolean> in method public getAllPatterns(sents Map<String,DataInstance>, props Properties, storePatsForEachTokenWay ConstantsAndVariables.PatternForEachTokenWay) : void in class edu.stanford.nlp.patterns.surface.CreatePatterns | From | To | |
Extract Method | 4 | ||
Extract Method public compile(semgrex String, env Env) : SemgrexPattern extracted from public compile(semgrex String) : SemgrexPattern in class edu.stanford.nlp.semgraph.semgrex.SemgrexPattern | From | To | |
Extract Method public compileStream(is InputStream, env Env) : List<SemgrexPattern> extracted from public compileStream(is InputStream) : List<SemgrexPattern> in class edu.stanford.nlp.semgraph.semgrex.SemgrexBatchParser | From | To | |
Extract Method private toStringDep() : String extracted from public toString() : String in class edu.stanford.nlp.patterns.surface.Token | From | To | |
Extract Method private toStringSurface() : String extracted from public toString() : String in class edu.stanford.nlp.patterns.surface.Token | From | To |