<commit_before># karma-systemjs    [![Build Status](https://travis-ci.org/rolaveric/karma-systemjs.png?branch=master)](https://travis-ci.org/rolaveric/karma-systemjs)
[Karma](http://karma-runner.github.io/) plugin for using [SystemJS](https://github.com/systemjs/systemjs) as a module loader.

# Installation

`npm install rolaveric/karma-systemjs`

# Karma Configuration

Add karma-systemjs to your list of plugins:

`plugins: ['karma-systemjs', ...]`

Add karma-systemjs to your list of frameworks:

`frameworks: ['systemjs', ...]`

Add systemjs configuration:

```js
systemjs: {
	// Path to your SystemJS configuration file
	configFile: 'app/system.conf.js',

	// File patterns for your application code, dependencies, and test suites
	files: [
		'app/bower_components/angular/angular.js',
		'app/bower_components/angular-route/angular-route.js',
		'app/bower_components/angular-mocks/angular-mocks.js',
		'app/*/**/*.js'
	],

	// SystemJS paths configuration specifically for tests
	paths: {
		'angular-mocks': 'bower_components/angular-mocks/angular-mocks.js'
	},

	// Specify the suffix used for test suite file names - default to '_test.js'
	testFileSuffix: '.spec.js'
}
```

Adding your file patterns under `systemjs.files` is a convenience so you don't need to specify that each file is 'served' but not 'included'.

```js
// These end up meaning the same thing
files: [
	{pattern: 'app/**/*.js, served: true, included: false, watched: true}
],

systemjs: {
	files: [
		'app/**/*.js'
	]
}
```<commit_msg>Fixed typos in doco.<commit_after># karma-systemjs    [![Build Status](https://travis-ci.org/rolaveric/karma-systemjs.png?branch=master)](https://travis-ci.org/rolaveric/karma-systemjs)
[Karma](http://karma-runner.github.io/) plugin for using [SystemJS](https://github.com/systemjs/systemjs) as a module loader.

# Installation

`npm install rolaveric/karma-systemjs`

# Karma Configuration

Add karma-systemjs to your list of plugins:

`plugins: ['karma-systemjs', ...]`

Add karma-systemjs to your list of frameworks:

`frameworks: ['systemjs', ...]`

Add systemjs configuration:

```js
systemjs: {
	// Path to your SystemJS configuration file
	configFile: 'app/system.conf.js',

	// File patterns for your application code, dependencies, and test suites
	files: [
		'app/bower_components/angular/angular.js',
		'app/bower_components/angular-route/angular-route.js',
		'app/bower_components/angular-mocks/angular-mocks.js',
		'app/*/**/*.js'
	],

	// SystemJS configuration specifically for tests. Good for adding test libraries or mock modules
	config: {
		paths: {
			'angular-mocks': 'bower_components/angular-mocks/angular-mocks.js'
		}
	},

	// Specify the suffix used for test suite file names.  Defaults to .test.js, .spec.js, _test.js, and _spec.js
	testFileSuffix: '.spec.js'
}
```

Adding your file patterns under `systemjs.files` is a convenience so you don't need to specify that each file is 'served' but not 'included'.

```js
// These end up meaning the same thing
files: [
	{pattern: 'app/**/*.js', served: true, included: false, watched: true}
],

systemjs: {
	files: [
		'app/**/*.js'
	]
}
```
{'fraction_non_alphanumeric': 0.15035188739603328, 'fraction_numerical': 0.0, 'mean_word_length': 4.177152317880795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '3883887', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1051, 'n_words': 277}