<commit_before>package nl.jacbeekers.testautomation.fitnesse.database;

import nl.jacbeekers.testautomation.fitnesse.supporting.Constants;
import nl.jacbeekers.testautomation.fitnesse.supporting.ResultMessages;
import org.junit.jupiter.api.*;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumingThat;

class BasicQueryTest {
    //Logging
    private Logger logger;
    private String method;
    // FitNesse pages
    private String fitnesseFrontPage="src/test/resources/FitNesseRoot/FrontPage";
    // Testing
    private String result = Constants.OK;

    @BeforeEach
    void setUp() {
    }

    @AfterEach
    void tearDown() {
    }

    @Test
    void testDoTable() {
        setMethod("testDoTable");
        setLogger(Logger.getLogger(getClass().getName() + "-" + getMethod()));
        executeBasicQueryTest();
    }

    @Test
    void testColumnsOk() {
        setMethod("testColumnsOk");
        setLogger(Logger.getLogger(getClass().getName() + "-" + getMethod()));
    }

    @Test
    void testGetResult() {
        setMethod("testGetResult");
        setLogger(Logger.getLogger(getClass().getName() + "-" + getMethod()));
    }

    @Test
    private String executeBasicQueryTest() {
        BasicQuery basicQuery = new BasicQuery();
        basicQuery.setLogLevel(Constants.DEBUG);<commit_msg>Added doTable test case for Oracle<commit_after>package nl.jacbeekers.testautomation.fitnesse.database;

import nl.jacbeekers.testautomation.fitnesse.supporting.Constants;
import nl.jacbeekers.testautomation.fitnesse.supporting.ResultMessages;
import org.junit.jupiter.api.*;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumingThat;

class BasicQueryTest {
    //Logging
    private Logger logger;
    private String method;
    // FitNesse pages
    private String fitnesseFrontPage="src/test/resources/FitNesseRoot/FrontPage";
    // Testing
    private String result = Constants.OK;

    @BeforeEach
    void setUp() {
    }

    @AfterEach
    void tearDown() {
    }

    @Test
    void testDoTable() {
        setMethod("testDoTable");
        setLogger(Logger.getLogger(getClass().getName() + "-" + getMethod()));
        executeBasicQueryTest();
    }

    private String executeBasicQueryTest() {
        BasicQuery basicQuery = new BasicQuery();
        basicQuery.setLogLevel(Constants.DEBUG);
{'fraction_non_alphanumeric': 0.11417462000706964, 'fraction_numerical': 0.0, 'mean_word_length': 3.6317512274959083, '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': '3407563', 'n_tokens_mistral': 861, 'n_tokens_neox': 848, 'n_words': 153}