<commit_before># Simple DB Fixtures for Sails.js

## Installation

`$ npm install barrels`

or add the module to your `package.json` and run

`$ npm install`

## Usage

Once your [Sails.js](http://sailsjs.org/) server is started:

    var barrels = require('barrels');
    var fixtures = barrels.load().objects;
    barrels.populate(function(err) {
      ...
    });

After `load` the fixture data will be accessible via the `objects` property.

`Populate`'ing the test database involves two steps:

* Removing any existing data from the collection corresponding to the fixture
* Loading the fixture data into the test database

## Dependencies

* [Sails.js](http://sailsjs.org/)
* [Async.js](https://github.com/caolan/async)

## License

[The MIT License](http://opensource.org/licenses/MIT)<commit_msg>Some readme corrections.<commit_after># Simple DB Fixtures for Sails.js

## Installation

`$ npm install barrels`

or add the module to your `package.json` and run

`$ npm install`

## Usage

Drop your fixtures in `test/fixtures` as JSON files named after your models.

Once your [Sails.js](http://sailsjs.org/) server is started:

    var barrels = require('barrels');
    var fixtures = barrels.load().objects;
    barrels.populate(function(err) {
      ...
    });

After `load` the fixture data will be accessible via the `objects` property.

`Populate`'ing the test database involves two steps:

* Removing any existing data from the collection corresponding to the fixture
* Loading the fixture data into the test database

## Dependencies

* [Sails.js](http://sailsjs.org/)
* [Async.js](https://github.com/caolan/async)

## License

[The MIT License](http://opensource.org/licenses/MIT)
{'fraction_non_alphanumeric': 0.12080141426045964, 'fraction_numerical': 0.0, 'mean_word_length': 4.008849557522124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3329107', 'n_tokens_mistral': 527, 'n_tokens_neox': 502, 'n_words': 173}