<commit_before>import { Box, Color } from 'ink'
import React, { useContext, useEffect, useState } from 'react'
import { BACK_SYMBOL } from '../utils/helpers'
import figures = require('figures')
import { TabIndexContext } from '@prisma/ink-components'
import { Key } from 'readline'
import { RouterContext } from './Router'
import { useInitState, InitState } from './InitState'

export type LinkKind = 'back' | 'forward'

export interface Props {
  label: string
  value?: any
  description?: string
  kind?: LinkKind
  padding?: number
  tabIndex: number
  href?: string
  state?: Partial<InitState>
  onSelect?: () => void
  backSteps?: number
  backTo?: string // pop state as long as needed to go back to that state using lastIndexOf
}
<commit_msg>Fix import require in tsx files (#1313)<commit_after>import { Box, Color } from 'ink'
import React, { useContext, useEffect, useState } from 'react'
import { BACK_SYMBOL } from '../utils/helpers'
import figures from 'figures'
import { TabIndexContext } from '@prisma/ink-components'
import { Key } from 'readline'
import { RouterContext } from './Router'
import { useInitState, InitState } from './InitState'

export type LinkKind = 'back' | 'forward'

export interface Props {
  label: string
  value?: any
  description?: string
  kind?: LinkKind
  padding?: number
  tabIndex: number
  href?: string
  state?: Partial<InitState>
  onSelect?: () => void
  backSteps?: number
  backTo?: string // pop state as long as needed to go back to that state using lastIndexOf
}

{'fraction_non_alphanumeric': 0.11563731931668857, 'fraction_numerical': 0.002628120893561104, 'mean_word_length': 4.381625441696113, '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': '6432200', 'n_tokens_mistral': 451, 'n_tokens_neox': 444, 'n_words': 167}