<commit_before>{% extends "base.html" %}

{% block page_title %}{{ c.profile.fullname }}{% endblock %}

{% block content %}
<h2 class="page-header">{{ c.profile.fullname }}</h2>

<div class="row">
  <div class="span2">
  <img src="{{ h.gravatar(c.profile.email, 200) }}" alt="Gravatar for {{c.profile.name}}">
  </div>
  <div class="span4">
    <h3>Information{% if c.account == c.profile %} <small><a href="{{ h.url(controller='account', action='settings') }}">(change)</a></small>{% endif %}</h3>
    <dl class="dl-horizontal">
      {% if c.profile.fullname %}
      <dt>Name</dt>
      <dd>{{c.profile.fullname}}</dd>
      {% endif %}
      <dt>Username</dt>
      <dd>{{c.profile.name}}</dd>
      {% if c.show_email %}
      <dt>Email</dt>
      <dd>{{c.profile.email}}</dd>
      {% endif %}
      {% if c.show_twitter %}
      <dt>Twitter</dt>
      <dd><a href="{{ h.twitter_uri(c.profile.twitter_handle) }}">@{{ c.profile.twitter_handle }}</a></dd>
      {% endif %}
    </dl>
  </div>
  <div class="span6">
    {% if c.account_datasets|length %}
    <h3>Datasets</h3>
    <ul>{% for dataset in c.account_datasets %}
      <li>
        <a href="{{ h.url(controller='dataset', action='view', dataset=dataset.name) }}">{{ dataset.label }}</a>
      </li>
      {% endfor %}</ul>
    {% endif %}
    {% if c.account_views|length %}
    <h3>Views</h3>
    <ul>{% for view in c.account_views %}
      <li>
        <a href="{{ h.url(controller='view', action='view', dataset=view.dataset.name, name=view.name) }}">{{view.label}}</a> 
        on
	<a href="{{ h.url(controller='dataset', action='view', dataset=view.dataset.name) }}">{{ view.dataset.label }}</a>
      </li>
      {% endfor %}</ul>
    {% endif %}
  </div>
</div>
{% endblock %}


<commit_msg>Only show twitter handle if there is one<commit_after>{% extends "base.html" %}

{% block page_title %}{{ c.profile.fullname }}{% endblock %}

{% block content %}
<h2 class="page-header">{{ c.profile.fullname }}</h2>

<div class="row">
  <div class="span2">
  <img src="{{ h.gravatar(c.profile.email, 200) }}" alt="Gravatar for {{c.profile.name}}">
  </div>
  <div class="span4">
    <h3>Information{% if c.account == c.profile %} <small><a href="{{ h.url(controller='account', action='settings') }}">(change)</a></small>{% endif %}</h3>
    <dl class="dl-horizontal">
      {% if c.profile.fullname %}
      <dt>Name</dt>
      <dd>{{c.profile.fullname}}</dd>
      {% endif %}
      <dt>Username</dt>
      <dd>{{c.profile.name}}</dd>
      {% if c.show_email %}
      <dt>Email</dt>
      <dd>{{c.profile.email}}</dd>
      {% endif %}
      {% if c.profile.twitter_handle and c.show_twitter %}
      <dt>Twitter</dt>
      <dd><a href="{{ h.twitter_uri(c.profile.twitter_handle) }}">@{{ c.profile.twitter_handle }}</a></dd>
      {% endif %}
    </dl>
  </div>
  <div class="span6">
    {% if c.account_datasets|length %}
    <h3>Datasets</h3>
    <ul>{% for dataset in c.account_datasets %}
      <li>
        <a href="{{ h.url(controller='dataset', action='view', dataset=dataset.name) }}">{{ dataset.label }}</a>
      </li>
      {% endfor %}</ul>
    {% endif %}
    {% if c.account_views|length %}
    <h3>Views</h3>
    <ul>{% for view in c.account_views %}
      <li>
        <a href="{{ h.url(controller='view', action='view', dataset=view.dataset.name, name=view.name) }}">{{view.label}}</a> 
        on
	<a href="{{ h.url(controller='dataset', action='view', dataset=view.dataset.name) }}">{{ view.dataset.label }}</a>
      </li>
      {% endfor %}</ul>
    {% endif %}
  </div>
</div>
{% endblock %}



{'fraction_non_alphanumeric': 0.2417643774427694, 'fraction_numerical': 0.007816862088218872, 'mean_word_length': 3.03490990990991, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, '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': '7551585', 'n_tokens_mistral': 1385, 'n_tokens_neox': 1278, 'n_words': 241}