Source:
<code>protected static SymSpell initDefaultDictSpeller(Language lang) { <START> SymSpell speller = new SymSpell(100000, 3, -1, 0); <END> System.out.println("Initalizing symspell"); Set<String> prohibitedWords = prohibitedWordsCache.getUnchecked(lang); long startTime = System.currentTimeMillis(); String base = getSpellingDictBaseDir(lang); List<String> additional = Arrays.asList(base + "spelling.txt", base + "spelling_" + lang.getShortCodeWithCountryAndVariant() + ".txt"); List<String> dict = Collections.singletonList( base + lang.getShortCodeWithCountryAndVariant().replaceFirst("-", "_") + ".dic"); SuggestionStage stage = new SuggestionStage(100000); forEachLineInResources(additional, word -> { if (!prohibitedWords.contains(word)) { speller.createDictionaryEntry(word, 1, stage); } }); AtomicInteger dictWords = new AtomicInteger(0); forEachLineInResources(dict, line -> { int split = line.lastIndexOf("+"); if (split == -1 || line.length() <= split + 1) { throw new RuntimeException(String.format("Could not parse frequency dictionary line '%s'.", line)); } String word = line.substring(0, split); char freqClass = line.charAt(split + 1); int freq = 1 + ((int) freqClass - (int) 'A'); if (!prohibitedWords.contains(word)) { speller.createDictionaryEntry(word, freq, stage); dictWords.incrementAndGet(); } }); System.out.printf("Loaded %d words from dictionary.%n", dictWords.intValue()); speller.commitStaged(stage); long delta = System.currentTimeMillis() - startTime; System.out.printf("Reading dictionaries took %f seconds.%n", (float) delta / 1000.0); return speller; }</code><technical_language>a named constant for 100000</technical_language>

Target:
protected static SymSpell initDefaultDictSpeller(Language lang) { SymSpell speller = new SymSpell(INITIAL_CAPACITY, 3, -1, 0); System.out.println("Initalizing symspell"); Set<String> prohibitedWords = prohibitedWordsCache.getUnchecked(lang); long startTime = System.currentTimeMillis(); String base = getSpellingDictBaseDir(lang); List<String> additional = Arrays.asList(base + "spelling.txt", base + "spelling_" + lang.getShortCodeWithCountryAndVariant() + ".txt"); List<String> dict = Collections.singletonList( base + lang.getShortCodeWithCountryAndVariant().replaceFirst("-", "_") + ".dic"); SuggestionStage stage = new SuggestionStage(100000); forEachLineInResources(additional, word -> { if (!prohibitedWords.contains(word)) { speller.createDictionaryEntry(word, 1, stage); } }); AtomicInteger dictWords = new AtomicInteger(0); forEachLineInResources(dict, line -> { int split = line.lastIndexOf("+"); if (split == -1 || line.length() <= split + 1) { throw new RuntimeException(String.format("Could not parse frequency dictionary line '%s'.", line)); } String word = line.substring(0, split); char freqClass = line.charAt(split + 1); int freq = 1 + ((int) freqClass - (int) 'A'); if (!prohibitedWords.contains(word)) { speller.createDictionaryEntry(word, freq, stage); dictWords.incrementAndGet(); } }); System.out.printf("Loaded %d words from dictionary.%n", dictWords.intValue()); speller.commitStaged(stage); long delta = System.currentTimeMillis() - startTime; System.out.printf("Reading dictionaries took %f seconds.%n", (float) delta / 1000.0); return speller; }