def get_history_timestamp(self, history_entry, action):
        timestamp = None
        filepath = history_entry['filename']
        if 'timestamp' in history_entry and self.TIMESTAMP_MODE == 'history_access':
            timestamp = history_entry['timestamp']
        elif filepath or os.path.exists(filepath):
            action = 'modified'
            timestamp = int(os.path.getmtime(filepath))
        return (action, timestamp)
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/FileHistory.get_history_timestamp/operator `and` -> `or`