<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web.Http;
using Newtonsoft.Json;
using InSeasonAPI.Models;
using System.Web;

namespace InSeasonAPI.Controllers
{
    public class RootController : ApiController
    {
        [Route("something")]
        public IHttpActionResult Get()
        {
            return this.Ok("WHUT");
        }

        /// <summary>
        /// Get a county from a county code
        /// </summary>
        /// <param name="county"></param>
        /// <returns></returns>
        [Route("getCountyLocation/{county}")]
        public IHttpActionResult CountyToGnis(string county)
        {
            var data = new Utils.Converter().CountyToGnis(Int32.Parse(county));

            return this.Ok(data);
        }

        /// <summary>
        /// Get a county from a gnis identifier
        /// </summary>
        /// <param name="gnis"></param>
        /// <returns></returns>
        [Route("getGnisLocation/{gnis}")]
        public IHttpActionResult GnisToCounty(string gnis)
        {
            var data = new Utils.Converter().GnisToCounty(Int32.Parse(gnis));

            return this.Ok(data);
        }

        [Route("animals")]
        public IHttpActionResult GetAnimals()
        {
            var filenames = Directory.GetFiles("C:\\Documents", "*.json")
                                     .Select(path => Path.GetFileName(path))
                                     .ToArray();

            return this.Ok(data);
        }

        private Hunting getdata()
        {
            using (StreamReader sr = new StreamReader(System.Web.HttpContext.Current.Server.MapPath("~/App_Data/crow.json")))
            {
                return JsonConvert.DeserializeObject<Hunting>(sr.ReadToEnd());
            }

        }
    }
}
<commit_msg>Returns filenames for animals now<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web.Http;
using Newtonsoft.Json;
using InSeasonAPI.Models;
using System.Web;

namespace InSeasonAPI.Controllers
{
    public class RootController : ApiController
    {
        [Route("something")]
        public IHttpActionResult Get()
        {
            return this.Ok("WHUT");
        }

        /// <summary>
        /// Get a county from a county code
        /// </summary>
        /// <param name="county"></param>
        /// <returns></returns>
        [Route("getCountyLocation/{county}")]
        public IHttpActionResult CountyToGnis(string county)
        {
            var data = new Utils.Converter().CountyToGnis(Int32.Parse(county));

            return this.Ok(data);
        }

        /// <summary>
        /// Get a county from a gnis identifier
        /// </summary>
        /// <param name="gnis"></param>
        /// <returns></returns>
        [Route("getGnisLocation/{gnis}")]
        public IHttpActionResult GnisToCounty(string gnis)
        {
            var data = new Utils.Converter().GnisToCounty(Int32.Parse(gnis));

            return this.Ok(data);
        }

        [Route("animals")]
        public IHttpActionResult GetAnimals()
        {
            var filenames = Directory.GetFiles(System.Web.HttpContext.Current.Server.MapPath("~/App_Data/animals/"), "*.json")
                                     .Select(path => Path.GetFileNameWithoutExtension(path))
                                     .ToArray();

            return this.Ok(filenames);
        }

        private Hunting getdata()
        {
            using (StreamReader sr = new StreamReader(System.Web.HttpContext.Current.Server.MapPath("~/App_Data/crow.json")))
            {
                return JsonConvert.DeserializeObject<Hunting>(sr.ReadToEnd());
            }

        }
    }
}

{'fraction_non_alphanumeric': 0.12763713080168776, 'fraction_numerical': 0.002109704641350211, 'mean_word_length': 1.8200743494423792, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1998470', 'n_tokens_mistral': 1067, 'n_tokens_neox': 1019, 'n_words': 198}