<commit_before>#ifndef _PAPI_AIX  /* _PAPI_AIX */
#define _PAPI_AIX

#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include <libgen.h>
#include <sys/systemcfg.h>
#include <sys/processor.h>
#include <time.h>
#include <sys/time.h>
#include <sys/times.h>
#include <procinfo.h>
#include <sys/atomic_op.h>

#define ANY_THREAD_GETS_SIGNAL
#include <dlfcn.h>

#include "pmapi.h"
#define POWER_MAX_COUNTERS MAX_COUNTERS
#define MAX_COUNTER_TERMS MAX_COUNTERS
#define INVALID_EVENT -2
#define POWER_MAX_COUNTERS_MAPPING 8

#include "papi.h"
#include "papi_preset.h"


extern _etext;
extern _edata;
extern _end;
extern _data;

/* globals */
pm_info_t pminfo;

/* Locks */
extern atomic_p lock[];

#define _papi_hwd_lock(lck)                     \
while(_check_lock(lock[lck],0,1) == TRUE)       \ 
{                                               \
      usleep(1000);                             \
}

#define _papi_hwd_unlock(lck)                   \
{                                               \
  _clear_lock(lock[lck], 0);                   \
}

/* overflow */
typedef siginfo_t hwd_siginfo_t;
typedef struct sigcontext hwd_ucontext_t;

#define GET_OVERFLOW_ADDRESS(ctx)  (void *)(((hwd_ucontext_t *)ctx)->sc_jmpbuf.jmp_context.iar);

/* prototypes */

#endif  /* _PAPI_AIX */<commit_msg>modify macro GET_OVERFLOW_ADDRESS<commit_after>#ifndef _PAPI_AIX  /* _PAPI_AIX */
#define _PAPI_AIX

#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include <libgen.h>
#include <sys/systemcfg.h>
#include <sys/processor.h>
#include <time.h>
#include <sys/time.h>
#include <sys/times.h>
#include <procinfo.h>
#include <sys/atomic_op.h>

#define ANY_THREAD_GETS_SIGNAL
#include <dlfcn.h>

#include "pmapi.h"
#define POWER_MAX_COUNTERS MAX_COUNTERS
#define MAX_COUNTER_TERMS MAX_COUNTERS
#define INVALID_EVENT -2
#define POWER_MAX_COUNTERS_MAPPING 8

#include "papi.h"
#include "papi_preset.h"


extern _etext;
extern _edata;
extern _end;
extern _data;

/* globals */
pm_info_t pminfo;

/* Locks */
extern atomic_p lock[];

#define _papi_hwd_lock(lck)                     \
while(_check_lock(lock[lck],0,1) == TRUE)       \ 
{                                               \
      usleep(1000);                             \
}

#define _papi_hwd_unlock(lck)                   \
{                                               \
  _clear_lock(lock[lck], 0);                   \
}

/* overflow */
typedef siginfo_t hwd_siginfo_t;
typedef struct sigcontext hwd_ucontext_t;

#define GET_OVERFLOW_ADDRESS(ctx)  (void *)(((hwd_ucontext_t *)ctx)->sc_jmpbuf.jmp_context.iar)

/* prototypes */

#endif  /* _PAPI_AIX */
{'fraction_non_alphanumeric': 0.12693032015065914, 'fraction_numerical': 0.006779661016949152, 'mean_word_length': 2.613605442176871, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2577472', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1017, 'n_words': 184}