<commit_before>#include "e.h"
#include "e_mod_main.h"

#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
# include <err.h>
# include <sys/types.h>
# include <sys/sysctl.h>
# include <sys/param.h>
# include <sys/sensors.h>

static Eina_Bool _battery_sysctl_battery_update_poll(void *data EINA_UNUSED);
static int       _battery_sysctl_battery_update();

extern Eina_List *device_batteries;
extern Eina_List *device_ac_adapters;
extern double init_time;

static Ac_Adapter *ac = NULL;
static Battery *bat = NULL;

int
_battery_sysctl_start(void)
{
# if defined(__OpenBSD__) || defined(__NetBSD__)
   int mib[] = {CTL_HW, HW_SENSORS, 0, 0, 0};
   int devn;
   struct sensordev snsrdev;
   size_t sdlen = sizeof(struct sensordev);
# elif defined(__FreeBSD__) || defined(__DragonFly__)
   size_t len;
# endif

# if defined(__OpenBSD__) || defined(__NetBSD__)
   for (devn = 0;; devn++) {
        mib[2] = devn;<commit_msg>FreeBSD: fix broken build.<commit_after>#include "e.h"
#include "e_mod_main.h"

#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
# include <err.h>
# include <sys/types.h>
# include <sys/sysctl.h>

#if defined(__OpenBSD_) || defined(__NetBSD__)
# include <sys/param.h>
# include <sys/sensors.h>
#endif

static Eina_Bool _battery_sysctl_battery_update_poll(void *data EINA_UNUSED);
static int       _battery_sysctl_battery_update();

extern Eina_List *device_batteries;
extern Eina_List *device_ac_adapters;
extern double init_time;

static Ac_Adapter *ac = NULL;
static Battery *bat = NULL;

int
_battery_sysctl_start(void)
{
# if defined(__OpenBSD__) || defined(__NetBSD__)
   int mib[] = {CTL_HW, HW_SENSORS, 0, 0, 0};
   int devn;
   struct sensordev snsrdev;
   size_t sdlen = sizeof(struct sensordev);
# elif defined(__FreeBSD__) || defined(__DragonFly__)
   size_t len;
# endif

# if defined(__OpenBSD__) || defined(__NetBSD__)
   for (devn = 0;; devn++) {
        mib[2] = devn;
{'fraction_non_alphanumeric': 0.12712712712712712, 'fraction_numerical': 0.005005005005005005, 'mean_word_length': 5.386581469648562, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4638423', 'n_tokens_mistral': 775, 'n_tokens_neox': 728, 'n_words': 166}