<commit_before>import React from 'react';
import classNames from 'classnames';
import styles from './styles.css';
import Icon from './../Icon';

function LogButton(props) {
    return (
        <div
            className={classNames(styles.wrapper, {
                [styles.checked]: props.checked,
                [styles.inactive]: props.inactive,
                [props.className]: props.className
            })}
            onClick={props.onClick}
        >
            <Icon
                icon={"icon-check"}
                size={"small"}
            />
        </div>
    );
}

LogButton.propTypes = {
    checked: React.PropTypes.bool,
    className: React.PropTypes.string,
    inactive: React.PropTypes.bool,
    onClick: React.PropTypes.func
};

export default LogButton;
<commit_msg>Fixed log button inactive state<commit_after>import React from 'react';
import classNames from 'classnames';
import styles from './styles.css';
import Icon from './../Icon';

function LogButton(props) {
    return (
        <div
            className={classNames(styles.wrapper, {
                [styles.checked]: props.checked,
                [styles.inactive]: props.inactive,
                [props.className]: props.className
            })}
            onClick={!props.inactive && props.onClick}
        >
            <Icon
                icon={"icon-check"}
                size={"small"}
            />
        </div>
    );
}

LogButton.propTypes = {
    checked: React.PropTypes.bool,
    className: React.PropTypes.string,
    inactive: React.PropTypes.bool,
    onClick: React.PropTypes.func
};

export default LogButton;

{'fraction_non_alphanumeric': 0.12477064220183487, 'fraction_numerical': 0.0, 'mean_word_length': 1.9424460431654675, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1965756', 'n_tokens_mistral': 452, 'n_tokens_neox': 442, 'n_words': 93}