<s> """<STR_LIT>""" <EOL> from mockito import mock <EOL> from pyherc . data . effects import DamageEffect <EOL> class DamageBuilder ( ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> """<STR_LIT>""" <EOL> super ( ) . __init__ ( ) <EOL> self . duration = <NUM_LIT:1> <EOL> self . frequency = <NUM_LIT:1> <EOL> self . tick = <NUM_LIT:0> <EOL> self . damage = <NUM_LIT:5> <EOL> self . damage_type = '<STR_LIT>' <EOL> self . target = mock ( ) <EOL> self . icon = <NUM_LIT> <EOL> self . title = '<STR_LIT>' <EOL> self . description = '<STR_LIT>' <EOL> def with_duration ( self , duration ) : <EOL> """<STR_LIT>""" <EOL> self . duration = duration <EOL> return self <EOL> def with_frequency ( self , frequency ) : <EOL> """<STR_LIT>""" <EOL> self . frequency = frequency <EOL> return self <EOL> def with_tick ( self , tick ) : <EOL> """<STR_LIT>""" <EOL> self . tick = tick <EOL> return self <EOL> def with_damage ( self , damage ) : <EOL> """<STR_LIT>""" <EOL> self . damage = damage <EOL> return self <EOL> def with_target ( self , target ) : <EOL> """<STR_LIT>""" <EOL> self . target = target <EOL> return self <EOL> def with_damage_type ( self , damage_type ) : <EOL> """<STR_LIT>""" <EOL> self . damage_type = damage_type <EOL> return self <EOL> def build ( self ) : <EOL> """<STR_LIT>""" <EOL> return DamageEffect ( duration = self . duration , <EOL> frequency = self . frequency , <EOL> tick = self . tick , <EOL> damage = self . damage , <EOL> damage_type = self . damage_type , <EOL> target = self . target , <EOL> icon = self . icon , <EOL> title = self . title , <EOL> description = self . description ) </s>
