def _tidy_repr(self, max_vals=<NUM_LIT:10>, footer=True):
num = max_vals // <NUM_LIT:2><EOL>head = self[:num]._get_repr(length=False, footer=False)<EOL>tail = self[-(max_vals - num):]._get_repr(length=False, footer=False)<EOL>result = '<STR_LIT>'.format(head=head[:-<NUM_LIT:1>], tail=tail[<NUM_LIT:1>:])<EOL>if footer:<EOL><INDENT>result = '<STR_LIT>'.format(<EOL>result=result, footer=self._repr_footer())<EOL><DEDENT>return str(result)<EOL>
a short repr displaying only max_vals and an optional (but default
        footer)