<commit_before><%inherit file="base.mako"/>
<%def name="title()">${profile["fullname"]}'s Profile</%def>

<%def name="javascript_bottom()">

<script>
    % if user["is_profile"]:
        $(function() {
            $('#profile-fullname').editable({
                type:  'text',
                pk:    '${profile["id"]}',
                name:  'fullname',
                url:   '/api/v1/profile/${profile["id"]}/edit/',
                title: 'Edit Full Name',
                placement: 'bottom',
                value: '${profile["fullname"]}',
                mode: "inline",
                success: function(data) {
                    // Also change the display name in the user info table
                    $(".fullname").text(data['name']);
                }
            });

            var gravatar = $('#profile-gravatar')
            gravatar
                .on('error', function(e) {
                    gravatar.attr('src', '/static/img/blank_avatar.png')
                })
                .attr('src', gravatar.attr('src') + '&d=404')
        });
    % endif
    $script(['/static/addons/badges/bake-badges.js'], 'bakery');
    $script(['/static/addons/badges/badge-popover.js'], 'display');
</script>
% if user['is_profile']:
    <%include file="profile/modal_change_avatar.mako"/>
% endif

</%def>

<%def name="content()">
% if profile['is_merged']:
<div class="alert alert-info">This account has been merged with <a class="alert-link" href="${profile['merged_by']['url']}">${profile['merged_by']['absolute_url']}</a>
</div>
% endif

<div class="page-header">
    <a href="#changeAvatarModal" data-toggle="modal">
        <img id='profile-gravatar' src="${profile['gravatar_url']}"
                 rel="tooltip" title="click to change avatar" />
    </a>
    <h1 id="profile-fullname">${profile["fullname"]}</h1>
</div><!-- end-page-header -->

<div class="row">

    <div class="col-md-6">


        <div>
            <table class="table table-plain">
                <tr>
                  <td>Name</td>
                  <td class="fullname">${profile["fullname"]}</td>
                </tr>
                <tr>
                  <td>Member Since</td>
                  <td>${profile['date_registered']}</td>
                </tr>
                <tr>
                  <td>Public Profile</td>
                  <td><a href="${profile['url']}">${profile['display_absolute_url']}</a></td>
                </tr>
            </table>
        </div>
        <div>
            <h2>
               ${profile['activity_points'] or "No"} activity point${'s' if profile['activity_points'] != 1 else ''}<br />
               ${profile["number_projects"]} project${'s' if profile["number_projects"] != 1  else ''}, ${profile["number_public_projects"]} public
            </h2>
        </div>


    </div>

    <div class="col-md-6">


        <ul class="nav nav-tabs">
            <li class="active"><a href="#social" data-toggle="tab">Social</a></li>
            <li><a href="#jobs" data-toggle="tab">Employment</a></li>
            <li><a href="#schools" data-toggle="tab">Education</a></li>
        </ul>

        <div class="tab-content">

            <div class="tab-pane active" id="social">

                <dl class="dl-horizontal" data-bind="foreach: values">

                    <dt>{{ key }}</dt>
                    <dd>{{ value }}</dd>

                </dl>

            </div>

            <div class="tab-pane" id="jobs">

                <div data-bind="ifnot: contents().length">

                    Missing

                </div>

                <div data-bind="if: contents().length">

                    <table class="table">

                        <thead>
                            <tr>
                                <th>Institution</th>
                                <th>Department</th>
                                <th>Title</th>
                                <th>Start Date</th>
                                <th>End Date</th>
                            </tr>
                        </thead>

                        <tbody data-bind="foreach: contents">
<commit_msg>Fixes whitespace in social media list.<commit_after><%inherit file="base.mako"/>
<%def name="title()">${profile["fullname"]}'s Profile</%def>

<%def name="javascript_bottom()">

<script>
    % if user["is_profile"]:
        $(function() {
            $('#profile-fullname').editable({
                type:  'text',
                pk:    '${profile["id"]}',
                name:  'fullname',
                url:   '/api/v1/profile/${profile["id"]}/edit/',
                title: 'Edit Full Name',
                placement: 'bottom',
                value: '${profile["fullname"]}',
                mode: "inline",
                success: function(data) {
                    // Also change the display name in the user info table
                    $(".fullname").text(data['name']);
                }
            });

            var gravatar = $('#profile-gravatar')
            gravatar
                .on('error', function(e) {
                    gravatar.attr('src', '/static/img/blank_avatar.png')
                })
                .attr('src', gravatar.attr('src') + '&d=404')
        });
    % endif
    $script(['/static/addons/badges/bake-badges.js'], 'bakery');
    $script(['/static/addons/badges/badge-popover.js'], 'display');
</script>
% if user['is_profile']:
    <%include file="profile/modal_change_avatar.mako"/>
% endif

</%def>

<%def name="content()">
% if profile['is_merged']:
<div class="alert alert-info">This account has been merged with <a class="alert-link" href="${profile['merged_by']['url']}">${profile['merged_by']['absolute_url']}</a>
</div>
% endif

<div class="page-header">
    <a href="#changeAvatarModal" data-toggle="modal">
        <img id='profile-gravatar' src="${profile['gravatar_url']}"
                 rel="tooltip" title="click to change avatar" />
    </a>
    <h1 id="profile-fullname">${profile["fullname"]}</h1>
</div><!-- end-page-header -->

<div class="row">

    <div class="col-md-6">


        <div>
            <table class="table table-plain">
                <tr>
                  <td>Name</td>
                  <td class="fullname">${profile["fullname"]}</td>
                </tr>
                <tr>
                  <td>Member Since</td>
                  <td>${profile['date_registered']}</td>
                </tr>
                <tr>
                  <td>Public Profile</td>
                  <td><a href="${profile['url']}">${profile['display_absolute_url']}</a></td>
                </tr>
            </table>
        </div>
        <div>
            <h2>
               ${profile['activity_points'] or "No"} activity point${'s' if profile['activity_points'] != 1 else ''}<br />
               ${profile["number_projects"]} project${'s' if profile["number_projects"] != 1  else ''}, ${profile["number_public_projects"]} public
            </h2>
        </div>


    </div>

    <div class="col-md-6">


        <ul class="nav nav-tabs">
            <li class="active"><a href="#social" data-toggle="tab">Social</a></li>
            <li><a href="#jobs" data-toggle="tab">Employment</a></li>
            <li><a href="#schools" data-toggle="tab">Education</a></li>
        </ul>

        <div class="tab-content">

            <div class="tab-pane active" id="social">

                <dl class="dl-horizontal" data-bind="foreach: values">

                    <dt>{{ key }}</dt>
                    <dd>{{ value || '&nbsp;' }}</dd>

                </dl>

            </div>

            <div class="tab-pane" id="jobs">

                <div data-bind="ifnot: contents().length">

                    Missing

                </div>

                <div data-bind="if: contents().length">

                    <table class="table">

                        <thead>
                            <tr>
                                <th>Institution</th>
                                <th>Department</th>
                                <th>Title</th>
                                <th>Start Date</th>
                                <th>End Date</th>
                            </tr>
                        </thead>

                        <tbody data-bind="foreach: contents">

{'fraction_non_alphanumeric': 0.18347187085893266, 'fraction_numerical': 0.0028912179255511385, 'mean_word_length': 1.5211053750379593, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 197, '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': '2466046', 'n_tokens_mistral': 2494, 'n_tokens_neox': 2303, 'n_words': 428}