<commit_before>require 'rubygems'
require 'bundler'

require 'simplecov'
SimpleCov.start do
  add_filter '/spec/'
end

Bundler.require(:default, :development, :test)

RSpec.configure do |config|
  config.include Protobuf::RSpec::Helpers
end

##
# Define a generic class that inherits from active remote base
#
class Baz < ::ActiveRemote::Base
end

##
# Define a generic message with options that behaves like a protobuf search response
#
class MessageWithOptions
  attr_accessor :records, :options

  def initialize(attributes = {})
    @records = attributes.fetch(:records)
    @options = attributes.fetch(:options)
  end
end

##
# Define a generic class for use when testing the service class
#
module Foo
  module Bar
    class BazService
    end
  end
end<commit_msg>Default instance variables to nil instead of raising an errors...<commit_after>require 'rubygems'
require 'bundler'

require 'simplecov'
SimpleCov.start do
  add_filter '/spec/'
end

Bundler.require(:default, :development, :test)

RSpec.configure do |config|
  config.include Protobuf::RSpec::Helpers
end

##
# Define a generic class that inherits from active remote base
#
class Baz < ::ActiveRemote::Base
end

##
# Define a generic message with options that behaves like a protobuf search response
#
class MessageWithOptions
  attr_accessor :records, :options

  def initialize(attributes = {})
    @records = attributes.fetch(:records, nil)
    @options = attributes.fetch(:options, nil)
  end
end

##
# Define a generic class for use when testing the service class
#
module Foo
  module Bar
    class BazService
    end
  end
end
{'fraction_non_alphanumeric': 0.08665835411471322, 'fraction_numerical': 0.0, 'mean_word_length': 4.515463917525773, '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': '2928809', 'n_tokens_mistral': 475, 'n_tokens_neox': 468, 'n_words': 170}