<commit_before>module Lobbyist
  module V2

    class Appointment < Lobbyist::V2::Base
      attr_accessor :id, :company_id, :name, :first_name, :last_name, :email, :phone, :appointment_date1, 
      :appointment_date2, :appointment_date3, :comments, :created_at, :updated_at

      def self.list(params = {})
        create_collection_from_response(get("/v2/appointments.json", params))
      end
    
      def self.find(id, company_id)
        create_from_response(get("/v2/appointments/#{id}.json"))
      end

      def self.update(id, company_id)
        create_from_response(put("/v2/appointments/#{id}.json"))
      end 
    end

  end
end<commit_msg>[addressess #70535966]1) updated route to api call 2)fix bug related to handling the pagination<commit_after>module Lobbyist
  module V2

    class Appointment < Lobbyist::V2::Base
      attr_accessor :id, :company_id, :name, :first_name, :last_name, :email, :phone, :appointment_date1, 
      :appointment_date2, :appointment_date3, :comments, :created_at, :updated_at

      def self.list(company_id, params = {})
        create_collection_from_response(get("/v2/companies/#{company_id}/appointments.json", params))
      end
    
      def self.find(id, company_id)
        create_from_response(get("/v2/companies/#{company_id}/appointments#{id}.json"))
      end

      def self.update(id, company_id)
        create_from_response(put("/v2/companies/#{company_id}/appointments#{id}.json"))
      end 
    end

  end
end
{'fraction_non_alphanumeric': 0.12483130904183536, 'fraction_numerical': 0.017543859649122806, 'mean_word_length': 3.6489028213166144, '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': '3285230', 'n_tokens_mistral': 510, 'n_tokens_neox': 491, 'n_words': 91}