<commit_before>#include "cinder/app/App.h"
#include "cinder/ImageIo.h"
#if defined( CINDER_COCOA )
	#include "cinder/cocoa/CinderCocoa.h"
	#include <CoreGraphics/CoreGraphics.h>
#elif defined( CINDER_MSW )
	#include "cinder/msw/CinderMswGdiplus.h"
#endif

#include "Resources.h"

using namespace ci;
using namespace ci::app;
using namespace std;

class Renderer2dApp : public App {
  public:
	void setup();
	void draw();
	
#if defined( CINDER_COCOA )
	CGImageRef	mImage;
#elif defined( CINDER_MSW )
	Gdiplus::Bitmap *mImage;
	Surface8u		mImageSurface;
#endif
};

void Renderer2dApp::setup()
{
#if defined( CINDER_COCOA )
	mImage = cocoa::createCgImage( loadImage( loadResource( RES_CINDER_LOGO ) ) );
#elif defined( CINDER_MSW )
	mImageSurface = Surface( loadImage( loadResource( RES_CINDER_LOGO ) ), SurfaceConstraintsGdiPlus() );
	// because this only wraps the Surface, we need to keep it around
	mImage = msw::createGdiplusBitmap( mImageSurface );
#endif
}

void Renderer2dApp::draw()
{
	// Render using CoreGraphics on the mac
#if defined( CINDER_COCOA )
	CGContextRef context = cocoa::getWindowContext();<commit_msg>use override directives in sample<commit_after>#include "cinder/app/App.h"
#include "cinder/ImageIo.h"
#if defined( CINDER_COCOA )
	#include "cinder/cocoa/CinderCocoa.h"
	#include <CoreGraphics/CoreGraphics.h>
#elif defined( CINDER_MSW )
	#include "cinder/msw/CinderMswGdiplus.h"
#endif

#include "Resources.h"

using namespace ci;
using namespace ci::app;
using namespace std;

class Renderer2dApp : public App {
  public:
	void setup() override;
	void draw() override;
	
#if defined( CINDER_COCOA )
	CGImageRef	mImage;
#elif defined( CINDER_MSW )
	Gdiplus::Bitmap *mImage;
	Surface8u		mImageSurface;
#endif
};

void Renderer2dApp::setup()
{
#if defined( CINDER_COCOA )
	mImage = cocoa::createCgImage( loadImage( loadResource( RES_CINDER_LOGO ) ) );
#elif defined( CINDER_MSW )
	mImageSurface = Surface( loadImage( loadResource( RES_CINDER_LOGO ) ), SurfaceConstraintsGdiPlus() );
	// because this only wraps the Surface, we need to keep it around
	mImage = msw::createGdiplusBitmap( mImageSurface );
#endif
}

void Renderer2dApp::draw()
{
	// Render using CoreGraphics on the mac
#if defined( CINDER_COCOA )
	CGContextRef context = cocoa::getWindowContext();
{'fraction_non_alphanumeric': 0.11393514460999124, 'fraction_numerical': 0.0035056967572304996, 'mean_word_length': 5.734513274336283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1552545', 'n_tokens_mistral': 858, 'n_tokens_neox': 838, 'n_words': 203}