56ab110aad04c0fab71f14256688448d2af59ff2,src/python/pants/util/meta.py,,,#,104

Before Change


// TODO: look into merging this with `enum` and `ChoicesMixin`, which describe a fixed set of
// singletons, to decouple the enum interface from the implementation as a `datatype`.
// Extend Singleton and your class becomes a singleton, each construction returns the same instance.
Singleton = SingletonMetaclass("Singleton", (object,), {})

After Change


    return cls.instance


T = TypeVar("T")


class ClassPropertyDescriptor:
  Define a readable attribute on a class, given a function.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 56ab110aad04c0fab71f14256688448d2af59ff2
Time: 2019-10-08
Author: ericarellano@me.com
File Name: src/python/pants/util/meta.py
Class Name:
Method Name:


Project Name: mil-tokyo/webdnn
Commit Name: b129cb5095b9501fb53bcc476f95af1c893d1640
Time: 2017-06-20
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: src/graph_transpiler/webdnn/backend/interface/generator.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: 4779d3a1618d3f15ec8ac8d74a4ad6012164a79f
Time: 2020-04-13
Author: john.sirois@gmail.com
File Name: src/python/pants/testutil/engine/util.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: 8c9ba487744905b882cdccf5e109c102c900d53a
Time: 2019-11-05
Author: ericarellano@me.com
File Name: src/python/pants/backend/project_info/rules/source_file_validator.py
Class Name:
Method Name: