<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HtmlBuilderCore.Elements
{
    public class HtmlTable : IHtmlElement
    {
        public int Rows { get; set; }
        public int Columns { get; set; }
        public List<object> RowsList { get; set; }
               
        public HtmlTable()
        {
            RowsList = new List<object>();
        }
        public string Singular = "";
        public void AddRowsToList(params string[] rowdata)
        {
            
            int i, j;
           
            if (rowdata.Length > (this.Columns * this.Rows))
            {
                throw new InvalidInputException("Please Enter Valid Input");
            }
            else
            {
                int c = 0;
                int RowDataLength = rowdata.Length;
                for (i = 0; i < this.Rows; i++)
                {
                    Singular += "<tr>";
                    for (j = 0; j < this.Columns; j++)
                    {
                        if (RowDataLength != 0)
                        {
                            Singular += "<td>" + rowdata[c++] + "</td>";
                            RowDataLength--;
                        }
                        else
                        {
                            Singular += "<td></td>";
                        }
                    }
                    Singular += "</tr>";
                    RowsList.Add(Singular);
                    Singular = "";
                }
            }
         }
        public string GetHtmlString()
        {
            foreach (object TableData in RowsList)
            {
                Singular += TableData;
            }
            return string.
                Format("<table border='1'>{0}</table>", this.Singular);
        }<commit_msg>Changed method name and a variable name.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HtmlBuilderCore.Elements
{
    public class HtmlTable : IHtmlElement
    {
        public int Rows { get; set; }
        public int Columns { get; set; }
        public List<object> RowsList { get; set; }
               
        public HtmlTable()
        {
            RowsList = new List<object>();
        }
        public string SingleRowToList = "";

        public void FillData(params string[] rowdata)
        {
            
            int i, j;
           
            if (rowdata.Length > (this.Columns * this.Rows))
            {
                throw new InvalidInputException("Please Enter Valid Input");
            }
            else
            {
                int c = 0;
                int RowDataLength = rowdata.Length;
                for (i = 0; i < this.Rows; i++)
                {
                    SingleRowToList += "<tr>";
                    for (j = 0; j < this.Columns; j++)
                    {
                        if (RowDataLength != 0)
                        {
                            SingleRowToList += "<td>" + rowdata[c++] + "</td>";
                            RowDataLength--;
                        }
                        else
                        {
                            SingleRowToList += "<td></td>";
                        }
                    }
                    SingleRowToList += "</tr>";
                    RowsList.Add(SingleRowToList);
                    SingleRowToList = "";
                }
            }
         }
        public string GetHtmlString()
        {
            foreach (object TableData in RowsList)
            {
                SingleRowToList += TableData;
            }
            return string.
                Format("<table border='1'>{0}</table>", this.SingleRowToList);
        }
{'fraction_non_alphanumeric': 0.09912008281573499, 'fraction_numerical': 0.003105590062111801, 'mean_word_length': 0.974961676034747, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 25, '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': '2748138', 'n_tokens_mistral': 954, 'n_tokens_neox': 899, 'n_words': 222}