<commit_before>from dss.config import config
from dss.providers import Providers
from dss.video import Video
from dss.thumbnail import Thumbnail
from dss.web import Server
from dss.tools import show_close
from dss.tornado_setup import TornadoManager
from dss.mobile import TCPServer
from dss.web_handlers.mobile_stream import MobileStreamLocation


_stop_tasks = []


def run_start(fn):
    try:
        for f in fn:
            f()
    except TypeError:
        fn()
<commit_msg>Make traceback for web handlers less cluttered by removing this TypeError from it.<commit_after>from dss.config import config
from dss.providers import Providers
from dss.video import Video
from dss.thumbnail import Thumbnail
from dss.web import Server
from dss.tools import show_close
from dss.tornado_setup import TornadoManager
from dss.mobile import TCPServer
from dss.web_handlers.mobile_stream import MobileStreamLocation


_stop_tasks = []


def run_start(fn):
    # Try running functions on a list
    try:
        for f in fn:
            f()
    except TypeError:
        pass
    else:
        return
    # If it is not iterable, use as function
    fn()

{'fraction_non_alphanumeric': 0.049738219895287955, 'fraction_numerical': 0.0, 'mean_word_length': 3.463035019455253, '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': '4952733', 'n_tokens_mistral': 346, 'n_tokens_neox': 341, 'n_words': 125}