<commit_before>/* 
 * Jamoma Shared Library
 * Functions and resources used by Jamoma objects.
 * By <NAME>, Copyright © 2007
 * 
 * License: This code is licensed under the terms of the GNU LGPL
 * http://www.gnu.org/licenses/lgpl.html 
 */


#ifndef __JAMOMA_H__
#define __JAMOMA_H__

#define JAMOMA_VERSION "0.5 Beta"

#ifdef WIN_VERSION
 #pragma warning(disable:4083) //warning C4083: expected 'newline'; found identifier 's'
#endif // WIN_VERSION

#include "ext.h"
#include "ext_obex.h"				// Max Object Extensions (attributes) Header
#include "ext_common.h"
#include "ext_strings.h"			// String Functions
#include "ext_critical.h"
#include "z_dsp.h"
#include "commonsyms.h"				// Common symbols used by the Max 4.5 API

#include <math.h>
#include <stdlib.h>

#include "TTBlueAPI.h"				// TTBlue Headers...

#include "jcom.core.h"
#include "jcom.list.h"
#include "jcom.io.h"
#include "jcom.sendreceive.h"
#include "JamomaMaxTypes.h"
#include "JamomaTypes.h"
#include "JamomaSymbols.h"

#include "DataspaceLib.h"
#include "FunctionLib.h"
#include "RampLib.h"


#define JAMOMA_UNIT_HEIGHT 35.0
#define JAMOMA_UNIT_WIDTH 150.0
#define JAMOMA_MENU_FONT "Arial"
#define JAMOMA_MENU_FONTSIZE 11.0
#define JAMOMA_DEFAULT_FONT "Verdana"
#define JAMOMA_DEFAULT_FONTSIZE 9.0
#define JAMOMA_BUTTON_FONT JAMOMA_DEFAULT_FONT


extern "C" {

	void		jamoma_init(void);
	t_max_err	jamoma_hub_register(t_symbol *name, t_object *hub);
	void		jamoma_hub_remove(t_symbol *name);
	t_object*	jamoma_get_hub_for_module_named(t_symbol *name);
	void		jamoma_get_all_module_names(long *numModules, t_symbol ***moduleNames);
	t_object*	jamoma_object_getpatcher(t_object *obj);
	t_symbol*	jamoma_patcher_getcontext(t_object *patcher);
	void		jamoma_patcher_getargs(t_object *patcher, long *argc, t_atom **argv);
	t_symbol*	jamoma_patcher_getvarname(t_object *patcher);

	void		jamoma_dsp(t_object *, t_signal **sp, short *count);

	void		jamoma_class_attr_new(t_class *c, char *attrName, t_symbol *attrType, method setter, method getter);
	void		jamoma_class_attr_array_new(t_class *c, char *attrName, t_symbol *attrType, long list_size, method setter, method getter);
	void		jamoma_class_attr_get(t_object *o, t_symbol *attrName, long, t_atom *);

}


#endif //__JAMOMA_H__

<commit_msg>version bump -- resolves task #245.<commit_after>/* 
 * Jamoma Shared Library
 * Functions and resources used by Jamoma objects.
 * By <NAME>, Copyright © 2007
 * 
 * License: This code is licensed under the terms of the GNU LGPL
 * http://www.gnu.org/licenses/lgpl.html 
 */


#ifndef __JAMOMA_H__
#define __JAMOMA_H__

#define JAMOMA_VERSION "0.5 (Château De Salettes)"

#ifdef WIN_VERSION
 #pragma warning(disable:4083) //warning C4083: expected 'newline'; found identifier 's'
#endif // WIN_VERSION

#include "ext.h"
#include "ext_obex.h"				// Max Object Extensions (attributes) Header
#include "ext_common.h"
#include "ext_strings.h"			// String Functions
#include "ext_critical.h"
#include "z_dsp.h"
#include "commonsyms.h"				// Common symbols used by the Max 4.5 API

#include <math.h>
#include <stdlib.h>

#include "TTBlueAPI.h"				// TTBlue Headers...

#include "jcom.core.h"
#include "jcom.list.h"
#include "jcom.io.h"
#include "jcom.sendreceive.h"
#include "JamomaMaxTypes.h"
#include "JamomaTypes.h"
#include "JamomaSymbols.h"

#include "DataspaceLib.h"
#include "FunctionLib.h"
#include "RampLib.h"


#define JAMOMA_UNIT_HEIGHT 35.0
#define JAMOMA_UNIT_WIDTH 150.0
#define JAMOMA_MENU_FONT "Arial"
#define JAMOMA_MENU_FONTSIZE 11.0
#define JAMOMA_DEFAULT_FONT "Verdana"
#define JAMOMA_DEFAULT_FONTSIZE 9.0
#define JAMOMA_BUTTON_FONT JAMOMA_DEFAULT_FONT


extern "C" {

	void		jamoma_init(void);
	t_max_err	jamoma_hub_register(t_symbol *name, t_object *hub);
	void		jamoma_hub_remove(t_symbol *name);
	t_object*	jamoma_get_hub_for_module_named(t_symbol *name);
	void		jamoma_get_all_module_names(long *numModules, t_symbol ***moduleNames);
	t_object*	jamoma_object_getpatcher(t_object *obj);
	t_symbol*	jamoma_patcher_getcontext(t_object *patcher);
	void		jamoma_patcher_getargs(t_object *patcher, long *argc, t_atom **argv);
	t_symbol*	jamoma_patcher_getvarname(t_object *patcher);

	void		jamoma_dsp(t_object *, t_signal **sp, short *count);

	void		jamoma_class_attr_new(t_class *c, char *attrName, t_symbol *attrType, method setter, method getter);
	void		jamoma_class_attr_array_new(t_class *c, char *attrName, t_symbol *attrType, long list_size, method setter, method getter);
	void		jamoma_class_attr_get(t_object *o, t_symbol *attrName, long, t_atom *);

}


#endif //__JAMOMA_H__


{'fraction_non_alphanumeric': 0.11424819435325016, 'fraction_numerical': 0.012913110089735173, 'mean_word_length': 5.632801161103048, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2630960', 'n_tokens_mistral': 1926, 'n_tokens_neox': 1756, 'n_words': 412}