<commit_before>from libc.stdint cimport intptr_t


###############################################################################
# Types and Enums
###############################################################################

IF USE_CUDA_PYTHON:
    from cudapython.ccuda cimport *
    # Aliases for compatibillity with existing CuPy codebase.
    # Keep in sync with names defined in `driver_legacy_typedef.pxi`.
    # TODO(kmaehashi): Remove these aliases.
    ctypedef CUdevice Device
    ctypedef CUresult Result
    ctypedef CUcontext Context
    ctypedef CUdeviceptr Deviceptr
    ctypedef CUevent Event
    ctypedef CUfunction Function
    ctypedef CUmodule Module
    ctypedef CUstream Stream
    ctypedef CUlinkState LinkState
    ctypedef CUtexref TexRef
    ctypedef CUarray* Array
    ctypedef CUarray_format Array_format
    ctypedef CUDA_ARRAY_DESCRIPTOR Array_desc
    ctypedef CUaddress_mode Address_mode
    ctypedef CUfilter_mode Filter_mode
ELSE:
    include "driver_legacy_typedef.pxi"
    include "driver_legacy_enum.pxi"


###############################################################################
# Build-time version
###############################################################################

cpdef get_build_version()

###############################################################################<commit_msg>fix signature as cudapython bug fixed<commit_after>from libc.stdint cimport intptr_t


###############################################################################
# Types and Enums
###############################################################################

IF USE_CUDA_PYTHON:
    from cudapython.ccuda cimport *
    # Aliases for compatibillity with existing CuPy codebase.
    # Keep in sync with names defined in `driver_legacy_typedef.pxi`.
    # TODO(kmaehashi): Remove these aliases.
    ctypedef CUdevice Device
    ctypedef CUresult Result
    ctypedef CUcontext Context
    ctypedef CUdeviceptr Deviceptr
    ctypedef CUevent Event
    ctypedef CUfunction Function
    ctypedef CUmodule Module
    ctypedef CUstream Stream
    ctypedef CUlinkState LinkState
    ctypedef CUtexref TexRef
    ctypedef CUarray_st* Array
    ctypedef CUarray_format Array_format
    ctypedef CUDA_ARRAY_DESCRIPTOR Array_desc
    ctypedef CUaddress_mode Address_mode
    ctypedef CUfilter_mode Filter_mode
ELSE:
    include "driver_legacy_typedef.pxi"
    include "driver_legacy_enum.pxi"


###############################################################################
# Build-time version
###############################################################################

cpdef get_build_version()

###############################################################################
{'fraction_non_alphanumeric': 0.31339449541284403, 'fraction_numerical': 0.0, 'mean_word_length': 5.883838383838384, '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': '7227893', 'n_tokens_mistral': 769, 'n_tokens_neox': 675, 'n_words': 175}