"""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     __UpperCAmelCase					(			lowercase   ,lowercase   ,lowercase		):







  """simple docstring"""
  _UpperCAmelCase						 =      hf_hub_url(repo_id=lowercase   ,path=lowercase   ,revision=lowercase		)
  assert url == f'''https://huggingface.co/datasets/{repo_id}/resolve/{revision or "main"}/{quote(lowercase		)}'''

"""simple docstring"""


from __future__ import annotations






def     __UpperCAmelCase					(			lowercase		):







  """simple docstring"""
  return [ord(lowercase		) - 96 for elem in plain]






def     __UpperCAmelCase					(			lowercase		):







  """simple docstring"""
  return "".join(chr(elem + 96		) for elem in encoded		)






def     __UpperCAmelCase					(			):







  """simple docstring"""
  _UpperCAmelCase						 =      encode(input("""-> """		).strip().lower()		)
  print("""Encoded: """   ,lowercase		)
  print("""Decoded:"""   ,decode(lowercase		)		)


if __name__ == "__main__":
    main()
