<commit_before>import React from 'react';

const Card = React.createClass({
  propTypes : {
    title : React.PropTypes.string,
    theme : React.PropTypes.string,
    contentTheme : React.PropTypes.string,
  },

  getDefaultProps() {
    return {
      theme : 'blue-grey darken-1',
      contentTheme : 'white-text',
    };
  },

  renderTitle() {
    if ( ! this.props.title) {
      return null;
    }

    return (
      <span className="card-title">
        {this.props.title}
      </span>
    );
  },

  render() {

    return (
      <div className={'card ' + this.props.theme}>
        <div className={'card-content ' + this.props.contentTheme}>
          {this.renderTitle()}
          {this.props.children}
        </div>
      </div>
    );
  }
});

export default Card;<commit_msg>Apply content theme to card title<commit_after>import React from 'react';

const Card = React.createClass({
  propTypes : {
    title : React.PropTypes.string,
    theme : React.PropTypes.string,
    contentTheme : React.PropTypes.string,
  },

  getDefaultProps() {
    return {
      theme : 'blue-grey darken-1',
      contentTheme : 'white-text',
    };
  },

  renderTitle() {
    if ( ! this.props.title) {
      return null;
    }

    return (
      <span className={'card-title ' + this.props.contentTheme}>
        {this.props.title}
      </span>
    );
  },

  render() {

    return (
      <div className={'card ' + this.props.theme}>
        <div className={'card-content ' + this.props.contentTheme}>
          {this.renderTitle()}
          {this.props.children}
        </div>
      </div>
    );
  }
});

export default Card;
{'fraction_non_alphanumeric': 0.15070164734594266, 'fraction_numerical': 0.0012202562538133007, 'mean_word_length': 2.159922928709056, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7077035', 'n_tokens_mistral': 526, 'n_tokens_neox': 519, 'n_words': 97}