




import os
import string
import sys


_A     =			1 << 8

_A     =			{
    '''tab''': ord('''\t'''),
    '''newline''': ord('''\r'''),
    '''esc''': 27,
    '''up''': 65 + ARROW_KEY_FLAG,
    '''down''': 66 + ARROW_KEY_FLAG,
    '''right''': 67 + ARROW_KEY_FLAG,
    '''left''': 68 + ARROW_KEY_FLAG,
    '''mod_int''': 91,
    '''undefined''': sys.maxsize,
    '''interrupt''': 3,
    '''insert''': 50,
    '''delete''': 51,
    '''pg_up''': 53,
    '''pg_down''': 54,
}

_A     =			KEYMAP['''up''']
_A     =			KEYMAP['''left''']

if sys.platform == "win32":
						_A     =			[]
						_A     =			{
						    B'''\xe0H''': KEYMAP['''up'''] - ARROW_KEY_FLAG,
						    B'''\x00H''': KEYMAP['''up'''] - ARROW_KEY_FLAG,
						    B'''\xe0P''': KEYMAP['''down'''] - ARROW_KEY_FLAG,
						    B'''\x00P''': KEYMAP['''down'''] - ARROW_KEY_FLAG,
						    B'''\xe0M''': KEYMAP['''right'''] - ARROW_KEY_FLAG,
						    B'''\x00M''': KEYMAP['''right'''] - ARROW_KEY_FLAG,
						    B'''\xe0K''': KEYMAP['''left'''] - ARROW_KEY_FLAG,
						    B'''\x00K''': KEYMAP['''left'''] - ARROW_KEY_FLAG,
						}

for i in range(10):
						_A     =			ord(str(i))





def __UpperCamelCase			(       ):
						if os.name == "nt":
												import msvcrt

												lowerCAmelCase_      			=  '''mbcs'''
												# Flush the keyboard buffer
												while msvcrt.kbhit():
																		msvcrt.getch()
												if len(a_  ) == 0:
																		# Read the keystroke
																		lowerCAmelCase_      			=  msvcrt.getch()

																		# If it is a prefix char, get second part
																		if ch in (b"\x00", b"\xe0"):
																								lowerCAmelCase_      			=  ch + msvcrt.getch()
																								# Translate actual Win chars to bullet char types
																								try:
																														lowerCAmelCase_      			=  chr(WIN_KEYMAP[cha]  )
																														WIN_CH_BUFFER.append(chr(KEYMAP['''mod_int''']  )  )
																														WIN_CH_BUFFER.append(a_  )
																														if ord(a_  ) in (
																														    KEYMAP["insert"] - 1 << 9,
																														    KEYMAP["delete"] - 1 << 9,
																														    KEYMAP["pg_up"] - 1 << 9,
																														    KEYMAP["pg_down"] - 1 << 9,
																														):
																																				WIN_CH_BUFFER.append(chr(126  )  )
																														lowerCAmelCase_      			=  chr(KEYMAP['''esc''']  )
																								except KeyError:
																														lowerCAmelCase_      			=  cha[1]
																		else:
																								lowerCAmelCase_      			=  ch.decode(a_  )
												else:
																		lowerCAmelCase_      			=  WIN_CH_BUFFER.pop(0  )
						elif os.name == "posix":
												import termios
												import tty

												lowerCAmelCase_      			=  sys.stdin.fileno()
												lowerCAmelCase_      			=  termios.tcgetattr(a_  )
												try:
																		tty.setraw(a_  )
																		lowerCAmelCase_      			=  sys.stdin.read(1  )
												finally:
																		termios.tcsetattr(a_ ,  termios.TCSADRAIN ,  a_  )
						return ch






def __UpperCamelCase			(       ):
						lowerCAmelCase_      			=  get_raw_chars()
						if ord(a_  ) in [KEYMAP["interrupt"], KEYMAP["newline"]]:
												return char

						elif ord(a_  ) == KEYMAP["esc"]:
												lowerCAmelCase_      			=  get_raw_chars()
												if ord(a_  ) == KEYMAP["mod_int"]:
																		lowerCAmelCase_      			=  get_raw_chars()
																		if ord(a_  ) >= KEYMAP["arrow_begin"] - ARROW_KEY_FLAG and ord(a_  ) <= KEYMAP["arrow_end"] - ARROW_KEY_FLAG:
																								return chr(ord(a_  ) + ARROW_KEY_FLAG  )
																		else:
																								return KEYMAP["undefined"]
												else:
																		return get_raw_chars()

						else:
												if char in string.printable:
																		return char
												else:
																		return KEYMAP["undefined"]












lowercase  							=					"\n# Transformers 설치 방법\n! pip install transformers datasets\n# 마지막 릴리스 대신 소스에서 설치하려면, 위 명령을 주석으로 바꾸고 아래 명령을 해제하세요.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

lowercase  							=					[{"type": "code", "content": INSTALL_CONTENT}]
lowercase  							=					{
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}





