<commit_before># -*- encoding : utf-8 -*-
module VersacommerceAPI

  class Item < Base
    self.prefix = "/api/items/:item_id/"

    def product
      Product.find product_id
    end
  end
  
end<commit_msg>Associations for item<commit_after># -*- encoding : utf-8 -*-
module VersacommerceAPI

  class Item < Base
    include Associatable

    def product
      associated_resource "product"
    end

    def order
      associated_resource "order"
    end
  end
  
end
{'fraction_non_alphanumeric': 0.08528784648187633, 'fraction_numerical': 0.0042643923240938165, 'mean_word_length': 2.5074626865671643, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3733613', 'n_tokens_mistral': 144, 'n_tokens_neox': 141, 'n_words': 40}