<commit_before>dnl -------------------------------------------------------------
dnl Trilinos 10
dnl -------------------------------------------------------------
AC_DEFUN([CONFIGURE_TRILINOS_10],
[
  if (test "x$TRILINOS_DIR" = "x"); then
    # Ubuntu trilinos package?
    if (test -d /usr/include/trilinos); then
      TRILINOS_DIR=/usr/include/trilinos
    else
      TRILINOS_DIR=no
    fi
  fi

  AC_ARG_WITH(trilinos,
              AS_HELP_STRING([--with-trilinos=PATH],[Specify the path to Trilinos installation]),
              withtrilinosdir=$withval,
              withtrilinosdir=$TRILINOS_DIR)

  if test "$withtrilinosdir" != no ; then
    if (test -r $withtrilinosdir/include/Makefile.export.Trilinos) ; then
      TRILINOS_MAKEFILE_EXPORT=$withtrilinosdir/include/Makefile.export.Trilinos
    elif (test -r $withtrilinosdir/Makefile.export.Trilinos) ; then
      TRILINOS_MAKEFILE_EXPORT=$withtrilinosdir/Makefile.export.Trilinos
    else
      enabletrilinos10=no
    fi

    if test "$enabletrilinos10" != no ; then
       enabletrilinos10=yes
       AC_DEFINE(HAVE_TRILINOS, 1,
                 [Flag indicating whether the library shall be compiled to use the Trilinos solver collection])
       AC_MSG_RESULT(<<< Configuring library with Trilinos 10 support >>>)

       dnl ------------------------------------------------------
       dnl AztecOO
       dnl ------------------------------------------------------
       AC_CHECK_HEADER([$withtrilinosdir/include/AztecOO_config.h],
                       [enableaztecoo=yes],
                       [AC_CHECK_HEADER([$withtrilinosdir/AztecOO_config.h],
                                        [enableaztecoo=yes],
                                        [AC_CHECK_HEADER([$withtrilinosdir/packages/aztecoo/src/AztecOO_config.h],
                                                         [enableaztecoo=yes],
                                                         [enableaztecoo=no])
                                                         ])])

       if test "$enableaztecoo" != no ; then
          AC_DEFINE(HAVE_AZTECOO, 1,
                    [Flag indicating whether the library shall be compiled to use the Trilinos AztecOO linear solver])
          AC_MSG_RESULT(<<< Configuring library with AztecOO support >>>)
       fi

       dnl ------------------------------------------------------
       dnl NOX
       dnl ------------------------------------------------------
       AC_CHECK_HEADER([$withtrilinosdir/include/NOX_Config.h],
                       [enablenox=yes],
                       [AC_CHECK_HEADER([$withtrilinosdir/NOX_Config.h],
                                        [enablenox=yes],
                                        [AC_CHECK_HEADER([$withtrilinosdir/packages/nox/src/NOX_Config.h],
                                                         [enablenox=yes],
                                                         [enablenox=no])])])

       if test "$enablenox" != no ; then
          AC_DEFINE(HAVE_NOX, 1,
                    [Flag indicating whether the library shall be compiled to use the Trilinos NOX nonlinear solver])
          AC_MSG_RESULT(<<< Configuring library with NOX support >>>)
       fi

       dnl ------------------------------------------------------
       dnl ML - prevent ML from keying on our 'HAVE_PETSC'
       dnl ------------------------------------------------------
       AC_CHECK_HEADER([$withtrilinosdir/include/ml_include.h],
                       [enableml=yes],
                       [AC_CHECK_HEADER([$withtrilinosdir/ml_include.h],
                                        [enableml=yes],
                                        [AC_CHECK_HEADER([$withtrilinosdir/packages/ml/src/ml_config.h],
                                                         [enableml=yes],
                                                         [enableml=no],
[#ifdef HAVE_PETSC
#undef HAVE_PETSC
#endif
])],
[#ifdef HAVE_PETSC
#undef HAVE_PETSC
#endif
])],
[#ifdef HAVE_PETSC
#undef HAVE_PETSC
#endif
])
<commit_msg>Use quadrigraphs in test code to help syntax highlighters.<commit_after>dnl -------------------------------------------------------------
dnl Trilinos 10
dnl -------------------------------------------------------------
AC_DEFUN([CONFIGURE_TRILINOS_10],
[
  if (test "x$TRILINOS_DIR" = "x"); then
    # Ubuntu trilinos package?
    if (test -d /usr/include/trilinos); then
      TRILINOS_DIR=/usr/include/trilinos
    else
      TRILINOS_DIR=no
    fi
  fi

  AC_ARG_WITH(trilinos,
              AS_HELP_STRING([--with-trilinos=PATH],[Specify the path to Trilinos installation]),
              withtrilinosdir=$withval,
              withtrilinosdir=$TRILINOS_DIR)

  if test "$withtrilinosdir" != no ; then
    if (test -r $withtrilinosdir/include/Makefile.export.Trilinos) ; then
      TRILINOS_MAKEFILE_EXPORT=$withtrilinosdir/include/Makefile.export.Trilinos
    elif (test -r $withtrilinosdir/Makefile.export.Trilinos) ; then
      TRILINOS_MAKEFILE_EXPORT=$withtrilinosdir/Makefile.export.Trilinos
    else
      enabletrilinos10=no
    fi

    if test "$enabletrilinos10" != no ; then
       enabletrilinos10=yes
       AC_DEFINE(HAVE_TRILINOS, 1,
                 [Flag indicating whether the library shall be compiled to use the Trilinos solver collection])
       AC_MSG_RESULT(<<< Configuring library with Trilinos 10 support >>>)

       dnl ------------------------------------------------------
       dnl AztecOO
       dnl ------------------------------------------------------
       AC_CHECK_HEADER([$withtrilinosdir/include/AztecOO_config.h],
                       [enableaztecoo=yes],
                       [AC_CHECK_HEADER([$withtrilinosdir/AztecOO_config.h],
                                        [enableaztecoo=yes],
                                        [AC_CHECK_HEADER([$withtrilinosdir/packages/aztecoo/src/AztecOO_config.h],
                                                         [enableaztecoo=yes],
                                                         [enableaztecoo=no])
                                                         ])])

       if test "$enableaztecoo" != no ; then
          AC_DEFINE(HAVE_AZTECOO, 1,
                    [Flag indicating whether the library shall be compiled to use the Trilinos AztecOO linear solver])
          AC_MSG_RESULT(<<< Configuring library with AztecOO support >>>)
       fi

       dnl ------------------------------------------------------
       dnl NOX
       dnl ------------------------------------------------------
       AC_CHECK_HEADER([$withtrilinosdir/include/NOX_Config.h],
                       [enablenox=yes],
                       [AC_CHECK_HEADER([$withtrilinosdir/NOX_Config.h],
                                        [enablenox=yes],
                                        [AC_CHECK_HEADER([$withtrilinosdir/packages/nox/src/NOX_Config.h],
                                                         [enablenox=yes],
                                                         [enablenox=no])])])

       if test "$enablenox" != no ; then
          AC_DEFINE(HAVE_NOX, 1,
                    [Flag indicating whether the library shall be compiled to use the Trilinos NOX nonlinear solver])
          AC_MSG_RESULT(<<< Configuring library with NOX support >>>)
       fi

       dnl ------------------------------------------------------
       dnl ML - prevent ML from keying on our 'HAVE_PETSC' by
       dnl undefining it using the fourth argument to AC_CHECK_HEADER.
       dnl ------------------------------------------------------
       AC_CHECK_HEADER([$withtrilinosdir/include/ml_include.h],
                       [enableml=yes],
                       [AC_CHECK_HEADER([$withtrilinosdir/ml_include.h],
                                        [enableml=yes],
                                        [AC_CHECK_HEADER([$withtrilinosdir/packages/ml/src/ml_config.h],
                                                         [enableml=yes],
                                                         [enableml=no],
                                                         [
                                                         @%:@ifdef HAVE_PETSC
                                                         @%:@undef HAVE_PETSC
                                                         @%:@endif
                                                         ])],
                                        [
                                        @%:@ifdef HAVE_PETSC
                                        @%:@undef HAVE_PETSC
                                        @%:@endif
                                        ])],
                       [
                       @%:@ifdef HAVE_PETSC
                       @%:@undef HAVE_PETSC
                       @%:@endif
                       ])

{'fraction_non_alphanumeric': 0.17395727365208546, 'fraction_numerical': 0.00339097999321804, 'mean_word_length': 1.035426731078905, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 55, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3253122', 'n_tokens_mistral': 2232, 'n_tokens_neox': 2101, 'n_words': 408}