<commit_before>/* C code to create dynamically loaded library to implement plplot_widget module*/

#include <Python.h>
/* Change this to the recommended
 * #include <Numeric/arrayobject.h> 
 *  once we no longer support python1.5 */
#include <arrayobject.h>
#include "plplot.h"
#include "plplotP.h"

#include <tcl.h>

#define TRY(E) if(! (E)) return NULL

/* ##############################################################################*/
static char doc_partialInitXw[]="Partially init a new device (X Window) ";

#ifndef WIN32
#include "plxwd.h"
static PyObject * pl_partialInitXw(PyObject *self, PyObject *args)
{
    PLINT ipls;
    PLStream *pls;  
    TRY (PyArg_ParseTuple(args, ":pl_partialInitXw"));
    ipls=0;

    plmkstrm(&ipls);
    printf(" ipls=%d\n",ipls); <commit_msg>Don't include tcl.h unless necessary.<commit_after>/* C code to create dynamically loaded library to implement plplot_widget module*/

#include <Python.h>
/* Change this to the recommended
 * #include <Numeric/arrayobject.h> 
 *  once we no longer support python1.5 */
#include <arrayobject.h>
#include "plplot.h"
#include "plplotP.h"

#ifdef ENABLE_tk
#include <tcl.h>
#endif

#define TRY(E) if(! (E)) return NULL

/* ##############################################################################*/
static char doc_partialInitXw[]="Partially init a new device (X Window) ";

#ifndef WIN32
#include "plxwd.h"
static PyObject * pl_partialInitXw(PyObject *self, PyObject *args)
{
    PLINT ipls;
    PLStream *pls;  
    TRY (PyArg_ParseTuple(args, ":pl_partialInitXw"));
    ipls=0;

    plmkstrm(&ipls);
    printf(" ipls=%d\n",ipls); 
{'fraction_non_alphanumeric': 0.22009864364981505, 'fraction_numerical': 0.006165228113440197, 'mean_word_length': 4.923357664233577, 'pattern_counts': {'":': 2, '<': 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': '2121860', 'n_tokens_mistral': 557, 'n_tokens_neox': 540, 'n_words': 149}