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

namespace InSeasonAPI.Utils
{
    class Converter
    {
        public int Convert()
        {
            return 1;
        }
    }
}<commit_msg>linq to csv usage<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LinqToExcel;
using System.IO;

namespace InSeasonAPI.Utils
{
    class Converter
    {
        public object Convert()
        {
           // using (StreamReader sr = new StreamReader(System.Web.HttpContext.Current.Server.MapPath("~/App_Data/crow.json")))
           // {
                var excel = new ExcelQueryFactory(System.Web.HttpContext.Current.Server.MapPath("~/App_Data/crow.json"));
            //}
            return (from x in excel.Worksheet<object>() select x).FirstOrDefault();
        }
    }
}
{'fraction_non_alphanumeric': 0.11216931216931217, 'fraction_numerical': 0.0010582010582010583, 'mean_word_length': 2.596958174904943, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4126372', 'n_tokens_mistral': 286, 'n_tokens_neox': 274, 'n_words': 59}