<commit_before>import React          from 'react';
import TextField      from '@material-ui/core/TextField';
import connectField   from 'uniforms/connectField';
import filterDOMProps from 'uniforms/filterDOMProps';

const Text = ({
    disabled,
    error,
    errorMessage,
    helperText,
    inputRef,
    label,
    name,
    onChange,
    placeholder,
    showInlineError,
    value,
    ...props
}) =>
    <TextField
        disabled={!!disabled}
        error={!!error}
        helperText={error && showInlineError && errorMessage || helperText}
        label={label}
        name={name}
        onChange={event => disabled || onChange(event.target.value)}
        placeholder={placeholder}
        ref={inputRef}
        value={value}
        {...filterDOMProps(props)}
    />
;

Text.defaultProps = {
    fullWidth: true,
    margin: 'normal',
    type: 'text'
};

export default connectField(Text);<commit_msg>Added type prop in TextField in uniforms-material.<commit_after>import React          from 'react';
import TextField      from '@material-ui/core/TextField';
import connectField   from 'uniforms/connectField';
import filterDOMProps from 'uniforms/filterDOMProps';

const Text = ({
    disabled,
    error,
    errorMessage,
    helperText,
    inputRef,
    label,
    name,
    onChange,
    placeholder,
    showInlineError,
    type,
    value,
    ...props
}) =>
    <TextField
        disabled={!!disabled}
        error={!!error}
        helperText={error && showInlineError && errorMessage || helperText}
        label={label}
        name={name}
        onChange={event => disabled || onChange(event.target.value)}
        placeholder={placeholder}
        ref={inputRef}
        type={type}
        value={value}
        {...filterDOMProps(props)}
    />
;

Text.defaultProps = {
    fullWidth: true,
    margin: 'normal',
    type: 'text'
};

export default connectField(Text);
{'fraction_non_alphanumeric': 0.12375458835867856, 'fraction_numerical': 0.0, 'mean_word_length': 2.6342857142857143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6709282', 'n_tokens_mistral': 533, 'n_tokens_neox': 541, 'n_words': 119}