d213e104d0c16649f9c6537a2ef8780ee721d8e6,tensorflow_datasets/scripts/create_new_dataset.py,,main,#Any#,208

Before Change


  if not root_dir:
    root_dir = py_utils.tfds_dir()

  data = dict(
      dataset_name=dataset_name,
      dataset_type=dataset_type,
      dataset_cls=naming.snake_to_camelcase(dataset_name),
      TODO="TODO({})".format(dataset_name),
  )

  create_dataset_file(root_dir, data)
  add_the_init(root_dir, data)
  create_dataset_test_file(root_dir, data)

After Change


def main(_):
  print("*********************************************************************")
  print("WARNING: The `create_new_dataset` script is deprecated.")
  print("Please use: `tfds new <dataset_name>` CLI instead.")
  print("*********************************************************************")
  main_old(_)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: tensorflow/datasets
Commit Name: d213e104d0c16649f9c6537a2ef8780ee721d8e6
Time: 2020-10-01
Author: epot@google.com
File Name: tensorflow_datasets/scripts/create_new_dataset.py
Class Name:
Method Name: main


Project Name: nerox8664/pytorch2keras
Commit Name: 1cf4c73059ba4435f37a93a316edbd426263cbf0
Time: 2018-12-20
Author: nerox8664@gmail.com
File Name: pytorch2keras/converter.py
Class Name:
Method Name: pytorch_to_keras


Project Name: Pinafore/qb
Commit Name: 77b7a88b5a791decf06c2cc9951ef68ef0062771
Time: 2015-08-24
Author: jordanbg@gmail.com
File Name: extractors/answer_present.py
Class Name:
Method Name:


Project Name: Hironsan/anago
Commit Name: c12740b64e69e8383144d0f36a138bf033a9b074
Time: 2017-08-01
Author: light.tree.1.13@gmail.com
File Name: anago/data_utils.py
Class Name:
Method Name: load_vocab


Project Name: AIRLab-POLIMI/mushroom
Commit Name: f43e34a990ef0f9bfa6ac055c79a2f62c6b6b322
Time: 2020-04-22
Author: boris.ilpossente@hotmail.it
File Name: mushroom_rl/core/serialization.py
Class Name: Serializable
Method Name: save