<commit_before>package com.github.otbproject.otbproject.database;

import com.github.otbproject.otbproject.commands.AliasFields;
import com.github.otbproject.otbproject.commands.CommandFields;
import com.github.otbproject.otbproject.commands.scheduler.SchedulerFields;
import com.github.otbproject.otbproject.filters.FilterFields;
import com.github.otbproject.otbproject.filters.FilterGroupFields;
import com.github.otbproject.otbproject.quotes.QuoteFields;
import com.github.otbproject.otbproject.users.UserFields;

import java.util.HashMap;

public class DatabaseHelper {
    /**
     * @return a HashMap used to create all the tables by the DatabaseWrapper.
     * Tables are hard-coded into the method.
     */
    public static HashMap<String, TableFields> getMainTablesHashMap() {
        HashMap<String, TableFields> tables = new HashMap<>();
        tables.put(CommandFields.TABLE_NAME, CommandFields.getTableFields());
        tables.put(AliasFields.TABLE_NAME, AliasFields.getTableFields());
        tables.put(UserFields.TABLE_NAME, UserFields.getTableFields());
        tables.put(SchedulerFields.TABLE_NAME, SchedulerFields.getTableFields());
        tables.put(FilterFields.TABLE_NAME, FilterFields.getTableFields());
        tables.put(FilterGroupFields.TABLE_NAME, FilterGroupFields.getTableFields());
        return tables;
    }

    public static HashMap<String, TableFields> getQuoteTablesHashMap() {
        HashMap<String, TableFields> tables = new HashMap<>();
        tables.put(QuoteFields.TABLE_NAME, QuoteFields.getTableFields());
        return tables;<commit_msg>Commented out filter tables for the time being<commit_after>package com.github.otbproject.otbproject.database;

import com.github.otbproject.otbproject.commands.AliasFields;
import com.github.otbproject.otbproject.commands.CommandFields;
import com.github.otbproject.otbproject.commands.scheduler.SchedulerFields;
import com.github.otbproject.otbproject.filters.FilterFields;
import com.github.otbproject.otbproject.filters.FilterGroupFields;
import com.github.otbproject.otbproject.quotes.QuoteFields;
import com.github.otbproject.otbproject.users.UserFields;

import java.util.HashMap;

public class DatabaseHelper {
    /**
     * @return a HashMap used to create all the tables by the DatabaseWrapper.
     * Tables are hard-coded into the method.
     */
    public static HashMap<String, TableFields> getMainTablesHashMap() {
        HashMap<String, TableFields> tables = new HashMap<>();
        tables.put(CommandFields.TABLE_NAME, CommandFields.getTableFields());
        tables.put(AliasFields.TABLE_NAME, AliasFields.getTableFields());
        tables.put(UserFields.TABLE_NAME, UserFields.getTableFields());
        tables.put(SchedulerFields.TABLE_NAME, SchedulerFields.getTableFields());
        //tables.put(FilterFields.TABLE_NAME, FilterFields.getTableFields());
        //tables.put(FilterGroupFields.TABLE_NAME, FilterGroupFields.getTableFields());
        return tables;
    }

    public static HashMap<String, TableFields> getQuoteTablesHashMap() {
        HashMap<String, TableFields> tables = new HashMap<>();
        tables.put(QuoteFields.TABLE_NAME, QuoteFields.getTableFields());
        return tables;
{'fraction_non_alphanumeric': 0.10183172927662217, 'fraction_numerical': 0.0, 'mean_word_length': 4.692579505300353, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '141808', 'n_tokens_mistral': 895, 'n_tokens_neox': 891, 'n_words': 160}