<commit_before>class Spree::MercadoPago::CustomClient::Resource
  attr_accessor :client, :version

  def initialize(client, version = 'v1')
    @client = client
    @version = version
  end

  def endpoint(id = nil)
    endpoint = "/#{version}/#{self.class.name.demodulize.downcase.pluralize}"
    if id 
      endpoint = "#{endpoint}/#{id}"<commit_msg>fix for camel cased resources<commit_after>class Spree::MercadoPago::CustomClient::Resource
  attr_accessor :client, :version

  def initialize(client, version = 'v1')
    @client = client
    @version = version
  end

  def endpoint(id = nil)
    endpoint = "/#{version}/#{self.class.name.demodulize.pluralize.underscore}"
    if id 
      endpoint = "#{endpoint}/#{id}"
{'fraction_non_alphanumeric': 0.1408839779005525, 'fraction_numerical': 0.0027624309392265192, 'mean_word_length': 4.06993006993007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3431443', 'n_tokens_mistral': 238, 'n_tokens_neox': 235, 'n_words': 49}