






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

from ..features import Features, Value
from .base import TaskTemplate
@dataclass(frozen=__lowercase			)
class 							A_    (						__lowercase			):






 '''simple docstring'''




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


 @property
 def  snake_case__				(	self) ->		Dict[str, str]:

     """simple docstring"""



     return {self.text_column: "text", self.summary_column: "summary"}












import unittest

from knapsack import knapsack as k
class 							A_    (						unittest.TestCase			):






 '''simple docstring'''




 def  snake_case__				(	self) ->		Dict:

     """simple docstring"""



     _UpperCAmelCase				:      Optional[int]			  =				0
     _UpperCAmelCase				:      List[Any]			  =				[0]
     _UpperCAmelCase				:      Optional[Any]			  =				[0]
     _UpperCAmelCase				:      Optional[int]			  =				len(_A)
     self.assertEqual(k.knapsack(_A							,  _A							,  _A							,  _A)							,  0)

     _UpperCAmelCase				:      Optional[int]			  =				[60]
     _UpperCAmelCase				:      List[str]			  =				[10]
     _UpperCAmelCase				:      str			  =				len(_A)
     self.assertEqual(k.knapsack(_A							,  _A							,  _A							,  _A)							,  0)


 def  snake_case__				(	self) ->		Union[str, Any]:

     """simple docstring"""



     _UpperCAmelCase				:      Any			  =				3
     _UpperCAmelCase				:      int			  =				[1, 2, 3]
     _UpperCAmelCase				:      List[str]			  =				[3, 2, 1]
     _UpperCAmelCase				:      Union[str, Any]			  =				len(_A)
     self.assertEqual(k.knapsack(_A							,  _A							,  _A							,  _A)							,  5)


 def  snake_case__				(	self) ->		Tuple:

     """simple docstring"""



     _UpperCAmelCase				:      List[str]			  =				50
     _UpperCAmelCase				:      Tuple			  =				[60, 100, 120]
     _UpperCAmelCase				:      Optional[int]			  =				[10, 20, 30]
     _UpperCAmelCase				:      Optional[Any]			  =				len(_A)
     self.assertEqual(k.knapsack(_A							,  _A							,  _A							,  _A)							,  220)


if __name__ == "__main__":
  unittest.main()




