<commit_before>/*
python-javabridge is licensed under the BSD license.  See the
accompanying file LICENSE for details.

Copyright (c) 2003-2009 Massachusetts Institute of Technology
Copyright (c) 2009-2013 Broad Institute
All rights reserved.
*/

#include <jni.h>
#include <stdio.h>
#include <Python.h>
#include <dlfcn.h>
#include "org_cellprofiler_javabridge_CPython.h"

int initialized = 0;

#ifdef __linux__
/*
 * On Linux, it appears that Python's symbols cannot be found by other
 * native libraries if we let the JVM load libpython... so we have to load it
 * explicitly, with the correct flag (RTLD_GLOBAL).
 */
<commit_msg>no dlfcn.h in Windows @dscho -1 :horse:<commit_after>/*
python-javabridge is licensed under the BSD license.  See the
accompanying file LICENSE for details.

Copyright (c) 2003-2009 Massachusetts Institute of Technology
Copyright (c) 2009-2013 Broad Institute
All rights reserved.
*/

#include <jni.h>
#include <stdio.h>
#include <Python.h>
#ifdef __linux__
#include <dlfcn.h>
#endif
#include "org_cellprofiler_javabridge_CPython.h"

int initialized = 0;

#ifdef __linux__
/*
 * On Linux, it appears that Python's symbols cannot be found by other
 * native libraries if we let the JVM load libpython... so we have to load it
 * explicitly, with the correct flag (RTLD_GLOBAL).
 */

{'fraction_non_alphanumeric': 0.09070121951219512, 'fraction_numerical': 0.026676829268292682, 'mean_word_length': 4.516806722689076, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2223228', 'n_tokens_mistral': 440, 'n_tokens_neox': 406, 'n_words': 167}