<commit_before>﻿using TeleBotDotNet.Json;

namespace TeleBotDotNet.Responses.Types
{
    public class PhotoSizeResponse
    {
        public string FileId { get; private set; }
        public int Width { get; private set; }
        public int Height { get; private set; }
        public int? FileSize { get; private set; }

        internal static PhotoSizeResponse Parse(JsonData data)
        {
            if (data == null || !data.Has("file_id") || data.Has("width") || data.Has("height"))
            {
                return null;
            }

            return new PhotoSizeResponse
            {
                FileId = data.Get<string>("file_id"),
                Width = data.Get<int>("width"),
                Height = data.Get<int>("height"),
                FileSize = data.Get<int?>("file_size")
            };
        }
    }
}<commit_msg>Fix #5 (wrong PhotoSizeResponse null check)<commit_after>﻿using TeleBotDotNet.Json;

namespace TeleBotDotNet.Responses.Types
{
    public class PhotoSizeResponse
    {
        public string FileId { get; private set; }
        public int Width { get; private set; }
        public int Height { get; private set; }
        public int? FileSize { get; private set; }

        internal static PhotoSizeResponse Parse(JsonData data)
        {
            if (data == null || !data.Has("file_id") || !data.Has("width") || !data.Has("height"))
            {
                return null;
            }

            return new PhotoSizeResponse
            {
                FileId = data.Get<string>("file_id"),
                Width = data.Get<int>("width"),
                Height = data.Get<int>("height"),
                FileSize = data.Get<int?>("file_size")
            };
        }
    }
}
{'fraction_non_alphanumeric': 0.11842105263157894, 'fraction_numerical': 0.0005720823798627002, 'mean_word_length': 1.7674050632911393, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5378086', 'n_tokens_mistral': 490, 'n_tokens_neox': 470, 'n_words': 115}