<commit_before>! Copyright (C) 2010 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien alien.destructors alien.libraries
alien.strings alien.syntax combinators gobject-introspection
gobject-introspection.standard-types io.encodings.utf8 kernel
system ;
IN: glib.ffi

LIBRARY: glib

<< "glib" {
    { [ os windows? ] [ "libglib-2.0-0.dll" ] }
    { [ os macosx? ] [ "libglib-2.0.0.dylib" ] }
    { [ os unix? ] [ "libglib-2.0.so" ] }
} cond cdecl add-library >>

IMPLEMENT-STRUCTS: GError GPollFD GSource GSourceFuncs ;

CONSTANT: G_MININT8   -0x80
CONSTANT: G_MAXINT8   0x7f<commit_msg>glib.ffi: look for glib-2.0.dylib not glib-2.0.0.dylib<commit_after>! Copyright (C) 2010 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien alien.destructors alien.libraries
alien.strings alien.syntax combinators gobject-introspection
gobject-introspection.standard-types io.encodings.utf8 kernel
system ;
IN: glib.ffi

LIBRARY: glib

<< "glib" {
    { [ os windows? ] [ "libglib-2.0-0.dll" ] }
    { [ os macosx? ] [ "libglib-2.0.dylib" ] }
    { [ os unix? ] [ "libglib-2.0.so" ] }
} cond cdecl add-library >>

IMPLEMENT-STRUCTS: GError GPollFD GSource GSourceFuncs ;

CONSTANT: G_MININT8   -0x80
CONSTANT: G_MAXINT8   0x7f
{'fraction_non_alphanumeric': 0.13852140077821012, 'fraction_numerical': 0.034241245136186774, 'mean_word_length': 3.816479400749064, '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': '7117050', 'n_tokens_mistral': 537, 'n_tokens_neox': 520, 'n_words': 106}