<commit_before>﻿namespace Nine.Application
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Reflection;
    using System.Threading.Tasks;

    public class AppBundle : IAppBundle
    {
#if WINDOWS_PHONE || NETFX_CORE
        public async Task<Stream> Get(string filename)
        {
            var uri = new Uri("ms-appx:///" + filename);
            var file = await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(uri);
            if (file == null) return null;
            return await file.OpenStreamForReadAsync();
        }
#elif ANDROID
        private readonly Android.Content.Context context;
        private readonly Type resourceType;
        private readonly Lazy<Dictionary<string, Type>> classMap;
        private readonly string defaultResourceType;
        private static readonly char[] pathSeperators = new[] { '/', '\\' };
<commit_msg>Update AppBundle for windows store apps<commit_after>﻿namespace Nine.Application
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Reflection;
    using System.Threading.Tasks;

    public class AppBundle : IAppBundle
    {
#if WINDOWS_PHONE || NETFX_CORE
        public async Task<Stream> Get(string filename)
        {
            try
            {
                var location = Windows.ApplicationModel.Package.Current.InstalledLocation;
                var file = await location.GetFileAsync(filename.Replace("/", "\\"));
                if (file == null) return null;
                return await file.OpenStreamForReadAsync();
            }
            catch
            {
                return null;
            }
        }
#elif ANDROID
        private readonly Android.Content.Context context;
        private readonly Type resourceType;
        private readonly Lazy<Dictionary<string, Type>> classMap;
        private readonly string defaultResourceType;
        private static readonly char[] pathSeperators = new[] { '/', '\\' };

{'fraction_non_alphanumeric': 0.08780487804878048, 'fraction_numerical': 0.0, 'mean_word_length': 2.3295454545454546, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5738293', 'n_tokens_mistral': 517, 'n_tokens_neox': 509, 'n_words': 143}