<commit_before>import React, {Component} from 'react';
import './style/Login.css';
<meta name="google-signin-client_id" content="419580728333-lrjvoak9e2kjapl3b6t82nlekrkl3ltq.apps.googleusercontent.com"></meta>

class Login extends Component {
    render() {
	return (
		<div>
		<div className='intro mtu-yellow-text jet-black-bg'>
		<h1>Iditarod</h1>
		<h2>MTU Course Planner</h2>
		</div>
		<div className='content-section'>
		<div className='valign-wrapper'>
		
		<script src="https://apis.google.com/js/platform.js" async defer></script>
		<a
		className="g-signin2" data-onSuccess= "onSignIn()"
		onClick={(e) => {
			e.preventDefault();
			onSignIn();
			this
			.context
			.router
			.transitionTo('/dashboard');
		    }}></a>
		<a href="#" onClick="signOut()">Sign Out</a>
		</div>
		</div>
		<p id='quickstart-sign-in-status'>status</p>
		</div>
		);
    }
}

function onSignIn(googleUser) {
  var profile = googleUser.getBasicProfile();
  console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
  console.log('Name: ' + profile.getName());
  console.log('Image URL: ' + profile.getImageUrl());
  console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
}
/*
 window.onLoadCallback = function signOut(googleUser) {
    //var auth2 = gapi.auth2.getAuthInstance();
    auth2.signOut().then(function () {
      console.log('User signed out.');
    });
  }*/

Login.contextTypes = {
    router: React.PropTypes.object
};

export default Login;<commit_msg>Minor UI adjustments and minor bug corrections<commit_after>import React, {Component} from 'react';
import './style/Login.css';
<meta name="google-signin-client_id" content="419580728333-lrjvoak9e2kjapl3b6t82nlekrkl3ltq.apps.googleusercontent.com"></meta>

class Login extends Component {
    render() {
	return (
		<div>
		<div className='intro mtu-yellow-text jet-black-bg'>
		<h1>Iditarod</h1>
		<h2>MTU Course Planner</h2>
		</div>
		<div className='content-section'>
		<div className='valign-wrapper'>
		
		<script src='https://apis.google.com/js/platform.js' async defer></script>
		<a
		className='g-signin2' data-onSuccess='onSignIn()'
		onClick={(e) => {
			e.preventDefault();
			onSignIn();
			this
			.context
			.router
			.transitionTo('/dashboard');
		    }}></a>
		</div>
		<a href='#' onClick='signOut();'>Sign Out</a>
		<p id='quickstart-sign-in-status'>Status</p>
		</div>
		</div>
		);
    }
}

function onSignIn(googleUser) {
  var profile = googleUser.getBasicProfile();
  console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
  console.log('Name: ' + profile.getName());
  console.log('Image URL: ' + profile.getImageUrl());
  console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
}
 /*//Code for the sign out function. Will work once gapi is figured out
 window.onLoadCallback = function signOut(googleUser) {
    var auth2 = gapi.auth2.getAuthInstance();
    auth2.signOut().then(function () {
      console.log('User signed out.');
    });
  }*/

Login.contextTypes = {
    router: React.PropTypes.object
};

export default Login;
{'fraction_non_alphanumeric': 0.17336683417085427, 'fraction_numerical': 0.016959798994974875, 'mean_word_length': 3.8404255319148937, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 49, 'https://': 2, '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': '7185749', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1098, 'n_words': 229}