<commit_before>AC_DEFUN([AX_BOOST_PYTHON],
[
	ax_boost_python_stored_ldflags="$LDFLAGS"
	ax_boost_python_stored_cppflags="$CPPFLAGS"
	
	AC_REQUIRE([AX_BOOST_PREFIX])
	AC_REQUIRE([AX_PYTHON_DEVEL])
	AX_BOOST_LIB([ax_boost_python_lib], [boost_python])
	
	CPPFLAGS="$ax_boost_python_stored_cppflags $PYTHON_CPPFLAGS"
	LDFLAGS="$ax_boost_python_stored_ldflags $BOOST_LDFLAGS -l$ax_boost_python_lib $PYTHON_LDFLAGS"

	ax_have_boost_python="yes"
	AX_BOOST_HEADER([python.hpp], [], [ax_have_boost_python="no"])
	
	AC_MSG_CHECKING([link with boost::python])
	AC_LANG_SAVE()
	AC_LANG([C++])
	AC_LINK_IFELSE(
		[ AC_LANG_PROGRAM([#include <boost/python.hpp>], [boost::python::str s;]) ],
		[ AC_MSG_RESULT(yes) ], 
		[ AC_MSG_RESULT(no); ax_have_boost_python="no" ])
	AC_LANG_RESTORE()
	
	CPPFLAGS="$ax_boost_python_stored_cppflags"
	LDFLAGS="$ax_boost_python_stored_ldflags"
	
	if test "f$ax_have_boost_python" = "fyes"; then
		ifelse([$1], , :, [$1])
		AC_SUBST([BOOST_PYTHON_LDFLAGS], ["-l$ax_boost_python_lib"])<commit_msg>fixing portability between boost::python versions<commit_after>AC_DEFUN([AX_BOOST_PYTHON],
[
	ax_boost_python_stored_ldflags="$LDFLAGS"
	ax_boost_python_stored_cppflags="$CPPFLAGS"
	
	AC_REQUIRE([AX_BOOST_PREFIX])
	AC_REQUIRE([AX_PYTHON_DEVEL])
	AX_BOOST_LIB([ax_boost_python_lib], [boost_python])
	if test "f$ax_boost_python_lib" == "f"; then
		AX_BOOST_LIB([ax_boost_python_lib], [boost_python$PYTHON_VERSION])
	fi
	
	CPPFLAGS="$ax_boost_python_stored_cppflags $PYTHON_CPPFLAGS"
	LDFLAGS="$ax_boost_python_stored_ldflags $BOOST_LDFLAGS -l$ax_boost_python_lib $PYTHON_LDFLAGS"

	ax_have_boost_python="yes"
	AX_BOOST_HEADER([python.hpp], [], [ax_have_boost_python="no"])
	
	AC_MSG_CHECKING([link with boost::python])
	AC_LANG_SAVE()
	AC_LANG([C++])
	AC_LINK_IFELSE(
		[ AC_LANG_PROGRAM([#include <boost/python.hpp>], [boost::python::str s;]) ],
		[ AC_MSG_RESULT(yes) ], 
		[ AC_MSG_RESULT(no); ax_have_boost_python="no" ])
	AC_LANG_RESTORE()
	
	CPPFLAGS="$ax_boost_python_stored_cppflags"
	LDFLAGS="$ax_boost_python_stored_ldflags"
	
	if test "f$ax_have_boost_python" = "fyes"; then
		ifelse([$1], , :, [$1])
		AC_SUBST([BOOST_PYTHON_LDFLAGS], ["-l$ax_boost_python_lib"])
{'fraction_non_alphanumeric': 0.14527181361352215, 'fraction_numerical': 0.001827318410232983, 'mean_word_length': 9.528846153846153, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4706652', 'n_tokens_mistral': 953, 'n_tokens_neox': 902, 'n_words': 93}