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

export default class extends Component {
  codeword = 'pure imagination'

  state = { progress: 0 }

  componentWillMount() {
    window.document.onkeypress = e => {
      let shouldProgress = e.key == this.codeword[this.state.progress]
      this.setState({ progress: shouldProgress ? this.state.progress + 1 : 0 })
    }
  }

  render() {
    if (this.state.progress == this.codeword.length) {
      return (
        <iframe
          width="560"
          height="315"
          src="https://www.youtube.com/embed/knIfoQW_mZg?autoplay=1"
          frameborder="0"
          allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
          allowfullscreen
          style={{ display: 'none' }}
        />
      )
    } else {
      return null
    }
  }
}
<commit_msg>WillMount -> DidMount<commit_after>import React, { Component } from 'react'

export default class extends Component {
  codeword = 'pure imagination'

  state = { progress: 0 }

  componentDidMount() {
    window.document.onkeypress = e => {
      let shouldProgress = e.key == this.codeword[this.state.progress]
      this.setState({ progress: shouldProgress ? this.state.progress + 1 : 0 })
    }
  }

  render() {
    if (this.state.progress == this.codeword.length) {
      return (
        <iframe
          width="560"
          height="315"
          src="https://www.youtube.com/embed/knIfoQW_mZg?autoplay=1"
          frameborder="0"
          allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
          allowfullscreen
          style={{ display: 'none' }}
        />
      )
    } else {
      return null
    }
  }
}

{'fraction_non_alphanumeric': 0.12741087083576855, 'fraction_numerical': 0.012857977790765635, 'mean_word_length': 2.305019305019305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1344746', 'n_tokens_mistral': 547, 'n_tokens_neox': 520, 'n_words': 103}