<commit_before><!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<kd-resource-card object-meta="::$ctrl.pod.objectMeta" type-meta="::$ctrl.pod.typeMeta">
  <kd-resource-card-status layout="row">
    <md-icon class="material-icons kd-error" ng-if="::$ctrl.isFailed()">
      error
      <md-tooltip md-direction="right">
        [[This pod has errors.|Tooltip for failed pod card icon]]
      </md-tooltip>
    </md-icon>
    <md-icon class="material-icons" ng-if="::$ctrl.isPending()">
      timelapse
      <md-tooltip md-direction="right">
        [[This pod is in a pending state.|Tooltip for pending pod card icon]]
      </md-tooltip>
    </md-icon>
    <md-icon class="material-icons kd-success" ng-if="::$ctrl.isSuccess()">
      check_circle
    </md-icon>
  </kd-resource-card-status>
  <kd-resource-card-columns>
    <kd-resource-card-column>
      <div>
        <a ng-href="{{::$ctrl.getPodDetailHref()}}" class="kd-middle-ellipsised-link">
          <kd-middle-ellipsis display-string="{{::$ctrl.pod.objectMeta.name}}">
          </kd-middle-ellipsis>
        </a>
      </div>
    </kd-resource-card-column>
    <kd-resource-card-column ng-if="::$ctrl.areMultipleNamespacesSelected()">
      <div>
        <kd-middle-ellipsis display-string="{{::$ctrl.pod.objectMeta.namespace}}">
        </kd-middle-ellipsis>
      </div>
    </kd-resource-card-column>
    <kd-resource-card-column>
      <div>
        <kd-middle-ellipsis display-string="{{::$ctrl.getDisplayStatus()}}">
        </kd-middle-ellipsis>
      </div>
    </kd-resource-card-column>
    <kd-resource-card-column>{{::$ctrl.pod.restartCount}}</kd-resource-card-column>
    <kd-resource-card-column>
      <div ng-if="::$ctrl.pod.objectMeta.creationTimestamp">
        {{::$ctrl.pod.objectMeta.creationTimestamp | relativeTime}}
        <md-tooltip>
          {{::$ctrl.getStartedAtTooltip(pod.objectMeta.creationTimestamp)}}
        </md-tooltip>
      </div>
      <div ng-if="::!$ctrl.pod.objectMeta.creationTimestamp">-</div>
    </kd-resource-card-column>
    <kd-resource-card-column ng-if="::$ctrl.showMetrics">
      <div ng-if="::$ctrl.hasCpuUsage(pod)">
        <kd-sparkline timeseries="::$ctrl.pod.metrics.cpuUsageHistory"
                      class="kd-sparkline-cpu-series"></kd-sparkline>
        {{::(pod.metrics.cpuUsage | kdCores)}}
      </div>
      <div ng-if="::!$ctrl.hasCpuUsage(pod)">-</div>
    </kd-resource-card-column>
    <kd-resource-card-column ng-if="::$ctrl.showMetrics">
      <div ng-if="::$ctrl.hasMemoryUsage()">
        <kd-sparkline timeseries="::$ctrl.pod.metrics.memoryUsageHistory"
                      class="kd-sparkline-memory-series"></kd-sparkline>
        {{::($ctrl.pod.metrics.memoryUsage | kdMemory)}}
      </div>
      <div ng-if="::!$ctrl.hasMemoryUsage()">-</div>
    </kd-resource-card-column>
    <kd-resource-card-column class="kd-row-layout-column kd-icon-column">
      <md-button ng-if="::$ctrl.getPodLogsHref()"
                 ng-href="{{::$ctrl.getPodLogsHref()}}" target="_blank" class="md-icon-button">
        <md-icon md-font-library="material-icons">subject</md-icon>
        <md-tooltip>[[Logs|Label for logs tooltip]]</md-tooltip>
      </md-button>
      <kd-resource-card-menu>
        <kd-resource-card-delete-menu-item
                resource-kind-name="[[Pod|Name of the pod resource]]">
        </kd-resource-card-delete-menu-item>
        <kd-resource-card-edit-menu-item
                resource-kind-name="[[Pod|Name of the pod resource]]">
        </kd-resource-card-edit-menu-item>
      </kd-resource-card-menu>
    </kd-resource-card-column>
  </kd-resource-card-columns>
  <kd-resource-card-footer ng-if="::$ctrl.isFailed()">
    <div ng-repeat="warning in ::$ctrl.pod.warnings">
      <span class="kd-error">{{::warning.message}}</span>
    </div>
  </kd-resource-card-footer>
