<commit_before>#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "compar.h"

int cmp_string_asc(const void *x, const void *y) {
  return strcmp(*(char **)x, *(char **)y);
}

int cmp_string_des(const void *x, const void *y) {
  return strcmp(*(char **)x, *(char **)y);
}

int cmp_char_asc(const void *x, const void *y) {
  return *(char *)x - *(char *)y;
}

int cmp_char_des(const void *x, const void *y) {
  return *(char *)y - *(char *)x;
}

int cmp_uchar_asc(const void *x, const void *y) {
  return *(unsigned char *)x - *(unsigned char *)y;
}

int cmp_uchar_des(const void *x, const void *y) {
  return *(unsigned char *)y - *(unsigned char *)x;
}

int cmp_double_asc(const void *x, const void *y) {
  if (*(double *)x < *(double *)y) {
    return -1;
  } else if (*(double *)x > *(double *)y) {
    return 1;
  }
  return 0;
}

int cmp_double_des(const void *x, const void *y) {
  if (*(double *)x > *(double *)y) {
    return -1;<commit_msg>finish fixing over/underflows on compar.c<commit_after>#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "compar.h"

int cmp_string_asc(const void *x, const void *y) {
  return strcmp(*(char **)x, *(char **)y);
}

int cmp_string_des(const void *x, const void *y) {
  return strcmp(*(char **)x, *(char **)y);
}

int cmp_char_asc(const void *x, const void *y) {
  if (*(char *)x < *(char *)y) {
    return -1;
  } else if (*(char *)x > *(char *)y) {
    return 1;
  }
  return 0;
}

int cmp_char_des(const void *x, const void *y) {
  if (*(char *)x > *(char *)y) {
    return -1;
  } else if (*(char *)x < *(char *)y) {
    return 1;
  }
  return 0;
}

int cmp_uchar_asc(const void *x, const void *y) {
  if (*(unsigned char *)x < *(unsigned char *)y) {
    return -1;
  } else if (*(unsigned char *)x > *(unsigned char *)y) {
    return 1;
  }
  return 0;
}

int cmp_uchar_des(const void *x, const void *y) {
  if (*(unsigned char *)x > *(unsigned char *)y) {
    return -1;
  } else if (*(unsigned char *)x < *(unsigned char *)y) {
    return 1;
  }
  return 0;
}

int cmp_double_asc(const void *x, const void *y) {
  if (*(double *)x < *(double *)y) {
    return -1;
  } else if (*(double *)x > *(double *)y) {
    return 1;
  }
  return 0;
}

int cmp_double_des(const void *x, const void *y) {
  if (*(double *)x > *(double *)y) {
    return -1;
{'fraction_non_alphanumeric': 0.194515852613539, 'fraction_numerical': 0.00856898029134533, 'mean_word_length': 3.364485981308411, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '1817871', 'n_tokens_mistral': 955, 'n_tokens_neox': 941, 'n_words': 299}