@logged()
    def store_commands(self, complete_commands, command_requests, command_responses, complete_files, file_requests, file_responses):
        request_mappings = {
            # entry_id : command_id
        }
        session = self.Session()
        try:
            db_commands_and_files = []

            for reservation_id, entry_id, command in complete_commands:
                db_command = self._append_command(session, reservation_id, command)
                if db_command == False:
                    request_mappings[entry_id] = False

            for reservation_id, entry_id, command in complete_files:
                db_file = self._append_file(session, reservation_id, command)
                if db_file == False:
                    request_mappings[entry_id] = False

            for entry_id in command_requests:
                reservation_id, command = command_requests[entry_id]
                db_command = self._append_command(session, reservation_id, command)
                if db_command == False:
                    request_mappings[entry_id] = False
                else:
                    db_commands_and_files.append((entry_id, db_command))

            for entry_id in file_requests:
                reservation_id, file = file_requests[entry_id]
                db_file = self._append_file(session, reservation_id, file)
                if db_file == False:
                    request_mappings[entry_id] = False
                else:
                    db_commands_and_files.append((entry_id, db_file))

            for entry_id, command_id, response, timestamp in command_responses:
                if not self._update_command(session, command_id, response, timestamp):
                    request_mappings[entry_id] = False

            for entry_id, file_id, response, timestamp in file_responses:
                if not self._update_file(session, file_id, response, timestamp):
                    request_mappings[entry_id] = False

            session.commit()
            for entry_id, db_command in db_commands_and_files:
                request_mappings[entry_id] = db_command.id

        finally:
            session.close()
       
        return request_mappings
Test that the function which formats lines in response to a UIDL
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/core/db.py/DatabaseGateway.store_commands--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/mail/test/test_pop3.py/UtilityTestCase.testUIDListLineFormatter