9df22084c5753cd5b3480afddee054dcdd774438,nilearn/datasets/atlas.py,,fetch_atlas_harvard_oxford,#,146
Before Change
dataset_name = "fsl"
// Environment variables
default_paths = []
for env_var in ["FSL_DIR", "FSLDIR"]:
path = os.getenv(env_var)
if path is not None:
default_paths.extend(path.split(":"))
data_dir = _get_dataset_dir(dataset_name, data_dir=data_dir,
default_paths=default_paths, verbose=verbose)
opts = {"uncompress": True}
root = os.path.join("data", "atlases")
After Change
root = os.path.join("data", "atlases")
if atlas_name[0] == "c":
if "cort-maxprob" in atlas_name and symmetric_split:
split_name = atlas_name.split("cort")
atlas_name = "cortl" + split_name[1]
label_file = "HarvardOxford-Cortical-Lateralized.xml"
lateralized = True
else:
label_file = "HarvardOxford-Cortical.xml"
lateralized = False
else:
label_file = "HarvardOxford-Subcortical.xml"
lateralized = False
label_file = os.path.join(root, label_file)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: nilearn/nilearn
Commit Name: 9df22084c5753cd5b3480afddee054dcdd774438
Time: 2017-05-29
Author: dkamalakarreddy@gmail.com
File Name: nilearn/datasets/atlas.py
Class Name:
Method Name: fetch_atlas_harvard_oxford
Project Name: nilearn/nilearn
Commit Name: 9df22084c5753cd5b3480afddee054dcdd774438
Time: 2017-05-29
Author: dkamalakarreddy@gmail.com
File Name: nilearn/datasets/atlas.py
Class Name:
Method Name: fetch_atlas_harvard_oxford
Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: 8079adae33711e4886a625df3f0ae9860739f7b9
Time: 2019-09-03
Author: yuhanliu@google.com
File Name: example_zoo/tools/process.py
Class Name:
Method Name:
Project Name: dmlc/dgl
Commit Name: cf8a3fb30547d6e980ecd8182f64a51df8e55c62
Time: 2021-02-10
Author: expye@outlook.com
File Name: python/dgl/backend/pytorch/tensor.py
Class Name:
Method Name: pack_padded_tensor