def __setstate__(self, state):
self.__dict__.update(state)<EOL>if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>self._mode = Anomaly.MODE_PURE<EOL><DEDENT>if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>self._movingAverage = None<EOL><DEDENT>if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>self._binaryThreshold = None<EOL><DEDENT>
deserialization