<commit_before>/* This creates a shared library that allows Lily to access postgres, using
   libpq. This can be used by any Lily runner. */
#include <string.h>

#include "libpq-fe.h"

#include "lily_core_types.h"
#include "lily_vm.h"

#include "lily_api_alloc.h"
#include "lily_api_msgbuf.h"
#include "lily_api_value.h"
#include "lily_api_vm.h"

#define CID_RESULT cid_table[0]
#define CID_CONN   cid_table[1]

/**
package postgres

This package provides a limited, but usable interface for interacting with a
postgres server.
*/

/**
class Result

The `Result` class provides a wrapper over the result of querying the postgres
database. The class provides a very basic set of methods to allow interaction
with the rows as a `List[String]`.
*/
typedef struct {<commit_msg>Remove core includes from postgres.<commit_after>/* This creates a shared library that allows Lily to access postgres, using
   libpq. This can be used by any Lily runner. */
#include <string.h>

#include "libpq-fe.h"

#include "lily_api_alloc.h"
#include "lily_api_msgbuf.h"
#include "lily_api_value.h"
#include "lily_api_vm.h"

#define CID_RESULT cid_table[0]
#define CID_CONN   cid_table[1]

/**
package postgres

This package provides a limited, but usable interface for interacting with a
postgres server.
*/

/**
class Result

The `Result` class provides a wrapper over the result of querying the postgres
database. The class provides a very basic set of methods to allow interaction
with the rows as a `List[String]`.
*/
typedef struct {
{'fraction_non_alphanumeric': 0.08767303889255108, 'fraction_numerical': 0.0026367831245880024, 'mean_word_length': 4.685393258426966, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5797759', 'n_tokens_mistral': 503, 'n_tokens_neox': 490, 'n_words': 192}