5798262e2f9d254f37cbe762f89747b7049a8acc,measurements/crinacle/crinacle_crawler.py,CrinacleCrawler,get_urls,#CrinacleCrawler#,94
Before Change
name = os.path.split(fp)[1]
name = re.sub(r" [LR]\d*\.txt", "", name).replace(".txt", "")
name = re.sub(r" //\d$", "", name)
name = name.replace(".mdat", "")
if name not in file_paths:
file_paths[name] = []
file_paths[name].append(fp)
return file_paths
After Change
for fp in gras_source_paths:
add_to(fp, "gras")
for name, rigs_and_file_paths in file_paths.items():
if (
"iem" in rigs_and_file_paths and
("legacy" in rigs_and_file_paths or "gras" in rigs_and_file_paths)
):
// Remove IEM rig measurements if Ears-711 or GRAS measurements exist
// This means the headphone is onear model and the files found in IEM folder are duplicates
del rigs_and_file_paths["iem"]
return file_paths
def process(self, item, file_paths, target_dir=None):
if target_dir is None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: jaakkopasanen/AutoEq
Commit Name: 5798262e2f9d254f37cbe762f89747b7049a8acc
Time: 2020-10-18
Author: jaakko.o.pasanen@gmail.com
File Name: measurements/crinacle/crinacle_crawler.py
Class Name: CrinacleCrawler
Method Name: get_urls
Project Name: statsmodels/statsmodels
Commit Name: db637720f06b99c3f21721843a942cd90bda3be6
Time: 2020-09-19
Author: josef.pktd@gmail.com
File Name: statsmodels/miscmodels/ordinal_model.py
Class Name: OrderedModel
Method Name: from_formula
Project Name: explosion/thinc
Commit Name: 7ee43f4346812c46b8df43c8cdf7a3016958949c
Time: 2020-01-15
Author: ines@ines.io
File Name: setup.py
Class Name:
Method Name: clean