<commit_before>#!/bin/bash

SLEEPTIME=5
MAX_TRY_CONNECT_TIME=60

cumulative_wait_time=0
echo "Try to join master..."
while [ $cumulative_wait_time -lt $MAX_TRY_CONNECT_TIME ] ; do

  # Try to join the master
  kubeadm join --token ${kubeadm_token} ${master_ip}
  # If join exit code was OK then exit loop
  if [ $? -eq 0 ]; then
    echo "Joinined the master..."
    exit 0
  fi

  echo "Sleep $SLEEPTIME before trying to join master again..."
  sleep $SLEEPTIME
  (( cumulative_wait_time += SLEEPTIME ))

done

echo "Could not join to master in $MAX_TRY_CONNECT_TIME seconds" >&2
exit 1
<commit_msg>increased waiting time<commit_after>#!/bin/bash

SLEEPTIME=5 # Sec
MAX_TRY_CONNECT_TIME=600 # Sec

cumulative_wait_time=0
echo "Try to join master..."
while [ $cumulative_wait_time -lt $MAX_TRY_CONNECT_TIME ] ; do

  # Try to join the master
  kubeadm join --token ${kubeadm_token} ${master_ip}
  # If join exit code was OK then exit loop
  if [ $? -eq 0 ]; then
    echo "Joinined the master..."
    exit 0
  fi

  echo "Sleep $SLEEPTIME before trying to join master again..."
  sleep $SLEEPTIME
  (( cumulative_wait_time += SLEEPTIME ))

done

echo "Could not join to master in $MAX_TRY_CONNECT_TIME seconds" >&2
exit 1

{'fraction_non_alphanumeric': 0.09983633387888707, 'fraction_numerical': 0.013911620294599018, 'mean_word_length': 3.722007722007722, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '184042', 'n_tokens_mistral': 454, 'n_tokens_neox': 439, 'n_words': 144}