<commit_before><h3>User: <%= @user.username %></h3>
<p class="text-muted">Created: <span title="<%= @user.created_at %>"><%= time_ago_in_words @user.created_at %> ago</span></p>

<div class="row">
  <div class="col-md-4">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h5 class="panel-title">SE Auth</h5>
      </div>
      <div class="panel-body">
        <p>
          <strong>Read access (auth-only):</strong> <%= @user.stack_exchange_account_id.present? ? 'Yes' : 'No' %><br/>
          <strong>Write access (auth+flags):</strong> <%= @user.write_authenticated ? 'Yes' : 'No' %>
        </p>
        <p>
          <strong>Account ID:</strong> <%= link_to @user.stack_exchange_account_id, "https://stackexchange.com/users/#{@user.stack_exchange_account_id}" %><br/>
          <strong>SE chat ID:</strong> <%= link_to @user.stackexchange_chat_id, "https://chat.stackexchange.com/users/#{@user.stackexchange_chat_id}" %><br/>
          <strong>MSE chat ID:</strong> <%= link_to @user.meta_stackexchange_chat_id, "https://chat.meta.stackexchange.com/users/#{@user.meta_stackexchange_chat_id}" %><br/>
          <strong>SO chat ID:</strong> <%= link_to @user.stackoverflow_chat_id, "https://chat.stackoverflow.com/users/#{@user.stackoverflow_chat_id}" %><br/>
          <strong>users.yml:</strong><%= @user.stack_exchange_account_id.present? ? @user.stack_exchange_account_id : 'null' %>:
          [<%= @user.stack_exchange_account_id.present? ? @user.stack_exchange_account_id : 'null' %>,
          <%= @user.stackexchange_chat_id.present? ? @user.stackexchange_chat_id : 'null' %>,
          <%= @user.meta_stackexchange_chat_id.present? ? @user.meta_stackexchange_chat_id : 'null' %>,
          <%= @user.stackoverflow_chat_id.present? ? @user.stackoverflow_chat_id : 'null' %>]<span style="white-space:pre;">  </span># <%= @user.username %><br/>
          <strong>rooms.yml:</strong><span style="white-space:pre;">      - </span><%= @user.stack_exchange_account_id.present? ? @user.stack_exchange_account_id : 'null' %> # <%= @user.username %><br/>
        </p>
        <p>
          <%= link_to 'Refresh chat IDs', update_user_chat_ids_path(@user), method: :post, class: 'btn btn-info' %>
        </p>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h5 class="panel-title">Flagging</h5>
      </div>
      <div class="panel-body">
        <p>
          <strong>Enabled:</strong> <%= @user.flags_enabled? ? 'Yes' : 'No' %><br/>
          <%= link_to 'User\'s Flagging', user_overview_path(user: @user.id) %>
        </p>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h5 class="panel-title">Authentication</h5>
      </div><commit_msg>Use the destination page title for the link to user's Flagger Overview page.<commit_after><h3>User: <%= @user.username %></h3>
<p class="text-muted">Created: <span title="<%= @user.created_at %>"><%= time_ago_in_words @user.created_at %> ago</span></p>

<div class="row">
  <div class="col-md-4">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h5 class="panel-title">SE Auth</h5>
      </div>
      <div class="panel-body">
        <p>
          <strong>Read access (auth-only):</strong> <%= @user.stack_exchange_account_id.present? ? 'Yes' : 'No' %><br/>
          <strong>Write access (auth+flags):</strong> <%= @user.write_authenticated ? 'Yes' : 'No' %>
        </p>
        <p>
          <strong>Account ID:</strong> <%= link_to @user.stack_exchange_account_id, "https://stackexchange.com/users/#{@user.stack_exchange_account_id}" %><br/>
          <strong>SE chat ID:</strong> <%= link_to @user.stackexchange_chat_id, "https://chat.stackexchange.com/users/#{@user.stackexchange_chat_id}" %><br/>
          <strong>MSE chat ID:</strong> <%= link_to @user.meta_stackexchange_chat_id, "https://chat.meta.stackexchange.com/users/#{@user.meta_stackexchange_chat_id}" %><br/>
          <strong>SO chat ID:</strong> <%= link_to @user.stackoverflow_chat_id, "https://chat.stackoverflow.com/users/#{@user.stackoverflow_chat_id}" %><br/>
          <strong>users.yml:</strong><%= @user.stack_exchange_account_id.present? ? @user.stack_exchange_account_id : 'null' %>:
          [<%= @user.stack_exchange_account_id.present? ? @user.stack_exchange_account_id : 'null' %>,
          <%= @user.stackexchange_chat_id.present? ? @user.stackexchange_chat_id : 'null' %>,
          <%= @user.meta_stackexchange_chat_id.present? ? @user.meta_stackexchange_chat_id : 'null' %>,
          <%= @user.stackoverflow_chat_id.present? ? @user.stackoverflow_chat_id : 'null' %>]<span style="white-space:pre;">  </span># <%= @user.username %><br/>
          <strong>rooms.yml:</strong><span style="white-space:pre;">      - </span><%= @user.stack_exchange_account_id.present? ? @user.stack_exchange_account_id : 'null' %> # <%= @user.username %><br/>
        </p>
        <p>
          <%= link_to 'Refresh chat IDs', update_user_chat_ids_path(@user), method: :post, class: 'btn btn-info' %>
        </p>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h5 class="panel-title">Flagging</h5>
      </div>
      <div class="panel-body">
        <p>
          <strong>Enabled:</strong> <%= @user.flags_enabled? ? 'Yes' : 'No' %><br/>
          <%= link_to 'Flagger Overview', user_overview_path(user: @user.id) %>
        </p>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h5 class="panel-title">Authentication</h5>
      </div>
{'fraction_non_alphanumeric': 0.20114246148519993, 'fraction_numerical': 0.0038082049506664357, 'mean_word_length': 3.36734693877551, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 185, 'https://': 8, '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': '1437418', 'n_tokens_mistral': 2145, 'n_tokens_neox': 2035, 'n_words': 313}