c534a5a51f44e934f8e58fb1517847a4b9b24ef0,tensorflow_datasets/core/features/class_label_feature.py,ClassLabel,__init__,#ClassLabel#Any#Any#Any#,28

Before Change


    else:
      names = names or self._load_names_from_file(names_file)
      self._int2str = [tf.compat.as_text(name) for name in names]
      self._str2int = {name: i for i, name in enumerate(self._int2str)}
      self._num_classes = len(self._str2int)

  @property

After Change


    self._int2str = None

    // The label is explicitly set as undefined (no label defined)
    if not sum(bool(a) for a in (num_classes, names, names_file)):
      return

    if sum(bool(a) for a in (num_classes, names, names_file)) != 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/datasets
Commit Name: c534a5a51f44e934f8e58fb1517847a4b9b24ef0
Time: 2018-11-30
Author: epot@google.com
File Name: tensorflow_datasets/core/features/class_label_feature.py
Class Name: ClassLabel
Method Name: __init__


Project Name: tensorflow/agents
Commit Name: aaafecb49e4eb1764f58a9b0a47e2941983c9bc6
Time: 2021-02-04
Author: ebrevdo@google.com
File Name: tf_agents/networks/sequential.py
Class Name: Sequential
Method Name: __init__


Project Name: biolab/orange3
Commit Name: 1317bbf379ab5dc6fd8ec40f5ceab2f529dab871
Time: 2016-10-14
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owclassificationtree.py
Class Name: OWClassificationTree
Method Name: get_learner_parameters