original_docstring: 
          Create a data source for the given importer and store the data retrieved in the database.
  
          cutoff_date - optional timestamp of the oldest data to include in the import
  
          NB: Data sources provide two kinds of records; vulnerabilities and packages. Vulnerabilities
          are potentially shared across many packages, from the same data source and from different
          data sources. For example, a vulnerability in the Linux kernel is mentioned by advisories
          from all Linux distributions that package this kernel version.
          
docstring: Create a data source for the given importer and store the data retrieved in the database.
  cutoff_date - optional timestamp of the oldest data to include in the import
  
  Data sources provide two kinds of records; vulnerabilities and packages. Vulnerabilities
  are potentially shared across many packages, from the same data source and from different
  data sources. For example, a vulnerability in the Linux kernel is mentioned by advisories
  from all Linux distributions that package this kernel version.
docstring_tokens: Create a data source for the given importer and store the data retrieved in the database . cutoff_date - optional timestamp of the oldest data to include in the import Data sources provide two kinds of records ; vulnerabilities and packages . Vulnerabilities are potentially shared across many packages from the same data source and from different data sources . For example a vulnerability in the Linux kernel is mentioned by advisories from all Linux distributions that package this kernel version .
code: def run(self, cutoff_date: datetime.datetime = None) -> None:
          """
          Create a data source for the given importer and store the data retrieved in the database.
  
          cutoff_date - optional timestamp of the oldest data to include in the import
  
          NB: Data sources provide two kinds of records; vulnerabilities and packages. Vulnerabilities
          are potentially shared across many packages, from the same data source and from different
          data sources. For example, a vulnerability in the Linux kernel is mentioned by advisories
          from all Linux distributions that package this kernel version.
          """
          logger.debug(f'Starting import for {self.importer.name}.')
          data_source = self.importer.make_data_source(self.batch_size, cutoff_date=cutoff_date)
  
          with data_source:
              _process_added_advisories(data_source)
              _process_updated_advisories(data_source)
  
          self.importer.last_run = datetime.datetime.now(tz=datetime.timezone.utc)
          self.importer.data_source_cfg = dataclasses.asdict(data_source.config)
          self.importer.save()
  
          logger.debug(f'Successfully finished import for {self.importer.name}.')
code_tokens: def run ( self , cutoff_date : datetime . datetime = None ) -> None : logger . debug ( f'Starting import for {self.importer.name}.' ) data_source = self . importer . make_data_source ( self . batch_size , cutoff_date = cutoff_date ) with data_source : _process_added_advisories ( data_source ) _process_updated_advisories ( data_source ) self . importer . last_run = datetime . datetime . now ( tz = datetime . timezone . utc ) self . importer . data_source_cfg = dataclasses . asdict ( data_source . config ) self . importer . save ( ) logger . debug ( f'Successfully finished import for {self.importer.name}.' )
short_docstring: Create a data source for the given importer and store the data retrieved in the database.
short_docstring_tokens: Create a data source for the given importer and store the data retrieved in the database .
comment: """
          Create a data source for the given importer and store the data retrieved in the database.
  
          cutoff_date - optional timestamp of the oldest data to include in the import
  
          NB: Data sources provide two kinds of records; vulnerabilities and packages. Vulnerabilities
          are potentially shared across many packages, from the same data source and from different
          data sources. For example, a vulnerability in the Linux kernel is mentioned by advisories
          from all Linux distributions that package this kernel version.
          """