<commit_before>htmlTemplates.choroplethSidebarForm = """
<div class="upfront-sidebar-content-wrapper">
<div class="upfront-sidebar-content" ng-controller="ChoroplethFormController">
  <form class="upfront-form">
    <fieldset>
      <legend>Map Properties</legend>

      <label>Select a Map from our collection</label>
      <select ng-model="mapName" ng-options="option as option.name for option in predefinedMaps">
        <option value="">-- choose Map --</option>
      </select>

      <label>Upload your own map (geojson files only)</label>
      <input json-upload callback="setMap(data, error)" type="file" name="map"></input>

      <label>Choose a projection for the map</label>
      <select ng-model="projection" ng-options="option.value as option.name for option in projections">
        <option value="">-- choose Projection --</option>
      </select>

    </fieldset>
    <fieldset>
      <legend>Data Visualization</legend>

      <label>Select a property that is matched by your data</label>
      <select ng-model="mappingPropertyOnMap" ng-options="option.value as option.label for option in availableMapProperties">
        <option value="">-- choose Property --</option>
      </select>

      <div ng-show="mappingPropertyOnMap">
        <label>Upload a data file (csv only, comma-separated)</label>
        <input csv-upload callback="setData(data, error)" type="file" name="data"></input>

        <label>Select which (numerical) property you want to visualize</label>
        <select ng-model="valueProperty" ng-options="option.key as option.label for option in availableDataProperties">
          <option value="">-- choose Visualization value --</option>
        </select>

        <label>Select a property that matches your selected map property</label>
        <select ng-model="mappingPropertyOnData" ng-options="option.key as option.label for option in availableDataProperties">
          <option value="">-- choose Visualization value --</option>
        </select>

        <label>Select the color scheme for your visualization <small>(© colorbrewer.org, Cynthia Brewer)</small></label>
        <select ng-model="colorScheme" ng-options="option.cssClass as option.name for option in availableColorSchemes">
          <option value="">-- choose Color Scheme --</option>
        </select>

        <label>Select in how many steps the color will be divided</label>
        <select ng-model="quantizeSteps" ng-options="option for option in availableQuantizeSteps">
        </select>
        <!-- TODO: Slider probably doesn't work since it needs click events on the document which are not propagated from within the sidebar -->
        <!--<slider floor="3" ceiling="9" step="1" precision="1" ng-model="bla"></slider>-->
      </div>

    </fieldset

  </form>
</div>
</div>
"""
<commit_msg>add delete button to choropleth<commit_after>htmlTemplates.choroplethSidebarForm = """
<div class="upfront-sidebar-content-wrapper">
<div class="upfront-sidebar-content" ng-controller="ChoroplethFormController">
  <form class="upfront-form">
    <fieldset>
      <legend>Map Properties</legend>

      <label>Select a Map from our collection</label>
      <select ng-model="mapName" ng-options="option as option.name for option in predefinedMaps">
        <option value="">-- choose Map --</option>
      </select>

      <label>Upload your own map (geojson files only)</label>
      <input json-upload callback="setMap(data, error)" type="file" name="map"></input>

      <label>Choose a projection for the map</label>
      <select ng-model="projection" ng-options="option.value as option.name for option in projections">
        <option value="">-- choose Projection --</option>
      </select>

    </fieldset>
    <fieldset>
      <legend>Data Visualization</legend>

      <label>Select a property that is matched by your data</label>
      <select ng-model="mappingPropertyOnMap" ng-options="option.value as option.label for option in availableMapProperties">
        <option value="">-- choose Property --</option>
      </select>

      <div ng-show="mappingPropertyOnMap">
        <label>Upload a data file (csv only, comma-separated)</label>
        <input csv-upload callback="setData(data, error)" type="file" name="data"></input>

        <label>Select which (numerical) property you want to visualize</label>
        <select ng-model="valueProperty" ng-options="option.key as option.label for option in availableDataProperties">
          <option value="">-- choose Visualization value --</option>
        </select>

        <label>Select a property that matches your selected map property</label>
        <select ng-model="mappingPropertyOnData" ng-options="option.key as option.label for option in availableDataProperties">
          <option value="">-- choose Visualization value --</option>
        </select>

        <label>Select the color scheme for your visualization <small>(© colorbrewer.org, <NAME>)</small></label>
        <select ng-model="colorScheme" ng-options="option.cssClass as option.name for option in availableColorSchemes">
          <option value="">-- choose Color Scheme --</option>
        </select>

        <label>Select in how many steps the color will be divided</label>
        <select ng-model="quantizeSteps" ng-options="option for option in availableQuantizeSteps">
        </select>
        <!-- TODO: Slider probably doesn't work since it needs click events on the document which are not propagated from within the sidebar -->
        <!--<slider floor="3" ceiling="9" step="1" precision="1" ng-model="bla"></slider>-->
      </div>

    </fieldset

  </form>
</div>
<div>
  <div class="upfront-snippet-grouptitle"><i class="entypo-down-open-mini"></i>Actions</div>
  <ul class="upfront-action-list" style="text-align: center">
    <li ng-show="isDeletable(snippet)">
      <button class="upfront-btn upfront-control upfront-btn-danger"
            type="button"
            ng-click="deleteSnippet(snippet)">
        <span class="entypo-trash"></span>
        <span>löschen</span>
      </button>
    </li>
  </ul>
</div>
</div>
"""

{'fraction_non_alphanumeric': 0.1400262037340321, 'fraction_numerical': 0.0013101867016049786, 'mean_word_length': 3.318953323903819, 'pattern_counts': {'":': 0, '<': 160, '<?xml version=': 0, '>': 158, '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': '5712368', 'n_tokens_mistral': 1733, 'n_tokens_neox': 1655, 'n_words': 496}