<jupyter_start><jupyter_text>MedGen Import<jupyter_code>%%capture
!. `fire-dotenv find_dotenv` && python medgen.py flow - visualize --filename=flow --format=png && rm flow<jupyter_output><empty_output><jupyter_text>![flow](flow.png)<jupyter_code>!wget https://ftp.ncbi.nlm.nih.gov/pub/medgen/csv/MGREL_1.csv.gz
!head /tmp/medgen/mgrel.csv/MGREL_2.csv.gz
!rm -rf $HOME/.prefect/medgen
!. `fire-dotenv find_dotenv` && python medgen.py flow - run - is_successful<jupyter_output>[2020-06-19 02:35:12] INFO - prefect.FlowRunner | Beginning Flow run for 'medgen-v2020-06'
[2020-06-19 02:35:12] INFO - prefect.FlowRunner | Starting flow run.
[2020-06-19 02:35:12] INFO - prefect.TaskRunner | Task 'catalog_path=/home/jovyan/work/repos/public-data-source/catalog.yaml': Starting task run...
[2020-06-19 02:35:12] INFO - prefect.TaskRunner | Task 'catalog_path=/home/jovyan/work/repos/public-data-source/catalog.yaml': finished task run for task with final state: 'Success'
[2020-06-19 02:35:12] INFO - prefect.TaskRunner | Task 'url=gs://public-data-source/catalog/medgen/mgrel/v2020-06/20200601T000000/data.parquet': Starting task run...
[2020-06-19 02:35:12] INFO - prefect.TaskRunner | Task 'url=gs://public-data-source/catalog/medgen/mgrel/v2020-06/20200601T000000/data.parquet': finished task run for task with final state: 'Success'
[2020-06-19 02:35:12] INFO - prefect.TaskRunner | Task 'entry.key={
source: medgen
storage: gcs
artifact: mgrel
version: v2020-06
created: 20200[...]
{'fraction_non_alphanumeric': 0.1581081081081081, 'fraction_numerical': 0.10608108108108108, 'mean_word_length': 4.995951417004049, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '295851', 'license': 'Apache-2.0', 'n_tokens_mistral': 664, 'n_tokens_neox': 545, 'n_words': 104, 'path': 'import/medgen/session.ipynb', 'repo_name': 'ravwojdyla/public-data-source', 'size': '1480'}