From ea3126052cd6af55c00959ad1ae73a6cc6b7ba49 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 11 Feb 2016 12:03:39 +0100 Subject: monkey.edits: ignore edits that insert too much --- monkey/edits.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey/edits.py b/monkey/edits.py index dfdf164..1743864 100644 --- a/monkey/edits.py +++ b/monkey/edits.py @@ -31,6 +31,8 @@ def get_edits_from_trace(trace, test, id): def add_edit(path, start, end, tree): if start == end: return + if len(end) > 2*len(start): + return edits[(path, start, end)].add(id) # Parse trace actions and ensure there is a separate action for each -- cgit v1.2.1