<commit_before>extends ../layout

block content
    script(type="text/javascript", src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js")

    script
        $(document).ready(function(){
            // Allowing forcing of string stats data to sort as numeric
            jQuery.extend( jQuery.fn.dataTableExt.oSort, {
                "forcenum-pre": function ( a ) {
                    a = a.replace("\,", "");
                    return parseFloat( a );
                },
             
                "forcenum-asc": function ( a, b ) {
                    return a - b;
                },
             
                "forcenum-desc": function ( a, b ) {
                    return b - a;
                }
            } );

            $('.tip').tooltip();
            $('.data').dataTable({
              "aoColumnDefs": [
                { "sType": "forcenum",
                  "asSorting": [ "desc", "asc" ],
                  "aTargets": [ 1, 2, 3, 4, 5 ] }
              ],
              "bPaginate": false,
              "bFilter": false,
              "bLengthChange": false,
              "oLanguage": {
                "sInfo":  "",
                "sInfoEmpty":  "",
                "sInfoFiltered": ""
              },
            });
        });

    div.page-header.profile_page-header
        h1 
          #{primary}
        small
          if(profile.tagline)
            "#{profile.tagline}"
    div#backlink 
        a(href='/profile/'+connection) &laquo; Profiles
   
    div.row.profile_row#profile_data
      div.span3
        if profile.avatar
          img.profile_avatar(src="#{profile.avatar}")
        else
          img.profile_avatar(src="http://placehold.it/270x180&text=Hello,%20World")
      div.span9
        h4 Bio
        p #{profile.bio}
    
    hr
    h3 Channel Statistics
    div#profile_datatable
        table.table.table-hover.data
            thead
                tr
                  th Channel
                  th Lines
                  th Words
                  th Lincent
                  th Verbosity
                  th Mentions
            tbody
              for chan, key in stats
                if stats.hasOwnProperty(key)
                    tr<commit_msg>prettier bio picture<commit_after>extends ../layout

block content
    script(type="text/javascript", src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js")

    script
        $(document).ready(function(){
            // Allowing forcing of string stats data to sort as numeric
            jQuery.extend( jQuery.fn.dataTableExt.oSort, {
                "forcenum-pre": function ( a ) {
                    a = a.replace("\,", "");
                    return parseFloat( a );
                },
             
                "forcenum-asc": function ( a, b ) {
                    return a - b;
                },
             
                "forcenum-desc": function ( a, b ) {
                    return b - a;
                }
            } );

            $('.tip').tooltip();
            $('.data').dataTable({
              "aoColumnDefs": [
                { "sType": "forcenum",
                  "asSorting": [ "desc", "asc" ],
                  "aTargets": [ 1, 2, 3, 4, 5 ] }
              ],
              "bPaginate": false,
              "bFilter": false,
              "bLengthChange": false,
              "oLanguage": {
                "sInfo":  "",
                "sInfoEmpty":  "",
                "sInfoFiltered": ""
              },
            });
        });

    div.page-header.profile_page-header
        h1 
          #{primary}
        small
          if(profile.tagline)
            "#{profile.tagline}"
    div#backlink 
        a(href='/profile/'+connection) &laquo; Profiles
   
    div.row.profile_row#profile_data
      div.span3
        if profile.avatar
          img.profile_avatar.img-polaroid(src="#{profile.avatar}")
        else
          img.profile_avatar(src="http://placehold.it/270x180&text=Hello,%20World")
      div.span9
        h4 Bio
        p #{profile.bio}
    
    hr
    h3 Channel Statistics
    div#profile_datatable
        table.table.table-hover.data
            thead
                tr
                  th Channel
                  th Lines
                  th Words
                  th Lincent
                  th Verbosity
                  th Mentions
            tbody
              for chan, key in stats
                if stats.hasOwnProperty(key)
                    tr
{'fraction_non_alphanumeric': 0.11635081533715293, 'fraction_numerical': 0.009255178492728075, 'mean_word_length': 1.0984743411927878, 'pattern_counts': {'":': 28, '<': 3, '<?xml version=': 0, '>': 3, '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': '2198526', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1212, 'n_words': 235}