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

namespace GoToParks.Core
{
    public class ParkRepository
    {
        public ParkRepository()
        {

        }

        public List<Park> GetAllParks()
        {
            return parks;
        }

        private static List<Park> parks = new List<Park>()
        {
            new Park()
            {
                Id = 1,
                Name = "<NAME>",
                Address = "5900 Lake Washington Blvd S",
                Lat = 47.54923f,
                Long = -122.250639f
            },
            new Park()
            {
                Id = 2,
                Name = "<NAME>",
                Address = "3801 Discover Park Blvd",
                Lat = 47.66083f,
                Long = -122.415282f
            },
            new Park()
            {
                Id = 3,
                Name = "<NAME>",
                Address = "8011 Fauntleroy Wa SW",
                Lat = 47.531176f,
                Long = -122.396012f
            },
            new Park()
            {
                Id = 4,
                Name = "<NAME>",
                Address = "2300 Arboretum Dr E",
                Lat = 47.636477f,
                Long = -122.294835f
            },

        };
    }
}<commit_msg>added GetParkById method to repository<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GoToParks.Core
{
    public class ParkRepository
    {
        public ParkRepository()
        {

        }

        public List<Park> GetAllParks()
        {
            return parks;
        }

        public Park GetParkById(int id)
        {
            IEnumerable<Park> park = from p in parks where p.Id == id select p;
            return park.FirstOrDefault();
        }

        private static List<Park> parks = new List<Park>()
        {
            new Park()
            {
                Id = 1,
                Name = "<NAME>",
                Address = "5900 Lake Washington Blvd S",
                Hours = "6am - 9pm",
                Lat = 47.54923f,
                Long = -122.250639f
            },
            new Park()
            {
                Id = 2,
                Name = "<NAME>",
                Address = "3801 Discover Park Blvd",
                Hours = "8am - 10pm",
                Lat = 47.66083f,
                Long = -122.415282f
            },
            new Park()
            {
                Id = 3,
                Name = "<NAME>",
                Address = "8011 Fauntleroy Wa SW",
                Hours = "7am - 7pm",
                Lat = 47.531176f,
                Long = -122.396012f
            },
            new Park()
            {
                Id = 4,
                Name = "<NAME>",
                Address = "2300 Arboretum Dr E",
                Hours = "5am - 10pm",
                Lat = 47.636477f,
                Long = -122.294835f
            },

        };
    }
}
{'fraction_non_alphanumeric': 0.09760051880674449, 'fraction_numerical': 0.05901426718547341, 'mean_word_length': 0.9439193446754883, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '7485592', 'n_tokens_mistral': 989, 'n_tokens_neox': 813, 'n_words': 211}