



from math import factorial
def  UpperCamelCase						(       _A			:				int			,							_A			:				int    )->       int:





						"""simple docstring"""





						if n < k or k < 0:
												raise ValueError("Please enter positive integers for n and k where n >= k"    )
						return factorial(_A    ) // (factorial(_A    ) * factorial(n - k    ))


if __name__ == "__main__":
						print(
						    "The number of five-card hands possible from a standard",
						    F'''fifty-two card deck is: {combinations(52, 5)}\n''',
						)

						print(
						    "If a class of 40 students must be arranged into groups of",
						    F'''4 for group projects, there are {combinations(40, 4)} ways''',
						    "to arrange them.\n",
						)

						print(
						    "If 10 teams are competing in a Formula One race, there",
						    F'''are {combinations(10, 3)} ways that first, second and''',
						    "third place can be awarded.",
						)










import os
import time

import pytest

from datasets.utils.filelock import FileLock, Timeout
def  UpperCamelCase						(       _A			:				Optional[int]    )->       List[Any]:





						"""simple docstring"""





						A__							=       FileLock(str(tmpdir / "foo.lock"    )    )
						A__							=       FileLock(str(tmpdir / "foo.lock"    )    )
						A__							=       0.01
						with locka.acquire():
												with pytest.raises(_A    ):
																		A__							=       time.time()
																		locka.acquire(_A    )
																		assert time.time() - _start > timeout
def  UpperCamelCase						(       _A			:				str    )->       List[Any]:





						"""simple docstring"""





						A__							=       "a" * 1000 + ".lock"
						A__							=       FileLock(str(tmpdir / filename    )    )
						assert locka._lock_file.endswith(".lock"    )
						assert not locka._lock_file.endswith(_A    )
						assert len(os.path.basename(locka._lock_file    )    ) <= 255
						A__							=       FileLock(tmpdir / filename    )
						with locka.acquire():
												with pytest.raises(_A    ):
																		locka.acquire(0    )





