<commit_before>/* bzflag
* Copyright (c) 1993 - 2008 <NAME>
*
* This package is free software;  you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/

// interface header
#include "ShotManager.h"
#include "TimeKeeper.h"

//
// ShotManager
//

/** initialize the singleton */
template <>
ShotManager* Singleton<ShotManager>::_instance = (ShotManager*)0;


ShotManager::ShotManager()
{

}
ShotManager::~ShotManager()
{

}

int ShotManager::newShot ( FiringInfo *info, int param )
{
  return 0;
}

void ShotManager::update ( double dt )
{

}

void ShotManager::addEventHandler ( ShotEventCallbacks *cb )
{
  callbacks.push_back(cb);
}

void ShotManager::removeEventHandler ( ShotEventCallbacks *cb )
{
  for (size_t i = 0; i < callbacks.size(); i++ )
  {
    if (cb == callbacks[i])
    {
      callbacks.erase(callbacks.begin()+i);
      return;
    }
  }
}

ShotManager::Shot::Shot(FiringInfo* info, int GUID, int p )
{
  int param = p;
  int id = GUID;
  if (info)
  {<commit_msg>Unused variables, Remove unused shadow variables<commit_after>/* bzflag
* Copyright (c) 1993 - 2008 <NAME>
*
* This package is free software;  you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/

// interface header
#include "ShotManager.h"
#include "TimeKeeper.h"

//
// ShotManager
//

/** initialize the singleton */
template <>
ShotManager* Singleton<ShotManager>::_instance = (ShotManager*)0;


ShotManager::ShotManager()
{

}
ShotManager::~ShotManager()
{

}

int ShotManager::newShot ( FiringInfo * /*info*/, int /*param*/ )
{
  return 0;
}

void ShotManager::update ( double /*dt*/ )
{

}

void ShotManager::addEventHandler ( ShotEventCallbacks *cb )
{
  callbacks.push_back(cb);
}

void ShotManager::removeEventHandler ( ShotEventCallbacks *cb )
{
  for (size_t i = 0; i < callbacks.size(); i++ )
  {
    if (cb == callbacks[i])
    {
      callbacks.erase(callbacks.begin()+i);
      return;
    }
  }
}

ShotManager::Shot::Shot(FiringInfo* info, int /*GUID*/, int /*p*/ )
{
  if (info)
  {
{'fraction_non_alphanumeric': 0.1291698991466253, 'fraction_numerical': 0.008533747090768037, 'mean_word_length': 3.988394584139265, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '323817', 'n_tokens_mistral': 880, 'n_tokens_neox': 848, 'n_words': 253}