<commit_before># Json Mock Data Generator

A simple tool for generating JSON mock data based on the configurable structure.

## Features

To be done.

## Configuration

To be done.

## Running

First, clone/fork the repo:

```
$ git clone <EMAIL>:ttulka/json-mock-data-generator.git
$ cd json-mock-data-generator
```
Now build it:
```
$ mvn clean package
```
Once this completes, a jar file will have been generated in the target folder.

And finally run it: 

```
$ java -jar target/json-mock-data-generator-<version>.jar
```

For the test purposes example configurations could be used:

```
> Configuration file: examples/simple.json
```
or
```<commit_msg>features added<commit_after># Json Mock Data Generator

A simple tool for generating JSON mock data based on the configurable structure.

There is a lot of online tool for the similar usage like [JSON Generator](http://www.json-generator.com), but all of them have a little problem - they fail when generating a big amount of data (milions of elements). For such purposes a local processing must be used.

## Features

The tool provides a simple configurable definition of the generated result:

- user-defined structure of a document (sub-elements),
- user-defined repeat of element,
- pre-defined value generators like name, e-mail, phone, etc.
- including a content of a local file,
- random values (numbers, dates, strings) with minimums and maximuns or
- random selection from a user-defined set.

## Configuration

To be done.

## Running

First, clone or fork the repo:

```
$ git clone <EMAIL>:ttulka/json-mock-data-generator.git
$ cd json-mock-data-generator
```
Now build it:
```
$ mvn clean package
```
Once this completes, a jar file will have been generated in the target folder.

And finally run it: 

```
$ java -jar target/json-mock-data-generator-<version>.jar
```

For the test purposes example configurations could be used:

```
> Configuration file: examples/simple.json
```
or
```
{'fraction_non_alphanumeric': 0.09851965288412455, 'fraction_numerical': 0.0, 'mean_word_length': 4.171503957783641, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '549455', 'n_tokens_mistral': 572, 'n_tokens_neox': 544, 'n_words': 247}