<commit_before>;;; init.lisp --- initialize foreign library

;; This file is part of cl-webkit.
;;
;; cl-webkit is free software; you can redistribute it and/or modify
;; it under the terms of the MIT license.
;; See `COPYING' in the source distribution for details.

;;; Code:

(in-package #:cl-soup)

(define-foreign-library libsoup
    (:unix (:or "libsoup-2.4.so.1.7.0" ; libsoup-2.48.0
                )))

(use-foreign-library libsoup)
<commit_msg>soup/init: fall back to unversioned .so<commit_after>;;; init.lisp --- initialize foreign library

;; This file is part of cl-webkit.
;;
;; cl-webkit is free software; you can redistribute it and/or modify
;; it under the terms of the MIT license.
;; See `COPYING' in the source distribution for details.

;;; Code:

(in-package #:cl-soup)

(define-foreign-library libsoup
    (:unix (:or "libsoup-2.4.so.1.7.0" ; libsoup-2.48.0
                "libsoup-2.4.so"
                )))

(use-foreign-library libsoup)

{'fraction_non_alphanumeric': 0.14270941054808686, 'fraction_numerical': 0.020682523267838676, 'mean_word_length': 3.0, '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': '2524029', 'n_tokens_mistral': 349, 'n_tokens_neox': 330, 'n_words': 102}