<commit_before>%h1 New Form

= form_tag survey_templates_path do

  = label :form_name, "Name"
  = text_field_tag :form_name, @survey.survey_title
  = hidden_field_tag(:id, @survey.id)
  - if @fields_json
    %script.loading_form_fields= raw("var _survey_fields= " + @fields_json + ";")



  %div.form_fields

  %hr
  = label :new_field_name, 'Field Name'
  = text_field_tag :new_field_name
<commit_msg>Fixed survey template new view<commit_after>%h1 New Form

= form_tag survey_templates_path do

  = label :form_name, "Name"
  = text_field_tag :form_name, if @survey then @survey.survey_title else "" end
  = hidden_field_tag(:id, if @survey then @survey.id else "" end)
  - if @fields_json
    %script.loading_form_fields= raw("var _survey_fields= " + @fields_json + ";")



  %div.form_fields

  %hr
  = label :new_field_name, 'Field Name'
  = text_field_tag :new_field_name

{'fraction_non_alphanumeric': 0.11604095563139932, 'fraction_numerical': 0.0022753128555176336, 'mean_word_length': 4.6050955414012735, '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': '237736', 'n_tokens_mistral': 337, 'n_tokens_neox': 328, 'n_words': 70}