<commit_before># nlptab-webapp

## Prerequisites

1. Node (https://nodejs.org/en/)
2. Gulp (http://gulpjs.com/)
3. Bower (https://bower.io/)

## Building / Installation

1. In terminal

        bower install
        gulp

2. Edit "dist/config.*.js" to specific nlp-tab URL and add set isSecure=false if you want NLP-TAB to be read-only.
3. Host "dist" directory.

Alternatively, you can use "gulp webserver" to host.<commit_msg>Readme update.<commit_after># nlptab-webapp

## Prerequisites

1. Node (https://nodejs.org/en/)
2. Gulp (http://gulpjs.com/)
3. Bower (https://bower.io/)

## Building / Installation

1. In terminal

```
npm install
bower install
gulp
```
2. Edit "dist/config.*.js" to specific nlp-tab URL and add set isSecure=false if you want NLP-TAB to be read-only.
3. Host "dist" directory.

Alternatively, you can use "gulp webserver" to host.

## Elasticsearch configuration

You will need to enable Cross-Origin Resource Sharing in elasticsearch by adding the following to config/elasticsearch.yml.

```yaml
http.cors.enabled: yes
http.cors.allow-origin: "/https?:\\/\\/localhost(:[0-9]+)?/"
```
{'fraction_non_alphanumeric': 0.14183123877917414, 'fraction_numerical': 0.012567324955116697, 'mean_word_length': 3.532520325203252, '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': '5662643', 'n_tokens_mistral': 398, 'n_tokens_neox': 386, 'n_words': 125}