<commit_before>import React from 'react';

import { IVerification } from 'core/domain';

import { Button } from '../../Button';
import { DurationRender } from '../../RelativeTimestamp';
import { IStatusCardProps, StatusCard } from '../../StatusCard';

const statusToText: { [key in IVerification['status']]: string } = {
  NOT_EVALUATED: 'Verification has not started yet',
  PENDING: `Verification in progress`,
  PASS: `Verification passed`,
  FAIL: `Verification failed`,
  OVERRIDE_FAIL: `TBD`,
  OVERRIDE_PASS: `TBD`,
};

const FINISHED_STATES: Array<IVerification['status']> = ['PASS', 'FAIL', 'OVERRIDE_FAIL', 'OVERRIDE_PASS'];

const statusToAppearance: { [key in IVerification['status']]?: IStatusCardProps['appearance'] } = {
  PASS: 'success',
  FAIL: 'error',
};

interface VerificationCardProps {
  verification: IVerification;
  logClick: (action: string) => void;<commit_msg>feat(md): change pending verification icon color to blue (#9036)<commit_after>import React from 'react';

import { IVerification } from 'core/domain';

import { Button } from '../../Button';
import { DurationRender } from '../../RelativeTimestamp';
import { IStatusCardProps, StatusCard } from '../../StatusCard';

const statusToText: { [key in IVerification['status']]: string } = {
  NOT_EVALUATED: 'Verification has not started yet',
  PENDING: `Verification in progress`,
  PASS: `Verification passed`,
  FAIL: `Verification failed`,
  OVERRIDE_FAIL: `Failed verification has been overridden`,
  OVERRIDE_PASS: `Verification has been overridden`,
};

const FINISHED_STATES: Array<IVerification['status']> = ['PASS', 'FAIL', 'OVERRIDE_FAIL', 'OVERRIDE_PASS'];

const statusToAppearance: { [key in IVerification['status']]?: IStatusCardProps['appearance'] } = {
  PENDING: 'progress',
  PASS: 'success',
  FAIL: 'error',
};

interface VerificationCardProps {
  verification: IVerification;
  logClick: (action: string) => void;
{'fraction_non_alphanumeric': 0.1542470036477332, 'fraction_numerical': 0.0020844189682126106, 'mean_word_length': 5.530612244897959, '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': '6893371', 'n_tokens_mistral': 607, 'n_tokens_neox': 587, 'n_words': 160}