]> thyrsus.com Git - comparator.git/commitdiff
Change the minimum-size threshold on filterator.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 12 Sep 2003 22:50:43 +0000 (22:50 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 12 Sep 2003 22:50:43 +0000 (22:50 +0000)
comparator.xml
filterator

index c88c03f1f3b4f25943bf3388ca7df2965c8bcc07..ddb69be92b673bfe03fc79e59571c10dee3d660a 100644 (file)
@@ -131,10 +131,12 @@ The noise test for shell files throws away Bourne-shell keywords</para>
 <para>The <option>-n</option> suppresses noise filtering.  The
 <option>-d</option> acts as it does for
 <application>comparator</application>.  The <option>-s</option> option
-sets the minimum size of overlap to be reported; setting this to a
+sets the minimum size of overlap to be reported. Setting this to a
 slightly larger number than the <application>comparator</application>
-shred size may be a useful way to filter out spurious matches. The
-<option>-x</option> enables some debugging output.  It is for
+shred size is a useful way to filter out spurious matches; thus, while
+<application>comparator</application> defaults to a shred size of 3,
+<application>filterator</application> defaults to a minimum size of
+5. The <option>-x</option> enables some debugging output.  It is for
 developers; if you need to understand it, read the code.</para>
 
 <para>Occasionally the <application>filterator</application> output
index 0cacb1ffec45e21643c797aeb3655c75b10ec804..9b34b9660d9cffb4cc3297bbaadd5c2d6703e97e 100755 (executable)
@@ -150,7 +150,7 @@ if __name__ == '__main__':
         sys.stderr.write("usage: filterator [-d dir] [-n] [-s size] [-x]\n")
         sys.exit(2)
     nofilter = debug = 0
-    minsize = 0
+    minsize = 5
     linecounts = {}
     for (opt, val) in optlist:
         if opt == '-d':