<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Untappd.Net.Client;
using Untappd.Net.Request;

namespace Untappd.Net.Authentication
{
    public static class AuthenticationHelper
    {
        /// <summary>
        /// Redirect the user to this string.
        /// </summary>
        /// <param name="credentials"></param>
        /// <param name="redirectUrl">The URL to redirect back to your application. Should listen on code as a string param</param>
        /// <returns></returns>
        public static string RedirectUserTo(IUnAuthenticadedUntappdCredentials credentials, string redirectUrl)
        {
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            if (string.IsNullOrWhiteSpace(redirectUrl))
            {
                throw new ArgumentNullException("redirectUrl");
            }
           
            return string.Format("{0}/?client_id={1}&response_type=code&redirect_url={2}", Constants.BaseRequestString,
                credentials.ClientId, redirectUrl);
        }

        /// <summary>
        /// Url to get the OAuth token.
        /// </summary>
        /// <param name="credentials"></param>
        /// <param name="redirectUrl"></param>
        /// <param name="code">Data returned by the initial request(see: RedirectUserTo)</param>
        /// <returns></returns>
        public static string TokenUrl(IUnAuthenticadedUntappdCredentials credentials, string redirectUrl, string code)
        {
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            if (string.IsNullOrWhiteSpace(redirectUrl))
            {
                throw new ArgumentNullException("redirectUrl");
            }
            if (string.IsNullOrWhiteSpace(code))
            {
                throw new ArgumentNullException("code");
            }
            return string.Format("{0}/?client_id={1}&client_secret={2}&response_type=code&redirect_url={3}&code={4}", 
                Constants.OAuthTokenEndPoint, 
                credentials.ClientId, 
                credentials.ClientSecret,
                redirectUrl, 
                code);
        }
    }
}
<commit_msg>fixed reference<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Untappd.Net.Client;
using Untappd.Net.Request;

namespace Untappd.Net.Authentication
{
    public static class AuthenticationHelper
    {
        /// <summary>
        /// Redirect the user to this string.
        /// </summary>
        /// <param name="credentials"></param>
        /// <param name="redirectUrl">The URL to redirect back to your application. Should listen on code as a string param</param>
        /// <returns></returns>
        public static string RedirectUserTo(IUnAuthenticatedUntappdCredentials credentials, string redirectUrl)
        {
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            if (string.IsNullOrWhiteSpace(redirectUrl))
            {
                throw new ArgumentNullException("redirectUrl");
            }
           
            return string.Format("{0}/?client_id={1}&response_type=code&redirect_url={2}", Constants.BaseRequestString,
                credentials.ClientId, redirectUrl);
        }

        /// <summary>
        /// Url to get the OAuth token.
        /// </summary>
        /// <param name="credentials"></param>
        /// <param name="redirectUrl"></param>
        /// <param name="code">Data returned by the initial request(see: RedirectUserTo)</param>
        /// <returns></returns>
        public static string TokenUrl(IUnAuthenticatedUntappdCredentials credentials, string redirectUrl, string code)
        {
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            if (string.IsNullOrWhiteSpace(redirectUrl))
            {
                throw new ArgumentNullException("redirectUrl");
            }
            if (string.IsNullOrWhiteSpace(code))
            {
                throw new ArgumentNullException("code");
            }
            return string.Format("{0}/?client_id={1}&client_secret={2}&response_type=code&redirect_url={3}&code={4}", 
                Constants.OAuthTokenEndPoint, 
                credentials.ClientId, 
                credentials.ClientSecret,
                redirectUrl, 
                code);
        }
    }
}

{'fraction_non_alphanumeric': 0.11049723756906077, 'fraction_numerical': 0.003399915002124947, 'mean_word_length': 1.952948557089084, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2364810', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1169, 'n_words': 249}