<commit_before>dev-env
=======

##required software

*  [Git](http://git-scm.com/downloads) (git bash (cygwin) is recommended)
*  [Vagrant](http://downloads.vagrantup.com)
*  [Virtualbox](https://www.virtualbox.org/wiki/Downloads)

##Prerequisites
#1. SSH keys generated
```shell
    ssh-keygen -t rsa -C "<EMAIL>"
```
#2. Identities added to ssh-agent
Linux & OS X
```shell
    ssh-add
```
Windows
```shell
    eval `ssh-agent.exe`
    ssh-add ~/.ssh/
```
#3.  Add your email, name, and push behavior preference in the git config in the vagrantfile. (you can always update this later with normal git config commands)


##steps to get up and running

#1. Clone this repo and dependants
```shell
    git clone <EMAIL>:Blendtec/dev-env.git
    cd dev-env
    ./setup.sh
```
if you're on a windows machine without git gitbash/cygwin installed you probably want to manually
go through the commands in setup.sh substituting commands as necessary.

#2. Start vagrant (provisioning takes a while on the initial boot). 
```shell
    vagrant up
```
at this point you should have the blendtec environment running accessible [from the host](http://localhost:8081)

#3. Connect to the guest machine

```shell
    vagrant ssh
```

#4. Install certificate
```shell
      cd /srv/www
      arc install-certificate
```

#5. Follow the instructions
go to [http://dev.blendtec.com/conduit/token/](http://dev.blendtec.com/conduit/token/) copy your token
paste it in


Do Work!<commit_msg>Formatting<commit_after>Blendtec.com Development Environment
=======
#Prerequisites

##Software
*  [Git](http://git-scm.com/downloads) (git bash (cygwin) is recommended)
*  [Vagrant](http://downloads.vagrantup.com)
*  [Virtualbox](https://www.virtualbox.org/wiki/Downloads)

##Configuration

###1. SSH keys generated
```shell
    ssh-keygen -t rsa -C "<EMAIL>"
```
###2. Identities added to ssh-agent
Linux & OS X
```shell
    ssh-add
```
Windows
```shell
    eval `ssh-agent.exe`
    ssh-add ~/.ssh/
```
###3.  Git Config 
Add your email, name, and push behavior preference in the [git config section](https://github.com/Blendtec/dev-env/blob/master/Vagrantfile#L121) (git bash (cygwin) is recommended) in the vagrantfile. This must match your name and email in phabricator.

```ruby
    :git => {
        :email => '<EMAIL>',
        :user => '<NAME>',
        :push_default => 'simple'
    }
```
(you can always update this later with normal git config commands)



#Up and running

###1. Clone this repo and dependants
```shell
    git clone <EMAIL>@github.com:Blendtec/dev-env.git
    cd dev-env
    ./setup.sh
```
if you're on a windows machine without git gitbash/cygwin installed you probably want to manually
go through the commands in setup.sh substituting commands as necessary until I add a batch file. 

###2. Start vagrant (provisioning takes a while on the initial boot). 
```shell
    vagrant up
```
at this point you should have the blendtec environment running accessible [from the host](http://localhost:8081)

###3. Connect to the guest machine

```shell
    vagrant ssh
```

###4. Install certificate
```shell
      cd /srv/www
      arc install-certificate
```

###5. Follow the instructions
go to [http://dev.blendtec.com/conduit/token/](http://dev.blendtec.com/conduit/token/) copy your token
paste it in


Do Work!
{'fraction_non_alphanumeric': 0.13301088270858524, 'fraction_numerical': 0.008162031438935914, 'mean_word_length': 3.6671368124118477, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2415613', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1049, 'n_words': 367}