Skip to content

Commit

Permalink
Changed type of vocabulary to set[str]
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Nov 26, 2024
1 parent 780bf35 commit 24ce9b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ list[str] rascalSimilarNames(Use u, TModel tm){
nw = size(w);
idRoles = u.idRoles;
pcfg = tm.config.typepalPathConfig;
vocabulary = [];
vocabulary = {};
longNames = {};
if(moduleId() in idRoles){
for(srcdir <- pcfg.srcs){
Expand All @@ -481,7 +481,7 @@ list[str] rascalSimilarNames(Use u, TModel tm){
}
}
} else {
vocabulary = [ d.orgId | d <- tm.defines, d.idRole in idRoles, isContainedIn(u.occ, d.scope) ];
vocabulary = { d.orgId | d <- tm.defines, d.idRole in idRoles, isContainedIn(u.occ, d.scope) };
}
//println("similarNames: <u>, <idRoles>, <vocabulary>");
similar = similarWords(w, vocabulary, tm.config.cutoffForNameSimilarity)[0..10];
Expand Down

0 comments on commit 24ce9b2

Please sign in to comment.