<commit_before>#ifndef PyOpenSSL_PY3K_H_
#define PyOpenSSL_PY3K_H_

#if (PY_VERSION_HEX >= 0x03000000)

#define PY3

#define PyOpenSSL_MODINIT(name)                 \
PyMODINIT_FUNC \
PyInit_##name(void)

#define PyText_FromString PyUnicode_FromString
#define PyText_FromStringAndSize PyUnicode_FromStringAndSize

#else /* (PY_VERSION_HEX >= 0x03000000) */

#define PyVarObject_HEAD_INIT(type, size) PyObject_HEAD_INIT(NULL) 0

#define PyBytes_FromStringAndSize PyString_FromStringAndSize

#define PyLong_FromLong PyInt_FromLong
#define PyLong_AsLong PyInt_AsLong
#define PyLong_Check(o) (PyInt_Check(o) || PyLong_Check(o))

#define PyBytes_Size PyString_Size
#define PyBytes_Check PyString_Check
#define PyBytes_CheckExact PyString_CheckExact
#define PyBytes_AsString PyString_AsString
#define PyBytes_FromStringAndSize PyString_FromStringAndSize

#define PyText_FromString PyString_FromString
#define PyText_FromStringAndSize PyString_FromStringAndSize

#define PyOpenSSL_MODINIT(name)
void \
init##name(void)

#endif /* (PY_VERSION_HEX >= 0x03000000) */

#endif /* PyOpenSSL_PY3K_H_ */
<commit_msg>Fix the 2.x version of certain things; introduce MODRETURN<commit_after>#ifndef PyOpenSSL_PY3K_H_
#define PyOpenSSL_PY3K_H_

#if (PY_VERSION_HEX >= 0x03000000)

#define PY3

#define PyOpenSSL_MODINIT(name) \
PyMODINIT_FUNC \
PyInit_##name(void)

#define PyText_FromString PyUnicode_FromString
#define PyText_FromStringAndSize PyUnicode_FromStringAndSize

#define PyOpenSSL_HEAD_INIT(type, size) PyVarObject_HEAD_INIT(type, size)

#define PyOpenSSL_Integer_Check(o) PyLong_Check(o)

#define PyOpenSSL_MODRETURN(module) { return module; }

#else /* (PY_VERSION_HEX >= 0x03000000) */

#define PyOpenSSL_MODRETURN(module) { return; }

#define PyOpenSSL_HEAD_INIT(type, size) PyObject_HEAD_INIT(NULL) 0,

#define PyBytes_FromStringAndSize PyString_FromStringAndSize

#define PyOpenSSL_Integer_Check(o) (PyInt_Check(o) || PyLong_Check(o))

#define PyBytes_Size PyString_Size
#define PyBytes_Check PyString_Check
#define PyBytes_CheckExact PyString_CheckExact
#define PyBytes_AsString PyString_AsString
#define PyBytes_FromStringAndSize PyString_FromStringAndSize

#define PyText_FromString PyString_FromString
#define PyText_FromStringAndSize PyString_FromStringAndSize

#define PyOpenSSL_MODINIT(name) \
void \
init##name(void)

#endif /* (PY_VERSION_HEX >= 0x03000000) */

#endif /* PyOpenSSL_PY3K_H_ */

{'fraction_non_alphanumeric': 0.07746772178259059, 'fraction_numerical': 0.027072053311120368, 'mean_word_length': 8.419607843137255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4388939', 'n_tokens_mistral': 904, 'n_tokens_neox': 840, 'n_words': 157}