- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getLevenshteinDistance (0.42 sec)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepository.java
import java.io.ObjectOutputStream; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.TreeMap; import static org.apache.commons.lang.StringUtils.getLevenshteinDistance; public class SimpleClassMetaDataRepository<T extends Attachable<T>> implements ClassMetaDataRepository<T> { private final Map<String, T> classes = new TreeMap<>(); @SuppressWarnings("unchecked")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/ModelPathSuggestionProvider.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/util/NameMatcher.java
if (kebabCasePrefixPattern.matcher(candidate).matches()) { kebabCasePrefixMatches.add(candidate); found = true; } if (!found && StringUtils.getLevenshteinDistance(normalisedPattern, candidate.toUpperCase()) <= Math.min(3, pattern.length() / 2)) { candidates.add(candidate); } } if (!caseInsensitiveMatches.isEmpty()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 15:48:18 UTC 2024 - 8.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/util/internal/NameMatcher.java
if (kebabCasePrefixPattern.matcher(candidate).matches()) { kebabCasePrefixMatches.add(candidate); found = true; } if (!found && StringUtils.getLevenshteinDistance(normalisedPattern, candidate.toUpperCase()) <= Math.min(3, pattern.length() / 2)) { candidates.add(candidate); } } if (!caseInsensitiveMatches.isEmpty()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 08 10:15:47 UTC 2024 - 8.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java
Arrays.stream(actualText.split("\n")) // Measure Levenshtein distance for each line .map(line -> new LineWithDistance(line, StringUtils.getLevenshteinDistance(line, expectedText))) // Filter out lines that need more edits than half the length of the line .filter(pair -> pair.getDistance() < pair.getLine().length() / 2)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 19K bytes - Viewed (0)