<commit_before><section class="wrapper">
  <h2 mat-dialog-title>Deploy App</h2>
  <mat-dialog-content>

  <form [formGroup]="deployForm">
    <mat-form-field>
      <mat-select matInput
                  placeholder="Cluster name"
                  formControlName="clusterName">
        <div *ngFor="let cluster of (clusters$ | async)">
          <mat-option [value]="cluster.name">{{ cluster.name }}</mat-option>
        </div>
      </mat-select>
    </mat-form-field>
    <mat-form-field>
      <input matInput
             type="text"
             formControlName="name"
             placeholder="Release name">
    </mat-form-field>
    <mat-form-field>
      <input matInput
             type="text"
             formControlName="namespace"
             placeholder="Namespace">
    </mat-form-field>
    <mat-form-field>
      <input matInput
             type="text"
             formControlName="chartName"
             placeholder="Chart Name"
             [value]="(data.chartDetails$ | async).name">
    </mat-form-field>
    <mat-form-field>
      <mat-select matInput
                  formControlName="chartVersion"
                  placeholder="Version">
        <div *ngFor="let version of (data.chartDetails$ | async).versions">
          <mat-option [value]="version.version">{{ version.version }}</mat-option>
        </div>
      </mat-select>
    </mat-form-field>
    <mat-form-field>
      <input matInput
             type="text"
             formControlName="repoName"
             placeholder="Repository"
             [value]="(data.chartDetails$ | async).repo">
    </mat-form-field>
    <mat-form-field>
      <input matInput
             type="text"
             formControlName="values"
             placeholder="Values">
    </mat-form-field>
  </form>
</mat-dialog-content>
<mat-dialog-actions>
  <button class="btn-deploy"
          [disabled]="!deployForm.valid || !deployForm.controls['clusterName'].value"
          mat-button
          color="primary"
          (click)="submitForm()">CONFIRM
  </button>
  <button mat-button
          mat-dialog-close>Cancel
  </button>

  </mat-dialog-actions>

</section><commit_msg>Deploy fix (#800)<commit_after><section class="wrapper">
  <h2 mat-dialog-title>Deploy App</h2>
  <mat-dialog-content>

    <form *ngIf="(currentChart$ | async) as currentChart"
          [formGroup]="deployForm">

      <mat-form-field>
        <input matInput
               type="text"
               formControlName="chartName"
               placeholder="Chart Name"
               [value]="currentChart.metadata?.name">
      </mat-form-field>

      <mat-form-field>
        <input matInput
               type="text"
               formControlName="chartVersion"
               placeholder="Chart version"
               [value]="currentChart.metadata?.version">
      </mat-form-field>

      <mat-form-field>
        <mat-select matInput
                    placeholder="Cluster name"
                    formControlName="clusterName">
          <div *ngFor="let cluster of (clusters$ | async)">
            <mat-option [value]="cluster.name">{{ cluster.name }}</mat-option>
          </div>
        </mat-select>
      </mat-form-field>
      <mat-form-field>
        <input matInput
               type="text"
               formControlName="name"
               placeholder="Release name">
      </mat-form-field>
      <mat-form-field>
        <input matInput
               type="text"
               formControlName="namespace"
               placeholder="Namespace"
               [value]="'default'">
      </mat-form-field>
    </form>
  </mat-dialog-content>
  <mat-dialog-actions>
    <button mat-button
            mat-dialog-close>Cancel
    </button>
    <button [disabled]="!deployForm.valid || !deployForm.controls['clusterName'].value"
            mat-button
            color="primary"
            (click)="submitForm()">CONFIRM
    </button>

  </mat-dialog-actions>

</section>
{'fraction_non_alphanumeric': 0.14440524193548387, 'fraction_numerical': 0.0017641129032258064, 'mean_word_length': 1.9013157894736843, 'pattern_counts': {'":': 0, '<': 82, '<?xml version=': 0, '>': 82, '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': '1894234', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1116, 'n_words': 185}