<commit_before>/* eslint-disable react/no-danger */
import React, { ReactPropTypeLocationNames } from 'react';
import PropTypes from 'prop-types';
import * as faIcons from 'react-icons/lib/fa';
import styles from './iconCard.css';

const IconCard = (props) => {
  const {
    title,
    subText,
    url,
    fontAwesomeIcon,
    iconSize,
    iconAboveHeading,
    usingHtml
  } = props;

  const Icon = faIcons[fontAwesomeIcon];

  let iconBefore = null;
  let iconAfter = null;
  let subTextNode = null;
  const titleNode = <h5 className={styles.iconCard__title}>{title}</h5>;

  if (iconAboveHeading) {
    iconBefore = <Icon size={iconSize} />;
  } else {
    iconAfter = <Icon size={iconSize} />;
  }

  function createMarkup() {<commit_msg>Destructure iconCard props in function signature<commit_after>/* eslint-disable react/no-danger */
import React, { ReactPropTypeLocationNames } from 'react';
import PropTypes from 'prop-types';
import * as faIcons from 'react-icons/lib/fa';
import styles from './iconCard.css';

const IconCard = ({ fontAwesomeIcon, iconAboveHeading, iconSize, subText, title, url, usingHtml }) => {
  const Icon = faIcons[fontAwesomeIcon];

  let iconBefore = null;
  let iconAfter = null;
  let subTextNode = null;
  const titleNode = <h5 className={styles.iconCard__title}>{title}</h5>;

  if (iconAboveHeading) {
    iconBefore = <Icon size={iconSize} />;
  } else {
    iconAfter = <Icon size={iconSize} />;
  }

  function createMarkup() {
{'fraction_non_alphanumeric': 0.13016949152542373, 'fraction_numerical': 0.002711864406779661, 'mean_word_length': 4.037542662116041, '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': '5384574', 'n_tokens_mistral': 489, 'n_tokens_neox': 472, 'n_words': 122}