<commit_before><% unless Spree::Config.facebook_app_id.nil? %>
  <% content_for :head do %>
    <meta property="og:title" content="<%= @product.name %>" />
    <meta property="og:type" content="product" />
    <meta property="og:url" content="<%= spree.product_url(@product) %>" />
    <meta property="og:description" content="<%= @product.description %>" />
    <% @product.images.each do |img| %>
    <meta property="og:image" content="<%= absolute_image_url(img.attachment.url) %>" />
    <% end  %>
    <meta property="fb:app_id" content="<%= Spree::Config.facebook_app_id %>" />
  <% end %>

  <div id="fb-root"></div>
  <script>
    window.fbAsyncInit = function() {
      FB.init({
        appId      : "<%= Spree::Config.facebook_app_id %>", // App ID
        status     : true, // check login status
        cookie     : true, // enable cookies to allow the server to access the session
        xfbml      : true  // parse XFBML
      });

      // Additional initialization code here
    };

    // Load the SDK Asynchronously
    (function(d){
       var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
       if (d.getElementById(id)) {return;}
       js = d.createElement('script'); js.id = id; js.async = true;
       js.src = "//connect.facebook.net/en_US/all.js";
       ref.parentNode.insertBefore(js, ref);
     }(document));
  </script>
  <div class="fb-like" data-send="<%= Spree::Config.facebook_send_button %>" data-width="450" data-show-faces="<%= Spree::Config.facebook_show_faces %>"
    data-layout="<%= Spree::Config.facebook_layout %>" data-colorscheme="<%= Spree::Config.facebook_color_scheme %>"
    data-action="<%= Spree::Config.facebook_verb_to_display %>"></div>
<% end %><commit_msg>Remove script to load fb sdk from facebook partial<commit_after><% unless Spree::Config.facebook_app_id.nil? %>
  <% content_for :head do %>
    <meta property="og:title" content="<%= @product.name %>" />
    <meta property="og:type" content="product" />
    <meta property="og:url" content="<%= spree.product_url(@product) %>" />
    <meta property="og:description" content="<%= @product.description %>" />
    <% @product.images.each do |img| %>
    <meta property="og:image" content="<%= absolute_image_url(img.attachment.url) %>" />
    <% end  %>
    <meta property="fb:app_id" content="<%= Spree::Config.facebook_app_id %>" />
  <% end %>

  <div id="fb-root"></div>

  <div 
    class="fb-like" 
    data-send="<%= Spree::Config.facebook_send_button %>" 
    data-width="450" 
    data-show-faces="<%= Spree::Config.facebook_show_faces %>"
    data-layout="<%= Spree::Config.facebook_layout %>"
    data-colorscheme="<%= Spree::Config.facebook_color_scheme %>"
    data-action="<%= Spree::Config.facebook_verb_to_display %>"></div>
<% end %>
{'fraction_non_alphanumeric': 0.19799139167862267, 'fraction_numerical': 0.002510760401721664, 'mean_word_length': 3.6952861952861955, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 58, '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': '5204488', 'n_tokens_mistral': 972, 'n_tokens_neox': 912, 'n_words': 169}