<commit_before>/*
    Copyright (C) 1997, 1998, 1999 by <NAME>
	(Digital Dawn Graphics Inc)
  
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.
  
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.
  
    You should have received a copy of the GNU Library General Public
    License along with this library; if not, write to the Free
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef _ddg_Class_
#define _ddg_Class_

#include <math.h>
//#include <iostream.h> 

#ifdef WIN32
// Windows defines
#pragma warning (disable:4244)	// Disable bogus conversion warnings. 
#pragma warning (disable:4305)  // VC++ 5.0 version of above warning. 
#include "strstrea.h"
#include "stdlib.h"			// For exit()
#define WEXP	__declspec(dllexport)
#define WFEXP	__cdecl

#else
// Linux defines
//#include <strstream.h> 
#include <stdlib.h>

#define WEXP
#define WFEXP<commit_msg>removed the "export" statement from the declarations, as ddg is linked statically to all cs apps.<commit_after>/*
    Copyright (C) 1997, 1998, 1999 by <NAME>
	(Digital Dawn Graphics Inc)
  
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.
  
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.
  
    You should have received a copy of the GNU Library General Public
    License along with this library; if not, write to the Free
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef _ddg_Class_
#define _ddg_Class_

#include <math.h>
//#include <iostream.h> 

#ifdef WIN32
// Windows defines
#pragma warning (disable:4244)	// Disable bogus conversion warnings. 
#pragma warning (disable:4305)  // VC++ 5.0 version of above warning. 
#include "strstrea.h"
#include "stdlib.h"			// For exit()

//I undefined the following defines, because they cause every application, 
//that gets linked against the cspace lib to export all the ddg symbols.
//you probably only need these, if you intend to make the ddg stuff
//into its own dll.

//#define WEXP	__declspec(dllexport) //Only needed for a standalone version...
//#define WFEXP	__cdecl               //Only needed for a standalone version...  
#define WEXP	
#define WFEXP	

#else
// Linux defines
//#include <strstream.h> 
#include <stdlib.h>

#define WEXP
#define WFEXP
{'fraction_non_alphanumeric': 0.07435064935064935, 'fraction_numerical': 0.02142857142857143, 'mean_word_length': 3.504385964912281, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6112906', 'n_tokens_mistral': 938, 'n_tokens_neox': 868, 'n_words': 424}