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


namespace DeserializeJson
{
  internal static class Program
  {
    private static void Main()
    {
      /*
       var splashQuoteJson = [{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"A man never knows how to say goodbye; a woman never knows when to say it.","q_url":"/quotes/quotes/h/helenrowla108311.html","q_id":108311,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"You will never win if you never begin.","q_url":"/quotes/quotes/h/helenrowla119693.html","q_id":119693,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"A bride at her second marriage does not wear a veil. She wants to see what she is getting.","q_url":"/quotes/quotes/h/helenrowla385987.html","q_id":385987,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"Jealousy is the tie that binds, and binds, and binds.","q_url":"/quotes/quotes/h/helenrowla379364.html","q_id":379364,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"A bachelor never quite gets over the idea that he is a thing of beauty and a boy forever.","q_url":"/quotes/quotes/h/helenrowla118483.html","q_id":118483,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"The hardest task in a girl\u0027s life is to prove to a man that his intentions are serious.","q_url":"/quotes/quotes/h/helenrowla106745.html","q_id":106745,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"Home is any four walls that enclose the right person.","q_url":"/quotes/quotes/h/helenrowla133034.html","q_id":133034,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"In olden times sacrifices were made at the altar - a practice which is still continued.","q_url":"/quotes/quotes/h/helenrowla106677.html","q_id":106677,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"Somehow a bachelor never quite gets over the idea that he is a thing of beauty and a boy forever.","q_url":"/quotes/quotes/h/helenrowla147595.html","q_id":147595,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"The tenderest spot in a man\u0027s make-up is sometimes the bald spot on top of his head.","q_url":"/quotes/quotes/h/helenrowla147596.html","q_id":147596,"an":"<NAME>"}];
 
       */
      Action<string> display = Console.WriteLine;
      display("déserialisation d'un objet JSON");
      //ListOfQuotes listOfQuotes = new JavaScriptSerializer().Deserialize<RootObject>();
      var json = "[{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"A man never knows how to say goodbye; a woman never knows when to say it.\",\"q_url\":\" / quotes / quotes / h / helenrowla108311.html\",\"q_id\":108311,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"You will never win if you never begin.\",\"q_url\":\" / quotes / quotes / h / helenrowla119693.html\",\"q_id\":119693,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"A bride at her second marriage does not wear a veil.She wants to see what she is getting.\",\"q_url\":\" / quotes / quotes / h / helenrowla385987.html\",\"q_id\":385987,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"Jealousy is the tie that binds, and binds, and binds.\",\"q_url\":\" / quotes / quotes / h / helenrowla379364.html\",\"q_id\":379364,\"an\":\"<NAME>land\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"A bachelor never quite gets over the idea that he is a thing of beauty and a boy forever.\",\"q_url\":\" / quotes / quotes / h / helenrowla118483.html\",\"q_id\":118483,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"The hardest task in a girl\"s life is to prove to a man that his intentions are serious.\",\"q_url\":\" / quotes / quotes / h / helenrowla106745.html\",\"q_id\":106745,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"Home is any four walls that enclose the right person.\",\"q_url\":\" / quotes / quotes / h / helenrowla133034.html\",\"q_id\":133034,\"an\":\"Hel<NAME>land\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"In olden times sacrifices were made at the altar - a practice which is still continued.\",\"q_url\":\" / quotes / quotes / h / helenrowla106677.html\",\"q_id\":106677,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"Somehow a bachelor never quite gets over the idea that he is a thing of beauty and a boy forever.\",\"q_url\":\" / quotes / quotes / h / helenrowla147595.html\",\"q_id\":147595,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"The tenderest spot in a man\"s make-up is sometimes the bald spot on top of his head.\",\"q_url\":\" / quotes / quotes / h / helenrowla147596.html\",\"q_id\":147596,\"an\":\"<NAME>land\"}]";
      //json = "[{\"firstName\":\"Bill\",\"lastName\":\"Gates\"}," +
        //     "{\"firstName\":\"Melinda\",\"lastName\":\"Gates\"}]";
      var result = JsonConvert.DeserializeObject<List<Dictionary<string, string>>>(json);

      display("Press a key to exit:");
      Console.ReadKey();
    }
  }
}<commit_msg>Review code<commit_after>﻿using System;
using System.Collections.Generic;
using Newtonsoft;
using Newtonsoft.Json;


