<commit_before>module Restforce

  module DB

    module Associations

      # Restforce::DB::Associations::Base defines an association between two
      # mappings in the Registry.
      class Base

        attr_reader :name, :lookup

        # Public: Initialize a new Restforce::DB::Associations::Base.
        #
        # name    - The name of the ActiveRecord association to construct.
        # through - The name of the lookup field on the Salesforce record.
        def initialize(name, through: nil)
          @name = name
          @lookup = through
        end

        # Public: Build a record or series of records for the association<commit_msg>Ensure that name and lookup are appropriate types<commit_after>module Restforce

  module DB

    module Associations

      # Restforce::DB::Associations::Base defines an association between two
      # mappings in the Registry.
      class Base

        attr_reader :name, :lookup

        # Public: Initialize a new Restforce::DB::Associations::Base.
        #
        # name    - The name of the ActiveRecord association to construct.
        # through - The name of the lookup field on the Salesforce record.
        def initialize(name, through: nil)
          @name = name.to_sym
          @lookup = through.is_a?(Array) ? through.map(&:to_s) : through.to_s
        end

        # Public: Build a record or series of records for the association
{'fraction_non_alphanumeric': 0.06742370475514549, 'fraction_numerical': 0.0, 'mean_word_length': 2.4057971014492754, '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': '3208067', 'n_tokens_mistral': 360, 'n_tokens_neox': 345, 'n_words': 140}