<commit_before>package migrations

func m14_create_table_stats_voicetimes() {
    CreateTableIfNotExists("stats_voicetimes")
}<commit_msg>[stats] adds voicestats db indexes<commit_after>package migrations

import (
    rethink "github.com/gorethink/gorethink"
    "github.com/Seklfreak/Robyul2/helpers"
)

func m14_create_table_stats_voicetimes() {
    CreateTableIfNotExists("stats_voicetimes")

    rethink.Table("stats_voicetimes").IndexCreate("guildid").Run(helpers.GetDB())
    rethink.Table("stats_voicetimes").IndexCreate("userid").Run(helpers.GetDB())
}
{'fraction_non_alphanumeric': 0.12299465240641712, 'fraction_numerical': 0.008912655971479501, 'mean_word_length': 7.264705882352941, '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': '1781152', 'n_tokens_mistral': 202, 'n_tokens_neox': 193, 'n_words': 20}