<commit_before>#=======================================================================
#       Screen-scraping framework
#=======================================================================
import logging
import bs4 as soup
import urllib2
from urllib import urlencode
from urlparse import urljoin
import cookielib
import os
import re

_log = logging.getLogger(__name__)<commit_msg>ptscrape: support older BeautifulSoup<commit_after>#=======================================================================
#       Screen-scraping framework
#=======================================================================
import logging
try:
    import bs4 as soup
except ImportError:
    import BeautifulSoup as soup
import urllib2
from urllib import urlencode
from urlparse import urljoin
import cookielib
import os
import re

_log = logging.getLogger(__name__)
{'fraction_non_alphanumeric': 0.36013986013986016, 'fraction_numerical': 0.004662004662004662, 'mean_word_length': 8.042105263157895, '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': '1293977', 'n_tokens_mistral': 199, 'n_tokens_neox': 179, 'n_words': 63}