<commit_before>import React from 'react';
import { createItem } from '../../lib/api-client';

export default class CreateItemForm extends React.Component {

    constructor() {
        super();
        this.state = {
            id: ''
        };
    }

    changeId(e) {
        this.setState({
            id: e.target.value
        });
    }

    submit(e) {
        e.preventDefault();
        createItem(this.state.id);
    }

    render() {
        return (
            <div className='create-item-form'>
                <h1>Create an Item</h1>
                <form onSubmit={this.submit.bind(this)}>
                    <input type='text' value={this.state.id} onChange={this.changeId.bind(this)} placeholder='ID' />
                    <input type='submit' value='Create Item' />
                </form>
            </div>
        );
    }

}<commit_msg>Began looking at adding items<commit_after>import React from 'react';
import { createItem } from '../../lib/api-client';

export default class CreateItemForm extends React.Component {

    constructor() {
        super();
        this.state = {
            id: ''
        };
    }

    changeId(e) {
        this.setState({
            id: e.target.value
        });
    }

    submit(e) {
        e.preventDefault();
        createItem(this.state.id);
    }

    render() {
        return (
            <div className='create-item-form'>
                <h1>Create an Item</h1>
                <form onSubmit={this.submit.bind(this)}>
                    <input type='text' value={this.state.id} onChange={this.changeId.bind(this)} placeholder='ID' />
                    <input type='submit' value='Create Item' />
                    <select value=''>
                      <option value="A">Apple</option>
                      <option value="B">Banana</option>
                      <option value="C">Cranberry</option>
                    </select>
                </form>
            </div>
        );
    }

}
{'fraction_non_alphanumeric': 0.14444444444444443, 'fraction_numerical': 0.00202020202020202, 'mean_word_length': 1.4639303482587065, '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': '3858088', 'n_tokens_mistral': 561, 'n_tokens_neox': 541, 'n_words': 103}