<commit_before># extends 'base.html'
# import 'macro/forms.html' as forms

# block head
  # include 'bit/google_maps_api.html'
# endblock

# block content
  <div class="page-header">
    <h1>{{title}}</h1>
  </div>
  <form class="form" method="POST" action=".">
    {{form.csrf_token}}
    <div class="row">
      <div class="col-md-6">
        <div class="{% if form.timestamp.errors %} has-error {% endif %}">
          <div class="pull-right">
            <span class="date today label label-warning">{{_('Today')}}</span>
            <span class="date today now label label-success">{{_('Now')}}</span>
          </div>
          <label class="control-label" for="year">
            {{_('Datetime')}}
          </label>
          <div class="row">
            <div class="col-sm-3 form-group">
              {{form.year(class='form-control datetime', title=form.year.label.text)}}
              <p class="help-block">

              </p>
            </div>
            <div class="col-sm-3 form-group">
              <select class="form-control datetime" id="month" name="month" data-selected="{{form.month.data or 0}}" title="{{form.month.label.text}}"></select>
            </div>
            <div class="col-sm-3 form-group">
              <select class="form-control datetime" id="day" name="day" data-selected="{{form.day.data or 0}}" title="{{form.day.label.text}}"></select>
            </div>
            <div class="col-sm-3 form-group">
              {{form.hour(class='form-control', title=form.hour.label.text)}}
            </div>
          </div>
          # for error in form.timestamp.errors
            <span class="help-block">{{error}}</span>
          # endfor
        </div>
        <div class="form-group {{'has-error' if form.search.errors}}">
          {{form.search.label(class='control-label')}}
          {{form.search(class='form-control text', autocomplete='off')}}
          {{forms.field_errors(form.search)}}
          <p class="help-block">
            <span class="place label label-success" title="{{_('Home')}}">{{current_user.user_db.home}}</span>
            # if city and country
              <span class="place label label-warning" title="{{_('Current Location')}}">{{request.city.title()}}, {{request.country}}</span>
            # endif
          </p>
        </div>
        {{form.country_code()}}
        {{form.lat()}}
        {{form.lng()}}

        {{forms.readonly_field(form.address)}}
        <div class="row">
          <div class="col-xs-6">
            {{forms.readonly_field(form.place)}}
          </div><commit_msg>Showing current location in event update<commit_after># extends 'base.html'
# import 'macro/forms.html' as forms

# block head
  # include 'bit/google_maps_api.html'
# endblock

# block content
  <div class="page-header">
    <h1>{{title}}</h1>
  </div>
  <form class="form" method="POST" action=".">
    {{form.csrf_token}}
    <div class="row">
      <div class="col-md-6">
        <div class="{% if form.timestamp.errors %} has-error {% endif %}">
          <div class="pull-right">
            <span class="date today label label-warning">{{_('Today')}}</span>
            <span class="date today now label label-success">{{_('Now')}}</span>
          </div>
          <label class="control-label" for="year">
            {{_('Datetime')}}
          </label>
          <div class="row">
            <div class="col-sm-3 form-group">
              {{form.year(class='form-control datetime', title=form.year.label.text)}}
              <p class="help-block">

              </p>
            </div>
            <div class="col-sm-3 form-group">
              <select class="form-control datetime" id="month" name="month" data-selected="{{form.month.data or 0}}" title="{{form.month.label.text}}"></select>
            </div>
            <div class="col-sm-3 form-group">
              <select class="form-control datetime" id="day" name="day" data-selected="{{form.day.data or 0}}" title="{{form.day.label.text}}"></select>
            </div>
            <div class="col-sm-3 form-group">
              {{form.hour(class='form-control', title=form.hour.label.text)}}
            </div>
          </div>
          # for error in form.timestamp.errors
            <span class="help-block">{{error}}</span>
          # endfor
        </div>
        <div class="form-group {{'has-error' if form.search.errors}}">
          {{form.search.label(class='control-label')}}
          {{form.search(class='form-control text', autocomplete='off')}}
          {{forms.field_errors(form.search)}}
          <p class="help-block">
            <span class="place label label-success" title="{{_('Home')}}">{{current_user.user_db.home}}</span>
            # if request.city and request.country
              <span class="place label label-warning" title="{{_('Current Location')}}">{{request.city.title()}}, {{request.country}}</span>
            # endif
          </p>
        </div>
        {{form.country_code()}}
        {{form.lat()}}
        {{form.lng()}}

        {{forms.readonly_field(form.address)}}
        <div class="row">
          <div class="col-xs-6">
            {{forms.readonly_field(form.place)}}
          </div>
{'fraction_non_alphanumeric': 0.19480269489894128, 'fraction_numerical': 0.0038498556304138597, 'mean_word_length': 2.211372064276885, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '2873730', 'n_tokens_mistral': 1586, 'n_tokens_neox': 1541, 'n_words': 296}