</kd-resource-card>
<commit_msg>Fix pod list cores column: we had a typo in template (#1491)<commit_after><!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<kd-resource-card object-meta="::$ctrl.pod.objectMeta" type-meta="::$ctrl.pod.typeMeta">
  <kd-resource-card-status layout="row">
    <md-icon class="material-icons kd-error" ng-if="::$ctrl.isFailed()">
      error
      <md-tooltip md-direction="right">
        [[This pod has errors.|Tooltip for failed pod card icon]]
      </md-tooltip>
    </md-icon>
    <md-icon class="material-icons" ng-if="::$ctrl.isPending()">
      timelapse
      <md-tooltip md-direction="right">
        [[This pod is in a pending state.|Tooltip for pending pod card icon]]
      </md-tooltip>
    </md-icon>
    <md-icon class="material-icons kd-success" ng-if="::$ctrl.isSuccess()">
      check_circle
    </md-icon>
  </kd-resource-card-status>
  <kd-resource-card-columns>
    <kd-resource-card-column>
      <div>
        <a ng-href="{{::$ctrl.getPodDetailHref()}}" class="kd-middle-ellipsised-link">
          <kd-middle-ellipsis display-string="{{::$ctrl.pod.objectMeta.name}}">
          </kd-middle-ellipsis>
        </a>
      </div>
    </kd-resource-card-column>
    <kd-resource-card-column ng-if="::$ctrl.areMultipleNamespacesSelected()">
      <div>
        <kd-middle-ellipsis display-string="{{::$ctrl.pod.objectMeta.namespace}}">
        </kd-middle-ellipsis>
      </div>
    </kd-resource-card-column>
    <kd-resource-card-column>
      <div>
        <kd-middle-ellipsis display-string="{{::$ctrl.getDisplayStatus()}}">
        </kd-middle-ellipsis>
      </div>
    </kd-resource-card-column>
    <kd-resource-card-column>{{::$ctrl.pod.restartCount}}</kd-resource-card-column>
    <kd-resource-card-column>
      <div ng-if="::$ctrl.pod.objectMeta.creationTimestamp">
        {{::$ctrl.pod.objectMeta.creationTimestamp | relativeTime}}
        <md-tooltip>
          {{::$ctrl.getStartedAtTooltip(pod.objectMeta.creationTimestamp)}}
        </md-tooltip>
      </div>
      <div ng-if="::!$ctrl.pod.objectMeta.creationTimestamp">-</div>
    </kd-resource-card-column>
    <kd-resource-card-column ng-if="::$ctrl.showMetrics">
      <div ng-if="::$ctrl.hasCpuUsage(pod)">
        <kd-sparkline timeseries="::$ctrl.pod.metrics.cpuUsageHistory"
                      class="kd-sparkline-cpu-series"></kd-sparkline>
        {{::($ctrl.pod.metrics.cpuUsage | kdCores)}}
      </div>
      <div ng-if="::!$ctrl.hasCpuUsage(pod)">-</div>
    </kd-resource-card-column>
    <kd-resource-card-column ng-if="::$ctrl.showMetrics">
      <div ng-if="::$ctrl.hasMemoryUsage()">
        <kd-sparkline timeseries="::$ctrl.pod.metrics.memoryUsageHistory"
                      class="kd-sparkline-memory-series"></kd-sparkline>
        {{::($ctrl.pod.metrics.memoryUsage | kdMemory)}}
      </div>
      <div ng-if="::!$ctrl.hasMemoryUsage()">-</div>
    </kd-resource-card-column>
    <kd-resource-card-column class="kd-row-layout-column kd-icon-column">
      <md-button ng-if="::$ctrl.getPodLogsHref()"
                 ng-href="{{::$ctrl.getPodLogsHref()}}" target="_blank" class="md-icon-button">
        <md-icon md-font-library="material-icons">subject</md-icon>
        <md-tooltip>[[Logs|Label for logs tooltip]]</md-tooltip>
      </md-button>
      <kd-resource-card-menu>
        <kd-resource-card-delete-menu-item
                resource-kind-name="[[Pod|Name of the pod resource]]">
        </kd-resource-card-delete-menu-item>
        <kd-resource-card-edit-menu-item
                resource-kind-name="[[Pod|Name of the pod resource]]">
        </kd-resource-card-edit-menu-item>
      </kd-resource-card-menu>
    </kd-resource-card-column>
  </kd-resource-card-columns>
  <kd-resource-card-footer ng-if="::$ctrl.isFailed()">
    <div ng-repeat="warning in ::$ctrl.pod.warnings">
      <span class="kd-error">{{::warning.message}}</span>
    </div>
  </kd-resource-card-footer>
</kd-resource-card>

{'fraction_non_alphanumeric': 0.18040365317397677, 'fraction_numerical': 0.0022550456646747096, 'mean_word_length': 2.9545251894783773, 'pattern_counts': {'":': 36, '<': 169, '<?xml version=': 0, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1771267', 'n_tokens_mistral': 2989, 'n_tokens_neox': 2959, 'n_words': 503}