<commit_before>package com.github.otbproject.otbproject.command.parser;

import com.github.otbproject.otbproject.App;
import com.github.otbproject.otbproject.bot.Bot;
import com.github.otbproject.otbproject.bot.IBot;
import com.github.otbproject.otbproject.channel.Channel;
import com.github.otbproject.otbproject.config.Configs;
import com.github.otbproject.otbproject.config.GeneralConfig;
import com.github.otbproject.otbproject.config.ServiceName;
import com.github.otbproject.otbproject.database.DatabaseWrapper;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.pircbotx.exception.IrcException;

import java.io.IOException;
import java.util.HashMap;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;

public class ParserTest {
    private static final String TS = "[[";  // Term Start
    private static final String TE = "]]";  // Term End
    private static final String MD = ".";   // Modifier Delimiter
    private static final String ES = "{{";  // Embedded String Start
    private static final String EE = "}}";  // Embedded String End

    private static final String USER = "nthportal";
    private static final int COUNT = 1;
    private static final String CHANNEL = "the_lone_devil";

    @BeforeClass
    public static void init() {
        Bot.setBot(new IBot() {
            @Override
            public boolean isConnected(String channelName) {
                return false;
            }

            @Override
            public boolean isConnected() {
                return false;
            }

            @Override
            public HashMap<String, Channel> getChannels() {
                return null;
            }

            @Override
            public boolean isChannel(String channelName) {
                return false;
            }

            @Override
            public String getUserName() {
                return "test_user_name";
            }

            @Override
            public DatabaseWrapper getBotDB() {
                return null;
            }

            @Override
            public boolean isUserMod(String channel, String user) {
                return false;
            }

            @Override
            public boolean isUserSubscriber(String channel, String user) {
                return false;
            }

            @Override<commit_msg>Fixed ParserTest to return a ConcurrentHashMap instead of HashMap in its instance of IBot in the @BeforeClass<commit_after>package com.github.otbproject.otbproject.command.parser;

import com.github.otbproject.otbproject.App;
import com.github.otbproject.otbproject.bot.Bot;
import com.github.otbproject.otbproject.bot.IBot;
import com.github.otbproject.otbproject.channel.Channel;
import com.github.otbproject.otbproject.config.Configs;
import com.github.otbproject.otbproject.config.GeneralConfig;
import com.github.otbproject.otbproject.config.ServiceName;
import com.github.otbproject.otbproject.database.DatabaseWrapper;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.pircbotx.exception.IrcException;

import java.io.IOException;
import java.util.concurrent.ConcurrentHashMap;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;

public class ParserTest {
    private static final String TS = "[[";  // Term Start
    private static final String TE = "]]";  // Term End
    private static final String MD = ".";   // Modifier Delimiter
    private static final String ES = "{{";  // Embedded String Start
    private static final String EE = "}}";  // Embedded String End

    private static final String USER = "nthportal";
    private static final int COUNT = 1;
    private static final String CHANNEL = "the_lone_devil";

    @BeforeClass
    public static void init() {
        Bot.setBot(new IBot() {
            @Override
            public boolean isConnected(String channelName) {
                return false;
            }

            @Override
            public boolean isConnected() {
                return false;
            }

            @Override
            public ConcurrentHashMap<String, Channel> getChannels() {
                return null;
            }

            @Override
            public boolean isChannel(String channelName) {
                return false;
            }

            @Override
            public String getUserName() {
                return "test_user_name";
            }

            @Override
            public DatabaseWrapper getBotDB() {
                return null;
            }

            @Override
            public boolean isUserMod(String channel, String user) {
                return false;
            }

            @Override
            public boolean isUserSubscriber(String channel, String user) {
                return false;
            }

            @Override
{'fraction_non_alphanumeric': 0.08061575855782864, 'fraction_numerical': 0.00040510431436094796, 'mean_word_length': 2.1858064516129034, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4233060', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1269, 'n_words': 333}