2690ab1d02189ddb953551c4c70447ae7c8bcab9,scipy/sparse/linalg/_onenormest.py,,_algorithm_2_2,#Any#Any#Any#,169

Before Change


    ind = range(t)
    while True:
        Y = np.asarray(A_linear_operator.matmat(X))
        g = [norm_1d_1(Y[:, j]) for j in range(t)]
        best_j = np.argmax(g)
        g = sorted(g, reverse=True)
        S = sign_round_up(Y)
        Z = np.asarray(AT_linear_operator.matmat(S))

After Change


        g = sorted(g, reverse=True)
        S = sign_round_up(Y)
        Z = np.asarray(AT_linear_operator.matmat(S))
        h = np.max(np.abs(Z), axis=1)

        // If this algorithm runs for fewer than two iterations,
        // then its return values do not have the properties indicated
        // in the description of the algorithm.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 6

Instances


Project Name: scipy/scipy
Commit Name: 2690ab1d02189ddb953551c4c70447ae7c8bcab9
Time: 2015-02-22
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/_onenormest.py
Class Name:
Method Name: _algorithm_2_2


Project Name: scipy/scipy
Commit Name: 2690ab1d02189ddb953551c4c70447ae7c8bcab9
Time: 2015-02-22
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/_onenormest.py
Class Name:
Method Name: _onenormest_core


Project Name: ray-project/ray
Commit Name: 2cf4c7253ce1fd01975fcf970e52434e44f6d71f
Time: 2021-03-04
Author: ekhliang@gmail.com
File Name: python/ray/util/client/worker.py
Class Name: Worker
Method Name: get


Project Name: tensorflow/ranking
Commit Name: 39fcf3cf46d394a6242e4094a11c544394c2a79f
Time: 2020-08-19
Author: no-reply@google.com
File Name: tensorflow_ranking/python/losses_test.py
Class Name: LossesTest
Method Name: test_approx_ndcg_loss


Project Name: Calamari-OCR/calamari
Commit Name: de52463f855369ad17148054fa5a0a634c6b99a1
Time: 2021-01-19
Author: christoph.wick@planet-ai.de
File Name: calamari_ocr/ocr/dataset/datareader/pagexml/reader.py
Class Name: PageXMLReader
Method Name: cutout