<commit_before>"""Provides the HTTP request handling interface."""
import requests
from . import const


class Requestor(object):
    """Requestor provides an interface to HTTP requests."""

    def __init__(self, user_agent):
        """Create an instance of the Requestor class.

        :param user_agent: The user-agent for your application. Please follow
            reddit's user-agent guidlines:
            ttps://github.com/reddit/reddit/wiki/API#rules

        """
        self._http = requests.Session()
        self._http.headers['User-Agent'] = '{} {}'.format(
            user_agent, const.USER_AGENT)

    def __getattr__(self, attribute):
        """Pass all undefined attributes to the _http attribute."""
        return getattr(self._http, attribute)<commit_msg>Add missing 'h' in https in Requestor doc.<commit_after>"""Provides the HTTP request handling interface."""
import requests
from . import const


class Requestor(object):
    """Requestor provides an interface to HTTP requests."""

    def __init__(self, user_agent):
        """Create an instance of the Requestor class.

        :param user_agent: The user-agent for your application. Please follow
            reddit's user-agent guidlines:
            https://github.com/reddit/reddit/wiki/API#rules

        """
        self._http = requests.Session()
        self._http.headers['User-Agent'] = '{} {}'.format(
            user_agent, const.USER_AGENT)

    def __getattr__(self, attribute):
        """Pass all undefined attributes to the _http attribute."""
        return getattr(self._http, attribute)
{'fraction_non_alphanumeric': 0.11132075471698114, 'fraction_numerical': 0.0, 'mean_word_length': 2.8899755501222493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3060711', 'n_tokens_mistral': 414, 'n_tokens_neox': 406, 'n_words': 132}