<commit_before><% @title = "Design: #{@design.name}" %>
<div class="page-header">
  <h1>
    <%= link_to @project.name, @project %> &middot; <%= @title %>
    <% if @design.editable_by?(current_user) %>
      <%= link_to "Edit Design", edit_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
      <%= link_to "Delete Design", [@design.project, @design], method: :delete, class: 'btn btn-mini btn-danger', data: { confirm: "Are you sure you want to delete Design #{@design.name}?" } %>
    <% end %>
    <%= link_to "View Designs", project_designs_path(@project), class: 'btn btn-mini' %>
    <%= link_to "View Sheets", project_sheets_path(@project, design_id: @design.id), class: 'btn btn-mini' %>
    <%= link_to "Copy Design", copy_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
    <%= link_to "PDF", print_project_design_path(@design.project, @design, format: 'pdf'), target: '_blank', class: 'btn btn-mini' %>

    <%= link_to "Report", report_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
    <%= link_to "Reimport", reimport_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
    <%= link_to "Overview", overview_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
  </h1>
</div>

<dl class="dl-horizontal">
  <dt>Project</dt>
  <dd><%= @project = @design.project; render partial: 'projects/logo_small' %> <%= link_to @design.project.name, @design.project %></dd>

  <dt>Creator</dt>
  <dd><%= link_to @design.user.name, @design.user if @design.user %></dd>

  <% if @design.publicly_available? %>
    <dt>Publicly Available</dt>
    <dd>
      <%= link_to "#{SITE_URL}/projects/#{@design.project_id}/surveys/#{@design.id}", "#{SITE_URL}/projects/#{@design.project_id}/surveys/#{@design.id}", class: 'input-xxlarge' if @design.publicly_available? %>
    </dd>
  <% end %>

  <% if @design.total_rows > 0 %>
    <dt>Import Progress</dt>
    <dd id="progress" data-object="<%= 'ajax-timer' if @design.total_rows != @design.rows_imported %>" data-path="<%= progress_project_design_path(@design.project, @design) %>">
      <%= render partial: 'designs/progress' %>
    </dd>
  <% end %>
</dl>

<span class="pagination">
  <ul>
    <li><a href="#" id="sections_link">Sections</a></li>
    <li class="active"><a href="#"><%= @design.section_names.count %></a></li>
  </ul>
</span>

<span class="pagination">
  <ul>
    <li class="disabled"><a href="#" id="variables_link">Variables</a></li>
    <li class="active"><a href="#"><%= @design.variable_ids.count %></a></li>
  </ul>
</span>

<%= link_to 'Save Order', '#', id: 'reorder_design_button', class: 'btn btn-primary', disabled: 'disabled', style: 'margin-top:4px;margin-bottom:4px;vertical-align:top' %>
<%= link_to 'Save Order', '#', id: 'reorder_design_sections_button', class: 'btn btn-primary', disabled: 'disabled', style: 'margin-top:4px;margin-bottom:4px;vertical-align:top;display:none' %>

<div class="modal hide" id="saving_modal">
  <div class="modal-header">
    <h3>Reordering Design</h3>
  </div>
  <div class="modal-body">
    <p>Your changes to the design are being saved...this shouldn't take longer than a minute.</p>
  </div>
</div>

<div id="compact_design_container">
  <%= render partial: 'compact_design' %>
</div>

<div id="reorder_sections_container" style="display:none">
  <%= render partial: 'reorder_sections' %>
</div>

<%= hidden_field_tag 'sheet[project_id]', @project.id %>
<form class="form-horizontal" id="design">
  <div class="center"><%= image_tag 'contour/ajax-loader.gif' %></div>
</form>

