



"""simple docstring"""







from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

lowercase__		:				Tuple          =	typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
lowercase__		:				List[Any]          =	typing.Union[np.floataa, int, float]  # noqa: UP007

def 				UpperCamelCase_    (    lowerCAmelCase__      :				Vector    ,   lowerCAmelCase__      :				Vector						)						->   VectorOut:

  """simple docstring"""




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

def 				UpperCamelCase_    (    lowerCAmelCase__      :				Vector    ,   lowerCAmelCase__      :				Vector						)						->   VectorOut:

  """simple docstring"""




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


if __name__ == "__main__":

     def 				UpperCamelCase_    (    )						->   None:

       """simple docstring"""




       from timeit import timeit

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










"""simple docstring"""







from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Features, Value
from .base import TaskTemplate







@dataclass(frozen=lowercase_  )
class       UpperCamelCase__   (	lowercase_  ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE  				=     field(default="""summarization""",					metadata={"""include_in_asdict_even_if_is_default""": True}  )
      _SCREAMING_SNAKE_CASE  				=     Features({"""text""": Value("""string"""  )}  )
      _SCREAMING_SNAKE_CASE  				=     Features({"""summary""": Value("""string"""  )}  )
      _SCREAMING_SNAKE_CASE  				=     "text"
      _SCREAMING_SNAKE_CASE  				=     "summary"



      @property
      def      SCREAMING_SNAKE_CASE__ (      self				:      Dict       ):
        return {self.text_column: "text", self.summary_column: "summary"}





