<commit_before># Copyright (C) 2013, Parrot Foundation.

=head1 NAME

examples/benchmarks/sort.pir - Sort an FixedIntegerArray of N integers

=head1 SYNOPSIS

    % time ./parrot examples/benchmarks/sort_fia.pir 100000

Or use the default number of iterations:

    % time ./parrot examples/benchmarks/sort_fia.pir

=head1 DESCRIPTION

Sorts an FixedIntegetArray of N random integers using builtin sort
function for FixedIntegetArray. The argument N is specified from the
command line.

=cut

.loadlib 'math_ops'

.sub main :main
  .param pmc argv
  .local int N, i, j

  N = argv[1]
  if N < 1 goto USE_DEFAULT_SIZE
  goto USE_DEFINED_SIZE
<commit_msg>[GH #175] Correct typo in sort_fia.pir POD<commit_after># Copyright (C) 2013, Parrot Foundation.

=head1 NAME

examples/benchmarks/sort.pir - Sort an FixedIntegerArray of N integers

=head1 SYNOPSIS

    % time ./parrot examples/benchmarks/sort_fia.pir 100000

Or use the default number of iterations:

    % time ./parrot examples/benchmarks/sort_fia.pir

=head1 DESCRIPTION

Sorts an FixedIntegerArray of N random integers using builtin sort
function for FixedIntegerArray. The argument N is specified from the
command line.

=cut

.loadlib 'math_ops'

.sub main :main
  .param pmc argv
  .local int N, i, j

  N = argv[1]
  if N < 1 goto USE_DEFAULT_SIZE
  goto USE_DEFINED_SIZE

{'fraction_non_alphanumeric': 0.06891385767790262, 'fraction_numerical': 0.024719101123595506, 'mean_word_length': 3.8405797101449277, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4869947', 'n_tokens_mistral': 500, 'n_tokens_neox': 435, 'n_words': 162}