<commit_before>jactiveresource
===============

Ruby on Rails includes ActiveResource, a module for for consuming services provided by other Rails applications. jactiveresource helps you easily consume these same services in your Java based applications.

<NAME> says: “ActiveResource provides a large piece of the REST puzzle by basically implementing the client side of a RESTful system – the parts of a decoupled system that consume RESTful services. At its essence, ActiveResource provides a way to utilize model objects as REST-based client proxies to remote services.”

jactiveresource creates Java objects from RESTful services quickly and easily.  Give it a URL, and you get POJO's (no hash maps) with automatic type conversions.  When talking to Rails resources, jactiveresource includes specializations that make Java as DRY as it can get.

Building
---------
There are some prerequisites in order to compile and use jactiveresource.  Here's what you'll need:

 * a java virtual machine > 1.6 
 * maven
 * ruby - 1.9.2 or higher recommended
 * rubygems

Use Maven to compile and build jactiveresource.  After getting the source, compile it by:

    $ mvn compile

To run the unit tests, you need to start up a rails application first.  If you use rvm, which is recommended, you might want to do something like:

    $ rvm use 1.9.2
    $ rvm gemset create jactiveresource
    $ rvm use 1.9.2@jactiveresource

If you don't want to use rvm, you can skip the above steps, and just go straight to:

    $ cd src/test/service-rails3
    $ gem install bundler
		$ bundle install
    $ rake db:setup
    $ rails server

You'll now have a running rails application against which the tests can run.  Then in another session, you can run the tests:

    $ mvn test<commit_msg>Fix spacing issue in README<commit_after>jactiveresource
===============

Ruby on Rails includes ActiveResource, a module for for consuming services provided by other Rails applications. jactiveresource helps you easily consume these same services in your Java based applications.

<NAME> says: “ActiveResource provides a large piece of the REST puzzle by basically implementing the client side of a RESTful system – the parts of a decoupled system that consume RESTful services. At its essence, ActiveResource provides a way to utilize model objects as REST-based client proxies to remote services.”

jactiveresource creates Java objects from RESTful services quickly and easily.  Give it a URL, and you get POJO's (no hash maps) with automatic type conversions.  When talking to Rails resources, jactiveresource includes specializations that make Java as DRY as it can get.

Building
---------
There are some prerequisites in order to compile and use jactiveresource.  Here's what you'll need:

 * a java virtual machine > 1.6 
 * maven
 * ruby - 1.9.2 or higher recommended
 * rubygems

Use Maven to compile and build jactiveresource.  After getting the source, compile it by:

    $ mvn compile

To run the unit tests, you need to start up a rails application first.  If you use rvm, which is recommended, you might want to do something like:

    $ rvm use 1.9.2
    $ rvm gemset create jactiveresource
    $ rvm use 1.9.2@jactiveresource

If you don't want to use rvm, you can skip the above steps, and just go straight to:

    $ cd src/test/service-rails3
    $ gem install bundler
    $ bundle install
    $ rake db:setup
    $ rails server

You'll now have a running rails application against which the tests can run.  Then in another session, you can run the tests:

    $ mvn test
{'fraction_non_alphanumeric': 0.053811659192825115, 'fraction_numerical': 0.006726457399103139, 'mean_word_length': 3.80349932705249, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6755517', 'n_tokens_mistral': 998, 'n_tokens_neox': 883, 'n_words': 517}