<commit_before>#ifndef _PWS_DB_
#define _PWS_DB_

#include <uuid/uuid.h>

struct db_header {
    short version;
    struct field *fields;
};

/* N.B
   there is duplication in this data structure
   the fields llist is _all_ fields
   this is to make the computation of the db hmac easier
   */
struct record {
    uuid_t uuid;
    char *title;
    char *password;
    char *username;
    char *url;
    struct field *fields;
    struct record *next;
    struct record *prev;
};

struct field {
    unsigned int len;
    unsigned char type;
    unsigned char *data;
    struct field *next;
    struct field *prev;
};

struct db {
    struct db_header header;
    struct record *records;
};

void
print_db(struct db *db);
<commit_msg>removed deprecated comment<commit_after>#ifndef _PWS_DB_
#define _PWS_DB_

#include <uuid/uuid.h>

struct db_header {
    short version;
    struct field *fields;
};

struct record {
    uuid_t uuid;
    char *title;
    char *password;
    char *username;
    char *url;
    struct field *fields;
    struct record *next;
    struct record *prev;
};

struct field {
    unsigned int len;
    unsigned char type;
    unsigned char *data;
    struct field *next;
    struct field *prev;
};

struct db {
    struct db_header header;
    struct record *records;
};

void
print_db(struct db *db);

{'fraction_non_alphanumeric': 0.08672699849170437, 'fraction_numerical': 0.0, 'mean_word_length': 2.9144542772861355, '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': '6756170', 'n_tokens_mistral': 431, 'n_tokens_neox': 431, 'n_words': 153}