<commit_before>var React = require('react'),
  Classable = require('./mixins/classable.js'),
  EnhancedButton = require('./enhanced-button.jsx'),
  Ripple = require('./ripple.jsx');

var FlatButton = React.createClass({

  mixins: [Classable],

  propTypes: {
    className: React.PropTypes.string,
    label: React.PropTypes.string.isRequired,
    onTouchTap: React.PropTypes.func,
    primary: React.PropTypes.bool
  },

  render: function() {
    var {
      className,
      onTouchTap,
      ...other } = this.props,
      classes = this.getClasses('mui-flat-button', {
        'mui-is-primary': this.props.primary
      });

    return (
      <EnhancedButton {...other}
        className={classes}
        onTouchTap={this._onTouchTap}>

        <Ripple ref="ripple" className="mui-flat-button-ripple" />
        <Ripple className="mui-flat-button-focus-ripple" />
        <div className="mui-icon-button-focus-ripple" />
        {this.props.label}

      </EnhancedButton>
    );
  },

  _onTouchTap: function(e) {
    if (!this.props.disabled) this.refs.ripple.animate(e);
    if (this.props.onTouchTap) this.props.onTouchTap(e);
  }

});

module.exports = FlatButton;<commit_msg>Code cleanup<commit_after>var React = require('react'),
  Classable = require('./mixins/classable.js'),
  EnhancedButton = require('./enhanced-button.jsx'),
  Ripple = require('./ripple.jsx');

var FlatButton = React.createClass({

  mixins: [Classable],

  propTypes: {
    className: React.PropTypes.string,
    label: React.PropTypes.string.isRequired,
    onTouchTap: React.PropTypes.func,
    primary: React.PropTypes.bool
  },

  render: function() {
    var {
      className,
      onTouchTap,
      ...other } = this.props,
      classes = this.getClasses('mui-flat-button', {
        'mui-is-primary': this.props.primary
      });

    return (
      <EnhancedButton {...other}
        className={classes}
        onTouchTap={this._onTouchTap}>

        <Ripple ref="ripple" className="mui-flat-button-ripple" />
        <Ripple className="mui-flat-button-focus-ripple" />
        {this.props.label}

      </EnhancedButton>
    );
  },

  _onTouchTap: function(e) {
    if (!this.props.disabled) this.refs.ripple.animate(e);
    if (this.props.onTouchTap) this.props.onTouchTap(e);
  }

});

module.exports = FlatButton;
{'fraction_non_alphanumeric': 0.15775862068965518, 'fraction_numerical': 0.0, 'mean_word_length': 2.855481727574751, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '624152', 'n_tokens_mistral': 818, 'n_tokens_neox': 773, 'n_words': 114}