

def _write_infos_to_temp(temp_folder, original_stat, infos):
    times = (original_stat[stat.ST_ATIME], original_stat[stat.ST_MTIME])
    for (name, info) in infos.items():
        out = os.path.join(temp_folder, name)
        with open(out, 'w') as f:
            f.write(info)
        os.utime(out, times)

dataset/ETHPy150Open JakeWharton/jardiff/jardiff.py _write_infos_to_temp/original