<commit_before>package edu.ucsc.dbtune.core;

import edu.ucsc.dbtune.spi.Environment;
import org.hamcrest.CoreMatchers;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Condition;
import org.junit.If;
import org.junit.Ignore;
import org.junit.Test;

import java.io.File;
import java.util.Properties;

import static edu.ucsc.dbtune.core.JdbcConnectionManager.DATABASE;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.DRIVER;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.PASSWORD;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.URL;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.USERNAME;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.makeDatabaseConnectionManager;
import static edu.ucsc.dbtune.spi.EnvironmentProperties.FILE;
import static org.junit.Assert.assertThat;

/**
 * @author <EMAIL> (<NAME>)
 */<commit_msg>basic Index Extractor Functional Test. It shows how to use the Environment object to create a database connection. For some reason I am getting syntax errors when executing a workload (found in pgtests folder). I will ask Ivo about this. In the meantime, Jeff or Ivo could see this test as a reference when writing functional tests.<commit_after>package edu.ucsc.dbtune.core;

import edu.ucsc.dbtune.spi.Environment;
import org.hamcrest.CoreMatchers;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Condition;
import org.junit.If;
import org.junit.Ignore;
import org.junit.Test;

import java.io.File;
import java.util.Properties;

import static edu.ucsc.dbtune.core.JdbcConnectionManager.DATABASE;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.DRIVER;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.PASSWORD;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.URL;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.USERNAME;
import static edu.ucsc.dbtune.core.JdbcConnectionManager.makeDatabaseConnectionManager;
import static org.junit.Assert.assertThat;

/**
 * @author <EMAIL> (<NAME>)
 */
{'fraction_non_alphanumeric': 0.09653827401267674, 'fraction_numerical': 0.0, 'mean_word_length': 5.885906040268456, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2651229', 'n_tokens_mistral': 665, 'n_tokens_neox': 658, 'n_words': 151}