<commit_before>import React from 'react'
import {Button, Col, Form, FormGroup, Input} from 'reactstrap'

const wordsHandler = (onWords) => (e) => {
  e.preventDefault()
  const words = []
  for (let i = 0; i < 12; i++) {
    words[i] = e.target['w' + i].value
  }
  onWords(words)
}

const Row = ({num}) => (
  <FormGroup row>
    <Col xs='3'>
      <Input type='text' autoCapitalize='none' autoComplete='off' name={'w' + (4 * num)} placeholder={(4 * num)} />
    </Col>
    <Col xs='3'>
      <Input type='text' autoCapitalize='none' autoComplete='off' name={'w' + (4 * num + 1)} placeholder={(4 * num + 1)} />
    </Col>
    <Col xs='3'>
      <Input type='text' autoCapitalize='none' autoComplete='off' name={'w' + (4 * num + 2)} placeholder={(4 * num + 2)} />
    </Col>
    <Col xs='3'>
      <Input type='text' autoCapitalize='none' autoComplete='off' name={'w' + (4 * num + 3)} placeholder={(4 * num + 3)} />
    </Col>
  </FormGroup>
)

const InputMnemonic = ({onBack, onWords}) => (
  <Form  onSubmit={wordsHandler(onWords)}>
    <Row num={0} />
    <Row num={1} />
    <Row num={2} />
    <Button color='primary' type='button' onClick={onBack}>
      Back
    </Button>
    <Button color='primary' type='submit' className='pull-right'>
      Confirm
    </Button>
  </Form>
)

export default InputMnemonic<commit_msg>Refactor autocomplete=off and autocorrect=off<commit_after>import React from 'react'
import {Button, Col, Form, FormGroup, Input} from 'reactstrap'

const wordsHandler = (onWords) => (e) => {
  e.preventDefault()
  const words = []
  for (let i = 0; i < 12; i++) {
    words[i] = e.target['w' + i].value
  }
  onWords(words)
}

const Row = ({num}) => (
  <FormGroup row>
    <Col xs='3'>
      <Input type='text' autoCapitalize='none' name={'w' + (4 * num)} placeholder={(4 * num)} />
    </Col>
    <Col xs='3'>
      <Input type='text' autoCapitalize='none' name={'w' + (4 * num + 1)} placeholder={(4 * num + 1)} />
    </Col>
    <Col xs='3'>
      <Input type='text' autoCapitalize='none' name={'w' + (4 * num + 2)} placeholder={(4 * num + 2)} />
    </Col>
    <Col xs='3'>
      <Input type='text' autoCapitalize='none' name={'w' + (4 * num + 3)} placeholder={(4 * num + 3)} />
    </Col>
  </FormGroup>
)

const InputMnemonic = ({onBack, onWords}) => (
  <Form autoCorrect='off' autoComplete='off' onSubmit={wordsHandler(onWords)}>
    <Row num={0} />
    <Row num={1} />
    <Row num={2} />
    <Button color='primary' type='button' onClick={onBack}>
      Back
    </Button>
    <Button color='primary' type='submit' className='pull-right'>
      Confirm
    </Button>
  </Form>
)

export default InputMnemonic
{'fraction_non_alphanumeric': 0.20937263794406652, 'fraction_numerical': 0.018140589569160998, 'mean_word_length': 3.3322422258592472, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 57, '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': '5296925', 'n_tokens_mistral': 988, 'n_tokens_neox': 954, 'n_words': 236}