<commit_before><section ng-controller="ArticlesController" ng-init="findOne()">
  <div class="page-header">
    <h1 ng-bind="article.title"></h1>
  </div>
  <div class="pull-right" ng-show="authentication.user.id == article.user.id || article.user.roles.indexOf('admin') != -1">
    <a class="btn btn-primary" ui-sref="articles.edit({articleId: article.id})">
      <i class="glyphicon glyphicon-edit"></i>
    </a>
    <a class="btn btn-primary" ng-click="remove();">
      <i class="glyphicon glyphicon-trash"></i>
    </a>
  </div>
  <small>
    <em class="text-muted">
      Posted on
      <span ng-bind="article.created | date:'mediumDate'"></span>
      by
      <span ng-bind="article.User.username"></span>
    </em>
  </small>
  <p class="lead" ng-bind="article.content"></p>
</section><commit_msg>Fix edit/delete buttons view for owner and admin only<commit_after><section ng-controller="ArticlesController" ng-init="findOne()">
  <div class="page-header">
    <h1 ng-bind="article.title"></h1>
  </div>
  <div class="pull-right" ng-show="authentication.user.id == article.user.id || (article.user.roles.indexOf('admin') && article.user.roles.indexOf('admin') != -1) ">
    <a class="btn btn-primary" ui-sref="articles.edit({articleId: article.id})">
      <i class="glyphicon glyphicon-edit"></i>
    </a>
    <a class="btn btn-primary" ng-click="remove();">
      <i class="glyphicon glyphicon-trash"></i>
    </a>
  </div>
  <small>
    <em class="text-muted">
      Posted on
      <span ng-bind="article.created | date:'mediumDate'"></span>
      by
      <span ng-bind="article.User.username"></span>
    </em>
  </small>
  <p class="lead" ng-bind="article.content"></p>
</section>
{'fraction_non_alphanumeric': 0.21201413427561838, 'fraction_numerical': 0.0035335689045936395, 'mean_word_length': 3.6675824175824174, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '1215792', 'n_tokens_mistral': 599, 'n_tokens_neox': 583, 'n_words': 106}