<commit_before>

# ==============================================================================
#                                                                     UNCOMPRESS
# ==============================================================================
def uncompress(file, method="tar"):
    """
    Uncompress packaged files such as zip and tarballs.

    :param file: {string}
        filepath of compressed file
    :param method: {string}
        Method of uncompression to use.

        TODO: autodetect based on filename.

        "tar"  = for tar.gz files.

    """
    #TODO: Add an output dir option.
    if method == "tar":
        import tarfile
        with tarfile.open(filename) as fileObj:
            #sys.stdout.flush()
            fileObj.extractall()

<commit_msg>STYLE: FILE: convert docstring in `uncompress()` to google style<commit_after>

# ==============================================================================
#                                                                     UNCOMPRESS
# ==============================================================================
def uncompress(file, method="tar"):
    """ Uncompress packaged files such as zip and tarballs.
    
    Args:
        file: (string)
            filepath of compressed file
        method: (string)
            Method of uncompression to use.
    
            TODO: autodetect based on filename.
    
            "tar"  = for tar.gz files.
    """
    #TODO: Add an output dir option.
    if method == "tar":
        import tarfile
        with tarfile.open(filename) as fileObj:
            #sys.stdout.flush()
            fileObj.extractall()

{'fraction_non_alphanumeric': 0.2585895117540687, 'fraction_numerical': 0.0, 'mean_word_length': 2.0855018587360594, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '642169', 'n_tokens_mistral': 391, 'n_tokens_neox': 358, 'n_words': 115}