<commit_before>Category = {
    'fields': [':pk', 'name', 'order', 'parent_id'],
    'allow_missing': True,
}

BriefField = {
    'fields': [':pk', 'name', 'description'],
    'allow_missing': True,
}

Field = {
    'fields': [
        ':pk', 'name', 'plural_name', 'description', 'keywords',
        'app_name', 'model_name', 'field_name',
        'modified', 'published', 'operators',
        'simple_type', 'internal_type', 'data_modified', 'enumerable',
        'searchable', 'unit', 'plural_unit', 'nullable'
    ],
    'aliases': {
        'plural_name': 'get_plural_name',
        'plural_unit': 'get_plural_unit',
    },
    'allow_missing': True,
}

BriefConcept = {
    'fields': [':pk', 'name', 'description'],
    'allow_missing': True,
}

Concept = {
    'fields': [
        ':pk', 'name', 'plural_name', 'description', 'keywords',
        'category_id', 'order', 'modified', 'published',
        'formatter_name', 'queryable', 'sortable'
    ],
    'aliases': {
        'plural_name': 'get_plural_name',
    },
    'allow_missing': True,
}

ConceptField = {
    'fields': ['alt_name', 'alt_plural_name'],
    'aliases': {
        'alt_name': 'name',
        'alt_plural_name': 'get_plural_name',
    },
    'allow_missing': True,
}


Context = {
    'exclude': ['user', 'session_key'],
    'allow_missing': True,
}


View = {
    'exclude': ['user', 'session_key'],
    'allow_missing': True,
}

User = {
    'fields': [':pk', 'name', 'username', 'email'],
    'aliases': {
        'name': 'get_full_name',
    }
}

BriefQuery = {
    'exclude': ['session_key', 'context_json', 'view_json'],
    'allow_missing': True,
    'related': {
        'user': User,
    }
}

Query = {
    'fields': [':pk', 'accessed', 'name', 'description', 'user',
               'shared_users', 'context_json', 'view_json'],
    'related': {
        'user': User,
        'shared_users': User,
    }
}

Revision = {
    'exclude': ['user', 'session_key', 'data'],
    'allow_missing': True,
}<commit_msg>Add a template for forked queries<commit_after>Category = {
    'fields': [':pk', 'name', 'order', 'parent_id'],
    'allow_missing': True,
}

BriefField = {
    'fields': [':pk', 'name', 'description'],
    'allow_missing': True,
}

Field = {
    'fields': [
        ':pk', 'name', 'plural_name', 'description', 'keywords',
        'app_name', 'model_name', 'field_name',
        'modified', 'published', 'operators',
        'simple_type', 'internal_type', 'data_modified', 'enumerable',
        'searchable', 'unit', 'plural_unit', 'nullable'
    ],
    'aliases': {
        'plural_name': 'get_plural_name',
        'plural_unit': 'get_plural_unit',
    },
    'allow_missing': True,
}

BriefConcept = {
    'fields': [':pk', 'name', 'description'],
    'allow_missing': True,
}

Concept = {
    'fields': [
        ':pk', 'name', 'plural_name', 'description', 'keywords',
        'category_id', 'order', 'modified', 'published',
        'formatter_name', 'queryable', 'sortable'
    ],
    'aliases': {
        'plural_name': 'get_plural_name',
    },
    'allow_missing': True,
}

ConceptField = {
    'fields': ['alt_name', 'alt_plural_name'],
    'aliases': {
        'alt_name': 'name',
        'alt_plural_name': 'get_plural_name',
    },
    'allow_missing': True,
}


Context = {
    'exclude': ['user', 'session_key'],
    'allow_missing': True,
}


View = {
    'exclude': ['user', 'session_key'],
    'allow_missing': True,
}

User = {
    'fields': [':pk', 'name', 'username', 'email'],
    'aliases': {
        'name': 'get_full_name',
    }
}

BriefQuery = {
    'exclude': ['session_key', 'context_json', 'view_json'],
    'allow_missing': True,
    'related': {
        'user': User,
    }
}

ForkedQuery = {
    'fields': [':pk', 'parent'],
    'allow_missing': True,
}

Query = {
    'fields': [':pk', 'accessed', 'name', 'description', 'user',
               'shared_users', 'context_json', 'view_json'],
    'related': {
        'user': User,
        'shared_users': User,
    }
}

Revision = {
    'exclude': ['user', 'session_key', 'data'],
    'allow_missing': True,
}
{'fraction_non_alphanumeric': 0.21095086775849425, 'fraction_numerical': 0.0, 'mean_word_length': 3.0595238095238093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3603597', 'n_tokens_mistral': 1470, 'n_tokens_neox': 1450, 'n_words': 277}