<commit_before>#!/usr/bin/python
"""
Run a confirmation screen in a separate process.
"""

import multiprocessing
import sys
import os
import time
import inspect
import colorsys

import pygame
from pygame.locals import *
from evdev import InputDevice, list_devices


class ConfirmScreenController(object):
    """
    Handle for the confirmation screen.<commit_msg>ignore pygame import errors<commit_after>#!/usr/bin/python
"""
Run a confirmation screen in a separate process.
"""

import multiprocessing
import sys
import os
import time
import inspect
import colorsys

try:
    import pygame
    from pygame.locals import *
    from evdev import InputDevice, list_devices
except ImportError:
    print "Warning: Pygame and similar imports ignored."


class ConfirmScreenController(object):
    """
    Handle for the confirmation screen.
{'fraction_non_alphanumeric': 0.06682577565632458, 'fraction_numerical': 0.0, 'mean_word_length': 4.630872483221476, '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': '2176848', 'n_tokens_mistral': 228, 'n_tokens_neox': 223, 'n_words': 88}