<commit_before>from discord.ext import commands
from configparser import ConfigParser
from models.activity import Activity
import sys

# The inital config.ini must be supplied in order to retrieve
# basic information
from models.server_settings import ServerSettings

# TODO: User Environmental Variables instead of ini file
CONFIG = ConfigParser(allow_no_value=True)
CONFIG.read('config.ini')

CHARACTER_COLLECTION = CONFIG.get('db', 'character_collection')
SERVER_COLLECTION = CONFIG.get('db', 'server_collection')
MEMBER_COLLECTION = CONFIG.get('db', 'member_collection')
HIST_COLLECTION = CONFIG.get('db', 'historical_collection')
DB_NAME = CONFIG.get('db', 'name')
DB_HOST = CONFIG.get('db', 'host')
DB_USER = CONFIG.get('auth', 'user')
DB_PASS = CONFIG.get('auth', 'pwd')
TOKEN = CONFIG.get('auth', 'token')
PIC_TAG = 'GEAR_PICS'
HAS_CLOUD_STORAGE = CONFIG.getboolean('cloudinary', 'has_cloud_storage')
CLOUD_NAME = CONFIG.get('cloudinary', 'cloud_name')
CLOUDINARY_API = CONFIG.get('cloudinary', 'api_key')
CLOUDINARY_SECRET = CONFIG.get('cloudinary', 'api_secret')

# User role that officer commands are checked against
ADMIN_USER = 'Officers'

INITIAL_EXTENSIONS = ('cogs.add',
                      'cogs.delete',
                      'cogs.general',
                      'cogs.listings',
                      'cogs.search',
                      'cogs.update',
                      'cogs.extras')

HEADERS = ['Rank', 'Fam', 'Char', 'Class', 'Lvl', ' % ', 'AP', 'AAP', 'DP', 'GS', 'PlayStyle', 'Updated']

CHARACTER_CLASSES = [
    "MUSA",
    "DARKKNIGHT",
    "BERSERKER",
    "KUNOICHI",
    "MAEHWA",
    "MYSTIC",
    "NINJA",
    "RANGER",
    "SORCERESS",
    "STRIKER",
    "TAMER",
    "VALKYRIE",
    "WARRIOR",
    "WITCH",
    "WIZARD",
    "LAHN",
    "ARCHER",
    "SHAI",
    "GUARDIAN",
    "HASHASHIN"
]

CHARACTER_CLASS_SHORT = {
    "DK": "DARKKNIGHT",
    "ZERKER": "BERSERKER",
    "KUNO": "KUNOICHI",
    "SORC": "SORCERESS",
    "VALK": "VALKYRIE",
    "WIZ": "WIZARD",
}

DESCRIPTION = '''
https://discord.gg/STa7Ebz

This the official Gear Score bot for Black Desert Online. 
For visual data go to: https://gsbot.pachevjoseph.com
For issues/suggestions email me: <EMAIL>. 
'''


# utility method to wrap string in codeblocks
def codify(s):
    return '```\n' + s + '\n```'


def get_row(members, filter, num=-1):<commit_msg>Adds NOVA class<commit_after>from discord.ext import commands
from configparser import ConfigParser
from models.activity import Activity
import sys

# The inital config.ini must be supplied in order to retrieve
# basic information
from models.server_settings import ServerSettings

# TODO: User Environmental Variables instead of ini file
CONFIG = ConfigParser(allow_no_value=True)
CONFIG.read('config.ini')

CHARACTER_COLLECTION = CONFIG.get('db', 'character_collection')
SERVER_COLLECTION = CONFIG.get('db', 'server_collection')
MEMBER_COLLECTION = CONFIG.get('db', 'member_collection')
HIST_COLLECTION = CONFIG.get('db', 'historical_collection')
DB_NAME = CONFIG.get('db', 'name')
DB_HOST = CONFIG.get('db', 'host')
DB_USER = CONFIG.get('auth', 'user')
DB_PASS = CONFIG.get('auth', 'pwd')
TOKEN = CONFIG.get('auth', 'token')
PIC_TAG = 'GEAR_PICS'
HAS_CLOUD_STORAGE = CONFIG.getboolean('cloudinary', 'has_cloud_storage')
CLOUD_NAME = CONFIG.get('cloudinary', 'cloud_name')
CLOUDINARY_API = CONFIG.get('cloudinary', 'api_key')
CLOUDINARY_SECRET = CONFIG.get('cloudinary', 'api_secret')

# User role that officer commands are checked against
ADMIN_USER = 'Officers'

INITIAL_EXTENSIONS = ('cogs.add',
                      'cogs.delete',
                      'cogs.general',
                      'cogs.listings',
                      'cogs.search',
                      'cogs.update',
                      'cogs.extras')

HEADERS = ['Rank', 'Fam', 'Char', 'Class', 'Lvl', ' % ', 'AP', 'AAP', 'DP', 'GS', 'PlayStyle', 'Updated']

CHARACTER_CLASSES = [
    "MUSA",
    "DARKKNIGHT",
    "BERSERKER",
    "KUNOICHI",
    "MAEHWA",
    "MYSTIC",
    "NINJA",
    "RANGER",
    "SORCERESS",
    "STRIKER",
    "TAMER",
    "VALKYRIE",
    "WARRIOR",
    "WITCH",
    "WIZARD",
    "LAHN",
    "ARCHER",
    "SHAI",
    "GUARDIAN",
    "HASHASHIN",
    "NOVA"
]

CHARACTER_CLASS_SHORT = {
    "DK": "DARKKNIGHT",
    "ZERKER": "BERSERKER",
    "KUNO": "KUNOICHI",
    "SORC": "SORCERESS",
    "VALK": "VALKYRIE",
    "WIZ": "WIZARD",
}

DESCRIPTION = '''
https://discord.gg/STa7Ebz

This the official Gear Score bot for Black Desert Online. 
For visual data go to: https://gsbot.pachevjoseph.com
For issues/suggestions email me: <EMAIL>. 
'''


# utility method to wrap string in codeblocks
def codify(s):
    return '```\n' + s + '\n```'


def get_row(members, filter, num=-1):
{'fraction_non_alphanumeric': 0.15421940928270042, 'fraction_numerical': 0.0008438818565400844, 'mean_word_length': 3.5411877394636013, 'pattern_counts': {'":': 12, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '544959', 'n_tokens_mistral': 1743, 'n_tokens_neox': 1688, 'n_words': 374}