<commit_before>/* -*- c-style: gnu -*- */

#ifndef ACT_BASE_H
#define ACT_BASE_H

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#ifndef __BIG_ENDIAN
# define __BIG_ENDIAN 0x1234
#endif
#ifndef __LITTLE_ENDIAN
# define __LITTLE_ENDIAN 0x4321
#endif
#ifndef __BYTE_ORDER
# if __LITTLE_ENDIAN__
#  define __BYTE_ORDER __LITTLE_ENDIAN
# elif __BIG_ENDIAN__
#  define __BYTE_ORDER __BIG_ENDIAN
# else
#  error "Unknown endianness"
# endif
#endif

#undef MAX
#define MAX(x,y) ((x) > (y) ? (x) : (y))

#undef MIN
#define MIN(x,y) ((x) < (y) ? (x) : (y))

#ifdef __cplusplus

namespace act {

struct uncopyable
{
  uncopyable() {}

private:
  explicit uncopyable(const uncopyable &rhs);
  uncopyable &operator=(const uncopyable &rhs);
};

} // namespace act

#endif /* __cplusplus */
#endif /* ACT_BASE_H */
<commit_msg>delete copy constructor the C++11 way<commit_after>/* -*- c-style: gnu -*- */

#ifndef ACT_BASE_H
#define ACT_BASE_H

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>

#ifndef __BIG_ENDIAN
# define __BIG_ENDIAN 0x1234
#endif
#ifndef __LITTLE_ENDIAN
# define __LITTLE_ENDIAN 0x4321
#endif
#ifndef __BYTE_ORDER
# if __LITTLE_ENDIAN__
#  define __BYTE_ORDER __LITTLE_ENDIAN
# elif __BIG_ENDIAN__
#  define __BYTE_ORDER __BIG_ENDIAN
# else
#  error "Unknown endianness"
# endif
#endif

#undef MAX
#define MAX(x,y) ((x) > (y) ? (x) : (y))

#undef MIN
#define MIN(x,y) ((x) < (y) ? (x) : (y))

#ifdef __cplusplus

namespace act {

struct uncopyable
{
  uncopyable() = default;
  explicit uncopyable(const uncopyable &rhs) = delete;
  uncopyable &operator=(const uncopyable &rhs) = delete;
};

} // namespace act

#endif /* __cplusplus */
#endif /* ACT_BASE_H */

{'fraction_non_alphanumeric': 0.13882488479262672, 'fraction_numerical': 0.012672811059907835, 'mean_word_length': 4.695081967213115, 'pattern_counts': {'":': 0, '<': 13, '<?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': '4842855', 'n_tokens_mistral': 751, 'n_tokens_neox': 713, 'n_words': 173}