<commit_before>#include "mitkClaronTrackingDevice.h"
#include "mitkClaronTool.h"
#include "mitkIGTConfig.h"
#include <itksys/SystemTools.hxx>
#include <iostream>



mitk::ClaronTrackingDevice::~ClaronTrackingDevice()
{
}


bool mitk::ClaronTrackingDevice::AddTool(ClaronTool::Pointer tool)
{
  m_AllTools.push_back(tool);
  return true;
}


std::vector<mitk::ClaronTool::Pointer> mitk::ClaronTrackingDevice::DetectTools()
{
  std::vector<mitk::ClaronTool::Pointer> returnValue;
  std::vector<claronToolHandle> allHandles = m_Device->GetAllActiveTools();
  for (std::vector<claronToolHandle>::iterator iter = allHandles.begin(); iter != allHandles.end(); ++iter)
  {
    ClaronTool::Pointer neu = ClaronTool::New();
    neu->SetToolName(m_Device->GetName(*iter));
    neu->SetCalibrationName(m_Device->GetName(*iter));
    neu->SetToolHandle(*iter);
    returnValue.push_back(neu);
  }
  return returnValue;
}

mitk::ClaronTrackingDevice::ClaronTrackingDevice(void)
{
  //set the type of this tracking device
  this->m_Type = ClaronMicron;

  //set the tracking volume
  this->m_TrackingVolume->SetTrackingDeviceType(this->m_Type);

  this->m_MultiThreader = itk::MultiThreader::New();

  //############################# standard directories (from cmake) ##################################
  if (m_Device->IsMicronTrackerInstalled())
    {
    #ifdef MITK_MICRON_TRACKER_TEMP_DIR
    m_ToolfilesDir = std::string(MITK_MICRON_TRACKER_TEMP_DIR);
    #endif
    #ifdef MITK_MICRON_TRACKER_TEMP_DIR
    m_CalibrationDir = std::string(MITK_MICRON_TRACKER_CALIBRATION_DIR);
    #endif
    }
  else
    {
    m_ToolfilesDir = "Error - No Microntracker installed";
    m_CalibrationDir = "Error - No Microntracker installed";<commit_msg>COMP: Corrected Error in mitkClaronTrackingDevice.cpp<commit_after>#include "mitkClaronTrackingDevice.h"
#include "mitkClaronTool.h"
#include "mitkIGTConfig.h"
#include <itksys/SystemTools.hxx>
#include <iostream>



mitk::ClaronTrackingDevice::~ClaronTrackingDevice()
{
}


bool mitk::ClaronTrackingDevice::AddTool(ClaronTool::Pointer tool)
{
  m_AllTools.push_back(tool);
  return true;
}


std::vector<mitk::ClaronTool::Pointer> mitk::ClaronTrackingDevice::DetectTools()
{
  std::vector<mitk::ClaronTool::Pointer> returnValue;
  std::vector<claronToolHandle> allHandles = m_Device->GetAllActiveTools();
  for (std::vector<claronToolHandle>::iterator iter = allHandles.begin(); iter != allHandles.end(); ++iter)
  {
    ClaronTool::Pointer neu = ClaronTool::New();
    neu->SetToolName(m_Device->GetName(*iter));
    neu->SetCalibrationName(m_Device->GetName(*iter));
    neu->SetToolHandle(*iter);
    returnValue.push_back(neu);
  }
  return returnValue;
}

mitk::ClaronTrackingDevice::ClaronTrackingDevice(void)
{
  //set the type of this tracking device
  this->m_Type = ClaronMicron;

  //set the tracking volume
  this->m_TrackingVolume->SetTrackingDeviceType(this->m_Type);

  this->m_MultiThreader = itk::MultiThreader::New();

  //############################# standard directories (from cmake) ##################################
  if (m_Device->IsMicronTrackerInstalled())
    {
    #ifdef MITK_MICRON_TRACKER_TEMP_DIR
    m_ToolfilesDir = std::string(MITK_MICRON_TRACKER_TEMP_DIR);
    #endif
    #ifdef MITK_MICRON_TRACKER_CALIBRATION_DIR
    m_CalibrationDir = std::string(MITK_MICRON_TRACKER_CALIBRATION_DIR);
    #endif
    }
  else
    {
    m_ToolfilesDir = "Error - No Microntracker installed";
    m_CalibrationDir = "Error - No Microntracker installed";
{'fraction_non_alphanumeric': 0.16043391378818156, 'fraction_numerical': 0.0, 'mean_word_length': 6.064516129032258, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 39, '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': '6033629', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1220, 'n_words': 171}