<commit_before>Contributing
====

Beginning Work on an Issue
---
	Create branch
	git clone branch-url


Committing Changes
---
[Commit Message Format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit)

	npm run coverage
	npm run beautify
	git add -A
	git commit -m msg
	git push 


Building
---

	npm run build

Publishing to both npm and bower
---

	tin -v VERSION
	npm run build
	git add -A
	git commit -m 'VERSION'
	git tag vVERSION
	git push origin master --tags
	npm publish

or, you can use: [tin-npm](https://gist.github.com/redgeoff/73b78d3b7a6edf21644f), e.g.

	tin-npm 0.0.2

Updating gh-pages
---

    git checkout gh-pages
    git merge master
    git push

Setup for gh-pages (only do once)
---

	git checkout -b gh-pages
	git push --set-upstream origin gh-pages
	git push

Setup Travis CI (only do once)
---

[Setup Travis CI](http://docs.travis-ci.com/user/getting-started/)

	Make small change to any file, e.g. add _Testing_ to the end of [README.md](README.md)
	git add -A
	git commit -m "feat(travis): first build for travis"
	git push


Run single test
---

mocha -g 'default policy' test/test.js


Run subset of tests and analyze coverage
---

istanbul cover _mocha -- -g 'regex' test/test.js


Running Basic Performance Test
---

npm run performance<commit_msg>doc(contributing): fix blockquotes<commit_after>Contributing
====

Beginning Work on an Issue
---
	Create branch
	git clone branch-url


Committing Changes
---
[Commit Message Format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit)

	npm run coverage
	npm run beautify
	git add -A
	git commit -m msg
	git push 


Building
---

	npm run build

Publishing to both npm and bower
---

	tin -v VERSION
	npm run build
	git add -A
	git commit -m 'VERSION'
	git tag vVERSION
	git push origin master --tags
	npm publish

or, you can use: [tin-npm](https://gist.github.com/redgeoff/73b78d3b7a6edf21644f), e.g.

	tin-npm 0.0.2

Updating gh-pages
---

    git checkout gh-pages
    git merge master
    git push

Setup for gh-pages (only do once)
---

	git checkout -b gh-pages
	git push --set-upstream origin gh-pages
	git push

Setup Travis CI (only do once)
---

[Setup Travis CI](http://docs.travis-ci.com/user/getting-started/)

	Make small change to any file, e.g. add _Testing_ to the end of [README.md](README.md)
	git add -A
	git commit -m "feat(travis): first build for travis"
	git push


Run single test
---

    mocha -g 'default policy' test/test.js


Run subset of tests and analyze coverage
---

    istanbul cover _mocha -- -g 'regex' test/test.js


Running Basic Performance Test
---

    npm run performance
{'fraction_non_alphanumeric': 0.10540234227427277, 'fraction_numerical': 0.011333585190782017, 'mean_word_length': 2.9346210995542346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '7411486', 'n_tokens_mistral': 1005, 'n_tokens_neox': 911, 'n_words': 327}