<commit_before>Stop all builds on the same PR when a new job starts.

## Via github push notification (simple & fast)

 - Generate an access token `curl -X POST "https://api.travis-ci.com/auth/github" -d "github_token=YOUR_GITHUB_TOKEN"`
 - setup github webhook hook to `https://travis-dedup.herokuapp.com/github?repo=your_org/your_repo&token=YOUR_ACCESS_TOKEN&pro=true`

The hook sleeps for 5s before inspecting the builds so the newly pushed build are found too.

## Via travis build step (slow & complicated)
 - encrypt it `travis encrypt TRAVIS_ACCESS_TOKEN=YOUR_ACCESS_TOKEN`
 - add it to your `.travis.yml`
 - Make your first build step:

```Ruby
before_install: gem install travis_dedup && travis-dedup your_org/your_repo $TRAVIS_ACCESS_TOKEN --pro
```

### With existing multiple envs in matrix
 - use `global: + matrix:`
 - use something like `matrix: GROUP=misc` + `before_install: "([ $GROUP = 'misc' ] && gem i travis_dedup && travis-dedup ... ) || [ $GROUP != 'misc' ]"`


optionally generate the token at runtime via curl, but keeping the access token around is far less dangerous

Author
======
[<NAME>](http://grosser.it)<br/>
<EMAIL><br/>
License: MIT<br/>
[![Build Status](https://travis-ci.org/grosser/travis_dedup.png)](https://travis-ci.org/grosser/travi_dedup)
<commit_msg>fix link<commit_after>Stop all builds on the same PR when a new job starts.

## Via github push notification (simple & fast)

 - Generate an access token `curl -X POST "https://api.travis-ci.com/auth/github" -d "github_token=YOUR_GITHUB_TOKEN"`
 - setup github webhook hook to `https://travis-dedup.herokuapp.com/github?repo=your_org/your_repo&token=YOUR_ACCESS_TOKEN&pro=true`

The hook sleeps for 5s before inspecting the builds so the newly pushed build are found too.

## Via travis build step (slow & complicated)
 - encrypt it `travis encrypt TRAVIS_ACCESS_TOKEN=YOUR_ACCESS_TOKEN`
 - add it to your `.travis.yml`
 - Make your first build step:

```Ruby
before_install: gem install travis_dedup && travis-dedup your_org/your_repo $TRAVIS_ACCESS_TOKEN --pro
```

### With existing multiple envs in matrix
 - use `global: + matrix:`
 - use something like `matrix: GROUP=misc` + `before_install: "([ $GROUP = 'misc' ] && gem i travis_dedup && travis-dedup ... ) || [ $GROUP != 'misc' ]"`


optionally generate the token at runtime via curl, but keeping the access token around is far less dangerous

Author
======
[<NAME>](http://grosser.it)<br/>
<EMAIL><br/>
License: MIT<br/>
[![Build Status](https://travis-ci.org/grosser/travis_dedup.png)](https://travis-ci.org/grosser/travis_dedup)

{'fraction_non_alphanumeric': 0.13379737045630316, 'fraction_numerical': 0.0007733952049497294, 'mean_word_length': 4.673245614035087, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 8, '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': '1106346', 'n_tokens_mistral': 898, 'n_tokens_neox': 867, 'n_words': 259}