original_docstring:  This function populates the `self.imports` dictionary which holds
          all the private variables defined in each module.
docstring: This function populates the `self.imports` dictionary which holds
  all the private variables defined in each module.
docstring_tokens: This function populates the ` self . imports ` dictionary which holds all the private variables defined in each module .
code: def populate_imports(self, module_logs):
          """ This function populates the `self.imports` dictionary which holds
          all the private variables defined in each module."""
          for module in self.uses:
              for use_item in self.uses[module]:
                  for key in use_item:
                      if len(use_item[key]) == 1 and use_item[key][0] == '*':
                          if key in self.exports:
                              symbols = self.exports[key]
                          else:
                              assert (
                                  key.lower() in module_logs["mod_info"]
                              ), f"module name (key) {key} does not exist in the log file."
                              symbols = module_logs["mod_info"][key]["exports"]
                              if module in module_logs["mod_info"]:
                                  module_logs["mod_info"][module]["imports"] = symbols
                          if key in symbols:
                              self.imports.setdefault(module, []).append(
                                  {key: symbols[key]}
                              )
                          else:
                              self.imports.setdefault(module, []).append(
                                  {key: symbols}
                              )
                      else:
                          self.imports.setdefault(module, []).append(
                              {key: use_item[key]}
                          )
code_tokens: def populate_imports ( self , module_logs ) : for module in self . uses : for use_item in self . uses [ module ] : for key in use_item : if len ( use_item [ key ] ) == 1 and use_item [ key ] [ 0 ] == '*' : if key in self . exports : symbols = self . exports [ key ] else : assert ( key . lower ( ) in module_logs [ "mod_info" ] ) , f"module name (key) {key} does not exist in the log file." symbols = module_logs [ "mod_info" ] [ key ] [ "exports" ] if module in module_logs [ "mod_info" ] : module_logs [ "mod_info" ] [ module ] [ "imports" ] = symbols if key in symbols : self . imports . setdefault ( module , [ ] ) . append ( { key : symbols [ key ] } ) else : self . imports . setdefault ( module , [ ] ) . append ( { key : symbols } ) else : self . imports . setdefault ( module , [ ] ) . append ( { key : use_item [ key ] } )
short_docstring: This function populates the `self.imports` dictionary which holds
  all the private variables defined in each module.
short_docstring_tokens: This function populates the ` self . imports ` dictionary which holds all the private variables defined in each module .
comment: """ This function populates the `self.imports` dictionary which holds
          all the private variables defined in each module."""