<commit_before># include the function
include("../code/lm.jl")

N = 1000
P = 1

o = ones(Float64,(N,1));
x = randn( RandomDevice(), (N,P) ) * 10 + 50 ;
e = randn( RandomDevice(), (N,1) ) *2.5 ;
b = [30, 0.5;]
X = [o x];
y = X*b + e;

@time lm0(y,X);
@time lm1(y,X);
@time lm2(y,X);
@time lm3(y,X);


# testing the lm function

N = 10000
P = 1000

X = randn( RandomDevice(), (N,P) );
e = randn( RandomDevice(), (N,1) );
b = [(1:P);]

y = X*b + e;

@time lm0(y,X);
@time lm1(y,X);
@time lm2(y,X);
@time lm3(y,X);

<commit_msg>Tests similar to Karl augmented to larger mats.<commit_after># include the function
include("../code/lm.jl")

N = 1000
P = 1

o = ones(Float64,(N,1));
x = randn( RandomDevice(), (N,P) ) * 10 + 50 ;
e = randn( RandomDevice(), (N,1) ) *2.5 ;
b = [30, 0.5;]
X = [o x];
y = X*b + e;

@time lm0(y,X);
@time lm1(y,X);
@time lm2(y,X);
@time lm3(y,X);


N = 2500
P = 300

o = ones(Float64,(N,1));
x = randn( RandomDevice(), (N,P-1) ) * 10 + 50 ;
e = randn( RandomDevice(), (N,1) ) *2.5 ;
b = [randn( RandomDevice(), (P,1) );]
X = [o x];
y = X*b + e;

@time lm0(y,X);
@time lm1(y,X);
@time lm2(y,X);
@time lm3(y,X);



{'fraction_non_alphanumeric': 0.25772285966460723, 'fraction_numerical': 0.07413945278022947, 'mean_word_length': 3.6859504132231407, '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': '6368458', 'n_tokens_mistral': 631, 'n_tokens_neox': 577, 'n_words': 149}