<commit_before>module Twilio
  module REST
    class IncomingPhoneNumbers < ListResource
      can :list, :get, :create

      def initialize(client)
        super
        path "/Accounts/#{@account_sid}/IncomingPhoneNumbers.json"
      end

      def buy(phone_number)
        create phone_number: phone_number
      end
    end

    class IncomingPhoneNumber < InstanceResource
      can :update, :delete
      
      def initialize(client, params={})
        super
        path "/Accounts/#{@account_sid}/IncomingPhoneNumbers/#{@sid}"
      end<commit_msg>Adds proper extension to incoming_phone_numbers<commit_after>module Twilio
  module REST
    class IncomingPhoneNumbers < ListResource
      can :list, :get, :create

      def initialize(client)
        super
        path "/Accounts/#{@account_sid}/IncomingPhoneNumbers.json"
      end

      def buy(phone_number)
        create phone_number: phone_number
      end
    end

    class IncomingPhoneNumber < InstanceResource
      can :update, :delete

      def initialize(client, params={})
        super
        path "/Accounts/#{@account_sid}/IncomingPhoneNumbers/#{@sid}.json"
      end
{'fraction_non_alphanumeric': 0.0842745438748914, 'fraction_numerical': 0.0, 'mean_word_length': 2.6455696202531644, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2227128', 'n_tokens_mistral': 330, 'n_tokens_neox': 315, 'n_words': 77}