<commit_before><?php
namespace strings\mb_strlen_001;

function test() {
  for ($i = 0; $i < 10; $i++) {
    if (\mb_strlen(\random_bytes(16)) != 16) {
      echo "KO";
      return;
    }
  }

  echo "OK";
}

test();<commit_msg>Fix 8bit encoding test<commit_after><?php
namespace strings\mb_strlen_001;

function test() {
  for ($i = 0; $i < 10; $i++) {
    if (\mb_strlen(\random_bytes(16), "8bit") != 16) {
      echo "KO";
      return;
    }
  }

  echo "OK";
}

test();
{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.04631578947368421, 'mean_word_length': 2.808, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6321960', 'n_tokens_mistral': 206, 'n_tokens_neox': 190, 'n_words': 43}