<commit_before>#!/usr/bin/env bash

set -o errexit

if [ -z "${EXTERNAL_PUBLIC_IP}" ]; then

  SECONDS=0
  END_TIME=$((SECONDS+60))

  while [ ${SECONDS} -lt ${END_TIME} ];do
      echo "Trying to get loadbalancer IP address"

      EXTERNAL_PUBLIC_IP=$(kubectl get service -n istio-system istio-ingressgateway -o jsonpath="{.status.loadBalancer.ingress[0].ip}")

      if [ "${EXTERNAL_PUBLIC_IP}" ]; then
          echo "External public IP address is ${EXTERNAL_PUBLIC_IP}"
          break
      fi
      
      sleep 10
  done
fi
<commit_msg>Allow to pass ingressgateway service name (#2186)<commit_after>#!/usr/bin/env bash

set -o errexit

if [ -z "${INGRESSGATEWAY_SERVICE_NAME}" ]; then
  INGRESSGATEWAY_SERVICE_NAME=istio-ingressgateway
fi

if [ -z "${EXTERNAL_PUBLIC_IP}" ]; then

  SECONDS=0
  END_TIME=$((SECONDS+60))

  while [ ${SECONDS} -lt ${END_TIME} ];do
      echo "Trying to get loadbalancer IP address"

      EXTERNAL_PUBLIC_IP=$(kubectl get service -n istio-system ${INGRESSGATEWAY_SERVICE_NAME} -o jsonpath="{.status.loadBalancer.ingress[0].ip}")

      if [ "${EXTERNAL_PUBLIC_IP}" ]; then
          echo "External public IP address is ${EXTERNAL_PUBLIC_IP}"
          break
      fi
      
      sleep 10
  done
fi

{'fraction_non_alphanumeric': 0.12580645161290321, 'fraction_numerical': 0.012903225806451613, 'mean_word_length': 3.2354948805460753, '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': '3809760', 'n_tokens_mistral': 473, 'n_tokens_neox': 458, 'n_words': 106}