





_UpperCAmelCase							:			Any        =							[4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
_UpperCAmelCase							:			Dict        =							[3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
_UpperCAmelCase							:			Dict        =							{
    0: """Sunday""",
    1: """Monday""",
    2: """Tuesday""",
    3: """Wednesday""",
    4: """Thursday""",
    5: """Friday""",
    6: """Saturday""",
}


def 			SCREAMING_SNAKE_CASE (			_UpperCAmelCase		,      _UpperCAmelCase		,      _UpperCAmelCase					)     ->	str:
    assert len(str(_UpperCAmelCase					)					) > 2, "year should be in YYYY format"
    assert 1 <= month <= 12, "month should be between 1 to 12"
    assert 1 <= day <= 31, "day should be between 1 to 31"

    # Doomsday algorithm:
    lowerCamelCase__       : Any   					=						year // 100
    lowerCamelCase__       : int   					=						(5 * (century % 4) + 2) % 7
    lowerCamelCase__       : Optional[int]   					=						year % 100
    lowerCamelCase__       : List[str]   					=						centurian % 12
    lowerCamelCase__       : Any   					=						(
        (centurian // 12) + centurian_m + (centurian_m // 4) + century_anchor
    ) % 7
    lowerCamelCase__       : Any   					=						(
        DOOMSDAY_NOT_LEAP[month - 1]
        if (year % 4 != 0) or (centurian == 0 and (year % 400) == 0)
        else DOOMSDAY_LEAP[month - 1]
    )
    lowerCamelCase__       : Tuple   					=						(dooms_day + day - day_anchor) % 7
    return WEEK_DAY_NAMES[week_day]


if __name__ == "__main__":
    import doctest

    doctest.testmod()












import pytest


_UpperCAmelCase							:			Optional[int]        =							"""__dummy_dataset1__"""

_UpperCAmelCase							:			Dict        =							"""
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 			SCREAMING_SNAKE_CASE (			)     ->	Dict:
    return DATASET_LOADING_SCRIPT_NAME


@pytest.fixture
def 			SCREAMING_SNAKE_CASE (			)     ->	List[Any]:
    return DATASET_LOADING_SCRIPT_CODE


@pytest.fixture
def 			SCREAMING_SNAKE_CASE (			_UpperCAmelCase		,      _UpperCAmelCase		,      _UpperCAmelCase					)     ->	List[Any]:
    lowerCamelCase__       : int   					=						dataset_loading_script_name
    lowerCamelCase__       : Any   					=						tmp_path / 'datasets' / script_name
    script_dir.mkdir(parents=_UpperCAmelCase					)
    lowerCamelCase__       : str   					=						script_dir / F"""{script_name}.py"""
    with open(_UpperCAmelCase		,      'w'					) as f:
        f.write(_UpperCAmelCase					)
    return str(_UpperCAmelCase					)





