<commit_before>from bs4 import BeautifulSoup

class WWTException(Exception):
    pass

def handle_response(resp_str):
    soup = BeautifulSoup(resp_str)
    success = soup.layerapi.status.string
    if success != "Success":
        raise WWTException(success)

def parse_kwargs(params, kwargs):
    if "date_time" in kwargs:
        params["datetime"] = kwargs["date_time"]
    if "time_rate" in kwargs:
        params["timerate"] = kwargs["time_rate"]
    if "fly_to" in kwargs:
        params["flyto"] = ",".join([str(i) for i in kwargs["fly_to"]])
    if "instant" in kwargs:
        params["instant"] = str(kwargs["instant"])
    if "auto_loop" in kwargs:
        params["autoloop"] = str(kwargs["auto_loop"])
<commit_msg>small fix<commit_after>from bs4 import BeautifulSoup

class WWTException(Exception):
    pass

def handle_response(resp_str):
    soup = BeautifulSoup(resp_str)
    success = soup.layerapi.status.string
    if success != "Success":
        raise WWTException(success)

def parse_kwargs(params, kwargs):
    if "date_time" in kwargs:
        params["datetime"] = kwargs["date_time"]
    if "time_rate" in kwargs:
        params["timerate"] = str(kwargs["time_rate"])
    if "fly_to" in kwargs:
        params["flyto"] = ",".join([str(i) for i in kwargs["fly_to"]])
    if "instant" in kwargs:
        params["instant"] = str(kwargs["instant"])
    if "auto_loop" in kwargs:
        params["autoloop"] = str(kwargs["auto_loop"])

{'fraction_non_alphanumeric': 0.14039917412250516, 'fraction_numerical': 0.0013764624913971094, 'mean_word_length': 3.6903225806451614, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4460256', 'n_tokens_mistral': 466, 'n_tokens_neox': 476, 'n_words': 111}