<commit_before># Quickstart

The example targets Node.js environment.

## Install

Install the module (along with an adapter) first:

```
$ npm install --save firenze firenze-adapter-mysql
```

## Require the modules

```js
var f = require('firenze');
var Database = f.Database;
var MysqlAdapter = require('firenze-adapter-mysql');
```

## Ceate an instance of your Database

```js
var db = new Database({
  adapter: MysqlAdapter,
  host: '127.0.0.1',
  database: 'my_database',
  user: '',
  password: ''
});
```

## Define a Model

Which represents a record:

```js
var Post = f.createModel({
  getLowercasedTitle: function () {
    return this.get('title').toLowerCase();
  }
});
```

## Define a Collection
<commit_msg>Update Quickstart.md<commit_after># Quickstart

The example targets Node.js environment.

## Install

Install the module (along with an adapter) first:

```
$ npm install --save firenze firenze-adapter-mysql
```

## Require the modules

```js
var f = require('firenze');
var Database = f.Database;
var MysqlAdapter = require('firenze-adapter-mysql');
```

## Create an instance of your Database

```js
var db = new Database({
  adapter: MysqlAdapter,
  host: '127.0.0.1',
  database: 'my_database',
  user: '',
  password: ''
});
```

## Define a Model

Which represents a record:

```js
var Post = f.createModel({
  getLowercasedTitle: function () {
    return this.get('title').toLowerCase();
  }
});
```

## Define a Collection

{'fraction_non_alphanumeric': 0.156121045392022, 'fraction_numerical': 0.008253094910591471, 'mean_word_length': 4.177935943060498, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4641469', 'n_tokens_mistral': 498, 'n_tokens_neox': 471, 'n_words': 143}