<commit_before>cdef class MotionState:
    cdef btMotionState *ptr_MotionState

    def __cinit__(self):
        self.ptr_MotionState = NULL

    def getWorldTransform(self):
        t = Transform()
        self.ptr_MotionState.getWorldTransform(t.ptr_Transform[0])
        return t

    def setWorldTransform(self, Transform worldTrans):
        self.ptr_MotionState.setWorldTransform(worldTrans.ptr_Transform[0])

 
cdef class DefaultMotionState(MotionState):
    cdef btDefaultMotionState *ptr_DefaultMotionState

    def __cinit__(self, Transform t=Transform()):
        self.ptr_DefaultMotionState = NULL

    def __init__(self, Transform t=Transform()):
        self.ptr_DefaultMotionState = new btDefaultMotionState(t.ptr_Transform[0])
        self.ptr_MotionState = <btMotionState*>self.ptr_DefaultMotionState

    def __dealloc__(self):
        if self.ptr_DefaultMotionState != NULL:
            del self.ptr_DefaultMotionState
            self.ptr_MotionState = NULL
            self.ptr_DefaultMotionState = NULL
<commit_msg>Wrapped 'MotionState' cannot be instantiated directly anymore.<commit_after>cdef class MotionState:
    cdef btMotionState *ptr_MotionState

    def __cinit__(self):
        self.ptr_MotionState = NULL

    def __init__(self):
        raise NotImplementedError

    def __dealloc__(self):
        if self.ptr_MotionState != NULL:
            del self.ptr_MotionState
            self.ptr_MotionState = NULL

    def getWorldTransform(self):
        t = Transform()
        self.ptr_MotionState.getWorldTransform(t.ptr_Transform[0])
        return t

    def setWorldTransform(self, Transform worldTrans):
        self.ptr_MotionState.setWorldTransform(worldTrans.ptr_Transform[0])

 
cdef class DefaultMotionState(MotionState):
    cdef btDefaultMotionState *ptr_DefaultMotionState

    def __cinit__(self, Transform t=Transform()):
        self.ptr_DefaultMotionState = NULL

    def __init__(self, Transform t=Transform()):
        self.ptr_DefaultMotionState = new btDefaultMotionState(t.ptr_Transform[0])
        self.ptr_MotionState = <btMotionState*>self.ptr_DefaultMotionState

    def __dealloc__(self):
        if self.ptr_DefaultMotionState != NULL:
            del self.ptr_DefaultMotionState
            self.ptr_MotionState = NULL
            self.ptr_DefaultMotionState = NULL

{'fraction_non_alphanumeric': 0.07474226804123711, 'fraction_numerical': 0.002577319587628866, 'mean_word_length': 3.3943396226415095, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6061849', 'n_tokens_mistral': 708, 'n_tokens_neox': 636, 'n_words': 128}