<commit_before><?php

include 'config.php';

$path = '/';
if (isset($_GET['path']))
    $path = $_GET['path'];

$zookeeper = new \Zookeeper($GLOBALS['globalZookeeperHosts']);

$children = $zookeeper->getChildren($path);
?>
<ul>
<?php
if ($path != '/') {
?>
<li><a href="?path=<?php echo dirname($path); ?>">..</a></li>
<?php
}
if (is_array($children)) foreach ($children as $child) {
    echo '<li><a href="?path=' . urlencode(rtrim($path, '/') . '/' . $child) . '">' . $child . '</a></li>';
}
?>
</ul>
<pre>
<?php
$value = $zookeeper->get($path);
echo $value;
?>
</pre>
<commit_msg>change requirements from php-zookeeper to libzookeeper<commit_after><?php

include 'config.php';

$path = '/';
if (isset($_GET['path']))
    $path = $_GET['path'];

$zookeeper = new \ZookeeperClient();
$zookeeper->connect($GLOBALS['globalZookeeperHosts']);
$children = $zookeeper->getChildren($path);
?>
<ul>
<?php
if ($path != '/') {
?>
<li><a href="?path=<?php echo dirname($path); ?>">..</a></li>
<?php
}
if (is_array($children)) foreach ($children as $child) {
    echo '<li><a href="?path=' . urlencode(rtrim($path, '/') . '/' . $child) . '">' . $child . '</a></li>';
}
?>
</ul>
<pre>
<?php
$value = $zookeeper->get($path);
echo $value;
?>
</pre>

{'fraction_non_alphanumeric': 0.2890688259109312, 'fraction_numerical': 0.0, 'mean_word_length': 4.775700934579439, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 42, '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': '6215121', 'n_tokens_mistral': 488, 'n_tokens_neox': 488, 'n_words': 94}