<jupyter_start><jupyter_text>Let's manually install mosparse into our kernel. Here we give the relative path to the location of the setup.py file<jupyter_code>from pathlib import Path

from tqdm.auto import tqdm

import mosparse.mavreader as mpr
import mosparse.mavtodb as mdb 
mos_files = list(Path("downthemall").iterdir())
len(mos_files)
with open("completed_files.txt", 'a') as f:
    for path in tqdm(mos_files):
        with mpr.MavReader(path, stations=True) as station_generator:
            with tqdm(desc=path.name, position=1) as pbar:
                for station in station_generator:
                    if len(station)>0:
                        mdb.station_to_db(station)
                    pbar.update(1)
        print(path.name, file=f)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08801020408163265, 'fraction_numerical': 0.003826530612244898, 'mean_word_length': 3.0256410256410255, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '170145', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 258, 'n_tokens_neox': 247, 'n_words': 67, 'path': 'docs/batch.ipynb', 'repo_name': 'valgur/mosparse', 'size': '784'}