<commit_before>import React from 'react';

import './Input.css';

const Input = props => {
    const { type, input, placeholder, disabled, meta, warning } = props;

    return (
        <input
            className={`j-input ${!disabled && meta.error && meta.touched && ' j-input--error'}`}
            type={type}
            placeholder={placeholder}
            disabled={disabled}
            {...input}
        />
    );
};

export default Input;<commit_msg>Do not return undefined as classname if not error<commit_after>import React from 'react';

import './Input.css';

const Input = props => {
    const { type, input, placeholder, disabled, meta, warning } = props;

    return (
        <input
            className={`j-input${(!disabled && meta.error && meta.touched) ? ' j-input--error' : ''}`}
            type={type}
            placeholder={placeholder}
            disabled={disabled}
            {...input}
        />
    );
};

export default Input;
{'fraction_non_alphanumeric': 0.15098241985522234, 'fraction_numerical': 0.0, 'mean_word_length': 2.142857142857143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6931204', 'n_tokens_mistral': 267, 'n_tokens_neox': 262, 'n_words': 68}