<commit_before><% provide(:title, I18n.t('main.search.title')) %>
<div class="columns">
  <div class="column is-2">
    <aside class="menu">
      <p class="menu-label"><%= I18n.t("main.search.search", :default => "Search") %></p>
      <ul class="menu-list">
        <% Structure.find_each do |s| %>
          <li>
            <%= link_to s.name, '', data: 'structure-form-' + s.id.to_s %>
            <!--                <% unless s.building_blocks.empty? %>
                    <ul>
                        <% s.building_blocks.each do |bb| %>
                            <%= render 'building_blocks/search_menu', :bb => bb %>
                        <% end %>
                    </ul>
                <% end %>-->
          </li>
        <% end %>
      </ul>
    </aside>
  </div>
  <div class="column">
    <% Structure.find_each do |s| %>
      <%= form_tag(examples_find_path, method: 'post', id: 'structure-form-'+s.id.to_s) do %>
        <%= hidden_field_tag 'structure_id', s.id %>
        <div class="content box">
          <h2 class="title"><%= s.name %></h2>
          <div class="tile is-ancestor is-vertical">
            <div class="tile is-parent">
              <div class="tile is-child notification is-success">
                <%= label_tag(:satisfies, I18n.t("main.search.satisfies", :default => 'Satisfies:'), class: 'label') %>
                <%= select_tag(:satisfies, options_for_select(s.properties.map { |p| [p.name, p.to_atom.id] }), multiple: true, class: 'multi-select') %>
              </div>
              <div class="tile is-child notification is-danger">
                <%= label_tag(:violates, I18n.t("main.search.violates", :default => 'Violates:'), class: 'label') %>
                <%= select_tag(:violates, options_for_select(s.properties.map { |p| [p.name, p.to_atom.id] }), multiple: true, class: 'multi-select') %>
              </div>
            </div>
            <% unless s.building_blocks.empty? %>
              <div class="tile is-parent">
                <div class="tile is-child">
                  <% s.building_blocks.each do |bb| %>
                    <div class="content box">
                      <h3 class="title"><%= bb.name %></h3>
                      <div class="tile is-ancestor">
                        <div class="tile is-parent">
                          <div class="tile is-child notification is-success">
                            <%= label_tag(:satisfies, I18n.t("main.search.satisfies", :default => 'Satisfies:'), class: 'label') %>
                            <%= select_tag(:satisfies, options_for_select(bb.structure.properties.map { |p| [p.name, p.to_atom(bb).id] }), multiple: true, class: 'multi-select') %>
                          </div>
                          <div class="tile is-child notification is-danger">
                            <%= label_tag(:violates, I18n.t("main.search.violates", :default => 'Violates:'), class: 'label') %>
                            <%= select_tag(:violates, options_for_select(bb.structure.properties.map { |p| [p.name, p.to_atom(bb).id] }), multiple: true, class: 'multi-select') %>
                          </div>
                        </div>
                      </div>
                    </div>
                  <% end %>
                </div>
              </div>
            <% end %>
          </div>
          <%= submit_tag(I18n.t('main.search.search_button'), class: 'button') %>
        </div>
      <% end %>
    <% end %>
  </div>
</div><commit_msg>re-layout search view<commit_after><% provide(:title, I18n.t('main.search.title')) %>
<div class="columns">
  <div class="column is-2">
    <aside class="menu">
      <p class="menu-label"><%= I18n.t("main.search.search", :default => "Search") %></p>
      <ul class="menu-list">
        <% Structure.find_each do |s| %>
          <li>
            <%= link_to s.name, '', data: 'structure-form-' + s.id.to_s %>
            <!--                <% unless s.building_blocks.empty? %>
                    <ul>
                        <% s.building_blocks.each do |bb| %>
                            <%= render 'building_blocks/search_menu', :bb => bb %>
                        <% end %>
                    </ul>
                <% end %>-->
          </li>
        <% end %>
      </ul>
    </aside>
  </div>
  <div class="column">
    <% Structure.find_each do |s| %>
      <%= form_tag(examples_find_path, method: 'post', id: 'structure-form-'+s.id.to_s) do %>
        <%= hidden_field_tag 'structure_id', s.id %>
        <div class="content box">
          <h2 class="title"><%= s.name %></h2>
          <div class="tile is-ancestor is-vertical">
            <div class="tile is-parent">
              <div class="tile is-child notification is-success">
                <%= label_tag(:satisfies, I18n.t("main.search.satisfies", :default => 'Satisfies:'), class: 'label') %>
                <%= select_tag(:satisfies, options_for_select(s.properties.map { |p| [p.name, p.to_atom.id] }), multiple: true, class: 'multi-select') %>
              </div>
              <div class="tile is-child notification is-danger">
                <%= label_tag(:violates, I18n.t("main.search.violates", :default => 'Violates:'), class: 'label') %>
                <%= select_tag(:violates, options_for_select(s.properties.map { |p| [p.name, p.to_atom.id] }), multiple: true, class: 'multi-select') %>
              </div>
            </div>
            <% unless s.building_blocks.empty? %>
              <div class="tile is-parent">
                <div class="tile is-child">
                  <div class="tile is-ancestor">
                    <div class="tile is-parent">
                      <% s.building_blocks.each do |bb| %>
                        <div class="tile is-child">
                          <div class="content box">
                            <h3 class="title"><%= bb.name %></h3>
                            <div class="tile is-ancestor">
                              <div class="tile is-parent is-vertical">
                                <div class="tile is-child notification is-success">
                                  <%= label_tag(:satisfies, I18n.t("main.search.satisfies", :default => 'Satisfies:'), class: 'label') %>
                                  <%= select_tag(:satisfies, options_for_select(bb.structure.properties.map { |p| [p.name, p.to_atom(bb).id] }), multiple: true, class: 'multi-select') %>
                                </div>
                                <div class="tile is-child notification is-danger">
                                  <%= label_tag(:violates, I18n.t("main.search.violates", :default => 'Violates:'), class: 'label') %>
                                  <%= select_tag(:violates, options_for_select(bb.structure.properties.map { |p| [p.name, p.to_atom(bb).id] }), multiple: true, class: 'multi-select') %>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      <% end %>
                    </div>
                  </div>
                </div>
              </div>
            <% end %>
          </div>
          <%= submit_tag(I18n.t('main.search.search_button'), class: 'button') %>
        </div>
      <% end %>
    <% end %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.17407256420709336, 'fraction_numerical': 0.005163745074058975, 'mean_word_length': 1.5153793574846206, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 171, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5976711', 'n_tokens_mistral': 2333, 'n_tokens_neox': 2133, 'n_words': 410}