<commit_before><div class="history-pane">

  <div ng-show="!state.$loaded"
       class="loader">
    <i class="animate-spin glyphicon glyphicon-refresh"></i>
    {{ 'LOADING' | translate }}
  </div>

  <div ng-hide="!state.$loaded">

    <div ng-if="!days.length">
      <div class="well">
        <i class="glyphicon glyphicon-info-sign"></i>
        {{ 'NO_HISTORY' | translate }}
      </div>
    </div>

    <div ng-if="days.length"
         class="day row"
         ng-repeat="day in days | orderBy:'-date'">

      <div class="col-xs-2">
        <div class="date-badge">
          <div>
            <span class="day">{{ day.date | camDate:'day' }}</span>
            <span class="month">{{ day.date | camDate:'monthName' }}</span>
            <span class="year">{{ day.date | date:'yyyy' }}</span>
          </div>
        </div>

      </div>

      <div class="col-xs-10">
        <div class="instant row"
             ng-repeat="event in day.events | orderBy:'-time'">
          <div class="col-xs-2 operation-meta">
            <div class="operation-time"
                 tooltip-placement="left"
                 tooltip="{{ event.time | camDate:'long' }}">{{ event.time | date:'HH:mm' }}</div>
            <div class="operation-user">{{ event.userId }}</div>
          </div>

          <div class="col-xs-10 operation-detail">
            <div class="row">
              <h4 class="col-xs-12">{{ event.type | translate }}</h4>
            </div>

            <div class="row event-body">
              <div class="line"
                   ng-repeat="subEvent in event.subEvents"
                   ng-if="event.type !== 'Comment'">
                <h5 class="col-sm-12 col-md-3 event-property">{{ subEvent.property | translate }}</h5>

                <div class="col-sm-12 col-md-9">
                  <div class="original-value"
                       ng-if="subEvent.orgValue">
                    <span ng-if="subEvent.propertyIsDate">{{ subEvent.orgValue | camDate }}</span>
                    <span ng-if="!subEvent.propertyIsDate">{{ subEvent.orgValue }}</span>
                  </div>

                  <div class="new-value">
                    <span ng-if="subEvent.propertyIsDate">{{ subEvent.newValue | camDate }}</span>
                    <span ng-if="!subEvent.propertyIsDate">{{ subEvent.newValue }}</span>
                  </div>
                </div>
              </div>
              <div class="col-xs-12"
                   ng-if="event.type === 'Comment'"
                   nl2br="event.message" />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div><commit_msg>fix(history): show a proper history<commit_after><div class="history-pane">

  <div ng-show="!state.$loaded"
       class="loader">
    <i class="animate-spin glyphicon glyphicon-refresh"></i>
    {{ 'LOADING' | translate }}
  </div>

  <div ng-hide="!state.$loaded">

    <div ng-if="!days.length">
      <div class="well">
        <i class="glyphicon glyphicon-info-sign"></i>
        {{ 'NO_HISTORY' | translate }}
      </div>
    </div>

    <div ng-if="days.length"
         class="day row"
         ng-repeat="day in days | orderBy:'-date'">

      <div class="col-xs-2">
        <div class="date-badge">
          <div>
            <span class="day">{{ day.date | camDate:'day' }}</span>
            <span class="month">{{ day.date | camDate:'monthName' }}</span>
            <span class="year">{{ day.date | date:'yyyy' }}</span>
          </div>
        </div>

      </div>

      <div class="col-xs-10">
        <div class="instant row"
             ng-repeat="event in day.events | orderBy:'-time'">
          <div class="col-xs-2 operation-meta">
            <div class="operation-time"
                 tooltip-placement="left"
                 tooltip="{{ event.time | camDate:'long' }}">{{ event.time | date:'HH:mm' }}</div>
            <div class="operation-user">{{ event.userId }}</div>
          </div>

          <div class="col-xs-10 operation-detail">
            <div class="row">
              <h4 class="col-xs-12">{{ event.type | translate }}</h4>
            </div>

            <div class="row event-body">
              <div class="line"
                   ng-repeat="subEvent in event.subEvents"
                   ng-if="event.type !== 'Comment'">
                <h5 class="col-sm-12 col-md-3 event-property">{{ subEvent.property | translate }}</h5>

                <div class="col-sm-12 col-md-9">
                  <div class="original-value"
                       ng-if="subEvent.orgValue">
                    <span ng-if="subEvent.propertyIsDate">{{ subEvent.orgValue | camDate }}</span>
                    <span ng-if="!subEvent.propertyIsDate">{{ subEvent.orgValue }}</span>
                  </div>

                  <div class="new-value" ng-if="subEvent.newValue">
                    <span ng-if="subEvent.propertyIsDate">{{ subEvent.newValue | camDate }}</span>
                    <span ng-if="!subEvent.propertyIsDate">{{ subEvent.newValue }}</span>
                  </div>
                </div>
              </div>
              <div class="col-xs-12"
                   ng-if="event.type === 'Comment'"
                   nl2br="event.message" />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.18277153558052434, 'fraction_numerical': 0.007865168539325843, 'mean_word_length': 1.6493055555555556, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 133, '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': '6964011', 'n_tokens_mistral': 1685, 'n_tokens_neox': 1596, 'n_words': 308}