<commit_before>﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ClipUp.Sdk;
using ClipUp.Sdk.Interfaces;
using ClipUp.Sdk.Providers;

namespace ClipUp.Providers.PasteFyi
{
    public class PasteFyi : TextUploadProvider, IConfigurableProvider
    {
        private const string UPLOAD_URL = "http://paste.fyi/";

        private readonly BindingList<KeyValuePair<uint, string>> periods = new BindingList<KeyValuePair<uint, string>>
        {
            new KeyValuePair<uint, string>(60, "Minutes"),
            new KeyValuePair<uint, string>(3600, "Hours"),
            new KeyValuePair<uint, string>(86400, "Days"),
            new KeyValuePair<uint, string>(604800, "Weeks"),
            new KeyValuePair<uint, string>(2592000, "Months"),
            new KeyValuePair<uint, string>(31536000, "Years")
        };

        public override string Name => "paste.fyi";
        public override Version Version => new Version(1, 0, 0);
        public override string Website => "http://paste.fyi/";
        public override string Description => "paste.fyi text upload";
        public override Icon Icon => this.GetIcon();
        public override string AuthorName => "<NAME>";
        public override string AuthorWebsite => "https://github.com/JoeBiellik/clipup";
        public override long MaxSize => 1024 * 1024 * 2; // 2MB

        /// <summary>
        /// Gets or sets the upload expiry duration.
        /// Defaults to 1.
        /// User configurable.
        /// </summary>
        [DefaultValue(1)]
        public uint ExpiryDuration { get; set; } = 1;

        /// <summary>
        /// Gets or sets the upload expiry period.
        /// Defaults to "Weeks".
        /// User configurable.
        /// </summary>
        [DefaultValue("Weeks")]
        public string ExpiryPeriod { get; set; } = "Weeks";<commit_msg>Use HTTPS<commit_after>﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ClipUp.Sdk;
using ClipUp.Sdk.Interfaces;
using ClipUp.Sdk.Providers;

namespace ClipUp.Providers.PasteFyi
{
    public class PasteFyi : TextUploadProvider, IConfigurableProvider
    {
        private const string UPLOAD_URL = "https://paste.fyi/";

        private readonly BindingList<KeyValuePair<uint, string>> periods = new BindingList<KeyValuePair<uint, string>>
        {
            new KeyValuePair<uint, string>(60, "Minutes"),
            new KeyValuePair<uint, string>(3600, "Hours"),
            new KeyValuePair<uint, string>(86400, "Days"),
            new KeyValuePair<uint, string>(604800, "Weeks"),
            new KeyValuePair<uint, string>(2592000, "Months"),
            new KeyValuePair<uint, string>(31536000, "Years")
        };

        public override string Name => "paste.fyi";
        public override Version Version => new Version(1, 0, 0);
        public override string Website => "https://paste.fyi/";
        public override string Description => "paste.fyi text upload";
        public override Icon Icon => this.GetIcon();
        public override string AuthorName => "<NAME>";
        public override string AuthorWebsite => "https://github.com/JoeBiellik/clipup";
        public override long MaxSize => 1024 * 1024 * 2; // 2MB

        /// <summary>
        /// Gets or sets the upload expiry duration.
        /// Defaults to 1.
        /// User configurable.
        /// </summary>
        [DefaultValue(1)]
        public uint ExpiryDuration { get; set; } = 1;

        /// <summary>
        /// Gets or sets the upload expiry period.
        /// Defaults to "Weeks".
        /// User configurable.
        /// </summary>
        [DefaultValue("Weeks")]
        public string ExpiryPeriod { get; set; } = "Weeks";
{'fraction_non_alphanumeric': 0.12229862475442044, 'fraction_numerical': 0.023575638506876228, 'mean_word_length': 2.617229129662522, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 49, 'https://': 4, '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': '6508246', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1138, 'n_words': 320}