<commit_before># Ember Rails Generators
A set of generators for rails projects using ember.js. Generators provided are:

## Installation

Add the line

    gem 'ember-generators', :git => 'https://github.com/hedtek/ember-generators.git'

to your rails Gemfile and run 'bundle install'. Then run 

    rails g ember:bootstrap

to bootstrap your application with ember and create a basic framework.

## Ember bootstrap

    rails g ember:bootstrap
    
Bootstraps your application with a basic coffeescript framework for front-end routing, templates and views using Ember.js and some ember libraries.

## (Ember) Model

    rails g ember:model model_name [attr1:number attr2:string]

Generates an ember-resource model in app/assets/javascripts/ember/models

The ember-resource model has a schema defining the attributes the model knows about. If no type is provided, string is assumed.

## (Ember) View

    rails g ember:view controller_name view_name

Generates a view and template in app/assets/javascripts/ember/views/controller_name and app/assets/javascripts/ember/templates/controller_name

## (Ember) Controller

    rails g ember:controller controller_name [route1 route2]

Generates a controller in app/assets/javascripts/ember/controllers

The controller can be provided an array of routes. Each of these will use the route name as the fragment for reaching the state defined. The view for a route is also generated based on the controller and route names.<commit_msg>Some more README cleanup<commit_after># Ember Rails Generators
A set of generators for rails projects using ember.js.

## Installation

Add the line

    gem 'ember-generators', :git => 'https://github.com/hedtek/ember-generators.git'

to your rails Gemfile and run 'bundle install'. Then run 

    rails g ember:bootstrap

to bootstrap your application with ember and create a basic framework.

## Ember bootstrap

    rails g ember:bootstrap
    
Bootstraps your application with a basic coffeescript framework for front-end routing, templates and views using Ember.js and some ember libraries.

## Ember Model

    rails g ember:model model_name [attr1:number attr2:string]

Generates an ember-resource model in app/assets/javascripts/ember/models

The ember-resource model has a schema defining the attributes the model knows about. If no type is provided, string is assumed.

## Ember View

    rails g ember:view controller_name view_name

Generates a view and template in app/assets/javascripts/ember/views/controller_name and app/assets/javascripts/ember/templates/controller_name

## Ember Controller

    rails g ember:controller controller_name [route1 route2]

Generates a controller in app/assets/javascripts/ember/controllers

The controller can be provided an array of routes. Each of these will use the route name as the fragment for reaching the state defined. The view for a route is also generated based on the controller and route names.
{'fraction_non_alphanumeric': 0.05555555555555555, 'fraction_numerical': 0.0027266530334014998, 'mean_word_length': 4.405156537753223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6764630', 'n_tokens_mistral': 803, 'n_tokens_neox': 766, 'n_words': 353}