<commit_before>
#ifndef __DEBUG_H__
#define __DEBUG_H_

#include "config.h"

#include <glib.h>

#include <gibber/gibber-xmpp-stanza.h>

#ifdef ENABLE_DEBUG

typedef enum
{
  DEBUG_PRESENCE       = 1 << 0,
  DEBUG_GROUPS         = 1 << 1,
  DEBUG_CONTACTS       = 1 << 2,
  DEBUG_DISCO          = 1 << 3,
  DEBUG_PROPERTIES     = 1 << 4,
  DEBUG_ROOMLIST       = 1 << 5,
  DEBUG_MEDIA          = 1 << 6,
  DEBUG_MUC            = 1 << 7,
  DEBUG_MUC_CONNECTION = 1 << 8,
  DEBUG_CONNECTION     = 1 << 9,
  DEBUG_IM             = 1 << 10,
  DEBUG_SI_BYTESTREAM_MGR = 1 << 11,
  DEBUG_NET            = 1 << 12,
  DEBUG_SELF           = 1 << 13,
  DEBUG_TUBES          = 1 << 14,
  DEBUG_XCM            = 1 << 15,
  DEBUG_DISCOVERY      = 1 << 16,
  DEBUG_OLPC_ACTIVITY  = 1 << 17,
  DEBUG_FT             = 1 << 18,
} DebugFlags;

void debug_set_flags_from_env ();
void debug_set_flags (DebugFlags flags);
gboolean debug_flag_is_set (DebugFlags flag);
void debug (DebugFlags flag, const gchar *format, ...)
    G_GNUC_PRINTF (2, 3);
<commit_msg>fix debug_set_flags_from_env prototype<commit_after>
#ifndef __DEBUG_H__
#define __DEBUG_H_

#include "config.h"

#include <glib.h>

#include <gibber/gibber-xmpp-stanza.h>

#ifdef ENABLE_DEBUG

typedef enum
{
  DEBUG_PRESENCE       = 1 << 0,
  DEBUG_GROUPS         = 1 << 1,
  DEBUG_CONTACTS       = 1 << 2,
  DEBUG_DISCO          = 1 << 3,
  DEBUG_PROPERTIES     = 1 << 4,
  DEBUG_ROOMLIST       = 1 << 5,
  DEBUG_MEDIA          = 1 << 6,
  DEBUG_MUC            = 1 << 7,
  DEBUG_MUC_CONNECTION = 1 << 8,
  DEBUG_CONNECTION     = 1 << 9,
  DEBUG_IM             = 1 << 10,
  DEBUG_SI_BYTESTREAM_MGR = 1 << 11,
  DEBUG_NET            = 1 << 12,
  DEBUG_SELF           = 1 << 13,
  DEBUG_TUBES          = 1 << 14,
  DEBUG_XCM            = 1 << 15,
  DEBUG_DISCOVERY      = 1 << 16,
  DEBUG_OLPC_ACTIVITY  = 1 << 17,
  DEBUG_FT             = 1 << 18,
} DebugFlags;

void debug_set_flags_from_env (void);
void debug_set_flags (DebugFlags flags);
gboolean debug_flag_is_set (DebugFlags flag);
void debug (DebugFlags flag, const gchar *format, ...)
    G_GNUC_PRINTF (2, 3);

{'fraction_non_alphanumeric': 0.11474632527264106, 'fraction_numerical': 0.046467520151730675, 'mean_word_length': 2.2213740458015265, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 7, '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': '2297508', 'n_tokens_mistral': 913, 'n_tokens_neox': 808, 'n_words': 189}