<commit_before>import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { Execution } from '../../entities/execution';
import { Service } from '../../entities/service';
import { ApiService } from '../../services/api.service';

@Component({
  selector: 'execution-info',
  template: `
        <div *ngIf="errorMessage" class="alert alert-danger alert-dismissible fade in" role="alert">
          {{errorMessage}}
        </div>
        <div *ngIf="warningMessage" class="alert alert-warning alert-dismissible fade in" role="alert">
          {{warningMessage}}
        </div>
        
        <div *ngIf="loading" class="spinner-block">
            <div class="spinner-title">Loading...</div> <i class="spinner-icon"></i>
        </div>
        <div *ngIf="!loading && execution">
            <h1>Execution <em>{{execution.id}}</em></h1>
            <hr />
            <h3>Details</h3>
            <dl class="dl-horizontal">
              <dt>Name</dt>
              <dd>{{execution.name}}</dd>
              <dt>Application name</dt>
              <dd>{{execution.applicationName()}}</dd>
              <dt>Owner</dt>
              <dd>{{execution.owner}}</dd>
              <dt>Status</dt>
              <dd>{{execution.status}}</dd>
              <dt>Submitted</dt>
              <dd *ngIf="execution.submitted">{{execution.submitted | amFromUnix | date:'medium'}}</dd>
              <dd *ngIf="!execution.submitted">Not yet</dd>
              <dt *ngIf="execution.scheduled">Scheduled</dt>
              <dd *ngIf="execution.scheduled">{{execution.scheduled | amFromUnix | date:'medium'}}</dd>
              <dt>Started</dt>
              <dd *ngIf="execution.started">{{execution.started | amFromUnix | date:'medium'}}</dd>
              <dd *ngIf="!execution.started">Not yet</dd>
              <dt>Finished</dt>
              <dd *ngIf="execution.finished">{{execution.finished | amFromUnix | date:'medium'}}</dd>
              <dd *ngIf="!execution.finished">Not yet</dd>
            </dl>
            
            <h3>Services</h3>
            <div *ngIf="!hasServices()" class="row">
                <div class="text-danger col-md-3 col-md-offset-1">No services</div>
            </div>
            <div *ngIf="hasServices()" class="row service-list">
                <div class="col-md-6">
                    <dl *ngFor="let service of services" class="dl-horizontal">
                      <dt>Id</dt>
                      <dd>{{service.id}}</dd>
                      <dt>Name</dt>
                      <dd>{{service.name}}</dd>
                      <dt>Zoe Status</dt>
                      <dd>{{service.status | capitalize}}</dd>
                      <dt>Docker Status</dt>
                      <dd>{{service.dockerStatus | capitalize}}</dd>
                      <dt *ngIf="service.link()">Link</dt>
                      <dd *ngIf="service.link()"><a [href]="service.link().url" target="_blank">{{service.link().name}}</a></dd>
                    </dl>
                </div>
            </div>
        </div>
    `
})
export class ExecutionInfoComponent implements OnInit {<commit_msg>Update execution-info.component.ts<commit_after>import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Params } from '@angular/router';
import { Execution } from '../../entities/execution';
import { Service } from '../../entities/service';
import { ApiService } from '../../services/api.service';

@Component({
  selector: 'execution-info',
  template: `
        <div *ngIf="errorMessage" class="alert alert-danger alert-dismissible fade in" role="alert">
          {{errorMessage}}
        </div>
        <div *ngIf="warningMessage" class="alert alert-warning alert-dismissible fade in" role="alert">
          {{warningMessage}}
        </div>
        
        <div *ngIf="loading" class="spinner-block">
            <div class="spinner-title">Loading...</div> <i class="spinner-icon"></i>
        </div>
        <div *ngIf="!loading && execution">
            <h1>Execution <em>{{execution.id}}</em></h1>
            <hr />
            <h3>Details</h3>
            <dl class="dl-horizontal">
              <dt>Name</dt>
              <dd>{{execution.name}}</dd>
              <dt>Application name</dt>
              <dd>{{execution.applicationName()}}</dd>
              <dt>Owner</dt>
              <dd>{{execution.owner}}</dd>
              <dt>Status</dt>
              <dd>{{execution.status}}</dd>
              <dt>Submitted</dt>
              <dd *ngIf="execution.submitted">{{execution.submitted | amFromUnix | amDateFormat:'MMM D, YYYY, h:mm:ss a'}}</dd>
              <dd *ngIf="!execution.submitted">Not yet</dd>
              <dt *ngIf="execution.scheduled">Scheduled</dt>
              <dd *ngIf="execution.scheduled">{{execution.scheduled | amFromUnix | amDateFormat:'MMM D, YYYY, h:mm:ss a'}}</dd>
              <dt>Started</dt>
              <dd *ngIf="execution.started">{{execution.started | amFromUnix | amDateFormat:'MMM D, YYYY, h:mm:ss a'}}</dd>
              <dd *ngIf="!execution.started">Not yet</dd>
              <dt>Finished</dt>
              <dd *ngIf="execution.finished">{{execution.finished | amFromUnix | amDateFormat:'MMM D, YYYY, h:mm:ss a'}}</dd>
              <dd *ngIf="!execution.finished">Not yet</dd>
            </dl>
            
            <h3>Services</h3>
            <div *ngIf="!hasServices()" class="row">
                <div class="text-danger col-md-3 col-md-offset-1">No services</div>
            </div>
            <div *ngIf="hasServices()" class="row service-list">
                <div class="col-md-6">
                    <dl *ngFor="let service of services" class="dl-horizontal">
                      <dt>Id</dt>
                      <dd>{{service.id}}</dd>
                      <dt>Name</dt>
                      <dd>{{service.name}}</dd>
                      <dt>Zoe Status</dt>
                      <dd>{{service.status | capitalize}}</dd>
                      <dt>Docker Status</dt>
                      <dd>{{service.dockerStatus | capitalize}}</dd>
                      <dt *ngIf="service.link()">Link</dt>
                      <dd *ngIf="service.link()"><a [href]="service.link().url" target="_blank">{{service.link().name}}</a></dd>
                    </dl>
                </div>
            </div>
        </div>
    `
})
export class ExecutionInfoComponent implements OnInit {
{'fraction_non_alphanumeric': 0.18048024786986833, 'fraction_numerical': 0.0027885360185902403, 'mean_word_length': 1.8604342046964997, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 189, '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': '2770253', 'n_tokens_mistral': 1968, 'n_tokens_neox': 1843, 'n_words': 321}