<commit_before>"use strict";

import $ from "jquery";
import _ from "lodash";
import React from "react";
import { Input, ButtonInput } from "react-bootstrap";
import DeepLinkedStateMixin from "react-deep-link-state";


export default React.createClass({
  displayName: "RegisterContestant",
  mixins: [DeepLinkedStateMixin],

  getInitialState() {
    return {
      hasErrored: false,
      waitingForServerResponse: false,
      errors: [],

      contestant: {
        /*eslint-disable */
        address: "",
        city: "",
        county: "",
        country: "România",
        zip_code: "",

        sex: "1",
        cnp: "",
        id_card_type: "",
        id_card_number: "",
        phone_number: "",
        // TODO @palcu: add fallback with jQuery custom plugin
        date_of_birth: "",
        school_name: "",
        grade: "5",
        school_county: "",
        school_city: "",
        school_country: "România",

        mentoring_teacher_first_name: "",
        mentoring_teacher_last_name: "",

        accompanying_teacher_first_name: "",
        accompanying_teacher_last_name: ""
        /*eslint-enable */
      },

      officialParticipant: "false",
      presentInCamp: "false"
    };
  },

  render() {
    return <form onSubmit={this.onFormSubmit} className="RegisterContestant">
      <Input type="select"
             label="Gen *"
             valueLink={this.deepLinkState(["contestant", "sex"])}>
        <option value="1">Masculin</option>
        <option value="2">Feminin</option>
      </Input>
      <Input
        type="text"
        placeholder="România"
        label="Țara *"
        onChange={this.onCountryChange}
        required />
      <Input
        type="text"
        placeholder="Vrancea"
        label="Județ"
        onChange={this.onCountyChange}<commit_msg>hotfix typo. cc @robert.dolca<commit_after>"use strict";

import $ from "jquery";
import _ from "lodash";
import React from "react";
import { Input, ButtonInput } from "react-bootstrap";
import DeepLinkedStateMixin from "react-deep-link-state";


export default React.createClass({
  displayName: "RegisterContestant",
  mixins: [DeepLinkedStateMixin],

  getInitialState() {
    return {
      hasErrored: false,
      waitingForServerResponse: false,
      errors: [],

      contestant: {
        /*eslint-disable */
        address: "",
        city: "",
        county: "",
        country: "România",
        zip_code: "",

        sex: "1",
        cnp: "",
        id_card_type: "",
        id_card_number: "",
        phone_number: "",
        // TODO @palcu: add fallback with jQuery custom plugin
        date_of_birth: "",
        school_name: "",
        grade: "5",
        school_county: "",
        school_city: "",
        school_country: "România",

        mentoring_teacher_first_name: "",
        mentoring_teacher_last_name: "",

        accompanying_teacher_first_name: "",
        accompanying_teacher_last_name: ""
        /*eslint-enable */
      },

      officialParticipant: "false",
      presentInCamp: "false"
    };
  },

  render() {
    return <form onSubmit={this.onFormSubmit} className="RegisterContestant">
      <Input type="select"
             label="Gen *"
             valueLink={this.deepLinkState(["contestant", "sex"])}>
        <option value="1">Masculin</option>
        <option value="2">Feminin</option>
      </Input>
      <Input
        type="text"
        placeholder="România"
        label="Țara *"
        onChange={this.onCountryChange}
        required />
      <Input
        type="text"
        placeholder="Vrancea"
        onChange={this.onCountyChange}
{'fraction_non_alphanumeric': 0.13406593406593406, 'fraction_numerical': 0.002197802197802198, 'mean_word_length': 2.319051959890611, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, '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': '1369596', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1085, 'n_words': 201}