<commit_before>
#include "plDevs.h"

#ifdef PLD_wxwidgets

/* plplot headers */
#include "plplotP.h"

/* os specific headers */
#ifdef __WIN32__
  #include <windows.h>
#endif

/* wxwidgets headers */
#include "wx/wx.h"
#include "wx/except.h"
#include "wx/image.h"
#include "wx/filedlg.h"
#include "wx/display.h"
#include "wx/graphics.h"
    
#include "wxwidgets.h"

#if wxUSE_GRAPHICS_CONTEXT
  
wxPLDevGC::wxPLDevGC( void ) : wxPLDevBase()
{
  Log_Verbose( "%s", __FUNCTION__ );

  m_dc=NULL;
  m_bitmap=NULL;
  m_context=NULL;
  m_font=NULL;
  underlined=false;  
}


wxPLDevGC::~wxPLDevGC()
{
  Log_Verbose( "%s", __FUNCTION__ );

  if( ownGUI ) {<commit_msg>Small changes to make the new wxWidgets driver run also for wxGTK 2.6.4, where wxGraphicsContext is not available.<commit_after>
#include "plDevs.h"

#ifdef PLD_wxwidgets

/* plplot headers */
#include "plplotP.h"

/* wxwidgets headers */
#include "wx/wx.h"
    
#include "wxwidgets.h"


#if wxUSE_GRAPHICS_CONTEXT

#include "wx/graphics.h"
  
wxPLDevGC::wxPLDevGC( void ) : wxPLDevBase()
{
  Log_Verbose( "%s", __FUNCTION__ );

  m_dc=NULL;
  m_bitmap=NULL;
  m_context=NULL;
  m_font=NULL;
  underlined=false;  
}


wxPLDevGC::~wxPLDevGC()
{
  Log_Verbose( "%s", __FUNCTION__ );

  if( ownGUI ) {
{'fraction_non_alphanumeric': 0.1492063492063492, 'fraction_numerical': 0.003968253968253968, 'mean_word_length': 4.232365145228216, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '737959', 'n_tokens_mistral': 537, 'n_tokens_neox': 524, 'n_words': 105}