<commit_before>import * as React from 'react';
import Select from 'react-select';

import {
  IStageConfigProps,
  AccountService,
  YamlEditor,
  yamlDocumentsToString,
  IAccount,
  StageArtifactSelector,
  SETTINGS,
  IExpectedArtifact,
  IArtifact,
  PreRewriteStageArtifactSelector,
  StageConfigField,
} from '@spinnaker/core';

import { ManifestBasicSettings } from 'kubernetes/v2/manifest/wizard/BasicSettings';

export interface IKubernetesRunJobStageConfigState {
  credentials: IAccount[];
  rawManifest?: string;
}

export class KubernetesV2RunJobStageConfig extends React.Component<IStageConfigProps> {
  public state: IKubernetesRunJobStageConfigState = {
    credentials: [],
  };

  public outputOptions = [
    { label: 'None', value: 'none' },
    { label: 'Logs', value: 'propertyFile' },
    { label: 'Artifact', value: 'artifact' },
  ];

  public accountChanged = (account: string) => {
    this.props.updateStageField({<commit_msg>fix(kubernetes): fix runjob stage init (#7029)<commit_after>import * as React from 'react';
import Select from 'react-select';

import {
  IStageConfigProps,
  AccountService,
  YamlEditor,
  yamlDocumentsToString,
  IAccount,
  StageArtifactSelector,
  SETTINGS,
  IExpectedArtifact,
  IArtifact,
  PreRewriteStageArtifactSelector,
  StageConfigField,
} from '@spinnaker/core';

import { ManifestBasicSettings } from 'kubernetes/v2/manifest/wizard/BasicSettings';

export interface IKubernetesRunJobStageConfigState {
  credentials: IAccount[];
  rawManifest?: string;
}

export class KubernetesV2RunJobStageConfig extends React.Component<IStageConfigProps> {
  public state: IKubernetesRunJobStageConfigState = {
    credentials: [],
  };

  constructor(props: IStageConfigProps) {
    super(props);
    const { stage, application } = this.props;
    if (!stage.application) {
      stage.application = application.name;
    }
  }

  public outputOptions = [
    { label: 'None', value: 'none' },
    { label: 'Logs', value: 'propertyFile' },
    { label: 'Artifact', value: 'artifact' },
  ];

  public accountChanged = (account: string) => {
    this.props.updateStageField({
{'fraction_non_alphanumeric': 0.11251758087201125, 'fraction_numerical': 0.003750586029067042, 'mean_word_length': 4.798913043478261, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2658937', 'n_tokens_mistral': 664, 'n_tokens_neox': 647, 'n_words': 139}