<commit_before>//! Structural representations of regular patterns.
//!
//! ## Atoms
//!
//! Patterns are parameterized by the _kind_ of thing &mdash; bounded by the
//! [`Atom`][Atom] trait &mdash; those patterns describe; regular expressions,
//! for example, are usually patterns of characters.  Like their real-world
//! counterparts, `Atom`s are indivisible: they represent the smallest unit
//! that will be analyzed by any algorithm.
//!
//! Atom and its prerequisites are implemented for all of Rust's primitive
//! types; the crate also provides a [`ByteOrChar`][ByteOrChar] atom type,
//! which is capable of representing either a `u8` or a `char` and is suitable
//! for use with mixed binary/UTF-8 patterns.
//!
//! [Atom]: trait.Atom.html
//! [ByteOrChar]: enum.ByteOrChar.html
//!
//! ### `Distance` and `Step`
//!
//! If an atom is to be used in range-like constructs like
//! [`ClassMember`][ClassMember]`::Range`, it must have implementations of the
//! [`Distance`][Distance] and [`Step`][Step] traits available.  These traits
//! allow iterating over ranges of values of types that implement them.
//!
//! [ClassMember]: enum.ClassMember.html
//! [Step]: trait.Step.html
//! [Distance]: trait.Distance.html
//!
//! ## Pattern types
//!
//! Alone, an atom matches only itself; other the variants of the
//! [`Element`][Element] are what provides the capability to specify arbitrary
//! regular patterns.  For more details about these variants, visit
//! `Element`'s documentation.<commit_msg>pattern: tweak reference to ClassMember::Range for better rendering<commit_after>//! Structural representations of regular patterns.
//!
//! ## Atoms
//!
//! Patterns are parameterized by the _kind_ of thing &mdash; bounded by the
//! [`Atom`][Atom] trait &mdash; those patterns describe; regular expressions,
//! for example, are usually patterns of characters.  Like their real-world
//! counterparts, `Atom`s are indivisible: they represent the smallest unit
//! that will be analyzed by any algorithm.
//!
//! Atom and its prerequisites are implemented for all of Rust's primitive
//! types; the crate also provides a [`ByteOrChar`][ByteOrChar] atom type,
//! which is capable of representing either a `u8` or a `char` and is suitable
//! for use with mixed binary/UTF-8 patterns.
//!
//! [Atom]: trait.Atom.html
//! [ByteOrChar]: enum.ByteOrChar.html
//!
//! ### `Distance` and `Step`
//!
//! If an atom is to be used in range-like constructs like the `Range` variant
//! of [`ClassMember`][ClassMember], it must have implementations of the
//! [`Distance`][Distance] and [`Step`][Step] traits available.  These traits
//! allow iterating over ranges of values of types that implement them.
//!
//! [ClassMember]: enum.ClassMember.html
//! [Step]: trait.Step.html
//! [Distance]: trait.Distance.html
//!
//! ## Pattern types
//!
//! Alone, an atom matches only itself; other the variants of the
//! [`Element`][Element] are what provides the capability to specify arbitrary
//! regular patterns.  For more details about these variants, visit
//! `Element`'s documentation.
{'fraction_non_alphanumeric': 0.14355152300712898, 'fraction_numerical': 0.0012961762799740765, 'mean_word_length': 3.9471153846153846, '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': '764127', 'n_tokens_mistral': 900, 'n_tokens_neox': 810, 'n_words': 360}