44dae1d4a614dc8f883de6416708a9d1a18855bf,slm_lab/experiment/analysis.py,,trial_data_dict_from_file,#Any#,278
Before Change
filepath = f"{predir}/{filename}"
trial_fitness_df = util.read(filepath)
spec_name = spec_name_from_filepath(filepath)
tn = filename.replace(f"{spec_name}_", "").split("_")[0]
trial_index = int(tn.replace("t", ""))
trial_data_dict[trial_index] = trial_fitness_df
return trial_data_dict
After Change
if filename.endswith("_trial_data.json"):
filepath = f"{predir}/{filename}"
exp_trial_data = util.read(filepath)
trial_index = exp_trial_data.pop("trial_index")
trial_data_dict[trial_index] = exp_trial_data
return trial_data_dict
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: kengz/SLM-Lab
Commit Name: 44dae1d4a614dc8f883de6416708a9d1a18855bf
Time: 2018-01-29
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/analysis.py
Class Name:
Method Name: trial_data_dict_from_file
Project Name: biolab/orange3
Commit Name: 264fcdaecf3a27681c7a45edcbd743687b5d83c5
Time: 2013-08-19
Author: anze.staric@gmail.com
File Name: Orange/data/sql/table.py
Class Name: SqlTable
Method Name: __init__
Project Name: comic/grand-challenge.org
Commit Name: 87410f44a11fcd8366cb0ec74c82b74cef5d428a
Time: 2018-11-29
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/subdomains/urls.py
Class Name:
Method Name: reverse