<commit_before><!-- HEADING -->
<div class="schedule-heading row">

  <div class="col-xs-offset-1 col-xs-3">
    <h4>Schedule Name</h4>
  </div>
  <div class="col-xs-4">
    <h4>Description</h4>
  </div>
  <div class="col-xs-2">
    <h4>Last Run</h4>
  </div>
  <div class="col-xs-2">
    <h4>Status</h4>
  </div>
</div>

<div class="schedule-content">
  <div class="schedule-rows" ng-repeat="schedule in SchedulesController.schedules">
    <div class="row schedule-row"
      ng-click="schedule.isOpen = !schedule.isOpen"
      ng-class="{ 'active': schedule.isOpen }">
      <div class="col-xs-1">
        <i class="fa"
        ng-class="{'fa-chevron-down': schedule.isOpen, 'fa-chevron-right': !schedule.isOpen}"></i>
      </div>

      <div class="col-xs-3">
        <p  tooltip="{{ schedule.schedule.name }}"
            tooltip-placement="right"
            tooltip-enable="schedule.schedule.name.length > 31"
            tooltip-append-to-body="true">
          {{ schedule.schedule.name | myEllipsis: 31 }}
        </p>
      </div>

      <div class="col-xs-4">
        <p  tooltip="{{ schedule.schedule.description }}"
            tooltip-placement="right"
            tooltip-enable="schedule.schedule.description.length > 50"
            tooltip-append-to-body="true">
            {{ schedule.schedule.description | myEllipsis: 50 }}
        </p>
      </div>

      <div class="col-xs-2">
        <p ng-if="schedule.lastrun !== 'NA'"> {{ schedule.lastrun | amDateFormat:'MM/DD/YY h:mm:ss a'}} </p>
        <p ng-if="schedule.lastrun === 'NA'">Not Available</p>
      </div>

      <div class="col-xs-2">
        <p>{{ schedule.status }}</p>
      </div>
    </div>

    <div class="row schedule-detail" ng-if="schedule.isOpen">
      <div class="row">
        <div class="col-xs-offset-2 col-xs-2">
          <p>Trigger</p>
        </div>
        <div class="col-xs-6">
          <p>{{ schedule.scheduleType }}</p>
        </div>
        <div class="col-xs-2">
          <button class="btn btn-default"
            ng-if="schedule.status === 'SCHEDULED'"
            ng-click="SchedulesController.suspendSchedule(schedule)">
            <i class="fa fa-pause"></i>
          </button>

          <button class="btn btn-default"
            ng-if="schedule.status === 'SUSPENDED'"
            ng-click="SchedulesController.resumeSchedule(schedule)">
            <i class="fa fa-play"></i>
          </button>

          <button class="btn btn-default"
           ng-if="['SUSPENDED', 'SCHEDULED'].indexOf(schedule.status) === -1"
           disabled>
            <i class="fa fa-refresh fa-spin"></i>
          </button>
        </div>
      </div>
      <div class="row">
        <div ng-if="schedule.scheduleType === 'TIME'">
          <div class="col-xs-offset-2 col-xs-2">
            <p>Crontab</p>
          </div>

          <div class="col-xs-8">

            <table class="table table-responsive">
              <thead>
                <th class="text-center">min</th>
                <th class="text-center">hour</th>
                <th class="text-center">day/month</th>
                <th class="text-center">month</th>
                <th class="text-center">day/week</th>
              </thead>

              <tbody class="text-center">
                <tr>
                  <td>{{ schedule.time.min }}</td>
                  <td>{{ schedule.time.hour }}</td>
                  <td>{{ schedule.time.day }}</td>
                  <td>{{ schedule.time.month }}</td>
                  <td>{{ schedule.time.week }}</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>

        <div ng-if="schedule.scheduleType === 'STREAM'">
          <div class="col-xs-offset-2 col-xs-2">
            <p>Data Trigger</p>
          </div>

          <div class="col-xs-8">
            <p>{{ schedule.schedule.dataTriggerMB }} MB</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<commit_msg>fix workflow schedule when there is no schedule<commit_after><div ng-if="SchedulesController.schedules.length > 0">
  <!-- HEADING -->
  <div class="schedule-heading row">

    <div class="col-xs-offset-1 col-xs-3">
      <h4>Schedule Name</h4>
    </div>
    <div class="col-xs-4">
      <h4>Description</h4>
    </div>
    <div class="col-xs-2">
      <h4>Last Run</h4>
    </div>
    <div class="col-xs-2">
      <h4>Status</h4>
    </div>
  </div>

  <div class="schedule-content">
    <div class="schedule-rows" ng-repeat="schedule in SchedulesController.schedules">
      <div class="row schedule-row"
        ng-click="schedule.isOpen = !schedule.isOpen"
        ng-class="{ 'active': schedule.isOpen }">
        <div class="col-xs-1">
          <i class="fa"
          ng-class="{'fa-chevron-down': schedule.isOpen, 'fa-chevron-right': !schedule.isOpen}"></i>
        </div>

        <div class="col-xs-3">
          <p  tooltip="{{ schedule.schedule.name }}"
              tooltip-placement="right"
              tooltip-enable="schedule.schedule.name.length > 31"
              tooltip-append-to-body="true">
            {{ schedule.schedule.name | myEllipsis: 31 }}
          </p>
        </div>

        <div class="col-xs-4">
          <p  tooltip="{{ schedule.schedule.description }}"
              tooltip-placement="right"
              tooltip-enable="schedule.schedule.description.length > 50"
              tooltip-append-to-body="true">
              {{ schedule.schedule.description | myEllipsis: 50 }}
          </p>
        </div>

        <div class="col-xs-2">
          <p ng-if="schedule.lastrun !== 'NA'"> {{ schedule.lastrun | amDateFormat:'MM/DD/YY h:mm:ss a'}} </p>
          <p ng-if="schedule.lastrun === 'NA'">Not Available</p>
        </div>

        <div class="col-xs-2">
          <p>{{ schedule.status }}</p>
        </div>
      </div>

      <div class="row schedule-detail" ng-if="schedule.isOpen">
        <div class="row">
          <div class="col-xs-offset-2 col-xs-2">
            <p>Trigger</p>
          </div>
          <div class="col-xs-6">
            <p>{{ schedule.scheduleType }}</p>
          </div>
          <div class="col-xs-2">
            <button class="btn btn-default"
              ng-if="schedule.status === 'SCHEDULED'"
              ng-click="SchedulesController.suspendSchedule(schedule)">
              <i class="fa fa-pause"></i>
            </button>

            <button class="btn btn-default"
              ng-if="schedule.status === 'SUSPENDED'"
              ng-click="SchedulesController.resumeSchedule(schedule)">
              <i class="fa fa-play"></i>
            </button>

            <button class="btn btn-default"
             ng-if="['SUSPENDED', 'SCHEDULED'].indexOf(schedule.status) === -1"
             disabled>
              <i class="fa fa-refresh fa-spin"></i>
            </button>
          </div>
        </div>
        <div class="row">
          <div ng-if="schedule.scheduleType === 'TIME'">
            <div class="col-xs-offset-2 col-xs-2">
              <p>Crontab</p>
            </div>

            <div class="col-xs-8">

              <table class="table table-responsive">
                <thead>
                  <th class="text-center">min</th>
                  <th class="text-center">hour</th>
                  <th class="text-center">day/month</th>
                  <th class="text-center">month</th>
                  <th class="text-center">day/week</th>
                </thead>

                <tbody class="text-center">
                  <tr>
                    <td>{{ schedule.time.min }}</td>
                    <td>{{ schedule.time.hour }}</td>
                    <td>{{ schedule.time.day }}</td>
                    <td>{{ schedule.time.month }}</td>
                    <td>{{ schedule.time.week }}</td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>

          <div ng-if="schedule.scheduleType === 'STREAM'">
            <div class="col-xs-offset-2 col-xs-2">
              <p>Data Trigger</p>
            </div>

            <div class="col-xs-8">
              <p>{{ schedule.schedule.dataTriggerMB }} MB</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

</div>

<div ng-if="SchedulesController.schedules.length === 0" class="well well-lg text-center">
  <h3>No schedule for this workflow</h3>
</div>

{'fraction_non_alphanumeric': 0.18389166072701355, 'fraction_numerical': 0.009265858873841768, 'mean_word_length': 1.6684627575277338, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 256, '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': '7658258', 'n_tokens_mistral': 2751, 'n_tokens_neox': 2599, 'n_words': 466}