<commit_before>import { Variable } from './variable';

export enum JobState {
  INVALID = 'INVALID',
  NEW = 'NEW',
  WAITING = 'WAITING',
  RUNNING = 'RUNNING',
  COMPLETED = 'COMPLETED',
  FAILED = 'FAILED',
  STOPPED = 'STOPPED',
}

export enum JobType {
  UNSPECIFIED = 'UNSPECIFIED',
  RAW_DATA = 'RAW_DATA',
  DATA_JOIN = 'DATA_JOIN',
  PSI_DATA_JOIN = 'PSI_DATA_JOIN',
  NN_MODEL_TRANINING = 'NN_MODEL_TRANINING',
  TREE_MODEL_TRAINING = 'TREE_MODEL_TRAINING',
  NN_MODEL_EVALUATION = 'NN_MODEL_EVALUATION',
  TREE_MODEL_EVALUATION = 'TREE_MODEL_EVALUATION',
}

export interface JobDependency {
  source: string;
}

// Job definition
export interface Job {
  name: string;
  job_type: JobType;
  is_federated: boolean;
  is_manual?: boolean;
  variables: Variable[];
  dependencies: JobDependency[];
  yaml_template?: string;
}

export type JobDefinitionForm = Omit<Job, 'dependencies'>;

export enum PodState {
  RUNNING = 'Running',
  COMPLETED = 'Succeeded',
  FAILED = 'Failed',
  PENDING = 'Pending',
  UNKNOWN = 'Unknown',
  FL_SUCCEED = 'Flapp_succeeded', // completed and has freed resources
  FL_FAILED = 'Flapp_failed', // failed and freed has free resources
}

export interface Pod {
  name: string;
  status: PodState;
  pod_type: string;
  message?: string;
}

export enum JobReuseFlag {
  NEW = 'NEW',
  REUSE = 'REUSE',
}

export interface JobExecutionDetalis {
  id: number;
  name: string;
  state: JobState;
  job_type: JobType;
  workflow_id: number;
  project_id: number;<commit_msg>[WebConsoleV2] Fix Pod status value to lower case (#694)<commit_after>import { Variable } from './variable';

export enum JobState {
  INVALID = 'INVALID',
  NEW = 'NEW',
  WAITING = 'WAITING',
  RUNNING = 'RUNNING',
  COMPLETED = 'COMPLETED',
  FAILED = 'FAILED',
  STOPPED = 'STOPPED',
}

export enum JobType {
  UNSPECIFIED = 'UNSPECIFIED',
  RAW_DATA = 'RAW_DATA',
  DATA_JOIN = 'DATA_JOIN',
  PSI_DATA_JOIN = 'PSI_DATA_JOIN',
  NN_MODEL_TRANINING = 'NN_MODEL_TRANINING',
  TREE_MODEL_TRAINING = 'TREE_MODEL_TRAINING',
  NN_MODEL_EVALUATION = 'NN_MODEL_EVALUATION',
  TREE_MODEL_EVALUATION = 'TREE_MODEL_EVALUATION',
}

export interface JobDependency {
  source: string;
}

// Job definition
export interface Job {
  name: string;
  job_type: JobType;
  is_federated: boolean;
  is_manual?: boolean;
  variables: Variable[];
  dependencies: JobDependency[];
  yaml_template?: string;
}

export type JobDefinitionForm = Omit<Job, 'dependencies'>;

export enum PodState {
  RUNNING = 'running',
  COMPLETED = 'succeeded',
  FAILED = 'failed',
  PENDING = 'pending',
  UNKNOWN = 'Unknown',
  FL_SUCCEED = 'Flapp_succeeded', // completed and has freed resources
  FL_FAILED = 'Flapp_failed', // failed and freed has free resources
}

export interface Pod {
  name: string;
  status: PodState;
  pod_type: string;
  message?: string;
}

export enum JobReuseFlag {
  NEW = 'NEW',
  REUSE = 'REUSE',
}

export interface JobExecutionDetalis {
  id: number;
  name: string;
  state: JobState;
  job_type: JobType;
  workflow_id: number;
  project_id: number;
{'fraction_non_alphanumeric': 0.11720535422788116, 'fraction_numerical': 0.001305909239307868, 'mean_word_length': 4.481216457960644, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5887723', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1130, 'n_words': 267}