<commit_before>Contribute
==========

Creating Issues
---------------

Run `terminus cli version` to confirm you are [running the latest version](https://github.com/pantheon-systems/terminus/releases) before opening a new issue.

Setting Up
----------

1. Clone this Git repository on your local machine.
2. Install [Composer](https://getcomposer.org/) if you don't already have it.
3. Run `composer install` to fetch all the dependencies.
4. Run `./bin/terminus help` to test that everything was installed properly.

Submitting Patches
------------------

Whether you want to fix a bug or implement a new feature, the process is pretty much the same:

0. [Search existing issues](https://github.com/pantheon-systems/terminus/issues); if you can't find anything related to what you want to work on, open a new issue so that you can get some initial feedback.
1. [Fork](https://github.com/pantheon-systems/terminus/fork) the repository.
2. Push the code changes from your local clone to your fork.
3. Open a pull request.

It doesn't matter if the code isn't perfect. The idea is to get it reviewed early and iterate on it.

If you're adding a new feature, please add one or more functional tests for it in the `tests/features/` directory. See below. Also, keep the documentation up-to-date by running:

  ```bash
  cd /install/location/terminus
  composer docs
  ```


Lastly, please follow [PSR-2](http://www.php-fig.org/psr/psr-2/).  You can test for conformance via:
  ```bash
  cd /install/location/terminus
  composer cs
  ```
The PHP code beautifier can automatically fix a number of style issues. Run it via:
  ```bash
  cd /install/location/terminus
  composer cbf
  ```

Running and Writing Tests
-------------------------

There are two types of automated tests:

* unit tests, implemented using [PHPUnit](http://phpunit.de/)
* functional tests, implemented using [Behat](http://behat.org)

Both the unit and functional tests can be run together via:

`composer test`

### Unit Tests

The unit test files are in the `tests/unit-tests` directory.

To run the unit tests for Terminus 0.x, simply execute:

  `vendor/bin/phpunit`
  
The Terminus 1.x unit tests can be run via:

  ```bash
  cd /install/location/terminus
  composer phpunit
  ```


### Functional Tests

The functional test files are in the `test/features` directory. To run the entire test suite for Terminus 0.x:

  `vendor/bin/behat -c=tests/config/behat.yml`

Or to test a single feature:

  `vendor/bin/behat -c=tests/config/behat.yml tests/features/core.feature`

The complete behat suite for Terminus 1.x can be run via:

  ```bash
  cd /install/location/terminus
  composer behat
  ```

More information can be found by running `vendor/bin/behat --help`.

<commit_msg>Provide the location for the new tests.<commit_after>Contribute
==========

Creating Issues
---------------

Run `terminus cli version` to confirm you are [running the latest version](https://github.com/pantheon-systems/terminus/releases) before opening a new issue.

Setting Up
----------

1. Clone this Git repository on your local machine.
2. Install [Composer](https://getcomposer.org/) if you don't already have it.
3. Run `composer install` to fetch all the dependencies.
4. Run `./bin/terminus help` to test that everything was installed properly.

Submitting Patches
------------------

Whether you want to fix a bug or implement a new feature, the process is pretty much the same:

0. [Search existing issues](https://github.com/pantheon-systems/terminus/issues); if you can't find anything related to what you want to work on, open a new issue so that you can get some initial feedback.
1. [Fork](https://github.com/pantheon-systems/terminus/fork) the repository.
2. Push the code changes from your local clone to your fork.
3. Open a pull request.

It doesn't matter if the code isn't perfect. The idea is to get it reviewed early and iterate on it.

If you're adding a new feature, please add one or more functional tests for it in the `tests/features/` directory. See below. Also, keep the documentation up-to-date by running:

  ```bash
  cd /install/location/terminus
  composer docs
  ```


Lastly, please follow [PSR-2](http://www.php-fig.org/psr/psr-2/).  You can test for conformance via:
  ```bash
  cd /install/location/terminus
  composer cs
  ```
The PHP code beautifier can automatically fix a number of style issues. Run it via:
  ```bash
  cd /install/location/terminus
  composer cbf
  ```

Running and Writing Tests
-------------------------

There are two types of automated tests:

* unit tests, implemented using [PHPUnit](http://phpunit.de/)
* functional tests, implemented using [Behat](http://behat.org)

Both the unit and functional tests can be run together via:

`composer test`

### Unit Tests

The unit test files are in the `tests/unit-tests` directory.

To run the unit tests for Terminus 0.x, simply execute:

  `vendor/bin/phpunit`
  
The Terminus 1.x unit tests can be run via:

  ```bash
  cd /install/location/terminus
  composer phpunit
  ```


### Functional Tests

The functional test files are in the `test/features` directory. To run the entire test suite for Terminus 0.x:

  `vendor/bin/behat -c=tests/config/behat.yml`

Or to test a single feature:

  `vendor/bin/behat -c=tests/config/behat.yml tests/features/core.feature`

The functional test files for the new version of Terminus are in the `test/active-features` directory. The complete behat suite for Terminus 1.x can be run via:

  ```bash
  cd /install/location/terminus
  composer behat
  ```

More information can be found by running `vendor/bin/behat --help`.


{'fraction_non_alphanumeric': 0.1152, 'fraction_numerical': 0.004977777777777778, 'mean_word_length': 3.3953125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '6562008', 'n_tokens_mistral': 1693, 'n_tokens_neox': 1597, 'n_words': 711}