09c832a4607dfb80f3917ab6f65ce43513141675,tests/test_dist.py,,,#,14

Before Change


from chaospy.distributions import collection


DISTRIBUTIONS = tuple(
    attr for attr in (getattr(collection, name) for name in dir(collection))
    if isclass(attr) and issubclass(attr, cp.Dist)
)

@pytest.fixture(params=DISTRIBUTIONS)
def distribution(request):
    return request.param

After Change


for name in dir(collection):
    attr = getattr(collection, name)
    if isclass(attr) and issubclass(attr, cp.Dist):
        with suppress(TypeError):
            attr()
            DISTRIBUTIONS = DISTRIBUTIONS + (attr,)

@pytest.fixture(params=DISTRIBUTIONS)
def distribution(request):
    return request.param
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jonathf/chaospy
Commit Name: 09c832a4607dfb80f3917ab6f65ce43513141675
Time: 2018-12-14
Author: jonathf@gmail.com
File Name: tests/test_dist.py
Class Name:
Method Name:


Project Name: huggingface/neuralcoref
Commit Name: 70cab1d286a8717185e5b342f1923a80fc9a90a0
Time: 2019-10-22
Author: svlandeg@users.noreply.github.com
File Name: neuralcoref/train/evaluator.py
Class Name: ConllEvaluator
Method Name: get_max_score


Project Name: descarteslabs/descarteslabs-python
Commit Name: e6211ba0f59e0bd6c71459e9dfbc043d13eb24a8
Time: 2020-12-08
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/interactive/layer.py
Class Name: WorkflowsLayer
Method Name: _update_logger