<commit_before>#include <caml/mlvalues.h>

#include <unistd.h>
#include <sys/socket.h>

CAMLprim value
caml_next_fd (value unit) {
  int fd ;
  fd = socket(PF_INET, SOCK_STREAM, 0) ;
  close(fd) ;
  return Val_int(fd);
}
<commit_msg>use open instead of socket to really get the POSIX defined lowest :)<commit_after>#include <caml/mlvalues.h>

#include <unistd.h>
#include <fcntl.h>

CAMLprim value
caml_next_fd (value unit) {
  int fd ;
  fd = open("/", O_RDONLY) ;
  close(fd) ;
  return Val_int(fd);
}

{'fraction_non_alphanumeric': 0.14087301587301587, 'fraction_numerical': 0.001984126984126984, 'mean_word_length': 4.372340425531915, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1900871', 'n_tokens_mistral': 212, 'n_tokens_neox': 209, 'n_words': 51}