<commit_before>import React, {Component, PropTypes} from 'react';
import Icon from './Icon.jsx';
import Immutable from 'Immutable';
import ClassNames from 'ClassNames';

class IconStack extends Component {

  getBaseClassNames() {
    return ClassNames([
      "fa-stack-2x",
      this.props.classNames
    ]);
  }
  
  renderIconStackBase() {
    return (
      <Icon type="fa" classNames={this.getBaseClassNames()} name={this.props.iconStackBase} />
    );
  }

  renderIcon(iconName) {
    return (
      <Icon type="fa" classNames="fa-stack-1x" name={iconName} />
    );
  }

  render() {
    return (
      <span className="fa-icon-stack">
        {this.renderIconStackBase()}
        {this.props.iconNames.map(iconName => this.renderIcon(iconName))}
      </span>
    );
  }
}

IconStack.defaultProps = {
  iconStackBase: '',
  iconNames: Immutable.List.of(),
  classNames: Immutable.List.of()
}

IconStack.propTypes = {
  iconStackBase: PropTypes.string,
  iconNames: PropTypes.instanceOf(Immutable.List),
  classNames: PropTypes.instanceOf(Immutable.List)
}

export default IconStack;<commit_msg>clean up final console warnings<commit_after>import React, {Component, PropTypes} from 'react';
import Icon from './Icon.jsx';
import Immutable from 'Immutable';
import classNames from 'classNames';

class IconStack extends Component {

  getBaseClassNames() {
    return classNames([
      "fa-stack-2x",
      this.props.classNames
    ]);
  }
  
  renderIconStackBase() {
    return (
      <Icon type="fa" classNames={this.getBaseClassNames()} name={this.props.iconStackBase} />
    );
  }

  renderIcon(iconName, i) {
    return (
      <Icon type="fa" key={i} classNames="fa-stack-1x" name={iconName} />
    );
  }

  render() {
    return (
      <span className="fa-icon-stack">
        {this.renderIconStackBase()}
        {this.props.iconNames.map((iconName, i) => this.renderIcon(iconName, i))}
      </span>
    );
  }
}

IconStack.defaultProps = {
  iconStackBase: '',
  iconNames: Immutable.List.of(),
  classNames: ''
}

IconStack.propTypes = {
  iconStackBase: PropTypes.string,
  iconNames: PropTypes.instanceOf(Immutable.List),
  classNames: PropTypes.string
}

export default IconStack;
{'fraction_non_alphanumeric': 0.1434389140271493, 'fraction_numerical': 0.0018099547511312218, 'mean_word_length': 3.4757085020242915, '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': '367102', 'n_tokens_mistral': 717, 'n_tokens_neox': 721, 'n_words': 132}