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: sdam_formatter_integration.rb
    path of file: ./repos/mongo-ruby-driver/spec/support
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
# rubocop:todo all

$sdam_formatter_lock = Mute
    
  def assign_log_entries(example_id)
    $sdam_formatter_lock.synchronize do
      @log_entries_by_example_id ||= {}
      @log_entries_by_example_id[example_id] ||= []
      @log_entries_by_example_id[example_id] += log_entries
      clear_log_entries
    end
  end