<commit_before># themis-attack-result
A Ruby gem that specifies attack result constants for [Themis Attack Carrier](https://github.com/aspyatkin/themis-attack-carrier-rb).

## Installation
```sh
gem install themis-attack-result
```
or just add `gem 'themis-attack-result'` to your Gemfile and run `bundle`.

## Attack results
| Status | Description |
|--------|-------------|
|`Themis::Attack::Result::SUCCESS_FLAG_ACCEPTED`|Submitted flag has been accepted.|
|`Themis::Attack::Result::ERR_GENERIC`|Generic error.|
|`Themis::Attack::Result::ERR_INVALID_IDENTITY`|The attacker does not appear to be a team.|
|`Themis::Attack::Result::ERR_CONTEST_NOT_STARTED`|Contest has not been started yet.|
|`Themis::Attack::Result::ERR_CONTEST_PAUSED`|Contest has been paused.|
|`Themis::Attack::Result::ERR_CONTEST_COMPLETED`|Contest has been completed.|
|`Themis::Attack::Result::ERR_INVALID_FORMAT`|Submitted data has invalid format.|
|`Themis::Attack::Result::ERR_ATTEMPTS_LIMIT`|Attack attempts limit exceeded.|
|`Themis::Attack::Result::ERR_FLAG_EXPIRED`|Submitted flag has expired.|
|`Themis::Attack::Result::ERR_FLAG_YOURS`|Submitted flag belongs to the attacking team and therefore won't be accepted.|
|`Themis::Attack::Result::ERR_FLAG_SUBMITTED`|Submitted flag has been accepted already.|
|`Themis::Attack::Result::ERR_FLAG_NOT_FOUND`|Submitted flag has not been found.|
|`Themis::Attack::Result::ERR_SERVICE_NOT_UP`|The attacking team service is not up and therefore flags from the same services of other teams won't be accepted.|
<commit_msg>Add numeric codes to description<commit_after># themis-attack-result
A Ruby gem that specifies attack result constants for [Themis Attack Carrier](https://github.com/aspyatkin/themis-attack-carrier-rb).

## Installation
```sh
gem install themis-attack-result
```
or just add `gem 'themis-attack-result'` to your Gemfile and run `bundle`.

## Attack results
| Status | Code | Description |
|--------|------|-------------|
|`Themis::Attack::Result::SUCCESS_FLAG_ACCEPTED`|0|Submitted flag has been accepted|
|`Themis::Attack::Result::ERR_GENERIC`|1|Generic error|
|`Themis::Attack::Result::ERR_INVALID_IDENTITY`|2|The attacker does not appear to be a team|
|`Themis::Attack::Result::ERR_CONTEST_NOT_STARTED`|3|Contest has not been started yet|
|`Themis::Attack::Result::ERR_CONTEST_PAUSED`|4|Contest has been paused|
|`Themis::Attack::Result::ERR_CONTEST_COMPLETED`|5|Contest has been completed|
|`Themis::Attack::Result::ERR_INVALID_FORMAT`|6|Submitted data has invalid format|
|`Themis::Attack::Result::ERR_ATTEMPTS_LIMIT`|7|Attack attempts limit exceeded|
|`Themis::Attack::Result::ERR_FLAG_EXPIRED`|8|Submitted flag has expired|
|`Themis::Attack::Result::ERR_FLAG_YOURS`|9|Submitted flag belongs to the attacking team and therefore won't be accepted|
|`Themis::Attack::Result::ERR_FLAG_SUBMITTED`|10|Submitted flag has been accepted already|
|`Themis::Attack::Result::ERR_FLAG_NOT_FOUND`|11|Submitted flag has not been found|
|`Themis::Attack::Result::ERR_SERVICE_NOT_UP`|13|The attacking team service is not up and therefore flags from the same services of other teams won't be accepted|

{'fraction_non_alphanumeric': 0.14682413022661986, 'fraction_numerical': 0.005106926268751995, 'mean_word_length': 7.705555555555556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4240893', 'n_tokens_mistral': 1086, 'n_tokens_neox': 990, 'n_words': 247}