<commit_before>export type JsonParams = Record<string, unknown>

export type BaseIntentParams = {
  type?: string
  id?: string
  template?: string
}

export type IntentParams = BaseIntentParams | [BaseIntentParams, JsonParams]

export interface Intent {
  type: string
  params?: IntentParams
}

type ShowAsAction = {
  whenCollapsed: boolean
}

export interface MenuItem {
  action?: string | ((params?: Record<string, string>) => void)
  danger?: boolean
  group?: string
  icon?: React.ComponentType<{className?: string}>
  intent?: Intent
  isDisabled?: boolean
  key?: string
  title: React.ReactNode
  params?: Record<string, string>
  showAsAction?: boolean | ShowAsAction
  url?: string
}

export interface MenuItemGroup {
  id: string
  title?: string
}<commit_msg>feat(base): support `shortcut` property on legacy menu items<commit_after>export type JsonParams = Record<string, unknown>

export type BaseIntentParams = {
  type?: string
  id?: string
  template?: string
}

export type IntentParams = BaseIntentParams | [BaseIntentParams, JsonParams]

export interface Intent {
  type: string
  params?: IntentParams
}

type ShowAsAction = {
  whenCollapsed: boolean
}

export interface MenuItem {
  action?: string | ((params?: Record<string, string>) => void)
  danger?: boolean
  group?: string
  icon?: React.ComponentType<{className?: string}>
  intent?: Intent
  isDisabled?: boolean
  key?: string
  title: React.ReactNode
  params?: Record<string, string>
  showAsAction?: boolean | ShowAsAction
  url?: string
  shortcut?: string
}

export interface MenuItemGroup {
  id: string
  title?: string
}
{'fraction_non_alphanumeric': 0.10575139146567718, 'fraction_numerical': 0.0, 'mean_word_length': 4.820143884892087, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1464123', 'n_tokens_mistral': 462, 'n_tokens_neox': 460, 'n_words': 149}