<commit_before>import palette from 'google-material-color'

import * as common from './commonColor'

export const colorNameArr = Object.keys(palette.palette).filter(name => ['Black', 'White'].includes(name) === false)

const dayColor = {
  backgroundColor: '#fff',
  brighterLevelOne: '#f8f8f8',
  standardTextColor: '#757575',
  titleTextColor: '#202020'
}

const nightColor = {
  backgroundColor: '#212121',
  brighterLevelOne: '#424242',
  standardTextColor: '#e0e0e0',
  titleTextColor: '#fff',
}

const prevGetColor = palette.get.bind(palette)
const getColor = (...args) => {
  const value = prevGetColor(...args)
  if (value) return value
  const safe = prevGetColor(args[0], '500')
  return safe
}
const exports = {}

const getAccentColorName = name => {
  const index = colorNameArr.indexOf(name)
  let targetIndex = index - 5
  if (targetIndex < 0) targetIndex += colorNameArr.length
  return colorNameArr[targetIndex]
}

for (const name of colorNameArr) {
  const finalName = name[0].toLowerCase() + name.replace(' ', '').slice(1)
  exports[finalName] = {
    ...dayColor,
    ...common,
    deepColor: getColor(name, 700),
    standardColor: getColor(name, 500),
    tintColor: getColor(name, 100),
    secondaryColorBackup: getColor(name, 'A200'),
  }

  exports[`${finalName}Night`] = {
    ...nightColor,
    ...common,
    deepColor: getColor(name, 900),
    standardColor: getColor(name, 700),
    tintColor: getColor(name, 300),
    secondaryColorBackup: getColor(name, 'A400'),
  }
  // console.log(getColor(getAccentColorName(name), 'A200'), getColor(getAccentColorName(name), 'A400'))
}

Object.assign(exports, common)
export default exports
export * from './commonColor'
export const getAccentColorFromName = (name, isNight) => exports[`${name}${isNight ? 'Night' : ''}`].secondaryColorBackup<commit_msg>强调色饱和度恢复至正常值<commit_after>import palette from 'google-material-color'

import * as common from './commonColor'

export const colorNameArr = Object.keys(palette.palette).filter(name => ['Black', 'White'].includes(name) === false)

const dayColor = {
  backgroundColor: '#fff',
  brighterLevelOne: '#f8f8f8',
  standardTextColor: '#757575',
  titleTextColor: '#202020'
}

const nightColor = {
  backgroundColor: '#212121',
  brighterLevelOne: '#424242',
  standardTextColor: '#e0e0e0',
  titleTextColor: '#fff',
}

const prevGetColor = palette.get.bind(palette)
const getColor = (...args) => {
  const value = prevGetColor(...args)
  if (value) return value
  const safe = prevGetColor(args[0], '500')
  return safe
}
const exports = {}

const getAccentColorName = name => {
  const index = colorNameArr.indexOf(name)
  let targetIndex = index - 5
  if (targetIndex < 0) targetIndex += colorNameArr.length
  return colorNameArr[targetIndex]
}

for (const name of colorNameArr) {
  const finalName = name[0].toLowerCase() + name.replace(' ', '').slice(1)
  exports[finalName] = {
    ...dayColor,
    ...common,
    deepColor: getColor(name, 700),
    standardColor: getColor(name, 500),
    tintColor: getColor(name, 100),
    secondaryColorBackup: getColor(name, '500'),
  }

  exports[`${finalName}Night`] = {
    ...nightColor,
    ...common,
    deepColor: getColor(name, 900),
    standardColor: getColor(name, 700),
    tintColor: getColor(name, 300),
    secondaryColorBackup: getColor(name, '700'),
  }
  // console.log(getColor(getAccentColorName(name), 'A200'), getColor(getAccentColorName(name), 'A400'))
}

Object.assign(exports, common)
export default exports
export * from './commonColor'
export const getAccentColorFromName = (name, isNight) => exports[`${name}${isNight ? 'Night' : ''}`].secondaryColorBackup
{'fraction_non_alphanumeric': 0.1546476556073485, 'fraction_numerical': 0.03729092404716205, 'mean_word_length': 4.691107644305772, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2623585', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1218, 'n_words': 267}