<commit_before>/**
 *  @file IDA_Solver.cpp
 *
 */

// Copyright 2006  California Institute of Technology

#include "cantera/numerics/IDA_Solver.h"
#include "cantera/base/stringUtils.h"

#include <iostream>

#ifdef HAS_SUNDIALS

#ifdef SUNDIALS_VERSION_22
#include <sundials_types.h>
#include <sundials_math.h>
#include <ida.h>
#include <ida_dense.h>
#include <ida_spgmr.h>
#include <ida_band.h>
#include <nvector_serial.h>
#else
#include <sundials/sundials_types.h>
#include <sundials/sundials_math.h>
#include <ida/ida.h>
#include <ida/ida_dense.h>
#include <ida/ida_spgmr.h>
#include <ida/ida_band.h>
#include <nvector/nvector_serial.h>
#endif

using namespace std;



inline static N_Vector nv(void* x)
{
    return reinterpret_cast<N_Vector>(x);
}

namespace Cantera
{

/**
 * A simple class to hold an array of parameter values and a pointer to
 * an instance of a subclass of ResidEval.
 */
class ResidData
{

public:

    ResidData(ResidJacEval* f, IDA_Solver* s, int npar = 0) {
        m_func = f;
        m_solver = s;<commit_msg>IDA_Solver requires Sundials 2.4<commit_after>/**
 *  @file IDA_Solver.cpp
 *
 */

// Copyright 2006  California Institute of Technology

#include "cantera/numerics/IDA_Solver.h"
#include "cantera/base/stringUtils.h"

#include <iostream>

#ifdef SUNDIALS_VERSION_24
#include <sundials/sundials_types.h>
#include <sundials/sundials_math.h>
#include <ida/ida.h>
#include <ida/ida_dense.h>
#include <ida/ida_spgmr.h>
#include <ida/ida_band.h>
#include <nvector/nvector_serial.h>

using namespace std;



inline static N_Vector nv(void* x)
{
    return reinterpret_cast<N_Vector>(x);
}

namespace Cantera
{

/**
 * A simple class to hold an array of parameter values and a pointer to
 * an instance of a subclass of ResidEval.
 */
class ResidData
{

public:

    ResidData(ResidJacEval* f, IDA_Solver* s, int npar = 0) {
        m_func = f;
        m_solver = s;
{'fraction_non_alphanumeric': 0.12111637704054766, 'fraction_numerical': 0.00842548709847288, 'mean_word_length': 4.2631578947368425, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, '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': '6172476', 'n_tokens_mistral': 762, 'n_tokens_neox': 725, 'n_words': 176}