dfabadfb1f0360627c3290e75b48a8283a05da82,tensorflow_datasets/scripts/cli/build.py,,_make_builders,#Any#Any#,182

Before Change


      raise ValueError(
          "--builder_config_id can only be used with datasets with configs"
      )
    if args.builder_config_id > len(builder_cls.BUILDER_CONFIGS):
      logging.warning(
          f"--builder_config_id {args.builder_config_id} greater than number "
          f"of configs {len(builder_cls.BUILDER_CONFIGS)} for "
          f"{builder_cls.name}. Skipping..."
      )
      return
    // Use `config.name` to avoid
    // https://github.com/tensorflow/datasets/issues/2348
    config = builder_cls.BUILDER_CONFIGS[args.builder_config_id]
    yield make_builder(config=config.name)
  else:
    // Generate all configs

After Change


  )

  // Generate all configs if no config requested.
  if builder_cls.BUILDER_CONFIGS and builder_kwargs["config"] is None:
    for config in builder_cls.BUILDER_CONFIGS:
      yield make_builder(config=config.name)
  // Generate only the dataset
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: tensorflow/datasets
Commit Name: dfabadfb1f0360627c3290e75b48a8283a05da82
Time: 2020-11-11
Author: epot@google.com
File Name: tensorflow_datasets/scripts/cli/build.py
Class Name:
Method Name: _make_builders


Project Name: dmlc/gluon-nlp
Commit Name: f4275c0b80197e0f1bbd3a2a1a31cf07d85013b1
Time: 2019-01-09
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name:


Project Name: Qiskit/qiskit-aqua
Commit Name: 2a3febefed59e906809a27c6379de2b13d3eef31
Time: 2018-09-25
Author: woodsp@us.ibm.com
File Name: qiskit_aqua/algorithms/many_sample/qsvm/svm_qkernel.py
Class Name: SVM_QKernel
Method Name: init_params


Project Name: michaelhush/M-LOOP
Commit Name: 31bdaa5cd6cc2d42bc2fba71995c83d3e4cab8e5
Time: 2020-06-11
Author: zakven@mit.edu
File Name: mloop/visualizations.py
Class Name: ControllerVisualizer
Method Name: plot_parameters_vs_cost