def get(self, **kwargs):
clone = self.filter(**kwargs)<EOL>num = len(clone)<EOL>if num == <NUM_LIT:1>:<EOL><INDENT>return clone._result_cache[<NUM_LIT:0>]<EOL><DEDENT>if not num:<EOL><INDENT>raise Task.DoesNotExist(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(kwargs),<EOL>)<EOL><DEDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(num, kwargs),<EOL>)<EOL>
Performs the query and returns a single object matching the given
keyword arguments.