<commit_before>#include <stdio.h>
#include <string.h>
#include <errno.h>

#include <dbus/dbus.h>

#include <telepathy-glib/interfaces.h>
#include <telepathy-glib/channel.h>
#include <telepathy-glib/connection.h>
#include <telepathy-glib/interfaces.h>
#include <mission-control/mcd-plugin.h>
#include <mission-control/mcd-dispatcher.h>
#include <mission-control/mcd-dispatcher-context.h>
#include <gconf/gconf-client.h>

#include "mcd-policy-filter-plugin.h"

#define PLUGIN_NAME "policy-filter"
#define MAX_CALLS   16
#define ALLOW       TRUE
#define REJECT      FALSE

#define EMIT(f, fmt, args...) do {                               \
        f("[%s] %s: "fmt, PLUGIN_NAME, __FUNCTION__, ## args);   \
    } while(0)

#define ERROR(fmt, args...)   EMIT(g_message, "E: "fmt, ## args)
#define WARNING(fmt, args...) EMIT(g_message, "W: "fmt, ## args)
#ifdef ALLOW_INFO_LOGGING
#define INFO(fmt, args...)    EMIT(g_message, "I: "fmt, ## args)
#else
#define INFO(fmt, args...)    do { } while (0)
#endif

#define DBUS_ERROR(err) (dbus_error_is_set(&(err)) ? (err).message : "unknown")
<commit_msg>Don't include gconf-client.h in MC policy filter.<commit_after>#include <stdio.h>
#include <string.h>
#include <errno.h>

#include <dbus/dbus.h>

#include <telepathy-glib/interfaces.h>
#include <telepathy-glib/channel.h>
#include <telepathy-glib/connection.h>
#include <telepathy-glib/interfaces.h>
#include <mission-control/mcd-plugin.h>
#include <mission-control/mcd-dispatcher.h>
#include <mission-control/mcd-dispatcher-context.h>

#include "mcd-policy-filter-plugin.h"

#define PLUGIN_NAME "policy-filter"
#define MAX_CALLS   16
#define ALLOW       TRUE
#define REJECT      FALSE

#define EMIT(f, fmt, args...) do {                               \
        f("[%s] %s: "fmt, PLUGIN_NAME, __FUNCTION__, ## args);   \
    } while(0)

#define ERROR(fmt, args...)   EMIT(g_message, "E: "fmt, ## args)
#define WARNING(fmt, args...) EMIT(g_message, "W: "fmt, ## args)
#ifdef ALLOW_INFO_LOGGING
#define INFO(fmt, args...)    EMIT(g_message, "I: "fmt, ## args)
#else
#define INFO(fmt, args...)    do { } while (0)
#endif

#define DBUS_ERROR(err) (dbus_error_is_set(&(err)) ? (err).message : "unknown")

{'fraction_non_alphanumeric': 0.1760948905109489, 'fraction_numerical': 0.0036496350364963502, 'mean_word_length': 3.798687089715536, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, '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': '6887384', 'n_tokens_mistral': 840, 'n_tokens_neox': 836, 'n_words': 176}