<commit_before>{% extends 'app_manager/managed_app.html'%}
{% load xforms_extras %}
{% load hq_shared_tags %}
{% load i18n %}

{% block js %}{{ block.super }}
<script src="{% static 'hqwebapp/js/lib/require.js' %}"></script>
{% if not vellum_debug %}
<link href="{% static 'app_manager/js/vellum/style.css' %}" type="text/css" rel="stylesheet"></link>
{% elif vellum_debug == "dev-min" %}
<link href="{% static 'formdesigner/_build/style.css' %}" type="text/css" rel="stylesheet"></link>
{% endif %}
{% endblock %}

{% block js-inline %}{{ block.super }}
    <script>

        var VELLUM_OPTIONS = {
            {% if vellum_prerelease %}
            {# use the default set of plugins otherwise #}
            {# non-optional plugins don't need to be listed #}
            plugins: ['itemset'],
            {% endif %}
            features: {{ features|JSON }},
            core: {
                form: {{ form.source|to_javascript_string }},
                formName: "{{ form.name|trans:app.langs|escapejs }}",
                saveType: 'patch',
                saveUrl: '{% url "edit_form_attr" domain app.id form.get_unique_id "xform" %}',
                patchUrl: '{% url "patch_xform" domain app.id form.get_unique_id %}',
                allowedDataNodeReferences: [
                    "meta/deviceID",
                    "meta/instanceID",
                    "meta/username",
                    "meta/userID",
                    "meta/timeStart",
                    "meta/timeEnd"
                ],
                onFormSave: function (data) {
                    COMMCAREHQ.app_manager.updateDOM(data.update);
                },
                sessionid: {{ sessionid|JSON }}
            },
            javaRosa: {
                langs: {{ app.langs|JSON }},
                displayLanguage: {{ lang|JSON }},
            },
            uploader: {
                uploadUrls: {
                    image: '{% url "hqmedia_uploader_image" domain app.id %}',
                    audio: '{% url "hqmedia_uploader_audio" domain app.id %}',
                    video: '{% url "hqmedia_uploader_video" domain app.id %}'
                },
                objectMap: {{ multimedia_object_map|JSON }},<commit_msg>pass form id to form builder<commit_after>{% extends 'app_manager/managed_app.html'%}
{% load xforms_extras %}
{% load hq_shared_tags %}
{% load i18n %}

{% block js %}{{ block.super }}
<script src="{% static 'hqwebapp/js/lib/require.js' %}"></script>
{% if not vellum_debug %}
<link href="{% static 'app_manager/js/vellum/style.css' %}" type="text/css" rel="stylesheet"></link>
{% elif vellum_debug == "dev-min" %}
<link href="{% static 'formdesigner/_build/style.css' %}" type="text/css" rel="stylesheet"></link>
{% endif %}
{% endblock %}

{% block js-inline %}{{ block.super }}
    <script>

        var VELLUM_OPTIONS = {
            {% if vellum_prerelease %}
            {# use the default set of plugins otherwise #}
            {# non-optional plugins don't need to be listed #}
            plugins: ['itemset'],
            {% endif %}
            features: {{ features|JSON }},
            core: {
                form: {{ form.source|to_javascript_string }},
                formId: '{{ form.get_unique_id }}',
                formName: "{{ form.name|trans:app.langs|escapejs }}",
                saveType: 'patch',
                saveUrl: '{% url "edit_form_attr" domain app.id form.get_unique_id "xform" %}',
                patchUrl: '{% url "patch_xform" domain app.id form.get_unique_id %}',
                allowedDataNodeReferences: [
                    "meta/deviceID",
                    "meta/instanceID",
                    "meta/username",
                    "meta/userID",
                    "meta/timeStart",
                    "meta/timeEnd"
                ],
                onFormSave: function (data) {
                    COMMCAREHQ.app_manager.updateDOM(data.update);
                },
                sessionid: {{ sessionid|JSON }}
            },
            javaRosa: {
                langs: {{ app.langs|JSON }},
                displayLanguage: {{ lang|JSON }},
            },
            uploader: {
                uploadUrls: {
                    image: '{% url "hqmedia_uploader_image" domain app.id %}',
                    audio: '{% url "hqmedia_uploader_audio" domain app.id %}',
                    video: '{% url "hqmedia_uploader_video" domain app.id %}'
                },
                objectMap: {{ multimedia_object_map|JSON }},
{'fraction_non_alphanumeric': 0.14759902633325958, 'fraction_numerical': 0.0008851515822084533, 'mean_word_length': 1.7179795550210464, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3227282', 'n_tokens_mistral': 1401, 'n_tokens_neox': 1279, 'n_words': 249}