<commit_before>// $Id$
//
// Copyright (c) 2001-2008 <NAME> and Rational Discovery LLC
//
//  @@ All Rights Reserved @@
//  This file is part of the RDKit.
//  The contents are covered by the terms of the BSD license
//  which is included in the file license.txt, found at the root
//  of the RDKit source tree.
//
#include <iostream>
#include <RDBoost/Exceptions.h>
#include "ExplicitBitVect.h"
#include <RDGeneral/StreamOps.h>
#include "base64.h"
#include <sstream>
#include <limits>
#ifdef WIN32
#include <ios>
#endif
#include <boost/cstdint.hpp>

ExplicitBitVect::ExplicitBitVect(unsigned int size, bool bitsSet)
{
  d_size=0;dp_bits = 0;d_numOnBits=0;
  _initForSize(size);
  if (bitsSet) {
    dp_bits->set(); // set all bits to 1
    //dp_bits.resize(size, true);
    d_numOnBits = size;
  }
}
ExplicitBitVect::ExplicitBitVect(const std::string &s)
{
  d_size=0;dp_bits = 0;d_numOnBits=0;
  initFromText(s.c_str(),s.length());<commit_msg>explicit bitvect with all ones updated<commit_after>// $Id$
//
// Copyright (c) 2001-2008 <NAME> and Rational Discovery LLC
//
//  @@ All Rights Reserved @@
//  This file is part of the RDKit.
//  The contents are covered by the terms of the BSD license
//  which is included in the file license.txt, found at the root
//  of the RDKit source tree.
//
#include <iostream>
#include <RDBoost/Exceptions.h>
#include "ExplicitBitVect.h"
#include <RDGeneral/StreamOps.h>
#include "base64.h"
#include <sstream>
#include <limits>
#ifdef WIN32
#include <ios>
#endif
#include <boost/cstdint.hpp>

ExplicitBitVect::ExplicitBitVect(unsigned int size, bool bitsSet)
{
  d_size=0;dp_bits = 0;d_numOnBits=0;
  _initForSize(size);
  if (bitsSet) {
    dp_bits->set(); // set all bits to 1
    d_numOnBits = size;
  }
}
ExplicitBitVect::ExplicitBitVect(const std::string &s)
{
  d_size=0;dp_bits = 0;d_numOnBits=0;
  initFromText(s.c_str(),s.length());
{'fraction_non_alphanumeric': 0.13981924508240298, 'fraction_numerical': 0.020202020202020204, 'mean_word_length': 4.184573002754821, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '2214888', 'n_tokens_mistral': 738, 'n_tokens_neox': 703, 'n_words': 190}