<commit_before>#!/bin/bash

GRAYLOG_SERVER_SECRET=${GRAYLOG_SERVER_SECRET:-<KEY>}
GRAYLOG_PASSWORD=${GRAYLOG_PASSWORD:-$(echo -n password | shasum -a 256)}


sed -i "s/password_secret .*/password_secret = $GRAYLOG_SERVER_SECRET/" /etc/graylog/server/server.conf

sed -i "s/root_password_sha2 .*/root_password_sha2 = $GRAYLOG_SERVER_SECRET/" /etc/graylog/server/server.conf

sed -i "s#^mongodb_uri .*#mongodb_uri = mongodb://mongo/graylog2#" /etc/graylog/server/server.conf

sed -i "s#^rest_listen_uri .*#rest_listen_uri = http://0.0.0.0:12900/#" /etc/graylog/server/server.conf

sed -i "s#.*elasticsearch_discovery_zen_ping_multicast_enabled.*#elasticsearch_discovery_zen_ping_multicast_enabled = true#" /etc/graylog/server/server.conf
sed -i "s#.*elasticsearch_discovery_zen_ping_unicast_hosts.*#elasticsearch_discovery_zen_ping_unicast_hosts = elastic:9300#" /etc/graylog/server/server.conf



/graylog2/bin/graylogctl run<commit_msg>disable multicast<commit_after>#!/bin/bash

GRAYLOG_SERVER_SECRET=${GRAYLOG_SERVER_SECRET:-<KEY>}
GRAYLOG_PASSWORD=${GRAYLOG_PASSWORD:-$(echo -n password | shasum -a 256)}


sed -i "s/password_secret .*/password_secret = $GRAYLOG_SERVER_SECRET/" /etc/graylog/server/server.conf

sed -i "s/root_password_sha2 .*/root_password_sha2 = $GRAYLOG_SERVER_SECRET/" /etc/graylog/server/server.conf

sed -i "s#^mongodb_uri .*#mongodb_uri = mongodb://mongo/graylog2#" /etc/graylog/server/server.conf

sed -i "s#^rest_listen_uri .*#rest_listen_uri = http://0.0.0.0:12900/#" /etc/graylog/server/server.conf

sed -i "s#.*elasticsearch_discovery_zen_ping_multicast_enabled.*#elasticsearch_discovery_zen_ping_multicast_enabled = false#" /etc/graylog/server/server.conf
sed -i "s#.*elasticsearch_discovery_zen_ping_unicast_hosts.*#elasticsearch_discovery_zen_ping_unicast_hosts = elastic:9300#" /etc/graylog/server/server.conf



/graylog2/bin/graylogctl run
{'fraction_non_alphanumeric': 0.14384656366542356, 'fraction_numerical': 0.021310602024507193, 'mean_word_length': 6.27906976744186, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '115333', 'n_tokens_mistral': 768, 'n_tokens_neox': 732, 'n_words': 88}