<commit_before>DIR=`readlink -f $0`
DIR=`dirname $DIR`

ZK_CLI="$DIR/../../arcus/zookeeper/bin/zkCli.sh"
ZK_ADDR="-server localhost:2181"

$ZK_CLI $ZK_ADDR create /arcus_1_7 0

$ZK_CLI $ZK_ADDR create /arcus_1_7/client_list 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/client_list/test 0

$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_log 0

$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_list 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_list/test 0
# ehpemeral znode = <group>^M^<ip:port-hostname> 0 // created by cache node
# ehpemeral znode = <group>^S^<ip:port-hostname> 0 // created by cache node

$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_group 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_group/test 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_group/test/g0 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_group/test/g0/lock 0
# ehpemeral/sequence znode = <nodeip:port>^<listenip:port>^<sequence> 0
# ehpemeral/sequence znode = <nodeip:port>^<listenip:port>^<sequence> 0

$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_mapping 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_mapping/127.0.0.1:11215 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_mapping/127.0.0.1:11215/test^g0^127.0.0.1:20125^ 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_mapping/127.0.0.1:11216 0
$ZK_CLI $ZK_ADDR create /arcus_1_7/cache_server_mapping/127.0.0.1:11216/test^g0^127.0.0.1:20126^ 0<commit_msg>Change repl cluster's root znode name: arcus_1_7 => arcus_repl.<commit_after>DIR=`readlink -f $0`
DIR=`dirname $DIR`

ZK_CLI="$DIR/../../arcus/zookeeper/bin/zkCli.sh"
ZK_ADDR="-server localhost:2181"

$ZK_CLI $ZK_ADDR create /arcus_repl 0

$ZK_CLI $ZK_ADDR create /arcus_repl/client_list 0
$ZK_CLI $ZK_ADDR create /arcus_repl/client_list/test 0

$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_log 0

$ZK_CLI $ZK_ADDR create /arcus_repl/cache_list 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_list/test 0
# ehpemeral znode = <group>^M^<ip:port-hostname> 0 // created by cache node
# ehpemeral znode = <group>^S^<ip:port-hostname> 0 // created by cache node

$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_group 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_group/test 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_group/test/g0 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_group/test/g0/lock 0
# ehpemeral/sequence znode = <nodeip:port>^<listenip:port>^<sequence> 0
# ehpemeral/sequence znode = <nodeip:port>^<listenip:port>^<sequence> 0

$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping/127.0.0.1:11215 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping/127.0.0.1:11215/test^g0^127.0.0.1:20125^ 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping/127.0.0.1:11216 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping/127.0.0.1:11216/test^g0^127.0.0.1:20126^ 0
{'fraction_non_alphanumeric': 0.13089005235602094, 'fraction_numerical': 0.07678883071553229, 'mean_word_length': 5.8238095238095235, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, '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': '5366063', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1345, 'n_words': 220}