<commit_before>- if defined?(hide_general) && hide_general
  - if testing_ground.errors.any?
    %ul.errors
      - testing_ground.errors.full_messages.uniq.each do |message|
        %li= message

= form_for(testing_ground) do |f|
  = render 'general_form', form: f, testing_ground: testing_ground
  = render 'technologies_form', form: f, testing_ground: testing_ground, submit_text: submit_text

  .form-group
    = f.submit "#{submit_text} Local Energy Solution", class: 'btn btn-success'
    - unless testing_ground.new_record?
      = link_to "Save As New Local Energy Solution", "#", data: { url: save_as_testing_ground_path(testing_ground) }, class: "btn btn-primary save_as"

    %span.or or
    - if testing_ground.new_record?
      = link_to 'Cancel', testing_grounds_path, class: 'btn btn-default'
    - else
      = link_to 'Cancel', testing_ground_path(testing_ground), class: 'btn btn-default'<commit_msg>Adding les error messages back<commit_after>- if testing_ground.errors.any?
  %ul.errors
    - testing_ground.errors.full_messages.uniq.each do |message|
      %li= message

= form_for(testing_ground) do |f|
  = render 'general_form', form: f, testing_ground: testing_ground
  = render 'technologies_form', form: f, testing_ground: testing_ground, submit_text: submit_text

  .form-group
    = f.submit "#{submit_text} Local Energy Solution", class: 'btn btn-success'
    - unless testing_ground.new_record?
      = link_to "Save As New Local Energy Solution", "#", data: { url: save_as_testing_ground_path(testing_ground) }, class: "btn btn-primary save_as"

    %span.or or
    - if testing_ground.new_record?
      = link_to 'Cancel', testing_grounds_path, class: 'btn btn-default'
    - else
      = link_to 'Cancel', testing_ground_path(testing_ground), class: 'btn btn-default'
{'fraction_non_alphanumeric': 0.11549139367018323, 'fraction_numerical': 0.0, 'mean_word_length': 4.253644314868804, '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': '1547835', 'n_tokens_mistral': 580, 'n_tokens_neox': 571, 'n_words': 142}