<commit_before>import os
import sys
from waitlist.base import db
from waitlist.storage.database import EveApiScope
base_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(base_path, 'lib'))

api_scopes = ['fleetRead', 'fleetWrite', 'remoteClientUI', 'esi-mail.send_mail.v1']

def createRoles():
    for scope in api_scopes:
        dbscope = db.session.query(EveApiScope).filter(EveApiScope.scopeName == scope).first()
        if dbscope == None:
            dbscope = EveApiScope(scopeName=scope)
            db.session.add(dbscope)

if __name__ == '__main__':
    createRoles()
    db.session.commit()<commit_msg>updated required token scopes<commit_after>import os
import sys
base_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(base_path, 'lib'))
from typing import List

from waitlist.base import db
from waitlist.storage.database import EveApiScope

api_scopes: List[str] = ['esi-ui.open_window.v1', 'esi-fleets.read_fleet.v1', 'esi-fleets.write_fleet.v1', 'esi-mail.send_mail.v1']


def create_roles():
    for scope in api_scopes:
        dbscope = db.session.query(EveApiScope).filter(EveApiScope.scopeName == scope).first()
        if dbscope == None:
            dbscope = EveApiScope(scopeName=scope)
            db.session.add(dbscope)

if __name__ == '__main__':
    create_roles()
    db.session.commit()
{'fraction_non_alphanumeric': 0.12917271407837447, 'fraction_numerical': 0.00362844702467344, 'mean_word_length': 4.107407407407408, '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': '1821626', 'n_tokens_mistral': 480, 'n_tokens_neox': 472, 'n_words': 89}