

def compute_hash(self, file_path, preread_lines=None):
    md5 = hashlib.md5()
    if (preread_lines is None):
        with open(file_path, 'rb') as f:
            preread_lines = f.readlines()
    for line in preread_lines:
        md5.update(line)
    return md5.digest()

dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/scanner_cache.py ScannerCache.compute_hash/original