<commit_before>{% extends "base_site.html" %}

{% block title %} CEA Input Editor {% endblock title %}

{% block stylesheets %}
  {{ super() }}
  <link rel="stylesheet" href="{{ url_for('inputs_blueprint.static', filename='css/map.css') }}">
  <link rel="stylesheet" href="{{ url_for('inputs_blueprint.static', filename='vendor/tabulator.min.css') }}">
{% endblock stylesheets %}

{% block content %}
    <div class="right_col" role="main">

      <!-- modal dialog for saving popup -->
      <div class="modal fade" id="saving-popup" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
          <div class="modal-content">
            <div class="modal-body" id="saving-text"></div>
          </div>
        </div>
      </div>

      <!-- modal dialog for editing table row data -->
      <div class="modal fade" id="cea-column-editor" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
          <div class="modal-content">

            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
              </button>
              <h4 class="modal-title"></h4>
            </div>
            <div class="modal-body">
              <div id="selected-buildings"></div>
              <br>
              <h4>Properties</h4>
              <form id="cea-column-editor-form" class="form-horizontal form-label-left">
              </form>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-default cea-modal-cancel" data-dismiss="modal">Cancel</button>
              <button type="submit" class="btn btn-default cea-modal-ok" form="cea-column-editor-form">OK</button>
            </div>
          </div>
        </div>
      </div>

      <div class="">
        <div class="row">
          <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
              <div class="x_content">
                <div>
                  <div id='layers-group'>
                  <span id="zone-cb" hidden>
                  <input class="visibility-toggle" id='zone-toggle' type='checkbox' name='layer-toggle' value='zone' checked>
                    <label for='zone-toggle'>Zone</label>
                  </span>
                    <span id="district-cb" hidden>
                  <input class="visibility-toggle" id='district-toggle' type='checkbox' name='layer-toggle' value='district' checked>
                    <label for='district-toggle'>District</label>
                  </span>
                    <span id="streets-cb" hidden>
                  <input class="visibility-toggle" id='streets-toggle' type='checkbox' name='layer-toggle' value='streets' checked>
                    <label for='streets-toggle'>Streets</label>
                  </span>
                    <span id="dh_networks-cb" hidden>
                  <input class="visibility-toggle" id='dh_networks-toggle' type='checkbox' name='layer-toggle' value='dh_networks' checked>
                    <label for='dh_networks-toggle'>DH Network</label>
                  </span>
                    <span id="dc_networks-cb" hidden>
                  <input class="visibility-toggle" id='dc_networks-toggle' type='checkbox' name='layer-toggle' value='dc_networks' checked>
                    <label for='dc_networks-toggle'>DC Network</label>
                  </span>
                  </div>
                  <div id="map-tooltip"></div>
                  <div id="mapid" style="height: 500px;" oncontextmenu="return false;"></div>
                </div>
              </div>
              <div class="x_content" id="cea-inputs" style="display: none">
                  <div>
                    <ul class="nav nav-pills">
                      {% for tab in tabs %}
                      {% if loop.index0 == 0 %}
                      <li class="tab" id="{{ tab }}-tab" data-name="{{ tab }}"><a>{{ tab }}</a></li>
                      {% else %}
                      <li class="tab" id="{{ tab }}-tab" data-name="{{ tab }}"><a>{{ tab }}</a></li>
                      {% endif %}
                      {% endfor %}
                    </ul>
                  </div>
                <div class="panel panel-default">
                  <div class="panel-heading clearfix">
                    <div class="pull-right" id="table-buttons">
                      <button class="btn btn-default" id="select-all-button">Select All</button>
                      <button class="btn btn-default" id="filter-button">Filter on Selection</button>
                      <button class="btn btn-default" id="edit-button">Edit Selection</button>
                      <button class="btn btn-default" id="clear-button">Clear Selection</button>
                      <button class="btn btn-danger" id="delete-button">Delete Selection</button>
                    </div>
                  </div>
                  <div id="property-table"></div>
                </div>
                <div>
                  <button class="btn btn-default" id="save-button">Save</button>
                  <button class="btn btn-default" id="discard-button">Discard Changes</button>
                </div>
              </div>
            </div><commit_msg>Remove redundant code<commit_after>{% extends "base_site.html" %}

