code: def PushEventSource(self, event_source):
      
      if event_source.file_entry_type == (
          dfvfs_definitions.FILE_ENTRY_TYPE_DIRECTORY):
        weight = 1
      else:
        weight = 100
  
      heap_values = (weight, time.time(), event_source)
      heapq.heappush(self._heap, heap_values)
docs: Pushes an event source onto the heap.
  
      Args:
        event_source (EventSource): event source.