<commit_before>Nexus Examples
==============

This repository contains some examples of using the GPII Nexus
integration technology.

Getting the examples and installing dependencies
------------------------------------------------

```
$ git clone https://github.com/simonbates/nexus-examples.git
$ cd nexus-examples
$ npm install
```

Running the examples
--------------------

### 1. Run the Nexus

Run the Nexus.

### 2. Construct the Nexus peers

```
> node examples/constructNexusPeers.js
```

### 4. Serve and visit the examples web pages

This repo contains a simple static webserver configuration, or you can
use a webserver that you've already got set up.

There is a top level `index.html` with links to the individual
examples.

To use the webserver configured in `nexus-examples`:

```
$ node nexus-examples.js
```

Then, point your web browser to:

- [http://localhost:8080/](http://localhost:8080/)

### 3. Run AsTeRICS ACS and ARE, and load the model

- Use the AsTeRICS fork with the NexusConnector component at https://github.com/simonbates/AsTeRICS/tree/GPII-1543
- Run ACS
- Run ARE
- Upload and run the `examples/AsTeRICS/Facetracker to NexusConnector.acs` model

Instructions for building the ARE can be found here:
https://github.com/simonbates/AsTeRICS/blob/GPII-1543/ReadMe.md

If you are running AsTeRICS on a different machine from the Nexus, you
will need to tell the NexusConnector AsTeRICS component where to<commit_msg>NOJIRA: Update README.md<commit_after>Nexus Examples
==============

This repository contains some examples of using the GPII Nexus
integration technology.

Getting the examples and installing dependencies
------------------------------------------------

```
$ git clone https://github.com/simonbates/nexus-examples.git
$ cd nexus-examples
$ npm install
```

Running the examples
--------------------

### 1. Run the Nexus

Run the Nexus.

### 2. Construct the Nexus peers

```
> node examples/constructNexusPeers.js
```

### 3. Serve and visit the examples web pages

This repo contains a simple static webserver configuration, or you can
use a webserver that you've already got set up.

There is a top level `index.html` with links to the individual
examples.

To use the webserver configured in `nexus-examples`:

```
$ node nexus-examples.js
```

Then, point your web browser to:

- [http://localhost:8080/](http://localhost:8080/)

### 4. Run AsTeRICS ACS and ARE, and load the model

- Use the AsTeRICS fork with the NexusConnector component at https://github.com/simonbates/AsTeRICS/tree/GPII-1543
- Run ACS
- Run ARE
- Upload and run the `examples/AsTeRICS/Facetracker to NexusConnector.acs` model

Instructions for building the ARE can be found here:
https://github.com/simonbates/AsTeRICS/blob/GPII-1543/ReadMe.md

If you are running AsTeRICS on a different machine from the Nexus, you
will need to tell the NexusConnector AsTeRICS component where to
{'fraction_non_alphanumeric': 0.13740982480247338, 'fraction_numerical': 0.013740982480247337, 'mean_word_length': 3.412121212121212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '1388282', 'n_tokens_mistral': 934, 'n_tokens_neox': 829, 'n_words': 331}