fafdd6001a8259f1408bc5f2c2cb91e5eb96c6ca,benchmarks/benchmarks/stats.py,ContinuousFitAnalyticalMLEOverride,setup,#ContinuousFitAnalyticalMLEOverride#Any#Any#Any#Any#Any#Any#,197

Before Change


              shape2_fixed, shape3_fixed):
        exec("self.distn= stats." + dist_name)

        nparam = (len(self.distn.shapes.replace(",", " ").split())
                  if self.distn.shapes else 0) + 2
        all_parameters = [loc_fixed, scale_fixed, shape1_fixed, shape2_fixed,
                          shape3_fixed]
        relevant_parameters = all_parameters[:nparam]
        nonrelevant_parameters = all_parameters[nparam:]

After Change



    def setup(self, dist_name, loc_fixed, scale_fixed, shape1_fixed,
              shape2_fixed, shape3_fixed):
        self.distn = eval("stats." + dist_name)

        // default `loc` and `scale` are .834 and 4.342, and shapes are from
        // `_distr_params.py`
        default_shapes = self.distcont[dist_name]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: fafdd6001a8259f1408bc5f2c2cb91e5eb96c6ca
Time: 2020-08-05
Author: 44255917+swallan@users.noreply.github.com
File Name: benchmarks/benchmarks/stats.py
Class Name: ContinuousFitAnalyticalMLEOverride
Method Name: setup


Project Name: vatlab/SoS
Commit Name: 557f7e52f816e477195bc12e0db63e374c4de0e7
Time: 2016-10-25
Author: ben.bog@gmail.com
File Name: pysos/kernel.py
Class Name:
Method Name: from_R_repr


Project Name: Microsoft/MMdnn
Commit Name: e3dbf30b449033ee584159dc0e462741d4e0e15b
Time: 2020-07-31
Author: 50827462+XiaoXYe@users.noreply.github.com
File Name: mmdnn/conversion/pytorch/pytorch_graph.py
Class Name: PytorchGraph151
Method Name: extractgraph