<commit_before># Finite State Machine (FSM)

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

> A minimal finite state machine (FSM) for Javascript.

## Building
To build the library you'll need to use Grunt. First install the required node modules ([grunt-cli](http://gruntjs.com/getting-started) must be installed):
```
git clone https://github.com/GetmeUK/FSM.git
cd FSM
npm install
```

Then run `grunt build` to build the project.

## Testing
To test the library you'll need to use Jasmine. First install Jasmine:
```
git clone https://github.com/pivotal/jasmine.git
mkdir FSM/jasmine
mv jasmine/dist/jasmine-standalone-2.0.3.zip FSM/jasmine
cd FSM/jasmine
unzip jasmine-standalone-2.0.3.zip
```

Then open `FSM/SpecRunner.html` in a browser to run the tests.

## Documentation
Full documentation is available at http://getcontenttools.com/api/fsm

## Browser support
- Chrome
- Firefox
- IE9+<commit_msg>Added docs for running tests in Grunt.<commit_after># Finite State Machine (FSM)

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

> A minimal finite state machine (FSM) for Javascript.

## Building
To build the library you'll need to use Grunt. First install the required node modules ([grunt-cli](http://gruntjs.com/getting-started) must be installed):
```
git clone https://github.com/GetmeUK/FSM.git
cd FSM
npm install
```

Then run `grunt build` to build the project.

## Testing
To test the library you'll need to use Jasmine. First install Jasmine:
```
git clone https://github.com/pivotal/jasmine.git
mkdir FSM/jasmine
mv jasmine/dist/jasmine-standalone-2.0.3.zip FSM/jasmine
cd FSM/jasmine
unzip jasmine-standalone-2.0.3.zip
```

Then open `FSM/SpecRunner.html` in a browser to run the tests. 

Alternatively you can use the `grunt jasmine` to run the tests from the command line. 

## Documentation
Full documentation is available at http://getcontenttools.com/api/fsm

## Browser support
- Chrome
- Firefox
- IE9+
{'fraction_non_alphanumeric': 0.12097560975609756, 'fraction_numerical': 0.006829268292682927, 'mean_word_length': 4.383202099737533, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '7400731', 'n_tokens_mistral': 732, 'n_tokens_neox': 677, 'n_words': 214}