<commit_before>import {
  detached, div, button, span, Form,
} from 'hexagon-js';

export default () => {
  const theForm = div();
  new Form(theForm)
    .addText('Text', { required: true, placeholder: 'Name' })
    .addText('Text with Autocomplete', { required: true, placeholder: 'Name', autocompleteData: [1, 2, 3] })
    .addTextArea('Text Area', { placeholder: 'Name' })
    .addEmail('Email', { required: true, placeholder: '<EMAIL>' })
    .addUrl('Url', { placeholder: 'http://www.example.co.uk/' }) // Allows blank or valid URL (with http:// prefix)
    .addNumber('Number', { required: true })
    .addCheckbox('Checkbox')
    .addCheckbox('Checkbox', { required: true })
    .addPassword('Password')
    .addPassword('Password', { required: true })
    .addRadio('Radio', ['One', 'Two', 'Three'])
    .addRadio('Radio', ['One', 'Two', 'Three'], { required: true })
    .addPicker('Picker', ['red', 'green', 'blue'])
    .addPicker('Picker', ['red', 'green', 'blue'], { required: true })
    .addTagInput('Tag Input')
    .addTagInput('Tag Input', { required: true })
    .addTagInput('Tag Input', {
      required: true,
      tagInputOptions: {
        validator: (name) => {
          if (!isNaN(Number(name))) {
            return 'Please enter text';
          }
          return false;
        },
      },
    })
    .addFileInput('File Input')
    .addFileInput('File Input', { required: true })
    .addDatePicker('Date Picker')
    .addDatePicker('Date Picker', { required: true })
    .addTimePicker('Time Picker')
    .addTimePicker('Time Picker', { required: true })
    .addDateTimePicker('Date Time Picker')
    .addDateTimePicker('Date Time Picker', { required: true })
    .addAutocompletePicker('Autocomplete Picker', ['a', 'b', 'c'])
    .addAutocompletePicker('Autocomplete Picker', ['a', 'b', 'c'], { required: true })
    .addSubmit('Submit', 'fa fa-check')
    .on('submit', (data) => { console.log(data); });<commit_msg>chore: Fix lint issue<commit_after>import {
  detached, div, button, span, Form,
} from 'hexagon-js';

export default () => {
  const theForm = div();
  new Form(theForm)
    .addText('Text', { required: true, placeholder: 'Name' })
    .addText('Text with Autocomplete', { required: true, placeholder: 'Name', autocompleteData: [1, 2, 3] })
    .addTextArea('Text Area', { placeholder: 'Name' })
    .addEmail('Email', { required: true, placeholder: '<EMAIL>' })
    .addUrl('Url', { placeholder: 'http://www.example.co.uk/' }) // Allows blank or valid URL (with http:// prefix)
    .addNumber('Number', { required: true })
    .addCheckbox('Checkbox')
    .addCheckbox('Checkbox', { required: true })
    .addPassword('Password')
    .addPassword('Password', { required: true })
    .addRadio('Radio', ['One', 'Two', 'Three'])
    .addRadio('Radio', ['One', 'Two', 'Three'], { required: true })
    .addPicker('Picker', ['red', 'green', 'blue'])
    .addPicker('Picker', ['red', 'green', 'blue'], { required: true })
    .addTagInput('Tag Input')
    .addTagInput('Tag Input', { required: true })
    .addTagInput('Tag Input', {
      required: true,
      tagInputOptions: {
        validator: (name) => {
          if (!Number.isNaN(Number(name))) {
            return 'Please enter text';
          }
          return false;
        },
      },
    })
    .addFileInput('File Input')
    .addFileInput('File Input', { required: true })
    .addDatePicker('Date Picker')
    .addDatePicker('Date Picker', { required: true })
    .addTimePicker('Time Picker')
    .addTimePicker('Time Picker', { required: true })
    .addDateTimePicker('Date Time Picker')
    .addDateTimePicker('Date Time Picker', { required: true })
    .addAutocompletePicker('Autocomplete Picker', ['a', 'b', 'c'])
    .addAutocompletePicker('Autocomplete Picker', ['a', 'b', 'c'], { required: true })
    .addSubmit('Submit', 'fa fa-check')
    .on('submit', (data) => { console.log(data); });
{'fraction_non_alphanumeric': 0.1962783583991843, 'fraction_numerical': 0.0015294417537598777, 'mean_word_length': 3.4139482564679415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5914620', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1214, 'n_words': 297}