<commit_before>// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "AutoPacketFactory.h"
#include "AutoPacket.h"
#include "fast_pointer_cast.h"
#include "thread_specific_ptr.h"

template class ObjectPool<AutoPacket>;

AutoPacketFactory::AutoPacketFactory(void):
  ContextMember("AutoPacketFactory"),
  m_parent(GetContext()->GetParentContext()),
  m_wasStopped(false),
  m_packets(AutoPacket::CreateObjectPool(*this, m_outstanding)),
  m_packetCount(0),
  m_packetDurationSum(0),
  m_packetDurationSqSum(0)
{}

AutoPacketFactory::~AutoPacketFactory() {
  // Invalidate the pool and recursively invalidate all parents<commit_msg>Needed for std::sqrt.<commit_after>// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "AutoPacketFactory.h"
#include "AutoPacket.h"
#include "fast_pointer_cast.h"
#include "thread_specific_ptr.h"
#include <cmath>

template class ObjectPool<AutoPacket>;

AutoPacketFactory::AutoPacketFactory(void):
  ContextMember("AutoPacketFactory"),
  m_parent(GetContext()->GetParentContext()),
  m_wasStopped(false),
  m_packets(AutoPacket::CreateObjectPool(*this, m_outstanding)),
  m_packetCount(0),
  m_packetDurationSum(0),
  m_packetDurationSqSum(0)
{}

AutoPacketFactory::~AutoPacketFactory() {
  // Invalidate the pool and recursively invalidate all parents
{'fraction_non_alphanumeric': 0.1258229700073153, 'fraction_numerical': 0.016093635698610095, 'mean_word_length': 7.769230769230769, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '6067149', 'n_tokens_mistral': 453, 'n_tokens_neox': 438, 'n_words': 85}