<commit_before>=begin pod

=head1 Binomial Coefficient

Number of ways to choose P objects among N.  It's also the coefficient of the
monome of degree P in the expansion of (1 + X)^N, thus the name.


     N       (N-P+1)*(N-P)*...*N
   (   ) = ∑ -------------------
     P         1*2*...*P


=head1 More

L<http://rosettacode.org/wiki/Evaluate_binomial_coefficients#Perl_6>

=head1 Notable features used

=item infix sub definition
=item reduction meta-operator
=item self-declared parameters
=item range operator with first value excluded
=item Zip metaoperator with an infinite liste on the right side
=item use of rational numbers as a default

=end pod

sub infix:<choose> { [*] $^n - $^p ^.. $n Z/ 1 .. * }
 
say 5 choose 3;
<commit_msg>fixed typo<commit_after>=begin pod

=head1 Binomial Coefficient

Number of ways to choose P objects among N.  It's also the coefficient of the
monome of degree P in the expansion of (1 + X)^N, thus the name.


     N       (N-P+1)*(N-P)*...*N
   (   ) = ∑ -------------------
     P         1*2*...*P


=head1 More

L<http://rosettacode.org/wiki/Evaluate_binomial_coefficients#Perl_6>

=head1 Notable features used

=item infix sub definition
=item reduction meta-operator
=item self-declared parameters
=item range operator with first value excluded
=item Zip metaoperator with an infinite list on the right side
=item use of rational numbers as a default

=end pod

sub infix:<choose> { [*] $^n - $^p ^.. $n Z/ 1 .. * }
 
say 5 choose 3;

{'fraction_non_alphanumeric': 0.1307277628032345, 'fraction_numerical': 0.014824797843665768, 'mean_word_length': 2.8671875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5206162', 'n_tokens_mistral': 516, 'n_tokens_neox': 477, 'n_words': 189}