<commit_before>//
// LocalDatabuf.h: a wrapper for the Databuf class which is found either in
//  in vtdata or libMini.
//

#ifndef LocalDatabuf_H
#define LocalDatabuf_H

#define USE_LIBMINI_DATABUF 0

#include "vtdata/MiniDatabuf.h"

#if USE_LIBMINI_DATABUF

#include <mini/database.h> // part of libMini

#ifdef _MSC_VER
  #if _MSC_VER >= 1400 // vc8
	  #pragma message( "Adding link with libMini-vc8.lib" )
	  #pragma comment( lib, "libMini-vc8.lib" )
  #else // vc71
	  #pragma message( "Adding link with libMini-vc7.lib" )
	  #pragma comment( lib, "libMini-vc7.lib" )
  #endif
  #pragma comment( lib, "glu32.lib" )
#endif

// Directly subclass from libMini
class vtMiniDatabuf: public databuf
{
public:
	// A useful method to set the extents (in local CRS) and the corners
	//  (in Geo WGS84) at the same time.
	bool SetBounds(const vtProjection &proj, const DRECT &extents);

   //! get rgb[a] color
   void getrgb(const unsigned int i,const unsigned int j,const unsigned int k, float *value);
   void getrgba(const unsigned int i,const unsigned int j,const unsigned int k, float *value);
};

#else	// not USE_LIBMINI_DATABUF

// Simply use the implementation in vtdata
class vtMiniDatabuf: public MiniDatabuf {};

#endif	// USE_LIBMINI_DATABUF

#endif // LocalDatabuf_H
<commit_msg>enabled USE_LIBMINI_DATABUF again<commit_after>//
// LocalDatabuf.h: a wrapper for the Databuf class which is found either in
//  in vtdata or libMini.
//

#ifndef LocalDatabuf_H
#define LocalDatabuf_H

#define USE_LIBMINI_DATABUF 1

#include "vtdata/MiniDatabuf.h"

#if USE_LIBMINI_DATABUF

#include <mini/database.h> // part of libMini

#ifdef _MSC_VER
  #if _MSC_VER >= 1400 // vc8
	  #pragma message( "Adding link with libMinid-vc8.lib" )
	  #pragma comment( lib, "libMinid-vc8.lib" )
  #else // vc71
	  #pragma message( "Adding link with libMini-vc7.lib" )
	  #pragma comment( lib, "libMini-vc7.lib" )
  #endif
  #pragma comment( lib, "glu32.lib" )
#endif

// Directly subclass from libMini
class vtMiniDatabuf: public databuf
{
public:
	// A useful method to set the extents (in local CRS) and the corners
	//  (in Geo WGS84) at the same time.
	bool SetBounds(const vtProjection &proj, const DRECT &extents);

   //! get rgb[a] color
   void getrgb(const unsigned int i,const unsigned int j,const unsigned int k, float *value);
   void getrgba(const unsigned int i,const unsigned int j,const unsigned int k, float *value);
};

#else	// not USE_LIBMINI_DATABUF

// Simply use the implementation in vtdata
class vtMiniDatabuf: public MiniDatabuf {};

#endif	// USE_LIBMINI_DATABUF

#endif // LocalDatabuf_H

{'fraction_non_alphanumeric': 0.10307692307692308, 'fraction_numerical': 0.012307692307692308, 'mean_word_length': 3.8983050847457625, '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': '3087202', 'n_tokens_mistral': 1010, 'n_tokens_neox': 965, 'n_words': 300}