<commit_before>/*
 * wmcore/symlist.c
 *
 * Copyright (c) <NAME> 1999-2003. 
 * See the included file LICENSE for details.
 */

#include "common.h"
#include "symlist.h"


bool add_to_symlist(WSymlist **symlist, void *symbol)
{
	WSymlist *node;
	
	if(symbol==NULL)
		return FALSE;
	
	node=ALLOC(WSymlist);
	
	if(node==NULL)
		return FALSE;
		
	node->symbol=symbol;
	
	LINK_ITEM(*symlist, node, next, prev);
	
	return TRUE;
}


void remove_from_symlist(WSymlist **symlist, void *symbol)
{
	WSymlist *node=*symlist;<commit_msg>trunk: changeset 262<commit_after>/*
 * wmcore/symlist.c
 *
 * Copyright (c) <NAME> 1999-2003. 
 * See the included file LICENSE for details.
 */

#include "common.h"
#include "symlist.h"


bool add_to_symlist(WSymlist **symlist, void *symbol)
{
	WSymlist *node;
	
	if(symbol==NULL)
		return FALSE;
	
	node=ALLOC(WSymlist);
	
	if(node==NULL)
		return FALSE;
		
	node->symbol=symbol;
	
	LINK_ITEM_FIRST(*symlist, node, next, prev);
	
	return TRUE;
}


void remove_from_symlist(WSymlist **symlist, void *symbol)
{
	WSymlist *node=*symlist;
{'fraction_non_alphanumeric': 0.1423185673892554, 'fraction_numerical': 0.017907634307257305, 'mean_word_length': 4.336683417085427, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2710013', 'n_tokens_mistral': 454, 'n_tokens_neox': 400, 'n_words': 91}