from typing import Optional
from urllib.parse import quote

import huggingface_hub as hfh
from packaging import version



def 	__a					(   lowerCAmelCase_       : str      ,lowerCAmelCase_       : str      ,lowerCAmelCase_       : Optional[str] = None    )				->			str:






						'''simple docstring'''



						if version.parse(hfh.__version__    ).release < version.parse("""0.11.0"""    ).release:
												# old versions of hfh don't url-encode the file path
												UpperCAmelCase_=       quote(lowerCAmelCase_    )
						return hfh.hf_hub_url(lowerCAmelCase_      ,lowerCAmelCase_      ,repo_type="""dataset"""      ,revision=lowerCAmelCase_    )









__A       =						6_5521



def 	__a					(   lowerCAmelCase_       : str    )				->			int:






						'''simple docstring'''



						UpperCAmelCase_=       1
						UpperCAmelCase_=       0
						for plain_chr in plain_text:
												UpperCAmelCase_=       (a + ord(lowerCAmelCase_    )) % MOD_ADLER
												UpperCAmelCase_=       (b + a) % MOD_ADLER
						return (b << 16) | a




