<commit_before>#!/bin/bash

if [ "${GROWSTUFF_ELASTICSEARCH}" = "true" ]; then
  set -euv
  sudo dpkg -r elasticsearch
  curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.0/elasticsearch-2.4.0.deb
  sudo dpkg -i --force-confnew elasticsearch-2.4.0.deb
  sudo service elasticsearch start
  sleep 10
  curl -v localhost:9200
fi<commit_msg>Upgrade to elasticsearch 6.2.3<commit_after>#!/bin/bash

if [ "${GROWSTUFF_ELASTICSEARCH}" = "true" ]; then
  VERSION="6.2.3"
  set -euv
  sudo dpkg -r elasticsearch
  wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${VERSION}.deb
  wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${VERSION}.deb.sha512
  shasum -a 512 -c elasticsearch-${VERSION}.deb.sha512
  sudo dpkg -i elasticsearch-${VERSION}.deb

  sudo service elasticsearch start
  sleep 10
  curl -v localhost:9200
fi
{'fraction_non_alphanumeric': 0.13123644251626898, 'fraction_numerical': 0.039045553145336226, 'mean_word_length': 4.185393258426966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4017237', 'n_tokens_mistral': 356, 'n_tokens_neox': 322, 'n_words': 66}