<commit_before>/* $Id: gobject.c,v 1.1 2004-10-27 15:07:46 espen Exp $ */

#include <glib-object.h>

gpointer g_object_newvv (GType object_type, guint n_parameters,
			 guchar* names[], GValue* values[])
{
  GParameter parameters[n_parameters];
  int i;

  for (i = 0; i < n_parameters; i++) {
    parameters[i].name = names[i];
    g_value_init (&parameters[i].value, G_VALUE_TYPE (values[i]));
    g_value_copy (values[i], &parameters[i].value);
  }

  return g_object_newv (object_type, n_parameters, &parameters);
}


guint size_of_gvalue ()
{
  return sizeof (GValue);
}
<commit_msg>Code moved from callback.c<commit_after>/* $Id: gobject.c,v 1.2 2004-10-31 11:35:59 espen Exp $ */

#include <glib-object.h>

gpointer g_object_newvv (GType object_type, guint n_parameters,
			 guchar* names[], GValue* values[])
{
  GParameter parameters[n_parameters];
  int i;

  for (i = 0; i < n_parameters; i++) {
    parameters[i].name = names[i];
    g_value_init (&parameters[i].value, G_VALUE_TYPE (values[i]));
    g_value_copy (values[i], &parameters[i].value);
  }

  return g_object_newv (object_type, n_parameters, &parameters);
}


guint size_of_gvalue ()
{
  return sizeof (GValue);
}


GEnumValue*
g_enum_class_values (GEnumClass *class, guint *n_values)
{
  *n_values = class->n_values;
  return class->values;
}

GFlagsValue*
g_flags_class_values (GFlagsClass *class, guint *n_values)
{
  *n_values = class->n_values;
  return class->values;
}

{'fraction_non_alphanumeric': 0.1481736733287388, 'fraction_numerical': 0.02343211578221916, 'mean_word_length': 4.627906976744186, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6112888', 'n_tokens_mistral': 589, 'n_tokens_neox': 555, 'n_words': 121}