<commit_before>#define _CRT_SECURE_NO_WARNINGS 1
#include "BoardView.h"
#include "history.h"

#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits.h>
#include <memory>
#include <stdio.h>
#ifndef _WIN32 // SDL not used on Windows
#include <SDL2/SDL.h>
#endif

#include "BDVFile.h"
#include "BRDBoard.h"
#include "BRDFile.h"
#include "FZFile.h"
#include "imgui/imgui.h"

#include "NetList.h"
#include "PartList.h"
#include "vectorhulls.h"

#include "platform.h"

using namespace std;
using namespace std::placeholders;

#if _MSC_VER
#define stricmp _stricmp
#endif

#ifndef _WIN32
#define stricmp strcasecmp
#endif

BoardView::~BoardView() {
	delete m_file;
	delete m_board;
	free(m_lastFileOpenName);
}

uint32_t BoardView::byte4swap(uint32_t x) {
	/*
	 * used to convert RGBA -> ABGR etc
	 */
	return (((x & 0x000000ff) << 24) | ((x & 0x0000ff00) << 8) | ((x & 0x00ff0000) >> 8) | ((x & 0xff000000) >> 24));
}

int BoardView::ConfigParse(void) {
	/*
	 * Some machines (Atom etc) don't have enough CPU/GPU
	 * grunt to cope with the large number of AA'd circles
	 * generated on a large dense board like a Macbook Pro
	 * so we have the lowCPU option which will let people
	 * trade good-looks for better FPS
	 *
	 * If we want slowCPU to take impact from a command line
	 * parameter, we need it to be set to false before we
	 * call this.
	 */
	slowCPU |= obvconfig.ParseBool("slowCPU", false);
	if (slowCPU == true) {
		fprintf(stderr, "SlowCPU active\n");
		ImGuiStyle &style       = ImGui::GetStyle();<commit_msg>Removed small debug line from slowCPU test in ConfigParse<commit_after>#define _CRT_SECURE_NO_WARNINGS 1
#include "BoardView.h"
#include "history.h"

#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits.h>
#include <memory>
#include <stdio.h>
#ifndef _WIN32 // SDL not used on Windows
#include <SDL2/SDL.h>
#endif

#include "BDVFile.h"
#include "BRDBoard.h"
#include "BRDFile.h"
#include "FZFile.h"
#include "imgui/imgui.h"

#include "NetList.h"
#include "PartList.h"
#include "vectorhulls.h"

#include "platform.h"

using namespace std;
using namespace std::placeholders;

#if _MSC_VER
#define stricmp _stricmp
#endif

#ifndef _WIN32
#define stricmp strcasecmp
#endif

BoardView::~BoardView() {
	delete m_file;
	delete m_board;
	free(m_lastFileOpenName);
}

uint32_t BoardView::byte4swap(uint32_t x) {
	/*
	 * used to convert RGBA -> ABGR etc
	 */
	return (((x & 0x000000ff) << 24) | ((x & 0x0000ff00) << 8) | ((x & 0x00ff0000) >> 8) | ((x & 0xff000000) >> 24));
}

int BoardView::ConfigParse(void) {
	/*
	 * Some machines (Atom etc) don't have enough CPU/GPU
	 * grunt to cope with the large number of AA'd circles
	 * generated on a large dense board like a Macbook Pro
	 * so we have the lowCPU option which will let people
	 * trade good-looks for better FPS
	 *
	 * If we want slowCPU to take impact from a command line
	 * parameter, we need it to be set to false before we
	 * call this.
	 */
	slowCPU |= obvconfig.ParseBool("slowCPU", false);
	if (slowCPU == true) {
		ImGuiStyle &style       = ImGui::GetStyle();
{'fraction_non_alphanumeric': 0.12812195913071683, 'fraction_numerical': 0.029192345118391177, 'mean_word_length': 4.308089500860585, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 27, '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': '4800566', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1099, 'n_words': 352}