<commit_before>"""
Miscellaneous teuthology functions.
Used by other modules, but mostly called from tasks.
"""
from cStringIO import StringIO

import argparse
import os
import logging
import configobj
import getpass
import socket
import subprocess
import sys
import tarfile
import time
import urllib2
import urlparse
import yaml
import json
import re
import pprint

from netaddr.strategy.ipv4 import valid_str as _is_ipv4<commit_msg>misc: drop StringIO import to fix flake8<commit_after>"""
Miscellaneous teuthology functions.
Used by other modules, but mostly called from tasks.
"""

import argparse
import os
import logging
import configobj
import getpass
import socket
import subprocess
import sys
import tarfile
import time
import urllib2
import urlparse
import yaml
import json
import re
import pprint

from netaddr.strategy.ipv4 import valid_str as _is_ipv4
{'fraction_non_alphanumeric': 0.03356481481481482, 'fraction_numerical': 0.008101851851851851, 'mean_word_length': 5.92, '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': '7443232', 'n_tokens_mistral': 248, 'n_tokens_neox': 246, 'n_words': 111}