<commit_before>import React, { PureComponent } from 'react';
import FlatButton from 'material-ui/FlatButton';

// Button for logged in state
export default class LoginButton extends PureComponent {
  static muiName = 'FlatButton';

  style = {
    ...this.props.style,
    color: 'white',
    float: 'right',
    marginTop: '8px',
    marginBottom: '8px'
  }

  redirectToCas = (evt) => {
    evt.preventDefault();
    const curr = window.location.href;
    const newLoc = `${process.env.REACT_APP_SERVER_ROOT}/api/users/redirect?return=${encodeURIComponent(curr)}`;
    console.log(`login: redirecting to ${newLoc}`);
    window.location = newLoc;
  }

  render() {
    return (
      <FlatButton
        {...this.props}
        style={this.style}
        onClick={this.redirectToCas}
        label="Login"
      />
    );
  }
}<commit_msg>fixed login button flex-box issues<commit_after>import React, { PureComponent } from 'react';
import FlatButton from 'material-ui/FlatButton';

// Button for logged in state
export default class LoginButton extends PureComponent {
  static muiName = 'FlatButton';

  style = {
    color: 'white',
    float: 'right',
    marginTop: '8px',
    marginBottom: '8px'
  }

  redirectToCas = (evt) => {
    evt.preventDefault();
    const curr = window.location.href;
    const newLoc = `${process.env.REACT_APP_SERVER_ROOT}/api/users/redirect?return=${encodeURIComponent(curr)}`;
    console.log(`login: redirecting to ${newLoc}`);
    window.location = newLoc;
  }

  render() {
    return (
      <div {...this.props}>
      <FlatButton
        style={this.style}
        onClick={this.redirectToCas}
        label="Login"
      />
      </div>
    );
  }
}
{'fraction_non_alphanumeric': 0.1415929203539823, 'fraction_numerical': 0.002359882005899705, 'mean_word_length': 2.9905882352941178, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2347417', 'n_tokens_mistral': 545, 'n_tokens_neox': 545, 'n_words': 115}