From: Eric S. Raymond Date: Fri, 12 Sep 2003 22:50:43 +0000 (+0000) Subject: Change the minimum-size threshold on filterator. X-Git-Tag: 1.5~5 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=72270e635d5bb4565b50a4fd6fe51c0c2d40c9f6;p=comparator.git Change the minimum-size threshold on filterator. --- diff --git a/comparator.xml b/comparator.xml index c88c03f..ddb69be 100644 --- a/comparator.xml +++ b/comparator.xml @@ -131,10 +131,12 @@ The noise test for shell files throws away Bourne-shell keywords The suppresses noise filtering. The acts as it does for comparator. The 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 comparator -shred size may be a useful way to filter out spurious matches. The - enables some debugging output. It is for +shred size is a useful way to filter out spurious matches; thus, while +comparator defaults to a shred size of 3, +filterator defaults to a minimum size of +5. The enables some debugging output. It is for developers; if you need to understand it, read the code. Occasionally the filterator output diff --git a/filterator b/filterator index 0cacb1f..9b34b96 100755 --- a/filterator +++ b/filterator @@ -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':