7c977cb5f370d2e8a8ceda762f8d22a3c668e8f0,fileinfo.py,,,#,20

Before Change


t_char = 0
try:
    with open(file_name) as f:
        line = f.readline()
        t_char += len(line)
        while line:
            count += 1
            line = f.readline()
            t_char += len(line)

After Change


                     "st_atime (last access time seconds since epoch),"
                     "st_mtime (last modification time),"
                     "st_ctime (time of creation Windows)")
    stats_keys = stats_strings.split(",")
    for key, value in OrderedDict(zip(stats_keys, file_stats)).items():
        print(key, " =", value)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: geekcomputers/Python
Commit Name: 7c977cb5f370d2e8a8ceda762f8d22a3c668e8f0
Time: 2020-03-22
Author: alopex4@163.com
File Name: fileinfo.py
Class Name:
Method Name:


Project Name: pysb/pysb
Commit Name: 31bedbc4d8d62fc42a7c9a20dd51c372cb510447
Time: 2017-05-02
Author: ben.gyori@gmail.com
File Name: pysb/kappa.py
Class Name:
Method Name: _parse_kasim_outfile


Project Name: horovod/horovod
Commit Name: c6ed366dda201c889c46839fddcbc81214afd025
Time: 2019-08-14
Author: taddair@uber.com
File Name: horovod/run/common/util/safe_shell_exec.py
Class Name:
Method Name: forward_stream