<commit_before>/**
 * React Starter Kit (https://www.reactstarterkit.com/)
 *
 * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */

import React, { PropTypes } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Login.scss';

function Login({ title }) {
  return (
    <div className={s.root}>
      <div className={s.container}>
        <h1>{title}</h1>
        <div>
          <h4>Username</h4>
        	<input type="text" id="username" placeholder="Username" tabIndex="1" className={s.inputField} />
        </div>
        <div>
          <h4>Password</h4>
        	<input type="text" id="password" placeholder="Password" tabIndex="2" className={s.inputField}/>
        </div>
        	<div type="button" className={s.buttonPrimary} name="login">Login</div>
      </div>
    </div>
  );
}

Login.propTypes = { title: PropTypes.string.isRequired };

export default withStyles(Login, s);<commit_msg>adding link to login button<commit_after>/**
 * React Starter Kit (https://www.reactstarterkit.com/)
 *
 * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */

import React, { PropTypes } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Login.scss';
import Link from '../../components/Link';

function Login({ title }) {
  return (
    <div className={s.root}>
      <div className={s.container}>
        <h1>{title}</h1>
        <div>
          <h4>Username</h4>
        	<input type="text" id="username" placeholder="Username" tabIndex="1" className={s.inputField} />
        </div>
        <div>
          <h4>Password</h4>
        	<input type="text" id="password" placeholder="Password" tabIndex="2" className={s.inputField}/>
        </div>
          <Link to="/vote"><div type="button" className={s.buttonPrimary} name="login">Login</div></Link>
      </div>
    </div>
  );
}

Login.propTypes = { title: PropTypes.string.isRequired };

export default withStyles(Login, s);
{'fraction_non_alphanumeric': 0.15626383355467022, 'fraction_numerical': 0.01416555998229305, 'mean_word_length': 3.124087591240876, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2980139', 'n_tokens_mistral': 696, 'n_tokens_neox': 690, 'n_words': 184}