<commit_before>import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Tab from '../Tab/Tab';
import './Tabs.css';

class Tabs extends Component {
  render() {
    return (
      <div className="tabs">
        {this.props.items.map((e, i) =>
          <Tab
            key={e}
            item={e}
            active={this.props.activeTab === e}
            onClick={this.props.onClick.bind(this, i)}/>
        )}
      </div>
    );
  }
}

Tabs.propTypes = {
  onClick: PropTypes.func.isRequired,
  items: PropTypes.array.isRequired,
  activeTab: PropTypes.string,
};
Tabs.defaultProps = {
  activeTab: '',
};

export default Tabs;<commit_msg>Pass className to Tabs<commit_after>import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Tab from '../Tab/Tab';
import './Tabs.css';

class Tabs extends Component {
  className = `${this.props.className} tabs`;
  render() {
    return (
      <div className={this.className}>
        {this.props.items.map((e, i) =>
          <Tab
            key={e}
            item={e}
            active={this.props.activeTab === e}
            onClick={this.props.onClick.bind(this, i)}/>
        )}
      </div>
    );
  }
}

Tabs.propTypes = {
  className: PropTypes.string,
  onClick: PropTypes.func.isRequired,
  items: PropTypes.array.isRequired,
  activeTab: PropTypes.string,
};
Tabs.defaultProps = {
  className: '',
  activeTab: '',
};

export default Tabs;
{'fraction_non_alphanumeric': 0.15832762165867031, 'fraction_numerical': 0.0, 'mean_word_length': 2.526570048309179, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '6690282', 'n_tokens_mistral': 463, 'n_tokens_neox': 472, 'n_words': 98}