<commit_before>%title='All known contacts (%d contacts)' % len(contacts)
%rebase layout globals(), css=['contacts/css/contacts.css'], js=['contacts/js/contacts-overview.js'], title=title, refresh=True

%helper = app.helper
%datamgr = app.datamgr

<div class="row">
  <div class="pull-right col-sm-2">
    <span class="btn-group pull-right">
      <a href="#" id="listview" class="btn btn-small switcher pull-right active" data-original-title='List'> <i class="fa fa-align-justify"></i> </a>
      <a href="#" id="gridview" class="btn btn-small switcher pull-right" data-original-title='Grid'> <i class="fa fa-th"></i> </a>
    </span>
  </div>
</div>
<div class="row">
  <ul id="contacts" class="list row col-sm-10 pull-right">
    %even=''
    %for contact in contacts:
      %if even =='':
        %even='alt'
      %else:
        %even=''
      %end

      %username = 'anonymous'
      %if hasattr(contact, 'alias') and contact.alias != '':
      %	username = contact.alias
      %else:
      %	username = contact.get_name()
      %end
      %username = contact.alias if hasattr(contact, 'alias') and contact.alias != 'none' else contact.get_name()
      <li class="clearfix {{even}} ">
        <section class="left col-sm-6">
          <a href="/contact/{{contact.get_name()}}"><h3>{{"%s (%s)" % (contact.alias, contact.contact_name) if contact.alias != 'none' else contact.contact_name}}</h3></a><commit_msg>Contact name is not clickable for non admin<commit_after>%title='All known contacts (%d contacts)' % len(contacts)
%rebase layout globals(), css=['contacts/css/contacts.css'], js=['contacts/js/contacts-overview.js'], title=title, refresh=True

%helper = app.helper
%datamgr = app.datamgr

<div class="row">
  <div class="pull-right col-sm-2">
    <span class="btn-group pull-right">
      <a href="#" id="listview" class="btn btn-small switcher pull-right active" data-original-title='List'> <i class="fa fa-align-justify"></i> </a>
      <a href="#" id="gridview" class="btn btn-small switcher pull-right" data-original-title='Grid'> <i class="fa fa-th"></i> </a>
    </span>
  </div>
</div>
<div class="row">
  <ul id="contacts" class="list row col-sm-10 pull-right">
    %even=''
    %for contact in contacts:
      %if even =='':
        %even='alt'
      %else:
        %even=''
      %end

      %username = 'anonymous'
      %if hasattr(contact, 'alias') and contact.alias != '':
      %	username = contact.alias
      %else:
      %	username = contact.get_name()
      %end
      %username = contact.alias if hasattr(contact, 'alias') and contact.alias != 'none' else contact.get_name()
      <li class="clearfix {{even}} ">
        <section class="left col-sm-6">
          %if user.is_admin:
          <a href="/contact/{{contact.get_name()}}"><h3>{{"%s (%s)" % (contact.alias, contact.contact_name) if contact.alias != 'none' else contact.contact_name}}</h3></a>
          %else:
          <h3>{{"%s (%s)" % (contact.alias, contact.contact_name) if contact.alias != 'none' else contact.contact_name}}</h3>
          %end
{'fraction_non_alphanumeric': 0.19408866995073892, 'fraction_numerical': 0.004597701149425287, 'mean_word_length': 3.357653791130186, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '2389957', 'n_tokens_mistral': 1034, 'n_tokens_neox': 1024, 'n_words': 241}