<commit_before>== VelocityOnRails

This is a Rails plugin for using Velocity (http://velocity.apache.org/) templates in your views under JRuby.
It might be useful if you are migrating a Java project to Rails.

This is compatible with Rails 3.0.

=== Building The Gem

  git clone http://github.com/benilovj/velocity_on_rails.git
  cd velocity_on_rails
  gem build velocity_on_rails.gemspec

=== Installation

1. Install the gem.

2. Add the following line to your Rails Gemfile:

  gem 'velocity_on_rails'

3. Invoke the command:

  bundle install

to install the gem

=== Usage

Place Velocity templates under apps/views with the .vel extension.

You can inject variables into your views by providing a variables Hash to the :locals:

  class DemoController < ApplicationController
    def index
      render :layout => false, :locals => {:page_title => "demo"}
    end
  end 

It is possible to use the Velocity #parse command, but the path specified needs to be relative to 'Rails.home/app/views'.

Copyright (c) 2010 <NAME>, released under the MIT license
<commit_msg>formatting fixes<commit_after>== VelocityOnRails

This is a Rails plugin for using Velocity (http://velocity.apache.org/) templates in your views under JRuby.
It might be useful if you are migrating a Java project to Rails.

This is compatible with Rails 3.0.

=== Building The Gem

  git clone http://github.com/benilovj/velocity_on_rails.git
  cd velocity_on_rails
  gem build velocity_on_rails.gemspec

=== Installation

1. Install the gem.
2. Add the following line to your Rails Gemfile:
  gem 'velocity_on_rails'
3. Invoke the command:
  bundle install
to install the gem.

=== Usage

Place Velocity templates under apps/views with the .vel extension.

You can inject variables into your views by providing a variables Hash to the :locals:

  class DemoController < ApplicationController
    def index
      render :layout => false, :locals => {:page_title => "demo"}
    end
  end 

It is possible to use the Velocity #parse command, but the path specified needs to be relative to 'Rails.home/app/views'.

Copyright (c) 2010 <NAME>, released under the MIT license

{'fraction_non_alphanumeric': 0.07046196920205319, 'fraction_numerical': 0.008399440037330844, 'mean_word_length': 3.9174311926605503, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '6556043', 'n_tokens_mistral': 652, 'n_tokens_neox': 600, 'n_words': 279}