<commit_before># blueprint-model

[![Build Status][travis-build-status]][travis-build]
[![Coverage Status][coverage-build-status]][coverage-build]

Database agnostic data modeller. Somewhat inspired by the [model
component][component-model] made by [TJ Holowaychuck][git-visionmedia].

## API

### model#createMolde(name, [properties])

Create a new model with the given name and optional properties.

```javascript
var model = require('blueprint-model');
var User = model.createModel('User');
```

With properties set during creation:

```javascript
var model = require('blueprint-model');
var User = model.createModel('User', ['username', 'email', 'password']);
```

### .setProperties(properties)

Add a list of properties to the model.

```javascript
var model = require('blueprint-model');
var User = model.createModel('User');
User.setProperties(['username', 'email', 'password']);
```
<commit_msg>[fix] Typo in api doc.<commit_after># blueprint-model

[![Build Status][travis-build-status]][travis-build]
[![Coverage Status][coverage-build-status]][coverage-build]

Database agnostic data modeller. Somewhat inspired by the [model
component][component-model] made by [TJ Holowaychuck][git-visionmedia].

## API

### model#createModel(name, [properties])

Create a new model with the given name and optional properties.

```javascript
var model = require('blueprint-model');
var User = model.createModel('User');
```

With properties set during creation:

```javascript
var model = require('blueprint-model');
var User = model.createModel('User', ['username', 'email', 'password']);
```

### .setProperties(properties)

Add a list of properties to the model.

```javascript
var model = require('blueprint-model');
var User = model.createModel('User');
User.setProperties(['username', 'email', 'password']);
```

{'fraction_non_alphanumeric': 0.1623555310952119, 'fraction_numerical': 0.0, 'mean_word_length': 6.450819672131147, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '583442', 'n_tokens_mistral': 544, 'n_tokens_neox': 532, 'n_words': 154}