<commit_before>#ifndef ARDUINOOSC_H
#define ARDUINOOSC_H

#ifndef ARDUINOOSC_ENABLE_DEBUG_LOG
#define NDEBUG // disable conversion warning
#endif

#include "ArduinoOSC/util/ArxTypeTraits/ArxTypeTraits.h"
#include "ArduinoOSC/util/ArxSmartPtr/ArxSmartPtr.h"
#include "ArduinoOSC/util/ArxContainer/ArxContainer.h"
#include "ArduinoOSC/util/DebugLog/DebugLog.h"

#if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
    // all features are available
#else
    #ifndef ARDUINOOSC_ENABLE_BUNDLE
        #define ARDUINOOSC_DISABLE_BUNDLE
    #endif
#endif

#if defined(ESP_PLATFORM)\
 || defined(ESP8266)\
 || defined(ARDUINO_AVR_UNO_WIFI_REV2)\
 || defined(ARDUINO_SAMD_MKRWIFI1010)\
 || defined(ARDUINO_SAMD_MKRVIDOR4000)\
 || defined(ARDUINO_SAMD_MKR1000)\
 || defined(ARDUINO_SAMD_NANO_33_IOT)
    #define ARDUINOOSC_ENABLE_WIFI
#endif

#if defined(ESP8266)\
 || !defined(ARDUINOOSC_ENABLE_WIFI)
    #define ARDUINOOSC_ENABLE_ETHER
#endif

#if !defined (ARDUINOOSC_ENABLE_WIFI)\
 && !defined (ARDUINOOSC_ENABLE_ETHER)
    #error THIS PLATFORM HAS NO WIFI OR ETHERNET OR NOT SUPPORTED ARCHITECTURE. PLEASE LET ME KNOW!
#endif

#ifdef ARDUINOOSC_ENABLE_WIFI
    #ifdef ESP_PLATFORM
        #include <WiFi.h>
        #include <WiFiUdp.h>
    #elif defined (ESP8266)
        #include <ESP8266WiFi.h>
        #include <WiFiUdp.h>
    #elif defined (ARDUINO_AVR_UNO_WIFI_REV2)\
        || defined(ARDUINO_SAMD_MKRWIFI1010)\
        || defined(ARDUINO_SAMD_MKRVIDOR4000)\
        || defined(ARDUINO_SAMD_NANO_33_IOT)
        #include <SPI.h>
        #include <WiFiNINA.h>
        #include <WiFiUdp.h><commit_msg>support Ethernet for ESP32<commit_after>#ifndef ARDUINOOSC_H
#define ARDUINOOSC_H

#ifndef ARDUINOOSC_ENABLE_DEBUG_LOG
#define NDEBUG // disable conversion warning
#endif

#include "ArduinoOSC/util/ArxTypeTraits/ArxTypeTraits.h"
#include "ArduinoOSC/util/ArxSmartPtr/ArxSmartPtr.h"
#include "ArduinoOSC/util/ArxContainer/ArxContainer.h"
#include "ArduinoOSC/util/DebugLog/DebugLog.h"

#if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
    // all features are available
#else
    #ifndef ARDUINOOSC_ENABLE_BUNDLE
        #define ARDUINOOSC_DISABLE_BUNDLE
    #endif
#endif

#if defined(ESP_PLATFORM)\
 || defined(ESP8266)\
 || defined(ARDUINO_AVR_UNO_WIFI_REV2)\
 || defined(ARDUINO_SAMD_MKRWIFI1010)\
 || defined(ARDUINO_SAMD_MKRVIDOR4000)\
 || defined(ARDUINO_SAMD_MKR1000)\
 || defined(ARDUINO_SAMD_NANO_33_IOT)
    #define ARDUINOOSC_ENABLE_WIFI
#endif

#if defined(ESP8266)\
 || defined(ESP_PLATFORM)\
 || !defined(ARDUINOOSC_ENABLE_WIFI)
    #define ARDUINOOSC_ENABLE_ETHER
#endif

#if !defined (ARDUINOOSC_ENABLE_WIFI)\
 && !defined (ARDUINOOSC_ENABLE_ETHER)
    #error THIS PLATFORM HAS NO WIFI OR ETHERNET OR NOT SUPPORTED ARCHITECTURE. PLEASE LET ME KNOW!
#endif

#ifdef ARDUINOOSC_ENABLE_WIFI
    #ifdef ESP_PLATFORM
        #include <WiFi.h>
        #include <WiFiUdp.h>
    #elif defined (ESP8266)
        #include <ESP8266WiFi.h>
        #include <WiFiUdp.h>
    #elif defined (ARDUINO_AVR_UNO_WIFI_REV2)\
        || defined(ARDUINO_SAMD_MKRWIFI1010)\
        || defined(ARDUINO_SAMD_MKRVIDOR4000)\
        || defined(ARDUINO_SAMD_NANO_33_IOT)
        #include <SPI.h>
        #include <WiFiNINA.h>
        #include <WiFiUdp.h>
{'fraction_non_alphanumeric': 0.10153374233128834, 'fraction_numerical': 0.03128834355828221, 'mean_word_length': 4.435, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '559521', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1353, 'n_words': 207}