<commit_before>#include "common.h"

/* RE CHAIN */

ss_re_chain_t* ss_re_chain_create() {
    return NULL;
}

int ss_re_chain_destroy(ss_re_chain_t* re_chain) {
    return 0;
}
 
int ss_re_chain_add(ss_re_chain_t* re_chain, char* re) {
    return 0;
}
 
int ss_re_chain_remove_index(ss_re_chain_t* re_chain, int index) {
    return 0;
}

int ss_re_chain_remove_re(ss_re_chain_t* re_chain, char* re) {
    return 0;
}

int ss_re_chain_match(ss_re_chain_t* re_chain, char* input) {
    return 0;
}

/* PCAP CHAIN */

ss_pcap_match_t* ss_pcap_match_create() {
    return NULL;
}

int ss_pcap_match_destroy(ss_pcap_match_t* pcap_match) {
    return 0;
}

ss_pcap_chain_t* ss_pcap_chain_create() {
    return NULL;
}

int ss_pcap_chain_destroy(ss_pcap_chain_t* pcap_chain) {
    return 0;
}

int ss_pcap_chain_add(ss_pcap_chain_t* pcap_match, char* filter) {
    return 0;
}

int ss_pcap_chain_remove_index(ss_pcap_chain_t* pcap_match, int index) {
    return 0;
}

int ss_pcap_chain_remove_filter(ss_pcap_chain_t* pcap_match, char* filter) {
    return 0;
}

int ss_pcap_match_init(ss_pcap_match_t* pcap_match, struct timeval* time, uint8_t* input, unsigned int length) {
    pcap_match->pcap_header.ts.tv_sec  = time->tv_sec;
    pcap_match->pcap_header.ts.tv_usec = time->tv_usec;
    pcap_match->pcap_header.caplen     = length;
    pcap_match->pcap_header.len        = length;
    pcap_match->packet                 = input;
    return 0;
}

int ss_pcap_match(ss_pcap_chain_t* pcap_chain, ss_pcap_match_t* pcap_match) {
    return 0;
}

/* CIDR TABLE */

ss_cidr_table_t* ss_cidr_table_create() {
    return NULL;
}

int ss_cidr_table_destroy(ss_cidr_table_t* cidr_table) {
    return 0;
}

int ss_cidr_table_add(ss_cidr_table_t* cidr_table, char* cidr) {
    return 0;
}

int ss_cidr_table_remove(ss_cidr_table_t* cidr_table, char* cidr) {
    return 0;
}<commit_msg>common.c: add stub functions for all data structures<commit_after>#include <json-c/json.h>

#include "common.h"

/* RE CHAIN */

ss_re_chain_t* ss_re_chain_create() {
    return NULL;
}

int ss_re_chain_destroy(ss_re_chain_t* re_chain) {
    return 0;
}

ss_re_entry_t* ss_re_entry_create(json_object* re_json) {
    return NULL;
}

int ss_re_entry_destroy(ss_re_entry_t* re_entry) {
    return 0;
}
 
int ss_re_chain_add(ss_re_chain_t* re_chain, ss_re_entry_t* re_entry) {
    return 0;
}
 
int ss_re_chain_remove_index(ss_re_chain_t* re_chain, int index) {
    return 0;
}

int ss_re_chain_remove_re(ss_re_chain_t* re_chain, char* re) {
    return 0;
}

int ss_re_chain_match(ss_re_chain_t* re_chain, char* input) {
    return 0;
}

/* PCAP CHAIN */

ss_pcap_match_t* ss_pcap_match_create() {
    return NULL;
}

int ss_pcap_match_destroy(ss_pcap_match_t* pcap_match) {
    return 0;
}

ss_pcap_chain_t* ss_pcap_chain_create() {
    return NULL;
}

int ss_pcap_chain_destroy(ss_pcap_chain_t* pcap_chain) {
    return 0;
}

ss_pcap_entry_t* ss_pcap_entry_create(json_object* pcap_json) {
    return NULL;
}

int ss_pcap_entry_destroy(ss_pcap_entry_t* pcap_entry) {
    return 0;
}

int ss_pcap_chain_add(ss_pcap_chain_t* pcap_match, ss_pcap_entry_t* pcap_entry) {
    return 0;
}

int ss_pcap_chain_remove_index(ss_pcap_chain_t* pcap_match, int index) {
    return 0;
}

int ss_pcap_chain_remove_filter(ss_pcap_chain_t* pcap_match, char* filter) {
    return 0;
}

int ss_pcap_match_init(ss_pcap_match_t* pcap_match, struct timeval* time, uint8_t* input, unsigned int length) {
    pcap_match->pcap_header.ts.tv_sec  = time->tv_sec;
    pcap_match->pcap_header.ts.tv_usec = time->tv_usec;
    pcap_match->pcap_header.caplen     = length;
    pcap_match->pcap_header.len        = length;
    pcap_match->packet                 = input;
    return 0;
}

int ss_pcap_match(ss_pcap_chain_t* pcap_chain, ss_pcap_match_t* pcap_match) {
    return 0;
}

/* CIDR TABLE */

ss_cidr_table_t* ss_cidr_table_create(json_object* cidr_table_json) {
    return NULL;
}

int ss_cidr_table_destroy(ss_cidr_table_t* cidr_table) {
    return 0;
}

ss_cidr_entry_t* ss_cidr_entry_create(json_object* cidr_json) {
    return NULL;
}

int ss_cidr_entry_destroy(ss_cidr_entry_t* cidr_entry) {
    return 0;
}

int ss_cidr_table_add(ss_cidr_table_t* cidr_table, ss_cidr_entry_t* cidr_entry) {
    return 0;
}

int ss_cidr_table_remove(ss_cidr_table_t* cidr_table, char* cidr) {
    return 0;
}
{'fraction_non_alphanumeric': 0.09681881051175657, 'fraction_numerical': 0.008068234209313048, 'mean_word_length': 4.464735516372796, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 18, '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': '2520554', 'n_tokens_mistral': 1947, 'n_tokens_neox': 1931, 'n_words': 314}