<commit_before><ion-header>
  <ion-navbar>
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <ion-title>{{ 'CAFETERIA.NAME' | translate }}</ion-title>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-refresher (ionRefresh)="refresh($event)">
    <ion-refresher-content></ion-refresher-content>
  </ion-refresher>

  <ion-grid>
    <ion-row>
      <ion-col col-lg-5 offset-lg-1 col-md-6 [attr.offset-md-3]="transactions.length ? null : '' " col-sm-12 col-12>
        <ion-card>
          <ion-card-header>
            {{ 'CAFETERIA.TODAYS_LUNCH' | translate }}
          </ion-card-header>
          <ion-list>
            <ion-item *ngFor="let item of menu" class="alternate-colors">
              <b>{{ item.calc_date }}:</b> {{ item.calc_menu }}
            </ion-item>
          </ion-list>
        </ion-card>

        <ion-card [hidden]="!transactions.length">
          <ion-card-header>
            {{ 'CAFETERIA.BALANCE_HISTORY' | translate }}
          </ion-card-header>
          <ion-card-content>
            <canvas #chart></canvas>
          </ion-card-content>
        </ion-card>
      </ion-col>
      <ion-col col-lg-5 col-md-6 col-sm-12 col-12 [hidden]="!transactions.length">
        <ion-card>
          <ion-card-header>
            {{ 'CAFETERIA.TRANSACTIONS' | translate }}
          </ion-card-header>
          <ion-list>
            <ion-item *ngFor="let item of transactions" class="alternate-colors">
              <ion-row [hidden]="!item.credhist_method">
                <b ion-col>
                  {{ 'CAFETERIA.CLIENT' | translate }}
                </b>
                <ion-col><commit_msg>reorganize cafeteria page and make the balance history the main content<commit_after><ion-header>
  <ion-navbar>
    <button ion-button
            menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <ion-title>{{ 'CAFETERIA.NAME' | translate }}</ion-title>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-refresher (ionRefresh)="refresh($event)">
    <ion-refresher-content></ion-refresher-content>
  </ion-refresher>

  <ion-grid>
    <ion-row [hidden]="!transactions.length">
      <ion-col col-lg-10
               offset-lg-1>
        <ion-card>
          <ion-card-header>
            {{ 'CAFETERIA.BALANCE_HISTORY' | translate }}
          </ion-card-header>
          <ion-card-content>
            <canvas #chart></canvas>
          </ion-card-content>
        </ion-card>
      </ion-col>
    </ion-row>

    <ion-row>
      <ion-col col-lg-5
               offset-lg-1
               col-md-6
               [attr.offset-md-3]="transactions.length ? null : '' "
               col-sm-12
               col-12>
        <ion-card>
          <ion-card-header>
            {{ 'CAFETERIA.TODAYS_LUNCH' | translate }}
          </ion-card-header>
          <ion-list>
            <ion-item *ngFor="let item of menu"
                      class="alternate-colors">
              <b>{{ item.calc_date }}:</b> {{ item.calc_menu }}
            </ion-item>
          </ion-list>
        </ion-card>
      </ion-col>
      <ion-col col-lg-5
               col-md-6
               col-sm-12
               col-12
               [hidden]="!transactions.length">
        <ion-card>
          <ion-card-header>
            {{ 'CAFETERIA.TRANSACTIONS' | translate }}
          </ion-card-header>
          <ion-list>
            <ion-item *ngFor="let item of transactions"
                      class="alternate-colors">
              <ion-row [hidden]="!item.credhist_method">
                <b ion-col>
                  {{ 'CAFETERIA.CLIENT' | translate }}
                </b>
                <ion-col>
{'fraction_non_alphanumeric': 0.16495402920497565, 'fraction_numerical': 0.0083829096809086, 'mean_word_length': 1.5777003484320558, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '5918011', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1209, 'n_words': 187}