






'''simple docstring'''



import pytest


__UpperCamelCase      :       Tuple      			=      """__dummy_dataset1__"""

__UpperCamelCase      :       List[Any]      			=      """
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    __UpperCAmelCase	(				)  ->			Tuple:

   """simple docstring"""
   return DATASET_LOADING_SCRIPT_NAME



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

   """simple docstring"""
   return DATASET_LOADING_SCRIPT_CODE



@pytest.fixture
def    __UpperCAmelCase	(				SCREAMING_SNAKE_CASE__:	List[str],					SCREAMING_SNAKE_CASE__:	int,					SCREAMING_SNAKE_CASE__:	Union[str, Any]    )  ->			Optional[Any]:

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







'''simple docstring'''



from maths.prime_factors import prime_factors



def    __UpperCAmelCase	(				SCREAMING_SNAKE_CASE__:	int    )  ->			int:

   """simple docstring"""
   if not isinstance(SCREAMING_SNAKE_CASE__,					SCREAMING_SNAKE_CASE__    ):
      __a				     =    f"""Input value of [number={number}] must be an integer"""
      raise TypeError(SCREAMING_SNAKE_CASE__    )
   if number < 1:
      raise ValueError('Input must be a positive integer'    )
   return -1 if len(prime_factors(SCREAMING_SNAKE_CASE__    )    ) % 2 else 1


if __name__ == "__main__":
 import doctest

 doctest.testmod()