<commit_before>---
layout: default
title: Customers
permalink: /customers/
---

<script src="{{ "/js/customers.js" | prepend: site.baseurl }}"></script>

<div class="home" ng-controller="customersController">

  <h3>Customers ([[{ customers.length }]])</h3>


  <table class="table table-hover">
    <thead>
      <tr>
        <th>Id</th>
        <th>Name &nbsp;&nbsp;<input type="text" placeholder="filter" ng-model="filter"></input></th>
        <th>Email</th>
        <th>Phone Number</th>
        <th ng-show="user.email">Action</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="customer in customers | filter:filter">
        <td>[[{ customer.id }]]</td>
        <td>[[{ customer.name }]]</td>
        <td>[[{ customer.email }]]</td>
        <td>[[{ customer.phone }]]</td>
        <td ng-show="user.email" class="glyphicon glyphicon-remove" ng-click="removeCustomer(customer.id)"></td>
      </tr>
      <tr ng-show="user.email">
        <td></td>
        <td><input type="text" ng-model="newCustomerName" placeholder="add new..."></input></td>
        <td><input type="text" ng-model="newCustomerEmail" ng-show="newCustomerName" placeholder="add new..."></input></td>
        <td><input type="text" ng-model="newCustomerPhone" ng-show="newCustomerName" placeholder="add new..."></input></td>
        <td><button class="btn btn-primary" ng-click="addCustomer()" ng-show="newCustomerName && newCustomerEmail && newCustomerPhone">add</button></td>
      </tr>
    </tbody><commit_msg>fix style<commit_after>---
layout: default
title: Customers
permalink: /customers/
---

<script src="{{ "/js/customers.js" | prepend: site.baseurl }}"></script>

<div class="home" ng-controller="customersController">

  <h3>Customers ([[{ customers.length }]])</h3>


  <table class="table table-hover">
    <thead>
      <tr>
        <th>Id</th>
        <th>Name &nbsp;&nbsp;<input type="text" placeholder="filter" ng-model="filter"></input></th>
        <th>Email</th>
        <th>Phone Number</th>
        <th ng-show="user.email">Action</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="customer in customers | filter:filter">
        <td>[[{ customer.id }]]</td>
        <td>[[{ customer.name }]]</td>
        <td>[[{ customer.email }]]</td>
        <td>[[{ customer.phone }]]</td>
        <td ng-show="user.email" ng-click="removeCustomer(customer.id)">
          <div class="glyphicon glyphicon-remove" title="DELETE"></div>
        </td>
      </tr>
      <tr ng-show="user.email">
        <td></td>
        <td><input type="text" ng-model="newCustomerName" placeholder="add new..."></input></td>
        <td><input type="text" ng-model="newCustomerEmail" ng-show="newCustomerName" placeholder="add new..."></input></td>
        <td><input type="text" ng-model="newCustomerPhone" ng-show="newCustomerName" placeholder="add new..."></input></td>
        <td><button class="btn btn-primary" ng-click="addCustomer()" ng-show="newCustomerName && newCustomerEmail && newCustomerPhone">add</button></td>
      </tr>
    </tbody>
{'fraction_non_alphanumeric': 0.21747700394218134, 'fraction_numerical': 0.001314060446780552, 'mean_word_length': 3.205801104972376, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, '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': '2523317', 'n_tokens_mistral': 1008, 'n_tokens_neox': 986, 'n_words': 183}