def create_app(name, site, sourcepath, apppool=None):
    ret = {'name': name,
           'changes': {},
           'comment': str(),
           'result': None}

    current_apps = __salt__['win_iis.list_apps'](site)

    if name in current_apps:
        ret['comment'] = 'Application already present: {0}'.format(name)
        ret['result'] = True
    elif __opts__['test']:
        ret['comment'] = 'Application will be created: {0}'.format(name)
        ret['changes'] = {'old': None,
                          'new': name}
    else:
        ret['comment'] = 'Created application: {0}'.format(name)
        ret['changes'] = {'old': None,
                          'new': name}
        ret['result'] = __salt__['win_iis.create_app'](name, site, sourcepath,
                                                       apppool)
    return ret
Callback function, that gets called after a gridvisualization
dataset/ETHPy150Open saltstack/salt/salt/states/win_iis.py/create_app--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/gridsearch.py/GridSearch2D._onStep