fc85c265d3f79a0011c7b988ac2cbd25d757550a,scipy/optimize/_linprog_util.py,,_postsolve,#Any#Any#Any#Any#Any#,1274

Before Change



    // Patch for bug /񴷈. Detecting this sort of issue earlier
    // (via abnormalities in the indicators) would be better.
    bounds = np.array(bounds)  // again, this should have been the standard form
    lb = bounds[:, 0]
    ub = bounds[:, 1]
    lb[np.equal(lb, None)] = -np.inf
    ub[np.equal(ub, None)] = np.inf

    return x, fun, slack, con, lb, ub

After Change


            if i in no_adjust:
                continue
            lbi = bi[0]
            ubi = bi[1]
            if lbi == -np.inf and ubi == np.inf:
                n_unbounded += 1
                x[i] = x[i] - x[n_x + n_unbounded - 1]
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: fc85c265d3f79a0011c7b988ac2cbd25d757550a
Time: 2020-03-15
Author: j.m.vleeshouwers@tue.nl
File Name: scipy/optimize/_linprog_util.py
Class Name:
Method Name: _postsolve


Project Name: tensorflow/cleverhans
Commit Name: 4887ef8baecbf5315ec0f235e56a4f93cd05aad7
Time: 2018-10-04
Author: nottombrown@gmail.com
File Name: cleverhans/attacks_tf.py
Class Name:
Method Name: spm


Project Name: tensorflow/models
Commit Name: 64710c051f26a2778c03fc15ef29c4bcae01df32
Time: 2018-08-22
Author: reedwm@google.com
File Name: official/recommendation/ncf_main.py
Class Name:
Method Name: evaluate_model


Project Name: analysiscenter/batchflow
Commit Name: 7fd49e352027b5e24d0f8ede917877e5d5ef945f
Time: 2017-11-10
Author: rhudor@gmail.com
File Name: dataset/models/tf/vgg.py
Class Name: VGG
Method Name: _build