<commit_before>import uuid from 'uuid';
import sample from 'lodash/sample';
import range from 'lodash/range';
import schema2object from 'schema2object';
import generators from 'annogenerate';

const generate = schema2object.properties2object;

const adjectives = ['Super', 'Hyper', 'Awesome', 'Lame', 'Standard'];

export default (amount, { definitions, properties }) => range(amount).map(
  () => generate({
    generators,
    fieldGenerators: {
      id() {
        return uuid.v4();
      },
      boss() {
        return {
          name: this.name()
        };
      },
      name() {
        const forenames = ['Jack', 'Bo', 'John', 'Jill', 'Angus', 'Janet', 'Cecilia',
          'Daniel', 'Marge', 'Homer', 'Trevor', 'Fiona', 'Margaret', 'Ofelia'];
        const surnames = ['MacGyver', 'Johnson', 'Jackson', 'Robertson', 'Hull', 'Hill'];

        return `${sample(forenames)} ${sample(surnames)}`;
      },
      company() {
        const first = ['App', 'No', 'Micro', 'Ora', 'Sun', 'Soft', 'Accen', 'Syman'];
        const second = [
          'le', 'kia', 'soft', 'cle', 'ice',
          'ify', 'ture', 'tec', 'ware', ' Solutions'
        ];
        const third = ['Ltd.', 'Inc.'];

        return `${sample(first)}${sample(second)} ${sample(third)}`;
      },
      product() {
        const names = ['Apple', 'Pear', 'Strawberry', 'Pineapple', 'Potato', 'Tomato'];

        return `${sample(adjectives)} ${sample(names)}`;
      },
      position() {
        return sample(['Boss', 'Contractor', 'Client', '']);
      },
      address() {
        const suffixes = ['street', 'road', ' Road', 'Street', 'ton', ' Village', ''];
        const number = generators.number(1, 2000);

        return `${sample(adjectives)}${sample(suffixes)} ${number}`;
      },
      salary: generators.number.bind(null, 0, 10000),
      age: generators.number.bind(null, 1, 100),
      active() {
        return sample([true, false]);
      }
    },
    properties,
    definitions
  })
);<commit_msg>docs - Add missing whitespace to address generator<commit_after>import uuid from 'uuid';
import sample from 'lodash/sample';
import range from 'lodash/range';
import schema2object from 'schema2object';
import generators from 'annogenerate';

const generate = schema2object.properties2object;

const adjectives = ['Super', 'Hyper', 'Awesome', 'Lame', 'Standard'];

export default (amount, { definitions, properties }) => range(amount).map(
  () => generate({
    generators,
    fieldGenerators: {
      id() {
        return uuid.v4();
      },
      boss() {
        return {
          name: this.name()
        };
      },
      name() {
        const forenames = ['Jack', 'Bo', 'John', 'Jill', 'Angus', 'Janet', 'Cecilia',
          'Daniel', 'Marge', 'Homer', 'Trevor', 'Fiona', 'Margaret', 'Ofelia'];
        const surnames = ['MacGyver', 'Johnson', 'Jackson', 'Robertson', 'Hull', 'Hill'];

        return `${sample(forenames)} ${sample(surnames)}`;
      },
      company() {
        const first = ['App', 'No', 'Micro', 'Ora', 'Sun', 'Soft', 'Accen', 'Syman'];
        const second = [
          'le', 'kia', 'soft', 'cle', 'ice',
          'ify', 'ture', 'tec', 'ware', ' Solutions'
        ];
        const third = ['Ltd.', 'Inc.'];

        return `${sample(first)}${sample(second)} ${sample(third)}`;
      },
      product() {
        const names = ['Apple', 'Pear', 'Strawberry', 'Pineapple', 'Potato', 'Tomato'];

        return `${sample(adjectives)} ${sample(names)}`;
      },
      position() {
        return sample(['Boss', 'Contractor', 'Client', '']);
      },
      address() {
        const suffixes = ['street', 'road', ' Road', ' Street', 'ton', ' Village', ''];
        const number = generators.number(1, 2000);

        return `${sample(adjectives)}${sample(suffixes)} ${number}`;
      },
      salary: generators.number.bind(null, 0, 10000),
      age: generators.number.bind(null, 1, 100),
      active() {
        return sample([true, false]);
      }
    },
    properties,
    definitions
  })
);
{'fraction_non_alphanumeric': 0.20144063586686536, 'fraction_numerical': 0.009935419771485345, 'mean_word_length': 2.763551401869159, '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': '3601244', 'n_tokens_mistral': 1319, 'n_tokens_neox': 1254, 'n_words': 308}