<commit_before>#!/bin/bash

for name in $(find packages -name node_modules -prune -o -name 'cardpay-subgraph' -prune -o -name 'tsconfig.json' -print); do
  {
  cd $(dirname $name)
  if grep -q "@glint" "package.json"; then
    yarn -s glint
  else
    yarn -s tsc --noEmit
  fi
  code=$?
  [ $code -eq 0 ] && echo PASS "$name" || echo FAIL "$name"
  exit $code
  } &

done

combined_exit=0
for pid in $(jobs -p); do
  wait "$pid"
  code=$?
  if [ "$code" != "0" ]; then
    combined_exit=$code
  fi
done

exit $combined_exit
<commit_msg>Remove safe-tools-subgraph from typechecking too<commit_after>#!/bin/bash

for name in $(find packages -name node_modules -prune -o -name '*-subgraph' -prune -o -name 'tsconfig.json' -print); do
  {
  cd $(dirname $name)
  if grep -q "@glint" "package.json"; then
    yarn -s glint
  else
    yarn -s tsc --noEmit
  fi
  code=$?
  [ $code -eq 0 ] && echo PASS "$name" || echo FAIL "$name"
  exit $code
  } &

done

combined_exit=0
for pid in $(jobs -p); do
  wait "$pid"
  code=$?
  if [ "$code" != "0" ]; then
    combined_exit=$code
  fi
done

exit $combined_exit

{'fraction_non_alphanumeric': 0.16047144152311876, 'fraction_numerical': 0.005439709882139619, 'mean_word_length': 2.846689895470383, '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': '5252848', 'n_tokens_mistral': 444, 'n_tokens_neox': 434, 'n_words': 140}