<commit_before>use {
    // Error,
    // MetaReader,
    Parameter,
    Rule,
    Token,
};

/// Stores information about whitespace.
pub struct Whitespace {
    /// Whether the whitespace is optional or required.
    pub optional: bool,
}

/*
impl MetaReader for Whitespace {
    fn start_node(&mut self, name: &str) -> Option<Error> {
        Some(Error::NotSupported)
    }
    fn end_node(&mut self) -> Option<Error> {
        Some(Error::NotSupported)
    }
    fn start_optional(&mut self) -> Option<Error> {
        Some(Error::NotSupported)
    }
    fn end_optional(&mut self) -> Option<Error>;
    fn start_select(&mut self) -> Option<Error>;
    fn reset_select(&mut self) -> Option<Error>;
    fn end_select(&mut self) -> Option<Error>;
    fn set_as_bool(&mut self, name: &str, val: bool) -> Option<Error>;
    fn set_as_str(&mut self, name: &str, val: &str) -> Option<Error>;
}
*/

/// A hard coded parameter rule for whitespace.
pub static WHITESPACE: Parameter<'static> = Parameter {
    name: "whitespace",
    args: &["optional"],
    value: None,
    body: &[
        Rule::Whitespace(Whitespace { optional: true }),
        Rule::Token(Token {
            text: "whitespace",
            inverted: None,
            predicate: None
        }),
        Rule::Select(&[
            Rule::Token(Token {
                text: "?",<commit_msg>Removed some old code<commit_after>use {
    // Error,
    // MetaReader,
    Parameter,
    Rule,
    Token,
};

/// Stores information about whitespace.
pub struct Whitespace {
    /// Whether the whitespace is optional or required.
    pub optional: bool,
}

/// A hard coded parameter rule for whitespace.
pub static WHITESPACE: Parameter<'static> = Parameter {
    name: "whitespace",
    args: &["optional"],
    value: None,
    body: &[
        Rule::Whitespace(Whitespace { optional: true }),
        Rule::Token(Token {
            text: "whitespace",
            inverted: None,
            predicate: None
        }),
        Rule::Select(&[
            Rule::Token(Token {
                text: "?",
{'fraction_non_alphanumeric': 0.13761467889908258, 'fraction_numerical': 0.0, 'mean_word_length': 2.3419354838709676, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 23, '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': '576034', 'n_tokens_mistral': 629, 'n_tokens_neox': 622, 'n_words': 166}