<commit_before>#!/bin/sh

if [ "$#" -ne 2 ]; then
  echo "syntax: $0 <TYPE>"
  echo "<TYPE> should be either golang or python"
  echo "<CONFIG> config file shold be one of config the files under ./config/"
  echo "example:"
  echo "./podVertical golang ./config/golang/cluster-limits-pods-per-namespace"
  exit 1
fi

TYPE=$1
CONFIG=$2

long_sleep() {
  local sleep_time=180
  echo "Sleeping for $sleep_time"
  sleep $sleep_time
}

golang_clusterloader() {
  # Export kube config
  export KUBECONFIG=${KUBECONFIG-$HOME/.kube/config}
  # loading cluster based on yaml config file
  /usr/libexec/atomic-openshift/extended.test --ginkgo.focus="Load cluster" --viper-config=$CONFIG<commit_msg>Use the default config if not defined by the user in podvertical<commit_after>#!/bin/sh

if [ "$#" -ne 2 ]; then
  echo "syntax: $0 <TYPE>"
  echo "<TYPE> should be either golang or python"
  echo "<CONFIG> config file shold be one of config the files under ./config/"
  echo "example:"
  echo "./podVertical golang ./config/golang/cluster-limits-pods-per-namespace"
  exit 1
fi

TYPE=$1
CONFIG=$2

# use the default config if it's not defined by the user
if [[ -z "$CONFIG" ]] && [[ "$TYPE" == golang ]]; then
	CONFIG=config/golang/cluster-limits-pods-per-namespace
fi
if [[ -z "$CONFIG" ]] && [[ "$TYPE" == python ]]; then
        CONFIG=config/cluster-limits-pods-per-namespace.yaml
fi

long_sleep() {
  local sleep_time=180
  echo "Sleeping for $sleep_time"
  sleep $sleep_time
}

golang_clusterloader() {
  # Export kube config
  export KUBECONFIG=${KUBECONFIG-$HOME/.kube/config}
  # loading cluster based on yaml config file
  /usr/libexec/atomic-openshift/extended.test --ginkgo.focus="Load cluster" --viper-config=$CONFIG
{'fraction_non_alphanumeric': 0.13853317811408614, 'fraction_numerical': 0.009313154831199068, 'mean_word_length': 3.939655172413793, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4423483', 'n_tokens_mistral': 600, 'n_tokens_neox': 570, 'n_words': 171}