def load_all_files(files):
    """ 
    wrapper to load and clean text files
    """

    results = []
    for f in files:
        text = read_md_file(f)
        splitted_text = split_text(text, split_length=10, split_overlap=3)
        cleaned_text = [clean_md_text(_text) for _text in splitted_text]   
        _files = [f]*(len(cleaned_text))

        results += list(zip(_files, splitted_text, cleaned_text))

    return pd.DataFrame(results, columns=['filename', 'text', 'cleaned_text'])
 
    wrapper to load and clean text files
    
examples/GPT-examples/utilities.py