<commit_before>import React from 'react';
import { Link } from 'react-router';
import Header from '../header.jsx';
import BaseButton from '../base-button.jsx';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import TextField from 'material-ui/TextField';

var Login = React.createClass({
  getInitialState: function() {
    return {
      userType: ""
    };
  },

  selectorChange: function(event, index, value) {
    this.setState({
      userType: value
    })
  },

  renderUserLink: function() {
    if(this.state.userType === 'piccniccer') {
      return <BaseButton buttonLink={"/piccniccer-orders"} buttonText={"Piccniccer Login"}/>
    } else if (this.state.userType === 'retailer'){
      return <BaseButton buttonLink={"/retailer-orders"} buttonText={"Retailer Login"}/>
    } else {
      return <BaseButton buttonLink={"/"} buttonText={"Login"}/>
    }
  },

  render: function() {
    return (
      <div>
        <div className="custom-container">
          <Header headerTheme={"redNav"} text={"Piccnicc"} iconRight={""} iconLeft={""}/>
          <div className="row login-container">
            <div className="center-align">
              <div className="row">
                <SelectField className="dropdown" value={this.state.userType} floatingLabelText="Username" onChange={this.selectorChange}>
                    <MenuItem value="piccniccer" primaryText="Piccniccer" />
                    <MenuItem value="retailer" primaryText="Retailer" />
                </SelectField >
              </div>
              <div className="row">
                <TextField id="password" hintText="Password" floatingLabelText="Password" />
              </div>
            </div>
          </div>

          {this.renderUserLink()}
      </div>
    </div>
    );
  }
});

module.exports = Login;<commit_msg>Added customer link to login screen<commit_after>import React from 'react';
import { Link } from 'react-router';
import Header from '../header.jsx';
import BaseButton from '../base-button.jsx';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import TextField from 'material-ui/TextField';

var Login = React.createClass({
  getInitialState: function() {
    return {
      userType: ""
    };
  },

  selectorChange: function(event, index, value) {
    this.setState({
      userType: value
    })
  },

  renderUserLink: function() {
    if(this.state.userType === 'piccniccer') {
      return <BaseButton buttonLink={"/piccniccer-orders"} buttonText={"Piccniccer Login"}/>
    } else if (this.state.userType === 'retailer'){
      return <BaseButton buttonLink={"/retailer-orders"} buttonText={"Retailer Login"}/>
    } else {
      return <BaseButton buttonLink={"/"} buttonText={"Login"}/>
    }
  },

  render: function() {
    return (
      <div>
        <div className="custom-container">
          <Header headerTheme={"redNav"} text={"Piccnicc"} iconRight={""} iconLeft={""}/>
          <div className="row login-container">
            <div className="center-align">
              <div className="row">
                <SelectField className="dropdown" value={this.state.userType} floatingLabelText="Username" onChange={this.selectorChange}>
                    <MenuItem value="piccniccer" primaryText="Piccniccer" />
                    <MenuItem value="retailer" primaryText="Retailer" />
                    <MenuItem value="customer" primaryText="Customer" />
                </SelectField >
              </div>
              <div className="row">
                <TextField id="password" hintText="Password" floatingLabelText="Password" />
              </div>
            </div>
          </div>

          {this.renderUserLink()}
      </div>
    </div>
    );
  }
});

module.exports = Login;
{'fraction_non_alphanumeric': 0.1518160438986151, 'fraction_numerical': 0.0, 'mean_word_length': 2.628436018957346, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 46, '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': '5304561', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1078, 'n_words': 227}