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

{% block content %}
<script>
function postData(url, toggleValue, userId) {
  $.post(
      url,
      { toggle: toggleValue, user : userId, csrfmiddlewaretoken : '{{csrf_token}}'},
      function(data) {
      });
}
</script>
<div class="super-form"
    <form method="GET" action="{% url 'user-homepage' %}">
      <label style="margin-right: 100px;">Event name:</label>
      <input name="event_name" class="form-control" style="display:inline-block; width:40%;" value="{{event_name_prefill}}" type="text"/>
      <input type="submit" class="btn btn-default btn-lg" style="display:inline-block;" value="Filter" />
      <select multiple="multiple" class="form-control" id="id_preference" name="preference" style="margin-top: 10px; height: 100px;">
        {% for preference in preferences %}
        <b><option value="{{ preference.name }}" class="bg-success" style="text-align: center; text-transform: uppercase; width: 33%; height: 33%; float: left; vertical-align: middle;" {% if preference.name in selected_preferences %} selected {% endif %}>
          {{ preference.name }}
        </option>
        {% endfor %}
      </select>
    </form><commit_msg>fixup + smaller filter button.<commit_after>{% extends "base.html" %}

{% block content %}
<script>
function postData(url, toggleValue, userId) {
  $.post(
      url,
      { toggle: toggleValue, user : userId, csrfmiddlewaretoken : '{{csrf_token}}'},
      function(data) {
      });
}
</script>
<div class="super-form">
    <form method="GET" action="{% url 'user-homepage' %}">
      <label style="margin-right: 100px;">Event name:</label>
      <input name="event_name" class="form-control" style="display:inline-block; width:40%;" value="{{event_name_prefill}}" type="text"/>
      <input type="submit" class="btn btn-default" style="display:inline-block;" value="Filter" />
      <select multiple="multiple" class="form-control" id="id_preference" name="preference" style="margin-top: 10px; height: 100px;">
        {% for preference in preferences %}
        <b><option value="{{ preference.name }}" class="bg-success" style="text-align: center; text-transform: uppercase; width: 33%; height: 33%; float: left; vertical-align: middle;" {% if preference.name in selected_preferences %} selected {% endif %}>
          {{ preference.name }}
        </option>
        {% endfor %}
      </select>
    </form>
{'fraction_non_alphanumeric': 0.18317447161210113, 'fraction_numerical': 0.011603812681309573, 'mean_word_length': 3.987603305785124, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 30, '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': '4984381', 'n_tokens_mistral': 768, 'n_tokens_neox': 717, 'n_words': 171}