<commit_before>.\" $Id$
.TH PAPI_add_event 3 "September, 2002" "PAPI Programmer's Reference" "PAPI"

.SH NAME
PAPI_add_event, PAPI_add_events, PAPI_add_pevent \- add PAPI preset or native hardware event to an event set

.SH SYNOPSIS
.B C Interface
.nf
.B #include <papi.h>
.BI "int\ PAPI_add_event(int *" EventSet ", int " EventCode ");"
.BI "int\ PAPI_add_events(int *" EventSet ", int *" EventCode ", int " number ");"
.BI "int\ PAPI_add_pevent(int *" EventSet ", int " code ", void * " misc ");"
.fi
.B Fortran Interface
.nf
.B #include "fpapi.h"
.BI PAPIF_add_event(C_INT\  EventSet,\  C_INT\  EventSet,\  C_INT\  check )
.BI PAPIF_add_events(C_INT\  EventSet,\  C_INT(*)\  EventSet,\  C_INT\  number,\  C_INT\  check )
.fi

.SH DESCRIPTION
.BR "PAPI_add_event() " "adds a hardware event to a PAPI Event Set."
.BR "PAPI_add_events() " "does the same, but for an array of hardware event codes."
.BR "PAPI_add_pevent() " "is reserved for future use."

.SH ARGUMENTS
.I *EventSet
--  an integer handle for a PAPI Event Set as created by
.BR "PAPI_create_eventset" (3)
.LP
.I EventCode
-- a defined event such as PAPI_TOT_INS.
.LP
.I *EventCode
-- an array of defined events
.LP<commit_msg>Typo in man (and HTML) page: Changed eventset to eventcode<commit_after>.\" $Id$
.TH PAPI_add_event 3 "September, 2002" "PAPI Programmer's Reference" "PAPI"

.SH NAME
PAPI_add_event, PAPI_add_events, PAPI_add_pevent \- add PAPI preset or native hardware event to an event set

.SH SYNOPSIS
.B C Interface
.nf
.B #include <papi.h>
.BI "int\ PAPI_add_event(int *" EventSet ", int " EventCode ");"
.BI "int\ PAPI_add_events(int *" EventSet ", int *" EventCodes ", int " number ");"
.BI "int\ PAPI_add_pevent(int *" EventSet ", int " code ", void * " misc ");"
.fi
.B Fortran Interface
.nf
.B #include "fpapi.h"
.BI PAPIF_add_event(C_INT\  EventSet,\  C_INT\  EventCode,\  C_INT\  check )
.BI PAPIF_add_events(C_INT\  EventSet,\  C_INT(*)\  EventCodes,\  C_INT\  number,\  C_INT\  check )
.fi

.SH DESCRIPTION
.BR "PAPI_add_event() " "adds a hardware event to a PAPI Event Set."
.BR "PAPI_add_events() " "does the same, but for an array of hardware event codes."
.BR "PAPI_add_pevent() " "is reserved for future use."

.SH ARGUMENTS
.I *EventSet
--  an integer handle for a PAPI Event Set as created by
.BR "PAPI_create_eventset" (3)
.LP
.I EventCode
-- a defined event such as PAPI_TOT_INS.
.LP
.I *EventCode
-- an array of defined events
.LP
{'fraction_non_alphanumeric': 0.13215314944421572, 'fraction_numerical': 0.004940304652120214, 'mean_word_length': 3.7093023255813953, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7216451', 'n_tokens_mistral': 963, 'n_tokens_neox': 934, 'n_words': 312}