<commit_before>import React, { Component, PropTypes } from 'react';

export default class Logout extends Component {
  constructor(props) {
    super(props);

    this.state = {
    };
  }

  render() {
    return (
      <div className="container">
        <button onClick={() => this.props.onLogoutClick()} className="btn btn-primary">
          Logout
        </button>
      </div>
    );
  }
}

Logout.propTypes = {
  onLogoutClick: PropTypes.func.isRequired,<commit_msg>logout to home<commit_after>import React, { Component, PropTypes } from 'react';

export default class Logout extends Component {
  // constructor(props) {
  //   super(props);
  //
  //   this.state = {
  //   };
  // }

  componentWillMount() {
    this.props.onLogoutClick();
    window.location.href = '#';
  }

  render() {
    return (
      <div />
    );
  }
}

Logout.propTypes = {
  onLogoutClick: PropTypes.func.isRequired,
{'fraction_non_alphanumeric': 0.14835164835164835, 'fraction_numerical': 0.0, 'mean_word_length': 2.600790513833992, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, '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': '6406116', 'n_tokens_mistral': 292, 'n_tokens_neox': 293, 'n_words': 55}