<commit_before>// EIGHT SCHOOLS MODEL

data {
    int(0,) J;             // number of schools
    real y[J];             // estimated treatment effect (school j)
    real(0,) sigma_y[J];   // std dev of effect estimate (school j)
}
parameters {
    real theta[J];     
    real mu_theta;   
    real(0,) sigma_theta; 
}
model {
    mu_theta ~ normal(0,1000);

    sigma_theta ~ uniform(0,1000);
    for (j in 1:J)
        theta[j] ~ normal(mu_theta, sigma_theta);
    for (j in 1:J)
        y[j] ~ normal(theta[j], sigma_y[j]);
}<commit_msg>vectorized eight schools with improper priors<commit_after>// EIGHT SCHOOLS MODEL

data {
    int(0,) J;             // number of schools
    real y[J];             // estimated treatment effect (school j)
    real(0,) sigma_y[J];   // std dev of effect estimate (school j)
}
parameters {
    real theta[J];     
    real mu_theta;   
    real(0,1000) sigma_theta; 
}
model {
    // loop
    //    for (j in 1:J)
    //        theta[j] ~ normal(mu_theta, sigma_theta);
    //    for (j in 1:J)
    //        y[j] ~ normal(theta[j], sigma_y[j]);
  
    // vectorized loops
    theta ~ normal(mu_theta, sigma_theta); 
    y ~ normal(theta,sigma_y);
}
{'fraction_non_alphanumeric': 0.13793103448275862, 'fraction_numerical': 0.020185029436501262, 'mean_word_length': 2.1233595800524934, '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': '4038551', 'n_tokens_mistral': 456, 'n_tokens_neox': 414, 'n_words': 113}