<commit_before>{% extends "base.html" %}
{% load i18n %}
{% load markdown_deux_tags %}
{% block title %}{{ profile_user.username }}: {% trans 'Profile'%}{% endblock %}
{% block js %}
<script src="/static/bower/Autolinker.js/dist/Autolinker.min.js"></script>
<script src="/static/js/loadactivities.js"></script>
<script src="/static/js/profile.js"></script>
{% endblock %}

{% block content %}
{% load imageurl %}
{% load padzeros %}
{% load mod %}
{% load choicesToString %}
<div id="fb-root"></div>
<div class="container">
  <br><br>
  {% if user.is_staff and show_staff %}
  <form method="POST" class="alert alert-danger">
    <h1>Staff Danger Zone</h1>
    User ID: {{ profile_user.id }}
    {% csrf_token %}
    {% include "bootstrap_form_horizontal.html" with form=form_preferences wrap=0 %}
    <div class="text-right">
      <input name="editPreferences" type="submit" class="btn btn-lg btn-Cool" value="{% trans 'Apply Changes' %}" />
    </div>
  </form>
  <br><br>
  {% endif %}
  <div class="jumbotron {{ preferences.color }}" id="profile">
    <div class="topprofile {{ preferences.color }}">
      <div class="row">
	<div class="col-sm-2">
	  {% include 'include/avatar.html' with av_user=profile_user av_size=60 av_image_size=200 %}
	</div>
	<div class="col-sm-10">
	  <div class="info">
	    <div class="pull-right text-right">
	      {% if user.is_authenticated and not preferences.private and not is_me %}
	      <form method="POST" class="noform" id="follow" action="/ajax/follow/{{ profile_user.username }}/">
		{% csrf_token %}
		<input type="hidden" name="{% if following %}unfollow{% else %}follow{% endif %}">
		<input type="submit" class="btn btn-lg btn-{{ preferences.color }}" value="{% if following %}{% trans 'Unfollow' %}{% else %}{% trans 'Follow' %}{% endif %}" data-reverse="{% if following %}{% trans 'Follow' %}{% else %}{% trans 'Unfollow' %}{% endif %}">
	      </form>
	      {% elif not user.is_authenticated %}
	      <a href="/create/" class="btn btn-lg btn-{% if preferences.color %}{{ preferences.color }}{% else %}default{% endif %}">Follow</a><br>
	      {% endif %}
	      {% if total_followers %}
	      <br><a href="#followers"><strong>{{ total_followers }}</strong> {% trans 'Followers' %}</a></td>
	      {% endif %}
	      {% if total_following %}
	      <br><a href="#following"><strong>{{ total_following }}</strong> {% trans 'Following' %}</a></td>
	      {% endif %}
	    </div>
	    <h1 id="username">{{ profile_user.username }}</h1>
	    {% if preferences.status and preferences.status != 'THANKS' %}<a href="/donate/"><h2 style="color: {{ preferences.status|userStatusToColor }}">{{ preferences.status|userStatusToString }}</h2></a>{% endif %}
	    {% if is_me %}<div><a href="/edit/"><i class="flaticon-edit"></i> {% trans 'Your Settings' %}</a></div>{% endif %}
	    <br>
	    <div class="description">{{ preferences.description|markdown }}</div>
	  </div>
	</div>
      </div>
    </div>
  </div>
<div>
  <table>
    <tr>
      {% for link in links %}
      {% if forloop.counter0|mod:per_line %}
  </tr></table>
  <table class="white-table table-responsive text-center table-buttons {% if preferences.color %}{{ preferences.color }}{% else %}default{% endif %}">
    <tr>
      {% endif%}
      <td><commit_msg>Add staff button in profiles<commit_after>{% extends "base.html" %}
{% load i18n %}
{% load markdown_deux_tags %}
{% block title %}{{ profile_user.username }}: {% trans 'Profile'%}{% endblock %}
{% block js %}
<script src="/static/bower/Autolinker.js/dist/Autolinker.min.js"></script>
<script src="/static/js/loadactivities.js"></script>
<script src="/static/js/profile.js"></script>
{% endblock %}

