<commit_before>import os
import logging
import warnings
import urllib3
from sqlalchemy.exc import SAWarning

# shut up useless SA warning:
warnings.filterwarnings('ignore',
                        'Unicode type received non-unicode bind param value.')

warnings.filterwarnings('ignore', category=SAWarning)

# using SSL w/o certificate validation
urllib3.disable_warnings()

# loggers.
logging.basicConfig(level=logging.DEBUG)

# specific loggers
logging.getLogger('requests').setLevel(logging.WARNING)
logging.getLogger('urllib3').setLevel(logging.WARNING)
logging.getLogger('pyelasticsearch').setLevel(logging.WARNING)
logging.getLogger('elasticsearch').setLevel(logging.WARNING)<commit_msg>Disable requests fuss<commit_after>import os
import logging
import warnings
import requests
import urllib3
from sqlalchemy.exc import SAWarning

# shut up useless SA warning:
warnings.filterwarnings('ignore',
                        'Unicode type received non-unicode bind param value.')

warnings.filterwarnings('ignore', category=SAWarning)

# using SSL w/o certificate validation
urllib3.disable_warnings()
requests.packages.urllib3.disable_warnings()

# loggers.
logging.basicConfig(level=logging.DEBUG)

# specific loggers
logging.getLogger('requests').setLevel(logging.WARNING)
logging.getLogger('urllib3').setLevel(logging.WARNING)
logging.getLogger('pyelasticsearch').setLevel(logging.WARNING)
logging.getLogger('elasticsearch').setLevel(logging.WARNING)
{'fraction_non_alphanumeric': 0.10240549828178694, 'fraction_numerical': 0.004810996563573883, 'mean_word_length': 6.316582914572864, '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': '574098', 'n_tokens_mistral': 408, 'n_tokens_neox': 405, 'n_words': 86}