<commit_before>#ifndef RENDERINGWIDGET_H
#define RENDERINGWIDGET_H

#include <qopenglwidget.h>
#include <QTimer>
#include "BasicRenderer\BasicRenderer.h"

class QRenderingWidget : public QOpenGLWidget
{
	Q_OBJECT

protected:
	std::unique_ptr<BasicRenderer> bRenderer;
	std::unique_ptr<QImage> img;
	std::unique_ptr<QTimer> timer;
	std::unique_ptr<World> scene;
	std::shared_ptr<const FrameBuffer> frame;

	BasicRenderer::RenderingMode renderingMode = BasicRenderer::RenderingMode::RAYTRACER;
	BasicRenderer::ShadingMode shadingMode = BasicRenderer::ShadingMode::LIT;

	std::string rTime = "";

	float cameraSpeed = 3.0f;
	float cameraRotationSpeed = 20.0f;
	Vector3 cameraPos;
	Vector2 cameraRot;
	Vector2 lastMousePos;

	double renderingTime = 0.0;

public:
	QRenderingWidget(QWidget* parent);
	~QRenderingWidget();

	void SetScene(const char* filename);
	void SaveFrame(const char* path);

signals:
	void RenderingCompleted(double time);
	void RendererResized();

public slots:
	void RenderFrame();<commit_msg>default rendering mode set back to rasterizer<commit_after>#ifndef RENDERINGWIDGET_H
#define RENDERINGWIDGET_H

#include <qopenglwidget.h>
#include <QTimer>
#include "BasicRenderer\BasicRenderer.h"

class QRenderingWidget : public QOpenGLWidget
{
	Q_OBJECT

protected:
	std::unique_ptr<BasicRenderer> bRenderer;
	std::unique_ptr<QImage> img;
	std::unique_ptr<QTimer> timer;
	std::unique_ptr<World> scene;
	std::shared_ptr<const FrameBuffer> frame;

	BasicRenderer::RenderingMode renderingMode = BasicRenderer::RenderingMode::RASTERIZER;
	BasicRenderer::ShadingMode shadingMode = BasicRenderer::ShadingMode::LIT;

	std::string rTime = "";

	float cameraSpeed = 3.0f;
	float cameraRotationSpeed = 20.0f;
	Vector3 cameraPos;
	Vector2 cameraRot;
	Vector2 lastMousePos;

	double renderingTime = 0.0;

public:
	QRenderingWidget(QWidget* parent);
	~QRenderingWidget();

	void SetScene(const char* filename);
	void SaveFrame(const char* path);

signals:
	void RenderingCompleted(double time);
	void RendererResized();

public slots:
	void RenderFrame();
{'fraction_non_alphanumeric': 0.10403500243072436, 'fraction_numerical': 0.009722897423432183, 'mean_word_length': 7.4, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4086163', 'n_tokens_mistral': 699, 'n_tokens_neox': 688, 'n_words': 149}