3f5e994767718a930681d75bd59154525b02cd18,src/python/twitter/pants/targets/python_binary.py,PythonBinary,__init__,#PythonBinary#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,24

Before Change


      self._platforms = [platforms]
    else:
      self._platforms = platforms
    self._platforms = tuple(self._platforms)

    PythonTarget.__init__(self, name, [] if source is None else [source],
                          dependencies=dependencies,
                          provides=provides, exclusives=exclusives)

After Change


    self._platforms = tuple(maybe_list(platforms or []))

    if source and entry_point:
      entry_point_module = entry_point.split(":", 1)[0]
      source_entry_point = self._translate_to_entry_point(self.sources[0])
      if entry_point_module != source_entry_point:
        raise TargetDefinitionException(self,
            "Specified both source and entry_point but they do not agree: %s vs %s" % (
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 3f5e994767718a930681d75bd59154525b02cd18
Time: 2014-01-19
Author: benjyw@gmail.com
File Name: src/python/twitter/pants/targets/python_binary.py
Class Name: PythonBinary
Method Name: __init__


Project Name: tensorflow/datasets
Commit Name: b59ca0e9d2460b28223ca30008814ec16ec4b16f
Time: 2021-01-28
Author: epot@google.com
File Name: tensorflow_datasets/core/utils/generic_path.py
Class Name:
Method Name: as_path


Project Name: rlworkgroup/garage
Commit Name: 5c42053fcd6821eb39eded56526cfe5f2070418a
Time: 2018-05-25
Author: 35857569+gonzaiva@users.noreply.github.com
File Name: sandbox/rocky/tf/optimizers/penalty_lbfgs_optimizer.py
Class Name: PenaltyLbfgsOptimizer
Method Name: update_opt


Project Name: NifTK/NiftyNet
Commit Name: 2f882bae4f5ef4e25d6a4d8b46275edcf53aaee1
Time: 2017-06-06
Author: wenqi.li@ucl.ac.uk
File Name: utilities/filename_matching.py
Class Name: KeywordsMatching
Method Name: from_tuple


Project Name: osmr/imgclsmob
Commit Name: 152eb02a43a262f14ac189fefeee003b21a13da3
Time: 2018-08-25
Author: osemery@gmail.com
File Name: train_gl.py
Class Name:
Method Name: prepare_model