Commit a7bea60f authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson

fuse.py use correct prefix for extracting clones

due to the error in the prefix usage, we were extracting all clones from
the file instead of the top N, leading to horrendous performance issues.
parent f34fd3b2
......@@ -718,7 +718,7 @@ def main():
f = []
vparser = VidjilParser()
vparser.addPrefix('clones', 'clones.item.top', le, args.top)
vparser.addPrefix('clones.item', 'clones.item.top', le, args.top)
for path_name in files:
json_clones = vparser.extract(path_name)
clones = json.loads(json_clones)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment