<commit_before>DEMO
====

Check out README.html for instructions on getting the demo set up.

CODING CONVENTIONS
==================

This code strives to follow the Google style conventions:
  JavaScript: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
  Python:     http://google-styleguide.googlecode.com/svn/trunk/pyguide.html

For JavaScript, we use Google's closure-linter (gjslint): 
  http://code.google.com/p/closure-linter/
Installation instructions:
  http://code.google.com/closure/utilities/docs/linter_howto.html

The command to run to lint the code is:
  gjslint --nojsdoc */*.js
  (this avoids checking the .js files in libraries we use)



UNIT TESTING
============

We use unittest2 and webtest for the Python backend.  You will need to:

  easy_install unittest2 webtest

Unit testing Python server code:

  cd ./tests/py
  ./testrunner.py <PATH-TO-SDK> .

On a Mac, PATH-TO-SDK is the full path to GoogleAppEngineLauncher.app.
On Ubuntu, PATH-TO-SDK is the path to the directory you unzipped appengine to
  (e.g. the directory that contains dev_appserver.py).

For JavaScript, we use Jasmine.  Run the tests by opening SpecRunner files in a
browser.  SpecRunner contains unit tests for the JavaScript CapServer.
WebSpecRunner contains more tests, but can't be run from file:/// urls, and
must be accessed through a web server.  AppSpecRunner requires that the
bfriendr app be running on localhost:9009.
<commit_msg>update README with Selenium info<commit_after>DEMO
====

Check out README.html for instructions on getting the demo set up.

CODING CONVENTIONS
==================

This code strives to follow the Google style conventions:
  JavaScript: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
  Python:     http://google-styleguide.googlecode.com/svn/trunk/pyguide.html

For JavaScript, we use Google's closure-linter (gjslint): 
  http://code.google.com/p/closure-linter/
Installation instructions:
  http://code.google.com/closure/utilities/docs/linter_howto.html

The command to run to lint the code is:
  gjslint --nojsdoc */*.js
  (this avoids checking the .js files in libraries we use)



UNIT TESTING
============

We use unittest2 and webtest for the Python backend.  You will need to:

  easy_install unittest2 webtest selenium

You'll need the Chrome driver for selenium:
  http://code.google.com/p/chromium/downloads/list

Unit testing Python server code:

  cd ./tests/py
  ./testrunner.py <PATH-TO-SDK> .

On a Mac, PATH-TO-SDK is the full path to GoogleAppEngineLauncher.app.
On Ubuntu, PATH-TO-SDK is the path to the directory you unzipped appengine to
  (e.g. the directory that contains dev_appserver.py).

For JavaScript, we use Jasmine.  Run the tests by opening SpecRunner files in a
browser.  SpecRunner contains unit tests for the JavaScript CapServer.
WebSpecRunner contains more tests, but can't be run from file:/// urls, and
must be accessed through a web server.  AppSpecRunner requires that the
bfriendr app be running on localhost:9009.

{'fraction_non_alphanumeric': 0.0958498023715415, 'fraction_numerical': 0.003952569169960474, 'mean_word_length': 4.0871021775544385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5338609', 'n_tokens_mistral': 963, 'n_tokens_neox': 903, 'n_words': 349}