import doctest
import logging
import os
import unittest
from pathlib import Path
from typing import List, Union

import transformers
from transformers.testing_utils import require_tf, require_torch, slow


__lowerCAmelCase					: Any        =logging.getLogger()





@unittest.skip('Temporarily disable the doc tests.'			)
@require_torch
@require_tf
@slow
class 				_A		( unittest.TestCase			):

      def        A__ (		self	, __lowerCAmelCase	, __lowerCAmelCase = None	, __lowerCAmelCase = None	, __lowerCAmelCase = None	, __lowerCAmelCase = True	, ):







            """simple docstring"""



            lowercase														=			[file for file in os.listdir(__lowerCAmelCase		) if os.path.isfile(os.path.join(__lowerCAmelCase	, __lowerCAmelCase		)		)]

            if identifier is not None:
                  lowercase														=			[file for file in files if identifier in file]

            if n_identifier is not None:
                  if isinstance(__lowerCAmelCase	, __lowerCAmelCase		):
                        for n_ in n_identifier:
                              lowercase														=			[file for file in files if n_ not in file]
                  else:
                        lowercase														=			[file for file in files if n_identifier not in file]

            lowercase														=			ignore_files or []
            ignore_files.append("""__init__.py"""		)
            lowercase														=			[file for file in files if file not in ignore_files]

            for file in files:
                  # Open all files
                  print("""Testing"""	, __lowerCAmelCase		)

                  if only_modules:
                        lowercase														=			file.split("""."""		)[0]
                        try:
                              lowercase														=			getattr(__lowerCAmelCase	, __lowerCAmelCase		)
                              lowercase														=			doctest.DocTestSuite(__lowerCAmelCase		)
                              lowercase														=			unittest.TextTestRunner().run(__lowerCAmelCase		)
                              self.assertIs(len(result.failures		)	, 0		)
                        except AttributeError:
                              logger.info(f'{module_identifier} is not a module.'		)
                  else:
                        lowercase														=			doctest.testfile(str("""..""" / directory / file		)	, optionflags=doctest.ELLIPSIS		)
                        self.assertIs(result.failed	, 0		)

      def        A__ (		self		):







            """simple docstring"""



            lowercase														=			Path("""src/transformers"""		)
            lowercase														=			"""modeling"""
            lowercase														=			[
                """modeling_ctrl.py""",
                """modeling_tf_ctrl.py""",
            ]
            self.analyze_directory(__lowerCAmelCase	, identifier=__lowerCAmelCase	, ignore_files=__lowerCAmelCase		)

      def        A__ (		self		):







            """simple docstring"""



            lowercase														=			Path("""src/transformers"""		)
            lowercase														=			"""tokenization"""
            self.analyze_directory(__lowerCAmelCase	, identifier=__lowerCAmelCase		)

      def        A__ (		self		):







            """simple docstring"""



            lowercase														=			Path("""src/transformers"""		)
            lowercase														=			"""configuration"""
            self.analyze_directory(__lowerCAmelCase	, identifier=__lowerCAmelCase		)

      def        A__ (		self		):







            """simple docstring"""



            lowercase														=			Path("""src/transformers"""		)
            lowercase														=			["""configuration""", """modeling""", """tokenization"""]
            self.analyze_directory(__lowerCAmelCase	, n_identifier=__lowerCAmelCase		)







      def        A__ (		self		):







            """simple docstring"""



            lowercase														=			Path("""docs/source"""		)
            lowercase														=			["""favicon.ico"""]
            self.analyze_directory(__lowerCAmelCase	, ignore_files=__lowerCAmelCase	, only_modules=__lowerCAmelCase		)




"""simple docstring"""






from __future__ import annotations


def     UpperCAmelCase__ (       lowerCAmelCase__  :list[float]      ,	lowerCAmelCase__  :list[float]	)				->					float:
      '''simple docstring'''


      lowercase														=			sorted(numsa + numsa	)
      lowercase							,							lowercase														=			divmod(len(lowerCAmelCase__	)      ,	2	)
      if mod == 1:
            return all_numbers[div]
      else:
            return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       __lowerCAmelCase					: List[Any]        =[float(x) for x in input("""Enter the elements of first array: """).split()]
       __lowerCAmelCase					: List[Any]        =[float(x) for x in input("""Enter the elements of second array: """).split()]
       print(F"""The median of two arrays is: {median_of_two_arrays(array_a, array_a)}""")



