<commit_before><%= render 'load' %>

<%= render 'title_and_subtitle' %>

<div id="product-catalog" class="<%= 'fb-app-standalone' if @signed_request.blank? %>">
  <div id="product-catalog-actions">
    <% if profile and user.present? and (user.is_admin?(environment) or user.is_admin?(profile)) %>
      <div class="product-catalog-ctrl">
        <%= button :add, _('Add product or service'), controller: :manage_products, action: :new, profile: profile.identifier %>
      </div>
    <% end %>
    <%= render 'configure_button' %>
  </div>

  <%= content_for :product_page do %>
    <%= render 'catalog/results', show_supplier: @scope == 'all' %>
  <% end %>
  <%= render 'catalog/search' %>
  <%= render 'catalog/javascripts', external: false %>
</div>

<%= render 'footer' %>

<%= javascript_tag do %>
  catalog.base_url_path = <%= url_for(controller: :fb_app_plugin_page_tab, action: :index, page_id: params[:page_id], signed_request: params[:signed_request]).to_json %> + '&'
<% end %>

<commit_msg>Put wrapping div<commit_after><div id="fb-app-wrapper" class="<%= 'fb-app-standalone' if @signed_request.blank? %>">

  <%= render 'load' %>

  <%= render 'title_and_subtitle' %>

  <div id="product-catalog" >
    <div id="product-catalog-actions">
      <% if profile and user.present? and (user.is_admin?(environment) or user.is_admin?(profile)) %>
        <div class="product-catalog-ctrl">
          <%= button :add, _('Add product or service'), controller: :manage_products, action: :new, profile: profile.identifier %>
        </div>
      <% end %>
      <%= render 'configure_button' %>
    </div>

    <%= content_for :product_page do %>
      <%= render 'catalog/results', show_supplier: @scope == 'all' %>
    <% end %>
    <%= render 'catalog/search' %>
    <%= render 'catalog/javascripts', external: false %>
  </div>

  <%= render 'footer' %>

  <%= javascript_tag do %>
    catalog.base_url_path = <%= url_for(controller: :fb_app_plugin_page_tab, action: :index, page_id: params[:page_id], signed_request: params[:signed_request]).to_json %> + '&'
  <% end %>

</div>

{'fraction_non_alphanumeric': 0.1925287356321839, 'fraction_numerical': 0.0, 'mean_word_length': 4.058111380145278, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '4625406', 'n_tokens_mistral': 758, 'n_tokens_neox': 681, 'n_words': 144}