<commit_before>import {Component} from 'react'

class DarkForm extends Component {
  static propTypes: {
    subscribeURL: PropTypes.string.isRequired,
    submitButtonText: PropTypes.string.isRequired
  }

  constructor(props) {
    super(props)

    this.state = {
      email: ''
    }

    this.onChange = this.onChange.bind(this)
  }

  onChange(event) {
    this.setState({
      email: event.target.value
    })
  }

  render() {
    return(
      <div id="mc_embed_signup">
        <form action={this.props.subscribeURL} method="post"
              id="mc-embedded-subscribe-form"
              name="mc-embedded-subscribe-form"
              className="validate" target="_blank" noValidate>
          <div id="mc_embed_signup_scroll">
            <div className="mc-field-group" style={{ marginBottom: '12px' }}>
              <label htmlFor="mce-EMAIL" style={{ display: 'none' }}>Email Address </label>
              <input type="email" value={this.state.email} name="EMAIL"
                className="form-control form-control-outline-primary text-xs-center"
                id="mce-EMAIL" placeholder="Enter email address"
                onChange={this.onChange} />
            </div>
            <div id="mce-responses" className="clear">
              <div className="response" id="mce-error-response"
                style={{ display: 'none' }}></div>
              <div className="response" id="mce-success-response"
                style={{ display: 'none' }}></div>
            </div>
            <div style={{ position: 'absolute', left: '-5000px' }} aria-hidden="true">
              <input type="text" name="b_394a2b5cfee9c4b0f7525b009_0e5478ae86" tabIndex="-1" value="" />
            </div>
            <div className="clear">
              <input type="submit" value={this.props.submitButtonText}
                name="subscribe" id="mc-embedded-subscribe"
                className="btn btn-primary btn-block" />
            </div>
          </div>
        </form>
      </div>
    )
  }
}

export default DarkForm<commit_msg>update to token form<commit_after>import {Component} from 'react'

class DarkForm extends Component {
  static propTypes: {
    subscribeURL: PropTypes.string.isRequired,
    submitButtonText: PropTypes.string.isRequired
  }

  constructor(props) {
    super(props)

    this.state = {
      email: ''
    }

    this.onChange = this.onChange.bind(this)
  }

  onChange(event) {
    this.setState({
      email: event.target.value
    })
  }

  render() {
    return(
      <div id="mc_embed_signup">
        <form action={this.props.subscribeURL} method="post"
              id="mc-embedded-subscribe-form"
              name="mc-embedded-subscribe-form"
              className="validate" target="_blank" noValidate>
          <div id="mc_embed_signup_scroll">
            <div className="mc-field-group" style={{ marginBottom: '12px' }}>
              <label htmlFor="mce-EMAIL" style={{ display: 'none' }}>Email Address </label>
              <input type="email" value={this.state.email} name="EMAIL"
                className="form-control form-control-outline-primary text-center"
                id="mce-EMAIL" placeholder="Enter email address"
                onChange={this.onChange} />
            </div>
            <div id="mce-responses" className="clear">
              <div className="response" id="mce-error-response"
                style={{ display: 'none' }}></div>
              <div className="response" id="mce-success-response"
                style={{ display: 'none' }}></div>
            </div>
            <div style={{ position: 'absolute', left: '-5000px' }} aria-hidden="true">
              <input type="text" name="b_394a2b5cfee9c4b0f7525b009_0e5478ae86" tabIndex="-1" value="" />
            </div>
            <div className="clear">
              <input type="submit" value={this.props.submitButtonText}
                name="subscribe" id="mc-embedded-subscribe"
                className="btn btn-primary btn-block" />
            </div>
          </div>
        </form>
      </div>
    )
  }
}

export default DarkForm
{'fraction_non_alphanumeric': 0.1437956204379562, 'fraction_numerical': 0.014111922141119221, 'mean_word_length': 2.1598770176787085, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': 2}}
{'dir': 'git-commits-cleaned', 'id': '3802917', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1201, 'n_words': 226}