<commit_before>#ifndef __STAN__MATHS__ERROR_HANDLING_HPP__
#define __STAN__MATHS__ERROR_HANDLING_HPP__

********************************************************************************

#include <limits>

#include <boost/math/policies/policy.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/distributions/detail/common_error_handling.hpp>

#include <stan/maths/boost_error_handling.hpp>
#include <stan/maths/special_functions.hpp>


namespace stan { 

  namespace maths {
    const double CONSTRAINT_TOLERANCE = 1E-8;


    /**
     * Default error-handling policy from Boost.
     */
    typedef boost::math::policies::policy<> default_policy;

    /**
     * Checks if the variable y is nan.
     *
     * @param function Name of function being invoked.
     * @param y Reference to variable being tested.
     * @param name Name of variable being tested.
     * @param result Pointer to resulting value after test.<commit_msg>fixing error handling extraneous chars<commit_after>#ifndef __STAN__MATHS__ERROR_HANDLING_HPP__
#define __STAN__MATHS__ERROR_HANDLING_HPP__

#include <limits>

#include <boost/math/policies/policy.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/distributions/detail/common_error_handling.hpp>

#include <stan/maths/boost_error_handling.hpp>
#include <stan/maths/special_functions.hpp>


namespace stan { 

  namespace maths {
    const double CONSTRAINT_TOLERANCE = 1E-8;


    /**
     * Default error-handling policy from Boost.
     */
    typedef boost::math::policies::policy<> default_policy;

    /**
     * Checks if the variable y is nan.
     *
     * @param function Name of function being invoked.
     * @param y Reference to variable being tested.
     * @param name Name of variable being tested.
     * @param result Pointer to resulting value after test.
{'fraction_non_alphanumeric': 0.13153638814016172, 'fraction_numerical': 0.00215633423180593, 'mean_word_length': 4.112947658402204, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1666375', 'n_tokens_mistral': 580, 'n_tokens_neox': 549, 'n_words': 139}