<commit_before>macro_rules! implement_sender {
  (name => $name:ident, 
   wrap => $wrap_type:ident,
   with => $with_type:ident,<commit_msg>Add documentation for channel macro<commit_after>/// Creates an implentation of sender which can be used to share an async channel for multiple message types.
///
/// # Examples
///
/// ```
/// struct D;
/// struct A;
///
/// enum Msg {
///   FirstType(D),
///   SecondType(A)
/// }
///
/// fn main() {
///   let (tx, rx) = channel::<Msg>();
///
///   let d_sender = DSender::create(tx.clone());
///   let a_sender = ASender::create(tx.clone());
///   subscribe(d_sender.clone());
///   subscribe2(d_sender.clone());
///   subscribe3(a_sender.clone());
 //
///   let mut i = 0;
 //
///   for m in rx {
///     i += 1;
///     match m {
///       Msg::FirstType(_) => println!("m: D {}", i),
///       Msg::SecondType(_) => println!("m: A {}", i)
///     };
///   }
/// }
///
/// fn subscribe(sender: DSender) {
///   thread::spawn(move|| {
///       sender.send(D).unwrap();
///   });
/// }
/// fn subscribe2(sender: DSender) {
///   thread::spawn(move|| {
///       thread::sleep(time::Duration::from_millis(10));
///       sender.send(D).unwrap();
///   });
/// }
/// fn subscribe3(sender: ASender) {
///   thread::spawn(move|| {
///       sender.send(A).unwrap();
///   });
/// }
/// implement_sender!(name => DSender, 
///                   wrap => D, 
///                   with => Msg, 
///                   variant => FirstType)
/// implement_sender!(name => ASender, 
///                   wrap => A, 
///                   with => Msg, 
///                   variant => SecondType)
/// ```
macro_rules! implement_sender {
  (name => $name:ident, 
   wrap => $wrap_type:ident,
   with => $with_type:ident,
{'fraction_non_alphanumeric': 0.24216524216524216, 'fraction_numerical': 0.004558404558404558, 'mean_word_length': 1.8368336025848142, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 20, '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': '1735233', 'n_tokens_mistral': 588, 'n_tokens_neox': 576, 'n_words': 114}