namespace DeserializeJson
{
  internal static class Program
  {
    private static void Main()
    {
      /*
       var splashQuoteJson = [{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"A man never knows how to say goodbye; a woman never knows when to say it.","q_url":"/quotes/quotes/h/helenrowla108311.html","q_id":108311,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"You will never win if you never begin.","q_url":"/quotes/quotes/h/helenrowla119693.html","q_id":119693,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"A bride at her second marriage does not wear a veil. She wants to see what she is getting.","q_url":"/quotes/quotes/h/helenrowla385987.html","q_id":385987,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"Jealousy is the tie that binds, and binds, and binds.","q_url":"/quotes/quotes/h/helenrowla379364.html","q_id":379364,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"A bachelor never quite gets over the idea that he is a thing of beauty and a boy forever.","q_url":"/quotes/quotes/h/helenrowla118483.html","q_id":118483,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"The hardest task in a girl\u0027s life is to prove to a man that his intentions are serious.","q_url":"/quotes/quotes/h/helenrowla106745.html","q_id":106745,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"Home is any four walls that enclose the right person.","q_url":"/quotes/quotes/h/helenrowla133034.html","q_id":133034,"an":"<NAME>land"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"In olden times sacrifices were made at the altar - a practice which is still continued.","q_url":"/quotes/quotes/h/helenrowla106677.html","q_id":106677,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"Somehow a bachelor never quite gets over the idea that he is a thing of beauty and a boy forever.","q_url":"/quotes/quotes/h/helenrowla147595.html","q_id":147595,"an":"<NAME>"},{"a_url":"/quotes/authors/h/helen_rowland.html","qt":"The tenderest spot in a man\u0027s make-up is sometimes the bald spot on top of his head.","q_url":"/quotes/quotes/h/helenrowla147596.html","q_id":147596,"an":"<NAME>"}];
 
       */
      Action<string> display = Console.WriteLine;
      display("déserialisation d'un objet JSON");
      //ListOfQuotes listOfQuotes = new JavaScriptSerializer().Deserialize<RootObject>();
      var json = "[{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"A man never knows how to say goodbye; a woman never knows when to say it.\",\"q_url\":\" / quotes / quotes / h / helenrowla108311.html\",\"q_id\":108311,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"You will never win if you never begin.\",\"q_url\":\" / quotes / quotes / h / helenrowla119693.html\",\"q_id\":119693,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"A bride at her second marriage does not wear a veil.She wants to see what she is getting.\",\"q_url\":\" / quotes / quotes / h / helenrowla385987.html\",\"q_id\":385987,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"Jealousy is the tie that binds, and binds, and binds.\",\"q_url\":\" / quotes / quotes / h / helenrowla379364.html\",\"q_id\":379364,\"an\":\"Hel<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"A bachelor never quite gets over the idea that he is a thing of beauty and a boy forever.\",\"q_url\":\" / quotes / quotes / h / helenrowla118483.html\",\"q_id\":118483,\"an\":\"Hel<NAME>land\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"The hardest task in a girl\"s life is to prove to a man that his intentions are serious.\",\"q_url\":\" / quotes / quotes / h / helenrowla106745.html\",\"q_id\":106745,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"Home is any four walls that enclose the right person.\",\"q_url\":\" / quotes / quotes / h / helenrowla133034.html\",\"q_id\":133034,\"an\":\"Hel<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"In olden times sacrifices were made at the altar - a practice which is still continued.\",\"q_url\":\" / quotes / quotes / h / helenrowla106677.html\",\"q_id\":106677,\"an\":\"<NAME>\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"Somehow a bachelor never quite gets over the idea that he is a thing of beauty and a boy forever.\",\"q_url\":\" / quotes / quotes / h / helenrowla147595.html\",\"q_id\":147595,\"an\":\"Helen Rowland\"},{\"a_url\":\" / quotes / authors / h / helen_rowland.html\",\"qt\":\"The tenderest spot in a man\"s make-up is sometimes the bald spot on top of his head.\",\"q_url\":\" / quotes / quotes / h / helenrowla147596.html\",\"q_id\":147596,\"an\":\"<NAME>\"}]";
      //json = "[{\"firstName\":\"Bill\",\"lastName\":\"Gates\"}," +
        //     "{\"firstName\":\"Melinda\",\"lastName\":\"Gates\"}]";
      var result = JsonConvert.DeserializeObject<List<Quote>>(json);

      display("Press a key to exit:");
      Console.ReadKey();
    }
  }
}
{'fraction_non_alphanumeric': 0.22256612267867193, 'fraction_numerical': 0.04652035265428625, 'mean_word_length': 4.06315289648623, 'pattern_counts': {'":': 208, '<': 51, '<?xml version=': 0, '>': 51, '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': '3712488', 'n_tokens_mistral': 4093, 'n_tokens_neox': 3713, 'n_words': 823}