<commit_before>/*
 * Copyright (C) 2014 - <NAME> <<EMAIL>>
 *
 * This sofware is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this software. If not, see <http://www.gnu.org/licenses/>.
 */

use ooc-draw
use ooc-math
import UnixWindow
import Win32DisplayWindow

DisplayWindow: abstract class {
	init: func (size: IntSize2D, title: String)
	draw: abstract func (image: Image)
	refresh: virtual func
	create: static func (size: IntSize2D, title: String) -> This {
		version(unix || apple)
			return UnixWindow new(size, title)
		version(windows)
			return Win32DisplayWindow new(size, title)
		raise("Platform not supported (DisplayWindow)")
		null
	}
}
<commit_msg>missing gpuOff flag in DisplayWindow<commit_after>/*
 * Copyright (C) 2014 - <NAME> <<EMAIL>>
 *
 * This sofware is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this software. If not, see <http://www.gnu.org/licenses/>.
 */

use ooc-draw
use ooc-math
import UnixWindow
import Win32DisplayWindow

DisplayWindow: abstract class {
	init: func (size: IntSize2D, title: String)
	draw: abstract func (image: Image)
	refresh: virtual func
	create: static func (size: IntSize2D, title: String) -> This {
		version((unix || apple) && !gpuOff)
			return UnixWindow new(size, title)
		version(windows)
			return Win32DisplayWindow new(size, title)
		raise("Platform not supported (DisplayWindow)")
		null
	}
}

{'fraction_non_alphanumeric': 0.08184039087947882, 'fraction_numerical': 0.009771986970684038, 'mean_word_length': 4.150943396226415, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '906454', 'n_tokens_mistral': 707, 'n_tokens_neox': 670, 'n_words': 319}