<commit_before>//
// Copyright (C) 2005-2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
// 
// Copyright (C) 2004-2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp.  All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////

// SYSTEM INCLUDES
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif /* _WIN32 */

// APPLICATION INCLUDES
// DEFINES
#if defined _WIN32 && !defined WINCE
#define strcasecmp stricmp
#endif

// GLOBAL VARIABLES
// EXTERNAL VARIABLES
// EXTERNAL FUNCTIONS
// STRUCTURES
// GLOBALS

/* ============================ FUNCTIONS ================================= */

#if defined _WIN32 && defined SIPXTAPI_EXPORTS

BOOL APIENTRY DllMain( HANDLE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    switch (ul_reason_for_call)
    {
        case DLL_PROCESS_ATTACH:
        case DLL_THREAD_ATTACH:
        case DLL_THREAD_DETACH:
        case DLL_PROCESS_DETACH:
            break;
    }
    return TRUE;
}

#endif /* defined(_WIN32) */<commit_msg>Previous commit also introduced a new function to sipxtapi - sipxConfigInitLogging. It should be called before sipxConfigSetLogLevel or sipxConfigSetLogFile. sipxConfigSetLogLevel no longer initializes logging inside. If logging is already initialized, sipxInitialize will not override filename and logging level.<commit_after>//
// Copyright (C) 2005-2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
// 
// Copyright (C) 2004-2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp.  All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////

// SYSTEM INCLUDES
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif /* _WIN32 */

// APPLICATION INCLUDES
// DEFINES
#if defined _WIN32 && !defined WINCE
#define strcasecmp stricmp
#endif

// GLOBAL VARIABLES
// EXTERNAL VARIABLES
// EXTERNAL FUNCTIONS
// STRUCTURES
// GLOBALS

/* ============================ FUNCTIONS ================================= */

#if defined _WIN32 && defined SIPXTAPI_EXPORTS

BOOL APIENTRY DllMain(HANDLE hModule,
                      DWORD  ul_reason_for_call,
                      LPVOID lpReserved
                      )
{
    switch (ul_reason_for_call)
    {
        case DLL_PROCESS_ATTACH:
        case DLL_THREAD_ATTACH:
        case DLL_THREAD_DETACH:
        case DLL_PROCESS_DETACH:
            break;
    }
    return TRUE;
}

#endif /* defined(_WIN32) */
{'fraction_non_alphanumeric': 0.1768465909090909, 'fraction_numerical': 0.02556818181818182, 'mean_word_length': 2.3102232667450058, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6867388', 'n_tokens_mistral': 913, 'n_tokens_neox': 822, 'n_words': 235}