<commit_before>from future.standard_library import install_aliases
install_aliases()
from urllib import parse as urlparse

def parse_params(params_str):
    assert '?' in params_str
    subject, params_str = params_str.split('?')
    params = urlparse.parse_qs(params_str)
    params = dict( (k, v if len(v)>1 else v[0] ) for k,v in params.items())
    return subject, params<commit_msg>Updated the param parser.<commit_after>from future.standard_library import install_aliases
install_aliases()
from urllib import parse as urlparse

def parse_params(params_str):
    if '?' not in params_str:
        return params_str, {}
    subject, params_str = params_str.split('?')
    params = urlparse.parse_qs(params_str)
    params = dict( (k, v if len(v)>1 else v[0] ) for k,v in params.items())
    return subject, params
{'fraction_non_alphanumeric': 0.10403916768665851, 'fraction_numerical': 0.004895960832313341, 'mean_word_length': 4.5646258503401365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5493426', 'n_tokens_mistral': 260, 'n_tokens_neox': 259, 'n_words': 77}