<commit_before># Research Frontend for CollectiveAccess

Public research frontend SPA for CollectiveAccess.

[![Build Status](https://secure.travis-ci.org/rwahs/research-frontend.png?branch=master-fix)](http://travis-ci.org/rwahs/research-frontend)

## Development Environment Setup

You need Node.js 6.x installed.  It may work on previous versions (5.x) but this is untested.  For Linux development  
environments, `nvm` is recommended: https://github.com/creationix/nvm.  

To install dependencies, execute the following commands in the project's root directory:

    npm install -g gulp bower
    npm install
    bower install

This (1) installs global dependencies, (2) installs local development and automation dependencies, and (3) installs 
application dependencies.  You can check `package.json` and `bower.json` to see what will be installed.

## Automation

The project uses `gulp` to automate many processes in the development environment.

### Performing QA

To run linter, code style checker and unit tests:

    gulp qa

### Compiling LESS

To convert LESS, including the Bootstrap LESS source, into a single CSS file for use in the browser:

    gulp less

### Watching files for changes

To watch files for changes and perform either QA or LESS compilation as required (depending on the file modified), use:

    gulp watch

To watch only for QA changes, or only for LESS changes, respectively, use:

    gulp watch:qa
    gulp watch:less

### Running a Local Server

To run a local server:

    gulp server

Then access the site on http://localhost:8888/.
<commit_msg>Fix copy-paste error.<commit_after># Research Frontend for CollectiveAccess

Public research frontend SPA for CollectiveAccess.

[![Build Status](https://secure.travis-ci.org/rwahs/research-frontend.png?branch=master)](http://travis-ci.org/rwahs/research-frontend)

## Development Environment Setup

You need Node.js 6.x installed.  It may work on previous versions (5.x) but this is untested.  For Linux development  
environments, `nvm` is recommended: https://github.com/creationix/nvm.  

To install dependencies, execute the following commands in the project's root directory:

    npm install -g gulp bower
    npm install
    bower install

This (1) installs global dependencies, (2) installs local development and automation dependencies, and (3) installs 
application dependencies.  You can check `package.json` and `bower.json` to see what will be installed.

## Automation

The project uses `gulp` to automate many processes in the development environment.

### Performing QA

To run linter, code style checker and unit tests:

    gulp qa

### Compiling LESS

To convert LESS, including the Bootstrap LESS source, into a single CSS file for use in the browser:

    gulp less

### Watching files for changes

To watch files for changes and perform either QA or LESS compilation as required (depending on the file modified), use:

    gulp watch

To watch only for QA changes, or only for LESS changes, respectively, use:

    gulp watch:qa
    gulp watch:less

### Running a Local Server

To run a local server:

    gulp server

Then access the site on http://localhost:8888/.

{'fraction_non_alphanumeric': 0.07210327455919395, 'fraction_numerical': 0.005667506297229219, 'mean_word_length': 4.075079872204473, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2158068', 'n_tokens_mistral': 918, 'n_tokens_neox': 884, 'n_words': 398}