<commit_before>﻿using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using NextBus.Web.Models;
using NextBus.Web.Models.Api;

namespace NextBus.Web.Controllers
{
    public class BusApiController : Controller
    {
        private IHostingEnvironment _hostingEnvironment;
        private IMemoryCache _memoryCache;

        public BusApiController(IHostingEnvironment hostingEnvironment)
        {
            _hostingEnvironment = hostingEnvironment;
        }

        private const string ApiEndpoint = "https://www.publictransport.com.mt/appws/";
        private const string ApiVersion = "1.3.1";
        private string RawBusStopDataPath => _hostingEnvironment.WebRootPath + "\\App_Data\\bus-stops-raw.json";
        private string BusStopDataPath => _hostingEnvironment.WebRootPath + "\\App_Data\\bus-stops.json";

        private IList<BusStopResponse> _busStops;
        private IList<BusStopResponse> BusStops<commit_msg>Updated api version<commit_after>﻿using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using NextBus.Web.Models;
using NextBus.Web.Models.Api;

namespace NextBus.Web.Controllers
{
    public class BusApiController : Controller
    {
        private IHostingEnvironment _hostingEnvironment;
        private IMemoryCache _memoryCache;

        public BusApiController(IHostingEnvironment hostingEnvironment)
        {
            _hostingEnvironment = hostingEnvironment;
        }

        private const string ApiEndpoint = "https://www.publictransport.com.mt/appws/";
        private const string ApiVersion = "1.4.5";
        private string RawBusStopDataPath => _hostingEnvironment.WebRootPath + "\\App_Data\\bus-stops-raw.json";
        private string BusStopDataPath => _hostingEnvironment.WebRootPath + "\\App_Data\\bus-stops.json";

        private IList<BusStopResponse> _busStops;
        private IList<BusStopResponse> BusStops
{'fraction_non_alphanumeric': 0.08776371308016878, 'fraction_numerical': 0.002531645569620253, 'mean_word_length': 3.868583162217659, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3389433', 'n_tokens_mistral': 651, 'n_tokens_neox': 660, 'n_words': 139}