<commit_before>.sub main :main

    $S0 = "Hello"
    $I0 = length $S0
    print $I0
    print "\n"

.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:
<commit_msg>#44513: [PATCH] add some POD to examples/tutorial/22_string_ops_length.pir<commit_after>=head1 String Operations (continued)

To find the length of a string in PIR, use the length function.

=cut


.sub main :main

    $S0 = "Hello"
    $I0 = length $S0
    print $I0
    print "\n"

.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:

{'fraction_non_alphanumeric': 0.12310286677908938, 'fraction_numerical': 0.04047217537942664, 'mean_word_length': 3.0408163265306123, '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': '4217736', 'n_tokens_mistral': 245, 'n_tokens_neox': 226, 'n_words': 70}