def __repr__(self, _repr_running={}):
call_key = id(self), get_ident()<EOL>if call_key in _repr_running:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>_repr_running[call_key] = <NUM_LIT:1><EOL>try:<EOL><INDENT>if not self:<EOL><INDENT>return '<STR_LIT:{}>'<EOL><DEDENT>self.encoder.clip = self.clip<EOL>return json.dumps(PrettyDict([(k, float(roundf(v, self.precision))<EOL>if (self.precision and isinstance(v, FLOAT_TYPES)) else v)<EOL>for k, v in viewitems(self)]), indent=self.indent, cls=self.encoder)<EOL><DEDENT>finally:<EOL><INDENT>del _repr_running[call_key]<EOL><DEDENT>
hod.__repr__() <==> repr(hod)