<commit_before># This is a clone of the OmniAuth CAS Strategy for WIND
# Copyright (c) 2011 <NAME> and CustomInk, LLC
# distributed under the MIT license
# https://github.com/dlindahl/omniauth-cas
require 'omniauth'
require 'addressable/uri'

module OmniAuth
  module Strategies
    class WIND
      include OmniAuth::Strategy
      # Custom Exceptions
      class MissingWINDTicket < StandardError; end
      class InvalidWINDTicket < StandardError; end
      autoload :ServiceTicketValidator, 'omni_auth/strategies/wind/service_ticket_validator'
      autoload :LogoutRequest, 'omni_auth/strategies/wind/lgout_request'

      attr_accessor :raw_info
      alias_method :user_info, :raw_info

      option :name, :wind # Required property by OmniAuth::Strategy

      option :host, 'wind.columbia.edu'
      option :port, nil
      option :path, nil
      option :ssl,  true
      option :service_validate_url, '/validate'
      option :login_url,            '/login'
      option :service, nil
      option :logout_url,           '/logout'
      option :on_single_sign_out,   Proc.new {}
      # A Proc or lambda that returns a Hash of additional user info to be
      # merged with the info returned by the CAS server.
      #
      # @param [Object] An instance of OmniAuth::Strategies::CAS for the current request
      # @param [String] The user's Service Ticket value
      # @param [Hash] The user info for the Service Ticket returned by the CAS server
      #
      # @return [Hash] Extra user info
      option :fetch_raw_info,       Proc.new { Hash.new }
      # Make all the keys configurable with some defaults set here
      option :uid_field, 'user'
      option :name_key, 'name'<commit_msg>fix a typo in wind config<commit_after># This is a clone of the OmniAuth CAS Strategy for WIND
# Copyright (c) 2011 <NAME> and CustomInk, LLC
# distributed under the MIT license
# https://github.com/dlindahl/omniauth-cas
require 'omniauth'
require 'addressable/uri'

module OmniAuth
  module Strategies
    class WIND
      include OmniAuth::Strategy
      # Custom Exceptions
      class MissingWINDTicket < StandardError; end
      class InvalidWINDTicket < StandardError; end
      autoload :ServiceTicketValidator, 'omni_auth/strategies/wind/service_ticket_validator'
      autoload :LogoutRequest, 'omni_auth/strategies/wind/logout_request'

      attr_accessor :raw_info
      alias_method :user_info, :raw_info

      option :name, :wind # Required property by OmniAuth::Strategy

      option :host, 'wind.columbia.edu'
      option :port, nil
      option :path, nil
      option :ssl,  true
      option :service_validate_url, '/validate'
      option :login_url,            '/login'
      option :service, nil
      option :logout_url,           '/logout'
      option :on_single_sign_out,   Proc.new {}
      # A Proc or lambda that returns a Hash of additional user info to be
      # merged with the info returned by the CAS server.
      #
      # @param [Object] An instance of OmniAuth::Strategies::CAS for the current request
      # @param [String] The user's Service Ticket value
      # @param [Hash] The user info for the Service Ticket returned by the CAS server
      #
      # @return [Hash] Extra user info
      option :fetch_raw_info,       Proc.new { Hash.new }
      # Make all the keys configurable with some defaults set here
      option :uid_field, 'user'
      option :name_key, 'name'
{'fraction_non_alphanumeric': 0.0758681062153487, 'fraction_numerical': 0.0023344032681645753, 'mean_word_length': 2.9493087557603688, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '5878186', 'n_tokens_mistral': 1029, 'n_tokens_neox': 986, 'n_words': 346}