<commit_before>//  
// Copyright (C) 2007-2009 SIPez LLC. 
// Licensed to SIPfoundry under a Contributor Agreement. 
//
// Copyright (C) 2007-2009 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////

// Author: <NAME> <kkyzivat AT SIPez DOT com>

// SYSTEM INCLUDES
#include <os/OsIntTypes.h>
#include <os/OsStatus.h>
#include <os/OsSysLog.h>

// APPLICATION INCLUDES
#include "mp/MpMMTimer.h"

#if defined(WIN32) // [ WIN32
#  include "mp/MpMMTimerWnt.h"
#  define DEFAULT_TIMER_CLASS MpMMTimerWnt
#elif 0 //defined(__pingtel_on_posix__) // ][ POSIX
#  include "mp/MpMMTimerPosix.h"
#  define DEFAULT_TIMER_CLASS MpMMTimerPosix
#else // ][ Unsupported platform
#  error Unsupported target platform.
#endif // ] Unsupported platform

// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS

/* //////////////////////////////// PUBLIC //////////////////////////////// */

/* =============================== CREATORS =============================== */

MpMMTimer *MpMMTimer::create(MMTimerType type, const UtlString &name)
{
   if (name.isNull())
   {
      return new DEFAULT_TIMER_CLASS(type);
   }
#ifdef WIN32 // [
   else if (name.compareTo(MpMMTimerWnt::TYPE, UtlString::ignoreCase))
   {
      return new MpMMTimerWnt(type);
   }
#endif // WIN32 ]
#if 0 //def __pingtel_on_posix__ // [
   else if (name.compareTo(MpMMTimerPosix::TYPE, UtlString::ignoreCase))
   {<commit_msg>sipXmediaLib: Fix compilation under Linux, while MpMMTimerPosix is not implemented.<commit_after>//  
// Copyright (C) 2007-2009 SIPez LLC. 
// Licensed to SIPfoundry under a Contributor Agreement. 
//
// Copyright (C) 2007-2009 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////

// Author: <NAME> <<EMAIL>>

// SYSTEM INCLUDES
#include <os/OsIntTypes.h>
#include <os/OsStatus.h>
#include <os/OsSysLog.h>

// APPLICATION INCLUDES
#include "mp/MpMMTimer.h"

#if defined(WIN32) // [ WIN32
#  include "mp/MpMMTimerWnt.h"
#  define DEFAULT_TIMER_CLASS MpMMTimerWnt
#elif 0 //defined(__pingtel_on_posix__) // ][ POSIX
#  include "mp/MpMMTimerPosix.h"
#  define DEFAULT_TIMER_CLASS MpMMTimerPosix
#else // ][ Unsupported platform
#  error Unsupported target platform.
#endif // ] Unsupported platform

// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS

/* //////////////////////////////// PUBLIC //////////////////////////////// */

/* =============================== CREATORS =============================== */

MpMMTimer *MpMMTimer::create(MMTimerType type, const UtlString &name)
{
#ifdef WIN32 // [
   if (name.isNull())
   {
      return new DEFAULT_TIMER_CLASS(type);
   }
//#ifdef WIN32 // [
   else if (name.compareTo(MpMMTimerWnt::TYPE, UtlString::ignoreCase))
   {
      return new MpMMTimerWnt(type);
   }
#endif // WIN32 ]
#if 0 //def __pingtel_on_posix__ // [
   else if (name.compareTo(MpMMTimerPosix::TYPE, UtlString::ignoreCase))
   {
{'fraction_non_alphanumeric': 0.24968030690537085, 'fraction_numerical': 0.017263427109974423, 'mean_word_length': 2.5039193729003357, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '6418097', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1063, 'n_words': 231}