<commit_before>#ifndef _PAPI_PFM_EVENTS_H
#define _PAPI_PFM_EVENTS_H
/* 
* File:    papi_pfm_events.h
* CVS:     $Id$
* Author:  <NAME>; extracted from <NAME>'s perfmon.h
*          <EMAIL>
*
*/

/* Prototypes for entry points found in papi_pfm_events */
extern int _papi_pfm_error( int pfm_error );
extern int _papi_pfm_setup_presets( char *name, int type );
extern int _papi_pfm_ntv_enum_events( unsigned int *EventCode, int modifier );
extern int _pfm_get_counter_info( unsigned int event, unsigned int *selector,
				  int *code );
extern int _papi_pfm_ntv_name_to_code( char *ntv_name,
				       unsigned int *EventCode );
extern int _papi_pfm_ntv_code_to_name( unsigned int EventCode, char *name,
				       int len );
extern int _papi_pfm_ntv_code_to_descr( unsigned int EventCode, char *name,
					int len );
extern int _papi_pfm_ntv_code_to_bits( unsigned int EventCode,
				       hwd_register_t * bits );
extern int _papi_pfm_ntv_bits_to_info( hwd_register_t * bits, char *names,
				       unsigned int *values, int name_len,
				       int count );
extern int _papi_pfm3_init(void);
extern int _papi_pfm3_vendor_fixups(void);

/* Gross perfctr/perf_events compatability hack */
/* need to think up a better way to handle this */
#ifndef SUBSTRATE_NAME_perf_events 
struct perf_event_attr {
  int config;
  int type;
};

#define PERF_TYPE_RAW 4;

#endif


extern int _papi_pfm3_setup_counters( struct perf_event_attr *attr, 
				      hwd_register_t *ni_bits );

#endif // _PAPI_PFM_EVENTS_H
<commit_msg>One last try at the cray compile fix, this time using a suggestion from <NAME>.<commit_after>#ifndef _PAPI_PFM_EVENTS_H
#define _PAPI_PFM_EVENTS_H
/* 
* File:    papi_pfm_events.h
* CVS:     $Id$
* Author:  <NAME>; extracted from <NAME>'s perfmon.h
*          <EMAIL>
*
*/

/* Prototypes for entry points found in papi_pfm_events */
extern int _papi_pfm_error( int pfm_error );
extern int _papi_pfm_setup_presets( char *name, int type );
extern int _papi_pfm_ntv_enum_events( unsigned int *EventCode, int modifier );
extern int _pfm_get_counter_info( unsigned int event, unsigned int *selector,
				  int *code );
extern int _papi_pfm_ntv_name_to_code( char *ntv_name,
				       unsigned int *EventCode );
extern int _papi_pfm_ntv_code_to_name( unsigned int EventCode, char *name,
				       int len );
extern int _papi_pfm_ntv_code_to_descr( unsigned int EventCode, char *name,
					int len );
extern int _papi_pfm_ntv_code_to_bits( unsigned int EventCode,
				       hwd_register_t * bits );
extern int _papi_pfm_ntv_bits_to_info( hwd_register_t * bits, char *names,
				       unsigned int *values, int name_len,
				       int count );
extern int _papi_pfm3_init(void);
extern int _papi_pfm3_vendor_fixups(void);

/* Gross perfctr/perf_events compatability hack */
/* need to think up a better way to handle this */

#ifndef __PERFMON_PERF_EVENT_H__
struct perf_event_attr {
  int config;
  int type;
};

#define PERF_TYPE_RAW 4;

#endif /* !__PERFMON_PERF_EVENT_H__ */


extern int _papi_pfm3_setup_counters( struct perf_event_attr *attr, 
				      hwd_register_t *ni_bits );

#endif // _PAPI_PFM_EVENTS_H

{'fraction_non_alphanumeric': 0.07891373801916933, 'fraction_numerical': 0.0025559105431309905, 'mean_word_length': 4.158154859967051, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3586713', 'n_tokens_mistral': 1243, 'n_tokens_neox': 1144, 'n_words': 305}