






from typing import Optional

import pyspark

from .. import Features, NamedSplit
from ..download import DownloadMode
from ..packaged_modules.spark.spark import Spark
from .abc import AbstractDatasetReader





class __lowerCamelCase (      snake_case__):





	"""simple docstring"""






	def __init__(							self       ,    UpperCAmelCase       ,    UpperCAmelCase = None       ,    UpperCAmelCase = None       ,    UpperCAmelCase = True       ,    UpperCAmelCase = None       ,    UpperCAmelCase = False       ,    UpperCAmelCase = None       ,    UpperCAmelCase = True       ,    UpperCAmelCase = "arrow"       ,    **UpperCAmelCase       ,    ):
							"""simple docstring"""







							super().__init__(
							    split=UpperCAmelCase       ,    features=UpperCAmelCase       ,    cache_dir=UpperCAmelCase       ,    keep_in_memory=UpperCAmelCase       ,    streaming=UpperCAmelCase       ,    **UpperCAmelCase       ,    )
							_UpperCAmelCase									=			load_from_cache_file
							_UpperCAmelCase									=			file_format
							_UpperCAmelCase									=			Spark(
							    df=UpperCAmelCase       ,    features=UpperCAmelCase       ,    cache_dir=UpperCAmelCase       ,    working_dir=UpperCAmelCase       ,    **UpperCAmelCase       ,    )

	def        UpperCamelCase    (							self    ):
							"""simple docstring"""







							if self.streaming:
													return self.builder.as_streaming_dataset(split=self.split    )
							_UpperCAmelCase									=			None if self._load_from_cache_file else DownloadMode.FORCE_REDOWNLOAD
							self.builder.download_and_prepare(
							    download_mode=UpperCAmelCase       ,    file_format=self._file_format       ,    )
							return self.builder.as_dataset(split=self.split    )




def 		lowercase_(  SCREAMING_SNAKE_CASE_	):


  '''simple docstring'''

  if divisor % 5 == 0 or divisor % 2 == 0:
    return 0
  lowerCamelCase :					List[Any]    =				1
  lowerCamelCase :					Union[str, Any]    =				1
  while repunit:
    lowerCamelCase :					Union[str, Any]    =				(10 * repunit + 1) % divisor
    repunit_index += 1
  return repunit_index






def 		lowercase_(  SCREAMING_SNAKE_CASE_ = 1000000	):


  '''simple docstring'''

  lowerCamelCase :					List[str]    =				limit - 1
  if divisor % 2 == 0:
    divisor += 1
  while least_divisible_repunit(SCREAMING_SNAKE_CASE_	) <= limit:
    divisor += 2
  return divisor


if __name__ == "__main__":
   print(f'''{solution() = }''')



