<commit_before>//  Author:
//       <NAME> <<EMAIL>>
//
//  Copyright (c) 2015 <NAME>
//
// This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. 
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ 
// or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

#if DEBUG
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;

namespace AT_Utils
{
    public static class DebugUtils
    {
        public static void CSV(string filename, params object[] args)
        { 
            var row = new StringBuilder();
            var len = args.Length;
            var last_i = len-1;
            for(int i = 0; i < len; i++) 
            {
                var arg = args[i];
                if(arg is Vector3)
                {
                    var v = (Vector3)arg;
                    row.Append(v.x);
                    row.Append(",");
                    row.Append(v.y);
                    row.Append(",");
                    row.Append(v.z);
                }
                else if(arg is Vector3d)
                {
                    var v = (Vector3d)arg;
                    row.Append(v.x);
                    row.Append(",");
                    row.Append(v.y);
                    row.Append(",");
                    row.Append(v.z);
                }
                else if(arg is Vector4)
                {
                    var v = (Vector4)arg;
                    row.Append(v.x);
                    row.Append(",");
                    row.Append(v.y);
                    row.Append(",");
                    row.Append(v.z);
                    row.Append(",");
                    row.Append(v.w);
                }
                else if(arg is Vector4d)<commit_msg>Added formatting of Vector2(d) to convert_args<commit_after>//  Author:
//       <NAME> <<EMAIL>>
//
//  Copyright (c) 2015 <NAME>
//
// This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. 
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ 
// or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

#if DEBUG
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;

namespace AT_Utils
{
    public static class DebugUtils
    {
        public static void CSV(string filename, params object[] args)
        { 
            var row = new StringBuilder();
            var len = args.Length;
            var last_i = len-1;
            for(int i = 0; i < len; i++) 
            {
                var arg = args[i];
                if(arg is Vector2)
                {
                    var v = (Vector2)arg;
                    row.Append(v.x);
                    row.Append(",");
                    row.Append(v.y);
                }
                else if(arg is Vector2d)
                {
                    var v = (Vector2d)arg;
                    row.Append(v.x);
                    row.Append(",");
                    row.Append(v.y);
                }
                else if(arg is Vector3)
                {
                    var v = (Vector3)arg;
                    row.Append(v.x);
                    row.Append(",");
                    row.Append(v.y);
                    row.Append(",");
                    row.Append(v.z);
                }
                else if(arg is Vector3d)
                {
                    var v = (Vector3d)arg;
                    row.Append(v.x);
                    row.Append(",");
                    row.Append(v.y);
                    row.Append(",");
                    row.Append(v.z);
                }
                else if(arg is Vector4)
                {
                    var v = (Vector4)arg;
                    row.Append(v.x);
                    row.Append(",");
                    row.Append(v.y);
                    row.Append(",");
                    row.Append(v.z);
                    row.Append(",");
                    row.Append(v.w);
                }
                else if(arg is Vector4d)
{'fraction_non_alphanumeric': 0.1140861466821886, 'fraction_numerical': 0.013271245634458672, 'mean_word_length': 1.0535372848948374, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '3270919', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1126, 'n_words': 292}