<commit_before>.row-fluid style="display:inline;"
  h1 style="display:inline;" My Collections
  .page-nav.pull-right
    button.btn type="button" bs-popover="batchUpload" data-placement="bottom" 
      i.icon-th-list
      |  Batch Upload

.row-fluid
  .alert.alert-info
    | Use collections to group and organize your audio files.
  ul.collections-list
    li.collection-box ng-repeat="collection in collections | notUploads"
      span class="ribbon" ng-class="{'public': collection.itemsVisibleByDefault, 'private': !collection.itemsVisibleByDefault}"
      a ng-href="/collections/{{collection.id}}"
        .col-image ng-show="collection.imageFiles.length" style="background-image:url('{{collection.imageFiles[collection.imageFiles.length -1].file.file.thumb.url}}')"
        .image ng-hide="collection.imageFiles.length"
            .box
      .collection-info
        a ng-href="/collections/{{collection.id}}"
          h3 {{collection.title}}
        p {{collection.description}}
        button.upload-item-to-collection ng-click="uploadItemToCollection(collection.id)"
          i.icon-upload &nbsp
          | Add an item to {{collection.title}}
      .recent-items.row
        .col-xs-4 File
        .col-xs-4 Item
        .col-xs-4 Status
      ul.items-list
        li ng-repeat="file in collection.recentFiles"
          a ng-href="/collections/{{collection.id}}/items/{{file.itemId}}"
            .col-xs-4 ng-class-odd=" 'odd-file' " {{file.fileName}}
            .col-xs-4 ng-class-odd=" 'odd-file' " {{file.itemName}}
            .col-xs-4 ng-class-odd=" 'odd-file' " {{file.fileStatus}}
        li
          a ng-show="collection.numberOfAudioFiles > 5" ng-href="/collections/{{collection.id}}" more...
<commit_msg>Added a counter for the number of items in a collection. Added a filter to truncate the collection description. Changed the upload icon. Hid the recent files if there are no audio files for a collection.<commit_after>.row-fluid style="display:inline;"
  h1 style="display:inline;" My Collections
  .page-nav.pull-right
    button.btn type="button" bs-popover="batchUpload" data-placement="bottom" 
      i.icon-th-list
      |  Batch Upload

.row-fluid
  .alert.alert-info
    | Use collections to group and organize your audio files.
  ul.collections-list
    li.collection-box ng-repeat="collection in collections | notUploads"
      span class="ribbon" ng-class="{'public': collection.itemsVisibleByDefault, 'private': !collection.itemsVisibleByDefault}"
      a ng-href="/collections/{{collection.id}}"
        .col-image ng-show="collection.imageFiles.length" style="background-image:url('{{collection.imageFiles[collection.imageFiles.length -1].file.file.thumb.url}}')"
        .image ng-hide="collection.imageFiles.length"
            .box
      .collection-info
        div
          a ng-href="/collections/{{collection.id}}"
            h3 style="display: inline-block" {{collection.title}}
          span
            ng-pluralize count="collection.numberOfItems" when="{'0': '(No Items yet)', '1': '(1 Item)', 'other': '({} Items)' }"
        p {{collection.description | characters:220}}
      button.collection-button.upload-item-to-collection ng-click="uploadItemToCollection(collection.id)"
        i.icon-upload &nbsp
        | Add an Item to {{collection.title}}
      .recent-items
        .labels ng-hide="collection.numberOfAudioFiles == 0"
          .col-xs-4 File
          .col-xs-4 Item
          .col-xs-4 Status
        ul.items-list
          li ng-repeat="file in collection.recentFiles"
            .col-xs-4 ng-class-odd=" 'odd-file' " {{file.fileName}}
            .col-xs-4 ng-class-odd=" 'odd-file' " {{file.itemName}}
            .col-xs-4 ng-class-odd=" 'odd-file' " {{file.fileStatus}}
        li
          a ng-show="collection.numberOfAudioFiles > 5" ng-href="/collections/{{collection.id}}" more...

{'fraction_non_alphanumeric': 0.14790913784202375, 'fraction_numerical': 0.006969540526587507, 'mean_word_length': 2.7804878048780486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '813532', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1152, 'n_words': 240}