<commit_before>package com.orientechnologies.orient.core.sql.executor;

import com.orientechnologies.orient.core.db.ODatabase;
import com.orientechnologies.orient.core.db.ODatabaseType;
import com.orientechnologies.orient.core.db.OrientDB;
import com.orientechnologies.orient.core.db.OrientDBConfig;
import org.junit.BeforeClass;

/**
 * Created by olena.kolesnyk on 28/07/2017.
 */
public class CreateMemoryDatabaseFixture {

    protected static ODatabase database;
    private static final String PATH = "memory";
    private static final String DB_NAME = "test_database";
    private static final String USER = "admin";
    private static final String PASSWORD = "<PASSWORD>";

    @BeforeClass
    public static void beforeClass() {
        OrientDB factory = new OrientDB(PATH, OrientDBConfig.defaultConfig());
        factory.create(DB_NAME, ODatabaseType.MEMORY);
        database = factory.open(DB_NAME, USER, PASSWORD);
    }

}<commit_msg>Added @AfterClass method to drop database<commit_after>package com.orientechnologies.orient.core.sql.executor;

import com.orientechnologies.orient.core.db.ODatabase;
import com.orientechnologies.orient.core.db.ODatabaseType;
import com.orientechnologies.orient.core.db.OrientDB;
import com.orientechnologies.orient.core.db.OrientDBConfig;
import org.junit.AfterClass;
import org.junit.BeforeClass;

/**
 * Created by olena.kolesnyk on 28/07/2017.
 */
public class CreateMemoryDatabaseFixture {

    protected static ODatabase database;
    private static final String PATH = "memory";
    private static final String DB_NAME = "test_database";
    private static final String USER = "admin";
    private static final String PASSWORD = "<PASSWORD>";

    @BeforeClass
    public static void setUp() {
        OrientDB factory = new OrientDB(PATH, OrientDBConfig.defaultConfig());
        factory.create(DB_NAME, ODatabaseType.MEMORY);
        database = factory.open(DB_NAME, USER, PASSWORD);
    }

    @AfterClass
    public static void tearDown() {
        database.close();
    }

}
{'fraction_non_alphanumeric': 0.09774066797642436, 'fraction_numerical': 0.007858546168958742, 'mean_word_length': 4.196428571428571, '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': '22979', 'n_tokens_mistral': 623, 'n_tokens_neox': 602, 'n_words': 141}