<commit_before>#!/bin/bash -e
# Begin service ENV variables
export SHIPPABLE_START_POSTGRES=true;
export SHIPPABLE_POSTGRES_PORT=5432;
export SHIPPABLE_POSTGRES_VERSION="9.4";
export SHIPPABLE_POSTGRES_BINARY="/usr/lib/postgresql/$SHIPPABLE_POSTGRES_VERSION/bin/postgres";
export SHIPPABLE_POSTGRES_CMD="sudo -u postgres $SHIPPABLE_POSTGRES_BINARY -c config_file=/etc/postgresql/$SHIPPABLE_POSTGRES_VERSION/main/postgresql.conf";

# End service ENV variables

#
# Function to START
#
start_service() {
  start_generic_service "postgres" "$SHIPPABLE_POSTGRES_BINARY" "$SHIPPABLE_POSTGRES_CMD" "$SHIPPABLE_POSTGRES_PORT";
}

#
# Function to STOP
#
stop_service() {
  sudo kill -INT $(pgrep -f postgresql)
}

source /u14pls/test/function_start_generic.sh
#
# Call to start service
#
echo "================= Starting postgres ==================="<commit_msg>adding a 30 sec sleep before postgres is killed<commit_after>#!/bin/bash -e
# Begin service ENV variables
export SHIPPABLE_START_POSTGRES=true;
export SHIPPABLE_POSTGRES_PORT=5432;
export SHIPPABLE_POSTGRES_VERSION="9.4";
export SHIPPABLE_POSTGRES_BINARY="/usr/lib/postgresql/$SHIPPABLE_POSTGRES_VERSION/bin/postgres";
export SHIPPABLE_POSTGRES_CMD="sudo -u postgres $SHIPPABLE_POSTGRES_BINARY -c config_file=/etc/postgresql/$SHIPPABLE_POSTGRES_VERSION/main/postgresql.conf";

# End service ENV variables

#
# Function to START
#
start_service() {
  start_generic_service "postgres" "$SHIPPABLE_POSTGRES_BINARY" "$SHIPPABLE_POSTGRES_CMD" "$SHIPPABLE_POSTGRES_PORT";
}

#
# Function to STOP
#
stop_service() {
  sleep 30
  sudo kill -INT $(pgrep -f postgresql)
}

source /u14pls/test/function_start_generic.sh
#
# Call to start service
#
echo "================= Starting postgres ==================="
{'fraction_non_alphanumeric': 0.13804905875641757, 'fraction_numerical': 0.011409013120365089, 'mean_word_length': 7.158139534883721, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3780709', 'n_tokens_mistral': 670, 'n_tokens_neox': 643, 'n_words': 116}