<commit_before>Generators
==========

Unlike processors and encoders, generators create content out of nothing, rather than modifying already existing content, for example text image generation.

You can register as many generators as you like.

Given a Dragonfly app

    app = Dragonfly[:images]

we can get generated content using

    image = app.generate(:some_method, :some => :args)

where `:some_method` is added by the configured generators.

ImageMagick Generator
---------------------
See {file:Imagemagick}.

Custom Generators
-----------------
To register a single custom generator:<commit_msg>docs: fix link to ImageMagick page from Generators page<commit_after>Generators
==========

Unlike processors and encoders, generators create content out of nothing, rather than modifying already existing content, for example text image generation.

You can register as many generators as you like.

Given a Dragonfly app

    app = Dragonfly[:images]

we can get generated content using

    image = app.generate(:some_method, :some => :args)

where `:some_method` is added by the configured generators.

ImageMagick Generator
---------------------
See {file:ImageMagick}.

Custom Generators
-----------------
To register a single custom generator:
{'fraction_non_alphanumeric': 0.1265923566878981, 'fraction_numerical': 0.0, 'mean_word_length': 3.6043956043956045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7452798', 'n_tokens_mistral': 322, 'n_tokens_neox': 301, 'n_words': 141}