<commit_before># -*- coding: utf-8 -*-

from zlib import decompress, MAX_WBITS
from base64 import b64decode
from gzip import GzipFile
from io import BytesIO


def inflate(string):
    return decompress(b64decode(string), -MAX_WBITS)


def gunzip(data):
    return GzipFile('', 'rb', 9, BytesIO(data)).read().decode('utf-8')
<commit_msg>functions.py inflate64<commit_after># -*- coding: utf-8 -*-

from zlib import decompress, MAX_WBITS, decompressobj
from base64 import b64decode
from gzip import GzipFile
from io import BytesIO


def inflate(data):
    return decompress(data, -MAX_WBITS).decode ('utf-8')


def inflate64(data):
    return inflate(b64decode(data))


def gunzip(data):
    return GzipFile('', 'rb', 9, BytesIO(data)).read().decode('utf-8')

{'fraction_non_alphanumeric': 0.13606340819022458, 'fraction_numerical': 0.03038309114927345, 'mean_word_length': 4.875968992248062, 'pattern_counts': {'":': 0, '<': 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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2341648', 'n_tokens_mistral': 276, 'n_tokens_neox': 258, 'n_words': 71}