"""simple docstring"""

__lowercase    =				{
    '''A''': ('''ABCDEFGHIJKLM''', '''NOPQRSTUVWXYZ'''),
    '''B''': ('''ABCDEFGHIJKLM''', '''NOPQRSTUVWXYZ'''),
    '''C''': ('''ABCDEFGHIJKLM''', '''ZNOPQRSTUVWXY'''),
    '''D''': ('''ABCDEFGHIJKLM''', '''ZNOPQRSTUVWXY'''),
    '''E''': ('''ABCDEFGHIJKLM''', '''YZNOPQRSTUVWX'''),
    '''F''': ('''ABCDEFGHIJKLM''', '''YZNOPQRSTUVWX'''),
    '''G''': ('''ABCDEFGHIJKLM''', '''XYZNOPQRSTUVW'''),
    '''H''': ('''ABCDEFGHIJKLM''', '''XYZNOPQRSTUVW'''),
    '''I''': ('''ABCDEFGHIJKLM''', '''WXYZNOPQRSTUV'''),
    '''J''': ('''ABCDEFGHIJKLM''', '''WXYZNOPQRSTUV'''),
    '''K''': ('''ABCDEFGHIJKLM''', '''VWXYZNOPQRSTU'''),
    '''L''': ('''ABCDEFGHIJKLM''', '''VWXYZNOPQRSTU'''),
    '''M''': ('''ABCDEFGHIJKLM''', '''UVWXYZNOPQRST'''),
    '''N''': ('''ABCDEFGHIJKLM''', '''UVWXYZNOPQRST'''),
    '''O''': ('''ABCDEFGHIJKLM''', '''TUVWXYZNOPQRS'''),
    '''P''': ('''ABCDEFGHIJKLM''', '''TUVWXYZNOPQRS'''),
    '''Q''': ('''ABCDEFGHIJKLM''', '''STUVWXYZNOPQR'''),
    '''R''': ('''ABCDEFGHIJKLM''', '''STUVWXYZNOPQR'''),
    '''S''': ('''ABCDEFGHIJKLM''', '''RSTUVWXYZNOPQ'''),
    '''T''': ('''ABCDEFGHIJKLM''', '''RSTUVWXYZNOPQ'''),
    '''U''': ('''ABCDEFGHIJKLM''', '''QRSTUVWXYZNOP'''),
    '''V''': ('''ABCDEFGHIJKLM''', '''QRSTUVWXYZNOP'''),
    '''W''': ('''ABCDEFGHIJKLM''', '''PQRSTUVWXYZNO'''),
    '''X''': ('''ABCDEFGHIJKLM''', '''PQRSTUVWXYZNO'''),
    '''Y''': ('''ABCDEFGHIJKLM''', '''OPQRSTUVWXYZN'''),
    '''Z''': ('''ABCDEFGHIJKLM''', '''OPQRSTUVWXYZN'''),
}


def    lowerCAmelCase			(__UpperCamelCase							:    str			):
							"""simple docstring"""


							return [alphabet[char] for char in key.upper()]


def    lowerCAmelCase			(__UpperCamelCase							:    str							,					__UpperCamelCase							:    str			):
							"""simple docstring"""


							__UpperCamelCase							=''''''
							__UpperCamelCase							=0
							__UpperCamelCase							=generate_table(__UpperCamelCase			)
							for char in words.upper():
														cipher += get_opponent(table[count]							,					__UpperCamelCase			)
														__UpperCamelCase							=(count + 1) % len(__UpperCamelCase			)
							return cipher


def    lowerCAmelCase			(__UpperCamelCase							:    str							,					__UpperCamelCase							:    str			):
							"""simple docstring"""


							return encrypt(__UpperCamelCase							,					__UpperCamelCase			)


def    lowerCAmelCase			(__UpperCamelCase							:    tuple[str, str]							,					__UpperCamelCase							:    str			):
							"""simple docstring"""


							__UpperCamelCase							=0 if char in table[0] else 1
							__UpperCamelCase							=table[row].index(__UpperCamelCase			)
							return row, col


def    lowerCAmelCase			(__UpperCamelCase							:    tuple[str, str]							,					__UpperCamelCase							:    str			):
							"""simple docstring"""


							__UpperCamelCase	,      __UpperCamelCase							=get_position(__UpperCamelCase							,					char.upper()			)
							if row == 1:
														return table[0][col]
							else:
														return table[1][col] if row == 0 else char


if __name__ == "__main__":
				import doctest

				doctest.testmod()  # Fist ensure that all our tests are passing...
				__lowercase    =				input('''Enter key: ''').strip()
				__lowercase    =				input('''Enter text to encrypt: ''').strip()
				__lowercase    =				encrypt(key, text)

				print(f'''Encrypted: {cipher_text}''')
				print(f'''Decrypted with key: {decrypt(key, cipher_text)}''')




"""simple docstring"""

import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info


def    lowerCAmelCase			(__UpperCamelCase							:    Optional[Any]			):
							"""simple docstring"""


							class 		_lowercase :



													"""simple docstring"""




													def __init__(				self							:    int     , UpperCamelCase__							:    Union[str, Any]				)				->				None:
																				'''simple docstring'''



																				assert isinstance(UpperCamelCase__     , (bytes, str)				)
																				__UpperCamelCase							=content





													def   UpperCAmelCase_ (				self							:    Dict				)				->				Any:
																				'''simple docstring'''



																				return json.loads(self.content				)

							def mock_response(*__UpperCamelCase							:    Any							,					**__UpperCamelCase							:    Union[str, Any]			):
														assert args[0] == AUTHENTICATED_USER_ENDPOINT
														assert "Authorization" in kwargs["headers"]
														assert kwargs["headers"]["Authorization"].startswith('''token '''			)
														assert "Accept" in kwargs["headers"]
														return FakeResponse(b'''{"login":"test","id":1}'''			)

							monkeypatch.setattr(__UpperCamelCase							,					'''get'''							,					__UpperCamelCase			)
							__UpperCamelCase							=fetch_github_info('''token'''			)
							assert result["login"] == "test"
							assert result["id"] == 1



