<commit_before>{% load staticfiles %}
{% load i18n %}

<script>
    require.config({
        baseUrl: '{{ STATIC_URL }}js',
        paths: {
            'plugins': '{{ STATIC_URL }}plugins',
            'widget-templates': '{% url "widgets" ""%}'.replace(/\/$/, ""),
            'report-templates': '{% url "report-templates" ""%}'.replace(/\/$/, ""),
            'datatype-config-templates': '{% url "datatype_template" ""%}'.replace(/\/$/, ""),
            'nifty': '{{ STATIC_URL }}plugins/nifty',
            'async': '//cdnjs.cloudflare.com/ajax/libs/requirejs-async/0.1.1/async',
            'text': '//cdnjs.cloudflare.com/ajax/libs/require-text/2.0.12/text.min',
            'jquery': '//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min',
            'js-cookie': '//cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.1/js.cookie.min',
            'select2': '//cdnjs.cloudflare.com/ajax/libs/select2/3.5.1/select2.min',
            'bootstrap': '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/js/bootstrap.min',
            'bootstrap-nifty': '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/js/bootstrap.min',
            'jquery-ui': '//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min',
            'flexslider': '//cdnjs.cloudflare.com/ajax/libs/flexslider/2.2.2/jquery.flexslider-min',
            'openlayers': '{{ STATIC_URL }}plugins/openlayers/ol',
            'easing': '//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min',
            'backbone': '//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min',
            'underscore': '//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min',
            'jquery-validate': '//cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.11.1/jquery.validate.min',
            'd3': '//cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min',
            'dropzone': '//cdnjs.cloudflare.com/ajax/libs/dropzone/3.8.4/dropzone-amd-module.min',
            'summernote': '//cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote.min',
            'knockout': '//cdnjs.cloudflare.com/ajax/libs/knockout/3.4.0/knockout-min',
            'knockout-mapping': '//cdnjs.cloudflare.com/ajax/libs/knockout.mapping/2.4.1/knockout.mapping.min',
            'moment': '//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min',
            'bootstrap-datetimepicker': '//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/3.1.3/js/bootstrap-datetimepicker.min',
            'shp': '//raw.githubusercontent.com/wavded/js-shapefile-to-geojson/master/shapefile',
            'blueimp-gallery': '//cdnjs.cloudflare.com/ajax/libs/blueimp-gallery/2.15.2/js/blueimp-gallery',
            'blueimp-jquery': '//blueimp.github.io/Gallery/js/jquery.blueimp-gallery',
            'blueimp-helper': '//cdnjs.cloudflare.com/ajax/libs/blueimp-gallery/2.15.2/js/blueimp-helper.min',
            'bootstrap-datepicker': '//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/js/bootstrap-datepicker.min',
            'chosen': '//cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.jquery.min',
            'mapbox-gl': '//api.mapbox.com/mapbox-gl-js/v0.21.0/mapbox-gl',
            'noUiSlider': '//cdnjs.cloudflare.com/ajax/libs/noUiSlider/8.5.1/nouislider.min',
            'chosen-ajax-addition': '{{ STATIC_URL }}plugins/chosen.ajaxaddition.jquery'
        },
        shim: {
            'openlayers': {
                exports: 'ol'
            },
            'nifty': {
                deps: ['bootstrap-nifty', 'jquery', 'jquery-ui']
            },
            'chosen': {
                deps: ['jquery']
            },
            'bootstrap': {
                deps: ['jquery', 'jquery-ui']
            },
            'bootstrap-nifty': {
                deps: ['jquery', 'jquery-ui']
            },
            'jquery-validate': {
                deps: ['jquery']
            },
            'jquery-ui': {
                deps: ['jquery']
            },
            'select2': {
                deps: ['jquery']
            },
            'noUiSlider': {
                deps: ['jquery'],
                exports : '$'
            },
            'plugins/mapbox-gl-draw': {
                deps: ['mapbox-gl'],
                exports: 'mapboxgl.Draw'
            }
        }
    });

    require(['utils/set-csrf-token']);

    // put values here that should be accessible application wide
    define('arches', [], function () {
        return {
            urls: {
                home: "{% url 'home' %}",
                media: "{{ STATIC_URL }}",
                uploadedfiles: "{{ MEDIA_URL }}",
                concept_tree: "{% url 'concept_tree' %}",
                concept: "{% url 'concept' 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' %}",
                concept_search: "{% url 'concept_search' %}",
                concept_manage_parents: "{% url 'concept_manage_parents' 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' %}",<commit_msg>added jquery dependency in chosen.ajaxaddition.jquery shim re #723<commit_after>{% load staticfiles %}
{% load i18n %}

<script>
    require.config({
        baseUrl: '{{ STATIC_URL }}js',
        paths: {
            'plugins': '{{ STATIC_URL }}plugins',
            'widget-templates': '{% url "widgets" ""%}'.replace(/\/$/, ""),
            'report-templates': '{% url "report-templates" ""%}'.replace(/\/$/, ""),
            'datatype-config-templates': '{% url "datatype_template" ""%}'.replace(/\/$/, ""),
            'nifty': '{{ STATIC_URL }}plugins/nifty',
            'async': '//cdnjs.cloudflare.com/ajax/libs/requirejs-async/0.1.1/async',
            'text': '//cdnjs.cloudflare.com/ajax/libs/require-text/2.0.12/text.min',
            'jquery': '//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min',
            'js-cookie': '//cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.1/js.cookie.min',
            'select2': '//cdnjs.cloudflare.com/ajax/libs/select2/3.5.1/select2.min',
            'bootstrap': '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/js/bootstrap.min',
            'bootstrap-nifty': '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/js/bootstrap.min',
            'jquery-ui': '//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min',
            'flexslider': '//cdnjs.cloudflare.com/ajax/libs/flexslider/2.2.2/jquery.flexslider-min',
            'openlayers': '{{ STATIC_URL }}plugins/openlayers/ol',
            'easing': '//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min',
            'backbone': '//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min',
            'underscore': '//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min',
            'jquery-validate': '//cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.11.1/jquery.validate.min',
            'd3': '//cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min',
            'dropzone': '//cdnjs.cloudflare.com/ajax/libs/dropzone/3.8.4/dropzone-amd-module.min',
            'summernote': '//cdnjs.cloudflare.com/ajax/libs/summernote/0.8.2/summernote.min',
            'knockout': '//cdnjs.cloudflare.com/ajax/libs/knockout/3.4.0/knockout-min',
            'knockout-mapping': '//cdnjs.cloudflare.com/ajax/libs/knockout.mapping/2.4.1/knockout.mapping.min',
            'moment': '//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min',
            'bootstrap-datetimepicker': '//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/3.1.3/js/bootstrap-datetimepicker.min',
            'shp': '//raw.githubusercontent.com/wavded/js-shapefile-to-geojson/master/shapefile',
            'blueimp-gallery': '//cdnjs.cloudflare.com/ajax/libs/blueimp-gallery/2.15.2/js/blueimp-gallery',
            'blueimp-jquery': '//blueimp.github.io/Gallery/js/jquery.blueimp-gallery',
            'blueimp-helper': '//cdnjs.cloudflare.com/ajax/libs/blueimp-gallery/2.15.2/js/blueimp-helper.min',
            'bootstrap-datepicker': '//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/js/bootstrap-datepicker.min',
            'chosen': '//cdnjs.cloudflare.com/ajax/libs/chosen/1.4.2/chosen.jquery.min',
            'mapbox-gl': '//api.mapbox.com/mapbox-gl-js/v0.21.0/mapbox-gl',
            'noUiSlider': '//cdnjs.cloudflare.com/ajax/libs/noUiSlider/8.5.1/nouislider.min',
            'chosen-ajax-addition': '{{ STATIC_URL }}plugins/chosen.ajaxaddition.jquery'
        },
        shim: {
            'openlayers': {
                exports: 'ol'
            },
            'nifty': {
                deps: ['bootstrap-nifty', 'jquery', 'jquery-ui']
            },
            'chosen': {
                deps: ['jquery']
            },
            'bootstrap': {
                deps: ['jquery', 'jquery-ui']
            },
            'bootstrap-nifty': {
                deps: ['jquery', 'jquery-ui']
            },
            'jquery-validate': {
                deps: ['jquery']
            },
            'jquery-ui': {
                deps: ['jquery']
            },
            'select2': {
                deps: ['jquery']
            },
            'noUiSlider': {
                deps: ['jquery'],
                exports : '$'
            },
            'plugins/mapbox-gl-draw': {
                deps: ['mapbox-gl'],
                exports: 'mapboxgl.Draw'
            },
            'chosen-ajax-addition': {
                deps: ['jquery']
            }
        }
    });

    require(['utils/set-csrf-token']);

    // put values here that should be accessible application wide
    define('arches', [], function () {
        return {
            urls: {
                home: "{% url 'home' %}",
                media: "{{ STATIC_URL }}",
                uploadedfiles: "{{ MEDIA_URL }}",
                concept_tree: "{% url 'concept_tree' %}",
                concept: "{% url 'concept' 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' %}",
                concept_search: "{% url 'concept_search' %}",
                concept_manage_parents: "{% url 'concept_manage_parents' 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' %}",
{'fraction_non_alphanumeric': 0.18990743505524038, 'fraction_numerical': 0.018811585547924753, 'mean_word_length': 1.9082489146164978, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, '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': '6627671', 'n_tokens_mistral': 3603, 'n_tokens_neox': 3321, 'n_words': 338}