<commit_before>Installation
============

Installation with Composer
--------------------------

    composer require tebru/retrofit-php:~2.0

Retrofit does not include an http client, please install guzzle. Additional clients will be supported in the future.

    composer require guzzlehttp/guzzle

Setup
-----

The easiest way to get setup is to add the psr-4 autoload location where you include the autoloader.

    $loader = require __DIR__ . '/vendor/autoload.php';
    $loader->addPsr4('Tebru\\Retrofit\\Generated\\', __DIR__ . '</path/to/cache/dir>/retrofit');

If you do not have environment specific cache directories, you could specify the psr-4 autoload location in your composer.json instead.

    "autoload": {
        "psr-4": {
            "Tebru\\Retrofit\\Generated\\": "<path/to/cache/dir>/retrofit"
        }
    }

Use the [command][retrofit command] to generate the cache files.  This will have to be run after every change to a client.

[retrofit command]: usage.md#command
<commit_msg>Update installation.md<commit_after>Installation
============

Installation with Composer
--------------------------

```bash
composer require tebru/retrofit-php:~2.0
```

Retrofit does not include an http client, please install guzzle. Additional clients will be supported in the future.

```bash
composer require guzzlehttp/guzzle
```

Setup
-----

The easiest way to get setup is to add the psr-4 autoload location where you include the autoloader.

```php
$loader = require __DIR__ . '/vendor/autoload.php';
$loader->addPsr4('Tebru\\Retrofit\\Generated\\', __DIR__ . '</path/to/cache/dir>/retrofit');
```

If you do not have environment specific cache directories, you could specify the psr-4 autoload location in your composer.json instead.

```json
"autoload": {
    "psr-4": {
        "Tebru\\Retrofit\\Generated\\": "<path/to/cache/dir>/retrofit"
    }
}
```

Use the [command][retrofit command] to generate the cache files.  This will have to be run after every change to a client.

[retrofit command]: usage.md#command

{'fraction_non_alphanumeric': 0.1437684003925417, 'fraction_numerical': 0.005888125613346418, 'mean_word_length': 3.3107822410147993, 'pattern_counts': {'":': 6, '<': 7, '<?xml version=': 0, '>': 9, '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': '311397', 'n_tokens_mistral': 626, 'n_tokens_neox': 609, 'n_words': 209}