<commit_before># YouTrack attachment cleaner

With this tiny script, you can batch-remove attachments from issues by query.

## Parameters

* `h|host` The youtrack host/URL
* `u|username` The login username
* `p|password` The login password
* `q|query` The search query for the issues
* `f|pattern` An optional filter/pattern for attachment filenames
* `l|limit` The limit/maximum of issues fetched, default is 100.

## Example

To delete the first 1000 matching resolved issues in project 'Test' with attachments, which are
created between 1990-01-01 and 2015-01-01.

    php src/cleaner.php \
        -h https://**.myjetbrains.com/youtrack \
        -u root -p '**secret**' \
        -q 'project: Test has: attachments created: 1990-01-01 .. 2015-01-01 State: Resolved' \
        --pattern 'backtrace|logfile' \
        --limit 1000

You can run this line as long as no results are found.
<commit_msg>Spelling<commit_after># YouTrack attachment cleaner

With this tiny script, you can batch-remove attachments from issues by query.

## Parameters

* `h|host` The youtrack host/URL
* `u|username` The login username
* `p|password` The login password
* `q|query` The search query for the issues
* `f|pattern` An optional filter/pattern for attachment filenames
* `l|limit` The limit/maximum of issues fetched, default is 100.

## Example

To delete the first 1000 matching resolved issues in project 'Test' with attachments, which are
created between 1990-01-01 and 2015-01-01.

    php src/cleaner.php \
        -h https://**.myjetbrains.com/youtrack \
        -u root -p '**secret**' \
        -q 'project: Test has: attachments created: 1990-01-01 .. 2015-01-01 State: Resolved' \
        --pattern 'backtrace|logfile' \
        --limit 1000

You can run this line until no results are found.

{'fraction_non_alphanumeric': 0.10356347438752785, 'fraction_numerical': 0.04788418708240535, 'mean_word_length': 3.288782816229117, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5571687', 'n_tokens_mistral': 608, 'n_tokens_neox': 521, 'n_words': 212}