<commit_before># Setting up the dev environment on Mac OSX

1. download [Visual studio code](https://code.visualstudio.com/)
2. install DNVM (.NET Version Manager): 
```
	curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
```

3. install [homebrew](http://brew.sh/)
```
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```

4. Install Mono

```
brew update && brew install mono
```

5. install DNX for Mono

```
dnvm upgrade -r mono
```
<commit_msg>Update readme to setup dev environment on OSX<commit_after># Setting up the dev environment on Mac OSX

First install Homebrew, if you don't have it yet

```
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```

Install the .NET Version Manager (it's used to install and update different .NET runtimes like mono or Microsoft Core CLR)

```
	curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
```

We will use mono for this project, let's install it

```
brew update && brew install mono
```

Install DNX (.NET Execution Environment) for Mono

```
dnvm upgrade -r mono
```

Now let's install Visual Studio Code (it's a cut down version of VS which runs on Mac, Linux and Windows)

```
brew cask install visual-studio-code
```

Of course you need to clone this repository, if you have not done that yet run the following command in the folder of your choice

```
git clone <EMAIL>@github.com:AdaptiveConsulting/AdaptiveTrader.git
```

Open the AdaptiveTrader folder in Visual Studio Code to look at the code base.

To run it, you need to use the following command in the AdaptiveTrader/Server/ directory

```
dnx run
```
{'fraction_non_alphanumeric': 0.11853088480801335, 'fraction_numerical': 0.0027824151363383415, 'mean_word_length': 4.181556195965418, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '438766', 'n_tokens_mistral': 614, 'n_tokens_neox': 560, 'n_words': 217}