<commit_before># karma-traceur-preprocessor

> Preprocessor to compile ES6 JavaScript on the fly using [traceur-compiler].

## Installation

Add `karma-traceur-preprocessor` as a devDependency in your `package.json`.
```json
{
  "devDependencies": {
    "karma": "~0.10",
    "karma-traceur-preprocessor": "~0.2"
  }
}
```

Or you can manually install it:
```bash
npm install karma-traceur-preprocessor --save-dev
```

## Configuration
The following example configuration shows some of the required settings for enabling Traceur support.  Traceur compiles source files into either AMD or Node.js modules.  Since Karma is testing in a browser you need to [configure RequireJS][configure-requirejs].

```js
// karma.conf.js<commit_msg>doc: don't advise manually editing package.json<commit_after># karma-traceur-preprocessor

> Preprocessor to compile ES6 JavaScript on the fly using [traceur-compiler].

## Installation

Install `karma-traceur-preprocessor` as a devDependency for your project:

```bash
npm install karma --save-dev
npm install karma-traceur-preprocessor --save-dev
```

## Configuration
The following example configuration shows some of the required settings for enabling Traceur support.  Traceur compiles source files into either AMD or Node.js modules.  Since Karma is testing in a browser you need to [configure RequireJS][configure-requirejs].

```js
// karma.conf.js
{'fraction_non_alphanumeric': 0.0964722822174226, 'fraction_numerical': 0.005039596832253419, 'mean_word_length': 4.720164609053498, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 5, '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': '2027105', 'n_tokens_mistral': 407, 'n_tokens_neox': 386, 'n_words': 150}