<commit_before>#include "math.h"

struct ADSR {
	unsigned attackTime;
	unsigned decayTime;
	float sustainLevel;
	unsigned releaseTime;
	unsigned index;
	float level;
	float offLevel;
};

void initADSR(struct ADSR* adsr, unsigned a, unsigned d, float s, unsigned r);
void setADSROn(struct ADSR* adsr, int* on);
void setADSROff(struct ADSR* adsr, int* on);
void runADSR(struct ADSR* adsr, int* on);
float getADSRLevel(struct ADSR* adsr);
void setAttack(struct ADSR* adsr, unsigned a);
void setDecay(struct ADSR* adsr, unsigned d);
void setSustain(struct ADSR* adsr, float s);
void setRelease(struct ADSR* adsr, unsigned r);<commit_msg>adding idef to adsr header<commit_after>#ifndef _ADSR
#define _ADSR
#include "math.h"

struct ADSR {
	unsigned attackTime;
	unsigned decayTime;
	float sustainLevel;
	unsigned releaseTime;
	unsigned index;
	float level;
	float offLevel;
};

void initADSR(struct ADSR* adsr, unsigned a, unsigned d, float s, unsigned r);
void setADSROn(struct ADSR* adsr, int* on);
void setADSROff(struct ADSR* adsr, int* on);
void runADSR(struct ADSR* adsr, int* on);
float getADSRLevel(struct ADSR* adsr);
void setAttack(struct ADSR* adsr, unsigned a);
void setDecay(struct ADSR* adsr, unsigned d);
void setSustain(struct ADSR* adsr, float s);
void setRelease(struct ADSR* adsr, unsigned r);
#endif
{'fraction_non_alphanumeric': 0.10426179604261795, 'fraction_numerical': 0.0, 'mean_word_length': 6.146739130434782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7093047', 'n_tokens_mistral': 486, 'n_tokens_neox': 459, 'n_words': 160}