<commit_before>#pragma once

#include "../../plat_primary_identify.h"

#if defined(COFFEE_APPLE)

#include "../unix/environment.h"
#include "../../file/unix/file.h"

#include "../../memory/stlstring_ops.h"

namespace Coffee{
namespace Environment{
namespace Mac{

using namespace CResources;
using namespace Posix;

struct MacEnv : Posix::PosixEnvironmentFun
{
    static CString ExecutableName(cstring_w = nullptr);

    STATICINLINE Url ApplicationDir()
    {
        file_error ec;
        CString execname = ExecutableName();
        return PosixDirFun::Dirname(execname.c_str(), ec);
    }
    static Url GetUserData(cstring orgname, cstring appname);
};

#if defined(COFFEE_APPLE_DESKTOP)
struct MacColorMap : Posix::PosixTerminalColorCodes
{
};
#endif

}
}

using Env_ = Environment::Mac::MacEnv;
#if defined(COFFEE_APPLE_DESKTOP)
using ColorMap_ = Environment::Mac::MacColorMap;
#else
using ColorMap_ = Environment::EnvColorCodes;
#endif

}
#endif<commit_msg> - This is the last try for OSX<commit_after>#pragma once

#include "../../plat_primary_identify.h"

#if defined(COFFEE_APPLE)

#include "../unix/environment.h"
#include "../../file/unix/file.h"

#include "../../memory/stlstring_ops.h"

namespace Coffee{
namespace Environment{
namespace Mac{

struct MacEnv : Posix::PosixEnvironmentFun
{
    static CString ExecutableName(cstring_w = nullptr);

    STATICINLINE Url ApplicationDir()
    {
        file_error ec;
        CString execname = ExecutableName();
        return CResources::Posix::PosixDirFun::Dirname(execname.c_str(), ec);
    }
    static Url GetUserData(cstring orgname, cstring appname);
};

#if defined(COFFEE_APPLE_DESKTOP)
struct MacColorMap : Posix::PosixTerminalColorCodes
{
};
#endif

}
}

using Env_ = Environment::Mac::MacEnv;
#if defined(COFFEE_APPLE_DESKTOP)
using ColorMap_ = Environment::Mac::MacColorMap;
#else
using ColorMap_ = Environment::EnvColorCodes;
#endif

}
#endif
{'fraction_non_alphanumeric': 0.1266284523189161, 'fraction_numerical': 0.0, 'mean_word_length': 4.6304985337243405, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1561644', 'n_tokens_mistral': 650, 'n_tokens_neox': 653, 'n_words': 136}