<commit_before>require "country_state_select/version"

require 'country_state_select/constant'

module CountryStateSelect
  include CountryStateSelect::Constant
 
  def self.countries
    COUNTRIES
  end

  def self.india
    INDIAN_STATES.merge(INDIAN_TERRIOTORY)
  end

  def self.us_states
    USA_STATE_LIST
  end
  
  def self.canadian_states
    CANADIAN_STATES
  end
  
  def self.uk_states 
    UK_STATES
  end

  def self.all_states
    INDIAN_STATES.merge(INDIAN_TERRIOTORY).merge(USA_STATE_LIST).merge(CANADIAN_STATES).merge(UK_STATES)
  end

end

case ::Rails.version.to_s
  when /^4/
    require 'country_state_select/engine'
  when /^3\.[12]/
    require 'country_state_select/engine3'
  when /^3\.[0]/
    require 'country_state_select/railtie'
  else
    raise 'Unsupported rails version'
end<commit_msg>Added the method to provide the option to fetch the required countries<commit_after>require "country_state_select/version"

require 'country_state_select/constant'

module CountryStateSelect
  include CountryStateSelect::Constant
 
  def self.countries
    COUNTRIES
  end

  def self.india
    INDIAN_STATES.merge(INDIAN_TERRIOTORY)
  end

  def self.us_states
    USA_STATE_LIST
  end
  
  def self.canadian_states
    CANADIAN_STATES
  end
  
  def self.uk_states 
    UK_STATES
  end

  def self.all_states
    INDIAN_STATES.merge(INDIAN_TERRIOTORY).merge(USA_STATE_LIST).merge(CANADIAN_STATES).merge(UK_STATES)
  end

  #this method will provide the user to opetion to skip any countries in drop down list 
  def self.countries_except(*except)
    countries = []
    COUNTRIES.each do |country|
      countries<< country unless  country.in?(except)
    end
    return countries
  end

end

case ::Rails.version.to_s
  when /^4/
    require 'country_state_select/engine'
  when /^3\.[12]/
    require 'country_state_select/engine3'
  when /^3\.[0]/
    require 'country_state_select/railtie'
  else
    raise 'Unsupported rails version'
end
{'fraction_non_alphanumeric': 0.07382892057026477, 'fraction_numerical': 0.007128309572301426, 'mean_word_length': 3.700956937799043, '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': '2104758', 'n_tokens_mistral': 711, 'n_tokens_neox': 683, 'n_words': 146}