<commit_before># modernizr-rails

The modernizr-rails gem will include the [Modernizr.js](https://github.com/Modernizr/Modernizr) library into your Rails 3.1 or higher app via the asset pipeline. This modernizr.js file was built using the builder located at http://www.modernizr.com/download/ with all options checked.

## Installation
Add the following to your Gemfile:

```ruby
gem 'modernizr-rails'
```

## Usage
Modernizr should be added to the `<head>` of your HTML so that feature detection happens before anything else.
You can use the rails helper `<%= javascript_include_tag 'modernizr' %>` (or `<%= javascript_include_tag 'modernizr.min'%>`
for the minified version) to include it.

Example of your `app/views/layouts/application.html.erb`:

```erb
<head>
  <title>Your App</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'modernizr' %>
  <%= csrf_meta_tags %>
</head>
```

Note: The Rails 3+ asset pipeline should minify the javascript in production automatically so it should
not be completely necessary to use the `modernizr.min` version. But be sure to add the following code into `config/application.rb` to make sure it is precompiled.

```ruby
config.assets.precompile += ['modernizr.js']
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## Copyright<commit_msg>Added info about putting Modernizr into head. #17<commit_after># modernizr-rails

The modernizr-rails gem will include the [Modernizr.js](https://github.com/Modernizr/Modernizr) library into your Rails 3.1 or higher app via the asset pipeline. This modernizr.js file was built using the builder located at http://www.modernizr.com/download/ with all options checked.

## Installation
Add the following to your Gemfile:

```ruby
gem 'modernizr-rails'
```

## Usage
Modernizr should be added to the `<head>` of your HTML. Be sure to check out the [offical docs](http://modernizr.com/docs/#installing) about **Installing Modernizr** for more info.
You can use the rails helper `<%= javascript_include_tag 'modernizr' %>` (or `<%= javascript_include_tag 'modernizr.min'%>`
for the minified version) to include it.

Example of your `app/views/layouts/application.html.erb`:

```erb
<head>
  <title>Your App</title>
  <%= stylesheet_link_tag    'application', media: 'all' %>
  <%= javascript_include_tag 'modernizr' %>
  <%= csrf_meta_tags %>
</head>
```

Note: The Rails 3+ asset pipeline should minify the javascript in production automatically so it should
not be completely necessary to use the `modernizr.min` version. But be sure to add the following code into `config/application.rb` to make sure it is precompiled.

```ruby
config.assets.precompile += ['modernizr.js']
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## Copyright
{'fraction_non_alphanumeric': 0.11414077362079898, 'fraction_numerical': 0.0057070386810399495, 'mean_word_length': 4.684684684684685, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1809649', 'n_tokens_mistral': 1055, 'n_tokens_neox': 947, 'n_words': 374}