<commit_before>import os
import imghdr
from collections import namedtuple

import numpy as np
from skimage import io
from io import BytesIO
from skimage import img_as_ubyte
from skimage.transform import resize
from skimage.color import color_dict

import re
import six
import six.moves.urllib
from six.moves.urllib_parse import urlparse
from six.moves.urllib import request
from six.moves.urllib import error
urlopen = request.urlopen

# Convert colors from `skimage.color` to uint8 and allow access through
# dict or a named tuple.
color_dict = dict((name, tuple(int(255 * c + 0.5) for c in rgb))
                  for name, rgb in six.iteritems(color_dict))
colors = namedtuple('colors', color_dict.keys())(**color_dict)
<commit_msg>changed urlparse library from six.moves.urllib_parse to six.moves.urllib.parse<commit_after>import os
import imghdr
from collections import namedtuple

import numpy as np
from skimage import io
from io import BytesIO
from skimage import img_as_ubyte
from skimage.transform import resize
from skimage.color import color_dict

import re
import six
import six.moves.urllib
from six.moves.urllib.parse import urlparse
from six.moves.urllib import request
from six.moves.urllib import error
urlopen = request.urlopen

# Convert colors from `skimage.color` to uint8 and allow access through
# dict or a named tuple.
color_dict = dict((name, tuple(int(255 * c + 0.5) for c in rgb))
                  for name, rgb in six.iteritems(color_dict))
colors = namedtuple('colors', color_dict.keys())(**color_dict)

{'fraction_non_alphanumeric': 0.07035830618892508, 'fraction_numerical': 0.007817589576547232, 'mean_word_length': 4.710037174721189, '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': '2818934', 'n_tokens_mistral': 488, 'n_tokens_neox': 473, 'n_words': 174}