<commit_before>/*
#!perl -l
use Config;
my $prg = "$0.out";
my $cmd = "$Config{cc} -Wall -D$^O -o $prg $0; ./$prg; rm $prg";
print $cmd; system $cmd;
__END__
*/

#include <stdio.h>
#include <stdlib.h>

typedef struct {
    const char *name;
    unsigned int size;
} sizeof_info_t;

#define SIZEOF_INFO(v) \
    {#v, sizeof(v)}

#ifdef solaris

#include <sys/kstat.h>
#include <sys/sysinfo.h>
#include <procfs.h>
#include <sys/proc.h>
#include <sys/user.h>

static sizeof_info_t sizeof_info[] = {
    /* kstat */
    SIZEOF_INFO(kstat_named_t),
    SIZEOF_INFO(vminfo_t),
    SIZEOF_INFO(cpu_stat_t),
    SIZEOF_INFO(cpu_sys_stats_t),
    SIZEOF_INFO(cpu_vm_stats_t),
    SIZEOF_INFO(cpu_vminfo_t),
    SIZEOF_INFO(kstat_io_t),
    /* procfs */
    SIZEOF_INFO(psinfo_t),
    SIZEOF_INFO(prusage_t),
    SIZEOF_INFO(prcred_t),
    SIZEOF_INFO(pstatus_t),
    SIZEOF_INFO(struct proc),
    SIZEOF_INFO(struct user),
    {NULL, 0}
};

#endif

#ifdef hpux

#include <sys/pstat.h>
#include <mntent.h>
#include <sys/vfs.h>
#include <sys/mib.h>

static sizeof_info_t sizeof_info[] = {
    SIZEOF_INFO(struct pst_static),
    SIZEOF_INFO(struct pst_status),
    SIZEOF_INFO(struct pst_dynamic),<commit_msg>rm solaris checks<commit_after>/*
#!perl -l
use Config;
my $prg = "$0.out";
my $cmd = "$Config{cc} -Wall -D$^O -o $prg $0; ./$prg; rm $prg";
print $cmd; system $cmd;
__END__
*/

#include <stdio.h>
#include <stdlib.h>

typedef struct {
    const char *name;
    unsigned int size;
} sizeof_info_t;

#define SIZEOF_INFO(v) \
    {#v, sizeof(v)}

#ifdef solaris

#include <sys/kstat.h>
#include <sys/sysinfo.h>
#include <procfs.h>
#include <sys/proc.h>
#include <sys/user.h>

static sizeof_info_t sizeof_info[] = {
    /* kstat */
    SIZEOF_INFO(kstat_named_t),
    SIZEOF_INFO(vminfo_t),
    SIZEOF_INFO(cpu_stat_t),
    SIZEOF_INFO(cpu_vminfo_t),
    SIZEOF_INFO(kstat_io_t),
    /* procfs */
    SIZEOF_INFO(psinfo_t),
    SIZEOF_INFO(prusage_t),
    SIZEOF_INFO(prcred_t),
    SIZEOF_INFO(pstatus_t),
    SIZEOF_INFO(struct proc),
    SIZEOF_INFO(struct user),
    {NULL, 0}
};

#endif

#ifdef hpux

#include <sys/pstat.h>
#include <mntent.h>
#include <sys/vfs.h>
#include <sys/mib.h>

static sizeof_info_t sizeof_info[] = {
    SIZEOF_INFO(struct pst_static),
    SIZEOF_INFO(struct pst_status),
    SIZEOF_INFO(struct pst_dynamic),
{'fraction_non_alphanumeric': 0.15345049292756108, 'fraction_numerical': 0.002571795970852979, 'mean_word_length': 3.9554140127388533, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '1397598', 'n_tokens_mistral': 1044, 'n_tokens_neox': 997, 'n_words': 189}