<commit_before>.halfs
  .half
    = bootstrap_nested_form_for event,
      as: :event,
      layout: :horizontal,
      label_col: 'col-sm-4',
      control_col: 'col-sm-8' do |f|

      = f.hidden_field :type

      = f.collection_select :club_team_id,
        Team.club,
        :id,
        :name,
        prompt: true

      = f.select :rival_team_id,
        grouped_options_for_select(grouped_team_options, f.object.rival_team_id),
        prompt: true

      = f.form_group :home do
        = f.radio_button :home, true, label: 'Heimspiel', inline: true
        = f.radio_button :home, false, label: 'Auswärtsspiel', inline: true

      = f.fields_for :attendance_list

      = f.datetime_select :datetime

      = f.text_field :address, icon: 'map-marker'

      = f.text_area :description, icon: 'comment'<commit_msg>Require a team for event<commit_after>.halfs
  .half
    = bootstrap_nested_form_for event,
      as: :event,
      layout: :horizontal,
      label_col: 'col-sm-4',
      control_col: 'col-sm-8' do |f|

      = f.hidden_field :type

      = f.collection_select :club_team_id,
        Team.club,
        :id,
        :name,
        { prompt: true },
        { required: true }

      = f.select :rival_team_id,
        grouped_options_for_select(grouped_team_options, f.object.rival_team_id),
        { prompt: true },
        { required: true }

      = f.form_group :home do
        = f.radio_button :home, true, label: 'Heimspiel', inline: true
        = f.radio_button :home, false, label: 'Auswärtsspiel', inline: true

      = f.fields_for :attendance_list

      = f.datetime_select :datetime

      = f.text_field :address, icon: 'map-marker'

      = f.text_area :description, icon: 'comment'
{'fraction_non_alphanumeric': 0.11696583671105965, 'fraction_numerical': 0.0023161551823972205, 'mean_word_length': 2.3948919449901767, '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': '7219097', 'n_tokens_mistral': 609, 'n_tokens_neox': 588, 'n_words': 123}