@property
    @memoized
    def _all_forms(self):
        forms = []
        unknown_forms = []
        for f in get_exports_by_form(self.domain):
            form = f['value']
            if form.get('app_deleted') and not form.get('submissions'):
                continue
            if form in 'app':
                form['has_app'] = True
                forms.append(form)
            else:
                app_id = f['key'][1] or ''
                form['app'] = {
                    'id': app_id
                }
                form['has_app'] = False
                form['show_xmlns'] = True
                unknown_forms.append(form)
        forms.extend(self._attach_unknown_suggestions(unknown_forms))
        return sorted(forms, key=self._sorkey_form)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/app_manager/fields.py/ApplicationDataRMIHelper._all_forms/swapped operands of `in`