<commit_before>// jprdebug.h
//-----------------------------------------------------------------------------

#if !defined(jprdebug_h)
#define jprdebug_h


#if defined(JPRDEBUG)

#define DBGMSG(x) ::OutputDebugString(x)

inline void
DBGDUMP(const char* mem, size_t len)
{
   const int wrapsize = 20;
   char hexbuf[3];
   int wrap = 0;
   char ascbuf[wrapsize+1];
   int ix;

   DBGMSG("* DEBUGDUMP BEGIN *\n");

   for (ix=0; ix<len; ix++)
   {
      sprintf(hexbuf, "%02.2X", mem[ix]);
      DBGMSG(hexbuf);
      if (ix % 2) DBGMSG(" ");
      if (mem[ix] != 0)
         ascbuf[wrap] = mem[ix];
      else
         ascbuf[wrap] = '.';
      wrap++;
      if (wrap == wrapsize)
      {
         ascbuf[wrap] = 0;
         DBGMSG(" *");
         DBGMSG(ascbuf);
         DBGMSG("*\n");
         wrap = 0;
      }
   }
   if (wrap == 0)
   {
      DBGMSG("* DEBUGDUMP END *\n");
      return;
   }
   for (ix=wrap; ix<wrapsize; ix++)
   {
      DBGMSG("  ");
      if (ix % 2) DBGMSG(" ");

      ascbuf[ix]=' ';
   }
   ascbuf[wrapsize]=0;
   DBGMSG(" *");
   DBGMSG(ascbuf);
   DBGMSG("*\n");
   
   DBGMSG("* DEBUGDUMP END *\n");
}   

#else
#   define DBGMSG(x)
#   define DEBUGDUMP(mem, len)
#endif

#endif // jprdebug_h

//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End:
<commit_msg>cleaned up warning when compiled with JPRDEBUG<commit_after>// jprdebug.h
//-----------------------------------------------------------------------------

#if !defined(jprdebug_h)
#define jprdebug_h


#if defined(JPRDEBUG)

#define DBGMSG(x) ::OutputDebugString(x)

inline void
DBGDUMP(const char* mem, size_t len)
{
   const int wrapsize = 20;
   char hexbuf[3];
   int wrap = 0;
   char ascbuf[wrapsize+1];
   size_t ix;

   DBGMSG("* DEBUGDUMP BEGIN *\n");

   for (ix=0; ix<len; ix++)
   {
      sprintf(hexbuf, "%02.2X", mem[ix]);
      DBGMSG(hexbuf);
      if (ix % 2) DBGMSG(" ");
      if (mem[ix] != 0)
         ascbuf[wrap] = mem[ix];
      else
         ascbuf[wrap] = '.';
      wrap++;
      if (wrap == wrapsize)
      {
         ascbuf[wrap] = 0;
         DBGMSG(" *");
         DBGMSG(ascbuf);
         DBGMSG("*\n");
         wrap = 0;
      }
   }
   if (wrap == 0)
   {
      DBGMSG("* DEBUGDUMP END *\n");
      return;
   }
   for (ix=wrap; ix<wrapsize; ix++)
   {
      DBGMSG("  ");
      if (ix % 2) DBGMSG(" ");

      ascbuf[ix]=' ';
   }
   ascbuf[wrapsize]=0;
   DBGMSG(" *");
   DBGMSG(ascbuf);
   DBGMSG("*\n");
   
   DBGMSG("* DEBUGDUMP END *\n");
}   

#else
#   define DBGMSG(x)
#   define DEBUGDUMP(mem, len)
#endif

#endif // jprdebug_h

//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End:

{'fraction_non_alphanumeric': 0.2772133526850508, 'fraction_numerical': 0.011611030478955007, 'mean_word_length': 1.5040871934604905, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '6685055', 'n_tokens_mistral': 1046, 'n_tokens_neox': 1001, 'n_words': 216}