<commit_before># -*- coding: utf-8 -*-

import sys

from ctypes import CDLL, POINTER, byref, c_int, c_double, c_float, c_void_p
from ctypes.util import find_library

from pyfr.exc import PyFRError

from pyfr.backends.cuda.provider import CudaKernelProvider
from pyfr.backends.cuda.queue import CudaComputeKernel

import numpy as np

# Find the CUBLAS library
if sys.platform == 'linux2':
    _libcublasname = 'libcublas.so'
elif sys.platform == 'darwin':
    _libcublasname = 'libcublas.dylib'
elif sys.platform == 'Windows':
    _libcublasname = 'cublas.lib'
else:
    _libcublasname = find_library('cublas')
    if not _libcublasname:
        raise ImportError('Unsupport platform')

# Open up the library
try:
    _libcublas = CDLL(_libcublasname)
except OSError:
    raise ImportError('Library not found')


class CublasError(PyFRError):
    pass


class CublasNotInitialized(CublasError):
    pass


class CublasAllocFailed(CublasError):
    pass


class CublasInvalidValue(CublasError):
    pass

<commit_msg>Cleanups.<commit_after># -*- coding: utf-8 -*-

import sys

from ctypes import CDLL, POINTER, byref, c_int, c_double, c_float, c_void_p
from ctypes.util import find_library

import numpy as np

from pyfr.backends.cuda.provider import CudaKernelProvider
from pyfr.backends.cuda.queue import CudaComputeKernel

# Find the CUBLAS library
if sys.platform == 'linux2':
    _libcublasname = 'libcublas.so'
elif sys.platform == 'darwin':
    _libcublasname = 'libcublas.dylib'
elif sys.platform == 'Windows':
    _libcublasname = 'cublas.lib'
else:
    _libcublasname = find_library('cublas')
    if not _libcublasname:
        raise ImportError('Unsupport platform')

# Open up the library
try:
    _libcublas = CDLL(_libcublasname)
except OSError:
    raise ImportError('Library not found')


class CublasError(Exception):
    pass


class CublasNotInitialized(CublasError):
    pass


class CublasAllocFailed(CublasError):
    pass


class CublasInvalidValue(CublasError):
    pass


{'fraction_non_alphanumeric': 0.09027081243731194, 'fraction_numerical': 0.0020060180541624875, 'mean_word_length': 4.391891891891892, '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': '1436238', 'n_tokens_mistral': 709, 'n_tokens_neox': 689, 'n_words': 172}