<commit_before>import { LocaleName } from '@root/common/i18n'
import { FolderModeType } from './data.d'

export type WriteModeType = null | 'overwrite' | 'append'
export type ThemeType = 'light' | 'dark' | 'system'
export type ProtocolType = 'http' | 'https'
export type DefaultLocaleType = LocaleName | undefined

const configs = {
  // UI
  left_panel_show: true,
  left_panel_width: 270,
  use_system_window_frame: false,

  // preferences
  write_mode: null as WriteModeType,
  history_limit: 50,
  locale: undefined as DefaultLocaleType,
  theme: 'light' as ThemeType,
  choice_mode: 2 as FolderModeType,
  show_title_on_tray: false,
  hide_at_launch: false,
  send_usage_data: false,
  cmd_after_hosts_apply: '',
  remove_duplicate_records: false,
  hide_dock_icon: false,
  use_proxy: false,
  proxy_protocol: 'http' as ProtocolType,
  proxy_host: '',
  proxy_port: 0,
  http_api_on: false,
  http_api_only_local: true,
  tray_mini_window: true,
  multi_chose_folder_switch_all: false,

  // other
  env: 'PROD' as 'PROD' | 'DEV',
}

export type ConfigsType = typeof configs

export default configs<commit_msg>Set the default value of `write_mode` in the preferences to 'append'. #656<commit_after>import { LocaleName } from '@root/common/i18n'
import { FolderModeType } from './data.d'

export type WriteModeType = null | 'overwrite' | 'append'
export type ThemeType = 'light' | 'dark' | 'system'
export type ProtocolType = 'http' | 'https'
export type DefaultLocaleType = LocaleName | undefined

const configs = {
  // UI
  left_panel_show: true,
  left_panel_width: 270,
  use_system_window_frame: false,

  // preferences
  write_mode: 'append' as WriteModeType,
  history_limit: 50,
  locale: undefined as DefaultLocaleType,
  theme: 'light' as ThemeType,
  choice_mode: 2 as FolderModeType,
  show_title_on_tray: false,
  hide_at_launch: false,
  send_usage_data: false,
  cmd_after_hosts_apply: '',
  remove_duplicate_records: false,
  hide_dock_icon: false,
  use_proxy: false,
  proxy_protocol: 'http' as ProtocolType,
  proxy_host: '',
  proxy_port: 0,
  http_api_on: false,
  http_api_only_local: true,
  tray_mini_window: true,
  multi_chose_folder_switch_all: false,

  // other
  env: 'PROD' as 'PROD' | 'DEV',
}

export type ConfigsType = typeof configs

export default configs
{'fraction_non_alphanumeric': 0.10091344062635929, 'fraction_numerical': 0.009134406263592866, 'mean_word_length': 4.793450881612091, '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': '6861860', 'n_tokens_mistral': 825, 'n_tokens_neox': 796, 'n_words': 210}