Skip to content

Commit

Permalink
Misc. cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
RillingDev committed Apr 1, 2024
1 parent e7812c9 commit 1bfb3b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public interface Enricher extends DataTypeAware {

/**
* Checks if a relation of the data type is supported for enrichment.
* Often enrichers check if e.g. an URL stored in the relation is supported.
* Often enrichers check if e.g., an URL stored in the relation is supported.
*
* @param relation Relation to check.
* @return if the relation is supported.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ public CanonicalStringMatcher(Set<String> canonicalValues,
.map(Pattern::quote)
.collect(Collectors.joining("|")));

List<String> list = canonicalValues.stream().map(this::removeIgnoredSubstrings).toList();


// Using a tree map with the collator and the adjusted canonical value as key makes for fast lookups.
canonicalMap = new TreeMap<>(collator);
for (String canonicalValue : canonicalValues) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private MergeUtils() {
*
* @param sets Collection of sets to analyze the contents of.
* @param minUsagePercentage Percentage from 0 to 1.
* If e.g. 0.9 is used, all values with a count of at least 90%
* If e.g., 0.9 is used, all values with a count of at least 90%
* of the item of the highest count are included.
* @param <T> Set item value.
* @return Set containing items of the original sets with a high count.
Expand Down

0 comments on commit 1bfb3b5

Please sign in to comment.