<commit_before>﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Net.Http;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.Owin;
using Microsoft.Owin.Infrastructure;
using Microsoft.Owin.Logging;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.DataHandler.Encoder;
using Microsoft.Owin.Security.Infrastructure;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Net.Http.Headers;

namespace Owin.Security.Providers.Onshape
{
    public class OnshapeAuthenticationHandler : AuthenticationHandler<OnshapeAuthenticationOptions>
    {
        private const string StateCookie = "_OnshapeState";
        private const string XmlSchemaString = "http://www.w3.org/2001/XMLSchema#string";
        private const string AuthorizationEndpoint = "/oauth/authorize";
        private const string TokenEndpoint = "/oauth/token";
        private const string UserInfoEndpoint = "/api/users/current";<commit_msg>changing the user info endpoint to one that does not require user permission for access to user personal information<commit_after>﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Net.Http;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.Owin;
using Microsoft.Owin.Infrastructure;
using Microsoft.Owin.Logging;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.DataHandler.Encoder;
using Microsoft.Owin.Security.Infrastructure;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Net.Http.Headers;

namespace Owin.Security.Providers.Onshape
{
    public class OnshapeAuthenticationHandler : AuthenticationHandler<OnshapeAuthenticationOptions>
    {
        private const string StateCookie = "_OnshapeState";
        private const string XmlSchemaString = "http://www.w3.org/2001/XMLSchema#string";
        private const string AuthorizationEndpoint = "/oauth/authorize";
        private const string TokenEndpoint = "/oauth/token";
        private const string UserInfoEndpoint = "/api/users/session";
{'fraction_non_alphanumeric': 0.08741092636579573, 'fraction_numerical': 0.004750593824228029, 'mean_word_length': 5.104347826086957, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2891297', 'n_tokens_mistral': 553, 'n_tokens_neox': 550, 'n_words': 139}