<commit_before>﻿using System;
using System.Collections.Generic;
using System.Text;
using Parquet.Data;
using Xunit;

namespace Parquet.Test
{
   public class NestedStructuresTest
   {
      [Fact]
      public void Simple_nested_structure_write_read()
      {
         var ds = new DataSet(
            new SchemaElement<string>("name"),
            new SchemaElement<Row>("address",
               new SchemaElement<string>("line1"),
               new SchemaElement<string>("postcode")
            ));

         ds.Add("Ivan", new Row("Woods", "postcode"));
         Assert.Equal(1, ds.RowCount);
         Assert.Equal(2, ds.ColumnCount);

         DataSet ds1 = DataSetGenerator.WriteRead(ds);

         ParquetWriter.WriteFile(ds, "c:\\tmp\\nested.parquet");
      }
   }<commit_msg>fixing test<commit_after>﻿using System;
using System.Collections.Generic;
using System.Text;
using Parquet.Data;
using Xunit;

namespace Parquet.Test
{
   public class NestedStructuresTest
   {
      [Fact]
      public void Simple_nested_structure_write_read()
      {
         var ds = new DataSet(
            new SchemaElement<string>("name"),
            new SchemaElement<Row>("address",
               new SchemaElement<string>("line1"),
               new SchemaElement<string>("postcode")
            ));

         ds.Add("Ivan", new Row("Woods", "postcode"));
         Assert.Equal(1, ds.RowCount);
         Assert.Equal(2, ds.ColumnCount);

         DataSet ds1 = DataSetGenerator.WriteRead(ds);

         //ParquetWriter.WriteFile(ds, "c:\\tmp\\nested.parquet");
      }
   }
{'fraction_non_alphanumeric': 0.12579415501905972, 'fraction_numerical': 0.005082592121982211, 'mean_word_length': 2.4691629955947136, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2876355', 'n_tokens_mistral': 460, 'n_tokens_neox': 458, 'n_words': 89}