929e924be31a86ba0f5263d030dcef6b7683b2cf,src/python/pants/commands/py.py,Py,__init__,#Py#Any#Any#Any#Any#,55

Before Change


      self.target = binaries[0]
    else:
      self.error("Can only process 1 binary target, %s contains %d:\n\t%s" % (
        arg, len(binaries), "\n\t".join(str(binary.address) for binary in binaries)
      ))

    if self.target is None:

After Change


        not_a_target(debug_msg=e)
        break

      if isinstance(target, PythonBinary):
        if self.binary:
          self.error("Can only process 1 binary target. Found %s and %s." % (self.binary, target))
        else:
          self.binary = target
      self.targets.append(target)

    if not self.targets:
      self.error("No valid targets specified!")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: 929e924be31a86ba0f5263d030dcef6b7683b2cf
Time: 2014-05-23
Author: benjy@foursquare.com
File Name: src/python/pants/commands/py.py
Class Name: Py
Method Name: __init__


Project Name: aertslab/pySCENIC
Commit Name: 0e6804ca93a4f76300134a126d5942114b71901c
Time: 2018-12-14
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/cli/pyscenic.py
Class Name:
Method Name: prune_targets_command


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: aee98cea97ea0fb49f053c2212e9294dd121ca1b
Time: 2020-06-24
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: UpdateInterruptibleVmStatus


Project Name: home-assistant/home-assistant
Commit Name: dee6355cc59d7d84f8f7f3a4f1a8dc9b13f9d99e
Time: 2016-05-21
Author: Daniel.Kemp@especiallyrelative.net
File Name: homeassistant/components/media_player/onkyo.py
Class Name:
Method Name: setup_platform