<commit_before><h1>Details of {{serial}}</h1>
<table class='table' ng-hide="error">
  <tr><th>Serial number:</th><td>{{part.serial}}</td></tr>
  <tr><th>Model:</th><td>{{part.model}}</td></tr>
  <tr><th>Owner:</th><td>{{part.owner}}</td></tr>
  <tr><th>Status:</th><td>{{part.status}}</td></tr>
  <tr><th>Note:</th><td>{{part.part_comment}}</td></tr>
  <tr ng-show="part.status=='out'">
    <th>Customer:</th><td>{{part.customer_name}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Company:</th><td>{{part.company}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Loan out date:</th><td class="part.overduedays>0?'danger':'warning'">
      {{part.loandate}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Duback date:</th><td>{{part.duebackdate}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Overdue (days):</th><td>{{part.overduedays}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Handled by:</th><td>{{part.realname}}</td>
  </tr>
</table>
<div class='alert alert-danger' ng-show="error">{{error.info}}</div>

<div ng-show="part.status=='out'">
  <h1>Actions</h1>
  <button class="btn btn-success" ng-click="checkin()">Check this item back in</button>
</div>

<div ng-show="part.status=='in'">
  <h1>Actions</h1>
  <form>
    <table>
      <tr><td>Customer name</td><td><input class="form-control" ng-model="customer_name" placeholder="Customer name"></td></tr>
      <tr><td>Company</td><td><input class="form-control"  ng-model="company" placeholder="Company"></td></tr>
      <tr><td>Due back in</td><td>
	<div class="input-group">
	  <input class="form-control"  ng-model="duebackin">
	  <span class="input-group-addon">days</span>
	</div>
      </td></tr>
      <tr><td>Comment</td><td><textarea class="form-control"  rows="5" ng-model="comment"></textarea>
      </td></tr>
      <tr><td> </td><td><input type="submit" 
	   class="btn btn-danger" value="Check this item out" ng-click="checkout()" />
      </td></tr>

    </table>
  </form>
</div
<commit_msg>small fix in detail display;<commit_after><h1>Details of {{serial}}</h1>
<table class='table' ng-hide="error">
  <tr><th>Serial number:</th><td>{{part.serial}}</td></tr>
  <tr><th>Model:</th><td>{{part.model}}</td></tr>
  <tr><th>Owner:</th><td>{{part.owner}}</td></tr>
  <tr><th>Status:</th><td>{{part.status}}</td></tr>
  <tr><th>Note:</th><td>{{part.part_comment}}</td></tr>
  <tr ng-show="part.status=='out'">
    <th>Customer:</th><td>{{part.customer_name}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Company:</th><td>{{part.company}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Loan out date:</th><td class="part.overduedays>0?'danger':'warning'">
      {{part.loandate}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Duback date:</th><td>{{part.duebackdate}}</td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Overdue</th><td>{{part.overduedays}} day<span ng-show="part.overduedays>0">s</span></td>
  </tr>
  <tr ng-show="part.status=='out'">
    <th>Handled by:</th><td>{{part.realname}}</td>
  </tr>
</table>
<div class='alert alert-danger' ng-show="error">{{error.info}}</div>

<div ng-show="part.status=='out'" style="padding-bottom: 50px">
  <h1>Actions</h1>
  <div class="row">
    <div class="col-sm-4">
      <button class="btn btn-lg btn-block btn-success" ng-click="checkin()">Check this item back in</button>
    </div>
  </div>
</div>

<div ng-show="part.status=='in'" style="padding-bottom: 50px">
  <h1>Actions</h1>
  <form>
    <table>
      <tr><td>Customer name</td><td><input class="form-control" ng-model="customer_name" placeholder="Customer name"></td></tr>
      <tr><td>Company</td><td><input class="form-control"  ng-model="company" placeholder="Company"></td></tr>
      <tr><td>Due back in</td><td>
	<div class="input-group">
	  <input class="form-control"  ng-model="duebackin">
	  <span class="input-group-addon">days</span>
	</div>
      </td></tr>
      <tr><td>Comment</td><td><textarea class="form-control"  rows="5" ng-model="comment"></textarea>
      </td></tr>
      <tr><td> </td><td><input type="submit" 
	   class="btn btn-lg btn-block btn-danger" value="Check this item out" ng-click="checkout()" />
      </td></tr>

    </table>
  </form>
</div

{'fraction_non_alphanumeric': 0.27588635830007047, 'fraction_numerical': 0.005165531814980042, 'mean_word_length': 4.468549422336329, 'pattern_counts': {'":': 0, '<': 261, '<?xml version=': 0, '>': 262, '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': '285035', 'n_tokens_mistral': 1712, 'n_tokens_neox': 1601, 'n_words': 231}