- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getLevenshteinDistance (0.22 sec)
-
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)