<commit_before># piggyMonitor

**Generated from HotTowel Angular**

>*Opinionated Angular style guide for teams by [@john_papa](//twitter.com/john_papa)*

>More details about the styles and patterns used in this app can be found in my [Angular Style Guide](https://github.com/johnpapa/angularjs-styleguide) and my [Angular Patterns: Clean Code](http://jpapa.me/ngclean) course at [Pluralsight](http://pluralsight.com/training/Authors/Details/john-papa) and working in teams.

## Prerequisites

1. Install [Node.js](http://nodejs.org)
 - on OSX use [homebrew](http://brew.sh) `brew install node`
 - on Windows use [chocolatey](https://chocolatey.org/) `choco install nodejs`

2. Install Yeoman `npm install -g yo`

3. Install these NPM packages globally

    ```bash
    npm install -g bower gulp nodemon
    ```

    >Refer to these [instructions on how to not require sudo](https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md)

***

## Exploring piggyMonitor
piggyMonitor Angular starter project

### Structure
The structure also contains a gulpfile.js and a server folder.

The server is there just so we can serve the app using node.

    /src
        /client
            /app
            /spec

#### Test Stack
Framework and libaries setup in _karma.conf.js::frameworks_

- Using [Karma](https://karma-runner.github.io/0.13/index.html) as the test runner.
- The specs is build on [Mocha](https://mochajs.org/) test framework.
- Using [Chai](http://chaijs.com/api/bdd/) assertions.
- and lastly, [Sinon](http://sinonjs.org/docs/) for test doubles



### Installing Packages

To install packages for gulp via [npm](https://docs.npmjs.com/getting-started/using-a-package.json). Packages from package.json
 - `npm install`

To install packages for the app via . Packages from bower.json
 - `bower install`

***

## Running piggyMonitor with Gulp

### Task Listing

- `gulp help`

    Displays all of the available gulp tasks.

### Build app and specs base file

The index.html and specs.html, are generated via gulp using a boilerplate.

The boilerplates can be found in the boilerplate folder.

- `gulp inject`

    Builds the index.html

- `gulp build-spec`

    Builds the specs.html

### Serving Development Code

- `gulp serve-dev`

    Serves the development code and launches it in a browser. The goal of building for development is to do it as fast as possible, to keep development moving efficiently. This task serves all code from the source folders and compiles less to css in a temp folder.

- `gulp serve-dev --nosync`

    Serves the development code without launching the browser.

- `gulp serve-dev --debug`

    Launch debugger with node-inspector.

- `gulp serve-dev --debug-brk`

    Launch debugger and break on 1st line with node-inspector.

### Building Production Code

- `gulp optimize`

    Optimize all javascript and styles, move to a build folder, and inject them into the new index.html

- `gulp build`

    Copies all fonts, copies images and runs `gulp optimize` to build the production code to the build folder.
<commit_msg>fix typo and change link<commit_after># piggyMonitor

**Generated from HotTowel Angular**

>*Opinionated Angular style guide for teams by [@john_papa](//twitter.com/john_papa)*

>More details about the styles and patterns used in this app can be found in my [Angular Style Guide](https://github.com/johnpapa/angularjs-styleguide) and my [Angular Patterns: Clean Code](http://jpapa.me/ngclean) course at [Pluralsight](http://pluralsight.com/training/Authors/Details/john-papa) and working in teams.

## Prerequisites

1. Install [Node.js](http://nodejs.org)
 - on OSX use [homebrew](http://brew.sh) `brew install node`
 - on Windows use [chocolatey](https://chocolatey.org/) `choco install nodejs`

2. Install Yeoman `npm install -g yo`

3. Install these NPM packages globally

    ```bash
    npm install -g bower gulp nodemon
    ```

    >Refer to these [instructions on how to not require sudo](https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md)

***

## Exploring piggyMonitor
piggyMonitor Angular starter project

### Structure
The structure also contains a gulpfile.js and a server folder.

The server is there just so we can serve the app using node.

    /src
        /client
            /app
            /spec

#### Test Stack
Framework and libaries setup in _karma.conf.js::frameworks_

- Using [Karma](https://karma-runner.github.io/0.13/index.html) as the test runner.
- The specs is build on [Mocha](https://mochajs.org/) test framework.
- Using [Chai](https://gist.github.com/yoavniran/1e3b0162e1545055429e) assertions.
- and lastly, [Sinon](http://sinonjs.org/docs/) for test doubles



### Installing Packages

To install packages for gulp via [npm](https://docs.npmjs.com/getting-started/using-a-package.json). Packages from package.json
 - `npm install`

To install packages for the app via . Packages from bower.json
 - `bower install`

***

## Running piggyMonitor with Gulp

### Task Listing

- `gulp help`

    Displays all of the available gulp tasks.

### Build app and specs base file

The index.html and specs.html, are generated via gulp using a boilerplate.

The boilerplates can be found in the boilerplate folder.

- `gulp inject`

    Builds the index.html

- `gulp build-specs`

    Builds the specs.html

### Serving Development Code

- `gulp serve-dev`

    Serves the development code and launches it in a browser. The goal of building for development is to do it as fast as possible, to keep development moving efficiently. This task serves all code from the source folders and compiles less to css in a temp folder.

- `gulp serve-dev --nosync`

    Serves the development code without launching the browser.

- `gulp serve-dev --debug`

    Launch debugger with node-inspector.

- `gulp serve-dev --debug-brk`

    Launch debugger and break on 1st line with node-inspector.

### Building Production Code

- `gulp optimize`

    Optimize all javascript and styles, move to a build folder, and inject them into the new index.html

- `gulp build`

    Copies all fonts, copies images and runs `gulp optimize` to build the production code to the build folder.

{'fraction_non_alphanumeric': 0.09800128949065119, 'fraction_numerical': 0.004835589941972921, 'mean_word_length': 3.5658572479764534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 13, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3413098', 'n_tokens_mistral': 2006, 'n_tokens_neox': 1857, 'n_words': 724}