<commit_before>#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include "allocore/system/al_Config.h"
#include "allocore/io/al_MIDI.hpp"

#if defined(AL_OSX)
	#define __MACOSX_CORE__
#elif defined(AL_WINDOWS)
	#define __WINDOWS_MM__
#else
	#define __LINUX_ALSASEQ__
#endif

using namespace al;

#define RtError			MIDIError
#define RtMidi			MIDI
#define RtMidiIn		MIDIIn
#define RtMidiCallback	MIDICallback
#define RtMidiOut		MIDIOut
#define MidiMessage		MIDIMessage
#define RtMidiInData	MIDIInData


namespace al{
double noteToHz(double noteNumber){
	return ::pow(2., (noteNumber - 69.)/12.) * 440.;
}
}

const char * MIDIByte::messageTypeString(unsigned char statusByte){
	switch(statusByte & MESSAGE_MASK){
	case NOTE_OFF:			return "NOTE_OFF";
	case NOTE_ON:			return "NOTE_ON";
	case CONTROL_CHANGE:	return "CONTROL_CHANGE";
	case PROGRAM_CHANGE:	return "PROGRAM_CHANGE";<commit_msg>MIDI: fix Linux macro<commit_after>#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include "allocore/system/al_Config.h"
#include "allocore/io/al_MIDI.hpp"

#if defined(AL_OSX)
	#define __MACOSX_CORE__
#elif defined(AL_WINDOWS)
	#define __WINDOWS_MM__
#elif defined(AL_LINUX)
	#define __LINUX_ALSASEQ__
#endif

using namespace al;

#define RtError			MIDIError
#define RtMidi			MIDI
#define RtMidiIn		MIDIIn
#define RtMidiCallback	MIDICallback
#define RtMidiOut		MIDIOut
#define MidiMessage		MIDIMessage
#define RtMidiInData	MIDIInData


namespace al{
double noteToHz(double noteNumber){
	return ::pow(2., (noteNumber - 69.)/12.) * 440.;
}
}

const char * MIDIByte::messageTypeString(unsigned char statusByte){
	switch(statusByte & MESSAGE_MASK){
	case NOTE_OFF:			return "NOTE_OFF";
	case NOTE_ON:			return "NOTE_ON";
	case CONTROL_CHANGE:	return "CONTROL_CHANGE";
	case PROGRAM_CHANGE:	return "PROGRAM_CHANGE";
{'fraction_non_alphanumeric': 0.10407488986784141, 'fraction_numerical': 0.00881057268722467, 'mean_word_length': 6.125490196078432, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5256874', 'n_tokens_mistral': 762, 'n_tokens_neox': 729, 'n_words': 161}