<commit_before>require 'rubygems'

begin
  require 'soap/wsdlDriver'
rescue LoadError
  puts "soap not found"
end

module VatValidator
  class ViesChecker
  
    WSDL = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'
  
    class << self
     def check(country_code, vat_number)
       begin
         proxy = SOAP::WSDLDriverFactory.new(WSDL).create_rpc_driver
         return proxy.checkVat(:countryCode => country_code, :vatNumber => vat_number).valid
       rescue
        false
       end
     end
    end
  end
end<commit_msg>vies checker<commit_after>require 'rubygems'

begin
  require 'soap/wsdlDriver'
rescue LoadError
  # soap not found
end

module VatValidator
  class ViesChecker
  
    WSDL = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'
  
    class << self
     def check(country_code, vat_number)
       begin
         proxy = SOAP::WSDLDriverFactory.new(WSDL).create_rpc_driver
         return proxy.checkVat(:countryCode => country_code, :vatNumber => vat_number).valid
       rescue
        false
       end
     end
    end
  end
end
{'fraction_non_alphanumeric': 0.081651376146789, 'fraction_numerical': 0.0, 'mean_word_length': 2.868794326241135, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7015602', 'n_tokens_mistral': 376, 'n_tokens_neox': 370, 'n_words': 75}