<commit_before>
// Note - pyconfig.h must be included before condor_common to avoid
// re-definition warnings.
# include <pyconfig.h>

#include "condor_common.h"

#include "condor_attributes.h"
#include "condor_universe.h"
#include "condor_q.h"
#include "condor_qmgr.h"
#include "daemon.h"
#include "daemon_types.h"
#include "enum_utils.h"
#include "dc_schedd.h"
#include "classad_helpers.h"
#include "condor_config.h"
#include "condor_holdcodes.h"
#include "globus_utils.h"
#include "basename.h"

#include <classad/operators.h>

#include <boost/python.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/erase.hpp>

#include "old_boost.h"
#include "classad_wrapper.h"
#include "exprtree_wrapper.h"

using namespace boost::python;

#define DO_ACTION(action_name) \
    reason_str = extract<std::string>(reason); \<commit_msg>(#4438)  Fix build failure on stock Debian 7.<commit_after>// pyconfig.h is broken on Debian and #defines HAVE_IO_H, when Debian doesn't.
// This causes the Globus headers to fail.  Instead, include the Globus headers
// as early as possible and hack around the other brokenness where pyconfig.h
// redefines _XOPEN_SOURCE and _POSIX_C_SOURCE.  (Since pyconfig's definition
// won before this change, this has no semantic effect.)
#include "condor_common.h"
#include "globus_utils.h"
#undef _XOPEN_SOURCE
#undef _POSIX_C_SOURCE
#include <pyconfig.h>

#include "condor_attributes.h"
#include "condor_universe.h"
#include "condor_q.h"
#include "condor_qmgr.h"
#include "daemon.h"
#include "daemon_types.h"
#include "enum_utils.h"
#include "dc_schedd.h"
#include "classad_helpers.h"
#include "condor_config.h"
#include "condor_holdcodes.h"
#include "basename.h"

#include <classad/operators.h>

#include <boost/python.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/erase.hpp>

#include "old_boost.h"
#include "classad_wrapper.h"
#include "exprtree_wrapper.h"

using namespace boost::python;

#define DO_ACTION(action_name) \
    reason_str = extract<std::string>(reason); \
{'fraction_non_alphanumeric': 0.1298828125, 'fraction_numerical': 0.00244140625, 'mean_word_length': 5.807308970099668, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1982849', 'n_tokens_mistral': 747, 'n_tokens_neox': 740, 'n_words': 177}