original_docstring: 
          Setup the plugins enviroment.
          Must be called once to initialize all the plugins of all managers.
          
docstring: Setup the plugins enviroment.
  Must be called once to initialize all the plugins of all managers.
docstring_tokens: Setup the plugins enviroment . Must be called once to initialize all the plugins of all managers .
code: def load_plugins(cls):
          """
          Setup the plugins enviroment.
          Must be called once to initialize all the plugins of all managers.
          """
          plugin_classes = []
          plugin_options = []
          for stage, manager in cls.managers.items():
              mgr_setup = manager.setup()
              if not mgr_setup:
                  msg = 'Cannot load ScanCode plugins for stage: %(stage)s' % locals()
                  raise Exception(msg)
              mplugin_classes, mplugin_options = mgr_setup
              plugin_classes.extend(mplugin_classes)
              plugin_options.extend(mplugin_options)
          return plugin_classes, plugin_options
code_tokens: def load_plugins ( cls ) : plugin_classes = [ ] plugin_options = [ ] for stage , manager in cls . managers . items ( ) : mgr_setup = manager . setup ( ) if not mgr_setup : msg = 'Cannot load ScanCode plugins for stage: %(stage)s' % locals ( ) raise Exception ( msg ) mplugin_classes , mplugin_options = mgr_setup plugin_classes . extend ( mplugin_classes ) plugin_options . extend ( mplugin_options ) return plugin_classes , plugin_options
short_docstring: Setup the plugins enviroment.
short_docstring_tokens: Setup the plugins enviroment .
comment: """
          Setup the plugins enviroment.
          Must be called once to initialize all the plugins of all managers.
          """