<commit_before>#!/bin/sh

std="$1"
shift
cod="$*"

result=0

for l in $top_builddir/lib/lib*-*.so; do \
	readelf -D -W -s $l | \
	egrep -v "(UND|LOCAL|^Symbol table for image:|^[[:space:]]*Num[[:space:]])" | \
	$AWK '{print $NF}'; \
	done | sort | uniq > $uclibc_out
for code in $cod; do cat $code.$std.syms; done | sort | uniq > $glibc_out
result=0
exit $result
<commit_msg>test: ignore undefined symbols for API<commit_after>#!/bin/sh

std="$1"
shift
cod="$*"

result=0

for l in $top_builddir/lib/lib*-*.so; do \
	readelf -D -W -s $l | \
	$AWK '
/^[[:space:]]*[[:digit:]]/ { if ($8 != "UND") print $NF; }
'; \
	done | sort | uniq > $uclibc_out
for code in $cod; do cat $code.$std.syms; done | sort | uniq > $glibc_out
result=0
exit $result

{'fraction_non_alphanumeric': 0.22207267833109018, 'fraction_numerical': 0.009421265141318977, 'mean_word_length': 3.65, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7278247', 'n_tokens_mistral': 329, 'n_tokens_neox': 325, 'n_words': 87}