<commit_before><h3>Authenticate with Stack Exchange</h3>
<p>Associate your metasmoke account with your Stack Exchange account to provide feedback through the API.</p>

<% if [:stackexchange_chat_id, :meta_stackexchange_chat_id, :stackoverflow_chat_id].select {|x| current_user[x].nil? }.present? %>
  <%= link_to "Authenticate", "https://stackexchange.com/oauth?client_id=#{@config["client_id"]}&scope=&redirect_uri=#{@config["redirect_uri"]}", class: "btn btn-success" %>
<% else %>
  <p class="text-muted">(you have already authenticated)</p>
  <% if current_user.has_role? :admin %>
    <%= link_to "Authenticate w/ Write Access", "https://stackexchange.com/oauth?client_id=#{@config["client_id"]}&scope=write_access;no_expiry&redirect_uri=#{@config["redirect_uri"]}", class: "btn btn-danger" %>
  <% end %>
<% end %><commit_msg>Properly delimit API token scope<commit_after><h3>Authenticate with Stack Exchange</h3>
<p>Associate your metasmoke account with your Stack Exchange account to provide feedback through the API.</p>

<% if [:stackexchange_chat_id, :meta_stackexchange_chat_id, :stackoverflow_chat_id].select {|x| current_user[x].nil? }.present? %>
  <%= link_to "Authenticate", "https://stackexchange.com/oauth?client_id=#{@config["client_id"]}&scope=&redirect_uri=#{@config["redirect_uri"]}", class: "btn btn-success" %>
<% else %>
  <p class="text-muted">(you have already authenticated)</p>
  <% if current_user.has_role? :admin %>
    <%= link_to "Authenticate w/ Write Access", "https://stackexchange.com/oauth?client_id=#{@config["client_id"]}&scope=write_access,no_expiry&redirect_uri=#{@config["redirect_uri"]}", class: "btn btn-danger" %>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.1806298276886512, 'fraction_numerical': 0.0023767082590612004, 'mean_word_length': 7.378109452736318, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 4, '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': '2387407', 'n_tokens_mistral': 619, 'n_tokens_neox': 583, 'n_words': 108}