<commit_before>// @flow
import React from 'react'
import FlagIconFactory from 'react-flag-icon-css'

import { pick } from './functions'
import type { CustomFlagPropsType } from '../types/flow'

import themeStyles from '../meta-flags-css'


export default ({ ...props, children }: CustomFlagPropsType): React$Element<*> => {
  const FlagIcon = FlagIconFactory(React, { useCssModules: __USE_CSS_MODULES__, themeStyles })
  const { className } = props
  const flagIconProps = pick(props, ['code', 'size', 'flip', 'rotate', 'squared', 'Component'])

  return (<span className={className}>
    <FlagIcon {...flagIconProps} />
    {children}
  </span>)
}<commit_msg>fix: create FlagIcon one time onlygit add src/js/CustomFlag.js<commit_after>// @flow
import React from 'react'
import FlagIconFactory from 'react-flag-icon-css'

import { pick } from './functions'
import type { CustomFlagPropsType } from '../types/flow'

import { styles, codes } from '../meta-flags-css'

const FlagIcon = FlagIconFactory(React, {
  useCssModules: __USE_CSS_MODULES__,
  themeStyles: styles,
  customCodes: codes,
})

export default ({ ...props, children }: CustomFlagPropsType): React$Element<*> => {
  const { className } = props
  const flagIconProps = pick(props, ['code', 'size', 'flip', 'rotate', 'squared', 'Component'])

  return (<span className={className}>
    <FlagIcon {...flagIconProps} />
    {children}
  </span>)
}
{'fraction_non_alphanumeric': 0.15838068181818182, 'fraction_numerical': 0.0, 'mean_word_length': 4.525490196078431, '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': '1961127', 'n_tokens_mistral': 433, 'n_tokens_neox': 430, 'n_words': 119}