acde4b40adcd8034142eb258ccf10f9d48160b84,dit/samplespace.py,SampleSpace,__init__,#SampleSpace#,103

Before Change


    def __init__(self, samplespace, product=None):
        super(SampleSpace, self).__init__(samplespace)

        self._outcome_length = len(samplespace[0])
        self._outcome_class = samplespace[0].__class__
        self._outcome_ctor = get_outcome_ctor(self._outcome_class)
        // Since we have access to an outcome, we determine a product from it.

After Change


    def __init__(self, samplespace, product=None):
        super(SampleSpace, self).__init__(samplespace)

        outcome = next(iter(samplespace))
        self._outcome_length = len(outcome)
        self._outcome_class = outcome.__class__
        self._outcome_ctor = get_outcome_ctor(self._outcome_class)
        // Since we have access to an outcome, we determine a product from it.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dit/dit
Commit Name: acde4b40adcd8034142eb258ccf10f9d48160b84
Time: 2014-04-13
Author: chebee7i@gmail.com
File Name: dit/samplespace.py
Class Name: SampleSpace
Method Name: __init__


Project Name: pyinstaller/pyinstaller
Commit Name: d9e7a5b788d7096f261b7e3dab5dbc1e03cc14a0
Time: 2020-12-23
Author: rock@gimp.org
File Name: PyInstaller/utils/win32/winmanifest.py
Class Name:
Method Name: ManifestFromResFile


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 298bbc1b8623a34687bb3aeb183484a4423f5f13
Time: 2020-04-30
Author: billyjacobson@users.noreply.github.com
File Name: bigtable/metricscaler/metricscaler.py
Class Name:
Method Name: get_cpu_load