<commit_before>import numpy as np
import numpytest

def compute_targets(base, targets):
    b1 = base[:,np.newaxis,:]
    d1 = (b1-targets)**2
    d2 = np.add.reduce(d1, 2)
    d3 = np.sqrt(d2)
    r  = np.max(d2, axis=1)
    return r

def kNN(src, dist):
    targets = np.array(src, dtype=float, cphvb=dist)
    base    = np.array(src, dtype=float, cphvb=dist)<commit_msg>float32<commit_after>import numpy as np
import numpytest

dtype=np.float32

def compute_targets(base, targets):
    b1 = base[:,np.newaxis,:]
    d1 = (b1-targets)**2
    d2 = np.add.reduce(d1, 2)
    d3 = np.sqrt(d2)
    r  = np.max(d2, axis=1)
    return r

def kNN(src, dist):
    targets = np.array(src, dtype=dtype, cphvb=dist)
    base    = np.array(src, dtype=dtype, cphvb=dist)
{'fraction_non_alphanumeric': 0.15303430079155672, 'fraction_numerical': 0.03430079155672823, 'mean_word_length': 3.3125, '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': '4405137', 'n_tokens_mistral': 322, 'n_tokens_neox': 319, 'n_words': 68}