

def get_reactions(service_dir, service_name, service_ver, config):
    '\n    Gets the reaction description from a service.\n\n    Keyword arguments:\n        service_dir -- top level service directory\n        service_name -- name of service\n        service_ver -- service version\n        config -- dict to template reaction with\n    '
    reactions_desc = _get_service_file(service_dir, service_name, service_ver, 'react', config=config)
    jsonschema.validate(reactions_desc, _reaction_schema)
    for reaction in reactions_desc:
        actions = []
        for action in reaction['execute']:
            if ('.' not in action):
                actions.append(((i + '.') + action))
            else:
                actions.append(action)
        when = reaction['when']
        for i in ['files_modified', 'files_created', 'files']:
            if (i in when):
                when[i] = _prepend_service_name(service_name, when[i])
        reaction['execute'] = actions
    return reactions_desc

dataset/ETHPy150Open gosquadron/squadron/squadron/service.py get_reactions/VarMisuse@82/203 `service_name`->`i`