<commit_before><?php

# This shows how to use structs from PHP.

Ice_loadProfile();

try {
  $base = $ICE->stringToProxy("Meta:tcp -h 127.0.0.1 -p 6502");
  $meta = $base->ice_checkedCast("::Murmur::Meta");

  $default = $meta->getDefaultConf();

  $server = $meta->getServer(1);
  

  $bans = $server->getBans();
<commit_msg>Update addban to use new Ice init<commit_after><?php

# This shows how to use structs from PHP.

if (Ice_intversion() >= 30400) {
  require 'Ice.php';
  require 'Murmur.php';
} else {
  Ice_loadProfile();
}

try {
  if (Ice_intversion() >= 30400) {
    $ICE = Ice_initialize();
  }

  $base = $ICE->stringToProxy("Meta:tcp -h 127.0.0.1 -p 6502");
  $meta = $base->ice_checkedCast("::Murmur::Meta");

  $default = $meta->getDefaultConf();

  $server = $meta->getServer(1);
  

  $bans = $server->getBans();

{'fraction_non_alphanumeric': 0.1935096153846154, 'fraction_numerical': 0.038461538461538464, 'mean_word_length': 3.9, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2926437', 'n_tokens_mistral': 347, 'n_tokens_neox': 318, 'n_words': 69}