<commit_before>require 'logger'
require 'socket'
require 'pp'
require 'stringio'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/object/try'
require 'active_support/inflector'
require 'active_support/json'

module Protobuf

  # See Protobuf#connector_type documentation.
  CONNECTORS = [ :socket, :zmq, :evented ].freeze

  # Default is Socket as it has no external dependencies.
  DEFAULT_CONNECTOR = :socket

	module_function

  # Client Host
  #
  # Default: `hostname` of the system
  #
  # The name or address of the host to use during client RPC calls.
  def self.client_host
    @_client_host ||= `hostname`.chomp
  end

  def self.client_host=(host)
    @_client_host = host
  end

  # Connector Type<commit_msg>Add fallback support for activesupport 2<commit_after>require 'logger'
require 'socket'
require 'pp'
require 'stringio'
require 'active_support/core_ext/object/blank'
require 'active_support/version'

if ActiveSupport::VERSION::MAJOR > 2
  require 'active_support/core_ext/object/try'
else
  require 'active_support/core_ext/module/delegation'
  require 'active_support/core_ext/kernel/reporting'
  require 'active_support/core_ext/try'
end

require 'active_support/inflector'
require 'active_support/json'

module Protobuf

  # See Protobuf#connector_type documentation.
  CONNECTORS = [ :socket, :zmq, :evented ].freeze

  # Default is Socket as it has no external dependencies.
  DEFAULT_CONNECTOR = :socket

	module_function

  # Client Host
  #
  # Default: `hostname` of the system
  #
  # The name or address of the host to use during client RPC calls.
  def self.client_host
    @_client_host ||= `hostname`.chomp
  end

  def self.client_host=(host)
    @_client_host = host
  end

  # Connector Type
{'fraction_non_alphanumeric': 0.08858603066439523, 'fraction_numerical': 0.001135718341851221, 'mean_word_length': 4.489096573208723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6367946', 'n_tokens_mistral': 579, 'n_tokens_neox': 565, 'n_words': 157}