<commit_before>#ifndef LIBMSG_SHARE_H
#define LIBMSG_SHARE_H

#include <stdlib.h>


struct msg_share_proc {

};


struct msg_share_file {

};


struct msg_share_set {
    struct msg_share_proc *procs;
    struct msg_share_file *files;
    size_t proc_shares;
    size_t file_shares;
};


int msg_share_proc(struct msg_share_set *set);
int msg_share_file(struct msg_share_set *set);<commit_msg>share types<commit_after>#ifndef LIBMSG_SHARE_H
#define LIBMSG_SHARE_H

#include <stdlib.h>

#include <libutil/hashmap.h>


/*
 * only processes have epid
 */
struct msg_share_id {
    int id;
    int type;
    int epid;
    int index;
};


struct msg_share_proc {
    int epid;
};


struct msg_share_file {
    char *path;
};


/*
 * map id to resources
 */
struct msg_share_set {
    struct ep_map          id_map;
    struct msg_share_proc *procs;
    struct msg_share_file *files;
    size_t proc_shares;
    size_t file_shares;
};


int msg_share_proc(struct msg_share_set *set);
int msg_share_file(struct msg_share_set *set);
{'fraction_non_alphanumeric': 0.087890625, 'fraction_numerical': 0.0, 'mean_word_length': 3.8578199052132702, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '7007357', 'n_tokens_mistral': 399, 'n_tokens_neox': 383, 'n_words': 87}