<commit_before><div class="row text-left">
  <div class="pull-right pl-20 pt-0 mr-10">
    <div class="text-left inline-block">
      {{new-select
        content=periods
        value=selected
        localizedLabel=true
        disabled=state.loading
      }}
    </div>
    {{#if (eq selected 'custom')}}
      <div class="text-left inline-block" style="width: 120px;"> 
        {{ember-flatpickr 
          disabled=state.loading 
          enableSeconds=true 
          enableTime=true 
          dateFormat="m/d h:m"
          date=from 
          maxDate=to 
          onChange=(action "fromDidChange") 
          onClose=(action "onTimePickerClose") 
          placeholder=(t 'metricsAction.from.label')
        }}
      </div>
      <div class="text-left inline-block" style="width: 120px;">
        {{ember-flatpickr
          disabled=state.loading
          enableSeconds=true
          dateFormat="m/d h:m"
          enableTime=true
          minDate=from
          maxDate=now
          date=to
          onChange=(action "toDidChange")
          onClose=(action "onTimePickerClose") 
          placeholder=(t 'metricsAction.to.label')
        }}
      </div>
    {{/if}}
    <button type="button" style="height: 37px;margin-top: -4px;" class="btn bg-primary" disabled={{state.loading}} {{action "refresh"}}>
      <span><i class="icon icon-refresh"></i></span>
    </button>
  </div>
  {{#if allowDetail}}
    <div class="pull-left pl-20 pt-0 mr-10">
      {{#if state.detail}}
        <div>
          <div class="btn-group no-inline-space">
            <button class="btn btn-link btn-sm bg-primary" disabled={{state.loading}} {{action "toggle" true}}>{{t 'metricsAction.detail.label'}}</button>
            <button class="btn btn-link btn-sm bg-default" disabled={{state.loading}} {{action "toggle" false}}>{{t 'metricsAction.summary.label'}}</button>
          </div>
        </div>
      {{else}}
        <div>
          <div class="btn-group no-inline-space">
            <button class="btn btn-link btn-sm bg-default" disabled={{state.loading}} {{action "toggle" true}}>{{t 'metricsAction.detail.label'}}</button>
            <button class="btn btn-link btn-sm bg-primary" disabled={{state.loading}} {{action "toggle" false}}>{{t 'metricsAction.summary.label'}}</button>
          </div>
        </div>
      {{/if}}
    </div>
  {{/if}}
</div>

<commit_msg>Fix the issue that the minute in the timepicker never update<commit_after><div class="row text-left">
  <div class="pull-right pl-20 pt-0 mr-10">
    <div class="text-left inline-block">
      {{new-select
        content=periods
        value=selected
        localizedLabel=true
        disabled=state.loading
      }}
    </div>
    {{#if (eq selected 'custom')}}
      <div class="text-left inline-block" style="width: 120px;">
        {{ember-flatpickr
          disabled=state.loading
          enableSeconds=true
          enableTime=true
          dateFormat="m/d h-i"
          date=from
          maxDate=to
          onChange=(action "fromDidChange")
          onClose=(action "onTimePickerClose")
          placeholder=(t 'metricsAction.from.label')
        }}
      </div>
      <div class="text-left inline-block" style="width: 120px;">
        {{ember-flatpickr
          disabled=state.loading
          enableSeconds=true
          dateFormat="m/d h-i"
          enableTime=true
          minDate=from
          maxDate=now
          date=to
          onChange=(action "toDidChange")
          onClose=(action "onTimePickerClose")
          placeholder=(t 'metricsAction.to.label')
        }}
      </div>
    {{/if}}
    <button type="button" style="height: 37px;margin-top: -4px;" class="btn bg-primary" disabled={{state.loading}} {{action "refresh"}}>
      <span><i class="icon icon-refresh"></i></span>
    </button>
  </div>
  {{#if allowDetail}}
    <div class="pull-left pl-20 pt-0 mr-10">
      {{#if state.detail}}
        <div>
          <div class="btn-group no-inline-space">
            <button class="btn btn-link btn-sm bg-primary" disabled={{state.loading}} {{action "toggle" true}}>{{t 'metricsAction.detail.label'}}</button>
            <button class="btn btn-link btn-sm bg-default" disabled={{state.loading}} {{action "toggle" false}}>{{t 'metricsAction.summary.label'}}</button>
          </div>
        </div>
      {{else}}
        <div>
          <div class="btn-group no-inline-space">
            <button class="btn btn-link btn-sm bg-default" disabled={{state.loading}} {{action "toggle" true}}>{{t 'metricsAction.detail.label'}}</button>
            <button class="btn btn-link btn-sm bg-primary" disabled={{state.loading}} {{action "toggle" false}}>{{t 'metricsAction.summary.label'}}</button>
          </div>
        </div>
      {{/if}}
    </div>
  {{/if}}
</div>


{'fraction_non_alphanumeric': 0.16475495307612095, 'fraction_numerical': 0.007924921793534932, 'mean_word_length': 2.346824842986741, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '5213458', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1434, 'n_words': 298}