<commit_before>import React from 'react'

class App extends React.Component {
  constructor(props) {
    super(props)

    this.state = {
      count : 0
    }
  }

  render() {
    return (
      <main className="app-container">
        <h1>How Many Burritos</h1>
        <input ref="count" type="number" onChange={this.change.bind(this)} />
        <h2>{this.state.count} flippin burritos</h2>
      </main>
    )
  }

  change() {
    this.setState({
      count : Math.round(React.findDOMNode(this.refs.count).value / 7)
    })
  }
}

React.render(<App />, document.getElementById('app'))<commit_msg>Adds quac<commit_after>import React from 'react'

var find = React.findDOMNode

const BURRITO_COST = 7.25
const QUAC_COST    = 1.95

class App extends React.Component {
  constructor(props) {
    super(props)

    this.state = {
      count : 0,
      quac  : false
    }
  }

  render() {
    return (
      <main className="app-container">
        <h1>How Many Burritos</h1>
        <input ref="count" type="number" onChange={this.change.bind(this)} />
        <input ref="quac" type="checkbox" onChange={this.change.bind(this)} />
        <h2>{this.state.count} flippin burritos!</h2>
      </main>
    )
  }

  change() {
    let money = parseInt(find(this.refs.count).value)
    let quac = parseInt(find(this.refs.quac).checked ? QUAC_COST : 0)

    this.setState({
      count : money / (BURRITO_COST + quac)
    })
  }
}

React.render(<App />, document.getElementById('app'))
{'fraction_non_alphanumeric': 0.1541049798115747, 'fraction_numerical': 0.012113055181695828, 'mean_word_length': 2.6625615763546797, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '7424296', 'n_tokens_mistral': 537, 'n_tokens_neox': 525, 'n_words': 94}