<commit_before><% rendering ||= show %>

<% links do %>
  <%= li_link_to_remote 'clone', :url => duplicate_rendering_path(rendering), :method => :put, :html => {:class => 'create rendering'} %>
<% end %>



<% accordion do %>

  <% accordion_item "What" do %>
    <%= show rendering, :assignment %>
    <%= show rendering, :scope if rendering.assignment == 'scope' %>
    <%=
      case rendering.assignment 
      when 'by_title_from_trailing_url'
        show rendering, :content do
          "by title from trailing URL"
        end
      else
        show rendering, :content
      end 
    %>
  <% end %>

  <% accordion_item "How" do %>
    <%= show rendering, :part, :selectable => true %>
    <%= show rendering, :options %>
  <% end %>

  <% accordion_item "Where" do %>
    <%= show rendering, :page, :label => 'Page' %>
  <% end %>
<% end %>

<commit_msg>do not show renderings options if part is undefined<commit_after><% rendering ||= show %>

<% links do %>
  <%= li_link_to_remote 'clone', :url => duplicate_rendering_path(rendering), :method => :put, :html => {:class => 'create rendering'} %>
<% end %>



<% accordion do %>

  <% accordion_item "What" do %>
    <%= show rendering, :assignment %>
    <%= show rendering, :scope if rendering.assignment == 'scope' %>
    <%=
      case rendering.assignment 
      when 'by_title_from_trailing_url'
        show rendering, :content do
          "by title from trailing URL"
        end
      else
        show rendering, :content
      end 
    %>
  <% end %>

  <% accordion_item "How" do %>
    <%= show rendering, :part, :selectable => true %>
    <% if rendering.part %>
      <%= show rendering, :options %>
    <% end %>
  <% end %>

  <% accordion_item "Where" do %>
    <%= show rendering, :page, :label => 'Page' %>
  <% end %>
<% end %>


{'fraction_non_alphanumeric': 0.16923925027563397, 'fraction_numerical': 0.0, 'mean_word_length': 2.773388773388773, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 53, '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': '911007', 'n_tokens_mistral': 647, 'n_tokens_neox': 557, 'n_words': 155}