<commit_before>module BandwidthIris
  SIPPEER_PRODUCTS_PATH = 'products'

  class SipPeerProducts
    extend ClientWrapper
    include ApiItem

    def self.get_origination_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings")
      return data
    end
    wrap_client_arg :get_origination_settings

    def self.set_origination_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:post, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings", {:sip_peer_origination_settings => data})
      return data
    end
    wrap_client_arg :set_origination_settings

    def self.update_origination_settings(client, site_id, sippeer_id, data)
      client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings", {:sip_peer_origination_settings => data})
    end
    wrap_client_arg :update_origination_settings

    def self.get_termination_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings")
      return data
    end
    wrap_client_arg :get_termination_settings

    def self.create_termination_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:post, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings", {:sip_peer_termination_settings => data})
      return data
    end
    wrap_client_arg :create_termination_settings

    def self.update_termination_settings(client, site_id, sippeer_id, data)
      client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings", {:sip_peer_termination_settings => data})
    end
    wrap_client_arg :update_termination_settings

    def self.get_sms_feature_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms")
      return data
    end
    wrap_client_arg :get_sms_feature_settings

    def self.create_sms_feature_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:post, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms", {:sip_peer_sms_feature => data})
      return data
    end
    wrap_client_arg :create_sms_feature_settings

    def self.update_sms_feature_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms", {:sip_peer_sms_feature => data})
      return data
    end
    wrap_client_arg :update_sms_feature_settings

    def self.delete_sms_feature_settings(client, site_id, sippeer_id)
      data = client.make_request(:delete, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms")
      return data
    end
    wrap_client_arg :delete_sms_feature_settings

    def self.get_mms_feature_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms")
      return data
    end
    wrap_client_arg :get_mms_feature_settings

    def self.create_mms_feature_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:post, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms", {:mms_feature => data})
      return data
    end
    wrap_client_arg :create_mms_feature_settings

    def self.update_mms_feature_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms", {:mms_feature => data})
      return data
    end
    wrap_client_arg :update_mms_feature_settings

    def self.delete_mms_feature_settings(client, site_id, sippeer_id)
      data = client.make_request(:delete, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms")
      return data
    end
    wrap_client_arg :delete_mms_feature_settings

    #TODO: Come up with a better name
    def self.get_mms_feature_settings_duplicate(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms/settings")
      return data
    end
    wrap_client_arg :get_mms_feature_settings_duplicate

    def self.get_messaging_application_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/applicationSettings")
      return data
    end
    wrap_client_arg :get_messaging_application_settings

    def self.update_messaging_application_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/applicationSettings", {:applications_settings => data})
      return data
    end
    wrap_client_arg :update_messaging_application_settings

    def self.get_messaging_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/settings")
      return data
    end
    wrap_client_arg :get_messaging_settings

    def self.update_messaging_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/settings", {:sip_peer_messaging_settings => data})
      return data
    end
    wrap_client_arg :update_messaging_settings
  end
end
<commit_msg>improved function name<commit_after>module BandwidthIris
  SIPPEER_PRODUCTS_PATH = 'products'

  class SipPeerProducts
    extend ClientWrapper
    include ApiItem

    def self.get_origination_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings")
      return data
    end
    wrap_client_arg :get_origination_settings

    def self.set_origination_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:post, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings", {:sip_peer_origination_settings => data})
      return data
    end
    wrap_client_arg :set_origination_settings

    def self.update_origination_settings(client, site_id, sippeer_id, data)
      client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/origination/settings", {:sip_peer_origination_settings => data})
    end
    wrap_client_arg :update_origination_settings

    def self.get_termination_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings")
      return data
    end
    wrap_client_arg :get_termination_settings

    def self.create_termination_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:post, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings", {:sip_peer_termination_settings => data})
      return data
    end
    wrap_client_arg :create_termination_settings

    def self.update_termination_settings(client, site_id, sippeer_id, data)
      client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/termination/settings", {:sip_peer_termination_settings => data})
    end
    wrap_client_arg :update_termination_settings

    def self.get_sms_feature_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms")
      return data
    end
    wrap_client_arg :get_sms_feature_settings

    def self.create_sms_feature_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:post, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms", {:sip_peer_sms_feature => data})
      return data
    end
    wrap_client_arg :create_sms_feature_settings

    def self.update_sms_feature_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms", {:sip_peer_sms_feature => data})
      return data
    end
    wrap_client_arg :update_sms_feature_settings

    def self.delete_sms_feature_settings(client, site_id, sippeer_id)
      data = client.make_request(:delete, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/sms")
      return data
    end
    wrap_client_arg :delete_sms_feature_settings

    def self.get_mms_feature_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms")
      return data
    end
    wrap_client_arg :get_mms_feature_settings

    def self.create_mms_feature_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:post, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms", {:mms_feature => data})
      return data
    end
    wrap_client_arg :create_mms_feature_settings

    def self.update_mms_feature_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms", {:mms_feature => data})
      return data
    end
    wrap_client_arg :update_mms_feature_settings

    def self.delete_mms_feature_settings(client, site_id, sippeer_id)
      data = client.make_request(:delete, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms")
      return data
    end
    wrap_client_arg :delete_mms_feature_settings

    def self.get_mms_feature_mms_settings_duplicate(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/features/mms/settings")
      return data
    end
    wrap_client_arg :get_mms_feature_mms_settings_duplicate

    def self.get_messaging_application_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/applicationSettings")
      return data
    end
    wrap_client_arg :get_messaging_application_settings

    def self.update_messaging_application_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/applicationSettings", {:applications_settings => data})
      return data
    end
    wrap_client_arg :update_messaging_application_settings

    def self.get_messaging_settings(client, site_id, sippeer_id)
      data = client.make_request(:get, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/settings")
      return data
    end
    wrap_client_arg :get_messaging_settings

    def self.update_messaging_settings(client, site_id, sippeer_id, data)
      data = client.make_request(:put, "#{client.concat_account_path(SITE_PATH)}/#{site_id}/#{SIPPEER_PATH}/#{sippeer_id}/#{SIPPEER_PRODUCTS_PATH}/messaging/settings", {:sip_peer_messaging_settings => data})
      return data
    end
    wrap_client_arg :update_messaging_settings
  end
end

{'fraction_non_alphanumeric': 0.12194937665281451, 'fraction_numerical': 0.0, 'mean_word_length': 5.908141962421712, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '6425003', 'n_tokens_mistral': 4783, 'n_tokens_neox': 4769, 'n_words': 537}