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

<%def name="javascript_bottom()">

<script>
    % if user["is_profile"]:
        $(function() {
            $('#profile-fullname > span').editable({
                type:  'text',
                pk:    '${profile["id"]}',
                name:  'fullname',
                url:   '/api/v1/profile/${profile["id"]}/edit/',
                title: 'Edit Full Name',
                placement: 'bottom',
                value: '${profile["fullname"]}',
                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"><span>${profile["fullname"]}</span></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><commit_msg>Recent activity correctly loads on profile page<commit_after><%inherit file="base.mako"/>
<%def name="title()">${profile["fullname"]}</%def>

<%def name="javascript_bottom()">

<script>
    % if user["is_profile"]:
        $(function() {
            $('#profile-fullname > span').editable({
                type:  'text',
                pk:    '${profile["id"]}',
                name:  'fullname',
                url:   '/api/v1/profile/${profile["id"]}/edit/',
                title: 'Edit Full Name',
                placement: 'bottom',
                value: '${profile["fullname"]}',
                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(['/static/js/logFeed.js']);
</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"><span>${profile["fullname"]}</span></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>
{'fraction_non_alphanumeric': 0.20207253886010362, 'fraction_numerical': 0.003297220913801225, 'mean_word_length': 2.178892215568862, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 69, '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': '753637', 'n_tokens_mistral': 1336, 'n_tokens_neox': 1264, 'n_words': 228}