<commit_before>var React = require('react-native');
var Login = require('./login');
var JoinClassView = require('./../student/joinClassView');
var StartClassView = require('./../teacher/startClassView');
var api = require('./../../utils/api');

var {
  View,
  Text,
  StyleSheet,
  TextInput,
  TouchableHighlight,
  Picker,
  ActivityIndicatorIOS,
  Navigator
} = React;

class Signup extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      username: '',
      password: '',
      confirmedPassword: '',
      firstName: '',
      lastName: '',
      accountType: 'student',
      isLoading: false,
      error: false,
      passwordError: false
    };
  }

  handleFirstNameChange(event) {
    this.setState({
      firstName: event.nativeEvent.text
    });
  }

  handleLastNameChange(event) {
    this.setState({
      lastName: event.nativeEvent.text
    });
  }

  handleUsernameChange(event) {
    this.setState({
      username: event.nativeEvent.text
    });
  }

  handlePasswordChange(event) {
    this.setState({
      password: event.nativeEvent.text
    });
  }

  handleConfirmedPasswordChange(event) {
    this.setState({
      confirmedPassword: event.nativeEvent.text
    });<commit_msg>Implement signup email handler and email state   * Re-order state object to reflect order of inputs<commit_after>var React = require('react-native');
var Login = require('./login');
var JoinClassView = require('./../student/joinClassView');
var StartClassView = require('./../teacher/startClassView');
var api = require('./../../utils/api');

var {
  View,
  Text,
  StyleSheet,
  TextInput,
  TouchableHighlight,
  Picker,
  ActivityIndicatorIOS,
  Navigator
} = React;

class Signup extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      firstName: '',
      lastName: '',
      username: '',
      email: '',
      password: '',
      confirmedPassword: '',
      accountType: 'student',
      isLoading: false,
      error: false,
      passwordError: false
    };
  }

  handleFirstNameChange(event) {
    this.setState({
      firstName: event.nativeEvent.text
    });
  }

  handleLastNameChange(event) {
    this.setState({
      lastName: event.nativeEvent.text
    });
  }

  handleUsernameChange(event) {
    this.setState({
      username: event.nativeEvent.text
    });
  }

  handleEmailChange(event) {
    this.setState({
      email: event.nativeEvent.text
    });
  }

  handlePasswordChange(event) {
    this.setState({
      password: event.nativeEvent.text
    });
  }

  handleConfirmedPasswordChange(event) {
    this.setState({
      confirmedPassword: event.nativeEvent.text
    });
{'fraction_non_alphanumeric': 0.13743016759776536, 'fraction_numerical': 0.0, 'mean_word_length': 2.8703170028818445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2221910', 'n_tokens_mistral': 801, 'n_tokens_neox': 799, 'n_words': 149}