<commit_before>#ifndef _SHARED_PTR_HASH_H
#define _SHARED_PTR_HASH_H
#include <hash_set>
#include <memory>

/// <summary>
/// A simple hash class that allows the use of a shared pointer in a hash_set
/// </summary>
template<class T>
class SharedPtrHash
{
public:
  const size_t bucket_size = 1;
  const size_t min_buckets = 8;

  size_t operator()(const std::shared_ptr<T>& _Key) const {
    return (size_t)_Key.get();
  }

  bool operator()(const std::shared_ptr<T>& lh, const std::shared_ptr<T>& rh) const {
    return lh == rh;
  }
};

#endif<commit_msg>const members initialized at class scope must be static<commit_after>#ifndef _SHARED_PTR_HASH_H
#define _SHARED_PTR_HASH_H
#include <memory>

/// <summary>
/// A simple hash class that allows the use of a shared pointer in a hash_set
/// </summary>
template<class T>
class SharedPtrHash
{
public:
  static const size_t bucket_size = 1;
  static const size_t min_buckets = 8;

  size_t operator()(const std::shared_ptr<T>& _Key) const {
    return (size_t)_Key.get();
  }

  bool operator()(const std::shared_ptr<T>& lh, const std::shared_ptr<T>& rh) const {
    return lh == rh;
  }
};

#endif
{'fraction_non_alphanumeric': 0.12434782608695652, 'fraction_numerical': 0.0034782608695652175, 'mean_word_length': 4.3534883720930235, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '5473813', 'n_tokens_mistral': 425, 'n_tokens_neox': 412, 'n_words': 121}