<commit_before>import React from 'react';

export default (props) => {
  const onDateClick = () => {
    $('.datepicker').pickadate({
      selectMonths: true,
      selectYears: 15
    });

    $( ".datepicker" ).change(function(e) {
      const student = props.data;
      student.interview = e.target.value;
      props.updateStudent(student);
    });
  };

  return (
    <div className="card">
      <div className="card-content black-text">
        <span className="card-title"><span> {props.data.name} </span> </span>
        <hr />
        <section className="info"><span>Email:</span> <span> {props.data.email} </span></section>
        <section className="info">
          <span>Lesson:</span>
          <span> {props.data.lesson} of 8</span>
        </section>
        <section className="info"><span>Level:</span><span> {props.data.level} of 5</span></section>
        <section className="info"><span>Interview:</span>
          <span><input type="text" className="datepicker" value={props.data.interview} onClick={onDateClick} /></span>
        </section>
        <section className="info"><span>Decision:</span><span> {props.data.decision} </span></section>
        <section className="info"><span>Contacted:</span><span> {props.data.contacted} </span></section>
      </div>
    </div>
  );
};
<commit_msg>add ability to edit decision field of student<commit_after>import React from 'react';
import { Input } from 'react-materialize';

export default (props) => {
  const onDateClick = () => {
    $('.datepicker').pickadate({
      selectMonths: true,
      selectYears: 15
    });

    $( ".datepicker" ).change(function(e) {
      const student = props.data;
      student.interview = e.target.value;
      props.updateStudent(student);
    });
  };

  const onDecisionClick = (e) => {
    const student = props.data;
    student.decision = e.target.value;
    props.updateStudent(student);
  };

  return (
    <div className="card">
      <div className="card-content black-text">
        <span className="card-title"><span> {props.data.name} </span> </span>
        <hr />
        <section className="info"><span>Email:</span> <span> {props.data.email} </span></section>
        <section className="info">
          <span>Lesson:</span>
          <span> {props.data.lesson} of 8</span>
        </section>
        <section className="info"><span>Level:</span><span> {props.data.level} of 5</span></section>
        <section className="info"><span>Interview:</span>
          <span><input type="text" className="datepicker" value={props.data.interview} onClick={onDateClick} /></span>
        </section>
        <section className="info"><span>Decision:</span>
          <span>
            <Input type="select" onChange={onDecisionClick}>
              <option>{props.data.decision}</option>
              <option>Pending</option>
              <option>Accepted</option>
              <option>Denied</option>
            </Input>
          </span>
        </section>
        <section className="info"><span>Contacted:</span><span> {props.data.contacted} </span></section>
      </div>
    </div>
  );
};

{'fraction_non_alphanumeric': 0.18155619596541786, 'fraction_numerical': 0.002561639449247518, 'mean_word_length': 2.79126213592233, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 110, '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': '1982741', 'n_tokens_mistral': 941, 'n_tokens_neox': 918, 'n_words': 171}