<commit_before>/* @flow */
import invariant from 'invariant';

import { createInternalAddon } from 'core/reducers/addons';
import type { AddonType, ExternalAddonType } from 'core/types/addons';

export const ABORT_FETCH_RECOMMENDATIONS: 'ABORT_FETCH_RECOMMENDATIONS'
  = 'ABORT_FETCH_RECOMMENDATIONS';
export const FETCH_RECOMMENDATIONS: 'FETCH_RECOMMENDATIONS'
  = 'FETCH_RECOMMENDATIONS';
export const LOAD_RECOMMENDATIONS: 'LOAD_RECOMMENDATIONS'
  = 'LOAD_RECOMMENDATIONS';
export const OUTCOME_CURATED: 'curated' = 'curated';
export const OUTCOME_RECOMMENDED: 'recommended' = 'recommended';
export const OUTCOME_RECOMMENDED_FALLBACK: 'recommended_fallback' = 'recommended_fallback';

export type FallbackReasonType = 'no_results' | 'timeout';
export type OutcomeType =
  | typeof OUTCOME_CURATED<commit_msg>updating flow type for TAAR recommendation fallback reasons (#5243)<commit_after>/* @flow */
import invariant from 'invariant';

import { createInternalAddon } from 'core/reducers/addons';
import type { AddonType, ExternalAddonType } from 'core/types/addons';

export const ABORT_FETCH_RECOMMENDATIONS: 'ABORT_FETCH_RECOMMENDATIONS'
  = 'ABORT_FETCH_RECOMMENDATIONS';
export const FETCH_RECOMMENDATIONS: 'FETCH_RECOMMENDATIONS'
  = 'FETCH_RECOMMENDATIONS';
export const LOAD_RECOMMENDATIONS: 'LOAD_RECOMMENDATIONS'
  = 'LOAD_RECOMMENDATIONS';
export const OUTCOME_CURATED: 'curated' = 'curated';
export const OUTCOME_RECOMMENDED: 'recommended' = 'recommended';
export const OUTCOME_RECOMMENDED_FALLBACK: 'recommended_fallback' = 'recommended_fallback';

export type FallbackReasonType = 'no_results' | 'timeout' | 'invalid_results';
export type OutcomeType =
  | typeof OUTCOME_CURATED
{'fraction_non_alphanumeric': 0.09433962264150944, 'fraction_numerical': 0.0023584905660377358, 'mean_word_length': 8.172972972972973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5377752', 'n_tokens_mistral': 609, 'n_tokens_neox': 561, 'n_words': 120}