* tuned name similarity ranking

This commit is contained in:
Reinhard Pointner 2009-04-05 09:31:02 +00:00
parent 53dd17d93a
commit 4388f47317
2 changed files with 4 additions and 4 deletions

View File

@ -97,9 +97,9 @@ class MatchAction extends AbstractAction {
@Override @Override
public float getSimilarity(Object o1, Object o2) { public float getSimilarity(Object o1, Object o2) {
// normalize absolute similarity to similarity rank (20 ranks in total), // normalize absolute similarity to similarity rank (10 ranks in total),
// so we are less likely to fall for false positives // so we are less likely to fall for false positives in this pass, and move on to the next one
return (float) (Math.floor(super.getSimilarity(o1, o2) * 20) / 20); return (float) (Math.floor(super.getSimilarity(o1, o2) * 10) / 10);
} }

View File

@ -107,7 +107,7 @@ class VerificationFileScanner implements Iterator<Entry<File, String>>, Closeabl
protected boolean isComment(String line) { protected boolean isComment(String line) {
return line.startsWith(";") || line.isEmpty(); return line.isEmpty() || line.startsWith(";");
} }