<commit_before>{% extends 'event/index.html' %}

{% block content %}
<!-- ############ PAGE START-->
<div class="app-body light" id="view">
  <div class="row-col">
    <div class="col-lg-9 b-r no-border-md">
      <div class="padding p-y-0 m-b-md">
        <h2 class="m-y-md">{% if venue.id %} Update {% else %} Add {% endif %} venue</h2>
        <form method="post">
          {% csrf_token %}
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Name</div>
            <div class="col-sm-3"><input name="name" value="{{ form.name.value|default_if_none:"" }}" placeholder="Name" class="form-control"></div>
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">City</div>
            <div class="col-sm-3"><input name="city" value="{{ form.city.value|default_if_none:"" }}" placeholder="City" class="form-control"></div>
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Country</div>
            <div class="col-sm-3"><input name="country" value="{{ form.country.value|default_if_none:"" }}" placeholder="Country" class="form-control"></div>
            </div>
            <button type="submit" class="btn btn-md rounded primary p-x-md">{% if venue.id %} Update {% else %} Add {% endif %}</button>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{% endblock content %}<commit_msg>Add Venue validation<commit_after>{% extends 'event/index.html' %}

{% block content %}
<!-- ############ PAGE START-->
<div class="app-body light" id="view">
  <div class="row-col">
    <div class="col-lg-9 b-r no-border-md">
      <div class="padding p-y-0 m-b-md">
        <h2 class="m-y-md">{% if venue.id %} Update {% else %} Add {% endif %} venue</h2>
        <form method="post">
          {% csrf_token %}
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Name</div>
            <div class="col-sm-3"><input name="name" value="{{ form.name.value|default_if_none:"" }}" placeholder="Name" class="form-control"></div>
            {% if form.name.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.name.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">City</div>
            <div class="col-sm-3"><input name="city" value="{{ form.city.value|default_if_none:"" }}" placeholder="City" class="form-control"></div>
            {% if form.city.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.city.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
          </div>
          <div class="form-group row">
            <div class="col-sm-1 form-control-label text-muted">Country</div>
            <div class="col-sm-3"><input name="country" value="{{ form.country.value|default_if_none:"" }}" placeholder="Country" class="form-control"></div>
            {% if form.country.errors %}
              <span class="label label-md danger pos-rlt p-a-sm col-xs-2">
                <b class="arrow left b-danger"></b>
                {% for errors in form.country.errors %}
                  {{ errors|striptags }}<br>
                {% endfor %}
              </span>
            {% endif %}
            </div>
            <button type="submit" class="btn btn-md rounded primary p-x-md">{% if venue.id %} Update {% else %} Add {% endif %}</button>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{% endblock content %}
{'fraction_non_alphanumeric': 0.19686020433590828, 'fraction_numerical': 0.00573137303762771, 'mean_word_length': 2.0711553175210407, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, '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': '4642963', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1229, 'n_words': 268}