def _load_app(filter_func):
    with _load_lock:
        for application in django_settings.APPLICATIONS:
            if not filter_func(application):
                continue
            app = application.get()
            _by_local_name[app.local_name] = app
            if not app.application_name in _by_application_name:
                _by_application_name[app.application_name] = []
            _by_application_name[app.application_name].append(app)
dataset/ETHPy150Open mollyproject/mollyproject/molly/conf/applications.py/_load_app/original