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: dependency_file_helpers.rb
    path of file: ./repos/dependabot-core/updater/spec/support
    
    the code of the file until where you have to start completion: # typed: false
# frozen_string_literal: true

module DependencyFileHelpers
  def encode_de
    
  def encode_dependency_files(files)
    files.map do |file|
      base64_file = file.dup
      base64_file.content = Base64.encode64(file.content) unless file.binary?
      base64_file.to_h
    end
  end