

def run_(self, edit_token, original_message):
    edit = self.view.begin_edit(edit_token, self.name(), original_message)
    original_message['edit_token'] = edit
    try:
        all_rules = get_rules()
        for rule in all_rules:
            matched = True
            pipeline_data = {
                
            }
            message = deepcopy(original_message)
            for definition in rule:
                name = None
                args = []
                if isinstance(definition, str):
                    name = definition
                else:
                    name = definition[0]
                    args = definition[1:]
                command = get_command(name)
                if command:
                    results = False
                    try:
                        results = command(message, args, pipeline_data)
                    except Exception as e:
                        print(e)
                    finally:
                        if results:
                            pipeline_data[name] = results
                        else:
                            matched = False
                            break
            if matched:
                break
    finally:
        self.view.end_edit(edit)

dataset/ETHPy150Open lionicsheriff/SublimeAcmePlumbing/AcmePlumbing.py AcmePlumbing.run_/original