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