<jupyter_start><jupyter_text>Import required libraries<jupyter_code>import os
import json
import pathlib
from mcookbook.config.notebook import NotebookConfig
from mcookbook.exchanges.abc import Exchange<jupyter_output><empty_output><jupyter_text>Paths to configuration files<jupyter_code>config_files = json.loads(os.environ.get("MCB_CONFIG_FILES") or "[]")<jupyter_output><empty_output><jupyter_text>Load the configuration<jupyter_code>config = NotebookConfig.parse_files(*config_files)<jupyter_output><empty_output><jupyter_text>Initialize the configured exchange<jupyter_code>exchange = Exchange.resolved(config)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09457364341085271, 'fraction_numerical': 0.0, 'mean_word_length': 14.75609756097561, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '615462', 'license': 'Apache-2.0', 'n_tokens_mistral': 215, 'n_tokens_neox': 213, 'n_words': 29, 'path': 'src/mcookbook/notebooks/default.ipynb', 'repo_name': 's0undt3ch/mommas-cookbook', 'size': '645'}