9ea53fa7a5c1a3594a5a5019e299a34f38290851,tensorflow_datasets/core/download/kaggle.py,KaggleCompetitionDownloader,download_competition,#KaggleCompetitionDownloader#Any#Any#,119

Before Change


               output_dir]
    _run_kaggle_command(command, self._competition_name)
    downloads = tf.io.gfile.listdir(output_dir)
    if len(downloads) != 1:
      zipper = zipfile.ZipFile(os.path.join(output_dir, "zipped.zip"))
      for download in downloads:
        zipper.write(os.path.join(output_dir, download))
      zipper.close()
    return output_dir


def _run_kaggle_command(command_args, competition_name):

After Change


      if zipfile.is_zipfile(fpath):
        ext = extractor.get_extractor()
        with ext.tqdm():
          ext.extract(fpath, resource.ExtractMethod.ZIP, output_dir).get()
    return output_dir


def _run_kaggle_command(command_args, competition_name):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/datasets
Commit Name: 9ea53fa7a5c1a3594a5a5019e299a34f38290851
Time: 2020-06-26
Author: sharanramjee@gmail.com
File Name: tensorflow_datasets/core/download/kaggle.py
Class Name: KaggleCompetitionDownloader
Method Name: download_competition


Project Name: floydhub/dockerfiles
Commit Name: 40a882d47b80ca9c8743510320288477445a14a2
Time: 2017-05-14
Author: dave2008713@gmail.com
File Name: floydker/src/floydker/render.py
Class Name:
Method Name: render_matrix


Project Name: Featuretools/featuretools
Commit Name: 7d9da1533a6cb7f81dc9feb521c44834c033c530
Time: 2019-09-03
Author: kmax12@gmail.com
File Name: featuretools/utils/gen_utils.py
Class Name:
Method Name: use_s3fs_es