<commit_before>// tmpstream.h -- Temporary stream object for extracting strings.
// 
// Copyright 1996-2001 <NAME> and <NAME>
// Copyright 2000-2001 KVL.
//
// This file is part of Daisy.
// 
// Daisy is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser Public License as published by
// the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
// 
// Daisy 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 Lesser Public License for more details.
// 
// You should have received a copy of the GNU Lesser Public License
// along with Daisy; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

// 
// I'd use "ostringstream", but it isn't in GCC 2.95.2.

#ifndef TMPSTREAM_H
#define TMPSTREAM_H

#if defined (__BORLANDC__) && __BORLANDC__ < 0x0550
#include <iostream>
#else
#include <ostream>
#endif

class TmpStream
{
  // Content.
  struct Implementation;
  Implementation& impl;
  
  // Use.
public:
  std::ostream& operator () ();
  const char* str ();
  
  // Create and Destroy.
public:
  TmpStream ();
  ~TmpStream ();
};

#endif // TMPSTREAM_H<commit_msg>BCC 5.01 hack<commit_after>// tmpstream.h -- Temporary stream object for extracting strings.
// 
// Copyright 1996-2001 <NAME> and <NAME>
// Copyright 2000-2001 KVL.
//
// This file is part of Daisy.
// 
// Daisy is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser Public License as published by
// the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
// 
// Daisy 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 Lesser Public License for more details.
// 
// You should have received a copy of the GNU Lesser Public License
// along with Daisy; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

// 
// I'd use "ostringstream", but it isn't in GCC 2.95.2.

#ifndef TMPSTREAM_H
#define TMPSTREAM_H

#if defined (__BORLANDC__) && __BORLANDC__ < 0x0550
#include <iostream>
namespace std { typedef ostream ostream }
#else
#include <ostream>
#endif

class TmpStream
{
  // Content.
  struct Implementation;
  Implementation& impl;
  
  // Use.
public:
  std::ostream& operator () ();
  const char* str ();
  
  // Create and Destroy.
public:
  TmpStream ();
  ~TmpStream ();
};

#endif // TMPSTREAM_H
{'fraction_non_alphanumeric': 0.10501453488372094, 'fraction_numerical': 0.030886627906976744, 'mean_word_length': 3.2030534351145037, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '4684966', 'n_tokens_mistral': 910, 'n_tokens_neox': 817, 'n_words': 362}