<commit_before>import React from "react"
import { Field as FormikField } from "formik"
import { default as Input } from "../../Input"

// export interface FormikInputProps<T> extends InputProps {}

/**
 * An input with the standard FormimkProps added for rendering niceness
 */
export const Field: (props: any) => any = props => {
  const { name, type, placeholder, block } = props
  return (
    <FormikField
      name={name}
      type={type}
      placeholder={placeholder}
      // prettier-ignore
      // because restProps should not have a trailing comma (fixed in prettier 1.9)
      render={({
        field, // { name, value, onChange, onBlur }
        form: { touched, errors, values }, // also values, setXXXX, handleXXXX, dirty, isValid, status, etc.
        ...restProps
      }) => (
        <div>
          <Input
          {...field}
            block={block}
            type={type}
            placeholder={placeholder}
            error={touched[name] && errors[name]}
            value={values[name]}
            {...restProps}
          />
        </div>
      )}
    />
  )
}
<commit_msg>remove prettier-ignore<commit_after>import React from "react"
import { Field as FormikField } from "formik"
import { default as Input } from "../../Input"

// export interface FormikInputProps<T> extends InputProps {}

/**
 * An input with the standard FormimkProps added for rendering niceness
 */
export const Field: (props: any) => any = props => {
  const { name, type, placeholder, block } = props
  return (
    <FormikField
      name={name}
      type={type}
      placeholder={placeholder}
      render={({
        field, // { name, value, onChange, onBlur }
        form: { touched, errors, values }, // also values, setXXXX, handleXXXX, dirty, isValid, status, etc.
        ...restProps
      }) => (
        <div>
          <Input
            {...field}
            block={block}
            type={type}
            placeholder={placeholder}
            error={touched[name] && errors[name]}
            value={values[name]}
            {...restProps}
          />
        </div>
      )}
    />
  )
}

{'fraction_non_alphanumeric': 0.1359360301034807, 'fraction_numerical': 0.0009407337723424271, 'mean_word_length': 2.0127478753541075, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '3297552', 'n_tokens_mistral': 596, 'n_tokens_neox': 593, 'n_words': 172}