<commit_before>module GraphQL
  module Define
    module AssignConnection
      def self.call(type_defn, *field_args, max_page_size: nil, **field_kwargs, &field_block)
        underlying_field = GraphQL::Define::AssignObjectField.call(type_defn, *field_args, **field_kwargs, &field_block)
        connection_field = GraphQL::Relay::ConnectionField.create(underlying_field, max_page_size: max_page_size)
        type_defn.fields[name.to_s] = connection_field
      end
    end
  end
end
<commit_msg>fix(connection) use the field name, not the module name<commit_after>module GraphQL
  module Define
    module AssignConnection
      def self.call(type_defn, *field_args, max_page_size: nil, **field_kwargs, &field_block)
        underlying_field = GraphQL::Define::AssignObjectField.call(type_defn, *field_args, **field_kwargs, &field_block)
        connection_field = GraphQL::Relay::ConnectionField.create(underlying_field, max_page_size: max_page_size)
        type_defn.fields[underlying_field.name] = connection_field
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.08857142857142856, 'fraction_numerical': 0.0, 'mean_word_length': 4.937853107344632, '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': '3616273', 'n_tokens_mistral': 332, 'n_tokens_neox': 331, 'n_words': 64}