






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



'''simple docstring'''




import os







def 		lowerCAmelCase_				(   ):




    '''simple docstring'''



    A       :   List[Any]					=						os.path.join(os.path.dirname(snake_case__						)		,				'''num.txt'''						)
    with open(snake_case__						) as file_hand:
        return str(sum(int(snake_case__						) for line in file_hand						)						)[:10]


if __name__ == "__main__":
      print(solution())




