<commit_before>//
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2014 <NAME>
//
/// \file ImageProperty.cpp Canon control - Image property
//

// includes
#include "stdafx.h"
#include "ImageProperty.hpp"
#include "CdsdkDevicePropertyAccess.hpp"
#include "CdsdkImagePropertyAccess.hpp"
#include "EdsdkPropertyAccess.hpp"
#include "PsrecPropertyAccess.hpp"

CString ImageProperty::Name() const throw()
{
   switch(m_enSDKVariant)
   {
   case variantCdsdk: return CDSDK::DevicePropertyAccess::NameFromId(m_uiImageProperty);
   case variantEdsdk: return EDSDK::PropertyAccess::NameFromId(m_uiImageProperty);
   case variantPsrec: return PSREC::PropertyAccess::NameFromId(static_cast<prUInt16>(m_uiImageProperty & 0xFFFF));
   default:
      ATLASSERT(false);
      return CString(_T("???"));
   }
}

CString ImageProperty::AsString() const throw()
{
   return ValueAsString(m_value);
}

CString ImageProperty::ValueAsString(Variant value) const throw()
{
   try
   {
      switch(m_enSDKVariant)
      {
      case variantCdsdk: return CDSDK::ImagePropertyAccess::DisplayTextFromIdAndValue(m_uiImageProperty, value);
      case variantEdsdk: return EDSDK::PropertyAccess::DisplayTextFromIdAndValue(m_uiImageProperty, value);
      case variantPsrec: return PSREC::PropertyAccess::DisplayTextFromIdAndValue(static_cast<prUInt16>(m_uiImageProperty & 0xFFFF), value);
      default:
         ATLASSERT(false);
         return CString(_T("???"));<commit_msg>fixed formatting image property names for CDSDK<commit_after>//
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2014 <NAME>
//
/// \file ImageProperty.cpp Canon control - Image property
//

// includes
#include "stdafx.h"
#include "ImageProperty.hpp"
#include "CdsdkImagePropertyAccess.hpp"
#include "EdsdkPropertyAccess.hpp"
#include "PsrecPropertyAccess.hpp"

CString ImageProperty::Name() const throw()
{
   switch(m_enSDKVariant)
   {
   case variantCdsdk: return CDSDK::ImagePropertyAccess::NameFromId(m_uiImageProperty);
   case variantEdsdk: return EDSDK::PropertyAccess::NameFromId(m_uiImageProperty);
   case variantPsrec: return PSREC::PropertyAccess::NameFromId(static_cast<prUInt16>(m_uiImageProperty & 0xFFFF));
   default:
      ATLASSERT(false);
      return CString(_T("???"));
   }
}

CString ImageProperty::AsString() const throw()
{
   return ValueAsString(m_value);
}

CString ImageProperty::ValueAsString(Variant value) const throw()
{
   try
   {
      switch(m_enSDKVariant)
      {
      case variantCdsdk: return CDSDK::ImagePropertyAccess::DisplayTextFromIdAndValue(m_uiImageProperty, value);
      case variantEdsdk: return EDSDK::PropertyAccess::DisplayTextFromIdAndValue(m_uiImageProperty, value);
      case variantPsrec: return PSREC::PropertyAccess::DisplayTextFromIdAndValue(static_cast<prUInt16>(m_uiImageProperty & 0xFFFF), value);
      default:
         ATLASSERT(false);
         return CString(_T("???"));
{'fraction_non_alphanumeric': 0.11668928086838534, 'fraction_numerical': 0.009497964721845319, 'mean_word_length': 5.410869565217391, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3085172', 'n_tokens_mistral': 933, 'n_tokens_neox': 900, 'n_words': 171}