<commit_before>module Signifyd
  class Resource < SignifydObject
    def self.class_name
      self.name.split('::')[-1]
    end
    
    def self.url
      raise NotImplementedError.new('APIResource is an abstract class. You should perform actions on its subclasses (Case).') if self == Resource
     "#{@@api_version}#{CGI.escape(class_name.downcase)}s"
    end
    
    def url
      unless id = self['id']
        raise InvalidRequestError.new("Could not determine which URL to request: #{self.class} instance has invalid ID: #{id.inspect}", 'id')
      end
      "#{self.class.url}/#{CGI.escape(id)}"
    end
  end<commit_msg>Changed where the version number comes from<commit_after>module Signifyd
  class Resource < SignifydObject
    def self.class_name
      self.name.split('::')[-1]
    end
    
    def self.url
      raise NotImplementedError.new('APIResource is an abstract class. You should perform actions on its subclasses (Case).') if self == Resource
     "#{Signifyd.api_version}#{CGI.escape(class_name.downcase)}s"
    end
    
    def url
      unless id = self['id']
        raise InvalidRequestError.new("Could not determine which URL to request: #{self.class} instance has invalid ID: #{id.inspect}", 'id')
      end
      "#{self.class.url}/#{CGI.escape(id)}"
    end
  end
{'fraction_non_alphanumeric': 0.12086220169361046, 'fraction_numerical': 0.001539645881447267, 'mean_word_length': 3.1139240506329116, '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': '2609706', 'n_tokens_mistral': 394, 'n_tokens_neox': 401, 'n_words': 113}