<commit_before>= simple_fields_for 'surveyform', @surveyform || @survey_section.survey do |f|
  = f.simple_fields_for :survey_sections, @survey_section do |s|
    - if s.object.id
      = content_tag(:div, s.object, class: s.object.class.name.underscore, id: "#{s.object.class.name.underscore}_#{s.object.try(:id)}") do
        %h2{:style => "position:relative;"}

          - unless params[:action] == "show"
            %span{style: "font-size:20px;margin:15px 10px 0 0"}
              %i.fa.fa-bars
              &nbsp
          %span{id: "sectionTitle#{s.object.id}"}= s.object.title

          .section_top_button_bar

            - if !@survey_locked && (s.object.modifiable?)

              %a.btn.btn-primary#edit_section_title{"data-url" => "#{surveyor_gui.edit_survey_section_url(s.object.id)}", :href => "javascript: void(0)"} Edit Section Title

              - if session[:cut_section]
                %button.btn.btn-primary#paste_section{"data-paste_section_surveyform_url" => surveyor_gui.paste_section_surveyform_url(survey_section_id: s.object.id, position: 'over'), :type => "button"} Paste Section
              - else
                %button.btn.btn-primary#cut_section{"data-cut_section_surveyform_url" => surveyor_gui.cut_section_surveyform_url(id: f.object.id, survey_section_id: s.object.id), "data-section_already_cut" => session[:cut_section], "data-survey_section_id" => s.object.id, :type => "button"} Cut Section<commit_msg>include survey section title so when cutting section warning correctly displays title<commit_after>= simple_fields_for 'surveyform', @surveyform || @survey_section.survey do |f|
  = f.simple_fields_for :survey_sections, @survey_section do |s|
    - if s.object.id
      = content_tag(:div, s.object, class: s.object.class.name.underscore, id: "#{s.object.class.name.underscore}_#{s.object.try(:id)}") do
        %h2{:style => "position:relative;"}

          - unless params[:action] == "show"
            %span{style: "font-size:20px;margin:15px 10px 0 0"}
              %i.fa.fa-bars
              &nbsp
          %span{id: "sectionTitle#{s.object.id}"}= s.object.title

          .section_top_button_bar

            - if !@survey_locked && (s.object.modifiable?)

              %a.btn.btn-primary#edit_section_title{"data-url" => "#{surveyor_gui.edit_survey_section_url(s.object.id)}", :href => "javascript: void(0)"} Edit Section Title

              - if session[:cut_section]
                %button.btn.btn-primary#paste_section{"data-paste_section_surveyform_url" => surveyor_gui.paste_section_surveyform_url(survey_section_id: s.object.id, position: 'over'), :type => "button"} Paste Section
              - else
                %button.btn.btn-primary#cut_section{"data-cut_section_surveyform_url" => surveyor_gui.cut_section_surveyform_url(id: f.object.id, survey_section_id: s.object.id), "data-section_already_cut" => session[:cut_section], "data-survey_section_id" => s.object.id, "data-survey_section_title" => s.object.title, :type => "button"} Cut Section
{'fraction_non_alphanumeric': 0.1493227618103733, 'fraction_numerical': 0.006607201850016518, 'mean_word_length': 3.466076696165192, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, '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': '5831960', 'n_tokens_mistral': 1039, 'n_tokens_neox': 1006, 'n_words': 158}