<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;

namespace TwixelAPI
{
    public class SearchedGame : Game
    {
        public WebUrl imagesThumb;
        public WebUrl imagesTiny;
        public WebUrl imagesSmall;
        public WebUrl imagesSuper;
        public WebUrl imagesMedium;
        public WebUrl imagesIcon;
        public WebUrl imagesScreen;
        public int popularity;

        public SearchedGame(string name,
            JObject boxO,
            JObject logoO,
            long? id,
            long? giantBombId,
            int? viewers,
            int? channels,
            JObject imagesO,
            int popularity) : base(name, boxO, logoO, id, giantBombId, viewers, channels)
        {
            this.popularity = popularity;
            LoadImages(imagesO);
        }

        void LoadImages(JObject o)
        {
            if (o != null)
            {
                imagesThumb = new WebUrl((string)o["thumb"]);
                imagesTiny = new WebUrl((string)o["tiny"]);
                imagesSmall = new WebUrl((string)o["small"]);
                imagesSuper = new WebUrl((string)o["super"]);
                imagesMedium = new WebUrl((string)o["medium"]);
                imagesIcon = new WebUrl((string)o["icon"]);
                imagesScreen = new WebUrl((string)o["screen"]);
            }<commit_msg>I am angry at twitch<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;

namespace TwixelAPI
{
    public class SearchedGame : Game
    {
        public WebUrl imagesThumb;
        public WebUrl imagesTiny;
        public WebUrl imagesSmall;
        public WebUrl imagesSuper;
        public WebUrl imagesMedium;
        public WebUrl imagesIcon;
        public WebUrl imagesScreen;
        public int popularity;

        public SearchedGame(string name,
            JObject boxO,
            JObject logoO,
            long? id,
            long? giantBombId,
            int? viewers,
            int? channels,
            JObject imagesO,
            int popularity) : base(name, boxO, logoO, id, giantBombId, viewers, channels)
        {
            this.popularity = popularity;
            LoadImages(imagesO);
        }

        // Also a little note Twitch NEVER uses this...
        void LoadImages(JObject o)
        {
            if (o != null)
            {
                imagesThumb = new WebUrl((string)o["thumb"]);
                imagesTiny = new WebUrl((string)o["tiny"]);
                imagesSmall = new WebUrl((string)o["small"]);
                imagesSuper = new WebUrl((string)o["super"]);
                imagesMedium = new WebUrl((string)o["medium"]);
                imagesIcon = new WebUrl((string)o["icon"]);
                imagesScreen = new WebUrl((string)o["screen"]);
            }
{'fraction_non_alphanumeric': 0.09442475024170158, 'fraction_numerical': 0.0, 'mean_word_length': 1.9421800947867298, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5486488', 'n_tokens_mistral': 848, 'n_tokens_neox': 823, 'n_words': 216}