<commit_before><% rendering ||= form %>
<% links do %>
  <%= back_link 'cancel' %>
<% end %>
<%= error_messages_for :rendering, :object => rendering %>

<% form_for(rendering) do |f| %>
  <% accordion do %>

    <% accordion_item "What" do %>
      <%= f.select :assignment, Rendering::Assignments %>
      <%= f.has_one :content, :types => rendering.part.andand.preferred_types %>

      <% unless rendering.new_record? %>
        <% content_types = rendering.part.andand.preferred_types_classes || Rendering.valid_content_types %>
        <%= f.collection_select :content_type, content_types, :to_s, :to_s %>
        <% f.fields_for :scope do |scope_form| %>
          <% content_types.each do |content_type| %>
            <div class="scopes <%= content_type -%>">
              <%= scope_form.select_order_scope content_type %>
              <%= scope_form.select_scope_from_pool content_type %>
              <%= scope_form.scope_pool content_type %>
            </div>
          <% end %>
        <% end %>
      <% end %>
    <% end %>

    <% accordion_item "How" do %>
      <%= f.text_field :css_classes_list, :label => 'CSS classes' %>
      <%= f.has_one :part %>
    <% end %>

    <% if f.object.part %>
      <% accordion_item "Options" do %>
        <%= f.select_options %>
      <% end %><commit_msg>disable scope selection in Rendering form - too much useless crap<commit_after><% rendering ||= form %>
<% links do %>
  <%= back_link 'cancel' %>
<% end %>
<%= error_messages_for :rendering, :object => rendering %>

<% form_for(rendering) do |f| %>
  <% accordion do %>

    <% accordion_item "What" do %>
      <%= f.select :assignment, Rendering::Assignments %>
      <%= f.has_one :content, :types => rendering.part.andand.preferred_types %>

      <% unless rendering.new_record? %>
        <% content_types = rendering.part.andand.preferred_types_classes || Rendering.valid_content_types %>
        <%= f.collection_select :content_type, content_types, :to_s, :to_s %>
      <% end %>
    <% end %>

    <% accordion_item "How" do %>
      <%= f.text_field :css_classes_list, :label => 'CSS classes' %>
      <%= f.has_one :part %>
    <% end %>

    <% if f.object.part %>
      <% accordion_item "Options" do %>
        <%= f.select_options %>
      <% end %>
{'fraction_non_alphanumeric': 0.16987740805604204, 'fraction_numerical': 0.0, 'mean_word_length': 2.783112582781457, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 65, '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': '911006', 'n_tokens_mistral': 840, 'n_tokens_neox': 721, 'n_words': 142}