<commit_before>﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace SimQLTask
{
	class SimQLProgram
	{
		static void Main(string[] args)
		{
			var json = Console.In.ReadToEnd();
			foreach (var result in ExecuteQueries(json))
				Console.WriteLine(result);
		}

		public static IEnumerable<string> ExecuteQueries(string json)
		{
			var jObject = JObject.Parse(json);
			var data = (JObject)jObject["data"];
			var queries = jObject["queries"].ToObject<string[]>();
			// TODO
			return queries.Select(q => "TODO");
		}
	}
}<commit_msg>SimQL.Test commit<commit_after>﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace SimQLTask
{
	class SimQLProgram
	{
		static void Main(string[] args)
		{
			var json = Console.In.ReadToEnd();
		    foreach (var parsedResult in ExecuteQueries(json))
		    {
		        try
		        {
		            var result = int.Parse(parsedResult);
		            Console.WriteLine(result);
		        }
		        catch
		        {
                    var result = double.Parse(parsedResult);
                    Console.WriteLine(result);
                }
		    }
		}

		public static IEnumerable<string> ExecuteQueries(string json)
		{
			var jObject = JObject.Parse(json);
            //var data = (JObject)jObject["data"];
            var data = (JArray)jObject["data"];
            var queries = jObject["queries"].ToObject<string[]>();
			// TODO
			return queries.Select(q => "0");
		}

	}
}
{'fraction_non_alphanumeric': 0.12063686466625842, 'fraction_numerical': 0.000612369871402327, 'mean_word_length': 2.722095671981777, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '195617', 'n_tokens_mistral': 551, 'n_tokens_neox': 492, 'n_words': 107}