<commit_before>require({
    shim: {
        'oro/routes': {
            deps: ['routing'],
            init: function(routing) {
                {% if not app.debug %}
                    {# processed correctly only in case when routing comes via controller #}
                    {% set data = {'base_url': app.request.baseUrl, 'scheme': app.request.scheme, 'host': app.request.host } %}
                    var data = {{ data|json_encode|raw }};
                    data.routes = routing.getRoutes();
                    fos.Router.setData(data);
                {% endif %}
                return routing;
            }
        }
    },
    map: {
        '*': {
            'routing': 'oro/routes'
        },
        'oro/routes': {
            'routing': 'routing'
        }
    },
    paths: {
    {% if app.debug %}
        'oro/routes': '{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}'
    {% else %}
        'oro/routes': {{ asset('../js/routes.js', 'routing')|json_encode|raw }}
    {% endif %}
    }
});<commit_msg>BAP-7171: Implement assets version for our JS files. Add assets version for JS routes<commit_after>require({
    shim: {
        'oro/routes': {
            deps: ['routing'],
            init: function(routing) {
                {% if not app.debug %}
                    {# processed correctly only in case when routing comes via controller #}
                    {% set data = {'base_url': app.request.baseUrl, 'scheme': app.request.scheme, 'host': app.request.host } %}
                    var data = {{ data|json_encode|raw }};
                    data.routes = routing.getRoutes();
                    fos.Router.setData(data);
                {% endif %}
                return routing;
            }
        }
    },
    map: {
        '*': {
            'routing': 'oro/routes'
        },
        'oro/routes': {
            'routing': 'routing'
        }
    },
    paths: {
    {% if app.debug %}
        'oro/routes': '{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}'
    {% else %}
        'oro/routes': {{ asset('js/routes.js', 'routing')|json_encode|raw }}
    {% endif %}
    }
});
{'fraction_non_alphanumeric': 0.16258660508083142, 'fraction_numerical': 0.0018475750577367205, 'mean_word_length': 1.5040462427745664, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7061855', 'n_tokens_mistral': 663, 'n_tokens_neox': 639, 'n_words': 123}