<commit_before>﻿using System;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;

namespace Trains.WP8.UK
{
    public partial class StationPage : PhoneApplicationPage
    {
        public StationPage()
        {
            InitializeComponent();
        }

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var uri = e.Uri.OriginalString.Replace("/StationPage.xaml", "/Trains.WP8;component/StationPage.xaml")
                                          .Replace("stationCode", "station");
            NavigationService.Navigate(new Uri(uri, UriKind.Relative));
        }
    }
}<commit_msg>Fixed compatibility with live tiles from previous versions<commit_after>﻿using System;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;

namespace Trains.WP8.UK
{
    public partial class StationPage : PhoneApplicationPage
    {
        public StationPage()
        {
            InitializeComponent();
        }

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (e.NavigationMode == NavigationMode.New) 
            {
                var uri = e.Uri.OriginalString.Replace("/StationPage.xaml", "/Trains.WP8;component/StationPage.xaml")
                                              .Replace("stationCode", "station") + "?removeBackEntry"
                NavigationService.Navigate(new Uri(uri, UriKind.Relative));
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.09573002754820936, 'fraction_numerical': 0.0027548209366391185, 'mean_word_length': 2.1518438177874186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2865770', 'n_tokens_mistral': 367, 'n_tokens_neox': 353, 'n_words': 71}