<commit_before># delayed_job Mongoid backend
[![Build Status](https://secure.travis-ci.org/collectiveidea/delayed_job_mongoid.png?branch=master)][travis]
[![Dependency Status](https://gemnasium.com/collectiveidea/delayed_job_mongoid.png?travis)][gemnasium]
[![Code Climate](https://codeclimate.com/badge.png)][codeclimate]

[travis]: http://travis-ci.org/collectiveidea/delayed_job_mongoid
[gemnasium]: https://gemnasium.com/collectiveidea/delayed_job_mongoid
[codeclimate]: https://codeclimate.com/github/collectiveidea/delayed_job_mongoid

## Requirements

Make sure you are using MongoDB version 1.3 or newer. `delayed_job_mongoid`
uses the `findandmodify` command which is only available in recent versions.

## Installation

Add the gem to your Gemfile:

    gem 'delayed_job_mongoid'

After running `bundle install`, create the indexes (and don't forget to do this
on your production database):

    script/rails runner 'Delayed::Backend::Mongoid::Job.create_indexes'
<commit_msg>README includes steps to generate script/delayed_job<commit_after># delayed_job Mongoid backend
[![Build Status](https://secure.travis-ci.org/collectiveidea/delayed_job_mongoid.png?branch=master)][travis]
[![Dependency Status](https://gemnasium.com/collectiveidea/delayed_job_mongoid.png?travis)][gemnasium]
[![Code Climate](https://codeclimate.com/badge.png)][codeclimate]

[travis]: http://travis-ci.org/collectiveidea/delayed_job_mongoid
[gemnasium]: https://gemnasium.com/collectiveidea/delayed_job_mongoid
[codeclimate]: https://codeclimate.com/github/collectiveidea/delayed_job_mongoid

## Requirements

Make sure you are using MongoDB version 1.3 or newer. `delayed_job_mongoid`
uses the `findandmodify` command which is only available in recent versions.

## Installation

Add the gem to your Gemfile:

    gem 'delayed_job_mongoid'

After running `bundle install`, create the indexes (and don't forget to do this
on your production database):

    script/rails runner 'Delayed::Backend::Mongoid::Job.create_indexes'

To generate script/delayed_job:

    rails generate delayed_job

{'fraction_non_alphanumeric': 0.11319845857418112, 'fraction_numerical': 0.0019267822736030828, 'mean_word_length': 6.58029197080292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '158137', 'n_tokens_mistral': 682, 'n_tokens_neox': 681, 'n_words': 147}