<commit_before><%= form_for(@issue) do |f| %>
<% if @issue.errors.any? %>
<div id="error_explanation">
  <h2><%= t "errors_occured" %>:</h2>

  <ul>
    <% @issue.errors.messages.each do |key, msg| %>
    <li>
      <h3><%= t 'activerecord.attributes.issue.' + key.to_s %></h3>
      <%= msg[0] %>
    </li>
    <% end %>
  </ul>
</div>
<% end %>

<div class="field">
  <%= f.label :name %>
  <%= f.text_field :name %>
</div>
<div class="field">
  <%= f.label :description %>
  <%= f.text_area :description %>
</div>
<div class="field sp_radio_images image_select">
  <%= f.label :story_points %>
  <div>
    <% @story_points.each do |number| %>
      <div class="radio_image sp_<%= number %>" data-sp-value="<%= number %>">
        <img src="<%= image_path "sp_#{number}_light.png" %>"
             data-img_heavy="<%= image_path "sp_#{number}_heavy.png" %>"
             data-img_light="<%= image_path "sp_#{number}_light.png" %>">
      </div>
    <% end %>
    <%= f.hidden_field :story_points, :value => (@issue.story_points ? @issue.formatted_story_points : @story_points[0]) %>
  </div><commit_msg>#138 Preselects half Story Points in edit<commit_after><%= form_for(@issue) do |f| %>
<% if @issue.errors.any? %>
<div id="error_explanation">
  <h2><%= t "errors_occured" %>:</h2>

  <ul>
    <% @issue.errors.messages.each do |key, msg| %>
    <li>
      <h3><%= t 'activerecord.attributes.issue.' + key.to_s %></h3>
      <%= msg[0] %>
    </li>
    <% end %>
  </ul>
</div>
<% end %>

<div class="field">
  <%= f.label :name %>
  <%= f.text_field :name %>
</div>
<div class="field">
  <%= f.label :description %>
  <%= f.text_area :description %>
</div>
<div class="field sp_radio_images image_select">
  <%= f.label :story_points %>
  <div>
    <% @story_points.each do |number| %>
      <div class="radio_image sp_<%= number.to_s.gsub(".", "_") %>" data-sp-value="<%= number %>">
        <img src="<%= image_path "sp_#{number}_light.png" %>"
             data-img_heavy="<%= image_path "sp_#{number}_heavy.png" %>"
             data-img_light="<%= image_path "sp_#{number}_light.png" %>">
      </div>
    <% end %>
    <%= f.hidden_field :story_points, :value => (@issue.story_points ? @issue.formatted_story_points : @story_points[0]) %>
  </div>
{'fraction_non_alphanumeric': 0.23427812223206376, 'fraction_numerical': 0.006643046944198406, 'mean_word_length': 3.3358925143953937, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, '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': '497430', 'n_tokens_mistral': 944, 'n_tokens_neox': 859, 'n_words': 161}