<commit_before>"""tests for mediawords.util.html"""

import re

import mediawords.languages.en
from mediawords.util.html import link_canonical_url_from_html, meta_refresh_url_from_html, html_strip
from mediawords.util.log import create_logger
import mediawords.util.html
import mediawords.util.paths

log = create_logger(__name__)


# noinspection SpellCheckingInspection<commit_msg>test pre-commit flake8 hook<commit_after>"""tests for mediawords.util.html"""

import mediawords.languages.en
from mediawords.util.html import link_canonical_url_from_html, meta_refresh_url_from_html, html_strip
from mediawords.util.log import create_logger
import mediawords.util.html
import mediawords.util.paths

log = create_logger(__name__)


# noinspection SpellCheckingInspection
{'fraction_non_alphanumeric': 0.07152145643693109, 'fraction_numerical': 0.0013003901170351106, 'mean_word_length': 7.75, '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': '4725673', 'n_tokens_mistral': 238, 'n_tokens_neox': 233, 'n_words': 50}