2bc9b7b91658baaf9717dba6565df203154d7cc9,textacy/keyterms.py,,sgrank,#Any#Any#Any#Any#Any#,25

Before Change


                        if start_ind <= term[1] <= end_ind)
        // get all token combinations within window
        for t1, t2 in itertools.combinations(window_terms, 2):
            if t1 == t2:
                continue
            n_coocs[t1[0]][t2[0]] += 1
            try:
                sum_logdists[t1[0]][t2[0]] += \
                    log_(window_width / abs(t1[1] - t2[1]))

After Change


        // get all token combinations within window
        for t1, t2 in itertools.combinations(window_terms, 2):
            n_coocs[t1[0]][t2[0]] += 1
            sum_logdists[t1[0]][t2[0]] += log_(window_width / max(abs(t1[1] - t2[1]), 1))
        if end_ind > n_toks:
            break
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: chartbeat-labs/textacy
Commit Name: 2bc9b7b91658baaf9717dba6565df203154d7cc9
Time: 2016-12-06
Author: burton@chartbeat.com
File Name: textacy/keyterms.py
Class Name:
Method Name: sgrank


Project Name: dmlc/dgl
Commit Name: 5d3f470b721db2a23dcc1a3880c1e31216e06233
Time: 2019-08-05
Author: expye@outlook.com
File Name: python/dgl/batched_graph.py
Class Name:
Method Name: _max_on


Project Name: autorope/donkeycar
Commit Name: 6b9363fc670b338976dfee75c77f00e1b5e98f1d
Time: 2021-04-06
Author: 47540921+DocGarbanzo@users.noreply.github.com
File Name: donkeycar/parts/tub_v2.py
Class Name: Tub
Method Name: delete_last_n_records