#NEWLINE# def _fold( self , accum ) : #NEWLINE# #INDENT# accum . setdefault ( self . key , 0 ) #NEWLINE# sample_rate = ( self . flag if self . flag else 1.0 ) #NEWLINE# accum [ accum . key ] += ( self . value / ( 1 / sample_rate ) )