<commit_before>use std::os;
use std::io::Command;
use std::io::process::InheritFd;

fn main() {
    let dst = Path::new(os::getenv("OUT_DIR").unwrap());

    submodule_init();
    submodule_update();
    configure();
    build();
    install(&dst);
    println!("cargo:rustc-flags=-L {} -l termbox:static", dst.join("lib").display());
}

fn submodule_init() {
    let mut cmd = git();
    cmd.arg("submodule");
    cmd.arg("init");
    run(&mut cmd);
}

fn submodule_update() {
    let mut cmd = git();<commit_msg>Make sure this is a git repo<commit_after>use std::os;
use std::io::Command;
use std::io::process::InheritFd;

fn main() {
    let dst = Path::new(os::getenv("OUT_DIR").unwrap());

    init();
    submodule_init();
    submodule_update();
    configure();
    build();
    install(&dst);
    println!("cargo:rustc-flags=-L {} -l termbox:static", dst.join("lib").display());
}

fn init() {
    let mut cmd = git();
    cmd.arg("init");
    run(&mut cmd);
}

fn submodule_init() {
    let mut cmd = git();
    cmd.arg("submodule");
    cmd.arg("init");
    run(&mut cmd);
}

fn submodule_update() {
    let mut cmd = git();
{'fraction_non_alphanumeric': 0.20704845814977973, 'fraction_numerical': 0.0, 'mean_word_length': 3.6178861788617884, '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': '269155', 'n_tokens_mistral': 406, 'n_tokens_neox': 405, 'n_words': 87}