Commit bef8680b authored by Ryan Herbert's avatar Ryan Herbert
Browse files

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 5caabd5d
...@@ -718,7 +718,7 @@ def main(): ...@@ -718,7 +718,7 @@ def main():
f = [] f = []
vparser = VidjilParser() 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: for path_name in files:
json_clones = vparser.extract(path_name) json_clones = vparser.extract(path_name)
clones = json.loads(json_clones) 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