Commit ·
42f022d
1
Parent(s): 12925d5
Update multi_threaded_processed.py
Browse files90 unmodified lines9192939495949596979810 unmodified lines1091101111121131121131141151164 unmodified lines12112212312412512412512612712812913013013113213390 unmodified lines
### OPTIONAL FILTERING ### #""" java = [".java"] javascript = [ java = tuple([".java"]) javascript = tuple([ ".js", "._js", ".bones",10 unmodified lines ".ssjs", ".xsjs", ".xsjslib" ] python = [ ]) python = tuple([ ".py", ".bzl", ".gyp",4 unmodified lines ".pyw", ".tac", ".wsgi", ".xpy" ] ".xpy", ])
import json with open("programming-languages.json", "r") as f: extensions = json.load(f) suffices = [suffix for suffices in extensions.values() for suffix in suffices] suffices = tuple([suffix for suffices in extensions.values() for suffix in suffices] ) def filter_extension(ex): return ex["new_file"].endswith(suffices) multi_threaded_processed.py+7-7