<commit_before><div class="row tasks-wrapper">
  <div class="text-center" ng-if="viewState.loading">
    <h3 us-spinner="{radius:30, width:8, length: 16}"></h3>
  </div>
  <div class="col-md-12" ng-if="viewState.loadError">
    <h4 class="text-center">There was an error loading tasks. Please try again later.</h4>
  </div>
  <div class="col-md-12 tasks" ng-if="!viewState.loading && !viewState.loadError">
    <div class="row tasks-header">
      <div class="col-md-3">
        <h3>Task History</h3>
      </div>
      <div class="col-md-5">
        <div class="btn-group">
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="''">
            <a href>All</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'NOT_STARTED'">
            <a href><status-glyph item="{hasNotStarted: true}"></status-glyph> Not Started</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'RUNNING'">
            <a href><status-glyph item="{isRunning: true}"></status-glyph> Running</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'SUCCEEDED'">
            <a href><status-glyph item="{isCompleted: true}"></status-glyph> Succeeded</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'TERMINAL'">
            <a href><status-glyph item="{isFailed: true}"></status-glyph> Terminal</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'CANCELED'">
            <a href><status-glyph item="{isCanceled: true}"></status-glyph> Canceled</a>
          </label>
        </div>
      </div>
      <div class="col-md-1 text-right" style="padding-right: 0">
        <a class="btn btn-link" ng-click="tasks.clearNameFilter()" style="
        padding-right: 5px" ng-if="viewState.nameFilter.length > 0">
          <span class="glyphicon glyphicon-remove" uib-tooltip="clear search filter"></span>
        </a>
      </div>
      <div class="col-md-3 text-right" style="padding-left: 0">
        <div class="form-group has-feedback">
          <label class="sr-only" for="task-filter">Filter tasks by name, user, or task ID</label>
          <input type="search"
                 id="task-filter"
                 class="form-control input-sm"
                 placeholder="Filter tasks by name, user, or task ID"
                 ng-change="tasks.nameFilterUpdated()"
                 ng-model="viewState.nameFilter">
          <span class="glyphicon glyphicon-search form-control-feedback"></span>
        </div>
      </div>

    </div>
    <div class="row tasks-content">
      <div class="col-md-10 col-md-offset-1 text-center" ng-if="!tasks.sortedTasks.length" style="margin-top: 30px">
        <h4 ng-if="!viewState.nameFilter && !viewState.taskStateFilter">We couldn't find any tasks for {{application.name}}</h4>
        <div ng-if="viewState.nameFilter  || viewState.taskStateFilter">
          <h4>
            We couldn't find any tasks matching the filters you've specified.
          </h4>
          <p style="margin-top: 20px">
            <strong>Note</strong> that Spinnaker only tracks tasks for two weeks.
          </p>
        </p>
        </div>
      </div>
      <div class="col-md-12" ng-if="tasks.sortedTasks.length">
        <table class="table table-condensed">
          <thead>
            <tr>
              <th width="36%">Task</th>
              <th width="12%">Progress</th>
              <th width="12%">Started</th>
              <th width="12%">Ended</th>
              <th width="12%">Running Time</th>
              <th>User</th>
              <th>Actions</th>
            </tr>
          </thead>
          <tbody>
            <tr class="clickable" ng-click="tasks.toggleDetails(task.id)" ng-repeat-start="task in tasks.resultPage()">
              <td>
                <div class="task-name">
                  <a href id="task-{{task.id}}"><span class="glyphicon glyphicon-chevron-{{tasks.isExpanded(task.id) ? 'down' : 'right'}}"></span></a>
                  {{task.name}}
                </div><commit_msg>(core) show task account/region if available in tasks view (#2749)<commit_after><div class="row tasks-wrapper">
  <div class="text-center" ng-if="viewState.loading">
    <h3 us-spinner="{radius:30, width:8, length: 16}"></h3>
  </div>
  <div class="col-md-12" ng-if="viewState.loadError">
    <h4 class="text-center">There was an error loading tasks. Please try again later.</h4>
  </div>
  <div class="col-md-12 tasks" ng-if="!viewState.loading && !viewState.loadError">
    <div class="row tasks-header">
      <div class="col-md-3">
        <h3>Task History</h3>
      </div>
      <div class="col-md-5">
        <div class="btn-group">
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="''">
            <a href>All</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'NOT_STARTED'">
            <a href><status-glyph item="{hasNotStarted: true}"></status-glyph> Not Started</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'RUNNING'">
            <a href><status-glyph item="{isRunning: true}"></status-glyph> Running</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'SUCCEEDED'">
            <a href><status-glyph item="{isCompleted: true}"></status-glyph> Succeeded</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'TERMINAL'">
            <a href><status-glyph item="{isFailed: true}"></status-glyph> Terminal</a>
          </label>
          <label class="btn btn-sm btn-default" ng-model="viewState.taskStateFilter" uib-btn-radio="'CANCELED'">
            <a href><status-glyph item="{isCanceled: true}"></status-glyph> Canceled</a>
          </label>
        </div>
      </div>
      <div class="col-md-1 text-right" style="padding-right: 0">
        <a class="btn btn-link" ng-click="tasks.clearNameFilter()" style="
        padding-right: 5px" ng-if="viewState.nameFilter.length > 0">
          <span class="glyphicon glyphicon-remove" uib-tooltip="clear search filter"></span>
        </a>
      </div>
      <div class="col-md-3 text-right" style="padding-left: 0">
        <div class="form-group has-feedback">
          <label class="sr-only" for="task-filter">Filter tasks by name, user, or task ID</label>
          <input type="search"
                 id="task-filter"
                 class="form-control input-sm"
                 placeholder="Filter tasks by name, user, or task ID"
                 ng-change="tasks.nameFilterUpdated()"
                 ng-model="viewState.nameFilter">
          <span class="glyphicon glyphicon-search form-control-feedback"></span>
        </div>
      </div>

    </div>
    <div class="row tasks-content">
      <div class="col-md-10 col-md-offset-1 text-center" ng-if="!tasks.sortedTasks.length" style="margin-top: 30px">
        <h4 ng-if="!viewState.nameFilter && !viewState.taskStateFilter">We couldn't find any tasks for {{application.name}}</h4>
        <div ng-if="viewState.nameFilter  || viewState.taskStateFilter">
          <h4>
            We couldn't find any tasks matching the filters you've specified.
          </h4>
          <p style="margin-top: 20px">
            <strong>Note</strong> that Spinnaker only tracks tasks for two weeks.
          </p>
        </p>
        </div>
      </div>
      <div class="col-md-12" ng-if="tasks.sortedTasks.length">
        <table class="table table-condensed">
          <thead>
            <tr>
              <th width="36%">Task</th>
              <th width="12%">Progress</th>
              <th width="12%">Started</th>
              <th width="12%">Ended</th>
              <th width="12%">Running Time</th>
              <th>User</th>
              <th>Actions</th>
            </tr>
          </thead>
          <tbody>
            <tr class="clickable" ng-click="tasks.toggleDetails(task.id)" ng-repeat-start="task in tasks.resultPage()">
              <td>
                <div class="task-name">
                  <a href id="task-{{task.id}}"><span class="glyphicon glyphicon-chevron-{{tasks.isExpanded(task.id) ? 'down' : 'right'}}"></span></a>
                  {{task.name}}
                  <account-tag account="task.getValueFor('credentials')" pad="both"></account-tag>
                  <span ng-if="task.getValueFor('region')">({{task.getValueFor('region')}})</span>
                  <span ng-if="!task.getValueFor('region') && task.getValueFor('regions')">({{task.getValueFor('regions').join(', ')}})</span>
                </div>
{'fraction_non_alphanumeric': 0.1748174374861695, 'fraction_numerical': 0.010621818986501438, 'mean_word_length': 2.3689899366380915, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 235, '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': '4427277', 'n_tokens_mistral': 2933, 'n_tokens_neox': 2787, 'n_words': 557}