<commit_before><div id='{{box_id}}' class='modal fade' data-width="760">
  <div class="modal-dialog">
    <div class="modal-content">
      <form role="form" method="post" action="{{form_action}}">
          {% include "components/csrf.html.twig" %}
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">×</span>
             </button>
            <h4 class="modal-title">{{translate(box_title)}}</h4>
          </div>
          <div class="modal-body">
    		    <div class="alert alert-danger" id="{{box_id}}_alert" style="display: none;"></div>
    		    <div class="row">
    		    	<div class="col-sm-10">
    				    {% include 'FormGenerator/FormGenerator.twig' %}
    		    	</div>
    		    </div>
          </div>
          <div class="modal-footer">
            {% if "submit" not in buttons.hidden %}
            <div class="col-xs-8 col-sm-4">
                <div class="vert-pad">
                    <button type="submit" class="btn btn-block btn-lg btn-success js-submit">
                        {{translate(submit_button)}}
                    </button>
                </div>
            </div>
            {% endif %}
            {% if "cancel" not in buttons.hidden %}
            <div class="col-xs-4 col-sm-3 pull-right">
                <div class="vert-pad">
                    <button type="button" class="btn btn-block btn-lg btn-link" data-dismiss="modal">{{translate("CANCEL")}}</button>
                </div>
            </div>
            {% endif %}
          </div>
      </form>
      <script>
		// Load the validator rules for this form
		var validators = {{validators | raw}};
      </script>
    </div>
    <!-- /.modal-content -->
  </div>
  <!-- /.modal-dialog -->
</div>

{% use 'AdminLTE/iCheck.twig' %}
{% use 'AdminLTE/select2.twig' %}

{% block stylesheets_page %}
    {{ parent() }}
{% endblock %}

{% block scripts_page %}
    {{ parent() }}
{% endblock %}<commit_msg>Allow for different form method<commit_after><div id='{{box_id}}' class='modal fade' data-width="760">
  <div class="modal-dialog">
    <div class="modal-content">
      <form role="form" method="{{ (form_method) ? form_method : 'post' }}" action="{{form_action}}">
          {% include "components/csrf.html.twig" %}
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">×</span>
             </button>
            <h4 class="modal-title">{{translate(box_title)}}</h4>
          </div>
          <div class="modal-body">
    		    <div class="alert alert-danger" id="{{box_id}}_alert" style="display: none;"></div>
    		    <div class="row">
    		    	<div class="col-sm-10">
    				    {% include 'FormGenerator/FormGenerator.twig' %}
    		    	</div>
    		    </div>
          </div>
          <div class="modal-footer">
            {% if "submit" not in buttons.hidden %}
            <div class="col-xs-8 col-sm-4">
                <div class="vert-pad">
                    <button type="submit" class="btn btn-block btn-lg btn-success js-submit">
                        {{translate(submit_button)}}
                    </button>
                </div>
            </div>
            {% endif %}
            {% if "cancel" not in buttons.hidden %}
            <div class="col-xs-4 col-sm-3 pull-right">
                <div class="vert-pad">
                    <button type="button" class="btn btn-block btn-lg btn-link" data-dismiss="modal">{{translate("CANCEL")}}</button>
                </div>
            </div>
            {% endif %}
          </div>
      </form>
      <script>
		// Load the validator rules for this form
		var validators = {{validators | raw}};
      </script>
    </div>
    <!-- /.modal-content -->
  </div>
  <!-- /.modal-dialog -->
</div>

{% use 'AdminLTE/iCheck.twig' %}
{% use 'AdminLTE/select2.twig' %}

{% block stylesheets_page %}
    {{ parent() }}
{% endblock %}

{% block scripts_page %}
    {{ parent() }}
{% endblock %}
{'fraction_non_alphanumeric': 0.18482490272373542, 'fraction_numerical': 0.005836575875486381, 'mean_word_length': 1.8306951135581555, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, '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': '4313644', 'n_tokens_mistral': 1340, 'n_tokens_neox': 1233, 'n_words': 251}