<commit_before>// sdfGenerator.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <string>
#include <fstream>
#include <vector>
#include <array>
#include <iostream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	array<string, 101> outputNames;

	for (int  i = 1; i <= 100; i++)
	{
		outputNames[i] = "file" + to_string(i + 140) + ".txt";
		
		cout << outputNames[i] << endl;
	}


	array <string, 141> outputImage;

	for (int i = 1; i <=140; i++)
	{
		outputImage[i] = "picture1" + to_string(i + 140) + ".ppm";
	}

	for (int i = 1; i <= 100; i++)
	{
		double yAxis = i*0.1;
		ofstream fOut(outputNames[i]);
		string cameraCmd = "define camera eye 65.0 0 0 " + to_string(i) + " 0 0 -1 0 1 0";
		string outputImg = "render eye " + outputImage[i] + " 600 600";
		fOut << "define material red 1 0 0 1 0 0 1 0 0 1" << endl
			<< "define material blue 0 0 1 0 0 1 0 0 1 1" << endl
			<< "define shape box floor   -400 -400 0  400 -410 -8000 blue" << endl
			<< "define shape box ceiling -400  400 0  400  410 -8000 blue" << endl
			<< "define shape box left    -400 -400 0 -410  400 -8000 blue" << endl
			<< "define shape box right    400 -400 0  410  410 -8000 blue" << endl
			<< "define shape sphere sphere 0 0 -200 30 red" << endl
			<< "define shape composite root left right floor ceiling sphere" << endl
			<< "define light ambient amb 0.5 0.5 0.5" << endl
			<< cameraCmd << endl << outputImg << endl;
		fOut.close();

	}

	return 0;
}
<commit_msg>Now starts the ray tracer after generating the files<commit_after>// sdfGenerator.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <string>
#include <fstream>
#include <vector>
#include <array>
#include <iostream>
#include <process.h>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	array<string, 101> outputNames;

	for (int  i = 1; i <= 100; i++)
	{
		outputNames[i] = "file" + to_string(i + 140) + ".txt";
		
		cout << outputNames[i] << endl;
	}


	array <string, 141> outputImage;

	for (int i = 1; i <=140; i++)
	{
		outputImage[i] = "picture1" + to_string(i + 140) + ".ppm";
	}

	for (int i = 1; i <= 100; i++)
	{
		double yAxis = i*0.1;
		ofstream fOut(outputNames[i]);
		string cameraCmd = "define camera eye 65.0 0 0 " + to_string(i) + " 0 0 -1 0 1 0";
		string outputImg = "render eye " + outputImage[i] + " 600 600";
		fOut << "define material red 1 0 0 1 0 0 1 0 0 1" << endl
			<< "define material blue 0 0 1 0 0 1 0 0 1 1" << endl
			<< "define shape box floor   -400 -400 0  400 -410 -8000 blue" << endl
			<< "define shape box ceiling -400  400 0  400  410 -8000 blue" << endl
			<< "define shape box left    -400 -400 0 -410  400 -8000 blue" << endl
			<< "define shape box right    400 -400 0  410  410 -8000 blue" << endl
			<< "define shape sphere sphere 0 0 -200 30 red" << endl
			<< "define shape composite root left right floor ceiling sphere" << endl
			<< "define light ambient amb 0.5 0.5 0.5" << endl
			<< cameraCmd << endl << outputImg << endl;
		fOut.close();

	}


	puts("Doing something");

	for (int i = 141; i < 143; i++)
	{
		char buffer[50];
		sprintf_s(buffer, "file%d.txt", i);
		_spawnl(P_WAIT, "raytracer.exe", "gridscene.sdf", buffer, "Arg2", NULL);
	}

	return 0;
}

{'fraction_non_alphanumeric': 0.15424557116676849, 'fraction_numerical': 0.09193646915088577, 'mean_word_length': 3.0036674816625917, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5523390', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1176, 'n_words': 450}