<commit_before>
import json
import os
import socket
import httplib2
from urlparse import urljoin

class HTTPError(Exception):
    """
    An error response from the API server. This should be an
    HTTP error of some kind (404, 500, etc).
<commit_msg>Fix urljoin import to work w/ Python 2 and 3.<commit_after>
import json
import os
import socket
import httplib2
try:
    from urlparse import urljoin
except ImportError:
    from urllib.parse import urljoin

class HTTPError(Exception):
    """
    An error response from the API server. This should be an
    HTTP error of some kind (404, 500, etc).

{'fraction_non_alphanumeric': 0.05813953488372093, 'fraction_numerical': 0.026578073089700997, 'mean_word_length': 3.7109375, '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': '4892489', 'n_tokens_mistral': 184, 'n_tokens_neox': 175, 'n_words': 84}