





'''simple docstring'''


from __future__ import annotations

import sys
def 							UpperCAmelCase_						(		__lowerCamelCase      :      int			,__lowerCamelCase      :      int				):
   # base cases
   if abs(UpperCamelCase__				) == 1:
      return a, 0
   elif abs(UpperCamelCase__				) == 1:
      return 0, b

   lowercase_    :int					    =				a, b
   lowercase_    :Union[str, Any]					    =				1, 0
   lowercase_    :Optional[int]					    =				0, 1

   while remainder != 0:
      lowercase_    :str					    =				old_remainder // remainder
      lowercase_    :int					    =				remainder, old_remainder - quotient * remainder
      lowercase_    :List[Any]					    =				coeff_a, old_coeff_a - quotient * coeff_a
      lowercase_    :Tuple					    =				coeff_b, old_coeff_b - quotient * coeff_b

   # sign correction for negative numbers
   if a < 0:
      lowercase_    :Optional[int]					    =				-old_coeff_a
   if b < 0:
      lowercase_    :int					    =				-old_coeff_b

   return old_coeff_a, old_coeff_b
def 							UpperCAmelCase_						(		):
   if len(sys.argv				) < 3:
      print("2 integer arguments required"				)
      return 1
   lowercase_    :Dict					    =				int(sys.argv[1]				)
   lowercase_    :Tuple					    =				int(sys.argv[2]				)
   print(extended_euclidean_algorithm(UpperCamelCase__			,UpperCamelCase__				)				)
   return 0


if __name__ == "__main__":
     raise SystemExit(main())









'''simple docstring'''


import platform
from argparse import ArgumentParser

import huggingface_hub
import pandas
import pyarrow

from datasets import __version__ as version
from datasets.commands import BaseDatasetsCLICommand
def 							UpperCAmelCase_						(		__lowerCamelCase      :      Optional[int]				):
   return EnvironmentCommand()


class    a_     (       _lowerCAmelCase							):





     @staticmethod
     def 							lowercase__   (				lowercase	:      ArgumentParser		):





        """simple docstring"""




        lowercase_    :Optional[int]					    =				parser.add_parser("env"			,   help="Print relevant system environment info."		)
        download_parser.set_defaults(func=lowercase		)





     def 							lowercase__   (				self	:      List[str]		):





        """simple docstring"""




        lowercase_    :Tuple					    =				{
            "`datasets` version": version,
            "Platform": platform.platform(),
            "Python version": platform.python_version(),
            "Huggingface_hub version": huggingface_hub.__version__,
            "PyArrow version": pyarrow.__version__,
            "Pandas version": pandas.__version__,
        }

        print("\nCopy-and-paste the text below in your GitHub issue.\n"		)
        print(self.format_dict(lowercase		)		)

        return info







     @staticmethod
     def 							lowercase__   (				lowercase	:      Dict		):





        """simple docstring"""




        return "\n".join([F'- {prop}: {val}' for prop, val in d.items()]		) + "\n"


