<commit_before>import React, { PureComponent, PropTypes } from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import { Button, Form } from 'semantic-ui-react'

import styles from './CoverPage.scss';

class CoverPage extends PureComponent {

  componentDidMount() {
    // for test, not complete the Sign out yet
    // localStorage.removeItem('auth_token')
  }

  clickLoginBtn = (event) => {
    event.preventDefault()
    const inputName = this.usernameInput.value;

    if (inputName.trim()) {
      this.props.actions.getAuth(inputName)
    }

  }

  render() {
    const {auth} = this.props.user;

    const LoginBlock = (
    <div className={ styles.container }>
      <h1>Stories Kingdom</h1>
      <Form onSubmit={ this.clickLoginBtn }><commit_msg>adjust fun name for login submit<commit_after>import React, { PureComponent, PropTypes } from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import { Button, Form } from 'semantic-ui-react'

import styles from './CoverPage.scss';

class CoverPage extends PureComponent {

  componentDidMount() {
    // for test, not complete the Sign out yet
    // localStorage.removeItem('auth_token')
  }

  _onSubmit = (event) => {
    event.preventDefault()
    const inputName = this.usernameInput.value;

    if (inputName.trim()) {
      this.props.actions.getAuth(inputName)
    }
  }

  render() {
    const {auth} = this.props.user;

    const LoginBlock = (
    <div className={ styles.container }>
      <h1>Stories Kingdom</h1>
      <Form onSubmit={ this._onSubmit }>
{'fraction_non_alphanumeric': 0.13011152416356878, 'fraction_numerical': 0.0024783147459727386, 'mean_word_length': 3.3766937669376693, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '6425314', 'n_tokens_mistral': 505, 'n_tokens_neox': 491, 'n_words': 125}