<commit_before>import argparse
import os
import sys

import yaml
from dmoj.config import ConfigNode

_judge_dirs = ()
env = ConfigNode(defaults={
    'selftest_sandboxing': True,
})
_root = os.path.dirname(__file__)
fs_encoding = os.environ.get('DMOJ_ENCODING', sys.getfilesystemencoding())

log_file = server_host = server_port = no_ansi = no_ansi_emu = no_watchdog = None

startup_warnings = []

only_executors = set()
exclude_executors = set()


def unicodify(string):<commit_msg>Protect against /really/ malformed judge.yml<commit_after>import argparse
import os
import sys

import yaml
from dmoj.config import ConfigNode

_judge_dirs = ()
env = ConfigNode(defaults={
    'selftest_sandboxing': True,
    'runtime': {},
})
_root = os.path.dirname(__file__)
fs_encoding = os.environ.get('DMOJ_ENCODING', sys.getfilesystemencoding())

log_file = server_host = server_port = no_ansi = no_ansi_emu = no_watchdog = None

startup_warnings = []

only_executors = set()
exclude_executors = set()


def unicodify(string):
{'fraction_non_alphanumeric': 0.10925196850393701, 'fraction_numerical': 0.0, 'mean_word_length': 5.78, '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': '60306', 'n_tokens_mistral': 367, 'n_tokens_neox': 354, 'n_words': 76}