

def get_project_key(self, window):
    m = hashlib.md5()
    for path in window.folders():
        window.update(path.encode('utf-8'))
    project_key = m.hexdigest()
    if hasattr(window, 'project_file_name'):
        project_filename = window.project_file_name()
        if (not project_filename):
            return project_key
        if (project_key in self.history):
            self.history[project_filename] = self.history[project_key]
            del self.history[project_key]
        project_key = project_filename
    return project_key

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.get_project_key/VarMisuse@31/35 `m`->`window`