<commit_before>dnl FTGL_CHECK_FONT()
dnl Look for a TrueType font somewhere on the system. If no font is found,
dnl no big deal, example programs will just require one in the command line.
dnl This finds DejaVu, Bitstream and Microsoft fonts on Debian, Ubuntu, Gentoo,
dnl Fedora, Mandriva, Slackware and OS X systems.
dnl Also, we prefer serif fonts because they have elegant curves that render
dnl well in OpenGL.
dnl
AC_DEFUN([FTGL_CHECK_FONT],
[dnl
AC_MSG_CHECKING(for a TrueType font on the system)

dnl  First try: fontconfig
FONT_FILE="`fc-match -sv serif 2>/dev/null| sed -ne 's/.*\<file:@<:@^"@:>@*"\(@<:@^"@:>@*\)".*/\1/p;tx;d;:x q'`"

dnl  Second try: look into known paths
if test "$FONT_FILE" = ""; then
    for font in \
      DejaVuSerif.ttf VeraSe.ttf DejaVuSans.ttf Vera.ttf \
      times.ttf Times.ttf arial.ttf Arial.ttf; do
        for dir in \
          /usr/share/fonts \
          /usr/share/fonts/truetype \
          /usr/share/fonts/truetype/ttf-dejavu \
          /usr/share/fonts/truetype/ttf-bitstream-vera \
          /usr/share/fonts/TTF \
          /usr/share/fonts/TTF/dejavu \
          /usr/share/fonts/dejavu \
          /usr/share/fonts/ttf-dejavu \
          /usr/share/fonts/ttf-bitstream-vera \
          /usr/X11R6/lib/X11/fonts \
          /usr/X11R6/lib/X11/fonts/TTF; do
            if test -f "$dir/$font"; then FONT_FILE="$dir/$font"; break; fi
        done
        if test "$FONT_FILE" != no; then break; fi
    done<commit_msg>push jwmelto's fix for the sed script error back upstream into ftgl<commit_after>dnl FTGL_CHECK_FONT()
dnl Look for a TrueType font somewhere on the system. If no font is found,
dnl no big deal, example programs will just require one in the command line.
dnl This finds DejaVu, Bitstream and Microsoft fonts on Debian, Ubuntu, Gentoo,
dnl Fedora, Mandriva, Slackware and OS X systems.
dnl Also, we prefer serif fonts because they have elegant curves that render
dnl well in OpenGL.
dnl
AC_DEFUN([FTGL_CHECK_FONT],
[dnl
AC_MSG_CHECKING(for a TrueType font on the system)

dnl  First try: fontconfig
FONT_FILE="`fc-match -sv serif 2>/dev/null| sed -ne 's/.*\file:@<:@^"@:>@*"\(@<:@^"@:>@*\)".*/\1/p
tx
d
:x
q'`"

dnl  Second try: look into known paths
if test "$FONT_FILE" = ""; then
    for font in \
      DejaVuSerif.ttf VeraSe.ttf DejaVuSans.ttf Vera.ttf \
      times.ttf Times.ttf arial.ttf Arial.ttf; do
        for dir in \
          /usr/share/fonts \
          /usr/share/fonts/truetype \
          /usr/share/fonts/truetype/ttf-dejavu \
          /usr/share/fonts/truetype/ttf-bitstream-vera \
          /usr/share/fonts/TTF \
          /usr/share/fonts/TTF/dejavu \
          /usr/share/fonts/dejavu \
          /usr/share/fonts/ttf-dejavu \
          /usr/share/fonts/ttf-bitstream-vera \
          /usr/X11R6/lib/X11/fonts \
          /usr/X11R6/lib/X11/fonts/TTF; do
            if test -f "$dir/$font"; then FONT_FILE="$dir/$font"; break; fi
        done
        if test "$FONT_FILE" != no; then break; fi
    done
{'fraction_non_alphanumeric': 0.1262071262071262, 'fraction_numerical': 0.007992007992007992, 'mean_word_length': 2.4568469505178365, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, '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': '555569', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1113, 'n_words': 303}