<commit_before>﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System;
using System.Runtime.Serialization;
using Assets.Scripts.Serializable;

public class ObjectBuilderScript : MonoBehaviour
{
	public GameObject obj;
	public Vector3 spawnPoint;

	public void BuildObject()
	{
		Instantiate(obj, spawnPoint, Quaternion.identity);
	}


	public void SerializeObject()
	{
		List<GameObject> obj = new List<GameObject>();
		object[] allObjects = FindObjectsOfTypeAll(typeof(GameObject));
		foreach(object thisObject in allObjects)
		{
			if (((GameObject) thisObject).activeInHierarchy)
			{
				obj.Add ((GameObject) thisObject);
				Debug.Log (" Printing " + thisObject);
			}
		}
		SerializableGameObjectWrapper.serialize(obj);
		}

	public void DeserializeObject() {
        var a = SerializableGameObjectWrapper.read(); 
	}
}





<commit_msg>Refactoring<commit_after>﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System;
using System.Runtime.Serialization;
using Assets.Scripts.Serializable;

public class ObjectBuilderScript : MonoBehaviour
{
	public GameObject obj;
	public Vector3 spawnPoint;

	public void BuildObject()
	{
		Instantiate(obj, spawnPoint, Quaternion.identity);
	}


	public void SerializeObject()
	{
		List<GameObject> obj = new List<GameObject>();
		object[] allObjects = FindObjectsOfTypeAll(typeof(GameObject));
		foreach(object thisObject in allObjects)
		{
			if (((GameObject) thisObject).activeInHierarchy)
			{
				obj.Add ((GameObject) thisObject);
				Debug.Log (" Printing " + thisObject);
			}
		}
		SerializableGameObjectWrapper.serialize(obj);
		}

	public void DeserializeObject() {
        var a = SerializableGameObjectWrapper.read();
        Debug.Log("New");
	}
}






{'fraction_non_alphanumeric': 0.10400416016640665, 'fraction_numerical': 0.0010400416016640667, 'mean_word_length': 4.865853658536586, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5625291', 'n_tokens_mistral': 620, 'n_tokens_neox': 568, 'n_words': 125}