<jupyter_start><jupyter_text>Preprocessing Preprocessing of data gathered from mturk/gform: quality checks of the forms etc<jupyter_code># Retrieve the urls of the forms generated by the app script
service = get_drive_service(CREDS_PATH)
gform_map = get_gform_map(service, GMAP_DRIVE_ID, "/dev/null")

if not any(list(QUALITY_CHECK_DIR.glob("*.csv"))):
    download_multi_csv(gform_map, QUALITY_CHECK_DIR, service)

quality_check(QUALITY_CHECK_DIR)<jupyter_output>Download 100%
Forms in right format: 
**All emojis are present
**Honeypots well placed
{'fraction_non_alphanumeric': 0.08545454545454545, 'fraction_numerical': 0.005454545454545455, 'mean_word_length': 7.746031746031746, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '371945', 'license': 'MIT', 'n_tokens_mistral': 197, 'n_tokens_neox': 190, 'n_words': 49, 'path': 'notebooks/6_forms_validation.ipynb', 'repo_name': 'ymentha14/emojis_dataset', 'size': '550'}