<commit_before>#!/bin/bash
mkdir /tmp/es-backups
sudo chown elasticsearch:elasticsearch /tmp/es-backups
echo "path.repo: ['/tmp/es-backups']" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "index.store.type: memory" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "node.name: \"test_node\"" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "network.host: 0.0.0.0" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "http.port: 9200" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "discovery.zen.ping.multicast.enabled: false" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "discovery.zen.ping.unicast.hosts: [\"127.0.0.1\", \"127.0.0.1:9200\"]" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
sudo service elasticsearch restart<commit_msg>trying to change path.repo for elasticsearch<commit_after>#!/bin/bash
sudo mkdir /var/backups/es-backups
sudo chown elasticsearch:elasticsearch /var/backups/es-backups
echo "path.repo: [\"/var/backups/es-backups\"]" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "index.store.type: memory" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "node.name: \"test_node\"" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "network.host: 0.0.0.0" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "http.port: 9200" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "discovery.zen.ping.multicast.enabled: false" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
sudo service elasticsearch restart
{'fraction_non_alphanumeric': 0.14616402116402116, 'fraction_numerical': 0.021164021164021163, 'mean_word_length': 4.62453531598513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6770530', 'n_tokens_mistral': 549, 'n_tokens_neox': 508, 'n_words': 119}