{% block content %}
{% load imageurl %}
{% load padzeros %}
{% load mod %}
{% load choicesToString %}
<div id="fb-root"></div>
<div class="container">
  <br><br>
  {% if user.is_staff and show_staff %}
  <form method="POST" class="alert alert-danger">
    <h1>Staff Danger Zone</h1>
    User ID: {{ profile_user.id }}
    {% csrf_token %}
    {% include "bootstrap_form_horizontal.html" with form=form_preferences wrap=0 %}
    <div class="text-right">
      <input name="editPreferences" type="submit" class="btn btn-lg btn-Cool" value="{% trans 'Apply Changes' %}" />
    </div>
  </form>
  <br><br>
  {% endif %}
  <div class="jumbotron {{ preferences.color }}" id="profile">
    <div class="topprofile {{ preferences.color }}">
      <div class="row">
	<div class="col-sm-2">
	  {% include 'include/avatar.html' with av_user=profile_user av_size=60 av_image_size=200 %}
	</div>
	<div class="col-sm-10">
	  <div class="info">
	    <div class="pull-right text-right">
	      {% if user.is_authenticated and not preferences.private and not is_me %}
	      <form method="POST" class="noform" id="follow" action="/ajax/follow/{{ profile_user.username }}/">
		{% csrf_token %}
		<input type="hidden" name="{% if following %}unfollow{% else %}follow{% endif %}">
		<input type="submit" class="btn btn-lg btn-{{ preferences.color }}" value="{% if following %}{% trans 'Unfollow' %}{% else %}{% trans 'Follow' %}{% endif %}" data-reverse="{% if following %}{% trans 'Follow' %}{% else %}{% trans 'Unfollow' %}{% endif %}">
	      </form>
	      {% elif not user.is_authenticated %}
	      <a href="/create/" class="btn btn-lg btn-{% if preferences.color %}{{ preferences.color }}{% else %}default{% endif %}">Follow</a><br>
	      {% endif %}
	      {% if total_followers %}
	      <br><a href="#followers"><strong>{{ total_followers }}</strong> {% trans 'Followers' %}</a></td>
	      {% endif %}
	      {% if total_following %}
	      <br><a href="#following"><strong>{{ total_following }}</strong> {% trans 'Following' %}</a></td>
	      {% endif %}
	    </div>
	    <h1 id="username">{{ profile_user.username }}</h1>
	    {% if preferences.status and preferences.status != 'THANKS' %}<a href="/donate/"><h2 style="color: {{ preferences.status|userStatusToColor }}">{{ preferences.status|userStatusToString }}</h2></a>{% endif %}
	    {% if is_me %}<div><a href="/edit/"><i class="flaticon-edit"></i> {% trans 'Your Settings' %}</a></div>{% endif %}
	    {% if user.is_staff and not show_staff %}<div><a href="?staff"><i class="flaticon-edit"></i> Staff Interface</a></div>{% endif %}
	    <br>
	    <div class="description">{{ preferences.description|markdown }}</div>
	  </div>
	</div>
      </div>
    </div>
  </div>
<div>
  <table>
    <tr>
      {% for link in links %}
      {% if forloop.counter0|mod:per_line %}
  </tr></table>
  <table class="white-table table-responsive text-center table-buttons {% if preferences.color %}{{ preferences.color }}{% else %}default{% endif %}">
    <tr>
      {% endif%}
      <td>
{'fraction_non_alphanumeric': 0.21541679115625934, 'fraction_numerical': 0.00537795040334628, 'mean_word_length': 3.8096264367816093, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, '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': '3486261', 'n_tokens_mistral': 2455, 'n_tokens_neox': 2178, 'n_words': 502}