<commit_before><%= simple_form_for @need, :html => { :class => 'form-horizontal' } do |f| %>
  <%= f.input :location %>
  <%= error_span(@need[:location]) %>
  <%= f.input :start_time %>
  <%= error_span(@need[:start_time]) %>
  <%= f.input :end_time %>
  <%= error_span(@need[:end_time]) %>
  <%= f.input :volunteers_needed %>
  <%= error_span(@need[:volunteers_needed]) %>
  <%= f.input :city %>
  <%= error_span(@need[:city]) %>
  <%= f.input :category %>
  <%= error_span(@need[:category]) %>

  <%= f.button :submit, :class => 'btn-primary' %>
  <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                needs_path, :class => 'btn btn-default' %>
<% end %><commit_msg>add categories to needs form, add current_user to need<commit_after><%= simple_form_for @need, :html => { :class => 'form-horizontal' } do |f| %>
  <%= f.input :location %>
  <%= error_span(@need[:location]) %>
  <%= f.input :start_time %>
  <%= error_span(@need[:start_time]) %>
  <%= f.input :end_time %>
  <%= error_span(@need[:end_time]) %>
  <%= f.input :volunteers_needed %>
  <%= error_span(@need[:volunteers_needed]) %>
  <%= f.input :city %>
  <%= error_span(@need[:city]) %>
  <%= f.input :category, collection: Need.categories.keys %>
  <%= error_span(@need[:category]) %>

  <%= f.button :submit, :class => 'btn-primary' %>
  <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                needs_path, :class => 'btn btn-default' %>
<% end %>
{'fraction_non_alphanumeric': 0.2447171097477846, 'fraction_numerical': 0.0, 'mean_word_length': 4.224199288256227, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 45, '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': '1530055', 'n_tokens_mistral': 593, 'n_tokens_neox': 523, 'n_words': 88}