<commit_before><!-- Form for adding/editing resources -->
<div class="add_resource">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()"><span>&times;</span></button>
    <h4>{{action}} resurs</h4>
  </div>
  <div class="modal-body">
    <form role="form">
      <fieldset>
        <div class="form-group">
          <label class="control-label" for="fileUpload">Ladda upp</label>
          <input type="file" id="fileUpload" onchange="angular.element(this).scope().fileUploadChange(this)" />
          <div>{{progress}}</div>
          <div ng-switch on="resource.type">
            <div ng-switch-when="image">
              <div ng-switch on="imagefound">
                <div ng-switch-when="true">
                  <img ng-src="{{apiBase}}image/220x220/{{resource.source.id}}.{{resource.source.extension}}"/>
                </div>
              </div>
            </div>
            <div ng-switch-when="sound">
              <button class="btn btn-default btn-sm" ng-click="toggleSound(resource)">
                <span class="glyphicon glyphicon-{{playMsg}}"></span>
              </button>
            </div>
          </div>
        </div>
        <div class="form-group">
          <label for="name">Namn</label>
          <input ng-model="resource.name" type="text" class="form-control" id="name" placeholder="Resursens namn">
        </div>
        <div class="form-group">
          <label>Typ</label>
          <p class="sp_output">{{resource.type}}</p>
        </div>
        <div class="form-group">
          <label for="description">Beskrivning</label>
          <input ng-model="resource.description" type="text" class="form-control" id="description" placeholder="Beskrivning eller kommentar">
        </div>
        <div class="form-group">
          <label for="tags">Taggar</label>
          <input ng-model="resource.tags" type="text" class="form-control" id="tags" placeholder="Till exempel: barn, lågmält, fnissigt">
        </div>
        <div class="form-group">
          <label for="restrict">Dela med</label>
          <select ng-model="formChoice.restrict" ng-options="option for option in restrictOptions"></select>
        </div><commit_msg>temporarily hide sound preview button<commit_after><!-- Form for adding/editing resources -->
<div class="add_resource">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()"><span>&times;</span></button>
    <h4>{{action}} resurs</h4>
  </div>
  <div class="modal-body">
    <form role="form">
      <fieldset>
        <div class="form-group">
          <label class="control-label" for="fileUpload">Ladda upp</label>
          <input type="file" id="fileUpload" onchange="angular.element(this).scope().fileUploadChange(this)" />
          <div>{{progress}}</div>
          <div ng-switch on="resource.type">
            <div ng-switch-when="image">
              <div ng-switch on="imagefound">
                <div ng-switch-when="true">
                  <img ng-src="{{apiBase}}image/220x220/{{resource.source.id}}.{{resource.source.extension}}"/>
                </div>
              </div>
            </div>
            <div ng-switch-when="sound">
              <!-- temporarily disabled -->
              <!--button class="btn btn-default btn-sm" ng-click="toggleSound(resource)">
                <span class="glyphicon glyphicon-{{playMsg}}"></span>
              </button-->
            </div>
          </div>
        </div>
        <div class="form-group">
          <label for="name">Namn</label>
          <input ng-model="resource.name" type="text" class="form-control" id="name" placeholder="Resursens namn">
        </div>
        <div class="form-group">
          <label>Typ</label>
          <p class="sp_output">{{resource.type}}</p>
        </div>
        <div class="form-group">
          <label for="description">Beskrivning</label>
          <input ng-model="resource.description" type="text" class="form-control" id="description" placeholder="Beskrivning eller kommentar">
        </div>
        <div class="form-group">
          <label for="tags">Taggar</label>
          <input ng-model="resource.tags" type="text" class="form-control" id="tags" placeholder="Till exempel: barn, lågmält, fnissigt">
        </div>
        <div class="form-group">
          <label for="restrict">Dela med</label>
          <select ng-model="formChoice.restrict" ng-options="option for option in restrictOptions"></select>
        </div>
{'fraction_non_alphanumeric': 0.17959546565903534, 'fraction_numerical': 0.003556345854634363, 'mean_word_length': 2.427265803503427, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 0, '>': 128, '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': '2349513', 'n_tokens_mistral': 1340, 'n_tokens_neox': 1309, 'n_words': 245}