<commit_before>use driver;

def foo(param rank, Dist, extent) {
  const D: domain(rank) distributed Dist = rankDomain(rank, extent);
  var A: [D] real;

  for i in rankDomain(rank, extent) do
    A(i) = next();
  for i in rankDomain(rank, extent) do
    write(" ", A(i));
  writeln();
}

foo(1, Dist1D, -2..4);
foo(2, Dist2D, -2..3);
foo(3, Dist3D, -2..2);
foo(4, Dist4D, -2..1);
foo(1, Dist1D, 102..107);
foo(2, Dist2D, 102..106);
foo(3, Dist3D, 102..105);
foo(4, Dist4D, 102..104);
foo(2, Dist2D64, -2..+2);
<commit_msg>Fixed a mistype in test_array_accesses2 in which I was missing the index type.<commit_after>use driver;

def foo(param rank, type idxType, Dist, extent) {
  const D: domain(rank, idxType) distributed Dist = rankDomain(rank, extent);
  var A: [D] real;

  for i in rankDomain(rank, extent) do
    A(i) = next();
  for i in rankDomain(rank, extent) do
    write(" ", A(i));
  writeln();
}

foo(1, int, Dist1D, -2..4);
foo(2, int, Dist2D, -2..3);
foo(3, int, Dist3D, -2..2);
foo(4, int, Dist4D, -2..1);
foo(1, int, Dist1D, 102..107);
foo(2, int, Dist2D, 102..106);
foo(3, int, Dist3D, 102..105);
foo(4, int, Dist4D, 102..104);
foo(2, int(64), Dist2D64, -2..+2:int(64));

{'fraction_non_alphanumeric': 0.2060555088309504, 'fraction_numerical': 0.09503784693019345, 'mean_word_length': 3.7983870967741935, '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': '5395030', 'n_tokens_mistral': 557, 'n_tokens_neox': 510, 'n_words': 148}