<commit_before>/**
 * written by <NAME>
 * header for write_read.cpp
 */
#define BUF 255

#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "time.h"
#include "stddef.h"

#ifdef XCOMPILE
// when Cross-Compiling
#include "xcompile/headers/mysql.h"
#else
// when compiling locally on RasPi
#include <mysql/mysql.h>
#endif

bool check_error(MYSQL *mysql);
void connect(MYSQL *mysql);
void close_session(MYSQL *mysql);
bool write_in_db(MYSQL *mysql,const char *db, const char *tabelle, const char *value);
bool get_latest_value_bool(MYSQL *mysql, const char *db, const char *tabelle, bool *succeeded);
double get_latest_value_double(MYSQL *mysql, const char *db, const char *tabelle, bool *succeeded);
int get_latest_value_int(MYSQL *mysql, const char *db, const char *table, bool *succeeded);
<commit_msg>fix names of parameters in functional prototypes<commit_after>/**
 * written by <NAME>
 * header for write_read.cpp
 */
#define BUF 255

#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "time.h"
#include "stddef.h"

#ifdef XCOMPILE
// when Cross-Compiling
#include "xcompile/headers/mysql.h"
#else
// when compiling locally on RasPi
#include <mysql/mysql.h>
#endif

bool check_error(MYSQL *mysql);
void connect(MYSQL *mysql);
void close_session(MYSQL *mysql);
bool write_in_db(MYSQL *mysql,const char *db, const char *table, const char *value);
bool get_latest_value_bool(MYSQL *mysql, const char *db, const char *table, bool *succeeded);
double get_latest_value_double(MYSQL *mysql, const char *db, const char *table, bool *succeeded);
int get_latest_value_int(MYSQL *mysql, const char *db, const char *table, bool *succeeded);

{'fraction_non_alphanumeric': 0.12202208018593841, 'fraction_numerical': 0.003486345148169669, 'mean_word_length': 4.83728813559322, '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': '4614837', 'n_tokens_mistral': 615, 'n_tokens_neox': 618, 'n_words': 182}