<commit_before>/**
 * Drop down menu that will be used to select student grade.
 * @author: dv13trm, c14gls, group 6
 */

/**
 * Drop down menu that lets the teacher choose the grade for the student.
 *
 */
var DropDown = React.createClass({
    /**
     * Set initialstate for drop down to U
     * @returns {{value: string}} value U to dropdown.
     */
    getInitialState: function() {
        return {
            value: 'U'
        }
    },
    /**
     * Set value to entered event.
     * @param event change that happend to drop down, ex. if changed from U to G.
     */
    change: function(event) {
        this.setState({value: event.target.value})
    },
    /**
     * Render function for dropdown menu.
     * @returns {XML} A dropdown menu with values.
     */
    render: function() {
        return(
            <div id="dropdown">
                <label for="dropDownMenu">Grade</label>
                <select id="dropDownMenu" onChange={this.change} value={this.state.value}>
                    <option value="U">U</option>
                    <option value="O">O</option>
                    <option value="K">K</option>
                    <option value="G">G</option><commit_msg>Code review: Nothing big, just comments. Good job!<commit_after>/**
 * Drop down menu that will be used to select student grade.
 * @author: dv13trm, c14gls, group 6
 */
var DropDown = React.createClass({
    /**
     * Set initial state for drop down to grade U
     * @returns {{value: string}} value U to dropdown.
     */
    getInitialState: function() {
        return {
            value: 'U'
        }
    },
    /**
     * Set value to entered event.
     * @param event change that happened to drop down, ex. if changed from grade U to G.
     */
    change: function(event) {
        this.setState({value: event.target.value})
    },
    /**
     * Render function for dropdown menu.
     * @returns {XML} A dropdown menu with values.
     */
    render: function() {
        return(
            <div id="dropdown">
                <label for="dropDownMenu">Grade</label>
                <select id="dropDownMenu" onChange={this.change} value={this.state.value}>
                    <option value="U">U</option>
                    <option value="O">O</option>
                    <option value="K">K</option>
                    <option value="G">G</option>
{'fraction_non_alphanumeric': 0.1281078803202697, 'fraction_numerical': 0.004214075010535188, 'mean_word_length': 1.902200488997555, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '5098170', 'n_tokens_mistral': 675, 'n_tokens_neox': 656, 'n_words': 210}