


"""simple docstring"""







from __future__ import annotations




def   UpperCAmelCase__			(lowerCAmelCase_    ,		lowerCAmelCase_  ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE		  =							0
					__SCREAMING_SNAKE_CASE		  =							len(UpperCamelCase__  ) - 1

					while i < j:
										if nums[i] + nums[j] == target:
															return [i, j]
										elif nums[i] + nums[j] < target:
															__SCREAMING_SNAKE_CASE		  =							i + 1
										else:
															__SCREAMING_SNAKE_CASE		  =							j - 1

					return []


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		print(F"{two_pointer([2, 7, 1_1, 1_5], 9) = }")




"""simple docstring"""

from typing import Optional
from urllib.parse import quote

import huggingface_hub as hfh
from packaging import version


def lowerCAmelCase_   (					UpperCamelCase__						:			str					, UpperCamelCase__						:			str					, UpperCamelCase__						:			Optional[str] = None			):






 """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
  __lowercase						=						quote(UpperCamelCase__			)
 return hfh.hf_hub_url(UpperCamelCase__					, UpperCamelCase__					, repo_type="""dataset"""					, revision=UpperCamelCase__			)
