<commit_before>/*
 * Copyright(c) Sophist Solutions, Inc. 1990-2018.  All rights reserved
 */
#ifndef _Stroika_Foundation_IO_Network_Interface_inl_
#define _Stroika_Foundation_IO_Network_Interface_inl_ 1

/*
 ********************************************************************************
 ***************************** Implementation Details ***************************
 ********************************************************************************
 */
namespace Stroika::Foundation::IO::Network {

    /*
     ********************************************************************************
     ************************************* Interface ********************************
     ********************************************************************************
     */
#if qPlatform_POSIX
    /**
     *  On unix, its the interface name, e.g. eth0, eth1, etc.
     *  On Windows, this is concept doesn't really exist.
     */
    inline String Interface::GetInterfaceName () const
    {
        return fInternalInterfaceID;
    }
#endif

}
namespace Stroika::Foundation::Configuration {
    template <>
    struct DefaultNames<IO::Network::Interface::Status> : EnumNames<IO::Network::Interface::Status> {
        static constexpr EnumNames<IO::Network::Interface::Status> k{
            EnumNames<IO::Network::Interface::Status>::BasicArrayInitializer{
                {
                    {IO::Network::Interface::Status::eConnected, L"Connected"},
                    {IO::Network::Interface::Status::eRunning, L"Running"},
                }}};
        DefaultNames ()
            : EnumNames<IO::Network::Interface::Status> (k)
        {
        }
    };
    template <>
    struct DefaultNames<IO::Network::Interface::Type> : EnumNames<IO::Network::Interface::Type> {
        static constexpr EnumNames<IO::Network::Interface::Type> k{
            EnumNames<IO::Network::Interface::Type>::BasicArrayInitializer{
                {
                    {IO::Network::Interface::Type::eLoopback, L"Loopback"},
                    {IO::Network::Interface::Type::eWiredEthernet, L"WiredEthernet"},
                    {IO::Network::Interface::Type::eWIFI, L"WIFI"},
                    {IO::Network::Interface::Type::eTunnel, L"Tunnel"},
                    {IO::Network::Interface::Type::eOther, L"Other"},
                }}};
        DefaultNames ()
            : EnumNames<IO::Network::Interface::Type> (k)
        {
        }
    };

}

#endif /*_Stroika_Foundation_IO_Network_Interface_inl_*/<commit_msg>renamed print-string for Network::Interface::Type::eWiredEthernet<commit_after>/*
 * Copyright(c) Sophist Solutions, Inc. 1990-2018.  All rights reserved
 */
#ifndef _Stroika_Foundation_IO_Network_Interface_inl_
#define _Stroika_Foundation_IO_Network_Interface_inl_ 1

/*
 ********************************************************************************
 ***************************** Implementation Details ***************************
 ********************************************************************************
 */
namespace Stroika::Foundation::IO::Network {

    /*
     ********************************************************************************
     ************************************* Interface ********************************
     ********************************************************************************
     */
#if qPlatform_POSIX
    /**
     *  On unix, its the interface name, e.g. eth0, eth1, etc.
     *  On Windows, this is concept doesn't really exist.
     */
    inline String Interface::GetInterfaceName () const
    {
        return fInternalInterfaceID;
    }
#endif

}
namespace Stroika::Foundation::Configuration {
    template <>
    struct DefaultNames<IO::Network::Interface::Status> : EnumNames<IO::Network::Interface::Status> {
        static constexpr EnumNames<IO::Network::Interface::Status> k{
            EnumNames<IO::Network::Interface::Status>::BasicArrayInitializer{
                {
                    {IO::Network::Interface::Status::eConnected, L"Connected"},
                    {IO::Network::Interface::Status::eRunning, L"Running"},
                }}};
        DefaultNames ()
            : EnumNames<IO::Network::Interface::Status> (k)
        {
        }
    };
    template <>
    struct DefaultNames<IO::Network::Interface::Type> : EnumNames<IO::Network::Interface::Type> {
        static constexpr EnumNames<IO::Network::Interface::Type> k{
            EnumNames<IO::Network::Interface::Type>::BasicArrayInitializer{
                {
                    {IO::Network::Interface::Type::eLoopback, L"Loopback"},
                    {IO::Network::Interface::Type::eWiredEthernet, L"Wired-Ethernet"},
                    {IO::Network::Interface::Type::eWIFI, L"WIFI"},
                    {IO::Network::Interface::Type::eTunnel, L"Tunnel"},
                    {IO::Network::Interface::Type::eOther, L"Other"},
                }}};
        DefaultNames ()
            : EnumNames<IO::Network::Interface::Type> (k)
        {
        }
    };

}

#endif /*_Stroika_Foundation_IO_Network_Interface_inl_*/
{'fraction_non_alphanumeric': 0.29093768429329664, 'fraction_numerical': 0.004324749361116572, 'mean_word_length': 3.4710017574692444, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '1369755', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1208, 'n_words': 178}