<commit_before># Retry

The retry plugin allows you to configure retry rules for your proxy. This enables you to be more resilient for any network or any other kind of failure.

## Configuration

The plain retry config:

```json
"retry": {
    "enabled": true,
    "config": {
        "attempts": 3,
        "backoff": "1s",
        "predicate": "statusCode == 0 || statusCode >= 500"
    }
}
```

| Configuration | Description        |
| attempts      | Number of attempts |
| backoff       | Time that we should wait to retry. This can must be given in the [ParseDuration](https://golang.org/pkg/time/#ParseDuration) format. Defaults to `1s` |
| predicate     | The rule that we will check to define if the request was successful or not. You have access to `statusCode` and all the `request` object. Defaults to `statusCode == 0 || statusCode >= 500` |<commit_msg>Fixed typo<commit_after># Retry

The retry plugin allows you to configure retry rules for your proxy. This enables you to be more resilient for any network or any other kind of failure.

## Configuration

The plain retry config:

```json
"retry": {
    "enabled": true,
    "config": {
        "attempts": 3,
        "backoff": "1s",
        "predicate": "statusCode == 0 || statusCode >= 500"
    }
}
```

| Configuration | Description        |
| attempts      | Number of attempts |
| backoff       | Time that we should wait to retry. This must be given in the [ParseDuration](https://golang.org/pkg/time/#ParseDuration) format. Defaults to `1s` |
| predicate     | The rule that we will check to define if the request was successful or not. You have access to `statusCode` and all the `request` object. Defaults to `statusCode == 0 || statusCode >= 500` |
{'fraction_non_alphanumeric': 0.10666666666666667, 'fraction_numerical': 0.012753623188405797, 'mean_word_length': 3.199513381995134, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7352103', 'n_tokens_mistral': 506, 'n_tokens_neox': 473, 'n_words': 214}