<commit_before>package com.akiba.cserver.store;

import java.io.File;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;

import com.akiba.util.ByteBufferFactory;
import junit.framework.TestCase;

import com.akiba.cserver.CServerConstants;
import com.akiba.cserver.FieldDef;
import com.akiba.cserver.FieldType;
import com.akiba.cserver.RowData;
import com.akiba.cserver.RowDef;
import com.akiba.cserver.RowDefCache;
import com.akiba.cserver.CServerUtil;
import com.persistit.Key;
import com.persistit.Persistit;

public class PersistitStoreTest extends TestCase implements CServerConstants {

	private final static File DATA_PATH = new File("/tmp/data");

	private final static RowDef ROW_DEF0 = RowDef.createRowDef(1234,
			new FieldDef[] { new FieldDef("t1", FieldType.INT),
					new FieldDef("t2", FieldType.INT),
					new FieldDef("t3", FieldType.INT) }, "test",
			"test_group_table", new int[] { 0 });

	//
	// Highly abbreviate "COI" structure.
	//
	private final static RowDef ROW_DEF_C = RowDef.createRowDef(100,
			new FieldDef[] { new FieldDef("customer_id", FieldType.INT),
					new FieldDef("customer_x", FieldType.VARCHAR, 100) },
			"customers", "coi", new int[] { 0 });

	private final static RowDef ROW_DEF_O = RowDef.createRowDef(101,
			new FieldDef[] { new FieldDef("order_id", FieldType.INT),
					new FieldDef("date", FieldType.INT),
					new FieldDef("description", FieldType.VARCHAR, 100) },
			"orders", "coi", new int[] { 0 }, 100, new int[] { 1 });

	private final static RowDef ROW_DEF_I = RowDef.createRowDef(102,
			new FieldDef[] { new FieldDef("item_id", FieldType.INT),<commit_msg>Fix missing ByteBufferFactory in PersistitStoreTest<commit_after>package com.akiba.cserver.store;

import java.io.File;
import java.nio.ByteBuffer;

import junit.framework.TestCase;

import com.akiba.cserver.CServerConstants;
import com.akiba.cserver.CServerUtil;
import com.akiba.cserver.FieldDef;
import com.akiba.cserver.FieldType;
import com.akiba.cserver.RowData;
import com.akiba.cserver.RowDef;
import com.akiba.cserver.RowDefCache;
import com.akiba.util.ByteBufferFactory;
import com.persistit.Key;
import com.persistit.Persistit;

public class PersistitStoreTest extends TestCase implements CServerConstants {

	private final static File DATA_PATH = new File("/tmp/data");

	private final static RowDef ROW_DEF0 = RowDef.createRowDef(1234,
			new FieldDef[] { new FieldDef("t1", FieldType.INT),
					new FieldDef("t2", FieldType.INT),
					new FieldDef("t3", FieldType.INT) }, "test",
			"test_group_table", new int[] { 0 });

	//
	// Highly abbreviate "COI" structure.
	//
	private final static RowDef ROW_DEF_C = RowDef.createRowDef(100,
			new FieldDef[] { new FieldDef("customer_id", FieldType.INT),
					new FieldDef("customer_x", FieldType.VARCHAR, 100) },
			"customers", "coi", new int[] { 0 });

	private final static RowDef ROW_DEF_O = RowDef.createRowDef(101,
			new FieldDef[] { new FieldDef("order_id", FieldType.INT),
					new FieldDef("date", FieldType.INT),
					new FieldDef("description", FieldType.VARCHAR, 100) },
			"orders", "coi", new int[] { 0 }, 100, new int[] { 1 });

	private final static RowDef ROW_DEF_I = RowDef.createRowDef(102,
			new FieldDef[] { new FieldDef("item_id", FieldType.INT),
{'fraction_non_alphanumeric': 0.1302740991684632, 'fraction_numerical': 0.018478595626732368, 'mean_word_length': 4.894736842105263, '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': '1918720', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1089, 'n_words': 257}