<commit_before>Shortcuts
=========

When you call {Dragonfly::App#fetch fetch}, {Dragonfly::ExtendedTempObject#transform transform},
{Dragonfly::App#url_for url_for}, (or {Dragonfly::ActiveRecordExtensions::Attachment#url url} on an ActiveRecord attachment), you can specify all the job parameters
necessary to fetch the appropriate content.

The parameters are the following:

  - `:uid` - the uid used by the datastore to retrieve the data (was returned when stored)
  - `:processing_method` - the method used to do the processing
  - `:processing_options` - options hash passed to the processing method
  - `:format` - the format to encode the data with, e.g. 'png'
  - `:encoding` - an options hash passed to the encoder for other options, e.g. bitrate, etc.

Say we have an app configured with the {Dragonfly::RMagickConfiguration RMagickConfiguration}

    app = Dragonfly::App[:my_app]
    app.configure_with(Dragonfly::RMagickConfiguration)

we can call things like

    app.fetch 'some_uid',
      :processing_method => :resize_and_crop,<commit_msg>Fixed link to url_for<commit_after>Shortcuts
=========

When you call {Dragonfly::App#fetch fetch}, {Dragonfly::ExtendedTempObject#transform transform},
{Dragonfly::UrlHandler#url_for url_for}, (or {Dragonfly::ActiveRecordExtensions::Attachment#url url} on an ActiveRecord attachment), you can specify all the job parameters
necessary to fetch the appropriate content.

The parameters are the following:

  - `:uid` - the uid used by the datastore to retrieve the data (was returned when stored)
  - `:processing_method` - the method used to do the processing
  - `:processing_options` - options hash passed to the processing method
  - `:format` - the format to encode the data with, e.g. 'png'
  - `:encoding` - an options hash passed to the encoder for other options, e.g. bitrate, etc.

Say we have an app configured with the {Dragonfly::RMagickConfiguration RMagickConfiguration}

    app = Dragonfly::App[:my_app]
    app.configure_with(Dragonfly::RMagickConfiguration)

we can call things like

    app.fetch 'some_uid',
      :processing_method => :resize_and_crop,
{'fraction_non_alphanumeric': 0.09666823087752228, 'fraction_numerical': 0.0, 'mean_word_length': 4.955307262569832, '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': '7451149', 'n_tokens_mistral': 615, 'n_tokens_neox': 600, 'n_words': 226}