<commit_before>{% extends 'base.html' %}
{% load i18n %}
{% load staticfiles %}
{% block content %}
<div id="profile" class="container">
    <div class="row">
      <div class="col-lg-4 col-sm-4">
        <fieldset>
          <script type="text/javascript" charset="utf-8">
            $(document).ready(function() {
              function onFileSelected(event) {
                var selectedFile = event.target.files[0];
                var reader = new FileReader();
                var imgtag = document.getElementById("profile-avatar");
                imgtag.title = selectedFile.name;

                reader.onload = function(event) {
                  imgtag.src = event.target.result;
                };

                reader.readAsDataURL(selectedFile);;
              }

              function onImgNotFound(event) {
                $(this).attr('src', '{% static "img/avatar-default.png" %}')
              }

              $("#upload-avatar").change(onFileSelected);

              $("#profile-avatar").error(onImgNotFound);
            });
          </script>

          <label for="upload-avatar" class="upload-avatar">
            <span><i class="icon-picture"></i> {% trans "Upload avatar" %}</span>
            <div class="thumbnail">
              <img id="profile-avatar" width="256" src="{{ profile_user.get_picture_url }}">
            </div>
          </label>
        </fieldset>
      </div>

      <div class="col-lg-8 col-sm-8">
        <fieldset>
          <div class="page-header-double textleft top">
            <h3 class="top"><i class="icon-double-angle-right"></i> {% trans "Profile Info" %}</h3>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "Full Name" %}</label>
            <div class="col-lg-9 col-sm-9">
              <div class="col-lg-6 col-sm-6 left">
                  <p>{{profile_user.first_name}}</p>
              </div>
              <div class="col-lg-6 col-sm-6 right">
                  <p>{{profile_user.last_name}}</p>
              </div>
            </div>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "Occupation" %}</label>
            <div class="col-lg-9 col-sm-9">
              <p>{{profile_user.occupation}}</p>
            </div>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "City" %}</label>
            <div class="col-lg-9 col-sm-9">
                <p>{{profile_user.city}}</p>
            </div>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "Site" %}</label>
            <div class="col-lg-9 col-sm-9">
              <p>{{profile_user.site}}</p>
            </div>
          </div>
          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "Bio" %}</label>
            <div class="col-lg-9 col-sm-9">
                <p>{{profile_user.biography}}</p>
            </div>
          </div>
        </fieldset>

        <fieldset>
          <hr/>
          <div class="page-header-double textleft top">
            <h3><i class="icon-double-angle-right"></i> {% trans "Account Settings" %}</h3>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "Username" %}</label>
            <div class="col-lg-9 col-sm-9">
                <p>{{profile_user.username}}</p>
            </div>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "E-mail" %}</label>
            <div class="col-lg-9 col-sm-9">
              <p>{{profile_user.email}}</p>
            </div>
          </div>
        </fieldset>
      </div>
    </div>
</div>
{% endblock %}
<commit_msg>layout profile<commit_after>{% extends 'base.html' %}
{% load i18n %}
{% load staticfiles %}
{% block content %}
<div id="profile" class="container">
    <div class="row">
      <div class="col-lg-3 col-sm-3 col-lg-offset-1">
        <img id="profile-avatar" src="{{ profile_user.get_picture_url }}" class="col-lg-12 thumbnail">
      </div>

      <div class="col-lg-7 col-sm-7">
        <fieldset>
          <div class="page-header-double textleft top">
            <h3 class="top"><i class="icon-double-angle-right"></i> {{profile_user.first_name}} {{profile_user.last_name}}</h3>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "Occupation" %}</label>
            <div class="col-lg-9 col-sm-9">
              <p>{{profile_user.occupation}}</p>
            </div>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "City" %}</label>
            <div class="col-lg-9 col-sm-9">
                <p>{{profile_user.city}}</p>
            </div>
          </div>

          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "Site" %}</label>
            <div class="col-lg-9 col-sm-9">
              <p><a href="{{profile_user.site}}" target="_blank">{{profile_user.site}}</a></p>
            </div>
          </div>
          <div class="form-group">
            <label class="col-lg-3 col-sm-3 control-label">{% trans "Bio" %}</label>
            <div class="col-lg-9 col-sm-9">
                <p>{{profile_user.biography}}</p>
            </div>
          </div>
        </fieldset>
      </div>
    </div>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.18858869534305012, 'fraction_numerical': 0.013153217205830075, 'mean_word_length': 1.6718898385565053, 'pattern_counts': {'":': 0, '<': 154, '<?xml version=': 0, '>': 154, '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': '4098633', 'n_tokens_mistral': 1841, 'n_tokens_neox': 1742, 'n_words': 328}