diff options
author | Martin Možina <martin.mozina@fri.uni-lj.si> | 2016-09-27 16:36:15 +0200 |
---|---|---|
committer | Martin Možina <martin.mozina@fri.uni-lj.si> | 2016-09-27 16:36:15 +0200 |
commit | 3f7538d784b24aa5305a228491efa4b68537a80f (patch) | |
tree | abbe0968308d48857570f74718d839f003fc402b /monkey/test.py | |
parent | 2013b5b59f2400ac3d4bf218a7ec5b1174f812d7 (diff) | |
parent | 28116fd8278bb3b8832f4f5b22c68bd7978c8efd (diff) |
Merge branch 'master' of ssh://212.235.189.51:22122/codeq-server
Diffstat (limited to 'monkey/test.py')
-rwxr-xr-x | monkey/test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/monkey/test.py b/monkey/test.py index 9267782..b88942b 100755 --- a/monkey/test.py +++ b/monkey/test.py @@ -145,8 +145,9 @@ elif sys.argv[2] == 'info': # Print all observed edits and their costs. elif sys.argv[3] == 'edits': for (path, before, after), (cost, uids) in sorted(edits.items(), key=lambda x: x[1]): - print(' {:.4f}\t{} → {}'.format(cost, stringify(before) if before else 'ε', - stringify(after) if after else 'ε')) + print(' {:.4f}\t{}: {} → {}'.format(cost, '▹'.join(path), + stringify(before) if before else 'ε', + stringify(after) if after else 'ε')) # Print all student queries and their counts. elif sys.argv[3] == 'queries': |