636473aba7981456db89f0b9f46430579fdf929c
Files Diff
- Added: 9
- Removed: 7
- Renamed: 0
- Modified: 17
Link to commit
Third party dependencies:
Dependency Action | |
---|---|
Added | |
org.apache.commons:commons-pool2:2.6.1 | |
Updated | |
From com.google.guava:guava 20.0 To 21.0 | |
From com.google.guava:guava 21.0 To 20.0 | |
From commons-io:commons-io 2.6 To 2.5 | |
From commons-io:commons-io 2.5 To 2.6 |
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Variable | 2 | ||
Rename Variable probabilites : float[] to probabilities : float[] in method public rankSuggestions(suggestions List<String>, word String, sentence AnalyzedSentence, startPos int) : Pair<List<String>,List<Float>> in class org.languagetool.rules.spelling.suggestions.XGBoostSuggestionsOrderer | From | To | |
Rename Variable i : int to candidateIndex : int in method public rankSuggestions(suggestions List<String>, word String, sentence AnalyzedSentence, startPos int) : Pair<List<String>,List<Float>> in class org.languagetool.rules.spelling.suggestions.XGBoostSuggestionsOrderer | From | To | |
Change Return Type | 1 | ||
Change Return Type Pair<List<String>,List<SortedMap<String,Float>>> to Triple<List<String>,SortedMap<String,Float>,List<SortedMap<String,Float>>> in method public computeFeatures(suggestions List<String>, word String, sentence AnalyzedSentence, startPos int) : Triple<List<String>,SortedMap<String,Float>,List<SortedMap<String,Float>>> in class org.languagetool.rules.spelling.suggestions.SuggestionsOrdererFeatureExtractor | From | To | |
Move Class | 10 | ||
Move Class org.languagetool.rules.spelling.SuggestionChangesTestConfig moved to org.languagetool.rules.spelling.suggestions.SuggestionChangesTestConfig | From | To | |
Move Class org.languagetool.rules.spelling.morfologik.suggestions_ordering.SuggestionsOrdererFeatureExtractor moved to org.languagetool.rules.spelling.suggestions.SuggestionsOrdererFeatureExtractor | From | To | |
Move Class org.languagetool.rules.spelling.SuggestionChangesDataset moved to org.languagetool.rules.spelling.suggestions.SuggestionChangesDataset | From | To | |
Move Class org.languagetool.rules.spelling.SuggestionsChangesTest moved to org.languagetool.rules.spelling.suggestions.SuggestionsChangesTest | From | To | |
Move Class org.languagetool.rules.spelling.morfologik.suggestions_ordering.XGBoostSuggestionsOrderer moved to org.languagetool.rules.spelling.suggestions.XGBoostSuggestionsOrderer | From | To | |
Move Class org.languagetool.rules.spelling.SuggestionChangesExperimentRuns moved to org.languagetool.rules.spelling.suggestions.SuggestionChangesExperimentRuns | From | To | |
Move Class org.languagetool.rules.spelling.SuggestionChangesExperiment moved to org.languagetool.rules.spelling.suggestions.SuggestionChangesExperiment | From | To | |
Move Class org.languagetool.rules.spelling.morfologik.suggestions_ordering.SuggestionsRanker moved to org.languagetool.rules.spelling.suggestions.SuggestionsRanker | From | To | |
Move Class org.languagetool.rules.spelling.morfologik.suggestions_ordering.SuggestionsOrderer moved to org.languagetool.rules.spelling.suggestions.SuggestionsOrderer | From | To | |
Move Class org.languagetool.rules.spelling.SuggestionsChanges moved to org.languagetool.rules.spelling.suggestions.SuggestionsChanges | From | To | |
Merge Parameter | 2 | ||
Merge Parameter [word : String, startPos : int] to token : AnalyzedTokenReadings in method protected getRuleMatches(token AnalyzedTokenReadings, sentence AnalyzedSentence, ruleMatchesSoFar List<RuleMatch>) : List<RuleMatch> in class org.languagetool.rules.en.AbstractEnglishSpellerRule | From | To | |
Merge Parameter [word : String, startPos : int] to token : AnalyzedTokenReadings in method protected getRuleMatches(token AnalyzedTokenReadings, sentence AnalyzedSentence, ruleMatchesSoFar List<RuleMatch>) : List<RuleMatch> in class org.languagetool.rules.pl.MorfologikPolishSpellerRule | From | To | |
Split Variable | 1 | ||
Split Variable data : List<SortedMap<String,Float>> to [suggestionsData : List<SortedMap<String,Float>>, matchData : SortedMap<String,Float>] in method public computeFeatures(suggestions List<String>, word String, sentence AnalyzedSentence, startPos int) : Triple<List<String>,SortedMap<String,Float>,List<SortedMap<String,Float>>> in class org.languagetool.rules.spelling.suggestions.SuggestionsOrdererFeatureExtractor | From | To | |
Change Variable Type | 2 | ||
Change Variable Type lt : MultiThreadedJLanguageTool to lt : JLanguageTool in method public main(args String[]) : void in class org.languagetool.rules.patterns.PerformanceTest | From | To | |
Change Variable Type candidatesAndFeatures : Pair<List<String>,List<SortedMap<String,Float>>> to candidatesAndFeatures : Triple<List<String>,SortedMap<String,Float>,List<SortedMap<String,Float>>> in method public rankSuggestions(suggestions List<String>, word String, sentence AnalyzedSentence, startPos int) : Pair<List<String>,List<Float>> in class org.languagetool.rules.spelling.suggestions.XGBoostSuggestionsOrderer | From | To | |
Extract Method | 2 | ||
Extract Method private getSuggestionsFromSpellers(word String, spellerList List<MorfologikSpeller>) : List<String> extracted from public getSuggestions(word String) : List<String> in class org.languagetool.rules.spelling.morfologik.MorfologikMultiSpeller | From | To | |
Extract Method private getModelPath(language Language) : String extracted from public XGBoostSuggestionsOrderer(lang Language, languageModel LanguageModel) in class org.languagetool.rules.spelling.suggestions.XGBoostSuggestionsOrderer | From | To | |
Inline Variable | 1 | ||
Inline Variable replacements : List<SuggestedReplacement> in method public adjustRuleMatchPos(match RuleMatch, charCount int, columnCount int, lineCount int, sentence String, annotatedText AnnotatedText) : RuleMatch from class org.languagetool.JLanguageTool | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method protected addSuggestionsToRuleMatch(word String, userCandidates List<String>, candidates List<String>, orderer SuggestionsOrderer, match RuleMatch) : RuleMatch extracted from public match(sentence AnalyzedSentence) : RuleMatch[] in class org.languagetool.rules.spelling.SymSpellRule & moved to class org.languagetool.rules.spelling.SpellingCheckRule | From | To |