<commit_before>"""
dbbrankingparser.httpclient
~~~~~~~~~~~~~~~~~~~~~~~~~~~

HTTP client utilities

:Copyright: 2006-2021 <NAME>
:License: MIT, see LICENSE for details.
"""

from urllib.request import Request, urlopen


USER_AGENT = (
    'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) '
    'Gecko/20100101 Firefox/38.0 Iceweasel/38.6.0'
)  # type: str


def assemble_url(league_id: int) -> str:
    """Assemble the ranking HTML's URL for the league with that ID."""
    template = (
        'https://www.basketball-bund.net/public/tabelle.jsp'
        '?print=1'
        '&viewDescKey=sport.dbb.views.TabellePublicView/index.jsp_'
        '&liga_id={:d}'<commit_msg>Revert "Use HTTPS to retrieve ranking from DBB"<commit_after>"""
dbbrankingparser.httpclient
~~~~~~~~~~~~~~~~~~~~~~~~~~~

HTTP client utilities

:Copyright: 2006-2021 <NAME>
:License: MIT, see LICENSE for details.
"""

from urllib.request import Request, urlopen


USER_AGENT = (
    'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) '
    'Gecko/20100101 Firefox/38.0 Iceweasel/38.6.0'
)  # type: str


def assemble_url(league_id: int) -> str:
    """Assemble the ranking HTML's URL for the league with that ID."""
    template = (
        'http://www.basketball-bund.net/public/tabelle.jsp'
        '?print=1'
        '&viewDescKey=sport.dbb.views.TabellePublicView/index.jsp_'
        '&liga_id={:d}'
{'fraction_non_alphanumeric': 0.17538688282977155, 'fraction_numerical': 0.051584377302873984, 'mean_word_length': 3.619047619047619, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '6325689', 'n_tokens_mistral': 546, 'n_tokens_neox': 485, 'n_words': 106}