<commit_before>## $Id$

=head1 NAME

src/builtins/io.pir - Perl6 builtins for I/O

=head1 Functions

=over 4

=cut

.namespace []

.sub 'print'
    .param pmc args            :slurpy
    .local pmc it
    args.'!flatten'()
    it = iter args
  iter_loop:
    unless it goto iter_end
    $S0 = shift it
    print $S0
    goto iter_loop
  iter_end:
    .return (1)
.end


.sub 'say'
    .param pmc list            :slurpy
    'print'(list :flat)
    print "\n"
    .return (1)
.end


=item printf

Parses a format string and prints formatted output according to it.

=cut<commit_msg>[rakudo]:  Fix problem with null elements passed to print (partial fix RT #61324).<commit_after>## $Id$

=head1 NAME

src/builtins/io.pir - Perl6 builtins for I/O

=head1 Functions

=over 4

=cut

.namespace []

.sub 'print'
    .param pmc args            :slurpy
    .local pmc it
    args.'!flatten'()
    it = iter args
  iter_loop:
    unless it goto iter_end
    $P0 = shift it
    unless null $P0 goto iter_nonull
    $P0 = new 'Failure'
  iter_nonull:
    print $P0
    goto iter_loop
  iter_end:
    .return (1)
.end


.sub 'say'
    .param pmc list            :slurpy
    'print'(list :flat)
    print "\n"
    .return (1)
.end


=item printf

Parses a format string and prints formatted output according to it.

=cut
{'fraction_non_alphanumeric': 0.10328997704667177, 'fraction_numerical': 0.017597551644988524, 'mean_word_length': 2.2618453865336656, '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': '4133804', 'n_tokens_mistral': 502, 'n_tokens_neox': 480, 'n_words': 162}