<commit_before>// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.

//! Implementation of the `rpn_fn` attribute macro.
//!
//! The macro should be applied to a function:
//!
//! ```rust
//! #[rpn_fn]
//! fn foo(x: &Option<u32>) -> Result<Option<u8>> {
//!     Ok(None)
//! }
//! ```
//!<commit_msg>tidb_query_codegen: fix doc tests (#5505)<commit_after>// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.

//! Implementation of the `rpn_fn` attribute macro.
//!
//! The macro should be applied to a function:
//!
//! ```ignore
//! #[rpn_fn]
//! fn foo(x: &Option<u32>) -> Result<Option<u8>> {
//!     Ok(None)
//! }
//! ```
//!
{'fraction_non_alphanumeric': 0.22188449848024316, 'fraction_numerical': 0.03343465045592705, 'mean_word_length': 3.042944785276074, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '7653018', 'n_tokens_mistral': 259, 'n_tokens_neox': 227, 'n_words': 64}