<commit_before># Augment

A simple script for image augmentation using `multiprocessing` and
[PILlow](https://pillow.readthedocs.io).

Part of the interface is inspired by
[torchvision.transforms](http://pytorch.org/docs/torchvision/transforms.html).

## Usage

```python
from src.core import Manager
import src.transformations as T

transformations = [<commit_msg>Additional explanation about loading and saving files.<commit_after># Augment

A simple script for image augmentation using `multiprocessing` and
[PILlow](https://pillow.readthedocs.io).

Part of the interface is inspired by
[torchvision.transforms](http://pytorch.org/docs/torchvision/transforms.html).

## Usage

The script will load all the images in `src/**/*.jpg` and will save the
augmented images respecting the source directory hierarchy.

```python
from src.core import Manager
import src.transformations as T

transformations = [
{'fraction_non_alphanumeric': 0.09734513274336283, 'fraction_numerical': 0.0, 'mean_word_length': 5.418439716312057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1133164', 'n_tokens_mistral': 267, 'n_tokens_neox': 262, 'n_words': 88}