<commit_before># Ember-Orbit

Ember-Orbit is a library that integrates
[Orbit.js](https://github.com/orbitjs/orbit.js) with
[Ember.js](https://github.com/emberjs/ember.js).


## Status

Ember-Orbit is undergoing heavy development. Interfaces may change, so please
use with caution.


## Installation

For now it is necessary to build Ember-Orbit from source. See instructions
below.


## Building and Testing Ember-Orbit

The Ember-Orbit project is managed by [Grunt](http://gruntjs.com/). Once you've
installed Grunt and its dependencies, you can install Ember-Orbit's development
dependencies from inside the project root with:

```
npm install
bower install
```

Distributable versions of Orbit can be built to the `/dist` directory by running:

```
grunt package
```

Orbit can be tested by running:

```
grunt test:ci
```

Or from within a browser
(at [http://localhost:8010/test/](http://localhost:8010/test/)) by running:

```
grunt server
```

Ember-Orbit's docs can be generated to the `/docs` directory by running:

```
grunt docs
```

## Acknowledgments

Ember-Orbit owes a great deal to [Ember Data](https://github.com/emberjs/data),
not only for the design of several interfaces but also for the base code used to
manage record arrays.

It is hoped that, by tracking Ember Data's features and interfaces where
possible, Ember Orbit will also be able to contribute back to Ember Data.

## License

Copyright 2014 Cerebris Corporation. MIT License (see LICENSE for details).<commit_msg>Add initialization section to README<commit_after># Ember-Orbit

Ember-Orbit is a library that integrates
[Orbit.js](https://github.com/orbitjs/orbit.js) with
[Ember.js](https://github.com/emberjs/ember.js).


## Status

Ember-Orbit is undergoing heavy development. Interfaces may change, so please
use with caution.


## Installation

For now it is necessary to build Ember-Orbit from source. See instructions
below.


## Building and Testing Ember-Orbit

The Ember-Orbit project is managed by [Grunt](http://gruntjs.com/). Once you've
installed Grunt and its dependencies, you can install Ember-Orbit's development
dependencies from inside the project root with:

```
npm install
bower install
```

Distributable versions of Orbit can be built to the `/dist` directory by running:

```
grunt package
```

Orbit can be tested by running:

```
grunt test:ci
```

Or from within a browser
(at [http://localhost:8010/test/](http://localhost:8010/test/)) by running:

```
grunt server
```

Ember-Orbit's docs can be generated to the `/docs` directory by running:

```
grunt docs
```

## Using Ember-Orbit

### Initialization

Configure Ember-Orbit with an application initializer that sets up Orbit and
registers a "main" store and schema to be available in your routes and
controllers:

```javascript
App.initializer({
  name: 'injectStore',
  initialize: function(container, application) {
    Orbit.Promise = Ember.RSVP.Promise;
    application.register('schema:main', EO.Schema);
    application.register('store:main', EO.Store);
    application.inject('controller', 'store', 'store:main');
    application.inject('route', 'store', 'store:main');
  }
});
```

## Acknowledgments

Ember-Orbit owes a great deal to [Ember Data](https://github.com/emberjs/data),
not only for the design of several interfaces but also for the base code used to
manage record arrays.

It is hoped that, by tracking Ember Data's features and interfaces where
possible, Ember Orbit will also be able to contribute back to Ember Data.

## License

Copyright 2014 Cerebris Corporation. MIT License (see LICENSE for details).
{'fraction_non_alphanumeric': 0.1042535446205171, 'fraction_numerical': 0.006672226855713094, 'mean_word_length': 4.543913713405239, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '4116421', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1049, 'n_words': 418}