<commit_before># zip

> Package and compress (archive) files into zip file.

- Package and compress a directory and its contents, [r]ecursively:

`zip -r {{compressed.zip}} {{/path/to/dir}}`

- E[x]clude unwanted files from being added to the compressed archive:

`zip -r {{compressed.zip}} {{path/to/dir}} -x \*.git\* \*node_modules\* ...`

- Archive a directory and its contents with the highest level [9] of compression:

`zip -r -9 {{compressed.zip}} {{/path/to/dir}}`

- Package and compress multiple directories and files:

`zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}`

- Add files to an existing zip file:

`zip {{compressed.zip}} {{path/to/file}}`

- Delete files from an existing zip file:

`zip -d {{compressed.zip}} "{{foo/*.tmp}}"`<commit_msg>zip.md: wrap compression level in tokens<commit_after># zip

> Package and compress (archive) files into zip file.

- Package and compress a directory and its contents, [r]ecursively:

`zip -r {{compressed.zip}} {{/path/to/dir}}`

- E[x]clude unwanted files from being added to the compressed archive:

`zip -r {{compressed.zip}} {{path/to/dir}} -x \*.git\* \*node_modules\* ...`

- Archive a directory and its contents with the highest level [9] of compression:

`zip -r -{{9}} {{compressed.zip}} {{/path/to/dir}}`

- Package and compress multiple directories and files:

`zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}`

- Add files to an existing zip file:

`zip {{compressed.zip}} {{path/to/file}}`

- Delete files from an existing zip file:

`zip -d {{compressed.zip}} "{{foo/*.tmp}}"`
{'fraction_non_alphanumeric': 0.17385866166353972, 'fraction_numerical': 0.0050031269543464665, 'mean_word_length': 3.86322188449848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7348917', 'n_tokens_mistral': 549, 'n_tokens_neox': 534, 'n_words': 188}