<commit_before>- content_for :navbar_hanuman do
  active
- content_for :navbar_hanuman_surveys do
  active
- content_for :title do
  Survey Details

.page-header
  - if @show_survey_duplicator
    = link_to duplicate_survey_path(@survey), data: {confirm: "Are you sure you want to duplicate this Survey?"}, method: :patch, class: "btn btn-primary" do
      %span.glyphicon.glyphicon-repeat
      Duplicate
  %h5
    %b Mode:
    %i Review
  %h1= @survey.survey_template.name

.form-horizontal

  - steps = @survey.survey_template.steps
  
  .panel.panel-default
    .panel-body  
      .survey-progress
        - steps.each do |step|<commit_msg>add delete survey button to show page mostly for external users, update duplicate button wording for consistency<commit_after>- content_for :navbar_hanuman do
  active
- content_for :navbar_hanuman_surveys do
  active
- content_for :title do
  Survey Details

.page-header
  = link_to @survey, data: {confirm: "Are you sure you want to delete this Survey?"}, method: :delete, class: "btn btn-danger" do
    %span.glyphicon.glyphicon-trash
    Delete Survey
  - if @show_survey_duplicator
    = link_to duplicate_survey_path(@survey), data: {confirm: "Are you sure you want to duplicate this Survey?"}, method: :patch, class: "btn btn-primary" do
      %span.glyphicon.glyphicon-repeat
      Duplicate Survey
  %h5
    %b Mode:
    %i Review
  %h1= @survey.survey_template.name

.form-horizontal

  - steps = @survey.survey_template.steps
  
  .panel.panel-default
    .panel-body  
      .survey-progress
        - steps.each do |step|
{'fraction_non_alphanumeric': 0.09556962025316455, 'fraction_numerical': 0.002531645569620253, 'mean_word_length': 3.403899721448468, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1445254', 'n_tokens_mistral': 531, 'n_tokens_neox': 515, 'n_words': 146}