e797f63316a699aceb47f896da2f89588ba15667,scripts/rm_pt.py,,every_n_checkpoints,#Any#Any#,34

Before Change


            entries.append((int(m.group(1)), m.group(0)))
        else:
            m = pt_regexp_update_based.fullmatch(f)
            if m is not None:
                entries.append((int(m.group(1)), m.group(0)))
    return [x[1] for x in sorted(entries)[n-1::n]]


def main():

After Change




def every_n_checkpoints(files, n):
    entries = parse_checkpoints(files)
    return [x[1] for x in sorted(sorted(entries)[::-n])]


def main():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: elbayadm/attn2d
Commit Name: e797f63316a699aceb47f896da2f89588ba15667
Time: 2019-05-16
Author: myleott@fb.com
File Name: scripts/rm_pt.py
Class Name:
Method Name: every_n_checkpoints


Project Name: nipunsadvilkar/pySBD
Commit Name: 29d9d12a26718405763103e997285026f8fd4563
Time: 2020-07-21
Author: nipunsadvilkar@gmail.com
File Name: pysbd/segmenter.py
Class Name: Segmenter
Method Name: sentences_with_char_spans