<commit_before># Wagrant

The Wagrant is an Ubuntu/Xenial64 based development environment.

## Getting started

```
$ git clone <EMAIL>:wakayama-hacker/wagrant.git
$ cd wagrant
$ vagrant up
```

See also: https://www.vagrantup.com/docs/getting-started/

## What's installed

* Apache
* MySQL
* PHP 7
* Ruby 2.3
* Node.js 6.x

## Requires

* VirtualBox 5.1.4 or later
* Vagrant 1.8.5 or later

## Contributing

### Automated testing

Install serverspec and dependencies.

```
$ bundle install --path vendor/bundle
```

Then run `serverspec`.

```
$ bundle exec rake spec
```

#### Note

If you get an error like following.

```
Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    vagrant (= 1.8.5) was resolved to 1.8.5, which depends on
      bundler (= 1.12.5)
```

You should specify version to `bundle` command.

```
$ gem install bundler -v 1.12.5
$ bundle _1.12.5_ install
$ bundle _1.12.5_ exec rake spec
```
<commit_msg>some fix<commit_after># Wagrant

The Wagrant is an Ubuntu/Xenial64 based development environment.

## Getting started

```
$ git clone <EMAIL>:wakayama-hacker/wagrant.git
$ cd wagrant
$ vagrant up
```

See also: https://www.vagrantup.com/docs/getting-started/

## What's installed

* Apache
* MySQL
* PHP 7
* Ruby 2.3
* Node.js 6.x

## Requires

* VirtualBox 5.1.4 or later
* Vagrant 1.8.5 or later

## Customization

### Ansible

Add `provision-post.yml` into vagrant root directory like following.

```
- hosts: all
  tasks:
    - name: Install Ruby gems
      become: yes
      gem:
        name: "{{ item }}"
        state: latest
        user_install: no
        executable: /usr/bin/gem
      with_items:
        - mailcatcher
```

### Shell script

Add `provision-post.sh` into vagrant root directory like following.

```
#!/usr/bin/env bash

set -ex

sudo apt-get install nginx
```

{'fraction_non_alphanumeric': 0.12791327913279132, 'fraction_numerical': 0.024932249322493227, 'mean_word_length': 3.111358574610245, 'pattern_counts': {'":': 1, '<': 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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6755189', 'n_tokens_mistral': 709, 'n_tokens_neox': 653, 'n_words': 199}