<commit_before>;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- Wait for events on single FDs.
;;;

(in-package :io.multiplex)

;;; FIXME: Until a way to autodetect platform features is implemented
#+(or darwin freebsd)
(define-constant pollrdhup 0)

(define-condition poll-error (error)
  ((fd :initarg :fd :reader poll-error-fd)
   (identifier :initarg :identifier :initform "Unknown error"
               :reader poll-error-identifier))<commit_msg>Somehow fix the workaround for the fact that POLLRDHUP is not evailable everywhere.<commit_after>;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- Wait for events on single FDs.
;;;

(in-package :io.multiplex)

;;; FIXME: Until a way to autodetect platform features is implemented
(eval-when (:compile-toplevel :load-toplevel :execute)
  (unless (boundp 'pollrdhup)
    (define-constant pollrdhup 0)))

(define-condition poll-error (error)
  ((fd :initarg :fd :reader poll-error-fd)
   (identifier :initarg :identifier :initform "Unknown error"
               :reader poll-error-identifier))
{'fraction_non_alphanumeric': 0.14555256064690028, 'fraction_numerical': 0.0017969451931716084, 'mean_word_length': 4.040723981900452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5597811', 'n_tokens_mistral': 369, 'n_tokens_neox': 357, 'n_words': 109}