<commit_before>import os
import cffi


def _get_c_lib(name):
    """Return the contents of a C library."""
    filename = os.path.join(
        os.path.dirname(__file__), 'lib', name)
    with open(filename) as lib:
        return lib.read()


ffi = cffi.FFI()

ffi.cdef("""

// base types

typedef uint32_t Uint32;
typedef uint8_t Uint8;

void free (void* ptr);
void *memmove(void *dest, const void *src, size_t n);

// constants

#define SDL_INIT_EVERYTHING ...
#define SDL_INIT_TIMER ...
#define SDL_INIT_VIDEO ...
#define SDL_INIT_AUDIO ...
#define SDL_INIT_NOPARACHUTE ...

#define SDL_APPACTIVE ...
#define SDL_APPMOUSEFOCUS ...
#define SDL_APPINPUTFOCUS ...

#define SDL_ANYFORMAT ...
#define SDL_ALLEVENTS ...
#define SDL_ASYNCBLIT ...
#define SDL_HWPALETTE ...

#define SDL_SWSURFACE ...
#define SDL_HWSURFACE ...

#define SDL_RLEACCEL ...
#define SDL_RLEACCELOK ...

#define SDL_HAT_UP ...
#define SDL_HAT_DOWN ...
#define SDL_HAT_RIGHT ...
#define SDL_HAT_LEFT ...<commit_msg>Add SDL_INIT_JOYSTICK.<commit_after>import os
import cffi


def _get_c_lib(name):
    """Return the contents of a C library."""
    filename = os.path.join(
        os.path.dirname(__file__), 'lib', name)
    with open(filename) as lib:
        return lib.read()


ffi = cffi.FFI()

ffi.cdef("""

// base types

typedef uint32_t Uint32;
typedef uint8_t Uint8;

void free (void* ptr);
void *memmove(void *dest, const void *src, size_t n);

// constants

#define SDL_INIT_EVERYTHING ...
#define SDL_INIT_TIMER ...
#define SDL_INIT_VIDEO ...
#define SDL_INIT_AUDIO ...
#define SDL_INIT_JOYSTICK ...
#define SDL_INIT_NOPARACHUTE ...

#define SDL_APPACTIVE ...
#define SDL_APPMOUSEFOCUS ...
#define SDL_APPINPUTFOCUS ...

#define SDL_ANYFORMAT ...
#define SDL_ALLEVENTS ...
#define SDL_ASYNCBLIT ...
#define SDL_HWPALETTE ...

#define SDL_SWSURFACE ...
#define SDL_HWSURFACE ...

#define SDL_RLEACCEL ...
#define SDL_RLEACCELOK ...

#define SDL_HAT_UP ...
#define SDL_HAT_DOWN ...
#define SDL_HAT_RIGHT ...
#define SDL_HAT_LEFT ...
{'fraction_non_alphanumeric': 0.14058618976651763, 'fraction_numerical': 0.005961251862891207, 'mean_word_length': 3.368763557483731, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4711044', 'n_tokens_mistral': 829, 'n_tokens_neox': 772, 'n_words': 179}