





from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

__A									=				typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
__A									=				typing.Union[np.floataa, int, float]  # noqa: UP007





def      lowerCAmelCase_ (       __a	,    __a		)     ->		VectorOut:







  """simple docstring"""





  return np.sqrt(np.sum((np.asarray(__a		) - np.asarray(__a		)) ** 2		)		)





def      lowerCAmelCase_ (       __a	,    __a		)     ->		VectorOut:







  """simple docstring"""





  return sum((va - va) ** 2 for va, va in zip(__a	,    __a		)		) ** (1 / 2)


if __name__ == "__main__":





     def      lowerCAmelCase_ (       )     ->		None:







       """simple docstring"""





       from timeit import timeit

       print("Without Numpy"		)
       print(
           timeit(
               "euclidean_distance_no_np([1, 2, 3], [4, 5, 6])"	,    number=10000	,    globals=globals()	,    )		)
       print("With Numpy"		)
       print(
           timeit(
               "euclidean_distance([1, 2, 3], [4, 5, 6])"	,    number=10000	,    globals=globals()	,    )		)






     benchmark()








import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
__A									=				"."


if __name__ == "__main__":
     __A									=				os.path.join(REPO_PATH, "utils/documentation_tests.txt")
     __A									=				[]
     __A									=				[]
     with open(doctest_file_path) as fp:
          for line in fp:
               __A									=				line.strip()
               __A									=				os.path.join(REPO_PATH, line)
               if not (os.path.isfile(path) or os.path.isdir(path)):
                    non_existent_paths.append(line)
               all_paths.append(path)
     if len(non_existent_paths) > 0:
          __A									=				"\n".join(non_existent_paths)
          raise ValueError(f'`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}')
     if all_paths != sorted(all_paths):
          raise ValueError("Files in `utils/documentation_tests.txt` are not in alphabetical order.")