<%= form_tag selection_project_designs_path(@design.project, sheet: { design_id: @design.id }), remote: true, method: :post, data: { object: 'form-load' }, id: 'new_sheet' do %>
<% end %>
<commit_msg>Reduced amounts of buttons on design show page<commit_after><% @title = @design.name %>
<div class="page-header">
  <h1>
    <%= link_to @project.name, @project %> &middot; <%= link_to 'Designs', project_designs_path(@project) %> &middot; <%= @title %>
    <% if @design.editable_by?(current_user) %>
      <%= link_to "Edit Design", edit_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
      <%= link_to "Delete Design", [@design.project, @design], method: :delete, class: 'btn btn-mini btn-danger', data: { confirm: "Are you sure you want to delete Design #{@design.name}?" } %>
    <% end %>
    <%= link_to "View Sheets", project_sheets_path(@project, design_id: @design.id), class: 'btn btn-mini' %>
    <%= link_to "Copy Design", copy_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
    <%= link_to "PDF", print_project_design_path(@design.project, @design, format: 'pdf'), target: '_blank', class: 'btn btn-mini' %>

    <%= link_to "Report", report_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
    <%= link_to "Reimport", reimport_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
    <%= link_to "Overview", overview_project_design_path(@design.project, @design), class: 'btn btn-mini' %>
  </h1>
</div>

<dl class="dl-horizontal">
  <dt>Project</dt>
  <dd><%= @project = @design.project; render partial: 'projects/logo_small' %> <%= link_to @design.project.name, @design.project %></dd>

  <dt>Creator</dt>
  <dd><%= link_to @design.user.name, @design.user if @design.user %></dd>

  <% if @design.publicly_available? %>
    <dt>Publicly Available</dt>
    <dd>
      <%= link_to "#{SITE_URL}/projects/#{@design.project_id}/surveys/#{@design.id}", "#{SITE_URL}/projects/#{@design.project_id}/surveys/#{@design.id}", class: 'input-xxlarge' if @design.publicly_available? %>
    </dd>
  <% end %>

  <% if @design.total_rows > 0 %>
    <dt>Import Progress</dt>
    <dd id="progress" data-object="<%= 'ajax-timer' if @design.total_rows != @design.rows_imported %>" data-path="<%= progress_project_design_path(@design.project, @design) %>">
      <%= render partial: 'designs/progress' %>
    </dd>
  <% end %>
</dl>

<span class="pagination">
  <ul>
    <li><a href="#" id="sections_link">Sections</a></li>
    <li class="active"><a href="#"><%= @design.section_names.count %></a></li>
  </ul>
</span>

<span class="pagination">
  <ul>
    <li class="disabled"><a href="#" id="variables_link">Variables</a></li>
    <li class="active"><a href="#"><%= @design.variable_ids.count %></a></li>
  </ul>
</span>

<%= link_to 'Save Order', '#', id: 'reorder_design_button', class: 'btn btn-primary', disabled: 'disabled', style: 'margin-top:4px;margin-bottom:4px;vertical-align:top' %>
<%= link_to 'Save Order', '#', id: 'reorder_design_sections_button', class: 'btn btn-primary', disabled: 'disabled', style: 'margin-top:4px;margin-bottom:4px;vertical-align:top;display:none' %>

<div class="modal hide" id="saving_modal">
  <div class="modal-header">
    <h3>Reordering Design</h3>
  </div>
  <div class="modal-body">
    <p>Your changes to the design are being saved...this shouldn't take longer than a minute.</p>
  </div>
</div>

<div id="compact_design_container">
  <%= render partial: 'compact_design' %>
</div>

<div id="reorder_sections_container" style="display:none">
  <%= render partial: 'reorder_sections' %>
</div>

<%= hidden_field_tag 'sheet[project_id]', @project.id %>
<form class="form-horizontal" id="design">
  <div class="center"><%= image_tag 'contour/ajax-loader.gif' %></div>
</form>

<%= form_tag selection_project_designs_path(@design.project, sheet: { design_id: @design.id }), remote: true, method: :post, data: { object: 'form-load' }, id: 'new_sheet' do %>
<% end %>

{'fraction_non_alphanumeric': 0.2112676056338028, 'fraction_numerical': 0.0023693563248650784, 'mean_word_length': 5.054183266932271, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 0, '>': 203, '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': '101556', 'n_tokens_mistral': 2817, 'n_tokens_neox': 2644, 'n_words': 559}