<commit_before>/* Copyright (c) 2008, <NAME>

   Permission to use, copy, modify, and/or distribute this software
   for any purpose with or without fee is hereby granted, provided
   that the above copyright notice and this permission notice appear
   in all copies.

   There is NO WARRANTY for this software.  See license.txt for
   details. */

#include "stdlib.h"

#ifdef _MSC_VER

typedef unsigned char uint8_t;

#else // not _MSC_VER

#  include "stdint.h"

// since we aren't linking against libstdc++, we must implement this
// ourselves:
extern "C" void __cxa_pure_virtual(void) { abort(); }

#endif // not _MSC_VER

#ifdef BOOT_IMAGE

#if (defined __MINGW32__) || (defined _MSC_VER)
#  ifdef __MINGW32__
#    define EXPORT __declspec(dllexport) __attribute__ ((externally_visible))
#  else // not __MINGW32__
#    define EXPORT __declspec(dllexport)
#  endif // not __MINGW32__
#  define SYMBOL(x) binary_bootimage_bin_##x
#else // not (defined __MINGW32__) || (defined _MSC_VER)
#  ifdef __APPLE__
#    define EXPORT __attribute__ ((visibility("default")))
#  else // not __APPLE__
#    define EXPORT __attribute__ ((visibility("default"))) \
  __attribute__ ((externally_visible))
#  endif // not __APPLE__
#  define SYMBOL(x) _binary_bootimage_bin_##x
#endif // not (defined __MINGW32__) || (defined _MSC_VER)

extern "C" {

  extern const uint8_t SYMBOL(start)[];
  extern const uint8_t SYMBOL(end)[];

  EXPORT const uint8_t*
  bootimageBin(unsigned* size)
  {
    *size = SYMBOL(end) - SYMBOL(start);
    return SYMBOL(start);
  }

}

#endif//BOOT_IMAGE

#ifdef BOOT_CLASSPATH

#if (defined __MINGW32__) || (defined _MSC_VER)
#  define EXPORT __declspec(dllexport) __attribute__ ((externally_visible))
#  define SYMBOL(x) binary_classpath_jar_##x
#else
#  define EXPORT __attribute__ ((visibility("default"))) __attribute__ ((externally_visible))
#  define SYMBOL(x) _binary_classpath_jar_##x
#endif

extern "C" {

  extern const uint8_t SYMBOL(start)[];
  extern const uint8_t SYMBOL(end)[];

  EXPORT const uint8_t*
  classpathJar(unsigned* size)
  {
    *size = SYMBOL(end) - SYMBOL(start);
    return SYMBOL(start);
  }

}

#endif//BOOT_CLASSPATH<commit_msg>ammend recent commit to avoid using __attribute__ ((externally_visible)) when it is not available (second try)<commit_after>/* Copyright (c) 2008, <NAME>

   Permission to use, copy, modify, and/or distribute this software
   for any purpose with or without fee is hereby granted, provided
   that the above copyright notice and this permission notice appear
   in all copies.

   There is NO WARRANTY for this software.  See license.txt for
   details. */

#include "stdlib.h"

#ifdef _MSC_VER

typedef unsigned char uint8_t;

#else // not _MSC_VER

#  include "stdint.h"

// since we aren't linking against libstdc++, we must implement this
// ourselves:
extern "C" void __cxa_pure_virtual(void) { abort(); }

#endif // not _MSC_VER

#if (defined __MINGW32__) || (defined _MSC_VER)
#  ifdef __MINGW32__
#    define EXPORT __declspec(dllexport) __attribute__ ((externally_visible))
#  else // not __MINGW32__
#    define EXPORT __declspec(dllexport)
#  endif // not __MINGW32__
#else // not (defined __MINGW32__) || (defined _MSC_VER)
#  ifdef __APPLE__
#    define EXPORT __attribute__ ((visibility("default")))
#  else // not __APPLE__
#    define EXPORT __attribute__ ((visibility("default"))) \
  __attribute__ ((externally_visible))
#  endif // not __APPLE__
#endif // not (defined __MINGW32__) || (defined _MSC_VER)

#ifdef BOOT_IMAGE

#if (defined __MINGW32__) || (defined _MSC_VER)
#  define SYMBOL(x) binary_bootimage_bin_##x
#else
#  define SYMBOL(x) _binary_bootimage_bin_##x
#endif

extern "C" {

  extern const uint8_t SYMBOL(start)[];
  extern const uint8_t SYMBOL(end)[];

  EXPORT const uint8_t*
  bootimageBin(unsigned* size)
  {
    *size = SYMBOL(end) - SYMBOL(start);
    return SYMBOL(start);
  }

}

#endif//BOOT_IMAGE

#ifdef BOOT_CLASSPATH

#if (defined __MINGW32__) || (defined _MSC_VER)
#  define SYMBOL(x) binary_classpath_jar_##x
#else
#  define SYMBOL(x) _binary_classpath_jar_##x
#endif

extern "C" {

  extern const uint8_t SYMBOL(start)[];
  extern const uint8_t SYMBOL(end)[];

  EXPORT const uint8_t*
  classpathJar(unsigned* size)
  {
    *size = SYMBOL(end) - SYMBOL(start);
    return SYMBOL(start);
  }

}

#endif//BOOT_CLASSPATH
{'fraction_non_alphanumeric': 0.11203128594432943, 'fraction_numerical': 0.01196227283183805, 'mean_word_length': 4.387856257744733, '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': '6457849', 'n_tokens_mistral': 1582, 'n_tokens_neox': 1504, 'n_words': 425}