<commit_before># encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

describe "SendGrid4r::Client" do

  before :all do
    Dotenv.load
  end

  describe "initialize" do
    it "create instance" do
      SendGrid4r::Client.new("username", "password")
    end
  end

  describe "available method" do
    it "is exist method" do

      client = SendGrid4r::Client.new(ENV["SENDGRID_USERNAME"], ENV["SENDGRID_PASSWORD"])

      # Advanced Suppression Manager
      # groups
      expect(client.respond_to?("get_groups")).to eq(true)
      expect(client.respond_to?("get_group")).to eq(true)
      expect(client.respond_to?("post_group")).to eq(true)
      expect(client.respond_to?("patch_group")).to eq(true)
      expect(client.respond_to?("delete_group")).to eq(true)
      # suppressions
      expect(client.respond_to?("post_suppressed_emails")).to eq(true)
      expect(client.respond_to?("get_suppressions")).to eq(true)
      expect(client.respond_to?("get_suppressed_emails")).to eq(true)
      expect(client.respond_to?("delete_suppressed_email")).to eq(true)
      # global suppressions
      expect(client.respond_to?("post_global_suppressed_emails")).to eq(true)
      expect(client.respond_to?("get_global_suppressed_email")).to eq(true)
      expect(client.respond_to?("delete_global_suppressed_email")).to eq(true)

      # IP Management
      # ip addresses
      expect(client.respond_to?("get_ips")).to eq(true)
      expect(client.respond_to?("get_ip")).to eq(true)
      expect(client.respond_to?("post_ip_to_pool")).to eq(true)
      expect(client.respond_to?("delete_ip_from_pool")).to eq(true)
      # pool
      expect(client.respond_to?("get_pools")).to eq(true)
      expect(client.respond_to?("post_pool")).to eq(true)
      expect(client.respond_to?("get_pool")).to eq(true)
      expect(client.respond_to?("put_pool")).to eq(true)
      expect(client.respond_to?("delete_pool")).to eq(true)
      # warmup
      expect(client.respond_to?("get_warmup_ips")).to eq(true)
      expect(client.respond_to?("get_warmup_ip")).to eq(true)
      expect(client.respond_to?("post_warmup_ip")).to eq(true)
      expect(client.respond_to?("delete_warmup_ip")).to eq(true)

      # Settings
      # enforced_tls
      expect(client.respond_to?("get_enforced_tls")).to eq(true)
      expect(client.respond_to?("patch_enforced_tls")).to eq(true)

      # Template Engine
      # templates
      expect(client.respond_to?("get_templates")).to eq(true)
      expect(client.respond_to?("get_template")).to eq(true)
      expect(client.respond_to?("post_template")).to eq(true)
      expect(client.respond_to?("patch_template")).to eq(true)
      expect(client.respond_to?("delete_template")).to eq(true)
      # versions
      expect(client.respond_to?("get_version")).to eq(true)
      expect(client.respond_to?("post_version")).to eq(true)
      expect(client.respond_to?("activate_version")).to eq(true)
      expect(client.respond_to?("patch_version")).to eq(true)
      expect(client.respond_to?("delete_version")).to eq(true)

    end
  end

  describe "Version" do

    it "Validate version" do
      expect(SendGrid4r::VERSION).to eq("0.0.4")
    end

  end

end<commit_msg>Add line<commit_after># encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

describe "SendGrid4r::Client" do

  before :all do
    Dotenv.load
  end

  describe "initialize" do
    it "create instance" do
      SendGrid4r::Client.new("username", "password")
    end
  end

  describe "available method" do
    it "is exist method" do

      client = SendGrid4r::Client.new(ENV["SENDGRID_USERNAME"], ENV["SENDGRID_PASSWORD"])

      # Advanced Suppression Manager
      # groups
      expect(client.respond_to?("get_groups")).to eq(true)
      expect(client.respond_to?("get_group")).to eq(true)
      expect(client.respond_to?("post_group")).to eq(true)
      expect(client.respond_to?("patch_group")).to eq(true)
      expect(client.respond_to?("delete_group")).to eq(true)
      # suppressions
      expect(client.respond_to?("post_suppressed_emails")).to eq(true)
      expect(client.respond_to?("get_suppressions")).to eq(true)
      expect(client.respond_to?("get_suppressed_emails")).to eq(true)
      expect(client.respond_to?("delete_suppressed_email")).to eq(true)
      # global suppressions
      expect(client.respond_to?("post_global_suppressed_emails")).to eq(true)
      expect(client.respond_to?("get_global_suppressed_email")).to eq(true)
      expect(client.respond_to?("delete_global_suppressed_email")).to eq(true)

      # IP Management
      # ip addresses
      expect(client.respond_to?("get_ips")).to eq(true)
      expect(client.respond_to?("get_ip")).to eq(true)
      expect(client.respond_to?("post_ip_to_pool")).to eq(true)
      expect(client.respond_to?("delete_ip_from_pool")).to eq(true)
      # pool
      expect(client.respond_to?("get_pools")).to eq(true)
      expect(client.respond_to?("post_pool")).to eq(true)
      expect(client.respond_to?("get_pool")).to eq(true)
      expect(client.respond_to?("put_pool")).to eq(true)
      expect(client.respond_to?("delete_pool")).to eq(true)
      # warmup
      expect(client.respond_to?("get_warmup_ips")).to eq(true)
      expect(client.respond_to?("get_warmup_ip")).to eq(true)
      expect(client.respond_to?("post_warmup_ip")).to eq(true)
      expect(client.respond_to?("delete_warmup_ip")).to eq(true)

      # Settings
      # enforced_tls
      expect(client.respond_to?("get_enforced_tls")).to eq(true)
      expect(client.respond_to?("patch_enforced_tls")).to eq(true)

      # Template Engine
      # templates
      expect(client.respond_to?("get_templates")).to eq(true)
      expect(client.respond_to?("get_template")).to eq(true)
      expect(client.respond_to?("post_template")).to eq(true)
      expect(client.respond_to?("patch_template")).to eq(true)
      expect(client.respond_to?("delete_template")).to eq(true)
      # versions
      expect(client.respond_to?("get_version")).to eq(true)
      expect(client.respond_to?("post_version")).to eq(true)
      expect(client.respond_to?("activate_version")).to eq(true)
      expect(client.respond_to?("patch_version")).to eq(true)
      expect(client.respond_to?("delete_version")).to eq(true)


    end
  end

  describe "Version" do

    it "Validate version" do
      expect(SendGrid4r::VERSION).to eq("0.0.4")
    end

  end

end
{'fraction_non_alphanumeric': 0.1521399562636676, 'fraction_numerical': 0.002499218994064355, 'mean_word_length': 4.176232821341956, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6301669', 'n_tokens_mistral': 2221, 'n_tokens_neox': 2181, 'n_words': 288}