<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './index.scss';

class Input extends React.Component {
    static propTypes = {
        multiline: PropTypes.bool,
        required: PropTypes.bool,

        autoComplete: PropTypes.bool,
        autoFocus: PropTypes.bool,
        disabled: PropTypes.bool,
        readOnly: PropTypes.bool,
        autoCorrect: PropTypes.bool,

        name: PropTypes.string,
        title: PropTypes.string,
        type: PropTypes.string,
        value: PropTypes.string,
        placeholder: PropTypes.string,

        inputMode: PropTypes.string,
        pattern: PropTypes.string,
        tabIndex: PropTypes.string,
        maxLength: PropTypes.string,

        message: PropTypes.string,

        className: PropTypes.string,
        style: PropTypes.object,
        validator: PropTypes.func,
        inputRef: PropTypes.func,
        onInput: PropTypes.func,
        onChange: PropTypes.func,
        onBlur: PropTypes.func,
        onFocus: PropTypes.func,
    }
    static defaultProps = {
        required: false,
        message: 'This field is required',
        inputRef: () => { },
        onInput: () => { },<commit_msg>Allow tabIndex to be a number or a string (TODO: other props should be like this)<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './index.scss';

class Input extends React.Component {
    static propTypes = {
        multiline: PropTypes.bool,
        required: PropTypes.bool,

        autoComplete: PropTypes.bool,
        autoFocus: PropTypes.bool,
        disabled: PropTypes.bool,
        readOnly: PropTypes.bool,
        autoCorrect: PropTypes.bool,

        name: PropTypes.string,
        title: PropTypes.string,
        type: PropTypes.string,
        value: PropTypes.string,
        placeholder: PropTypes.string,

        inputMode: PropTypes.string,
        pattern: PropTypes.string,
        tabIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
        maxLength: PropTypes.string,

        message: PropTypes.string,

        className: PropTypes.string,
        style: PropTypes.object,
        validator: PropTypes.func,
        inputRef: PropTypes.func,
        onInput: PropTypes.func,
        onChange: PropTypes.func,
        onBlur: PropTypes.func,
        onFocus: PropTypes.func,
    }
    static defaultProps = {
        required: false,
        message: 'This field is required',
        inputRef: () => { },
        onInput: () => { },
{'fraction_non_alphanumeric': 0.09857527916827108, 'fraction_numerical': 0.0, 'mean_word_length': 2.3872229465449806, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2315289', 'n_tokens_mistral': 674, 'n_tokens_neox': 713, 'n_words': 178}