<commit_before>#!/usr/bin/env bash

node_broadcast_ip=$1

# By default cqlsh connects to 127.0.0.1.
# In a mutlinode cluster this causes issues with the driver connecting to other nodes
# So, we need to connect to the broadbast IP for that node
<commit_msg>first try at cqlsh<commit_after>#!/usr/bin/env bash

node_broadcast_ip=$1

# By default cqlsh connects to 127.0.0.1.
# In a mutlinode cluster this causes issues with the driver connecting to other nodes
# So, we need to connect to the broadbast IP for that node

mkdir $HOME/.cassandra
set -x; chown cassandra:cassandra $HOME/.cassandra
chmod 777 $HOME/.cassandra
cat <</EOF >$HOME/.cassandra/cqlshrc
[connection]
hostname = $node_broadcast_ip
/EOF
(set -x; chown cassandra:cassandra $HOME/.cassandra/cqlshrc)
(set -x; chmod 755 $HOME/.cassandra/cqlshrc)
{'fraction_non_alphanumeric': 0.09617755856966707, 'fraction_numerical': 0.02466091245376079, 'mean_word_length': 4.561643835616438, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '6508432', 'n_tokens_mistral': 303, 'n_tokens_neox': 283, 'n_words': 100}