report_time("Reduction done");
puts("#SHIF-B 1.0");
- puts("Merge-Program: shredcompare 1.0");
- printf("Shred-Size: %d\n", shiflist[0].shred_size);
printf("Hash-Method: %s\n", shiflist[0].hash_method);
+ puts("Merge-Program: shredcompare 1.0");
printf("Normalization: %s\n", shiflist[0].normalization);
+ printf("Shred-Size: %d\n", shiflist[0].shred_size);
puts("%%");
for (; hitlist->next; hitlist = hitlist->next)
report_time("Reduction done")
# OK, dump all matches.
print "#SHIF-B 1.0"
- print "Merge-Program: shredcompare.py 1.0"
print "Hash-Method: MD5"
- print "Shred-Size: %d" % shiflist[0].shredsize
print "Normalization:", ",".join(shiflist[0].normalization)
+ print "Merge-Program: shredcompare.py 1.0"
+ print "Shred-Size: %d" % shiflist[0].shredsize
print "%%"
# FIXME: do something appropriate with comments
for match in matches:
puts("#SHIF-A 1.0");
puts("Generator-Program: shredtree 1.0");
puts("Hash-Method: MD5");
- printf("Shred-Size: %d\n", shredsize);
printf("Normalization: %s\n", rws ? "remove_whitespace" : "none");
+ printf("Shred-Size: %d\n", shredsize);
puts("%%");
/* make file list */
print "#SHIF-A 1.0"
print "Generator-Program: shredtree.py 1.0"
print "Hash-Method: MD5"
+ print "Normalization: %s" % ",".join(normalization);
print "Shred-Size: %d" % shredsize
normalization = []
if ws: normalization.append("remove_whitespace")
if not normalization:
normalization.append("none")
- print "Normalization: %s" % ",".join(normalization);
print "%%"
filenames = []
for root, dirs, files in os.walk(args[0]):