<commit_before>#!/bin/bash


results=`kubectl get pods \
  -l app=pachd \
  -o jsonpath='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}' \
  | tr ';' "\n"`

if [ -z "$results" ]; then
  echo "Empty result"
  echo $results
  exit 1
fi


readyPods=`echo $results | tr ' ' "\n" | grep "Ready=True" | wc -l`
allPods=`echo $results | tr ' ' "\n" | grep "Ready=" | wc -l`

if [ "$allPods" -eq 0 ]; then<commit_msg>Pipe readiness check errors to stderr<commit_after>#!/bin/bash


results=`kubectl get pods \
  -l app=pachd \
  -o jsonpath='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}' \
  2>/dev/null | tr ';' "\n"`

if [ -z "$results" ]; then
  echo "Empty result"
  echo $results
  exit 1
fi


readyPods=`echo $results | tr ' ' "\n" | grep "Ready=True" | wc -l`
allPods=`echo $results | tr ' ' "\n" | grep "Ready=" | wc -l`

if [ "$allPods" -eq 0 ]; then
{'fraction_non_alphanumeric': 0.2326315789473684, 'fraction_numerical': 0.005263157894736842, 'mean_word_length': 3.464788732394366, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7562541', 'n_tokens_mistral': 416, 'n_tokens_neox': 386, 'n_words': 95}