<commit_before># !!! This uses the https://newsapi.org/ api. TO comply with the TOU
# !!! we must link back to this site whenever we display results.
import json
import webbrowser
from plugin import plugin, require
from colorama import Fore
try:  # python3
    import urllib.request
except ImportError:  # python2
    import urllib


@require(network=True)
@plugin('news')<commit_msg>add python2 input<commit_after># !!! This uses the https://newsapi.org/ api. TO comply with the TOU
# !!! we must link back to this site whenever we display results.
import json
import webbrowser
from plugin import plugin, require
from six.moves import input
from colorama import Fore
try:  # python3
    import urllib.request
except ImportError:  # python2
    import urllib


@require(network=True)
@plugin('news')
{'fraction_non_alphanumeric': 0.08375, 'fraction_numerical': 0.00625, 'mean_word_length': 4.486301369863014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6311965', 'n_tokens_mistral': 236, 'n_tokens_neox': 231, 'n_words': 97}