<commit_before>import React from 'react';

import InformationIcon from 'interface/icons/Information';
import { formatNumber, formatPercentage, formatThousands } from 'common/format';
import Tooltip, { TooltipElement } from 'common/Tooltip';
import colorForPerformance from 'common/colorForPerformance';
import { NumberThreshold, Threshold, ThresholdStyle } from 'parser/core/Thresholds';
import performanceForThresholds from './helpers/performanceForThresholds';
import { RuleContext } from './Rule';


interface Props {
  name: React.ReactNode,
  thresholds: Threshold<any>,
  tooltip?: React.ReactNode,
  valueTooltip?: React.ReactNode,
  setPerformance: (performance: number) => void,
  prefix?: React.ReactNode,
  suffix?: React.ReactNode,
}
class Requirement extends React.PureComponent<Props> {

  constructor(props: Props) {<commit_msg>Update Requirements to new threshold def location<commit_after>import React from 'react';

import InformationIcon from 'interface/icons/Information';
import { formatNumber, formatPercentage, formatThousands } from 'common/format';
import Tooltip, { TooltipElement } from 'common/Tooltip';
import colorForPerformance from 'common/colorForPerformance';
import { BoolThreshold, NumberThreshold, Threshold, ThresholdStyle } from 'parser/core/ParseResults';
import performanceForThresholds from './helpers/performanceForThresholds';
import { RuleContext } from './Rule';


export type RequirementThresholds = NumberThreshold | BoolThreshold;

interface Props {
  name: React.ReactNode,
  thresholds: RequirementThresholds,
  tooltip?: React.ReactNode,
  valueTooltip?: React.ReactNode,
  setPerformance: (performance: number) => void,
  prefix?: React.ReactNode,
  suffix?: React.ReactNode,
}
class Requirement extends React.PureComponent<Props> {

  constructor(props: Props) {
{'fraction_non_alphanumeric': 0.10242290748898679, 'fraction_numerical': 0.0, 'mean_word_length': 6.6344537815126055, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '3434175', 'n_tokens_mistral': 504, 'n_tokens_neox': 489, 'n_words': 134}