<commit_before>import * as Debug from "debug";
import * as React from "react";
import {Button, Glyphicon, Nav, Navbar, NavItem} from "react-bootstrap";
import {FormattedMessage} from "react-intl";
import {RouterState} from "react-router";
import LoginActions from "../actions/LoginActions";
import store from "../stores/Store";

export default class Menu extends React.Component<{}, RouterState> {
  private static readonly debug: Debug.IDebugger = Debug("Menu");

  constructor(props: {}) {
    super(props);
  }

  public render(): JSX.Element {
    return (
      <Navbar>
        <Navbar.Header>
          <Navbar.Brand>
            <a href="/">react-test</a>
          </Navbar.Brand>
        </Navbar.Header>
        <Nav>
          <NavItem ref="/users"><FormattedMessage id="users"/></NavItem>
        </Nav>
        <Navbar.Form>
          <Button id="logout" bsStyle="primary" onClick={Menu.logout}>
            <Glyphicon glyph="glyphicon glyphicon-log-out"/>
          </Button>
        </Navbar.Form>
      </Navbar>
    );
  }

  public static async logout(): Promise<void> {
    Menu.debug("logout");
    await store.dispatch(LoginActions.logout());
  }
}
<commit_msg>pull-right for logout button.<commit_after>import * as Debug from "debug";
import * as React from "react";
import {Button, Glyphicon, Nav, Navbar, NavItem} from "react-bootstrap";
import {FormattedMessage} from "react-intl";
import {RouterState} from "react-router";
import LoginActions from "../actions/LoginActions";
import store from "../stores/Store";

export default class Menu extends React.Component<{}, RouterState> {
  private static readonly debug: Debug.IDebugger = Debug("Menu");

  constructor(props: {}) {
    super(props);
  }

  public render(): JSX.Element {
    return (
      <Navbar>
        <Navbar.Header>
          <Navbar.Brand>
            <a href="/">react-test</a>
          </Navbar.Brand>
        </Navbar.Header>
        <Nav>
          <NavItem ref="/users"><FormattedMessage id="users"/></NavItem>
        </Nav>
        <Navbar.Form>
          <Button className="pull-right" id="logout" bsStyle="primary" onClick={Menu.logout}>
            <Glyphicon glyph="glyphicon glyphicon-log-out"/>
          </Button>
        </Navbar.Form>
      </Navbar>
    );
  }

  public static async logout(): Promise<void> {
    Menu.debug("logout");
    await store.dispatch(LoginActions.logout());
  }
}

{'fraction_non_alphanumeric': 0.15301455301455302, 'fraction_numerical': 0.0, 'mean_word_length': 2.8434504792332267, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '1038297', 'n_tokens_mistral': 737, 'n_tokens_neox': 724, 'n_words': 172}