<commit_before>class Soap::IndividualsController < ApplicationController
  skip_before_filter :authenticate_user_from_token!
  skip_before_filter :authenticate_me!
  protect_from_forgery :except => [:get_by_hbx_id, :wsdl]

  SOAP_NS = {
    :soap => 'http://www.w3.org/2001/12/soap-envelope',
    :cv_soap => 'http://openhbx.org/api/transports/soap/1.0'
  }

  def get_by_hbx_id
    in_req = get_soap_body
    user_token = get_user_token(in_req)
    if fail_authentication(user_token)
      render :status => 403, :nothing => true
      return
    end
    hbx_id = get_hbx_id(in_req)
    if hbx_id.blank?
      render :status => 422, :nothing => true
      return
    end
    @people = Person.where('members.hbx_member_id' => hbx_id)
    render 'index', :content_type => "text/xml"
  end

  def wsdl<commit_msg>Fixing issues with status.<commit_after>class Soap::IndividualsController < ApplicationController
  skip_before_filter :authenticate_user_from_token!
  skip_before_filter :authenticate_me!
  protect_from_forgery :except => [:get_by_hbx_id, :wsdl]

  SOAP_NS = {
    :soap => 'http://www.w3.org/2001/12/soap-envelope',
    :cv_soap => 'http://openhbx.org/api/transports/soap/1.0'
  }

  def get_by_hbx_id
    in_req = get_soap_body
    user_token = get_user_token(in_req)
    if fail_authentication(user_token)
      render :status => 401, :nothing => true
      return
    end
    hbx_id = get_hbx_id(in_req)
    if hbx_id.blank?
      render :status => 422, :nothing => true
      return
    end
    @people = Person.where('members.hbx_member_id' => hbx_id)
    render 'index', :content_type => "text/xml"
  end

  def wsdl
{'fraction_non_alphanumeric': 0.11559633027522936, 'fraction_numerical': 0.01834862385321101, 'mean_word_length': 3.608450704225352, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4883544', 'n_tokens_mistral': 657, 'n_tokens_neox': 598, 'n_words': 106}