<commit_before>/* 
 * jcom.param
 * External for Jamoma: parameter definition using pattr
 * By <NAME>, Copyright  2006
 * 
 * License: This code is licensed under the terms of the GNU LGPL
 * http://www.gnu.org/licenses/lgpl.html 
 */

#ifndef __JMOD_PARAM_H__
#define __JMOD_PARAM_H__

#include "ext.h"				// Max Header
#include "ext_obex.h"			// Max Object Extensions (attributes) Header
#include "commonsyms.h"			// Common symbols used by the Max 4.5 API

#ifdef JMOD_MESSAGE
#define OBJECT_CLASS_NAME "jcom.message"
#else
#define OBJECT_CLASS_NAME "jcom.parameter"
#endif

#include "jcom.core.h"			// OBJECT_CLASS_NAME must defined before this

// Ramp Unit interfaces
#include "rampunit.h"
#include "ramplib.linear.max.h"
#include "ramplib.linear.maxq.h"
#include "ramplib.none.h"

#define LISTSIZE 512

enum outlets{
	k_outlet_set = 0,
	k_outlet_direct,
	k_outlet_dumpout,
	num_outlets
};
			
typedef void (*pf_noargs)(void *x);			// pointer to a function with only the struct pointer given
											// must be defined so the struct will know what to do, but can't define it as requiring the struct
#define attr_value	atom_list[0]

typedef struct _param{						// Data Structure for this object
	t_jcom_core_subscriber_extended	common;
	pf_noargs				param_output;				// bang method for the instance points to an optimized function
	void 					*outlets[num_outlets];	// my outlet array
	t_atom					atom_list[LISTSIZE];	// was "t_atom attr_value;"	// ATTRIBUTE: The parameter's value
	long					list_size;
	t_symbol				*attr_ramp;				// ATTRIBUTE: ramp mode 
	long					attr_slavemode;			// ATTRIBUTE: This instance is a slave of another instance, and simply forward anything recieved
	long					attr_ui_freeze;
	float					attr_stepsize;			// ATTRIBUTE: amount to increment or decrement by<commit_msg>updating reference so that we still use the C interface to the ramplib<commit_after>/* 
 * jcom.param
 * External for Jamoma: parameter definition using pattr
 * By <NAME>, Copyright  2006
 * 
 * License: This code is licensed under the terms of the GNU LGPL
 * http://www.gnu.org/licenses/lgpl.html 
 */

#ifndef __JMOD_PARAM_H__
#define __JMOD_PARAM_H__

#include "ext.h"				// Max Header
#include "ext_obex.h"			// Max Object Extensions (attributes) Header
#include "commonsyms.h"			// Common symbols used by the Max 4.5 API

#ifdef JMOD_MESSAGE
#define OBJECT_CLASS_NAME "jcom.message"
#else
#define OBJECT_CLASS_NAME "jcom.parameter"
#endif

#include "jcom.core.h"			// OBJECT_CLASS_NAME must defined before this

// Ramp Unit interfaces
#include "ext_ramplib.h"
#include "ramplib.linear.max.h"
#include "ramplib.linear.maxq.h"
#include "ramplib.none.h"

#define LISTSIZE 512

enum outlets{
	k_outlet_set = 0,
	k_outlet_direct,
	k_outlet_dumpout,
	num_outlets
};
			
typedef void (*pf_noargs)(void *x);			// pointer to a function with only the struct pointer given
											// must be defined so the struct will know what to do, but can't define it as requiring the struct
#define attr_value	atom_list[0]

typedef struct _param{						// Data Structure for this object
	t_jcom_core_subscriber_extended	common;
	pf_noargs				param_output;				// bang method for the instance points to an optimized function
	void 					*outlets[num_outlets];	// my outlet array
	t_atom					atom_list[LISTSIZE];	// was "t_atom attr_value;"	// ATTRIBUTE: The parameter's value
	long					list_size;
	t_symbol				*attr_ramp;				// ATTRIBUTE: ramp mode 
	long					attr_slavemode;			// ATTRIBUTE: This instance is a slave of another instance, and simply forward anything recieved
	long					attr_ui_freeze;
	float					attr_stepsize;			// ATTRIBUTE: amount to increment or decrement by
{'fraction_non_alphanumeric': 0.0851063829787234, 'fraction_numerical': 0.006001091107474086, 'mean_word_length': 3.7438551099611903, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '238867', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1241, 'n_words': 401}