




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__  (     lowerCamelCase,			lowerCamelCase,			lowerCamelCase   ):
  lowercase    :Optional[Any]      	=						hf_hub_url(repo_id=lowerCamelCase,			path=lowerCamelCase,			revision=lowerCamelCase   )
  assert url == F"https://huggingface.co/datasets/{repo_id}/resolve/{revision or 'main'}/{quote(lowerCamelCase   )}"









def       UpperCAmelCase__  (     lowerCamelCase,			lowerCamelCase   ):
  return int((input_a, input_a).count(0   ) != 0   )



def       UpperCAmelCase__  (     ):
  assert nand_gate(0,			0   ) == 1
  assert nand_gate(0,			1   ) == 1
  assert nand_gate(1,			0   ) == 1
  assert nand_gate(1,			1   ) == 0


if __name__ == "__main__":
     print(nand_gate(0, 0))
     print(nand_gate(0, 1))
     print(nand_gate(1, 0))
     print(nand_gate(1, 1))



