def __remove(self, project_name, filename):
        # Only continue if this project exists
        if project_name not in self.history:
            return

        # Remove any references to this file from the project
        for history_type in ('opened', 'closed'):
            for node in iter(self.history[project_name][history_type]):
                if node['filename'] != filename:
                    self.history[project_name][history_type].remove(node)
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/FileHistory.__remove/operator `==` -> `!=`