<commit_before># phase-0-dev-box

## Summary

This readme will walk you through setting up a Linux dev environment using Vagrant and Chef. Feel free to read more about these technologies online, this readme will focus on getting the technologies to work for you. Here is a list of commands you will be running in order for your reference. More detail will be presented in the releases.

``` git clone https://github.com/Devbootcamp/phase-0-dev-box.git```

``` vagrant plugin install vagrant-vbguest```

``` vagrant plugin install vagrant-librarian-chef-nochef```

``` vagrant up```

``` vagrant ssh```

``` cd /vagrant```

``` exit ```

## Release 0: Install prerequisite programs

Install these programs:
  - git bash (windows users only) [git bash for windows](http://git-scm.com/download/win)
  - Vagrant [VagrantUp](https://www.vagrantup.com/downloads.html)
  - VirtualBox [Virtualbox](https://www.virtualbox.org/wiki/Downloads)

### Windows Specific Instructions:

Install the git bash software for windows, follow default options until you get to adjusting your PATH.

pick ``` Run Git and included Unix tools from the Windows Command Prompt.```

Continue with defaults.

Install Vagrant and Virtualbox for windows, follow default options.

Open the git bash (programs > git > git bash) you should be presented with a terminal interface.


## Release 1: Clone the repo

Clone this repo to your desktop directory:

``` cd Desktop```
``` git clone https://github.com/Devbootcamp/phase-0-dev-box.git```

## Release 2: Install Vagrant Plugins

install two vagrant plugins in your command line:

``` vagrant plugin install vagrant-vbguest```

``` vagrant plugin install vagrant-librarian-chef-nochef```

## Release 3: Install Virtual Machine

To install the virtual machine, type:

``` vagrant up```

If you have an error that looks like this

```
 [NOTE]
 You may have encountered a bug in the Ruby interpreter or extension libraries.
 Bug reports are welcome.
 For details: http://www.ruby-lang.org/bugreport.html


 This application has requested the Runtime to terminate it in an unusual way.
 Please contact the application's support team for more information.
```


on this step, run this command ``` vagrant plugin uninstall ffi && vagrant plugin install ffi --plugin-version 1.9.8```
,

otherwise you can continue to the next release.

## Release 4: Connect to Vagrant
Type this command to connect to your VM:

``` vagrant ssh```

To find the shared folder between the VM and your home operating system, change your directory to /vagrant:

``` cd /vagrant```

Now you are using Linux.

## Release 5: Test for completion

``` ruby -v``` should output 2.2.1

``` rspec -v``` should output 3.1.5

``` sqlite3 --version``` should output 3.8.7

``` git --version``` should output 2.2.1

## Workflow

1. Clone the unit repo into the phase-0-dev-box

2. Open the repo in Sublime Text

2. Connect to the vagrant box using ``` vagrant ssh```

3. change directory using ``` cd /vagrant```

4. Edit the files in Sublime, run them in the command line




<commit_msg>add suggested edits<commit_after># phase-0-dev-box

## Summary

This README will walk you through setting up a Linux dev environment using Vagrant and Chef. Feel free to read more about these technologies online, this README will focus on getting the technologies to work for you. Here is a list of commands you will be running in order for your reference. Detailed instructions will be presented in the releases.

``` git clone https://github.com/Devbootcamp/phase-0-dev-box.git```

``` vagrant plugin install vagrant-vbguest```

``` vagrant plugin install vagrant-librarian-chef-nochef```

``` vagrant up```

``` vagrant ssh```

``` cd /vagrant```

``` exit ```

## Release 0: Install prerequisite programs

Install these programs:
  - git bash (windows users only) [git bash for windows](http://git-scm.com/download/win)
  - Vagrant [VagrantUp](https://www.vagrantup.com/downloads.html)
  - VirtualBox [Virtualbox](https://www.virtualbox.org/wiki/Downloads)

### For Windows Machines only:

Install the git bash software for windows, follow default options until you get to adjusting your PATH.

pick ``` Run Git and included Unix tools from the Windows Command Prompt.```

Continue with defaults.

Install Vagrant and Virtualbox for windows, follow default options.

Open the git bash (programs > git > git bash) you should be presented with a terminal interface.


## Release 1: Clone the repo

Clone this repo to your desktop directory:

In the terminal type:
``` cd Desktop```
``` git clone https://github.com/Devbootcamp/phase-0-dev-box.git```

## Release 2: Install Vagrant Plugins

Install two vagrant plugins in your command line:

``` vagrant plugin install vagrant-vbguest```

``` vagrant plugin install vagrant-librarian-chef-nochef```

## Release 3: Install Virtual Machine

To install the virtual machine, type:

``` vagrant up```

If you have an error that looks like this

```
 [NOTE]
 You may have encountered a bug in the Ruby interpreter or extension libraries.
 Bug reports are welcome.
 For details: http://www.ruby-lang.org/bugreport.html


 This application has requested the Runtime to terminate it in an unusual way.
 Please contact the application's support team for more information.
```


on this step, run this command ``` vagrant plugin uninstall ffi && vagrant plugin install ffi --plugin-version 1.9.8```,

otherwise you can continue to the next release.

## Release 4: Connect to Vagrant
Type this command to connect to your VM:

``` vagrant ssh```

To find the shared folder between the VM and your home operating system, change your directory to /vagrant:

``` cd /vagrant```

Now you are using Linux!

## Release 5: Test for completion

``` ruby -v``` should output 2.2.1

``` rspec -v``` should output 3.1.5

``` sqlite3 --version``` should output 3.8.7

``` git --version``` should output 2.2.1

## Workflow
In order to use this environment, you will need to make sure you clone your Devbootcamp repositories into this repository. 

1. Clone the unit repo into the phase-0-dev-box

2. Connect to the vagrant box (in your command line) using ``` vagrant ssh```

3. Open the repository in Sublime Text

4. Change directories using ``` cd /vagrant```
<!--do they always need to do this to change directories here? It might be good to specify that -->

5. Edit the files in Sublime, then run them as instructed in the command line





{'fraction_non_alphanumeric': 0.09992229992229992, 'fraction_numerical': 0.009634809634809635, 'mean_word_length': 4.051805337519623, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3558530', 'n_tokens_mistral': 1954, 'n_tokens_neox': 1790, 'n_words': 846}