
from string import ascii_uppercase

__lowerCAmelCase												=	{str(ord(c) - 55): c for c in ascii_uppercase}






def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
							if isinstance(_SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
														raise TypeError("""int() can't convert non-string with explicit base"""				)
							if num < 0:
														raise ValueError("""parameter must be positive int"""				)
							if isinstance(_SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
														raise TypeError("""'str' object cannot be interpreted as an integer"""				)
							if isinstance(_SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
														raise TypeError("""'float' object cannot be interpreted as an integer"""				)
							if base in (0, 1):
														raise ValueError("""base must be >= 2"""				)
							if base > 36:
														raise ValueError("""base must be <= 36"""				)
							_snake_case       =  """"""
							_snake_case       =  0
							_snake_case       =  0
							while div != 1:
														_snake_case,							_snake_case       =  divmod(_SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				)
														if base >= 11 and 9 < mod < 36:
																					_snake_case       =  ALPHABET_VALUES[str(_SCREAMING_SNAKE_CASE				)]
														else:
																					_snake_case       =  str(_SCREAMING_SNAKE_CASE				)
														new_value += actual_value
														_snake_case       =  num // base
														_snake_case       =  div
														if div == 0:
																					return str(new_value[::-1]				)
														elif div == 1:
																					new_value += str(_SCREAMING_SNAKE_CASE				)
																					return str(new_value[::-1]				)

							return new_value[::-1]


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				for base in range(2, 37):
								for num in range(1_000):
												assert int(decimal_to_any(num, base), base) == num, (
												    num,
												    base,
												    decimal_to_any(num, base),
												    int(decimal_to_any(num, base), base),
												)

'''simple docstring'''
from urllib.parse import quote

import pytest

from datasets.utils.hub import hf_hub_url






@pytest.mark.parametrize("""repo_id"""							, ["""canonical_dataset_name""", """org-name/dataset-name"""]				)
@pytest.mark.parametrize("""path"""							, ["""filename.csv""", """filename with blanks.csv"""]				)
@pytest.mark.parametrize("""revision"""							, [None, """v2"""]				)
def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
							_snake_case       =  hf_hub_url(repo_id=_SCREAMING_SNAKE_CASE							, path=_SCREAMING_SNAKE_CASE							, revision=_SCREAMING_SNAKE_CASE				)
							assert url == f"""https://huggingface.co/datasets/{repo_id}/resolve/{revision or "main"}/{quote(_SCREAMING_SNAKE_CASE				)}"""