<commit_before>import React from 'react';
import LoginForm from '../components/loginForm';

class Login extends React.Component {
  constructor(props) {
    super(props);
    this.handleChange = this.handleChange.bind(this);
    this.handleSubmit = this.handleSubmit.bind(this);

    this.state = {
      username: this.props.username,
      password: this.<PASSWORD>,
    }
  }
  handleChange(options) {
    this.setState({
      [options.key]: options.value
    })
  }
  handleSubmit(options) {
    event.preventDefault();
    let { username, password } = options;
    console.log(username, password)
  }
  render() {
    return (
      <article className="login">
        <p>You must have a Keybase.io account to use this app</p>
        <LoginForm 
          username={this.state.username} 
          password={<PASSWORD>}
          onChange={this.handleChange}
          onSubmit={this.handleSubmit} />
      </article>
    );
  }
}


export default Login;<commit_msg>probably won't use this component for a while<commit_after>import React from 'react';
import LoginForm from '../components/loginForm';
import fetch from '../utils/fetch';

class Login extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      username: this.props.username,
      password: <PASSWORD>,
    }
  }
  handleChange(options) {
    this.setState({
      [options.key]: options.value
    })
  }
  handleSubmit(options) {
    event.preventDefault();
    let { username, password } = options;
    fetch('https://keybase.io/_/api/1.0/getsalt.json', {
      query: {email_or_username: username}})
      .then(resp => console.log(resp))
  }
  render() {
    return (
      <article className="login">
        <p>You must have a Keybase.io account to use this app</p>
        <LoginForm 
          username={this.state.username} 
          password={<PASSWORD>}
          onChange={this.handleChange.bind(this)}
          onSubmit={this.handleSubmit.bind(this)} />
      </article>
    );
  }
}


export default Login;
{'fraction_non_alphanumeric': 0.13418845584607794, 'fraction_numerical': 0.000986679822397632, 'mean_word_length': 2.6872727272727275, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 18, 'https://': 1, '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': '772419', 'n_tokens_mistral': 602, 'n_tokens_neox': 597, 'n_words': 126}