<commit_before>// index.js
var React = require('react');
var ReactDOM = require('react-dom');

var ClickerWindow = React.createClass({
  getInitialState: function() {
    return {clicks: 0}
  },
  componentDidMount: function() {
  },

  handleClick: function() {
    this.setState({'clicks': this.state.clicks+1})
    console.log("Click! #"+this.state.clicks);
  },
  render: function() {
    return (
        <div className="clickerWindow">
          <h1>Clicker Game</h1>
          <p>
            # Clicks: {this.state.clicks} <br/>
            <button type="button" onClick={this.handleClick}>Click me</button>
          </p>

        </div>
      );
  }
});

ReactDOM.render(
  <ClickerWindow/>,<commit_msg>reorg react component tree<commit_after>// index.js
var React = require('react');
var ReactDOM = require('react-dom');

var React = require('react');


var buttons = [
{id: 1, label: 'AutoClicker', ratepersecond:'1', minclicks:'10'},
{id: 2, label: 'SuperClicker', ratepersecond:'5', minclicks:'100'},
{id: 3, label: 'UltraClicker', ratepersecond:'20', minclicks:'1000'},
];

// Shows current number of clicks
var ClickCounter = React.createClass({
  render: function() {
    return (
      <p>
        Clicks: {this.props.clicks}
      </p>
    );
  }
});

// Click button contains button for clicking and upgrades
var ClickButtonList = React.createClass({
  render: function() {
    return (
      <button type="button" onClick={this.props.submitClick}>Click me</button>
    );
  }
});

var ClickerWindow = React.createClass({
  getInitialState: function() {
    return {clicks: 0}
  },

  handleClick: function() {
    this.setState({'clicks': this.state.clicks+1})
    console.log("Click! #"+this.state.clicks);
  },
  render: function() {
    return (
        <div className="clickerWindow">
          <h1>Clicker Game</h1>
          <ClickCounter clicks={this.state.clicks} />
          <ClickButtonList submitClick={this.handleClick} />
        </div>
      );
  }
});

ReactDOM.render(
  <ClickerWindow/>,
{'fraction_non_alphanumeric': 0.1688888888888889, 'fraction_numerical': 0.011851851851851851, 'mean_word_length': 3.1262729124236253, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '3458201', 'n_tokens_mistral': 679, 'n_tokens_neox': 662, 'n_words': 137}