<commit_before>{% extends "base/base.html" %}
{% load sekizai_tags %}
{% load avatar_tags %}
{% load comments %}
{% load roots_tags %}
{% load i18n %}
{% load l10n %}
{% load static %}

{% block content %}

<div class="col-md-12 well profile">
  <div class="col-md-12">
  <div class="row">

    <div class="col-md-8">
      <h2>{{ profile.user.get_full_name }}</h2>
      <p><strong>About: </strong> Some stuff </p>
      <p><strong>Hobbies: </strong> Some other stuff </p>
      <p><strong>Competitions participated in: </strong>
      {% for competition in profile.participated_competitions %}
        <span class="tags"> {{ competition.name }}</span>
      {% endfor %}
      </p>
    </div>

    <div class="col-md-4 text-center">
      <img src="{% avatar_url profile.user 175 %}" class="img-circle img-responsive center-block"/>
    </div>
  </div>

  <div class="row divider text-center">
    <div class="col-md-4 emphasis">
    {% with best_rank=profile.best_ranking %}
    {% with competition=best_rank.0 season=best_rank.1 rank=best_rank.2 %}
      <h2>
      <strong>
        {% if rank.0 %}
          {{ rank.0 }}. {% trans "place" %}
          {% else %}
            -
          {% endif %}
        </strong>
      </h2>
      <p><small> {% trans "Best ranking" %} </small></p>
      <button class="btn btn-success btn-block">
        <span class="fa fa-plus-circle"></span>
        {% if season %}
          {{ season.name }} - {{ season.year }}
        {% else %}
          {% trans "Never competed" %}
        {% endif %}
      </button>
    {% endwith %}<commit_msg>profiles: Fix catching non-existent variable of place in the template<commit_after>{% extends "base/base.html" %}
{% load sekizai_tags %}
{% load avatar_tags %}
{% load comments %}
{% load roots_tags %}
{% load i18n %}
{% load l10n %}
{% load static %}

{% block content %}

<div class="col-md-12 well profile">
  <div class="col-md-12">
  <div class="row">

    <div class="col-md-8">
      <h2>{{ profile.user.get_full_name }}</h2>
      <p><strong>About: </strong> Some stuff </p>
      <p><strong>Hobbies: </strong> Some other stuff </p>
      <p><strong>Competitions participated in: </strong>
      {% for competition in profile.participated_competitions %}
        <span class="tags"> {{ competition.name }}</span>
      {% endfor %}
      </p>
    </div>

    <div class="col-md-4 text-center">
      <img src="{% avatar_url profile.user 175 %}" class="img-circle img-responsive center-block"/>
    </div>
  </div>

  <div class="row divider text-center">
    <div class="col-md-4 emphasis">
    {% with best_rank=profile.best_ranking %}
    {% with competition=best_rank.0 season=best_rank.1 rank=best_rank.2 %}
      <h2>
      <strong>
        {% if rank %}
          {{ rank }}. {% trans "place" %}
        {% else %}
            -
        {% endif %}
        </strong>
      </h2>
      <p><small> {% trans "Best ranking" %} </small></p>
      <button class="btn btn-success btn-block">
        <span class="fa fa-plus-circle"></span>
        {% if season %}
          {{ season.name }} - {{ season.year }}
        {% else %}
          {% trans "Never competed" %}
        {% endif %}
      </button>
    {% endwith %}
{'fraction_non_alphanumeric': 0.18855009334163036, 'fraction_numerical': 0.013690105787181083, 'mean_word_length': 2.373557187827912, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '3133320', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1031, 'n_words': 245}