<commit_before>/*
 * gaussperturb.cpp
 *
 *  Created on: <2016-05-04 Wed>
 *      Author: zhengfaxiang
 */

#include <cmath>
#include <iostream>
#include <fstream>
#include <iomanip>
#include "../include/rkf78.hpp"
using namespace std;

long double gaussperturb_f             = 0.0;
long double gaussperturb_e             = 0.5;
long double gaussperturb_a             = 1.0;
long double gaussperturb_c             = 1e-5;
long double gaussperturb_miu           = 1e-2;
long double gaussperturb_tol           = 1e-14;
long double gaussperturb_period_number = 40;
long double gauss_pace_init            = 3;

template<class T>
T gaussperturb_beta2(T e) {
    T tmp = 1.0 - e * e;
    if (tmp <= 0.0)
        tmp = 1e-12;
    return tmp;
}

template<class T>
T gaussperturb_gamma(T e) {
    return (1.0 / (1.0 + e * cos(gaussperturb_f)));
}

template<class T>
T gaussperturb_f0(T t, T y[4]) {<commit_msg>parameters<commit_after>/*
 * gaussperturb.cpp
 *
 *  Created on: <2016-05-04 Wed>
 *      Author: zhengfaxiang
 */

#include <cmath>
#include <iostream>
#include <fstream>
#include <iomanip>
#include "../include/rkf78.hpp"
using namespace std;

long double gaussperturb_f             = 0.0;
long double gaussperturb_e             = 0.2;
long double gaussperturb_a             = 1.0;
long double gaussperturb_c             = 1e-5;
long double gaussperturb_miu           = 1e-2;
long double gaussperturb_tol           = 1e-14;
long double gaussperturb_period_number = 30;
long double gauss_pace_init            = 50;

template<class T>
T gaussperturb_beta2(T e) {
    T tmp = 1.0 - e * e;
    if (tmp <= 0.0)
        tmp = 1e-12;
    return tmp;
}

template<class T>
T gaussperturb_gamma(T e) {
    return (1.0 / (1.0 + e * cos(gaussperturb_f)));
}

template<class T>
T gaussperturb_f0(T t, T y[4]) {
{'fraction_non_alphanumeric': 0.11888888888888889, 'fraction_numerical': 0.045, 'mean_word_length': 2.538310412573674, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, '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': '879010', 'n_tokens_mistral': 738, 'n_tokens_neox': 666, 'n_words': 174}