<commit_before>#include "extensions.h"

#include <telepathy-glib/connection.h>
#include <telepathy-glib/proxy-subclass.h>

static void _example_ext_register_dbus_glib_marshallers (void);

/* include auto-generated stubs for client-specific code */
#include "_gen/signals-marshal.h"
#include "_gen/cli-connection-body.h"
#include "_gen/register-dbus-glib-marshallers-body.h"

/* I know, I know, init functions considered harmful. However, we need it. */
void
example_cli_init (void)
{
  _example_ext_register_dbus_glib_marshallers ();

  tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_CONNECTION,
      example_cli_connection_add_signals);
}<commit_msg>example_cli_init: only run the registration code once<commit_after>#include "extensions.h"

#include <telepathy-glib/connection.h>
#include <telepathy-glib/proxy-subclass.h>

static void _example_ext_register_dbus_glib_marshallers (void);

/* include auto-generated stubs for client-specific code */
#include "_gen/signals-marshal.h"
#include "_gen/cli-connection-body.h"
#include "_gen/register-dbus-glib-marshallers-body.h"

static gpointer
example_cli_once (gpointer data)
{
  _example_ext_register_dbus_glib_marshallers ();

  tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_CONNECTION,
      example_cli_connection_add_signals);

  return NULL;
}

void
example_cli_init (void)
{
  static GOnce once = G_ONCE_INIT;

  g_once (&once, example_cli_once, NULL);
}
{'fraction_non_alphanumeric': 0.10323033707865169, 'fraction_numerical': 0.0, 'mean_word_length': 6.196969696969697, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5698178', 'n_tokens_mistral': 509, 'n_tokens_neox': 501, 'n_words': 91}