<commit_before>﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using ImgShare.Data.ImgurResponseModels;
using Newtonsoft.Json;

namespace ImgShare.Data
{
    public class ImgurApiSource
    {
        #region Imgur API Fields
        /// <summary>
        /// You, yeah you.  You need to set these fields to something before you run off
        /// and try to use this object.  You can grab API keys and the secret values by creating an API
        /// account at http://api.imgur.com If you don't, most all the stuff don't work.
        /// Actually, none of it will work so you should go make an account if you haven't already.
        /// 
        /// I'm serious.
        /// </summary>
        internal string _clientid = String.Empty;
        public String ClientID
        {
            set
            {
                this._clientid = value;
            }
        }

        internal string _clientsecret = String.Empty;
        public String ClientSecret
        {
            set
            {
                this._clientsecret = value;
            }
        }
        #endregion

        #region Singleton Setup
        private static ImgurApiSource _instance;
        public static ImgurApiSource Instance
        {
            get
            {
                if (_instance == null)
                {<commit_msg>You can now set the use type in the ImgurApiSource fields.  You should have always been able to do that but eh...<commit_after>﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using ImgShare.Data.ImgurResponseModels;
using Newtonsoft.Json;

namespace ImgShare.Data
{
    public class ImgurApiSource
    {
        #region Imgur API Fields
        /// <summary>
        /// You, yeah you.  You need to set these fields to something before you run off
        /// and try to use this object.  You can grab API keys and the secret values by creating an API
        /// account at http://api.imgur.com If you don't, most all the stuff don't work.
        /// Actually, none of it will work so you should go make an account if you haven't already.
        /// 
        /// I'm serious.
        /// </summary>
        internal string _clientid = String.Empty;
        public String ClientID
        {
            set
            {
                this._clientid = value;
            }
        }

        internal string _clientsecret = String.Empty;
        public String ClientSecret
        {
            set
            {
                this._clientsecret = value;
            }
        }

        internal ImgurEndpointUseType _useType = ImgurEndpointUseType.free;

        public ImgurEndpointUseType UseType
        {
            set
            {
                ImgurEndpoints._useType = value;
            }
            get
            {
                return ImgurEndpoints._useType;
            }
        }

        #endregion

        #region Singleton Setup
        private static ImgurApiSource _instance;
        public static ImgurApiSource Instance
        {
            get
            {
                if (_instance == null)
                {
{'fraction_non_alphanumeric': 0.06978119455943228, 'fraction_numerical': 0.0, 'mean_word_length': 1.5785060975609757, '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': '2243181', 'n_tokens_mistral': 875, 'n_tokens_neox': 851, 'n_words': 298}