<commit_before>extern crate turtle;

use turtle::Turtle;

fn main() {
    let mut turtle = Turtle::new();

    for _ in 0..36 {
        square(&mut turtle);
        turtle.right(10.0);
    }
}

fn square(turtle: &mut Turtle) {
    for _ in 0..4 {
        turtle.forward(200.0);
        turtle.right(90.0);
    }
}<commit_msg>Colored squares example<commit_after>extern crate turtle;

use turtle::{Turtle, Color};

fn main() {
    let mut turtle = Turtle::new();

    for i in 0..36 {
        let base_color: Color = if i % 2 == 0 {
            "red".into()
        } else {
            "white".into()
        };
        turtle.set_fill_color(base_color.with_alpha(1.0 - i as f64 / 54.0));
        turtle.begin_fill();
        square(&mut turtle);
        turtle.end_fill();
        turtle.right(10.0);
    }
}

fn square(turtle: &mut Turtle) {
    for _ in 0..4 {
        turtle.forward(200.0);
        turtle.right(90.0);
    }
}
{'fraction_non_alphanumeric': 0.15268817204301074, 'fraction_numerical': 0.041935483870967745, 'mean_word_length': 1.9462025316455696, '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': '3581347', 'n_tokens_mistral': 389, 'n_tokens_neox': 331, 'n_words': 73}