original_docstring: Sets the collection information as part of the preprocessing.
  
      Args:
        options: the command line arguments (instance of argparse.Namespace).
        pre_obj: the preprocess object (instance of PreprocessObject).
      
docstring: Sets the collection information as part of the preprocessing.
docstring_tokens: Sets the collection information as part of the preprocessing .
code: def _PreprocessSetCollectionInformation(self, options, pre_obj):
      """Sets the collection information as part of the preprocessing.
  
      Args:
        options: the command line arguments (instance of argparse.Namespace).
        pre_obj: the preprocess object (instance of PreprocessObject).
      """
      collection_information = {}
  
      collection_information['version'] = plaso.GetVersion()
      collection_information['configured_zone'] = self._timezone
      collection_information['file_processed'] = self._source_path
      collection_information['output_file'] = self._storage_file_path
      collection_information['protobuf_size'] = self._buffer_size
      collection_information['parser_selection'] = getattr(
          options, 'parsers', '(no list set)')
      collection_information['preferred_encoding'] = self.preferred_encoding
      collection_information['time_of_run'] = timelib.Timestamp.GetNow()
  
      collection_information['parsers'] = self._parser_names
      collection_information['preprocess'] = self._preprocess
  
      if self._scan_context.source_type in [
          self._scan_context.SOURCE_TYPE_DIRECTORY]:
        recursive = True
      else:
        recursive = False
      collection_information['recursive'] = recursive
      collection_information['debug'] = self._debug_mode
      collection_information['vss parsing'] = bool(self._vss_stores)
  
      if self._filter_expression:
        collection_information['filter'] = self._filter_expression
  
      filter_file = getattr(options, 'file_filter', None)
      if filter_file:
        if os.path.isfile(filter_file):
          filters = []
          with open(filter_file, 'rb') as fh:
            for line in fh:
              filters.append(line.rstrip())
          collection_information['file_filter'] = ', '.join(filters)
  
      collection_information['os_detected'] = getattr(options, 'os', 'N/A')
  
      if self._scan_context.source_type in [
          self._scan_context.SOURCE_TYPE_STORAGE_MEDIA_DEVICE,
          self._scan_context.SOURCE_TYPE_STORAGE_MEDIA_IMAGE]:
        collection_information['method'] = 'imaged processed'
        collection_information['image_offset'] = self._partition_offset
      else:
        collection_information['method'] = 'OS collection'
  
      if self._single_process_mode:
        collection_information['runtime'] = 'single process mode'
      else:
        collection_information['runtime'] = 'multi process mode'
        collection_information['workers'] = self._number_of_worker_processes
  
      pre_obj.collection_information = collection_information
code_tokens: def _PreprocessSetCollectionInformation ( self , options , pre_obj ) : collection_information = { } collection_information [ 'version' ] = plaso . GetVersion ( ) collection_information [ 'configured_zone' ] = self . _timezone collection_information [ 'file_processed' ] = self . _source_path collection_information [ 'output_file' ] = self . _storage_file_path collection_information [ 'protobuf_size' ] = self . _buffer_size collection_information [ 'parser_selection' ] = getattr ( options , 'parsers' , '(no list set)' ) collection_information [ 'preferred_encoding' ] = self . preferred_encoding collection_information [ 'time_of_run' ] = timelib . Timestamp . GetNow ( ) collection_information [ 'parsers' ] = self . _parser_names collection_information [ 'preprocess' ] = self . _preprocess if self . _scan_context . source_type in [ self . _scan_context . SOURCE_TYPE_DIRECTORY ] : recursive = True else : recursive = False collection_information [ 'recursive' ] = recursive collection_information [ 'debug' ] = self . _debug_mode collection_information [ 'vss parsing' ] = bool ( self . _vss_stores ) if self . _filter_expression : collection_information [ 'filter' ] = self . _filter_expression filter_file = getattr ( options , 'file_filter' , None ) if filter_file : if os . path . isfile ( filter_file ) : filters = [ ] with open ( filter_file , 'rb' ) as fh : for line in fh : filters . append ( line . rstrip ( ) ) collection_information [ 'file_filter' ] = ', ' . join ( filters ) collection_information [ 'os_detected' ] = getattr ( options , 'os' , 'N/A' ) if self . _scan_context . source_type in [ self . _scan_context . SOURCE_TYPE_STORAGE_MEDIA_DEVICE , self . _scan_context . SOURCE_TYPE_STORAGE_MEDIA_IMAGE ] : collection_information [ 'method' ] = 'imaged processed' collection_information [ 'image_offset' ] = self . _partition_offset else : collection_information [ 'method' ] = 'OS collection' if self . _single_process_mode : collection_information [ 'runtime' ] = 'single process mode' else : collection_information [ 'runtime' ] = 'multi process mode' collection_information [ 'workers' ] = self . _number_of_worker_processes pre_obj . collection_information = collection_information
short_docstring: Sets the collection information as part of the preprocessing.
short_docstring_tokens: Sets the collection information as part of the preprocessing .
comment: """Sets the collection information as part of the preprocessing.
  
      Args:
        options: the command line arguments (instance of argparse.Namespace).
        pre_obj: the preprocess object (instance of PreprocessObject).
      """