<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace NStripe
{
    public class StripeGateway
    {
        private const string BaseUrl = "https://api.stripe.com/v1";

        private string apiKey;
        private string publishableKey;
        public ICredentials Credentials { get; set; }
        private string UserAgent { get; set; }

        public StripeGateway(string apiKey, string publishableKey = null)
        {
            this.apiKey = apiKey;
            this.publishableKey = publishableKey;
            Credentials = new NetworkCredential(apiKey, "");
            UserAgent = "NStripe";
        }

        public T PostRequest<T>(string url, string stringToPost)
        {
            WebRequest request = PrepareRequest(url, "POST", stringToPost);
            return ExecuteRequest<T>(request);
        }

        public T PostRequest<T>(string url, string stringToPost, string idempotencyKey)
        {
            WebRequest request = PrepareRequest(url, "POST", stringToPost, idempotencyKey);
            return ExecuteRequest<T>(request);
        }<commit_msg>Removed duplicate method<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace NStripe
{
    public class StripeGateway
    {
        private const string BaseUrl = "https://api.stripe.com/v1";

        private string apiKey;
        private string publishableKey;
        public ICredentials Credentials { get; set; }
        private string UserAgent { get; set; }

        public StripeGateway(string apiKey, string publishableKey = null)
        {
            this.apiKey = apiKey;
            this.publishableKey = publishableKey;
            Credentials = new NetworkCredential(apiKey, "");
            UserAgent = "NStripe";
        }

        public T PostRequest<T>(string url, string stringToPost, string idempotencyKey = null)
        {
            WebRequest request = PrepareRequest(url, "POST", stringToPost, idempotencyKey);
            return ExecuteRequest<T>(request);
        }
{'fraction_non_alphanumeric': 0.08674157303370786, 'fraction_numerical': 0.0008988764044943821, 'mean_word_length': 2.5903225806451613, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '4800905', 'n_tokens_mistral': 612, 'n_tokens_neox': 607, 'n_words': 158}