<commit_before>== Description
Turn your boring demo website and placeholder images into a beautiful display of artwork.

In your Gemfile, add the following :
    gem "sex_it_up", ">= 1.0.0"

Then perform the following from the root of your application directory :

    bundle install

Now we need to copy over the needed migration :
    rails g sex_it_up
    rake db:migrate

== Displaying Images

If you want to display a random image for the term 'dog', first add the following to your Rakefile :
    require 'tasks/sex_it_up'

Once you have the rake task available, you can issue the following rake command to warm the image cache for a given term :
    rake sex_it_up:cache[<Term>]

    e.g. :
    rake sex_it_up:cache["dog"]

Once the rake task has completed, change your erb view to call the following helper :
    sexy_image('dog', :width => 100, :height => 100)

This helper will find a random image for the given term, scale it to the passed in dimensions, and display it.

== Other Uses
If you wanted to replace your boring default user avatars, you could do the following
    user.icon = SexItUp::SexItUpImage.find_all('dog').random.first

== Sample Screenshot
{Screenshot}[http://imgur.com/bmHvj.png]

== Copyright

Copyright (c) 2010 <NAME>. See LICENSE for details.<commit_msg>Updated readme.<commit_after>== Description
Turn your boring demo website and placeholder images into a beautiful display of artwork.

In your Gemfile, add the following :
    gem "sex_it_up", ">= 1.0.0"

Then perform the following from the root of your application directory :

    bundle install

Now we need to copy over the needed migration :
    rails g sex_it_up
    rake db:migrate

== Displaying Images

If you want to display a random image for the term 'dog', first add the following to your Rakefile :
    require 'tasks/sex_it_up'

Once you have the rake task available, you can issue the following rake command to warm the image cache for a given term :
    rake sex_it_up:cache[<Term>]

    e.g. :
    rake sex_it_up:cache["dog"]

Once the rake task has completed, change your erb view to call the following helper :
    sexy_image('dog', :width => 100, :height => 100)

This helper will find a random image for the given term, scale it to the passed in dimensions, and display it.

== Other Uses
If you wanted to replace your boring default user avatars, you could do the following
    user.icon = SexItUp::SexItUpImage.find_all('dog').random.first

== Sample Screenshot
    {Screenshot}[http://imgur.com/bmHvj.png]

== Copyright

Copyright (c) 2010 <NAME>. See LICENSE for details.
{'fraction_non_alphanumeric': 0.07380216383307574, 'fraction_numerical': 0.010046367851622875, 'mean_word_length': 3.89413988657845, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1138358', 'n_tokens_mistral': 775, 'n_tokens_neox': 740, 'n_words': 350}