<commit_before>#!/usr/bin/python -u
# Dedicated Control handler script for OpenLieroX
# (http://openlierox.sourceforge.net)
# Upon editing - keep good names and excessive comments
# Written for easy editing by newcomers to python or programming in general
# OH AND I MEAN THIS ABOUT EXCESSIVE COMMENTS T.T
# As usual, try to hardcode as little as possible, it becomes magical numbers for everyone except you(!!)

# Needed for sleeping/pausing execution
import time
# Needed for directory access
import os
import sys
import threading
import traceback

# Print Python script errors to external file -
# on Windows it cannot print errors to console
if sys.platform == "win32":
	sys.stderr = open(cfg.ERROR_FILE, "w", 0)

import dedicated_config  # Per-host config like admin password
cfg = dedicated_config # shortcut

from dedicated_control_io import *

## Global vars ##
curdir = os.getcwd()
curdir = os.path.join(curdir,"scripts")
presetDir = os.path.join(curdir,"presets")
# Should include several searchpaths, but now they contain just OLX root dir
levelDir = os.path.join(os.getcwd(),"levels")
modDir = os.getcwd()

# Preset stuffies
availiblePresets = list()
maxPresets = 0
curPreset = 0<commit_msg>Stupid bug in ded control script<commit_after>#!/usr/bin/python -u
# Dedicated Control handler script for OpenLieroX
# (http://openlierox.sourceforge.net)
# Upon editing - keep good names and excessive comments
# Written for easy editing by newcomers to python or programming in general
# OH AND I MEAN THIS ABOUT EXCESSIVE COMMENTS T.T
# As usual, try to hardcode as little as possible, it becomes magical numbers for everyone except you(!!)

# Needed for sleeping/pausing execution
import time
# Needed for directory access
import os
import sys
import threading
import traceback

import dedicated_config  # Per-host config like admin password
cfg = dedicated_config # shortcut

# Print Python script errors to external file -
# on Windows it cannot print errors to console
if sys.platform == "win32":
	sys.stderr = open(cfg.ERROR_FILE, "w", 0)

from dedicated_control_io import *

## Global vars ##
curdir = os.getcwd()
curdir = os.path.join(curdir,"scripts")
presetDir = os.path.join(curdir,"presets")
# Should include several searchpaths, but now they contain just OLX root dir
levelDir = os.path.join(os.getcwd(),"levels")
modDir = os.getcwd()

# Preset stuffies
availiblePresets = list()
maxPresets = 0
curPreset = 0
{'fraction_non_alphanumeric': 0.08494845360824742, 'fraction_numerical': 0.004123711340206186, 'mean_word_length': 4.917073170731707, 'pattern_counts': {'":': 2, '<': 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': '5623667', 'n_tokens_mistral': 745, 'n_tokens_neox': 710, 'n_words': 286}