<commit_before>mod init;
mod build;
mod serve;

pub use self::init::create_new_project;
pub use self::build::build;
pub use self::serve::serve;

use gutenberg::Site;

use console::warn;

fn notify_site_size(site: &Site) {
    println!(
        "-> Creating {} pages ({} orphan) and {} sections",
        site.pages.len(),
        site.get_all_orphan_pages().len(),
        site.sections.len()
    );
}

fn warn_about_ignored_pages(site: &Site) {
    let ignored_pages = site.get_ignored_pages();
    if !ignored_pages.is_empty() {
        warn(&format!(
            "{} page(s) ignored (missing date or order in a sorted section):",
            ignored_pages.len()
        ));
        for path in site.get_ignored_pages() {<commit_msg>Do not count the index as a section when printing<commit_after>mod init;
mod build;
mod serve;

pub use self::init::create_new_project;
pub use self::build::build;
pub use self::serve::serve;

use gutenberg::Site;

use console::warn;

fn notify_site_size(site: &Site) {
    println!(
        "-> Creating {} pages ({} orphan) and {} sections",
        site.pages.len(),
        site.get_all_orphan_pages().len(),
        site.sections.len() - 1, // -1 since we do not the index as a section
    );
}

fn warn_about_ignored_pages(site: &Site) {
    let ignored_pages = site.get_ignored_pages();
    if !ignored_pages.is_empty() {
        warn(&format!(
            "{} page(s) ignored (missing date or order in a sorted section):",
            ignored_pages.len()
        ));
        for path in site.get_ignored_pages() {
{'fraction_non_alphanumeric': 0.13817480719794345, 'fraction_numerical': 0.0012853470437017994, 'mean_word_length': 3.0441558441558443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6149953', 'n_tokens_mistral': 506, 'n_tokens_neox': 500, 'n_words': 130}