<commit_before>/*
 * Copyright 2010 2011 2012 <NAME> <<EMAIL>>
 * Copyright 2011 2012 2013 <NAME> <<EMAIL>>
 * See COPYING for terms of redistribution.
 */

#include <jive/vsdg/valuetype.h>
#include <jive/vsdg/valuetype-private.h>
#include <jive/vsdg/graph-private.h>
#include <jive/vsdg/basetype-private.h>

#include <jive/vsdg/node.h>
#include <jive/vsdg/graph.h>

#include <jive/util/list.h>

static const jive_value_type jive_value_type_singleton = {
	.base = {.class_ = &JIVE_VALUE_TYPE}
};

const jive_type_class JIVE_VALUE_TYPE = {
	.parent = &JIVE_TYPE,
	.name = "X",
	.fini = jive_value_type_fini_, /* override */
	.copy = jive_value_type_copy_, /* override */
	.get_label = jive_type_get_label_, /* inherit */
	.create_input = jive_value_type_create_input_, /* override */
	.create_output = jive_value_type_create_output_, /* override */
	.create_gate = jive_value_type_create_gate_, /* override */
	.equals = jive_type_equals_, /* inherit */
};

const jive_input_class JIVE_VALUE_INPUT = {
	.parent = &JIVE_INPUT,
	.fini = jive_input_fini_, /* inherit */
	.get_label = jive_input_get_label_, /* inherit */
	.get_type = jive_value_input_get_type_, /* override */
};

const jive_output_class JIVE_VALUE_OUTPUT = {
	.parent = &JIVE_OUTPUT,
	.fini = jive_output_fini_, /* inherit */
	.get_label = jive_output_get_label_, /* inherit */
	.get_type = jive_value_output_get_type_, /* override */
};

const jive_gate_class JIVE_VALUE_GATE = {
	.parent = &JIVE_GATE,
	.fini = jive_gate_fini_, /* inherit */
	.get_label = jive_gate_get_label_, /* inherit */
	.get_type = jive_value_gate_get_type_, /* override */
};

void
jive_value_type_fini_(jive_type * self_)
{
	jive_value_type * self = (jive_value_type *) self_;
	jive_type_fini_( &self->base ) ;<commit_msg>vsdg: order members of value type according to their declaration<commit_after>/*
 * Copyright 2010 2011 2012 <NAME> <<EMAIL>>
 * Copyright 2011 2012 2013 <NAME> <<EMAIL>>
 * See COPYING for terms of redistribution.
 */

#include <jive/vsdg/valuetype.h>
#include <jive/vsdg/valuetype-private.h>
#include <jive/vsdg/graph-private.h>
#include <jive/vsdg/basetype-private.h>

#include <jive/vsdg/node.h>
#include <jive/vsdg/graph.h>

#include <jive/util/list.h>

static const jive_value_type jive_value_type_singleton = {
	.base = {.class_ = &JIVE_VALUE_TYPE}
};

const jive_type_class JIVE_VALUE_TYPE = {
	.parent = &JIVE_TYPE,
	.name = "X",
	.fini = jive_value_type_fini_, /* override */
	.get_label = jive_type_get_label_, /* inherit */
	.create_input = jive_value_type_create_input_, /* override */
	.create_output = jive_value_type_create_output_, /* override */
	.create_gate = jive_value_type_create_gate_, /* override */
	.equals = jive_type_equals_, /* inherit */
	.copy = jive_value_type_copy_, /* override */
};

const jive_input_class JIVE_VALUE_INPUT = {
	.parent = &JIVE_INPUT,
	.fini = jive_input_fini_, /* inherit */
	.get_label = jive_input_get_label_, /* inherit */
	.get_type = jive_value_input_get_type_, /* override */
};

const jive_output_class JIVE_VALUE_OUTPUT = {
	.parent = &JIVE_OUTPUT,
	.fini = jive_output_fini_, /* inherit */
	.get_label = jive_output_get_label_, /* inherit */
	.get_type = jive_value_output_get_type_, /* override */
};

const jive_gate_class JIVE_VALUE_GATE = {
	.parent = &JIVE_GATE,
	.fini = jive_gate_fini_, /* inherit */
	.get_label = jive_gate_get_label_, /* inherit */
	.get_type = jive_value_gate_get_type_, /* override */
};

void
jive_value_type_fini_(jive_type * self_)
{
	jive_value_type * self = (jive_value_type *) self_;
	jive_type_fini_( &self->base ) ;
{'fraction_non_alphanumeric': 0.13670673748951637, 'fraction_numerical': 0.013419066256639642, 'mean_word_length': 4.521604938271605, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 31, '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': '5176685', 'n_tokens_mistral': 1467, 'n_tokens_neox': 1410, 'n_words': 247}