<commit_before>static const char version[] = "$Id$";

/*
 * factory.c
 *
 * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
 * See the COPYING file for the terms of usage and distribution.
 */

#include <sd/factory.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sd/malloc.h>
#include <sd/hash.h>

struct __sd_factory
{
    char*			fac_name;
    const sd_factory_ops_t*	fac_ops;
    sd_hash_t*			fac_hash;
};

/* FIXME: unsafe hand made polymorphism ... */
typedef struct {
    char* pr_name;
} sd_factory_product_t;

/*******************************************************************************/
extern sd_factory_t* sd_factory_new(const char* a_name,
				    const sd_factory_ops_t* a_ops)
{
    sd_factory_t* this;
    
    if (!a_name || !a_ops)
	return NULL;<commit_msg>removed useless unistd.h<commit_after>static const char version[] = "$Id$";

/*
 * factory.c
 *
 * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
 * See the COPYING file for the terms of usage and distribution.
 */

#include <sd/factory.h>
#include <stdlib.h>
#include <string.h>
#include <sd/malloc.h>
#include <sd/hash.h>

struct __sd_factory
{
    char*			fac_name;
    const sd_factory_ops_t*	fac_ops;
    sd_hash_t*			fac_hash;
};

/* FIXME: unsafe hand made polymorphism ... */
typedef struct {
    char* pr_name;
} sd_factory_product_t;

/*******************************************************************************/
extern sd_factory_t* sd_factory_new(const char* a_name,
				    const sd_factory_ops_t* a_ops)
{
    sd_factory_t* this;
    
    if (!a_name || !a_ops)
	return NULL;
{'fraction_non_alphanumeric': 0.21171446003660768, 'fraction_numerical': 0.009762050030506406, 'mean_word_length': 4.015290519877676, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4179231', 'n_tokens_mistral': 609, 'n_tokens_neox': 564, 'n_words': 139}