def __extract_lines(self, request):
        parsed_request = json_lib.parse(request.get_payload())

        lines = []

        if parsed_request in 'events':
            for event in parsed_request.get_json_array('events'):
                if 'attrs' in event:
                    attrs = event.get_json_object('attrs')
                    if 'message' in attrs:
                        lines.append(attrs.get_string('message').strip())

        return lines
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/tests/copying_manager_test.py/CopyingManagerEnd2EndTest.__extract_lines/swapped operands of `in`