<commit_before>#ifndef _DS_REQUEST_H_
#define _DS_REQUEST_H_

#include "dupin.h"
#include "httpd.h"

#include <glib.h>

typedef struct request_type_t RequestType;
struct request_type_t
{
  gchar *		request;
  HttpdRequest		request_type;
  DSHttpStatusCode 	(*func)	(DSHttpdClient *	client,
				 GList *		path,
				 GList *		arguments);
};

extern RequestType request_types[];

DSHttpStatusCode
		request_global	(DSHttpdClient *	client,
				 GList *		path,
				 GList *		arguments);

gboolean
		request_get_changes_comet_database
				(DSHttpdClient * client,
                           	 gchar *buf,
                           	 gsize count,
                           	 gsize offset, 
                           	 gsize *bytes_read, 
                           	 GError **       error);

gboolean
		request_get_changes_comet_linkbase
				(DSHttpdClient * client,
                           	 gchar *buf,
                           	 gsize count,
                           	 gsize offset, 
                           	 gsize *bytes_read, 
                           	 GError **       error);

G_BEGIN_DECLS

typedef struct dupin_keyvalue_t    dupin_keyvalue_t;

struct dupin_keyvalue_t
{
  gchar *       key;
  gchar *       value;
};

dupin_keyvalue_t * dupin_keyvalue_new         (gchar *        key,
                                         gchar *        value) G_GNUC_WARN_UNUSED_RESULT;

void            dupin_keyvalue_destroy     (dupin_keyvalue_t * data);

G_END_DECLS

#endif
/* EOF */
<commit_msg>Forgot to commit external dep to http status info<commit_after>#ifndef _DS_REQUEST_H_
#define _DS_REQUEST_H_

#include "dupin.h"
#include "httpd.h"

#include <glib.h>

typedef struct request_type_t RequestType;
struct request_type_t
{
  gchar *		request;
  HttpdRequest		request_type;
  DSHttpStatusCode 	(*func)	(DSHttpdClient *	client,
				 GList *		path,
				 GList *		arguments);
};

extern RequestType request_types[];
extern DSHttpStatus DSHttpStatusList[];

DSHttpStatusCode
		request_global	(DSHttpdClient *	client,
				 GList *		path,
				 GList *		arguments);

gboolean
		request_get_changes_comet_database
				(DSHttpdClient * client,
                           	 gchar *buf,
                           	 gsize count,
                           	 gsize offset, 
                           	 gsize *bytes_read, 
                           	 GError **       error);

gboolean
		request_get_changes_comet_linkbase
				(DSHttpdClient * client,
                           	 gchar *buf,
                           	 gsize count,
                           	 gsize offset, 
                           	 gsize *bytes_read, 
                           	 GError **       error);

G_BEGIN_DECLS

typedef struct dupin_keyvalue_t    dupin_keyvalue_t;

struct dupin_keyvalue_t
{
  gchar *       key;
  gchar *       value;
};

dupin_keyvalue_t * dupin_keyvalue_new         (gchar *        key,
                                         gchar *        value) G_GNUC_WARN_UNUSED_RESULT;

void            dupin_keyvalue_destroy     (dupin_keyvalue_t * data);

G_END_DECLS

#endif
/* EOF */

{'fraction_non_alphanumeric': 0.06310679611650485, 'fraction_numerical': 0.0, 'mean_word_length': 1.6194915254237288, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3667392', 'n_tokens_mistral': 1042, 'n_tokens_neox': 976, 'n_words': 195}