<commit_before>#ifndef FILE_UTILS_H
#define FILE_UTILS_H

#include <string.h>


#define PATHLEN 32

#define PROC "/proc/"
#define STATUS "/proc/%s/status"

#define COMM "/proc/%s/comm"
#define COMM_LEN strlen(COMM)

#define FD "/proc/%s/fd"

#define UID "Uid"
#define PTE "VmPTE"
#define RSS "VmRSS"
#define VMEM "VmSize"
#define THRS "Threads"

char *proc_parser(char *file, char *field);

#endif
<commit_msg>definition for parse_stat<commit_after>#ifndef FILE_UTILS_H
#define FILE_UTILS_H

#include <string.h>


#define PATHLEN 32

#define PROC "/proc/"
#define STATUS "/proc/%s/status"

#define STAT "/proc/%s/stat"
#define STAT_BUFFER 4096

#define COMM "/proc/%s/comm"
#define COMM_LEN strlen(COMM)

#define FD "/proc/%s/fd"

#define UID "Uid"
#define PTE "VmPTE"

#define THRS 20
#define VMEM 23
#define RSS  24

char *proc_parser(char *file, char *field);

char *parse_stat(char *pid, int field);

#endif

{'fraction_non_alphanumeric': 0.14473684210526316, 'fraction_numerical': 0.015350877192982455, 'mean_word_length': 4.967320261437909, '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': '198003', 'n_tokens_mistral': 392, 'n_tokens_neox': 365, 'n_words': 103}