<commit_before>#ifndef CEREAL_BINARY_ARCHIVE_SET_HPP_
#define CEREAL_BINARY_ARCHIVE_SET_HPP_

#include <cereal/binary_archive/binary_archive.hpp>
#include <set>

namespace cereal
{
  //! Saving for std::set to binary
  template <class K, class H, class KE, class A>
  void save( BinaryOutputArchive & ar, std::set<K, H, KE, A> const & set )
  {
    ar & set.size();

    for( const auto & i : set )
      ar & i;
  }

  //! Loading for std::set to binary
  template <class K, class H, class KE, class A>
  void load( BinaryInputArchive & ar, std::set<K, H, KE, A> & set )
  {
    size_t size;
    ar & size;

    for( size_t i = 0; i < size; ++i )
    {
      K key;

      ar & key;
      set.insert( key );
    }
  }

  //! Saving for std::multiset to binary
  template <class K, class H, class KE, class A>
  void save( BinaryOutputArchive & ar, std::multiset<K, H, KE, A> const & multiset )
  {
    ar & multiset.size();

    for( const auto & i : multiset )
      ar & i;
  }

  //! Loading for std::multiset to binary
  template <class K, class H, class KE, class A>
  void load( BinaryInputArchive & ar, std::multiset<K, H, KE, A> & multiset )
  {
    size_t size;
    ar & size;

    for( size_t i = 0; i < size; ++i )
    {
      K key;

      ar & key;
      multiset.insert( key );
    }
  }
} // namespace cereal
<commit_msg>Fixed template arguments in set<commit_after>#ifndef CEREAL_BINARY_ARCHIVE_SET_HPP_
#define CEREAL_BINARY_ARCHIVE_SET_HPP_

#include <cereal/binary_archive/binary_archive.hpp>
#include <set>

namespace cereal
{
  //! Saving for std::set to binary
  template <class K, class C, class A>
  void save( BinaryOutputArchive & ar, std::set<K, C, A> const & set )
  {
    ar & set.size();

    for( const auto & i : set )
      ar & i;
  }

  //! Loading for std::set to binary
  template <class K, class C, class A>
  void load( BinaryInputArchive & ar, std::set<K, C, A> & set )
  {
    size_t size;
    ar & size;

    for( size_t i = 0; i < size; ++i )
    {
      K key;

      ar & key;
      set.insert( key );
    }
  }

  //! Saving for std::multiset to binary
  template <class K, class C, class A>
  void save( BinaryOutputArchive & ar, std::multiset<K, C, A> const & multiset )
  {
    ar & multiset.size();

    for( const auto & i : multiset )
      ar & i;
  }

  //! Loading for std::multiset to binary
  template <class K, class C, class A>
  void load( BinaryInputArchive & ar, std::multiset<K, C, A> & multiset )
  {
    size_t size;
    ar & size;

    for( size_t i = 0; i < size; ++i )
    {
      K key;

      ar & key;
      multiset.insert( key );
    }
  }
} // namespace cereal

{'fraction_non_alphanumeric': 0.13050075872534142, 'fraction_numerical': 0.0015174506828528073, 'mean_word_length': 2.474308300395257, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 23, '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': '6574766', 'n_tokens_mistral': 1031, 'n_tokens_neox': 952, 'n_words': 308}