<commit_before># Pixiv Assistant (Server)

The optional server component of the Pixiv Assistant extension. The browser component is responsible for the user interface extensions and the translation functionality, this server component provides several complementary features.

The server supports:
* Single and Bulk downloading of images
* Opening of either the repository folder or a direct artist folder in the default system file browser
* Reporting status of already downloaded images so that the browser extension can hide them

If building yourself, run as 

	npm start -- --repo [artist|flat] --path <path>
	
Otherwise, run as

	./pixiv-assistant-server --repo [artist|flat] --path <path>

Where path is the local or fixed path of the root folder of the repository.

The Artist repo option assumes the folders are structured as:

	repo/[<artist.id>] - <artist.name>/<image>

The flat repo makes no assumptions, but will create a db.json file with the information that it has collected on folder structure on program exit. This file exists to avoid having to reload the folder structure every execution of the program. 

## To Build
<commit_msg>minor update<commit_after># Pixiv Assistant (Server)

The optional server component of the Pixiv Assistant extension. The browser component is responsible for the user interface extensions and the translation functionality, this server component provides several complementary features.

The server supports:
* Single and bulk downloading of images
* Opening of either the repository folder or a direct artist folder in the default system file browser
* Reporting status of already downloaded images so that the browser extension can hide them

If building yourself, run as 

	npm start -- --repo [artist|flat] --path <path>
	
Otherwise, run as

	./pixiv-assistant-server --repo [artist|flat] --path <path>

Where path is the local or fixed path of the root folder of the repository.

The Artist repo option assumes the folders are structured as:

	repo/[<artist.id>] - <artist.name>/<image>

The flat repo makes no assumptions, but will create a db.json file with the information that it has collected on folder structure on program exit. This file exists to avoid having to reload the folder structure every execution of the program. 

## To Build

{'fraction_non_alphanumeric': 0.05215123859191656, 'fraction_numerical': 0.0, 'mean_word_length': 4.429245283018868, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4811575', 'n_tokens_mistral': 560, 'n_tokens_neox': 522, 'n_words': 327}