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

Before Change


    with open(file_name) as f:
        line = f.readline()
        t_char += len(line)
        while line:
            count += 1
            line = f.readline()
            t_char += len(line)
except FileNotFoundError as e:
    print(e)
    sys.exit()

After Change


else:
    file_stats_fmt = ""
    print("\nThis is not a directory.")
    stats_strings = ("st_mode (protection bits),"
                     "st_ino (inode number),"
                     "st_dev (device),"
                     "st_nlink (number of hard links),"
                     "st_uid (user ID of owner),"
                     "st_gid (group ID of owner),"
                     "st_size (file size bytes),"
                     "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: 7

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: arnomoonens/yarll
Commit Name: bb72c5b102a74486036d849b44f80ab3772a18f9
Time: 2018-02-23
Author: arno.moonens@outlook.com
File Name: agents/ppo/dppo_worker.py
Class Name: DPPOWorker
Method Name: run


Project Name: tensorflow/minigo
Commit Name: f96421e1547191aae9dfadca8d4c0d7573f6dec3
Time: 2019-04-29
Author: dtj@google.com
File Name: batch_exporter.py
Class Name:
Method Name: training_series