<commit_before><!DOCTYPE html>
<html>
<head>
  <title>ReactTimer</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react-dom.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
</head>
<body>
<div id="container"></div>
<script type="text/babel">


var Timer = React.createClass({
  getInitialState: function(){
    return {elapsed:0};
  },
  tick: function(){
    this.setState({elapsed: this.state.elapsed + 1});
  },
  componentDidMount: function(){
    this.interval = setInterval(this.tick, 1000);
  },
  componentWillMount: function(){
    clearInterval(this.interval);
  },
  render: function(){
    return (
      <div>
      elapsed: {this.state.elapsed}
      </div>
    );
  }
   }
});

 React.render(
   <Timer />,
   document.getElementById("container")
 );

</script>
</body>
</html>
<commit_msg>timer<commit_after><!DOCTYPE html>
<html>
<head>
  <title>ReactTimer</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react-dom.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
</head>
<body>
<div id="container"></div>
<script type="text/babel">

var Timer = React.createClass({
  getInitialState: function() {
    return {secondsElapsed: 0};
  },
  tick: function() {
    this.setState({secondsElapsed: this.state.secondsElapsed + 1});
  },
  componentDidMount: function() {
    this.interval = setInterval(this.tick, 1000);
  },
  componentWillUnmount: function() {
    clearInterval(this.interval);
  },
  render: function() {
    return (
      <div>Seconds Elapsed: {this.state.secondsElapsed}
      <form>
      <button>start</button><button>stop</button>
      </form>
      </div>
    );
  }
});


ReactDOM.render(<Timer />, document.getElementById('container'));


</script>
</body>
</html>

{'fraction_non_alphanumeric': 0.19834710743801653, 'fraction_numerical': 0.01750121536217793, 'mean_word_length': 3.7419354838709675, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 6, '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': '6919697', 'n_tokens_mistral': 769, 'n_tokens_neox': 723, 'n_words': 103}