<commit_before># -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals

import io
import six
from six.moves.urllib.request import urlopen

from .. import errors, helpers
from .api import API


# Module API

class Web(API):
    """Loader to load source from the web.
    """

    # Public

    def __init__(self, source, encoding=None, stream=False, **options):
        self.__source = source
        self.__encoding = encoding
        self.__stream = stream
        self.__options = options<commit_msg>removed stream parameter from loaders.Web<commit_after># -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals

import io
import six
from six.moves.urllib.request import urlopen

from .. import errors, helpers
from .api import API


# Module API

class Web(API):
    """Loader to load source from the web.
    """

    # Public

    def __init__(self, source, encoding=None, **options):
        self.__source = source
        self.__encoding = encoding
        self.__options = options
{'fraction_non_alphanumeric': 0.07944307944307945, 'fraction_numerical': 0.001638001638001638, 'mean_word_length': 3.443636363636364, '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': '5362418', 'n_tokens_mistral': 339, 'n_tokens_neox': 331, 'n_words': 122}