<commit_before>from __future__ import unicode_literals

from mongoengine import StringField, DictField, BooleanField
from mongoengine import DoesNotExist
from flask_mongoengine.wtf import model_form
from werkzeug.security import check_password_hash, generate_password_hash

from core.database import YetiDocument

DEFAULT_PERMISSIONS = {
    "observable": ["read", "write", "tag"],
    "indicator": ["read", "write"],
    "entity": ["read", "write"],
    "admin": True,
}


class User(YetiDocument):
    available_settings = dict()

    username = StringField(required=True, unique=True)<commit_msg>Change default permissions<commit_after>from __future__ import unicode_literals

from mongoengine import StringField, DictField, BooleanField
from mongoengine import DoesNotExist
from flask_mongoengine.wtf import model_form
from werkzeug.security import check_password_hash, generate_password_hash

from core.database import YetiDocument

DEFAULT_PERMISSIONS = {
    "indicator": ["read", "write"],
    "observable": ["read", "write"],
    "tag": ["read", "write"],
    "entity": ["read", "write"],
    "feed": ["read", "write"],
    "analytics": ["read", "write"],
    "export": ["read", "write"],
    "exporttemplate": ["read", "write"],
    "files": ["read", "write"],
    "admin": True,
}


class User(YetiDocument):
    available_settings = dict()

    username = StringField(required=True, unique=True)
{'fraction_non_alphanumeric': 0.13574982231698648, 'fraction_numerical': 0.0, 'mean_word_length': 5.6415094339622645, 'pattern_counts': {'":': 14, '<': 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': '6760008', 'n_tokens_mistral': 426, 'n_tokens_neox': 416, 'n_words': 112}