<commit_before>var div = React.DOM.div
var h1 = React.DOM.h1

var MyFirstComponent = (
  div(null,
    h1(null, 'This is my first component!')
  )
)

ReactDOM.render(MyFirstComponent, document.getElementById('app'))<commit_msg>Create first class component<commit_after>var div = React.DOM.div
var h1 = React.DOM.h1

var MyTitle = React.createClass({
  render () {
    return (
      div(null,
        h1(null, 'Check out my first class component!')
      )
    )
  }
})

var MyFirstComponent = (
  div(null,
    React.createElement(MyTitle, null)
  )
)

ReactDOM.render(MyFirstComponent, document.getElementById('app'))
{'fraction_non_alphanumeric': 0.12762520193861066, 'fraction_numerical': 0.009693053311793215, 'mean_word_length': 3.696969696969697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2796909', 'n_tokens_mistral': 209, 'n_tokens_neox': 211, 'n_words': 45}