@hepnames.over('<STR_LIT>', '<STR_LIT>')<EOL>def deleted(self, key, value):
def _is_deleted(value):<EOL><INDENT>return force_single_element(value.get('<STR_LIT:c>', '<STR_LIT>')).upper() == '<STR_LIT>'<EOL><DEDENT>def _is_stub(value):<EOL><INDENT>return not (force_single_element(value.get('<STR_LIT:a>', '<STR_LIT>')).upper() == '<STR_LIT>')<EOL><DEDENT>deleted = self.get('<STR_LIT>')<EOL>stub = self.get('<STR_LIT>')<EOL>for value in force_list(value):<EOL><INDENT>deleted = not deleted and _is_deleted(value)<EOL>stub = not stub and _is_stub(value)<EOL><DEDENT>self['<STR_LIT>'] = stub<EOL>return deleted<EOL>
Populate the ``deleted`` key.

    Also populates the ``stub`` key through side effects.