<commit_before>import React, { Component } from 'react';
import classNames           from 'classnames';

const ActionButton = React.createClass({
    propTypes: {
        label: React.PropTypes.string.isRequired,
        primary: React.PropTypes.bool,
        style: React.PropTypes.object,
        selected: React.PropTypes.bool,
        flat: React.PropTypes.bool,
        toggle: React.PropTypes.bool,
    },
    getDefaultProps() {
        return {
            primary: false,
            selected: false,
            flat: false,
            toggle: false,
        };
    },
    render() {
        const buttonClass = classNames('bui-action-button', {
            'bui-is-primary': this.props.primary,
            'bui-is-secondary': !this.props.primary,
            'bui-is-selected': this.props.selected,
            'bui-is-toggle': this.props.toggle,
            'bui-is-flat': this.props.flat,
        });

        const props = this.props;
        return (
            <div {...props} className={buttonClass}>
                {this.props.label}
            </div>
        );
    }
});

export default ActionButton;<commit_msg>Fixed prop issue on action-buttons.<commit_after>import React, { Component } from 'react';
import classNames           from 'classnames';

const ActionButton = React.createClass({
    propTypes: {
        label: React.PropTypes.string.isRequired,
        primary: React.PropTypes.bool,
        style: React.PropTypes.object,
        selected: React.PropTypes.bool,
        flat: React.PropTypes.bool,
        toggle: React.PropTypes.bool,
    },
    getDefaultProps() {
        return {
            primary: false,
            selected: false,
            flat: false,
            toggle: false,
        };
    },
    render() {
        const buttonClass = classNames('bui-action-button', {
            'bui-is-primary': this.props.primary,
            'bui-is-secondary': (!this.props.primary && !this.props.toggle),
            'bui-is-selected': this.props.selected,
            'bui-is-toggle': this.props.toggle,
            'bui-is-flat': this.props.flat,
        });

        const props = this.props;
        return (
            <div {...props} className={buttonClass}>
                {this.props.label}
            </div>
        );
    }
});

export default ActionButton;
{'fraction_non_alphanumeric': 0.12801724137931034, 'fraction_numerical': 0.0, 'mean_word_length': 1.7930204572803852, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4793073', 'n_tokens_mistral': 656, 'n_tokens_neox': 650, 'n_words': 126}