<commit_before>"""Common routines to use CuDNN."""

import ctypes
import libcudnn
import numpy
from pycuda import gpuarray

def get_ptr(x):
    return ctypes.c_void_p(int(x.gpudata))

class Auto(object):
    """Object to be destoryed automatically."""
    def __init__(self, value, destroyer):
        self.value = value
        self.destroyer = destroyer

    def __del__(self):
        try:
            self.destroyer(self.value)
        except:
            pass

_default_handle = None

def get_default_handle():
    """Get the default handle of CuDNN."""<commit_msg>Remove unnecessary import<commit_after>"""Common routines to use CuDNN."""

import ctypes
import libcudnn
import numpy

def get_ptr(x):
    return ctypes.c_void_p(int(x.gpudata))

class Auto(object):
    """Object to be destoryed automatically."""
    def __init__(self, value, destroyer):
        self.value = value
        self.destroyer = destroyer

    def __del__(self):
        try:
            self.destroyer(self.value)
        except:
            pass

_default_handle = None

def get_default_handle():
    """Get the default handle of CuDNN."""
{'fraction_non_alphanumeric': 0.10320284697508897, 'fraction_numerical': 0.0, 'mean_word_length': 2.9473684210526314, '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': '7343230', 'n_tokens_mistral': 348, 'n_tokens_neox': 341, 'n_words': 97}