<commit_before>require 'base64'

module MangoPay
  class Client < Resource

    class << self

      def create(params)
        MangoPay.request(:post, '/api/clients/', params, {}, {
          'user_agent' => "MangoPay V2 RubyBindings/#{VERSION}",
          'Content-Type' => 'application/json'
        })
      end

      # see https://docs.mangopay.com/api-references/client-details/
      def fetch()
        MangoPay.request(:get, url())
      end<commit_msg>Corret inaccurate API URL<commit_after>require 'base64'

module MangoPay
  class Client < Resource

    class << self

      def create(params)
        MangoPay.request(:post, '/clients/', params, {}, {
          'user_agent' => "MangoPay V2 RubyBindings/#{VERSION}",
          'Content-Type' => 'application/json'
        })
      end

      # see https://docs.mangopay.com/api-references/client-details/
      def fetch()
        MangoPay.request(:get, url())
      end
{'fraction_non_alphanumeric': 0.14025695931477516, 'fraction_numerical': 0.006423982869379015, 'mean_word_length': 2.4, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '774209', 'n_tokens_mistral': 297, 'n_tokens_neox': 286, 'n_words': 58}