<commit_before>import React, { Component } from 'react'
import { login } from 'APP/app/reducers/auth'
import { connect } from 'react-redux'

export class Login extends React.Component {

  constructor(props) {
    super(props)
    this.state = {
      username: "",
      password: ""
    }
    this.onSignupSubmit = this.onSignupSubmit.bind(this);
  }
  onSignupSubmit = evt => {
    evt.preventDefault()
    this.props.login(evt.target.username.value, evt.target.password.value)
  }

  render() {
    return (
      <div style={{ marginLeft: 60 + 'em' }}>
        <form className="form-horizontal" onSubmit={this.onSignupSubmit}>
          <input name="username" />
          <input name="password" type="password" />
          <input type="submit" value="Login" />
        </form>
      </div>
    )
  }
}

export default connect(state => ({}), { login })(Login)


<commit_msg>login box fix<commit_after>import React, { Component } from 'react'
import { login } from 'APP/app/reducers/auth'
import { connect } from 'react-redux'

export class Login extends React.Component {

  constructor(props) {
    super(props)
    this.state = {
      username: "",
      password: ""
    }
    this.onSignupSubmit = this.onSignupSubmit.bind(this);
  }
  onSignupSubmit = evt => {
    evt.preventDefault()
    this.props.login(evt.target.username.value, evt.target.password.value)
  }

  render() {
    return (
      <div style={{ marginLeft: 50 + 'em' }}>
        <form className="form-horizontal" onSubmit={this.onSignupSubmit}>
          <input name="username" />
          <input name="password" type="password" />
          <input type="submit" value="Login" />
        </form>
      </div>
    )
  }
}

export default connect(state => ({}), { login })(Login)
{'fraction_non_alphanumeric': 0.15480933409220263, 'fraction_numerical': 0.0022766078542970974, 'mean_word_length': 2.788793103448276, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '2231365', 'n_tokens_mistral': 556, 'n_tokens_neox': 556, 'n_words': 112}