<commit_before>/* 
* File:    multiplex1_pthreads.c
* CVS:     $Id$
* Author:  <NAME>
*          <EMAIL>
* Mods:    <your name here>
*          <your email address>
*/  

/* This file tests the multiplex pthread functionality */

#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <memory.h>
#include <malloc.h>
#include "papi_test.h"
#include "test_utils.h"

#define FLOPS 4000000
#define READS 4000
#define NUM 10
#define NUM_THREADS 4
#define SUCCESS 1
#define FAILURE 0
//#define METRIC PAPI_FP_INS
#define METRIC PAPI_L1_DCM<commit_msg>Removed C++ comment (//) as not all c compilers compile cleanly with this.  In the future we should use standard c /* */ style comments.  Also, as a side note if you compile the memory stuff with c++ comments in it, you all of a sudden need root to access the registers, go figure.....<commit_after>/* 
* File:    multiplex1_pthreads.c
* CVS:     $Id$
* Author:  <NAME>
*          <EMAIL>
* Mods:    <your name here>
*          <your email address>
*/  

/* This file tests the multiplex pthread functionality */

#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <memory.h>
#include <malloc.h>
#include "papi_test.h"
#include "test_utils.h"

#define FLOPS 4000000
#define READS 4000
#define NUM 10
#define NUM_THREADS 4
#define SUCCESS 1
#define FAILURE 0
/*#define METRIC PAPI_FP_INS */
#define METRIC PAPI_L1_DCM
{'fraction_non_alphanumeric': 0.12524719841793014, 'fraction_numerical': 0.023731048121292023, 'mean_word_length': 3.7142857142857144, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '3201059', 'n_tokens_mistral': 590, 'n_tokens_neox': 545, 'n_words': 181}