<commit_before>#!/bin/bash

export OCL_ICD_DEBUG=15
export OCL_ICD_VENDORS=vendors

NAME="$(basename "$0")"

./run_dummy_icd_through_our_ICDL | \
	tee >(grep "^-1 :" > "$NAME".error )

# wait for file creation if any
sleep 0.5

if test -s "$NAME".error ; then
  echo 1>&2 "========================"
  echo 1>&2 "Functions that cannot be called:"
  cat 1>&2 "$NAME".error
  rm "$NAME".error
  exit 1
fi
rm "$NAME".error<commit_msg>Whitelist known missing functions in ICD Loader<commit_after>#!/bin/bash

export OCL_ICD_DEBUG=15
export OCL_ICD_VENDORS=vendors

NAME="$(basename "$0")"

# clIcdGetPlatformIDsKHR is only for ICDs, not for ICD Loaders
# clSetPrintfCallback: CL 1.2, never found...
# clCreateEventFromGLsyncKHR: CL 1.1, never found...
./run_dummy_icd_through_our_ICDL | \
	tee >(grep "^-1 :" \
	| grep -v '^-1 : clSetPrintfCallback$' \
	| grep -v '^-1 : clIcdGetPlatformIDsKHR$' \
	| grep -v '^-1 : clCreateEventFromGLsyncKHR$' \
	> "$NAME".error )

# wait for file creation if any
sleep 0.5

if test -s "$NAME".error ; then
  echo 1>&2 "========================"
  echo 1>&2 "Functions that cannot be called:"
  cat 1>&2 "$NAME".error
  rm "$NAME".error
  exit 1
fi
rm "$NAME".error
{'fraction_non_alphanumeric': 0.18744769874476988, 'fraction_numerical': 0.027615062761506277, 'mean_word_length': 4.133047210300429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6417095', 'n_tokens_mistral': 481, 'n_tokens_neox': 449, 'n_words': 126}