<commit_before><a name="configuration"></a><h2>Configuration</h2>

<% proj = config(:default_redmine_proj) %>
<%= flash("You need to configure this!", false) if not proj or proj.empty? %>

<form method="POST" action="/config">
  <table>
    <tr>
      <td>Default Redmine project for onboarding tasks</td>
      <td>
        <select name="default-redmine-proj">
          <% all_redmine_projects.each do |proj| %>
            <option value="<%= proj["identifier"] %>"
              <%= "selected" if proj["identifier"] == config(:default_redmine_proj) %>
            >
                <%= proj["name"] %>
            </option>
          <% end # all_redmine_projects %>
        </select>
      </td>
    </tr>

    <tr>
      <td>
        Hiring Manager <br/>
        <span class="small info">(will watch every onboarding ticket)</span>
      </td>
      <td>
        <select name="hiring-manager">
          <% all_redmine_users.each do |user| %>
            <option value="<%= user["login"] %>"
              <%= "selected" if user["login"] == config(:hiring_manager) %>
            >
              <%= user["firstname"] %> <%= user["lastname"] %> ("<%= user["login"] %>")
            </option>
          <% end # all_redmine_users %>
        </select>
      </td>
    </tr>

    <tr>
      <td><input type="submit" value="Save"/></td>
      <td></td>
    </tr>
  </table>
</form><commit_msg>More apparent error on first run.<commit_after><a name="configuration"></a><h2>Configuration</h2>

<%
  proj = config(:default_redmine_proj)
  hr_mgmr = config(:hiring_manager)
%>

<% if !proj or proj.empty? or !hr_mgmr or hr_mgmr.empty? %>
  <%= flash("You need to configure this!", false) %>
<% end %>

<form method="POST" action="/config">
  <table>
    <tr>
      <td>Default Redmine project for onboarding tasks</td>
      <td>
        <select name="default-redmine-proj">
          <option value="">--</option>
          <% all_redmine_projects.each do |proj| %>
            <option value="<%= proj["identifier"] %>"
              <%= "selected" if proj["identifier"] == config(:default_redmine_proj) %>
            >
                <%= proj["name"] %>
            </option>
          <% end # all_redmine_projects %>
        </select>
      </td>
    </tr>

    <tr>
      <td>
        Hiring Manager <br/>
        <span class="small info">(will watch every onboarding ticket)</span>
      </td>
      <td>
        <select name="hiring-manager">
          <option value="">--</option>
          <% all_redmine_users.each do |user| %>
            <option value="<%= user["login"] %>"
              <%= "selected" if user["login"] == config(:hiring_manager) %>
            >
              <%= user["firstname"] %> <%= user["lastname"] %> ("<%= user["login"] %>")
            </option>
          <% end # all_redmine_users %>
        </select>
      </td>
    </tr>

    <tr>
      <td><input type="submit" value="Save"/></td>
      <td></td>
    </tr>
  </table>
</form>
{'fraction_non_alphanumeric': 0.19427609427609427, 'fraction_numerical': 0.0013468013468013469, 'mean_word_length': 2.0947916666666666, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, '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': '3689107', 'n_tokens_mistral': 1007, 'n_tokens_neox': 929, 'n_words': 192}