c96d44b85e41fdb14c6495021ef06b4dd26256a1,src/python/pants/engine/selectors.py,SelectVariant,__new__,#Any#Any#Any#,48

Before Change


  def __new__(cls, product, variant_key):
    if not isinstance(variant_key, six.string_types):
      raise ValueError("Expected variant_key to be a string, but was {!r}".format(variant_key))
    return super(SelectVariant, cls).__new__(cls, product, variant_key)

  def __repr__(self):
    return "{}({}, {})".format(type(self).__name__,
                             self.product.__name__,

After Change


  def __new__(cls, product, variant_key):
    if not isinstance(variant_key, six.string_types):
      raise ValueError("Expected variant_key to be a string, but was {!r}".format(variant_key))
    obj = super(SelectVariant, cls).__new__(cls, product, variant_key)
    return obj

  def __repr__(self):
    return "{}({}, {})".format(type(self).__name__,
                               type_or_constraint_repr(self.product),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: c96d44b85e41fdb14c6495021ef06b4dd26256a1
Time: 2016-09-15
Author: nhoward@twopensource.com
File Name: src/python/pants/engine/selectors.py
Class Name: SelectVariant
Method Name: __new__


Project Name: pantsbuild/pants
Commit Name: c96d44b85e41fdb14c6495021ef06b4dd26256a1
Time: 2016-09-15
Author: nhoward@twopensource.com
File Name: src/python/pants/engine/selectors.py
Class Name: Select
Method Name: __new__


Project Name: Infinidat/infi.clickhouse_orm
Commit Name: ffa99f3f10127c9609481b87b761e81bac9fd8f8
Time: 2016-07-11
Author: itais@infinidat.com
File Name: src/infi/clickhouse_orm/models.py
Class Name: ModelBase
Method Name: create_ad_hoc_model


Project Name: pymc-devs/pymc3
Commit Name: 8d67245da83ee8a9a4323289a69633567a336389
Time: 2016-05-23
Author: patbenavente@gmail.com
File Name: pymc3/step_methods/arraystep.py
Class Name: BlockedStep
Method Name: __new__


Project Name: pantsbuild/pants
Commit Name: c96d44b85e41fdb14c6495021ef06b4dd26256a1
Time: 2016-09-15
Author: nhoward@twopensource.com
File Name: src/python/pants/engine/selectors.py
Class Name: SelectDependencies
Method Name: __new__