<commit_before><ol class="breadcrumb">
  <li><a ui-sref="home">Home</a></li>
  <li><a ui-sref="adminStudy({studyName: study.study.name})">{{study.study.name}}</a></li>
  <li>{{view.view.name}}
    <span ng-show="modified" class="badge alert-danger">modified</span>
  </li>
</ol>

<div class="row">
  <div class="col-md-8">
    <p class="text-muted">
      Choose the attributes you want to be visible in this view. All the active attributes will be shown in the view. 
      Select the ones you want by dragging them from list of available attributes. You can remove them by dragging them
      back again. 
    </p>
  </div>
</div>

<div class="row">
  <div class="col-md-6">
    <h4>Available attributes</h4>
    <ul ui-sortable="attributeSortableOptions" ng-model="study.attributes" id="attributeSortable" class="admin-list-box">
      <li ng-repeat="attribute in study.attributes">{{attribute.label}} <span ng-repeat="tag in attribute.options.tags" class="label label-default">{{tag}}</span></li>
    </ul>
  </div>

  <div class="col-md-6">
    <h4>Active attributes</h4>
    <ul ui-sortable="viewSortableOptions" ng-model="view.attributes" id="viewSortable" class="admin-list-box">
      <li ng-repeat="attribute in view.attributes" ng-class="{'list-selected' : attribute == selectedAttribute}" ng-click="selectAttribute(attribute)">{{attribute.label}} <span ng-repeat="tag in attribute.options.tags" class="label label-default">{{tag}}</span></li>
    </ul>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <form class="form-horizontal" role="form" name="attributeForm">
    <div class="form-group">
      <div class="col-md-2"></div>  
      <div class="col-md-4 checkbox">
        <label ng-class="selectedAttribute ? '' : 'text-muted'">
          <input type="checkbox" name="pinned" ng-model="selectedAttribute.options.pinned" ng-disabled="! selectedAttribute">
          Pin to the left when scrolling
        </label>
      </div>

      <label class="col-md-2 control-label" for="attributeWidth">Width:</label>  
      <div class="col-md-4">
        <input id="attributeWidth" name="attributeWidth" type="text" placeholder="100%" class="form-control input-md" ng-model="selectedAttribute.options.width" ng-disabled="! selectedAttribute" ng-pattern="/\d+%/">
        <span class="error text-danger" ng-show="attributeForm.attributeWidth.$error.pattern">Please specify a percentage!</span>
      </div>
    </div>
    </form>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <hr>
    <div filter-editor model="view.viewOptions.rows" attributes="view.attributes"></div>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <hr>
    <button class="btn" ng-class="modified ? &apos;btn-danger&apos; : &apos;btn-default&apos;" ng-disabled="! modified" ng-click="save(view)">Save changes</button>
    <button class="btn btn-default" ng-disabled="! modified" ng-click="reset()">Reset</button>
  </div>
</div>
<commit_msg>Fix the display source for the filters<commit_after><ol class="breadcrumb">
  <li><a ui-sref="home">Home</a></li>
  <li><a ui-sref="adminStudy({studyName: study.study.name})">{{study.study.name}}</a></li>
  <li>{{view.view.name}}
    <span ng-show="modified" class="badge alert-danger">modified</span>
  </li>
</ol>

<div class="row">
  <div class="col-md-8">
    <p class="text-muted">
      Choose the attributes you want to be visible in this view. All the active attributes will be shown in the view. 
      Select the ones you want by dragging them from list of available attributes. You can remove them by dragging them
      back again. 
    </p>
  </div>
</div>

<div class="row">
  <div class="col-md-6">
    <h4>Available attributes</h4>
    <ul ui-sortable="attributeSortableOptions" ng-model="study.attributes" id="attributeSortable" class="admin-list-box">
      <li ng-repeat="attribute in study.attributes">{{attribute.label}} <span ng-repeat="tag in attribute.options.tags" class="label label-default">{{tag}}</span></li>
    </ul>
  </div>

  <div class="col-md-6">
    <h4>Active attributes</h4>
    <ul ui-sortable="viewSortableOptions" ng-model="view.attributes" id="viewSortable" class="admin-list-box">
      <li ng-repeat="attribute in view.attributes" ng-class="{'list-selected' : attribute == selectedAttribute}" ng-click="selectAttribute(attribute)">{{attribute.label}} <span ng-repeat="tag in attribute.options.tags" class="label label-default">{{tag}}</span></li>
    </ul>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <form class="form-horizontal" role="form" name="attributeForm">
    <div class="form-group">
      <div class="col-md-2"></div>  
      <div class="col-md-4 checkbox">
        <label ng-class="selectedAttribute ? '' : 'text-muted'">
          <input type="checkbox" name="pinned" ng-model="selectedAttribute.options.pinned" ng-disabled="! selectedAttribute">
          Pin to the left when scrolling
        </label>
      </div>

      <label class="col-md-2 control-label" for="attributeWidth">Width:</label>  
      <div class="col-md-4">
        <input id="attributeWidth" name="attributeWidth" type="text" placeholder="100%" class="form-control input-md" ng-model="selectedAttribute.options.width" ng-disabled="! selectedAttribute" ng-pattern="/\d+%/">
        <span class="error text-danger" ng-show="attributeForm.attributeWidth.$error.pattern">Please specify a percentage!</span>
      </div>
    </div>
    </form>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <hr>
    <div filter-editor model="view.view.options.rows" attributes="view.attributes"></div>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <hr>
    <button class="btn" ng-class="modified ? &apos;btn-danger&apos; : &apos;btn-default&apos;" ng-disabled="! modified" ng-click="save(view)">Save changes</button>
    <button class="btn btn-default" ng-disabled="! modified" ng-click="reset()">Reset</button>
  </div>
</div>

{'fraction_non_alphanumeric': 0.18957425410660408, 'fraction_numerical': 0.00670465973851827, 'mean_word_length': 4.048223350253807, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 163, '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': '4807814', 'n_tokens_mistral': 1978, 'n_tokens_neox': 1921, 'n_words': 424}