<commit_before>YFITOPS
===========

## Configuration
Before being able to run the script you will need to do some configuration.

At the root of the project there is a **config.json** file present that needs to be filled out, the information necessary will be:

* username (Spotify username)
* password (Spotify password)
* path (location where tracks will be downloaded; e.g. /Users/Chris/Music)

I believe the default Music folder location in Mac's is **/Users/USERNAME/Music** so that might be a good location to use. I would recommend making sure you only keep your **config.json** file in your local machine.

** **to be able to use the script I believe you need to have a Spotify Premium account** **


## Running

Running on the current node version seems to not work properly but Node v0.10.36 seems to work. To install different versions of Node I would recommend NVM. To get NVM you can run the following
```
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
```

Once installed you can run the following to install Node v0.10.36
```
nvm install 0.10.36
nvm use 0.10.36

# install modules and run application
npm install
node app.js <spotify uri><commit_msg>updated readme to have link to node v0.10.36<commit_after>YFITOPS
===========

## Configuration
Before being able to run the script you will need to do some configuration.

At the root of the project there is a **config.json** file present that needs to be filled out, the information necessary will be:

* username (Spotify username)
* password (Spotify password)
* path (location where tracks will be downloaded; e.g. /Users/Chris/Music)

I believe the default Music folder location in Mac's is **/Users/USERNAME/Music** so that might be a good location to use. I would recommend making sure you only keep your **config.json** file in your local machine.

** **to be able to use the script I believe you need to have a Spotify Premium account** **


## Running

Running on the current node version seems to not work properly but [Node v0.10.36](http://blog.nodejs.org/2015/01/26/node-v0-10-36-stable/) seems to work. To install different versions of Node I would recommend NVM. To get NVM you can run the following
```
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
```

Once installed you can run the following to install Node v0.10.36
```
nvm install 0.10.36
nvm use 0.10.36

# install modules and run application
npm install
node app.js <spotify uri>
{'fraction_non_alphanumeric': 0.08981555733761026, 'fraction_numerical': 0.026463512429831595, 'mean_word_length': 4.102249488752556, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3326062', 'n_tokens_mistral': 756, 'n_tokens_neox': 692, 'n_words': 354}