def get_history_by_index(self, index):
        if index < 0:
            return
        closed_len = len(self.history_list['closed'])
        if index < closed_len:
            key = 'closed'
        else:
            index -= closed_len
            key = 'opened'

        if index < len(self.history_list[key]):
            return self.history_list[key][index]
dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py/OpenRecentlyClosedFileCommand.get_history_by_index/operator `<=` -> `<`