You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: credential_helpers.rb
    path of file: ./repos/dependabot-core/hex/lib/dependabot/hex
    
    the code of the file until where you have to start completion: # typed: true
# frozen_string_literal: true

module Dependabot
  module Hex
    module CredentialHelpers
      def self.hex_credentials(credentials)
        organization_credentials(credentials) + repo_credentials(credentials)
      end

      def self.organization_credentials(credentials)
        defaults = Dependabot::Credential.new({ "organization" => "", "token" => "" })
        keys = %w(type organiza
    
      def self.repo_credentials(credentials)
        # Credentials are serialized as an array that may not have optional fields. Using a
        # default ensures that the array is always the same length, even if values are empty.
        defaults = Dependabot::Credential.new({ "url" => "", "auth_key" => "", "public_key_fingerprint" => "" })
        keys = %w(type repo url auth_key public_key_fingerprint)

        credentials
          .select { |cred| cred["type"] == "hex_repository" }
          .flat_map { |cred| defaults.merge(cred).slice(*keys).values }
      end