<commit_before>#ifndef __ACTION_HASHJOIN_H__
#define __ACTION_HASHJOIN_H__

/*
 * Copyright 2017, International Business Machines
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <stdint.h>
#include <libdonut.h>

#define HASHJOIN_ACTION_TYPE 0x0022

#define TABLE1_SIZE 256
#define TABLE2_SIZE 512
#define TABLE3_SIZE (TABLE1_SIZE * TABLE2_SIZE)
#define HT_SIZE (TABLE1_SIZE * 16) /* size of hashtable */
#define HT_MULTI TABLE1_SIZE /* multihash entries depends on table1 */

typedef char hashkey_t[64];
typedef char hashdata_t[256];

/* FIXME Make tables entry size a multiple of 64 bytes */
typedef struct table1_s {
	hashkey_t name;         /* 64 bytes */
	uint32_t age;           /*  4 bytes */
	uint8_t reserved[60];   /* 60 bytes */
} table1_t;

typedef struct table2_s {
	hashkey_t name;         /* 64 bytes */
	hashkey_t animal;       /* 64 bytes */
} table2_t;

typedef struct table3_s {
	hashkey_t animal;       /* 64 bytes */
	hashkey_t name;         /* 64 bytes */
	uint32_t age;           /*  4 bytes */
	uint8_t reserved[60];   /* 60 bytes */
} table3_t;

typedef struct entry_s {<commit_msg>Adding a constant for the desired alignments<commit_after>#ifndef __ACTION_HASHJOIN_H__
#define __ACTION_HASHJOIN_H__

/*
 * Copyright 2017, International Business Machines
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <stdint.h>
#include <libdonut.h>

#define HASHJOIN_ACTION_TYPE 0x0022

#define TABLE1_SIZE 256
#define TABLE2_SIZE 512
#define TABLE3_SIZE (TABLE1_SIZE * TABLE2_SIZE)
#define HT_SIZE (TABLE1_SIZE * 16) /* size of hashtable */
#define HT_MULTI TABLE1_SIZE /* multihash entries depends on table1 */

typedef char hashkey_t[64];
typedef char hashdata_t[256];

/* FIXME Make tables entry size a multiple of 64 bytes */
#define HASHJOIN_ALIGNMENT 128

typedef struct table1_s {
	hashkey_t name;         /* 64 bytes */
	uint32_t age;           /*  4 bytes */
	uint8_t reserved[60];   /* 60 bytes */
} table1_t;

typedef struct table2_s {
	hashkey_t name;         /* 64 bytes */
	hashkey_t animal;       /* 64 bytes */
} table2_t;

typedef struct table3_s {
	hashkey_t animal;       /* 64 bytes */
	hashkey_t name;         /* 64 bytes */
	uint32_t age;           /*  4 bytes */
	uint8_t reserved[60];   /* 60 bytes */
} table3_t;

typedef struct entry_s {
{'fraction_non_alphanumeric': 0.08696960577791153, 'fraction_numerical': 0.041829671983147756, 'mean_word_length': 3.414342629482072, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2869889', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1023, 'n_words': 381}