<commit_before>/* This file performs the following test: start, stop with a derived event */

#include "papi_test.h"

#ifdef OLD_TEST_DRIVER
#define CPP_TEST_FAIL(string, retval) test_fail(__FILE__, __LINE__, string, retval)
#define CPP_TEST_PASS() { test_pass(__FILE__, NULL, 0); }
#define CPP_TEST_SKIP() { test_skip(__FILE__,__LINE__,NULL,0); }
#else
#define CPP_TEST_FAIL(function, retval) { fprintf(stderr,"%s:%d:%s:%d:%s:%s\n",__FILE__,__LINE__,function,retval,PAPI_strerror(retval),"$Id$"); test_fail(__FILE__, __LINE__, function, retval); }
#define CPP_TEST_PASS() { fprintf(stderr,"$Id$:PASSED\n"); exit(0); }
#define CPP_TEST_SKIP() { fprintf(stderr,"$Id$:SKIPPED\n"); exit(0); }
#endif

#define NUM_ITERS 5000

#define QUIETPRINTF if (!TESTS_QUIET) printf
const static int PAPI_events[PAPI_MPX_DEF_DEG] = { PAPI_L2_DCM, 0 };
const static int PAPI_events_len = 1;

int main(int argc, char **argv) 
{
  int retval, tmp;
  int EventSet;
  int i;
  long_long values;
  char event_name[PAPI_MAX_STR_LEN], add_event_str[PAPI_MAX_STR_LEN];

#if !defined(i386) || !defined(linux)
  CPP_TEST_SKIP();
#endif

  tests_quiet(argc, argv); /* Set TESTS_QUIET variable */

  retval = PAPI_library_init(PAPI_VER_CURRENT);
  if ( retval != PAPI_VER_CURRENT)  test_fail(__FILE__, __LINE__, "PAPI_library_init", retval);

  if ( !TESTS_QUIET ) {
	retval = PAPI_set_debug(PAPI_VERB_ECONT);
	if (retval != PAPI_OK) test_fail(__FILE__, __LINE__, "PAPI_set_debug", retval);
  }
<commit_msg>add extern int TESTS_QUIET; to avoid compilation error<commit_after>/* This file performs the following test: start, stop with a derived event */

#include "papi_test.h"

#ifdef OLD_TEST_DRIVER
#define CPP_TEST_FAIL(string, retval) test_fail(__FILE__, __LINE__, string, retval)
#define CPP_TEST_PASS() { test_pass(__FILE__, NULL, 0); }
#define CPP_TEST_SKIP() { test_skip(__FILE__,__LINE__,NULL,0); }
#else
#define CPP_TEST_FAIL(function, retval) { fprintf(stderr,"%s:%d:%s:%d:%s:%s\n",__FILE__,__LINE__,function,retval,PAPI_strerror(retval),"$Id$"); test_fail(__FILE__, __LINE__, function, retval); }
#define CPP_TEST_PASS() { fprintf(stderr,"$Id$:PASSED\n"); exit(0); }
#define CPP_TEST_SKIP() { fprintf(stderr,"$Id$:SKIPPED\n"); exit(0); }
#endif

#define NUM_ITERS 5000

#define QUIETPRINTF if (!TESTS_QUIET) printf
const static int PAPI_events[PAPI_MPX_DEF_DEG] = { PAPI_L2_DCM, 0 };
const static int PAPI_events_len = 1;
extern int TESTS_QUIET;

int main(int argc, char **argv) 
{
  int retval, tmp;
  int EventSet;
  int i;
  long_long values;
  char event_name[PAPI_MAX_STR_LEN], add_event_str[PAPI_MAX_STR_LEN];

#if !defined(i386) || !defined(linux)
  CPP_TEST_SKIP();
#endif

  tests_quiet(argc, argv); /* Set TESTS_QUIET variable */

  retval = PAPI_library_init(PAPI_VER_CURRENT);
  if ( retval != PAPI_VER_CURRENT)  test_fail(__FILE__, __LINE__, "PAPI_library_init", retval);

  if ( !TESTS_QUIET ) {
	retval = PAPI_set_debug(PAPI_VERB_ECONT);
	if (retval != PAPI_OK) test_fail(__FILE__, __LINE__, "PAPI_set_debug", retval);
  }

{'fraction_non_alphanumeric': 0.14167494207216152, 'fraction_numerical': 0.009268454154253558, 'mean_word_length': 6.849350649350649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1162666', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1177, 'n_words': 242}