<commit_before>- if !@problem.errors.empty?
  .form-error
    = t(:problem_form_error)
.fieldset
  != form.hidden_field :location_id 
  - if @problem.errors.on(:location)
    .form-field-error= error_message_on @problem, :location  
  .form-field
    - if @problem.errors.on(:transport_mode_id)
      .form-field-error= error_message_on @problem, :transport_mode_id
    %label{:for => 'transport_mode_id'}
      =t(:transport_mode)
    .transport-mode
      != transport_mode_radio_buttons
    - if @problem.errors.on(:location_attributes)
      .form-field-error= error_message_on @problem, :location_attributes
    .form-field
      != label_tag 'problem[location_attributes][name]', t(:location_name)
      != text_field_tag 'problem[location_attributes][name]', location_param(:name)
    .form-field
      != label_tag 'problem[location_attributes][area]', t(:area)
      != text_field_tag 'problem[location_attributes][area]', location_param(:area)
    .form-field
      != label_tag 'problem[location_attributes][route_number]', t(:route_number)
      != text_field_tag 'problem[location_attributes][route_number]', location_param(:route_number)
  .form-field
    - if @problem.errors.on(:location_type)
      .form-field-error= error_message_on @problem, :location_type
    != form.label :location_type, t(:location_type)
    != location_type_radio_buttons @problem<commit_msg>Adding a note on train routes<commit_after>- if !@problem.errors.empty?
  .form-error
    = t(:problem_form_error)
.fieldset
  != form.hidden_field :location_id 
  - if @problem.errors.on(:location)
    .form-field-error= error_message_on @problem, :location  
  .form-field
    - if @problem.errors.on(:transport_mode_id)
      .form-field-error= error_message_on @problem, :transport_mode_id
    %label{:for => 'transport_mode_id'}
      =t(:transport_mode)
    .transport-mode
      != transport_mode_radio_buttons
    - if @problem.errors.on(:location_attributes)
      .form-field-error= error_message_on @problem, :location_attributes
    .form-field
      != label_tag 'problem[location_attributes][name]', t(:location_name)
      != text_field_tag 'problem[location_attributes][name]', location_param(:name)
    .form-field
      != label_tag 'problem[location_attributes][area]', t(:area)
      != text_field_tag 'problem[location_attributes][area]', location_param(:area)
    .form-field
      != label_tag 'problem[location_attributes][route_number]', t(:route_number)
      != text_field_tag 'problem[location_attributes][route_number]', location_param(:route_number)
      %p For train routes, you can enter start and end stations e.g. "London to Brighton"
  .form-field
    - if @problem.errors.on(:location_type)
      .form-field-error= error_message_on @problem, :location_type
    != form.label :location_type, t(:location_type)
    != location_type_radio_buttons @problem
{'fraction_non_alphanumeric': 0.13082811412665274, 'fraction_numerical': 0.0, 'mean_word_length': 4.414312617702448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5778090', 'n_tokens_mistral': 942, 'n_tokens_neox': 901, 'n_words': 149}