<commit_before><% content_for :specific_javascript do %>
  <script>
    function connected(service_name){
      $('span.connect-buttons.'+service_name).hide();
      $('span.disconnect-buttons.'+service_name).show();
    }

    document.addEventListener('authorized', function (e) {
      if (e.detail === '<%= service_name %>'){
        connected('<%= service_name %>');
      }
    });
  </script>
<% end %>

<% connected = current_user.social_account(service_name).persisted? %>
<div class="control-group">
  <%= f.label service_name, class: "control-label" %>
  <div class="controls">

    <span class="social-services-buttons">
      <span class="disconnect-buttons <%= service_name %>" <% if not connected %> style="display: none;"<% end %>>
        <span class="connected">
          <%= link_to("/auth/#{service_name}/deauthorize", :method => :delete, class: ["button", "disabled"]) do %>
            <%= image_tag("#{service_name}.png") %>
            Connected to <%= service_name.capitalize %>
          <% end %>
        </span>

        <span class="disconnect">
          <%= link_to("/auth/#{service_name}/deauthorize", :method => :delete, class: ["button", "button-danger"]) do %>
            <%= image_tag("#{service_name}.png") %>
              Disconnect from <%= service_name.capitalize %>
          <% end %>
        </span>
      </span>
      <span class="connect-buttons <%= service_name %>" <% if connected %> style="display: none;"<% end %>>
        <span class="connect">
            <% # the "use_authorize=true&x_auth_access_type=write" part is only relevant for Twitter, Facebook ignores this %>
            <%= link_to("/auth/#{service_name}?use_authorize=true&x_auth_access_type=write", class: ["button", "js-social-popup-link"]) do %>
            <%= image_tag("#{service_name}.png") %>
              Connect <%= service_name.capitalize %>
          <% end %>
        </span>
      </span>
    </span>
  </div>
</div><commit_msg>Made call to action for buttons blue<commit_after><% content_for :specific_javascript do %>
  <script>
    function connected(service_name){
      $('span.connect-buttons.'+service_name).hide();
      $('span.disconnect-buttons.'+service_name).show();
    }

    document.addEventListener('authorized', function (e) {
      if (e.detail === '<%= service_name %>'){
        connected('<%= service_name %>');
      }
    });
  </script>
<% end %>

<% connected = current_user.social_account(service_name).persisted? %>
<div class="control-group">
  <%= f.label service_name, class: "control-label" %>
  <div class="controls">

    <span class="social-services-buttons">
      <span class="disconnect-buttons <%= service_name %>" <% if not connected %> style="display: none;"<% end %>>
        <span class="connected">
          <%= link_to("/auth/#{service_name}/deauthorize", :method => :delete, class: ["button", "disabled"]) do %>
            <%= image_tag("#{service_name}.png") %>
            Connected to <%= service_name.capitalize %>
          <% end %>
        </span>

        <span class="disconnect">
          <%= link_to("/auth/#{service_name}/deauthorize", :method => :delete, class: ["button", "button-danger"]) do %>
            <%= image_tag("#{service_name}.png") %>
              Disconnect from <%= service_name.capitalize %>
          <% end %>
        </span>
      </span>
      <span class="connect-buttons <%= service_name %>" <% if connected %> style="display: none;"<% end %>>
        <span class="connect">
            <% # the "use_authorize=true&x_auth_access_type=write" part is only relevant for Twitter, Facebook ignores this %>
            <%= link_to("/auth/#{service_name}?use_authorize=true&x_auth_access_type=write", class: ["button button-confirm", "js-social-popup-link"]) do %>
            <%= image_tag("#{service_name}.png") %>
              Connect <%= service_name.capitalize %>
          <% end %>
        </span>
      </span>
    </span>
  </div>
</div>
{'fraction_non_alphanumeric': 0.19106511862695608, 'fraction_numerical': 0.0, 'mean_word_length': 2.943283582089552, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7145847', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1154, 'n_words': 218}