<commit_before><form action="{{ action }}" method="post" id="form" class="form-assign-mentor">
  <div id="form_fields_assign_mentor">
    <select name="assign_mentor" id="id_assign_mentor">
      <option value="">Assign a mentor</option>
      {% for m in possible_mentors %}
        <option value="{{ m.key }}" {% if m.selected %}selected="selected"{% endif %}>{{ m.name }}</option>
      {% endfor %}
    </select>
    <input id="form-project-assign-mentor-submit" type="submit" value="Assign"/>
    <span class="note">Select a mentor from the drop-down list to assign to this proposal. <br/>
    Note that only mentors that have clicked the "I wish to mentor this project" button can be selected.</span>
  </div>
</form><commit_msg>Organize the select widget into groups for possible mentors and all mentors.<commit_after><form action="{{ action }}" method="post" id="form" class="form-assign-mentor">
  <div id="form_fields_assign_mentor">
    <select name="assign_mentor" id="id_assign_mentor">
      <option value="">Assign a mentor</option>
      {% if possible_mentors %}
        <optgroup label="Possible Mentors">
          {% for m in possible_mentors %}
            <option value="{{ m.key }}" {% if m.selected %}selected="selected"{% endif %}>{{ m.name }}</option>
          {% endfor %}
        </optgroup>
      {% endif %}
      {% if all_mentors %}
        <optgroup label="All Mentors">
          {% for m in all_mentors %}
            <option value="{{ m.key }}" {% if m.selected %}selected="selected"{% endif %}>{{ m.name }}</option>
          {% endfor %}
        </optgroup>
      {% endif %}
    </select>
    <input id="form-project-assign-mentor-submit" type="submit" value="Assign"/>
    <span class="note">Select a mentor from the drop-down list to assign to this proposal. <br/>
    {% if not all_mentors %}
      Note that only mentors that have clicked the "I wish to mentor this project" button can be selected.</span>
    {% endif %}
  </div>
</form>
{'fraction_non_alphanumeric': 0.16397578203834512, 'fraction_numerical': 0.0, 'mean_word_length': 3.2191489361702126, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '7487907', 'n_tokens_mistral': 630, 'n_tokens_neox': 579, 'n_words': 178}