<commit_before>import React from 'react';
import Logger from '../../../lib/Logger';

const titleNode = (title) => {
  if (title) {
    return (
      <title>{title}</title>
    );
  }
}

const pathNodes = (icon) => {
  switch (icon) {
    case 'settings':
      return require("./settings").default;
    case 'users':
      return require("./users").default;
    case 'notification-services':
      return require("./notification-services").default;
    case 'billing':
      return require("./billing").default;
    case 'emails':
      return require("./emails").default;
    case 'connected-apps':
      return require("./connected-apps").default;
    case 'api-tokens':
      return require("./api-tokens").default;
    default:
      Logger.error(`[Icon] No icon defined for "${props.icon}"`);
      return require("./placeholder").default;
  }
}

const Icon = (props) => {
  return (
    <svg viewBox="0 0 20 20" width="20px" height="20px" className={props.className} style={{fill: "currentColor", verticalAlign: "middle"}}>
      {titleNode(props.title)}
      {pathNodes(props.icon)}
    </svg>
  );
}

Icon.propTypes = {
  icon: React.PropTypes.string.isRequired,
  title: React.PropTypes.string,
  className: React.PropTypes.string
};

Icon.displayName = "Icon";

export default Icon;<commit_msg>Fixed another eslint issue<commit_after>import React from 'react';
import Logger from '../../../lib/Logger';

const titleNode = (title) => {
  if (title) {
    return (
      <title>{title}</title>
    );
  }
}

const pathNodes = (icon) => {
  switch (icon) {
    case 'settings':
      return require("./settings").default;
    case 'users':
      return require("./users").default;
    case 'notification-services':
      return require("./notification-services").default;
    case 'billing':
      return require("./billing").default;
    case 'emails':
      return require("./emails").default;
    case 'connected-apps':
      return require("./connected-apps").default;
    case 'api-tokens':
      return require("./api-tokens").default;
    default:
      Logger.error(`[Icon] No icon defined for "${icon}"`);
      return require("./placeholder").default;
  }
}

const Icon = (props) => {
  return (
    <svg viewBox="0 0 20 20" width="20px" height="20px" className={props.className} style={{fill: "currentColor", verticalAlign: "middle"}}>
      {titleNode(props.title)}
      {pathNodes(props.icon)}
    </svg>
  );
}

Icon.propTypes = {
  icon: React.PropTypes.string.isRequired,
  title: React.PropTypes.string,
  className: React.PropTypes.string
};

Icon.displayName = "Icon";

export default Icon;
{'fraction_non_alphanumeric': 0.17525773195876287, 'fraction_numerical': 0.007636502481863307, 'mean_word_length': 3.192, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '4494039', 'n_tokens_mistral': 809, 'n_tokens_neox': 799, 'n_words': 178}