<jupyter_start><jupyter_text>This notebook demonstrates how to import code from a [Python helper file](https://github.com/s2t2/tweet-analysis-2021/blob/main/helpers/number_decorators.py) that's been checked in to GitHub.  Setup<jupyter_code>import os

if not os.path.isfile("number_decorators.py"):
    print("DOWNLOADING NUMBER DECORATORS...")
    !wget -q https://raw.githubusercontent.com/s2t2/tweet-analysis-2021/main/helpers/number_decorators.py<jupyter_output><empty_output><jupyter_text>Usage Importing the function from a local file:<jupyter_code>from number_decorators import fmt_usd

print(fmt_usd(3.5))<jupyter_output>$3.50
{'fraction_non_alphanumeric': 0.11514195583596215, 'fraction_numerical': 0.026813880126182965, 'mean_word_length': 6.470588235294118, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '213735', 'license': 'MIT', 'n_tokens_mistral': 238, 'n_tokens_neox': 228, 'n_words': 40, 'path': 'notebooks/Importing_Helper_Code_from_GitHub_Example.ipynb', 'repo_name': 'zaman-lab/tweet-analysis-2021', 'size': '634'}