<commit_before>{#
# @license 3-clause BSD
# @link https://github.com/QuestionKey/QuestionKey-Core
#}

{% extends 'QuestionKeyBundle::base.html.twig' %}

{% block main %}

  <p>Your tree is:</p>

  <a href="" onclick="if (tree) { tree.start(); $(this).hide(); }; return false; ">Start Tree!</a>

  <div id="DemoHere">
  </div>

{% endblock %}

{% block javascript %}
  {% javascripts
      '@QuestionKeyBundle/Resources/public/js/external/normal-jquery-bootstrap-v1.js' %}
      <script src="{{ asset_url }}"></script>
  {% endjavascripts %}
  <script>
    var treeId = '{{ tree.publicId }}';
    var tree;
    $( document ).ready(function() {
      tree = new NormalTree(document.location.host, treeId, "DemoHere", {'logUserActions':false});
    });
  </script>
{% endblock %}<commit_msg>Named route for JS files loaded externally<commit_after>{#
# @license 3-clause BSD
# @link https://github.com/QuestionKey/QuestionKey-Core
#}

{% extends 'QuestionKeyBundle::base.html.twig' %}

{% block main %}

  <p>Your tree is:</p>

  <a href="" onclick="if (tree) { tree.start(); $(this).hide(); }; return false; ">Start Tree!</a>

  <div id="DemoHere">
  </div>

{% endblock %}

{% block javascript %}
  {% javascripts
      '@QuestionKeyBundle/Resources/public/js/external/normal-jquery-bootstrap-v1.js'  output='/js/external/normal-jquery-bootstrap-v1.js' %}
      <script src="{{ asset_url }}"></script>
  {% endjavascripts %}
  <script>
    var treeId = '{{ tree.publicId }}';
    var tree;
    $( document ).ready(function() {
      tree = new NormalTree(document.location.host, treeId, "DemoHere", {'logUserActions':false});
    });
  </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.2014475271411339, 'fraction_numerical': 0.0030156815440289505, 'mean_word_length': 3.8508771929824563, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 2, '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': '3432708', 'n_tokens_mistral': 593, 'n_tokens_neox': 543, 'n_words': 111}