<commit_before>﻿using Windows.Data.Json;

namespace LottieUWP
{
    /// <summary>
    /// Data class describing an image asset exported by bodymovin.
    /// </summary>
    public class LottieImageAsset
    {
        private LottieImageAsset(int width, int height, string id, string fileName)
        {
            Width = width;
            Height = height;
            Id = id;
            FileName = fileName;
        }

        internal static class Factory
        {
            internal static LottieImageAsset NewInstance(JsonObject imageJson)
            {
                return new LottieImageAsset((int)imageJson.GetNamedNumber("w"), (int)imageJson.GetNamedNumber("h"), imageJson.GetNamedString("id"), imageJson.GetNamedString("p"));
            }
        }

        public virtual int Width { get; }

        public virtual int Height { get; }

        public virtual string Id { get; }

        public virtual string FileName { get; }
    }<commit_msg>Expose image relative directory name.<commit_after>﻿using Windows.Data.Json;

namespace LottieUWP
{
    /// <summary>
    /// Data class describing an image asset exported by bodymovin.
    /// </summary>
    public class LottieImageAsset
    {
        private LottieImageAsset(int width, int height, string id, string fileName, string dirName)
        {
            Width = width;
            Height = height;
            Id = id;
            FileName = fileName;
            DirName = dirName;
        }

        internal static class Factory
        {
            internal static LottieImageAsset NewInstance(JsonObject imageJson)
            {
                return new LottieImageAsset((int)imageJson.GetNamedNumber("w"), (int)imageJson.GetNamedNumber("h"), imageJson.GetNamedString("id"), imageJson.GetNamedString("p"), imageJson.GetNamedString("u"));
            }
        }

        public virtual int Width { get; }

        public virtual int Height { get; }

        public virtual string Id { get; }

        public virtual string FileName { get; }

        public virtual string DirName { get; }
    }
{'fraction_non_alphanumeric': 0.09086538461538461, 'fraction_numerical': 0.0, 'mean_word_length': 2.0558002936857562, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4095215', 'n_tokens_mistral': 557, 'n_tokens_neox': 534, 'n_words': 154}