<commit_before>#include "gfx.h"
#include "gconsole.h"

#ifndef DEDICATED_ONLY
#include "2xsai.h"
#include "blitters/blitters.h"
#include "blitters/colors.h"
#include "blitters/macros.h"
#include "sprite_set.h"
#include "sprite.h"
#endif
#include <boost/bind.hpp>
#include <boost/assign/list_inserter.hpp>
using namespace boost::assign;

#include "gusanos/allegro.h"
#include "GfxPrimitives.h"
#include "AuxLib.h"

#include <string>
#include <algorithm>
#include <iostream>
#include <list>
#include <stdexcept>

using namespace std;

Gfx gfx;

namespace
{
	bool m_initialized = false;

#ifndef DEDICATED_ONLY
	ALLEGRO_BITMAP* m_doubleResBuffer = 0;
	SpriteSet* mouseCursor = 0;
	
	string screenShot(const list<string> &)
	{
		PushScreenshot("gus_scrshots", "");
		return "OK";
	}	
#endif
}

Gfx::Gfx()
#ifndef DEDICATED_ONLY
: buffer(NULL)
#endif
{
}

Gfx::~Gfx()
{
	if (m_doubleResBuffer)  {
		destroy_bitmap(m_doubleResBuffer);
		m_doubleResBuffer = NULL;
	}
}


void Gfx::init()
{	
#ifndef DEDICATED_ONLY	
	Init_2xSaI(32); // needed for SUPER2XSAI and SUPEREAGLE filters
	
	// we don't use this buffer anymore in game. however, some code<commit_msg>cleanup<commit_after>#include "gfx.h"
#include "gconsole.h"

#ifndef DEDICATED_ONLY
#include "2xsai.h"
#include "blitters/blitters.h"
#include "blitters/colors.h"
#include "blitters/macros.h"
#include "sprite_set.h"
#include "sprite.h"
#endif
#include <boost/bind.hpp>
#include <boost/assign/list_inserter.hpp>
using namespace boost::assign;

#include "gusanos/allegro.h"
#include "GfxPrimitives.h"
#include "AuxLib.h"

#include <string>
#include <algorithm>
#include <iostream>
#include <list>
#include <stdexcept>

using namespace std;

Gfx gfx;

namespace
{
	bool m_initialized = false;

#ifndef DEDICATED_ONLY
	SpriteSet* mouseCursor = 0;
	
	string screenShot(const list<string> &)
	{
		PushScreenshot("gus_scrshots", "");
		return "OK";
	}	
#endif
}

Gfx::Gfx()
#ifndef DEDICATED_ONLY
: buffer(NULL)
#endif
{
}

Gfx::~Gfx()
{
}


void Gfx::init()
{	
#ifndef DEDICATED_ONLY	
	Init_2xSaI(32); // needed for SUPER2XSAI and SUPEREAGLE filters
	
	// we don't use this buffer anymore in game. however, some code
{'fraction_non_alphanumeric': 0.13975011568718185, 'fraction_numerical': 0.006015733456732994, 'mean_word_length': 5.340175953079179, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4583731', 'n_tokens_mistral': 902, 'n_tokens_neox': 878, 'n_words': 189}