<commit_before># Sensor Shirt
A shirt that helps you learn yoga by giving live feedback on your body position compared to the correct form. 

## Setup

The Teensy 3.1 was used as the microcontroller for the sensor shirt. To run this just like an Arduino board, you will need to download the Teensyduino software on your computer, which can be downloaded from https://www.pjrc.com/teensy/td_download.html. 

From there you can start Arduino and select the correct board you are using. For the first time run, you will have to "Verify" the code and then press the button on the Teensy when prompted to program the code. 

<!-- TODO: create package.json file for all required node libraries -->
There are also some libraries and packages required to run the sensor shirt. First you will need to have Node.js installed on your computer, which you can download from http://nodejs.org.

After installing node, or if you already have it, in your command line run each of the following commands to install all required packages.

```
$ npm express
$ npm socket.io
$ npm serialport
```
## Running the Web Page

To run the web page using node first check you have all the modules installed. Next from the root of the directorty navigate to the nodeSerialServer directory and run the following command. You will need to replace /dev/tty.usbmodem728331 with the port you are using. The port can be seen at the bottom right corner of the standard Arduino editor.

```
$ cd nodeSerialServer/
$ node SerialServer.js /dev/tty.usbmodem728331
```

The server will now be running and you can view index.html by navigating to `http://localhost:8080` in your browser. To stop the server simply type 'control-c' in your cmd line. 

## Using Position Functions

The position functions can be used to build up complete positions.
<commit_msg>Updated links in README<commit_after># Sensor Shirt
A shirt that helps you learn yoga by giving live feedback on your body position compared to the correct form. 

## Setup

The Teensy 3.1 was used as the microcontroller for the sensor shirt. To run this just like an Arduino board, you will need to download the Teensyduino software on your computer, which can be downloaded from [prjc](https://www.pjrc.com/teensy/td_download.html). 

From there you can start Arduino and select the correct board you are using. For the first time run, you will have to "Verify" the code and then press the button on the Teensy when prompted to program the code. 

<!-- TODO: create package.json file for all required node libraries -->
There are also some libraries and packages required to run the sensor shirt. First you will need to have Node.js installed on your computer, which you can download from the official [node site](http://nodejs.org).

After installing node, or if you already have it, in your command line run each of the following commands to install all required packages.

```
$ npm express
$ npm socket.io
$ npm serialport
```
## Running the Web Page

To run the web page using node first check you have all the modules installed. Next from the root of the directorty navigate to the nodeSerialServer directory and run the following command. You will need to replace /dev/tty.usbmodem728331 with the port you are using. The port can be seen at the bottom right corner of the standard Arduino editor.

```
$ cd nodeSerialServer/
$ node SerialServer.js /dev/tty.usbmodem728331
```

The server will now be running and you can view index.html by navigating to `http://localhost:8080` in your browser. To stop the server simply type 'control-c' in your cmd line. 

## Using Position Functions

The position functions can be used to build up complete positions.

{'fraction_non_alphanumeric': 0.05217391304347826, 'fraction_numerical': 0.009782608695652175, 'mean_word_length': 4.133891213389122, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6550471', 'n_tokens_mistral': 970, 'n_tokens_neox': 906, 'n_words': 568}