<commit_before>/*
*/

#include <v8.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <ev.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <node.h>

using namespace v8;

double getcputime(void) {
    struct timeval tim;
    struct rusage ru;
    
    getrusage(RUSAGE_SELF, &ru);
    
    tim = ru.ru_utime;
    double t=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;
    tim=ru.ru_stime;        
    t+=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;        
    return t;
} 

double getusertime(void) {
    struct timeval tim;
    struct rusage ru;
    
    getrusage(RUSAGE_SELF, &ru);
    
    tim = ru.ru_stime;
    double t=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;
    tim=ru.ru_stime;        
    t+=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;        
    return t;<commit_msg>Don't double usertime.<commit_after>/*
*/

#include <v8.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <ev.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <node.h>

using namespace v8;

double getcputime(void) {
    struct timeval tim;
    struct rusage ru;
    
    getrusage(RUSAGE_SELF, &ru);
    
    tim = ru.ru_utime;
    double t=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;
    tim=ru.ru_stime;        
    t+=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;        
    return t;
} 

double getusertime(void) {
    struct timeval tim;
    struct rusage ru;
    
    getrusage(RUSAGE_SELF, &ru);
    
    tim = ru.ru_stime;
    double t=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;
    return t;
{'fraction_non_alphanumeric': 0.14665057332528667, 'fraction_numerical': 0.036210018105009054, 'mean_word_length': 2.794050343249428, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '3652944', 'n_tokens_mistral': 740, 'n_tokens_neox': 684, 'n_words': 129}