<commit_before># react-router-rails

[React Router](https://github.com/rackt/react-router/) for Rails asset pipeline

- React Router version: [0.11.6](https://github.com/rackt/react-router/tree/v0.11.6)

## Installation

1. Add to your `Gemfile` and install with bundler:

  ```ruby
  gem 'react-router-rails', '~>0.11.6'
  ```
  
  ```bash
  bundle install
  ```

2. Require the modified React-Router javascript file in `app/assets/javascripts/application.js`:

  ```js
  //= require react_router
  ```
  
  Or in `app/assets/javascripts/application.js.coffee`:
  
  ```coffeescript
  #= require react_router
  ```

## Acknowledgements

[React Router](https://github.com/rackt/react-router/) licensed under the [MIT license](https://github.com/rackt/react-router/blob/master/LICENSE)

Copyright [<NAME>](https://github.com/mariopeixoto), released under the [MIT license](https://github.com/mariopeixoto/react-router-rails/LICENSE).<commit_msg>better examples<commit_after># react-router-rails

[React Router](https://github.com/rackt/react-router/) for Rails asset pipeline

- React Router version: [0.11.6](https://github.com/rackt/react-router/tree/v0.11.6)

## Installation

1. Add to your `Gemfile` and install with bundler:

  ```ruby
  gem 'react-router-rails', '~>0.11.6'
  ```
  
  ```bash
  bundle install
  ```

2. Require the modified React-Router javascript file in `app/assets/javascripts/application.js`:

  ```js
  //= require react_router
  // OR
  //= require react_router.min
  ```
  
  Or in `app/assets/javascripts/application.js.coffee`:
  
  ```coffeescript
  #= require react_router
  #OR
  #= require react_router.min
  ```

3. Using React Router:

  ```js
  ReactRouter.run(routes, function (Handler) {
    React.render(<Handler/>, document.body);
  });
  ```

  ```coffeescript
  ReactRouter.run(routes, (Handler) ->
    React.render <Handler/>, document.body
  )
  ```

## Acknowledgements

[React Router](https://github.com/rackt/react-router/) licensed under the [MIT license](https://github.com/rackt/react-router/blob/master/LICENSE)

Copyright [<NAME>](https://github.com/mariopeixoto), released under the [MIT license](https://github.com/mariopeixoto/react-router-rails/LICENSE).
{'fraction_non_alphanumeric': 0.16448260280162674, 'fraction_numerical': 0.013104383190239493, 'mean_word_length': 3.898230088495575, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, 'https://': 12, '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': '4274773', 'n_tokens_mistral': 798, 'n_tokens_neox': 755, 'n_words': 146}