<commit_before>/* $Id$ */
/*
**  SOFTBOT v4.5
**  LB_STD.C
**  2000.04 By KJB
*/
/* *************************************************************** */
#include "auto_config.h"
#include "softbot.h"

#include  <stdio.h>
#include  <stdlib.h>
#include  <string.h>
#include  <ctype.h>
#include  "old_softbot.h"
#if   defined(FREEBSD)
#	include  <sys/time.h>
#elif defined(LINUX)
#	include <sys/time.h>
#	include <time.h>
#elif defined(SOLARIS)
#	include  <sys/time.h>
#elif defined(AIX5)
#	include  <sys/time.h>
#else
#	error undefined platform
#endif

#include  <stdarg.h>

#include  "lb_std.h"

/*
               CHAR
*/
/* *************************************************************** */
TBOOL  STDisWhiteChar(char Ch)
{
	if ( Ch == ' ' || Ch == '\t' || Ch == '\n' || Ch == '\r' )
		return 1;
	else
		return 0;
}


/*
               STRING
*/
/* *************************************************************** */
TDWORD	STDhash(const char *pszData)
{
	TDWORD g, h = 0;

	while ( *pszData )<commit_msg>minor: cleaning include macro<commit_after>/* $Id$ */
/*
**  SOFTBOT v4.5
**  LB_STD.C
**  2000.04 By KJB
*/
/* *************************************************************** */
#include "auto_config.h"
#include "softbot.h"

#include  <stdio.h>
#include  <stdlib.h>
#include  <string.h>
#include  <ctype.h>
#include  "old_softbot.h"
#include  <sys/time.h>
#if defined(LINUX) || defined(CYGWIN)
#  include <sys/time.h>
#endif

#include  <stdarg.h>

#include  "lb_std.h"

/*
               CHAR
*/
/* *************************************************************** */
TBOOL  STDisWhiteChar(char Ch)
{
	if ( Ch == ' ' || Ch == '\t' || Ch == '\n' || Ch == '\r' )
		return 1;
	else
		return 0;
}


/*
               STRING
*/
/* *************************************************************** */
TDWORD	STDhash(const char *pszData)
{
	TDWORD g, h = 0;

	while ( *pszData )
{'fraction_non_alphanumeric': 0.36276083467094705, 'fraction_numerical': 0.012306046013911182, 'mean_word_length': 3.5498783454987834, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '7299602', 'n_tokens_mistral': 727, 'n_tokens_neox': 681, 'n_words': 142}