<commit_before>Backbone.LeakChecker
====================

Report leaky views in browser console.


## Installation

### npm

```
npm install backbone.leakchecker --save
```

### bower

```
bower install backbone.leakchecker --save
```

### component

Insert the following to the `dependencies` section of your `component.json`

```
"aq1018/backbone.leakchecker": ">= 0.0.1"
```

## Usage

### require.js

```js
// app.js
define('Backbone', 'backbone.leakchecker', function(Backbone, initLeakChecker) {
  // make sure this is run before everything else.
  initLeakChecker();

  // your Application class goes here
  function App(){

  }

  return new App();
});

```

### browserify

```js
// app.js

// make sure this is run before everything else.
require('backbone.leakchecker')();

// your Application class goes here
function App(){

}

module.exports = new App();
```

### <script> tag

```html
<!-- dependencies -->
<script type="text/javascript" src="jquery.js" />
<script type="text/javascript" src="underscore.js" />
<script type="text/javascript" src="backbone.js" />

<!-- this lib -->
<script type="text/javascript" src="backbone.leakchecker.js" />

<script>
  // do this first
  initLeakChecker();
</script>

<!-- include your app here -->
<script type="text/javascript" src="app.js" />
```
<commit_msg>trying to let readme show up properly<commit_after>Backbone.LeakChecker
====================

Report leaky views in browser console.


## Installation

### npm

```
npm install backbone.leakchecker --save
```

### bower

```
bower install backbone.leakchecker --save
```

### component

Insert the following to the `dependencies` section of your `component.json`

```
"aq1018/backbone.leakchecker": ">= 0.0.1"
```

## Usage

### require.js

```js
// app.js
define('Backbone', 'backbone.leakchecker', function(Backbone, initLeakChecker) {
  // make sure this is run before everything else.
  initLeakChecker();

  // your Application class goes here
  function App(){

  }

  return new App();
});

```

### browserify

```js
// app.js

// make sure this is run before everything else.
require('backbone.leakchecker')();

// your Application class goes here
function App(){

}

module.exports = new App();
```

### script tag

```html
<!-- dependencies -->
<script type="text/javascript" src="jquery.js" />
<script type="text/javascript" src="underscore.js" />
<script type="text/javascript" src="backbone.js" />

<!-- this lib -->
<script type="text/javascript" src="backbone.leakchecker.js" />

<script>
  // do this first
  initLeakChecker();
</script>

<!-- include your app here -->
<script type="text/javascript" src="app.js" />
```

{'fraction_non_alphanumeric': 0.18990203466465713, 'fraction_numerical': 0.0052750565184626974, 'mean_word_length': 4.018903591682419, 'pattern_counts': {'":': 2, '<': 24, '<?xml version=': 0, '>': 26, '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': '1932359', 'n_tokens_mistral': 901, 'n_tokens_neox': 852, 'n_words': 228}