<commit_before>require 'openssl'
require 'savon'

module Faction #:nodoc:

  # Exception base for Faction
  class Exception < ::Exception; end
  # Any sort of Exception from Crowd
  class AuthenticationException < Exception; end

  # See http://docs.atlassian.com/crowd/current/com/atlassian/crowd/integration/service/soap/server/SecurityServer.html
  # for Crowd SOAP API documentation.
  #
  # The <tt>validation_factors</tt> parameter is a <tt>Hash</tt> that can contain the following keys:
  # * <tt>:user_agent</tt> - <tt>ValidationFactor.USER_AGENT</tt>
  # * <tt>:remote_address</tt> - <tt>ValidationFactor.REMOTE_ADDRESS</tt>
  # * <tt>:remote_host</tt> - <tt>ValidationFactor.REMOTE_HOST</tt>
  # * <tt>:forwarded_for</tt> - <tt>ValidationFactor.X_FORWARDED_FOR</tt>
  # * <tt>:random_number</tt> - <tt>ValidationFactor.RANDOM_NUMBER</tt>
  # * <tt>:name</tt> - <tt>ValidationFactor.NAME</tt>
  class Client
    @@debug = false

    # Sets the global debugging for Client
    def self.debug=(value)
      @@debug = value
    end

    # True if Faction is in debug mode
    def self.debug?
      @@debug
    end

    # Url of the Crowd SecurityServer
    attr_reader :crowd_url
    # Application name
    attr_reader :app_name
    # Appliction password
    attr_reader :app_password

    # Instantiates a new client using a "standard" <tt>crowd.properties</tt> file.<commit_msg>Fix a typo<commit_after>require 'openssl'
require 'savon'
require "faction/version"


module Faction #:nodoc:

  # Exception base for Faction
  class Exception < ::Exception; end
  # Any sort of Exception from Crowd
  class AuthenticationException < Exception; end

  # See http://docs.atlassian.com/crowd/current/com/atlassian/crowd/integration/service/soap/server/SecurityServer.html
  # for Crowd SOAP API documentation.
  #
  # The <tt>validation_factors</tt> parameter is a <tt>Hash</tt> that can contain the following keys:
  # * <tt>:user_agent</tt> - <tt>ValidationFactor.USER_AGENT</tt>
  # * <tt>:remote_address</tt> - <tt>ValidationFactor.REMOTE_ADDRESS</tt>
  # * <tt>:remote_host</tt> - <tt>ValidationFactor.REMOTE_HOST</tt>
  # * <tt>:forwarded_for</tt> - <tt>ValidationFactor.X_FORWARDED_FOR</tt>
  # * <tt>:random_number</tt> - <tt>ValidationFactor.RANDOM_NUMBER</tt>
  # * <tt>:name</tt> - <tt>ValidationFactor.NAME</tt>
  class Client
    @@debug = false

    # Sets the global debugging for Client
    def self.debug=(value)
      @@debug = value
    end

    # True if Faction is in debug mode
    def self.debug?
      @@debug
    end

    # Url of the Crowd SecurityServer
    attr_reader :crowd_url
    # Application name
    attr_reader :app_name
    # Application password
    attr_reader :app_password

    # Instantiates a new client using a "standard" <tt>crowd.properties</tt> file.
{'fraction_non_alphanumeric': 0.12406149445834823, 'fraction_numerical': 0.0, 'mean_word_length': 3.7504244482173177, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 63, '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': '2431277', 'n_tokens_mistral': 952, 'n_tokens_neox': 906, 'n_words': 215}