<commit_before>=begin pod

=head1 Rational

    role Rational[::NuT, ::DenomT] does Real { ... }

C<Rational> is the common role for numbers that are stored as pairs of
numerator and denominator. It is parameterized by the types of the numerator
and denominator.

Built into Perl 6 are L<Rat> and L<FatRat>, which both do the C<Rational> role.

=head2 methods

=head3 numerator

Returns the numerator.

=head3 denominator

Returns the denominator.

=head3 nude

Returns a list of the numerator and denominator.

=head3 norm

Returns a normalized Rational object, ie with positive denominator, and
numerator and denominator coprime.

=end pod<commit_msg>[Rational] method signatures; method new<commit_after>=begin pod

=head1 Rational

    role Rational[::NuT, ::DenomT] does Real { ... }

C<Rational> is the common role for numbers that are stored as pairs of
numerator and denominator. It is parameterized by the types of the numerator
and denominator.

Built into Perl 6 are L<Rat> and L<FatRat>, which both do the C<Rational> role.

=head2 methods

=head3 new

    method new(NuT:D $numerator, DenomT:D $denominator) returns Rational:D

Creates a new rational object from numerator and denominator.

=head3 numerator

    method numerator(Rational:D:) returns NuT:D

Returns the numerator.

=head3 denominator

    method denominator(Rational:D:) returns DenomT:D

Returns the denominator.

=head3 nude

    method nude(Rational:D:) returns Positional

Returns a list of the numerator and denominator.

=head3 norm

    method norm(Rational:D:) returns Rational:D

Returns a normalized Rational object, ie with positive denominator, and
numerator and denominator coprime.

=end pod
{'fraction_non_alphanumeric': 0.06765578635014836, 'fraction_numerical': 0.008902077151335312, 'mean_word_length': 4.49185667752443, 'pattern_counts': {'":': 0, '<': 11, '<?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': '606587', 'n_tokens_mistral': 539, 'n_tokens_neox': 495, 'n_words': 217}