<commit_before># ember-cli-trackjs [![Build Status][travid-badge]][travis-badge-url] [![Dependency Status][david-badge]][david-badge-url]

Handles all of the boilerplate shit you need to use TrackJS in your fancy Ember
application.

## Settings

Configure TrackJS in your application's `config/environment.js` file. Please
see the [TrackJS documentation](http://docs.trackjs.com/Examples/Developing_Locally)
for specific configuration options.

### Example

```javascript
var ENV = {
  trackJs: {
    addon: {
      url: "path/to/trackjs.js" // provided by TrackJS
    },
    config: {
      token: "1234567890"
    }
  }
};

if (environment === 'test') {
  ENV.trackJs.config.enabled = false;
}
```

See? Pretty much like you'd expect.

## Usage

A service is exposed on your routes and controllers that you can use to report
errors instead of having to use the global `window.trackJs` object.

### Example in a Route

```javascript
export default {
  beforeModel: function () {
    this.trackjs.track('oh, snap. something bad happened');
  }
};
```

### Example in a Controller

```javascript
export default Ember.Controller.extend({
  reportSomethingForSomeReason: function () {
    this.trackjs.track('oh, snap. something bad happened');
  }.on('init')
});
```

## Installation

```
ember install:addon ember-cli-trackjs
```

## Running Tests

* `ember test`
* `ember test --server`

## Building

* `ember build`

[travis-badge]: https://travis-ci.org/jherdman/ember-cli-trackjs.svg
[travis-badge-url]: https://travis-ci.org/jherdman/ember-cli-trackjs
[david-badge]: https://david-dm.org/jherdman/ember-cli-trackjs.svg
[david-badge-url]: https://david-dm.org/jherdman/ember-cli-trackjs
<commit_msg>Grr...<commit_after># ember-cli-trackjs [![Build Status][travis-badge]][travis-badge-url] [![Dependency Status][david-badge]][david-badge-url]

Handles all of the boilerplate shit you need to use TrackJS in your fancy Ember
application.

## Settings

Configure TrackJS in your application's `config/environment.js` file. Please
see the [TrackJS documentation](http://docs.trackjs.com/Examples/Developing_Locally)
for specific configuration options.

### Example

```javascript
var ENV = {
  trackJs: {
    addon: {
      url: "path/to/trackjs.js" // provided by TrackJS
    },
    config: {
      token: "1234567890"
    }
  }
};

if (environment === 'test') {
  ENV.trackJs.config.enabled = false;
}
```

See? Pretty much like you'd expect.

## Usage

A service is exposed on your routes and controllers that you can use to report
errors instead of having to use the global `window.trackJs` object.

### Example in a Route

```javascript
export default {
  beforeModel: function () {
    this.trackjs.track('oh, snap. something bad happened');
  }
};
```

### Example in a Controller

```javascript
export default Ember.Controller.extend({
  reportSomethingForSomeReason: function () {
    this.trackjs.track('oh, snap. something bad happened');
  }.on('init')
});
```

## Installation

```
ember install:addon ember-cli-trackjs
```

## Running Tests

* `ember test`
* `ember test --server`

## Building

* `ember build`

[travis-badge]: https://travis-ci.org/jherdman/ember-cli-trackjs.svg?branch=master
[travis-badge-url]: https://travis-ci.org/jherdman/ember-cli-trackjs
[david-badge]: https://david-dm.org/jherdman/ember-cli-trackjs.svg
[david-badge-url]: https://david-dm.org/jherdman/ember-cli-trackjs

{'fraction_non_alphanumeric': 0.148636763412489, 'fraction_numerical': 0.005863383172090296, 'mean_word_length': 4.092537313432836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3884349', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1146, 'n_words': 284}