From 8d5fb708b7f779b24a9bcaa864b32980c39663f2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 16 Sep 2003 18:37:35 +0000 Subject: [PATCH] Document the comparator module. --- comparator.xml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/comparator.xml b/comparator.xml index 0c4ec42..42165b5 100644 --- a/comparator.xml +++ b/comparator.xml @@ -33,6 +33,8 @@ -m minsize -n -x + + comparator.py @@ -45,7 +47,12 @@ after a now-obsolete astronomical instrument called a blink comparator that was used to find moving objects in starfield photos. These reports tend to be noisy; filterator is a postprocessor for comparator reports that -can apply significance filtering. +can apply significance +filtering. comparator.py is a Python module +for interpreting comparator reports; +filterator uses it. + +comparator comparator works by first chopping the specified trees into overlapping shreds (by default 3 lines long) @@ -143,6 +150,9 @@ extensions are always eligible. Files with .o or SCCS directories are ignored. Other files are checked to see if the percentage of printable characters near the front of the file is above 90%. + + +filterator filterator is a postprocessor for the SCF-B output of comparator that produces an @@ -173,7 +183,18 @@ looks as through the code has failed to properly merge two or more overlapping line ranges, When this happens, the ranges have different match sets; they may overlap in one tree, but not in others. A clue to this is the number of matches reported for each range. + + +comparator.py + +comparator.py is a Python module that +parses and interprets the format emitted by +comparator. It can be used to write report +generators. The filterator program is an +example; it is a trivial wrapper around +comparator.py. + AUTHOR Eric S. Raymond -- 2.43.0