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

export default function iconFactory(network, iconConfig) {
  const Icon = (props) => {
    const {
      className,
      iconBgStyle,
      logoFillColor,
      round,
      size,
    } = props;

    const baseStyle = {
      width: size,
      height: size,
    };

    const classes = `social-icon social-icon--${network} ${className}`;

    return (
      <div style={baseStyle}>
        <svg
          viewBox="0 0 64 64"
          fill={logoFillColor}
          width={size}
          height={size}
          className={classes}>
          <g>
            {(!round ? (
              <rect
                width="64"
                height="64"
                fill={iconConfig.color}
                style={iconBgStyle} />
            ) : (
              <circle
                cx="32"
                cy="32"
                r="31"
                fill={iconConfig.color}
                style={iconBgStyle} />
            ))}
          </g>

          <g>
            <path d={iconConfig.icon} />
          </g>
        </svg>
      </div>
    );
  };

  Icon.propTypes = {
    className: PropTypes.string,
    iconBgStyle: PropTypes.object,
    logoFillColor: PropTypes.string,
    round: PropTypes.bool,
    size: PropTypes.number,
  };

  Icon.defaultProps = {
    className: '',
    iconBgStyle: {},
    logoFillColor: 'white',
    size: 64,
  };

  return Icon;
}<commit_msg>move logoFillColor to path<commit_after>import React from 'react';
import PropTypes from 'prop-types';

export default function iconFactory(network, iconConfig) {
  const Icon = (props) => {
    const {
      className,
      iconBgStyle,
      logoFillColor,
      round,
      size,
    } = props;

    const baseStyle = {
      width: size,
      height: size,
    };

    const classes = `social-icon social-icon--${network} ${className}`;

    return (
      <div style={baseStyle}>
        <svg
          viewBox="0 0 64 64"
          width={size}
          height={size}
          className={classes}>
          <g>
            {(!round ? (
              <rect
                width="64"
                height="64"
                fill={iconConfig.color}
                style={iconBgStyle} />
            ) : (
              <circle
                cx="32"
                cy="32"
                r="31"
                fill={iconConfig.color}
                style={iconBgStyle} />
            ))}
          </g>

          <g>
            <path d={iconConfig.icon} fill={logoFillColor} />
          </g>
        </svg>
      </div>
    );
  };

  Icon.propTypes = {
    className: PropTypes.string,
    iconBgStyle: PropTypes.object,
    logoFillColor: PropTypes.string,
    round: PropTypes.bool,
    size: PropTypes.number,
  };

  Icon.defaultProps = {
    className: '',
    iconBgStyle: {},
    logoFillColor: 'white',
    size: 64,
  };

  return Icon;
}
{'fraction_non_alphanumeric': 0.1279346716570262, 'fraction_numerical': 0.012249064307587616, 'mean_word_length': 1.441860465116279, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 27, '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': '6406277', 'n_tokens_mistral': 898, 'n_tokens_neox': 844, 'n_words': 175}