<commit_before># Model Observer (Alpha state)

## Install

	bower install modelobserver

## Usage

```html
<script type="text/javascript" src="./dist/modelobserver.min.js"></script>
```

```js

var obs = BaseModelObserver();

var logger = {
    initter: function(value, model, property, property_stack, parent) {
        console.log(["init", value, model, property, property_stack.join('.'), parent]);
        return value;
    },
    getter: function(value, property_stack) {
        console.log(["get", value, property_stack.join('.'), this]);
        return value;
    },
    setter: function(value, old_value, property_stack) {
        console.log(["set", value, old_value, property_stack.join('.'), this]);
        return value;<commit_msg>build status badge<commit_after># Model Observer (Alpha state)

[![Build Status](https://travis-ci.org/markomanninen/modelobserver.svg?branch=master)](https://travis-ci.org/markomanninen/modelobserver)

## Install

	bower install modelobserver

## Usage

```html
<script type="text/javascript" src="./dist/modelobserver.min.js"></script>
```

```js

var obs = BaseModelObserver();

var logger = {
    initter: function(value, model, property, property_stack, parent) {
        console.log(["init", value, model, property, property_stack.join('.'), parent]);
        return value;
    },
    getter: function(value, property_stack) {
        console.log(["get", value, property_stack.join('.'), this]);
        return value;
    },
    setter: function(value, old_value, property_stack) {
        console.log(["set", value, old_value, property_stack.join('.'), this]);
        return value;
{'fraction_non_alphanumeric': 0.16523867809057527, 'fraction_numerical': 0.0, 'mean_word_length': 3.9395770392749245, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '37044', 'n_tokens_mistral': 514, 'n_tokens_neox': 494, 'n_words': 111}