<commit_before>#if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ >= 612) && !defined(CABAL_NO_THREADED)
/* Since version 6.12, GHC's threaded RTS includes a getNumberOfProcessors
   function, so we try to use that if available. cabal-install is always built
   with -threaded nowadays.  */
#define HAS_GET_NUMBER_OF_PROCESSORS
#endif


#ifndef HAS_GET_NUMBER_OF_PROCESSORS

#ifdef _WIN32
#include <windows.h>
#elif MACOS
#include <sys/param.h>
#include <sys/sysctl.h>
#elif __linux__
#include <unistd.h>
#endif

int getNumberOfProcessors() {
#ifdef WIN32
    SYSTEM_INFO sysinfo;
    GetSystemInfo(&sysinfo);
    return sysinfo.dwNumberOfProcessors;<commit_msg>cbits: WIN32 guard for wider range of compilers<commit_after>#if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ >= 612) && !defined(CABAL_NO_THREADED)
/* Since version 6.12, GHC's threaded RTS includes a getNumberOfProcessors
   function, so we try to use that if available. cabal-install is always built
   with -threaded nowadays.  */
#define HAS_GET_NUMBER_OF_PROCESSORS
#endif


#ifndef HAS_GET_NUMBER_OF_PROCESSORS

#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
#include <windows.h>
#elif MACOS
#include <sys/param.h>
#include <sys/sysctl.h>
#elif __linux__
#include <unistd.h>
#endif

int getNumberOfProcessors() {
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
    SYSTEM_INFO sysinfo;
    GetSystemInfo(&sysinfo);
    return sysinfo.dwNumberOfProcessors;
{'fraction_non_alphanumeric': 0.10683477106834771, 'fraction_numerical': 0.019907100199071003, 'mean_word_length': 5.792792792792793, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '2470048', 'n_tokens_mistral': 564, 'n_tokens_neox': 525, 'n_words': 130}