<commit_before>#define _GNU_SOURCE
#include<stdio.h>
#include<stdlib.h>
#include<mpi.h>
#include<pthread.h>
#include<errno.h>
#include "kernel.h"

#define NUM_ROUNDS 10*1000
#define HWTHREADS 4

void doLotsOfWork() {
  int large = 1000*1000;
  int i,j;
  double* arr;
  arr = (double*) calloc(large, sizeof(double));
  for(i=0;i<large/4;i++)
    for(j=0;j<large;j++)
      arr[j] = sqrt(i+j*3.21)/123.3+j;
  free(arr);
}

#define handle_error_en(en, msg) \
  do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)

void pin(int id) {
  int s, j;<commit_msg>silence warning about implicit sqrt<commit_after>#define _GNU_SOURCE
#include<stdio.h>
#include<stdlib.h>
#include<mpi.h>
#include<pthread.h>
#include<errno.h>
#include<math.h>
#include "kernel.h"

#define NUM_ROUNDS 10*1000
#define HWTHREADS 4

void doLotsOfWork() {
  int large = 1000*1000;
  int i,j;
  double* arr;
  arr = (double*) calloc(large, sizeof(double));
  for(i=0;i<large/4;i++)
    for(j=0;j<large;j++)
      arr[j] = sqrt(i+j*3.21)/123.3+j;
  free(arr);
}

#define handle_error_en(en, msg) \
  do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)

void pin(int id) {
  int s, j;
{'fraction_non_alphanumeric': 0.18508997429305912, 'fraction_numerical': 0.044558697514995714, 'mean_word_length': 4.697560975609756, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 14, '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': '3770499', 'n_tokens_mistral': 555, 'n_tokens_neox': 508, 'n_words': 102}