<commit_before>#pragma once

#include <pthread.h>
#include <glb-lib/output.h>

#include <kmq.h>
#include <knd_shard.h>

struct kndLearnerService;

struct kndLearnerOptions
{
    char *config_file;
    struct addrinfo *address;
};

struct kndLearnerService
{
    struct kmqKnode *knode;
    struct kmqEndPoint *entry_point;

    struct kndShard *shard;

    char name[KND_NAME_SIZE];
    size_t name_size;

    char path[KND_NAME_SIZE];
    size_t path_size;

    char schema_path[KND_NAME_SIZE];
    size_t schema_path_size;

    char delivery_addr[KND_NAME_SIZE];
    size_t delivery_addr_size;

    size_t max_users;

    const struct kndLearnerOptions *opts;

    /*********************  public interface  *********************************/
    int (*start)(struct kndLearnerService *self);
    void (*del)(struct kndLearnerService *self);
};

int kndLearnerService_new(struct kndLearnerService **service, const struct kndLearnerOptions *opts);
<commit_msg>Comment out unused fields in kndLearnerService<commit_after>#pragma once

#include <pthread.h>
#include <glb-lib/output.h>

#include <kmq.h>
#include <knd_shard.h>

struct kndLearnerService;

struct kndLearnerOptions
{
    char *config_file;
    struct addrinfo *address;
};

struct kndLearnerService
{
    struct kmqKnode *knode;
    struct kmqEndPoint *entry_point;

    struct kndShard *shard;

    char name[KND_NAME_SIZE];
    size_t name_size;

//    char path[KND_NAME_SIZE];
//    size_t path_size;
//
//    char schema_path[KND_NAME_SIZE];
//    size_t schema_path_size;
//
//    char delivery_addr[KND_NAME_SIZE];
//    size_t delivery_addr_size;

//    size_t max_users;

    const struct kndLearnerOptions *opts;

    /*********************  public interface  *********************************/
    int (*start)(struct kndLearnerService *self);
    void (*del)(struct kndLearnerService *self);
};

int kndLearnerService_new(struct kndLearnerService **service, const struct kndLearnerOptions *opts);

{'fraction_non_alphanumeric': 0.1461187214611872, 'fraction_numerical': 0.0, 'mean_word_length': 4.358695652173913, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5369480', 'n_tokens_mistral': 706, 'n_tokens_neox': 670, 'n_words': 145}