<commit_before>= form_for @event do |f|
  - if @event.errors.any?
    #error_explanation
      %h2= "#{pluralize(@event.errors.count, "error")} prohibited this event from being saved:"
      %ul
        - @event.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :habit_id
    = f.number_field :habit_id
  .field
    = f.label :time
    = f.datetime_select :time
  .field
    = f.label :description
    = f.text_field :description
  .actions
    = f.submit 'Save'<commit_msg>adding select for habits<commit_after>= form_for @event do |f|
  - if @event.errors.any?
    #error_explanation
      %h2= "#{pluralize(@event.errors.count, "error")} prohibited this event from being saved:"
      %ul
        - @event.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :habit_id
    = f.select :habit_id, Habit.all.collect {|h| [ h.name, h.id ] }
  .field
    = f.label :time
    = f.datetime_select :time
  .field
    = f.label :description
    = f.text_field :description
  .actions
    = f.submit 'Save'
{'fraction_non_alphanumeric': 0.13498098859315588, 'fraction_numerical': 0.0019011406844106464, 'mean_word_length': 2.5217391304347827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1056827', 'n_tokens_mistral': 381, 'n_tokens_neox': 374, 'n_words': 88}