01287d53f5b22f7da20a7b08a836d3a7f6c7af9f,torch_geometric/datasets/s3dis.py,S3DIS,download,#S3DIS#,49

Before Change



    def download(self):
        raise RuntimeError(
            "Dataset not found. Please download {} from {} and move it to {}".
            format(self.raw_file_names, self.url, self.raw_dir))

    def process(self):
        scipy.io.loadmat(self.raw_paths[0])

After Change


        os.unlink(path)
        shutil.rmtree(self.raw_dir)
        name = self.url.split(os.sep)[-1].split(".")[0]
        os.rename(osp.join(self.root, name), self.raw_dir)

    def process(self):
        with open(self.raw_paths[0], "r") as f:
            filenames = [x.split("/")[-1] for x in f.read().split("\n")[:-1]]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 01287d53f5b22f7da20a7b08a836d3a7f6c7af9f
Time: 2019-06-17
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/s3dis.py
Class Name: S3DIS
Method Name: download


Project Name: rusty1s/pytorch_geometric
Commit Name: ceb252af2467464b3f158a42167ddf8fd6dfbd5f
Time: 2018-02-02
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/qm9.py
Class Name: QM9
Method Name: download


Project Name: vatlab/SoS
Commit Name: 2c7725cb703a6a5cce6bdfce4c22b84e23dd9018
Time: 2016-10-05
Author: ben.bog@gmail.com
File Name: pysos/sos_executor.py
Class Name: Base_Executor
Method Name: run