<commit_before>/*
 * C09Adapter.hh
 *
 *  Created on: Jan 28, 2015
 *      Author: asandryhaila
 */

#ifndef C09ADAPTER_HH_
#define C09ADAPTER_HH_

#if __cplusplus < 201103L
  #include <climits>

  typedef unsigned long uint64_t;
  typedef long int64_t;
  typedef unsigned int uint32_t;
  typedef int int32_t;
  #define UINT32_MAX UINT_MAX
  #define unique_ptr auto_ptr
  #define nullptr NULL
  #define override

  namespace std {
    template<typename T>
    inline T move(T& x) { return x; }
  } // std


  /* Containers of unique_ptr<T> are replaced with std::vector<T*>
   * unique_ptr to arrays are replaced with std::vector
   * Unsupported containers (e.g. initializer_list) are replaced with std::vector
   * Rvalue references && are replaced by &
   * auto is replaced with appropriate data type
   */

#else
  #include <initializer_list>
  #include <array>

#endif // __cplusplus
<commit_msg>Ensure compatibility between fixed-size types in different C++ standards.<commit_after>/*
 * C09Adapter.hh
 *
 *  Created on: Jan 28, 2015
 *      Author: asandryhaila
 */

#ifndef C09ADAPTER_HH_
#define C09ADAPTER_HH_

#if __cplusplus < 201103L
  #include <stdint.h>

  #define unique_ptr auto_ptr
  #define nullptr NULL
  #define override

  namespace std {
    template<typename T>
    inline T move(T& x) { return x; }
  } // std


  /* Containers of unique_ptr<T> are replaced with std::vector<T*>
   * unique_ptr to arrays are replaced with std::vector
   * Unsupported containers (e.g. initializer_list) are replaced with std::vector
   * Rvalue references && are replaced by &
   * auto is replaced with appropriate data type
   */

#else
  #include <initializer_list>
  #include <array>

#endif // __cplusplus

{'fraction_non_alphanumeric': 0.0906449738524114, 'fraction_numerical': 0.02672864613596746, 'mean_word_length': 3.5676392572944295, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '4473608', 'n_tokens_mistral': 600, 'n_tokens_neox': 558, 'n_words': 181}