<commit_before>// copyright 2015 afuzzyllama

using System.Security.Policy;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
using ProceduralVoxelMesh;
using UnityEngine;


namespace Assets
{
    public class Test : MonoBehaviour
    {
        private GameObject _testObject;
        private int _screenshotCount;
        private bool _ready;
        private float _timeAcc;

	public static void StartTest()
	{
#if UNITY_EDITOR
		EditorApplication.ExecuteMenuItem("Edit/Play");
#endif
	}


        public void Start()
        {
            _testObject = new GameObject("Test Object");
            VoxelMesh voxelMesh = _testObject.AddComponent<VoxelMesh>();

            Voxel[,,] voxels = new Voxel[16,16,16];
            for(int w = 0; w < 16; ++w)
            {
                for(int h = 0; h < 16; ++h)
                {
                    for(int d = 0; d < 16; ++d)
                    {
                        voxels[w,h,d].Color = new Color(w / 16.0f, h / 16.0f, d / 16.0f);
                    }
                }
            }
            voxelMesh.SetVoxels(voxels);

            _screenshotCount = 0;
            _ready = true;
            _timeAcc = 0.0f;
        }

	public void Update()
        {
            if(_screenshotCount == 6)
            {
#if UNITY_EDITOR
				EditorApplication.Exit(0);
#else<commit_msg>Update Test.cs<commit_after>// copyright 2015 afuzzyllama

using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
using ProceduralVoxelMesh;

namespace Assets
{
    public class Test : MonoBehaviour
    {
        private GameObject _testObject;
        private int _screenshotCount;
        private bool _ready;
        private float _timeAcc;

	public static void StartTest()
	{
#if UNITY_EDITOR
		EditorApplication.ExecuteMenuItem("Edit/Play");
#endif
	}


        public void Start()
        {
            _testObject = new GameObject("Test Object");
            VoxelMesh voxelMesh = _testObject.AddComponent<VoxelMesh>();

            Voxel[,,] voxels = new Voxel[16,16,16];
            for(int w = 0; w < 16; ++w)
            {
                for(int h = 0; h < 16; ++h)
                {
                    for(int d = 0; d < 16; ++d)
                    {
                        voxels[w,h,d].Color = new Color(w / 16.0f, h / 16.0f, d / 16.0f);
                    }
                }
            }
            voxelMesh.SetVoxels(voxels);

            _screenshotCount = 0;
            _ready = true;
            _timeAcc = 0.0f;
        }

	public void Update()
        {
            if(_screenshotCount == 6)
            {
#if UNITY_EDITOR
		EditorApplication.Exit(0);
#else
{'fraction_non_alphanumeric': 0.09958349110185535, 'fraction_numerical': 0.024990533888678532, 'mean_word_length': 1.5851272015655578, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '3003074', 'n_tokens_mistral': 901, 'n_tokens_neox': 806, 'n_words': 194}