<commit_before>'use strict'
import React from 'react'

export default class BigCheckbox extends React.Component {
  constructor(props) {
    super(props)
    this.handle = this.handle.bind(this)
  }

  handle()
  {
    this.props.handle(!this.props.checked)
  }

  render() {
    const mute = {
      color: '#666'
    }
    const point = {
      cursor: 'pointer',
      display: 'inline-block'
    }
    const labelText = {
      fontSize : '20px',
      display: 'inline-block',
      marginTop: '4px'
    }

    return (
      <div onClick={this.handle} style={point}>
        <div className="fa-stack fa-lg pull-left">
          <i className="fa fa-square-o fa-stack-2x" style={mute}></i>
          {this.props.checked ?
          <i className="fa fa-check text-success fa-stack-2x"></i> : null}
        </div>&nbsp;
        <div style={labelText} className={this.props.checked ? 'text-success' : 'text-muted'}>{this.props.label}</div>
      </div>
    )
  }
}

BigCheckbox.propTypes = {
  label: React.PropTypes.string,
  checked: React.PropTypes.bool,
  handle: React.PropTypes.func.isRequired
}

BigCheckbox.defaultProps = {
  checked: false
}<commit_msg>logic fix<commit_after>'use strict'
import React from 'react'
import empty from './Empty.js'

export default class BigCheckbox extends React.Component {
  constructor(props) {
    super(props)
    this.handle = this.handle.bind(this)
  }

  handle()
  {
    this.props.handle(!this.props.checked)
  }

  render() {
    const mute = {
      color: '#666'
    }
    const point = {
      cursor: 'pointer',
      display: 'inline-block'
    }
    const labelText = {
      fontSize : '20px',
      display: 'inline-block',
      marginTop: '4px'
    }

    return (
      <div onClick={this.handle} style={point}>
        <div className="fa-stack fa-lg pull-left">
          <i className="fa fa-square-o fa-stack-2x" style={mute}></i>
          {this.props.checked ?
          <i className="fa fa-check text-success fa-stack-2x"></i> : null}
        </div>&nbsp;
        <div style={labelText} className={!empty(this.props.checked) ? 'text-success' : 'text-muted'}>{this.props.label}</div>
      </div>
    )
  }
}

BigCheckbox.propTypes = {
  label: React.PropTypes.string,
  checked: React.PropTypes.bool,
  handle: React.PropTypes.func.isRequired
}

BigCheckbox.defaultProps = {
  checked: false
}
{'fraction_non_alphanumeric': 0.15247776365946633, 'fraction_numerical': 0.006776789495976281, 'mean_word_length': 2.6171516079632466, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2992394', 'n_tokens_mistral': 802, 'n_tokens_neox': 783, 'n_words': 153}