<commit_before>#!/bin/bash
set -e
. /var/lib/jenkins/jobs/master.get_branch_repo/workspace/big-data/pack-funcs

productName=elasticsearch
downloadFileAndMakeChanges() {
	initializeVariables $1

	tempDirectory=$BASE/$fileName/

	esVersion=1.2.1

	# Create directories that are required for the debian package
    mkdir -p $tempDirectory

	wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$esVersion.deb -P $tempDirectory

	# export all files insdie debian file except DEBIAN folder
	dpkg-deb -x $fileName/elasticsearch-$esVersion.deb $fileName/


	if [ -f $BASE/$fileName/opt/README ]; then
	        rm $BASE/$fileName/opt/README
	fi
	# unpack tar ball and make changes 
	pushd $tempDirectory
	# remove debian file
	rm *.deb

	# replace configuration file
	rm $BASE/$fileName/etc/elasticsearch/elasticsearch.yml<commit_msg>SUBUTAI-1033 update elasticsearch pack.sh script<commit_after>#!/bin/bash
set -e
. /var/lib/jenkins/jobs/master.get_branch_repo/workspace/big-data/pack-funcs

productName=elasticsearch
downloadFileAndMakeChanges() {
	initializeVariables $1

	tempDirectory=$BASE/$fileName/

	esVersion=1.2.1

	# Create directories that are required for the debian package
    mkdir -p $tempDirectory

	wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$esVersion.deb -P $tempDirectory

	# export all files insdie debian file except DEBIAN folder
	dpkg-deb -x $BASE/$fileName/elasticsearch-$esVersion.deb $fileName/


	if [ -f $BASE/$fileName/opt/README ]; then
	        rm $BASE/$fileName/opt/README
	fi
	# unpack tar ball and make changes 
	pushd $tempDirectory
	# remove debian file
	rm *.deb

	# replace configuration file
	rm $BASE/$fileName/etc/elasticsearch/elasticsearch.yml
{'fraction_non_alphanumeric': 0.10051399200456881, 'fraction_numerical': 0.006853226727584237, 'mean_word_length': 4.374233128834356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '516957', 'n_tokens_mistral': 565, 'n_tokens_neox': 540, 'n_words': 131}