<commit_before>import React, {PropTypes} from 'react'

class Cell extends React.Component {
  static propTypes = {
    x: PropTypes.number.isRequired,
    y: PropTypes.number.isRequired,
    alive: PropTypes.bool.isRequired,
    drawingCell: PropTypes.bool.isRequired,
    onStartDrawing: PropTypes.func.isRequired,
    onDraw: PropTypes.func.isRequired
  }

  render () {
    const className = this.props.alive ? 'alive' : 'dead'
    return (
      <td className={className} onMouseDown={this.handleMouseDown} onMouseEnter={this.handleMouseEnter}></td>
    )
  }

  handleMouseDown = (event) => {<commit_msg>Inline a const<commit_after>import React, {PropTypes} from 'react'

class Cell extends React.Component {
  static propTypes = {
    x: PropTypes.number.isRequired,
    y: PropTypes.number.isRequired,
    alive: PropTypes.bool.isRequired,
    drawingCell: PropTypes.bool.isRequired,
    onStartDrawing: PropTypes.func.isRequired,
    onDraw: PropTypes.func.isRequired
  }

  render () {
    return (
      <td
        className={this.props.alive ? 'alive' : 'dead'}
        onMouseDown={this.handleMouseDown}
        onMouseEnter={this.handleMouseEnter} />
    )
  }

  handleMouseDown = (event) => {
{'fraction_non_alphanumeric': 0.1183774834437086, 'fraction_numerical': 0.0, 'mean_word_length': 3.545112781954887, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '2732655', 'n_tokens_mistral': 372, 'n_tokens_neox': 384, 'n_words': 71}