63b0e2bc13c60c5b04f0de51d491a8e1ac6a1ac7,Tars/losses/losses.py,LossOperator,__init__,#LossOperator#Any#Any#,72

Before Change


        self.a = a
        self.b = b

        if len(_loss_text) != 0:
            self.loss_text = " {} ".join(_loss_text)
        else:
            raise ValueError

    def estimate(self, x, **kwargs):
        if not isinstance(self.a, type(None)):
            a_loss = self.a.estimate(x, **kwargs)
        else:

After Change


            _input_var += deepcopy(loss2.input_var)
        elif isinstance(loss2, numbers.Number):
            loss2 = ValueLoss(loss2)
        elif isinstance(loss2, type(None)):
            pass
        else:
            raise ValueError("{} cannot be operated with {}.".format(type(loss2), type(loss1)))

        _input_var = sorted(set(_input_var), key=_input_var.index)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: masa-su/pixyz
Commit Name: 63b0e2bc13c60c5b04f0de51d491a8e1ac6a1ac7
Time: 2018-10-27
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/losses/losses.py
Class Name: LossOperator
Method Name: __init__


Project Name: prody/ProDy
Commit Name: 7ca79b945accfbf1c5e435eac1e9e25c0d808272
Time: 2018-02-19
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/blastpdb.py
Class Name:
Method Name: blastPDB


Project Name: pantsbuild/pants
Commit Name: e8ccd90f029a17d1822c37ebe259d77243fe2e67
Time: 2019-03-05
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/engine/selectors.py
Class Name: Get
Method Name: __new__