<commit_before>﻿using UnityEngine;
using System.Collections;

public class LevelCreator : MonoBehaviour {

	private GameObject CreateLevel(Texture2D image)
    {
        Transform parent = new GameObject("Level").transform;
        for (int y = 0; y < image.height; y++)
        {
            for (int x = 0; x < image.width; x++)
            {
                Color pixel = image.GetPixel(x, y);
                if (pixel == Color.white)
                    continue;
                else if (pixel.r == 1)
                {
                    GameObject tile = GameObject.CreatePrimitive(PrimitiveType.Quad);
                }
                else if (pixel.g == 1)
                {
                    GameObject tile = GameObject.CreatePrimitive(PrimitiveType.Quad);
                    tile.renderer.enabled = false;
                }
            }
        }
        return parent.gameObject;
    }
}<commit_msg>Level Creator parser<commit_after>﻿using UnityEngine;
using System.Collections;

public class LevelCreator : MonoBehaviour {

    [SerializeField]
    private GameObject tilePrefab;

	private object[][] CreateLevel(Texture2D image)
    {

        object[][] tiles = new object[image.height][];
        for (int y = 0; y < image.height; y++)
        {
            tiles[y] = new object[image.width];
            for (int x = 0; x < image.width; x++)
            {
                Color pixel = image.GetPixel(x, y);
                if (pixel.r == 1)
                {
                    tiles[y][x] = new object();
                }
                else if (pixel.g == 1)
                {
                    tiles[y][x] = new object();
                }
                else if (pixel.b == 1)
                {
                    tiles[y][x] = new object();
                }
                else
                    tiles[y][x] = new object();
            }
        }
        return tiles;
    }
}
{'fraction_non_alphanumeric': 0.10833333333333334, 'fraction_numerical': 0.005729166666666666, 'mean_word_length': 1.228538283062645, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '5370394', 'n_tokens_mistral': 535, 'n_tokens_neox': 501, 'n_words': 125}