<commit_before># Decoy

## Installation

1. Add `"bkwld/decoy": "~3.0",` to your composer.json and install.  This reflects the latest stable branch.
2. Run `php artisan migrate --package=cartalyst/sentry`
3. Run `php artisan migrate --package=bkwld/decoy`
4. Run `php artisan config:publish bkwld/decoy`


### Contributing

- The `master` branch represents what will be come the next **minor** release.
- A small, low-risk feature for an actively developed project should be created in a feature branch (based on the latest version-branch) and then merged into both the version-branch and master.
- A riskier feature should be worked on in a feature branch and then moved into master.  When it's finished, it can be come part of the next minor vesion release.  


### Tests

Decoy 2.x adds some unit tests.  To run them, first do a composer install in the Decoy directory with dev resources: `composer install --dev` or `composer update`.  Then (still from the Decoy package directory) run `vendor/bin/phpunit`.  I hope that we continue to add tests for any issues we fix down the road. 



## Routing

Decoy uses custom routing logic to translate it's heirachially path structure into an admin namespaced controller.  Here are some examples of the types of requests that are supported.

*Index*

* GET admin/articles -> Admin\ArticlesController@index
* GET admin/articles/2/article-slides  -> Admin\ArticleSlidesController@index
* GET admin/articles/2/article-slides/5/assets  -> Admin\AssetsController@index

*Create*

* GET admin/articles/create -> Admin\ArticlesController@create
* GET admin/articles/2/article-slides/create  -> Admin\ArticleSlidesController@create

TODO Add more examples

For more info, check out the tests/Routing/TestWildcard.php unit tests.



## Models
<commit_msg>Adding a command to find which commits are newer on master<commit_after># Decoy

## Installation

1. Add `"bkwld/decoy": "~3.0",` to your composer.json and install.  This reflects the latest stable branch.
2. Run `php artisan migrate --package=cartalyst/sentry`
3. Run `php artisan migrate --package=bkwld/decoy`
4. Run `php artisan config:publish bkwld/decoy`


### Contributing

- The `master` branch represents what will be come the next **minor** release.
- A small, low-risk feature for an actively developed project should be created in a feature branch (based on the latest version-branch) and then merged into both the version-branch and master.
- A riskier feature should be worked on in a feature branch and then moved into master.  When it's finished, it can be come part of the next minor vesion release.  This git command gives you a nice view into commits that are new on master versus the most recent version:

	```bash
	git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative {branch}..master
	```


### Tests

Decoy 2.x adds some unit tests.  To run them, first do a composer install in the Decoy directory with dev resources: `composer install --dev` or `composer update`.  Then (still from the Decoy package directory) run `vendor/bin/phpunit`.  I hope that we continue to add tests for any issues we fix down the road. 



## Routing

Decoy uses custom routing logic to translate it's heirachially path structure into an admin namespaced controller.  Here are some examples of the types of requests that are supported.

*Index*

* GET admin/articles -> Admin\ArticlesController@index
* GET admin/articles/2/article-slides  -> Admin\ArticleSlidesController@index
* GET admin/articles/2/article-slides/5/assets  -> Admin\AssetsController@index

*Create*

* GET admin/articles/create -> Admin\ArticlesController@create
* GET admin/articles/2/article-slides/create  -> Admin\ArticleSlidesController@create

TODO Add more examples

For more info, check out the tests/Routing/TestWildcard.php unit tests.



## Models

{'fraction_non_alphanumeric': 0.08476753146673517, 'fraction_numerical': 0.005651168764449011, 'mean_word_length': 4.247978436657682, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5762036', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1085, 'n_words': 485}