<commit_before>package roart.zkutil;

import java.util.List;
import java.util.concurrent.CountDownLatch;

import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooDefs.Ids;

import roart.util.Constants;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ZKMessageUtil {

    static Logger log = LoggerFactory.getLogger(ZKMessageUtil.class);

    public static List<String> getChildren(String dir, Watcher watcher) throws KeeperException, InterruptedException {
	    try {
	        return ZKInitialize.zk.getChildren(dir, watcher);
	    } catch (KeeperException.NoNodeException e){
	        throw e;
	    }
	}<commit_msg>Check exist.<commit_after>package roart.zkutil;

import java.util.List;
import java.util.concurrent.CountDownLatch;

import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooDefs.Ids;
import org.apache.zookeeper.data.Stat;

import roart.util.Constants;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ZKMessageUtil {

    static Logger log = LoggerFactory.getLogger(ZKMessageUtil.class);

    public static List<String> getChildren(String dir, Watcher watcher) throws KeeperException, InterruptedException {
	    try {
	        Stat i = ZKInitialize.zk.exists(null, false);
	        return ZKInitialize.zk.getChildren(dir, watcher);
	    } catch (KeeperException.NoNodeException e){
	        throw e;
	    }
	}
{'fraction_non_alphanumeric': 0.09388249545729861, 'fraction_numerical': 0.0024227740763173833, 'mean_word_length': 4.562289562289562, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '416390', 'n_tokens_mistral': 544, 'n_tokens_neox': 524, 'n_words': 103}