<commit_before>from __future__ import print_function
import sys
import os
import logging
import signal
import socket
import traceback
import errno
from .wireprotocol import DebugServer
from .debugsession import DebugSession
from .eventloop import EventLoop
from . import PY2, is_string, debugger_api

log = logging.getLogger('main')

signal.signal(signal.SIGINT, signal.SIG_DFL)
signal.signal(signal.SIGHUP, signal.SIG_DFL)

sys.modules['debugger'] = debugger_api

def decode_params(params):
    try:
        if isinstance(params, dict):<commit_msg>Conditionally setup SIGHUP handler if the OS supports it<commit_after>from __future__ import print_function
import sys
import os
import logging
import signal
import socket
import traceback
import errno
from .wireprotocol import DebugServer
from .debugsession import DebugSession
from .eventloop import EventLoop
from . import PY2, is_string, debugger_api

log = logging.getLogger('main')

signal.signal(signal.SIGINT, signal.SIG_DFL)
if hasattr(signal, 'SIGHUP'):
    signal.signal(signal.SIGHUP, signal.SIG_DFL)

sys.modules['debugger'] = debugger_api

def decode_params(params):
    try:
        if isinstance(params, dict):
{'fraction_non_alphanumeric': 0.0748936170212766, 'fraction_numerical': 0.001702127659574468, 'mean_word_length': 5.758620689655173, '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': '1015871', 'n_tokens_mistral': 349, 'n_tokens_neox': 346, 'n_words': 108}