<commit_before>/**
 * Created by steve on 20/09/15.
 */
import React from "react";
import ComposedComponent from "./ComposedComponent";
import Checkbox from "material-ui/Checkbox";

class Checkbox2 extends React.Component {
  constructor(props) {
    super(props);

    const mockEvent = { target: { checked: !!this.props.value || false } };
    this.props.onChangeValidate(mockEvent);
  }
  render() {
    return (
      <div className={this.props.form.className}>
        <Checkbox
          name={this.props.form.key.slice(-1)[0]}
          value={this.props.form.key.slice(-1)[0]}
          checked={this.props.value || false}
          label={this.props.form.title}
          disabled={this.props.form.readonly}
          onCheck={(e, checked) => {
            this.props.onChangeValidate(e);
          }}
        />
      </div>
    );
  }
}

export default ComposedComponent(Checkbox2);<commit_msg>Fixing the checkbox class pulling<commit_after>/**
 * Created by steve on 20/09/15.
 */
import React from "react";
import ComposedComponent from "./ComposedComponent";
import Checkbox from "material-ui/Checkbox";

class Checkbox2 extends React.Component {
  constructor(props) {
    super(props);

    const mockEvent = { target: { checked: !!this.props.value || false } };
    this.props.onChangeValidate(mockEvent);
  }
  render() {
    return (
      <div className={this.props.form.htmlClass}>
        <Checkbox
          name={this.props.form.key.slice(-1)[0]}
          value={this.props.form.key.slice(-1)[0]}
          checked={this.props.value || false}
          label={this.props.form.title}
          disabled={this.props.form.readonly}
          onCheck={(e, checked) => {
            this.props.onChangeValidate(e);
          }}
        />
      </div>
    );
  }
}

export default ComposedComponent(Checkbox2);
{'fraction_non_alphanumeric': 0.14863387978142076, 'fraction_numerical': 0.013114754098360656, 'mean_word_length': 2.611439842209073, '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': '6765478', 'n_tokens_mistral': 564, 'n_tokens_neox': 554, 'n_words': 101}