

"""simple docstring"""




import os

from apache_beam.io.filesystems import FileSystems
from apache_beam.pipeline import Pipeline

from .logging import get_logger


__UpperCAmelCase	=			2 << 20  # 2mb
__UpperCAmelCase	=			get_logger(__name__)







class        __lowercase     (      __lowerCamelCase   ):

  def 				__lowercase    (					self						:     int      ):






   '''simple docstring'''
   UpperCAmelCase__   :					Dict   				=   self._options.get_all_options().get("""runner"""      )
   return runner in [None, "DirectRunner", "PortableRunner"]







def 					lowerCAmelCase  (   __UpperCamelCase							,      __UpperCamelCase							,      __UpperCamelCase=False ):
 '''simple docstring'''





 UpperCAmelCase__   :					List[Any]   				=   FileSystems
 if fs.exists(__UpperCamelCase ):
  if force_upload:
   logger.info(F"Remote path already exist: {remote_file_path}. Overwriting it as force_upload=True." )
  else:
   logger.info(F"Remote path already exist: {remote_file_path}. Skipping it as force_upload=False." )
   return
 with fs.create(__UpperCamelCase ) as remote_file:
  with open(__UpperCamelCase							,      """rb""" ) as local_file:
   UpperCAmelCase__   :					Union[str, Any]   				=   local_file.read(__UpperCamelCase )
   while chunk:
    remote_file.write(__UpperCamelCase )
    UpperCAmelCase__   :					Union[str, Any]   				=   local_file.read(__UpperCamelCase )




def 					lowerCAmelCase  (   __UpperCamelCase							,      __UpperCamelCase							,      __UpperCamelCase=False ):
 '''simple docstring'''





 UpperCAmelCase__   :					Tuple   				=   FileSystems
 if os.path.exists(__UpperCamelCase ):
  if force_download:
   logger.info(F"Local path already exist: {remote_file_path}. Overwriting it as force_upload=True." )
  else:
   logger.info(F"Local path already exist: {remote_file_path}. Skipping it as force_upload=False." )
   return
 with fs.open(__UpperCamelCase ) as remote_file:
  with open(__UpperCamelCase							,      """wb""" ) as local_file:
   UpperCAmelCase__   :					Tuple   				=   remote_file.read(__UpperCamelCase )
   while chunk:
    local_file.write(__UpperCamelCase )
    UpperCAmelCase__   :					str   				=   remote_file.read(__UpperCamelCase )








"""simple docstring"""




from math import factorial
def 					lowerCAmelCase  (   __UpperCamelCase							,      __UpperCamelCase ):
 '''simple docstring'''





 return factorial(__UpperCamelCase ) / (factorial(__UpperCamelCase ) * factorial(n - r ))
def 					lowerCAmelCase  (   ):
 '''simple docstring'''





 UpperCAmelCase__   :					Any   				=   0

 for i in range(1							,      101 ):
  for j in range(1							,      i + 1 ):
   if combinations(__UpperCamelCase							,      __UpperCamelCase ) > 1e6:
    total += 1
 return total


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





