4 ms·
Appears to be just l = readline() print l while True: n = readline() if editdistance(n, l) > 30%: print n l = n The simpl
by nn3 8y ago
Appears to be just
l = readline()
print l
while True:
n = readline()
if editdistance(n, l) > 30%:
print n
l = n
The simple tool doesn't appear to handle interleaving? Normally uniq handles that by sorting first, but this would need an edit distance aware sort first. I suppose that wouldn't be that hard to build either.
Perhaps it could be just handled with a short window in the tool.
- sciurus 8y agoWhat makes you think it doesn't handle interleaving? They demonstrate a mode where, using the previous day's logs as a baseline, uno can read the current days logs and not print anything that occurred the previous day. That's more sophisticated than you're giving them credit for.