<commit_before><!-- <button ng-click="setData()" class="btn btn-primary">Insert Resources</button> -->
<div ng-controller="adminEditArticlesCtrl" style="padding-left: 20px; padding-right: 20px;">
  <loader trigger="adminArticlesEdit"></loader>
  <form class="form-inline" role="form">
    <div class="form-group" style="margin-left:9px;">
      <label>Type</label>
      <button type="button" class="btn btn-default ng-pristine ng-valid" id="attributeType" ng-model="attributeType.type" data-html="1" ng-options="attr.type as attr.description for attr in attributes" data-animation="am-flip-x" bs-select="" data-placeholder="Select an Attribute"><span class="caret"></span>
      </button>
    </div>
    <div class="form-group" style="margin-left:9px;">
      <label>Code</label>
      <select type="text" class="form-control" style="width:auto" ng-model="attributeCode.code" data-min-length="0" data-html="1" data-animation="am-flip-x" ng-options="code.code as code.label for code in codes.codes" placeholder="Enter Code"></select>
    </div>
    <div class="form-group">
      <button type="button" class="btn btn-default ng-pristine ng-valid" id="attributeType" ng-click="newArticle()">Create Article&nbsp;<i class="fa fa-edit"></i></span>
      </button>
    </div>
    
    <div class="form-group pull-right">
      <button ng-click="importFile()" class="btn btn-default">Import&nbsp;<i class="fa fa-sign-in"></i></button>
      <a href="api/v1/resource/attributes/articles/export" class="btn btn-default">Export&nbsp;<i class="fa fa-sign-out"></i></a>
    </div>

  </form>
<!--   <select ng-model="attribute.type" ng-options="attr.type as attr.description for attr in attributes">
    <option value=''>- Select an Attribute -</option>
  </select> -->
  <table class="table table-striped table-bordered">
    <tr>
      <th>Type</th>
      <th>Code</th>
      <th>Description</th>
      <th>Title</th>
      <th>Visible</th>
      <th>Actions</th>
    </tr>
    <tr ng-repeat="article in articles">
      <td style="padding: 5px;">{{article.typeDescription}}</td>
      <td style="padding: 5px;">{{article.codeDescription}}</td>
      <td ng-show="article.description" style="padding:5px; overflow:hidden; text-overflow: ellipsis;" width="40%" popover data-trigger="hover" data-placement="left" data-html="true"  data-selector="" data-original-title="Description" data-container="body" data-content="{{getArticleDesc(article.description)}}">{{article.description}}</td>
      <td ng-show="!article.description" style="padding:5px; overflow:hidden; text-overflow: ellipsis; white-space: nowrap;"></td>
      <td style="padding: 5px;">{{article.title}}</td>
      <td style="padding: 5px; vertical-align: middle; text-align: center;" ng-class="article.attributeCodeActiveStatus === 'A'? 'truthy':'falsey'"><i class="fa" ng-class="article.attributeCodeActiveStatus === 'A'? 'fa-check':'fa-times'"></i></td>
      <td style="padding:0px 5px;">
        <button type="button" class="btn btn-sm btn-default" ng-click="editContent(article)"><i class="fa fa-edit"></i></button><button type="button" class="btn btn-sm btn-default" ng-click="activateCode(article)"><i ng-class="article.attributeCodeActiveStatus === 'A'? 'fa-eye':'fa-eye-slash'" class="fa"></i></button><button type="button" class="btn btn-sm btn-default" ng-click="deleteArticle(article)"><i class="fa fa-trash"></i></button><commit_msg>store-305 fix for description display<commit_after><!-- <button ng-click="setData()" class="btn btn-primary">Insert Resources</button> -->
<div ng-controller="adminEditArticlesCtrl" style="padding-left: 20px; padding-right: 20px;">
  <loader trigger="adminArticlesEdit"></loader>
  <form class="form-inline" role="form">
    <div class="form-group" style="margin-left:9px;">
      <label>Type</label>
      <button type="button" class="btn btn-default ng-pristine ng-valid" id="attributeType" ng-model="attributeType.type" data-html="1" ng-options="attr.type as attr.description for attr in attributes" data-animation="am-flip-x" bs-select="" data-placeholder="Select an Attribute"><span class="caret"></span>
      </button>
    </div>
    <div class="form-group" style="margin-left:9px;">
      <label>Code</label>
      <select type="text" class="form-control" style="width:auto" ng-model="attributeCode.code" data-min-length="0" data-html="1" data-animation="am-flip-x" ng-options="code.code as code.label for code in codes.codes" placeholder="Enter Code"></select>
    </div>
    <div class="form-group">
      <button type="button" class="btn btn-default ng-pristine ng-valid" id="attributeType" ng-click="newArticle()">Create Article&nbsp;<i class="fa fa-edit"></i></span>
      </button>
    </div>
    
    <div class="form-group pull-right">
      <button ng-click="importFile()" class="btn btn-default">Import&nbsp;<i class="fa fa-sign-in"></i></button>
      <a href="api/v1/resource/attributes/articles/export" class="btn btn-default">Export&nbsp;<i class="fa fa-sign-out"></i></a>
    </div>

  </form>
<!--   <select ng-model="attribute.type" ng-options="attr.type as attr.description for attr in attributes">
    <option value=''>- Select an Attribute -</option>
  </select> -->
  <table class="table table-striped table-bordered">
    <tr>
      <th>Type</th>
      <th>Code</th>
      <th>Description</th>
      <th>Title</th>
      <th>Actions</th>
    </tr>
    <tr ng-repeat="article in articles">
      <td style="padding: 5px;">{{article.typeDescription}}</td>
      <td style="padding: 5px;">{{article.codeDescription}}</td>
      <td ng-show="article.description" style="padding:5px; overflow:hidden; text-overflow: ellipsis;" width="40%" popover data-trigger="hover" data-placement="left" data-html="true"  data-selector="" data-original-title="Description" data-container="body" data-content="{{getArticleDesc(article.description)}}"><p ng-bind-html="article.description"></p></td>
      <td ng-show="!article.description" style="padding:5px; overflow:hidden; text-overflow: ellipsis; white-space: nowrap;"></td>
      <td style="padding: 5px;">{{article.title}}</td>
      <td style="padding:0px 5px;">
        <button type="button" class="btn btn-sm btn-default" ng-click="editContent(article)"><i class="fa fa-edit"></i></button><button type="button" class="btn btn-sm btn-default" ng-click="deleteArticle(article)"><i class="fa fa-trash"></i></button>
{'fraction_non_alphanumeric': 0.20147266175779413, 'fraction_numerical': 0.006579978066739777, 'mean_word_length': 4.793103448275862, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 0, '>': 169, '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': '2648005', 'n_tokens_mistral': 2077, 'n_tokens_neox': 1992, 'n_words': 388}