<commit_before>use agent::*;
use observer::*;

mod agent;
mod geometry;
mod observer;

fn main() {

    let cells=Crowd::new(10);
    io::println(cells.to_str());

    let mut obs = ScreenPrinter::new(10);
    let mut obs2 = DiskWriter::new(10, ~"cells");
    let dt=0.001;
    let mut t=0.0;
    for 100.times {
        cells.evolve(dt);
        if(obs.request_at(t)) {
            obs.see(t, &cells);
        }
        if(obs2.request_at(t)) {
            obs2.see(t, &cells);
        }
        t+=dt;
    }
}<commit_msg>Sortie sur le disque<commit_after>use agent::*;
use observer::*;

mod agent;
mod geometry;
mod observer;

fn main() {

    let mut cells=Crowd::new(100);

    let mut obs = ProgressMeter::new(200);
    let mut obs2 = DiskWriter::new(200, ~"cells");
    let dt=0.001;
    let mut t=0.0;
    for 10000.times {
        cells.evolve(dt);
        if(obs.request_at(t)) {
            obs.see(t, &cells);
        }
        if(obs2.request_at(t)) {
            obs2.see(t, &cells);
        }
        t+=dt;
    }
}
{'fraction_non_alphanumeric': 0.16715257531584063, 'fraction_numerical': 0.03984450923226433, 'mean_word_length': 2.1306990881458967, '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': '4635904', 'n_tokens_mistral': 419, 'n_tokens_neox': 383, 'n_words': 81}