<commit_before># MySQL Puppet Module for Boxen

Requires the following boxen modules:

* `boxen`

## Usage

```puppet
include mysql

mysql::db { 'mydb': }
```

## Developing

Write code.

Run `script/cibuild`.<commit_msg>Add documentation for environment variables<commit_after># MySQL Puppet Module for Boxen

Requires the following boxen modules:

* `boxen`

## Usage

```puppet
include mysql

mysql::db { 'mydb': }
```

### Environment

Once installed, you can access the following variables in your environment, projects, etc:

* BOXEN_MYSQL_PORT: the configured MySQL port
* BOXEN_MYSQL_URL: the URL for MySQL, including localhost & port
* BOXEN_MYSQL_SOCKET: the path to the MySQL socket

#### Rails

In config/database.yml:

```yaml
development:
  adapter: mysql3
  database: yourapp_development
  username: root
  password:
  port: <%= ENV['BOXEN_MYSQL_PORT'] || 3306 %>

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql2
  database: yourapp_test
  username: root
  port: <%= ENV['BOXEN_MYSQL_PORT'] || 3306 %>
```

## Developing

Write code.

Run `script/cibuild`.
{'fraction_non_alphanumeric': 0.10662358642972536, 'fraction_numerical': 0.008077544426494346, 'mean_word_length': 4.657534246575342, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2575602', 'n_tokens_mistral': 427, 'n_tokens_neox': 401, 'n_words': 139}