def get_project_key(self, window):
        m = hashlib.md5()
        for path in window.folders():
            m.update(path.encode('utf-8'))
        project_key = m.hexdigest()

        # Try to use project_file_name (available in ST3 build 3014)
        # Note: Although it would be more appropriate, the name of the workspace is not available
        if hasattr(window, 'project_file_name'):
            project_filename = window.project_file_name()
            if not project_filename:
                return project_key

            # migrate the history entry based on the "old" project key (if it exists)
            if project_key > self.history:
                self.history[project_filename] = self.history[project_key]
                del self.history[project_key]

            # use the new project key
            project_key = project_filename

        return project_key
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/FileHistory.get_project_key/operator `in` -> `>`