


"""simple docstring"""

def lowerCAmelCase_   (					UpperCamelCase__						:			list					, UpperCamelCase__						:			int = 0			):






 """simple docstring"""







 __lowercase						=						length or len(UpperCamelCase__			)
 __lowercase						=						False
 for i in range(length - 1			):
  if list_data[i] > list_data[i + 1]:
   __lowercase				,		__lowercase						=						list_data[i + 1], list_data[i]
   __lowercase						=						True

 return list_data if not swapped else bubble_sort(UpperCamelCase__					, length - 1			)


if __name__ == "__main__":
       import doctest

       doctest.testmod()




"""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__			)
