<commit_before>""" Utility functions used by the Sum of Squared Differences (SSD) metric """

import numpy as np
cimport cython
cimport numpy as cnp
from fused_types cimport floating, number

cdef extern from "math.h":
    int isinf(double) nogil
    double sqrt(double x) nogil


@cython.boundscheck(False)
@cython.wraparound(False)
@cython.cdivision(True)
cdef void _solve_2d_symmetric_positive_definite(double[:] A, double[:] y,
                                               double det,
                                               double[:] out) nogil:<commit_msg>BF: isinf is not defined in visual C. Using cimport instead.<commit_after>""" Utility functions used by the Sum of Squared Differences (SSD) metric """

import numpy as np
cimport cython
cimport numpy as cnp
from fused_types cimport floating, number
from libc.math cimport isinf, sqrt


@cython.boundscheck(False)
@cython.wraparound(False)
@cython.cdivision(True)
cdef void _solve_2d_symmetric_positive_definite(double[:] A, double[:] y,
                                               double det,
                                               double[:] out) nogil:
{'fraction_non_alphanumeric': 0.0801056338028169, 'fraction_numerical': 0.0017605633802816902, 'mean_word_length': 2.531055900621118, 'pattern_counts': {'":': 1, '<': 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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7214442', 'n_tokens_mistral': 330, 'n_tokens_neox': 312, 'n_words': 107}