{% block title %} CEA Input Editor {% endblock title %}

{% block stylesheets %}
  {{ super() }}
  <link rel="stylesheet" href="{{ url_for('inputs_blueprint.static', filename='css/map.css') }}">
  <link rel="stylesheet" href="{{ url_for('inputs_blueprint.static', filename='vendor/tabulator.min.css') }}">
{% endblock stylesheets %}

{% block content %}
    <div class="right_col" role="main">

      <!-- modal dialog for saving popup -->
      <div class="modal fade" id="saving-popup" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
          <div class="modal-content">
            <div class="modal-body" id="saving-text"></div>
          </div>
        </div>
      </div>

      <!-- modal dialog for editing table row data -->
      <div class="modal fade" id="cea-column-editor" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
          <div class="modal-content">

            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
              </button>
              <h4 class="modal-title"></h4>
            </div>
            <div class="modal-body">
              <div id="selected-buildings"></div>
              <br>
              <h4>Properties</h4>
              <form id="cea-column-editor-form" class="form-horizontal form-label-left">
              </form>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-default cea-modal-cancel" data-dismiss="modal">Cancel</button>
              <button type="submit" class="btn btn-default cea-modal-ok" form="cea-column-editor-form">OK</button>
            </div>
          </div>
        </div>
      </div>

      <div class="">
        <div class="row">
          <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
              <div class="x_content">
                <div>
                  <div id='layers-group'>
                  <span id="zone-cb" hidden>
                  <input class="visibility-toggle" id='zone-toggle' type='checkbox' name='layer-toggle' value='zone' checked>
                    <label for='zone-toggle'>Zone</label>
                  </span>
                    <span id="district-cb" hidden>
                  <input class="visibility-toggle" id='district-toggle' type='checkbox' name='layer-toggle' value='district' checked>
                    <label for='district-toggle'>District</label>
                  </span>
                    <span id="streets-cb" hidden>
                  <input class="visibility-toggle" id='streets-toggle' type='checkbox' name='layer-toggle' value='streets' checked>
                    <label for='streets-toggle'>Streets</label>
                  </span>
                    <span id="dh_networks-cb" hidden>
                  <input class="visibility-toggle" id='dh_networks-toggle' type='checkbox' name='layer-toggle' value='dh_networks' checked>
                    <label for='dh_networks-toggle'>DH Network</label>
                  </span>
                    <span id="dc_networks-cb" hidden>
                  <input class="visibility-toggle" id='dc_networks-toggle' type='checkbox' name='layer-toggle' value='dc_networks' checked>
                    <label for='dc_networks-toggle'>DC Network</label>
                  </span>
                  </div>
                  <div id="map-tooltip"></div>
                  <div id="mapid" style="height: 500px;" oncontextmenu="return false;"></div>
                </div>
              </div>
              <div class="x_content" id="cea-inputs" style="display: none">
                  <div>
                    <ul class="nav nav-pills">
                      {% for tab in tabs %}
                      <li class="tab" id="{{ tab }}-tab" data-name="{{ tab }}"><a>{{ tab }}</a></li>
                      {% endfor %}
                    </ul>
                  </div>
                <div class="panel panel-default">
                  <div class="panel-heading clearfix">
                    <div class="pull-right" id="table-buttons">
                      <button class="btn btn-default" id="select-all-button">Select All</button>
                      <button class="btn btn-default" id="filter-button">Filter on Selection</button>
                      <button class="btn btn-default" id="edit-button">Edit Selection</button>
                      <button class="btn btn-default" id="clear-button">Clear Selection</button>
                      <button class="btn btn-danger" id="delete-button">Delete Selection</button>
                    </div>
                  </div>
                  <div id="property-table"></div>
                </div>
                <div>
                  <button class="btn btn-default" id="save-button">Save</button>
                  <button class="btn btn-default" id="discard-button">Discard Changes</button>
                </div>
              </div>
            </div>
{'fraction_non_alphanumeric': 0.15902964959568733, 'fraction_numerical': 0.0026954177897574125, 'mean_word_length': 1.726771653543307, 'pattern_counts': {'":': 0, '<': 239, '<?xml version=': 0, '>': 239, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4734998', 'n_tokens_mistral': 2931, 'n_tokens_neox': 2723, 'n_words': 582}