


import pytest


UpperCAmelCase      =   """__dummy_dataset1__"""

UpperCAmelCase      =   """
import json
import os

import datasets


REPO_URL = \"https://huggingface.co/datasets/albertvillanova/tests-raw-jsonl/resolve/main/\"
URLS = {\"train\": REPO_URL + \"wikiann-bn-train.jsonl\", \"validation\": REPO_URL + \"wikiann-bn-validation.jsonl\"}


class __DummyDataset1__(datasets.GeneratorBasedBuilder):

    def _info(self):
        features = datasets.Features(
            {
                \"tokens\": datasets.Sequence(datasets.Value(\"string\")),
                \"ner_tags\": datasets.Sequence(
                    datasets.features.ClassLabel(
                        names=[
                            \"O\",
                            \"B-PER\",
                            \"I-PER\",
                            \"B-ORG\",
                            \"I-ORG\",
                            \"B-LOC\",
                            \"I-LOC\",
                        ]
                    )
                ),
                \"langs\": datasets.Sequence(datasets.Value(\"string\")),
                \"spans\": datasets.Sequence(datasets.Value(\"string\")),
            }
        )
        return datasets.DatasetInfo(features=features)

    def _split_generators(self, dl_manager):
        dl_path = dl_manager.download(URLS)
        return [
            datasets.SplitGenerator(datasets.Split.TRAIN, gen_kwargs={\"filepath\": dl_path[\"train\"]}),
            datasets.SplitGenerator(datasets.Split.VALIDATION, gen_kwargs={\"filepath\": dl_path[\"validation\"]}),
        ]

    def _generate_examples(self, filepath):
        with open(filepath, \"r\", encoding=\"utf-8\") as f:
            for i, line in enumerate(f):
                yield i, json.loads(line)
"""






@pytest.fixture
def 	__lowerCAmelCase   ()->  int:




      """simple docstring"""

      return DATASET_LOADING_SCRIPT_NAME






@pytest.fixture
def 	__lowerCAmelCase   ()->  Optional[Any]:




      """simple docstring"""

      return DATASET_LOADING_SCRIPT_CODE






@pytest.fixture
def 	__lowerCAmelCase   (SCREAMING_SNAKE_CASE , SCREAMING_SNAKE_CASE , SCREAMING_SNAKE_CASE )->  Tuple:




      """simple docstring"""

      snake_case_	=				dataset_loading_script_name
      snake_case_	=				tmp_path / '''datasets''' / script_name
      script_dir.mkdir(parents=SCREAMING_SNAKE_CASE )
      snake_case_	=				script_dir / f'''{script_name}.py'''
      with open(SCREAMING_SNAKE_CASE , '''w''' ) as f:
            f.write(SCREAMING_SNAKE_CASE )
      return str(SCREAMING_SNAKE_CASE )



import os






def 	__lowerCAmelCase   ()->  List[Any]:




      """simple docstring"""

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


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