<commit_before>/*
 * Moogladder
 *
 * This code has been extracted from the Csound opcode "Moogladder".
 * It has been modified to work as a Soundpipe module.
 *
 * Original Author(s): <NAME>, <NAME> (original algorithm)
 * Year: 2007
 * Location: Opcodes/pitchtrack.c
 *
 */

#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include "soundpipe.h"

#ifndef M_PI
#define M_PI		3.14159265358979323846
#endif

#define SPFLOAT2LONG(x) lrintf(x)


/* John ffitch tanh function to speed up inner loop */ 

static double my_tanh(double x)
{
    /* use the fact that tanh(-x) = - tanh(x)<commit_msg>too much copypaste<commit_after>/*
 * Moogladder
 *
 * This code has been extracted from the Csound opcode "Moogladder".
 * It has been modified to work as a Soundpipe module.
 *
 * Original Author(s): <NAME>
 * Year: 2007
 * Location: Opcodes/pitchtrack.c
 *
 */

#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include "soundpipe.h"

#ifndef M_PI
#define M_PI		3.14159265358979323846
#endif

#define SPFLOAT2LONG(x) lrintf(x)


/* John ffitch tanh function to speed up inner loop */ 

static double my_tanh(double x)
{
    /* use the fact that tanh(-x) = - tanh(x)
{'fraction_non_alphanumeric': 0.1230899830220713, 'fraction_numerical': 0.044142614601018676, 'mean_word_length': 3.871900826446281, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '2807894', 'n_tokens_mistral': 482, 'n_tokens_neox': 429, 'n_words': 134}