<commit_before>import React from 'react';
import { signIn } from '../actions/auth';
import API from '../api';

export default class LogIn extends React.Component {
  constructor() {
    super();
    this.state = { disable_login: true };
  }

  componentDidMount() {
    // Retrieve the singleton for the GoogleAuth library and set up the client.
    API
      .Auth
      .clientId()
      .then( ({ token }) => {
          const auth2 = gapi.auth2.init({
            client_id: token, // eslint-disable-line camelcase
            cookie_policy: 'single_host_origin', // eslint-disable-line camelcase
          });
          auth2.attachClickHandler(this.refs.button, { prompt: 'select_account' }, googleUser => {
            this.props.dispatch(signIn(googleUser));
          });
      }) 
      .catch( err => console.log(err) );
  }

  render() {
    return (
      <button disable={this.state.disable_login} id='login' className='btn btn-primary' ref='button'>
        <i className='fa fa-google' /> Sign In
      </button>
    );
  }
}<commit_msg>Linters happy<commit_after>import React from 'react';
import { signIn } from '../actions/auth';
import API from '../api';

export default class LogIn extends React.Component {
  constructor() {
    super();
    this.state = { disableLogin: true };
  }

  componentDidMount() {
    // Retrieve the singleton for the GoogleAuth library and set up the client.
    API
      .Auth
      .clientId()
      .then( ({ token }) => {
        const auth2 = gapi.auth2.init({
          client_id: token, // eslint-disable-line camelcase
          cookie_policy: 'single_host_origin', // eslint-disable-line camelcase
        });
        auth2.attachClickHandler(this.refs.button, { prompt: 'select_account' }, googleUser => {
          this.props.dispatch(signIn(googleUser));
        });
      })
      .catch( err => console.log(err) );
  }

  render() {
    return (
      <button disable={this.state.disableLogin} id='login' className='btn btn-primary' ref='button'>
        <i className='fa fa-google' /> Sign In
      </button>
    );
  }
}
{'fraction_non_alphanumeric': 0.14183037853378055, 'fraction_numerical': 0.0028749401054144704, 'mean_word_length': 2.4398682042833606, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '2200916', 'n_tokens_mistral': 622, 'n_tokens_neox': 607, 'n_words': 149}