<commit_before>use clap::Clap;

pub(crate) mod format;
pub mod generate;
pub(crate) mod graph;
pub(crate) mod options;
pub(crate) mod orphans;
pub(crate) mod printer;
pub(crate) mod runner;
pub(crate) mod theme;

#[clap(
    name = "cargo-modules",
    about = "Print a crate's module tree or graph.",
    after_help = r#"
    If neither `--bin` nor `--example` are given,
    then if the project only has one bin target it will be run.
    Otherwise `--bin` specifies the bin target to run.
    At most one `--bin` can be provided.
    "#
)]
#[derive(Clap, Clone, PartialEq, Debug)]
pub enum Command {
    #[clap(
        name = "generate",
        about = "Generate a visualization for a crate's structure."
    )]
    Generate(generate::Command),
}

impl Command {
    pub fn run(&self) -> Result<(), anyhow::Error> {
        match &self {
            Self::Generate(cmd) => cmd.run(),
        }
    }
}<commit_msg>Disabled help hint (for now)<commit_after>use clap::Clap;

pub(crate) mod format;
pub mod generate;
pub(crate) mod graph;
pub(crate) mod options;
pub(crate) mod orphans;
pub(crate) mod printer;
pub(crate) mod runner;
pub(crate) mod theme;

#[clap(
    name = "cargo-modules",
    about = "Print a crate's module tree or graph.",
    // after_help = r#"
    // If neither `--bin` nor `--example` are given,
    // then if the project only has one bin target it will be run.
    // Otherwise `--bin` specifies the bin target to run.
    // At most one `--bin` can be provided.
    // "#
)]
#[derive(Clap, Clone, PartialEq, Debug)]
pub enum Command {
    #[clap(
        name = "generate",
        about = "Generate a visualization for a crate's structure."
    )]
    Generate(generate::Command),
}

impl Command {
    pub fn run(&self) -> Result<(), anyhow::Error> {
        match &self {
            Self::Generate(cmd) => cmd.run(),
        }
    }
}
{'fraction_non_alphanumeric': 0.14339218833600856, 'fraction_numerical': 0.0, 'mean_word_length': 2.7777777777777777, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2671176', 'n_tokens_mistral': 607, 'n_tokens_neox': 617, 'n_words': 212}