<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';

import './scss';

// import './svg';
const requireAll = (requireContext) => {
  console.log(requireContext.keys());
  requireContext.keys().map(requireContext);
};
const req = require.context('@/assets/svg', false, /\.svg$/);
requireAll(req);

export default class Icon extends React.Component {
  static propTypes = {
    // 类型
    type: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.object,
    ]).isRequired,
    // 尺寸
    size: PropTypes.oneOf([
      'xxs', 'xs', 'sm', 'md', 'lg', 'xl',
    ]),
    // 自定义 className
    className: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.object,
    ]),
    // 样式
    style: PropTypes.object,
    onClick: PropTypes.func,
  }

  static defaultProps = {<commit_msg>删除调试注释代码<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';

import './scss';

// import './svg';
const requireAll = (requireContext) => {
  requireContext.keys().map(requireContext);
};
const req = require.context('@/assets/svg', false, /\.svg$/);
requireAll(req);

export default class Icon extends React.Component {
  static propTypes = {
    // 类型
    type: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.object,
    ]).isRequired,
    // 尺寸
    size: PropTypes.oneOf([
      'xxs', 'xs', 'sm', 'md', 'lg', 'xl',
    ]),
    // 自定义 className
    className: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.object,
    ]),
    // 样式
    style: PropTypes.object,
    onClick: PropTypes.func,
  }

  static defaultProps = {
{'fraction_non_alphanumeric': 0.15858767205266308, 'fraction_numerical': 0.0, 'mean_word_length': 3.0386473429951693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6173924', 'n_tokens_mistral': 539, 'n_tokens_neox': 558, 'n_words': 125}