<commit_before>easyxdm-rails
==============

easyxdm-rails is the easiest way to include easyXDM in your rail app.

Currently includes files from : easyXDM-2.4.16.3.zip

Installation
--------------

Add this to your Gemfile:

    gem 'easyxdm-rails'

Then you can add this to one of your js manifest files (like
app/assets/javascripts/application.js)

    //= require easyxdm-rails/easyXDM

Or if you're still in development mode, you may want to do this:

    //= require easyxdm-rails/easyXDM.debug

Since you're using easyXDM, there's a good chance that you need to be
able to serve easyXDM.js by itself, or in conjuction with your other
scripts.

To serve it by itself you could add this to
config/environments/production.rb

    config.assets.precompile += %w( easyxdm-rails/easyXDM.js )

Then you could refer to :

    http://your-host/assets/easyxdm-rails/easyXDM.js

Or you could create a new manifest, bookmarklet.js for example, in
app/assets/javascripts and include both easyXDM.js and your code.

    //= require easyxdm-rails/easyXDM
    //= require your-bookmarklet-code.js

Then you could get both easyXDM and your code by refering to:

    http://your-host/assets/bookmarklet.js


This project rocks and uses MIT-LICENSE.

<commit_msg>Update the Readme to point to the example project.<commit_after>easyxdm-rails
==============

easyxdm-rails is the easiest way to include easyXDM in your rail app.

Currently includes files from : easyXDM-2.4.16.3.zip

Installation
--------------

Add this to your Gemfile:

    gem 'easyxdm-rails'

Then you can add this to one of your js manifest files (like
app/assets/javascripts/application.js)

    //= require easyxdm-rails/easyXDM

Or if you're still in development mode, you may want to do this:

    //= require easyxdm-rails/easyXDM.debug

Since you're using easyXDM, there's a good chance that you need to be
able to serve easyXDM.js by itself, or in conjuction with your other
scripts.

To serve it by itself you could add this to
config/environments/production.rb

    config.assets.precompile += %w( easyxdm-rails/easyXDM.js )

Then you could refer to :

    http://your-host/assets/easyxdm-rails/easyXDM.js

Or you could create a new manifest, bookmarklet.js for example, in
app/assets/javascripts and include both easyXDM.js and your code.

    //= require easyxdm-rails/easyXDM
    //= require your-bookmarklet-code.js

Then you could get both easyXDM and your code by refering to:

    http://your-host/assets/bookmarklet.js


Example
-------------

You can check the source for the easyxdm-rails-example project:

https://github.com/Octo-Labs/easyxdm-rails-example

You can also see tha project deployed here:

http://easyxdm-rails-example.herokuapp.com/

You can see easyXDM included in the application.js here:

http://easyxdm-rails-example.herokuapp.com/assets/application.js

And you can see it delivered by itself here:

http://easyxdm-rails-example.herokuapp.com/assets/easyxdm-rails/easyXDM.js


This project rocks and uses MIT-LICENSE.


{'fraction_non_alphanumeric': 0.10013262599469495, 'fraction_numerical': 0.0033156498673740055, 'mean_word_length': 3.4367647058823527, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3882750', 'n_tokens_mistral': 1013, 'n_tokens_neox': 936, 'n_words': 338}