Load the plugin descriptor with the given loader
@param {Descriptor} descriptor
@param {Loader} loader
429898
function loadPlugin(descriptor, loader) {
  const config = Array.isArray(descriptor) ? descriptor : [descriptor];
  const [name, options = {}] = config;
  const { error, module: plugin } = loader(name);

  if (error) {
    return {
      error,
      name,
    };
  }

  if (typeof plugin !== 'function') {
    return {
      error: new Error(
        `Expected the plugin \`${name}\` to export a function, instead ` +
          `recieved: ${typeof plugin}`
      ),
      name,
    };
  }

  return {
    name,
    options,
    plugin,
  };
}
814293
private function initLoader($item, $key, ...$initLoaderArgs): void
    {
        $this->eventDispatcher->dispatch(new ItemEvent(EtlEvents::LOADER_INIT, $item, $key, $this));

        if (null === $this->init) {
            return;
        }

        ($this->init)(...$initLoaderArgs);
    }
14742
function generateLoaders (loaders) {
    const sourceLoader = loaders.map(function (loader) {
      let extraParamChar
      if (/\?/.test(loader)) {
        loader = loader.replace(/\?/, '-loader?')
        extraParamChar = '&'
      } else {
        loader = loader + '-loader'
        extraParamChar = '?'
      }
      return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
    }).join('!')

    // Extract CSS when that option is specified
    // (which is the case during production build)
    if (options.extract) {
      return ExtractTextPlugin.extract({
        use: sourceLoader,
        fallback: 'vue-style-loader'
      })
    } else {
      return ['vue-style-loader', sourceLoader].join('!')
    }
  }
1330012
function JavaScriptLoader(loadItem, preferXHR) {
		this.AbstractLoader_constructor(loadItem, preferXHR, createjs.AbstractLoader.JAVASCRIPT);

		// public properties
		this.resultFormatter = this._formatResult;

		// protected properties
		this._tagSrcAttribute = "src";
		this.setTag(document.createElement("script"));
	}
1258990
function expandPackageDescriptor(descriptor) {
  descriptor = cloneDeep(descriptor)
  descriptor.profile = descriptor.profile || config.DEFAULT_DATA_PACKAGE_PROFILE
  for (const [index, resource] of (descriptor.resources || []).entries()) {
    descriptor.resources[index] = expandResourceDescriptor(resource)
  }
  return descriptor
}
921851
public static void init(ClassLoader loader)
  {
    for (; loader != null; loader = loader.getParent()) {
      if (loader instanceof EnvironmentClassLoader) {
        ((EnvironmentClassLoader) loader).init();
        return;
      }
    }

    for (int i = 0; i < _globalLoaderListeners.size(); i++) {
      EnvLoaderListener listener = _globalLoaderListeners.get(i);

      listener.classLoaderInit(null);
    }
  }
966977
function _descriptor (opts, source, target, key) {
  let desc = Object.getOwnPropertyDescriptor(source, key)
  if (desc) {
    if (desc.writable) {
      desc.value = _clone(opts, desc.value)
    }
    try {
      Object.defineProperty(target, key, desc)
    } catch (e) {
      // Safari throws with TypeError:
      //  Attempting to change access mechanism for an unconfigurable property.
      //  Attempting to change value of a readonly property.
      if (!'Attempting to change'.indexOf(e.message)) {
        throw e
      }
    }
  }
}
939246
function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _Component2=__webpack_require__(5);var _Component3=_interopRequireDefault(_Component2);var _Css=__webpack_require__(2);var _Css2=_interopRequireDefault(_Css);var _Icon=__webpack_require__(10);var _Icon2=_interopRequireDefault(_Icon);var _Spinner=__webpack_require__(15);var _Spinner2=_interopRequireDefault(_Spinner);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&((typeof call==='undefined'?'undefined':_typeof2(call))==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof superClass==='undefined'?'undefined':_typeof2(superClass)));}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Button=function(_Component){_inherits(Button,_Component);function Button(props){_classCallCheck(this,Button);var _this=_possibleConstructorReturn(this,(Button.__proto__||Object.getPrototypeOf(Button)).call(this,props));_this.handleMouseOver=_this.handleMouseOver.bind(_this);_this.handleMouseOut=_this.handleMouseOut.bind(_this);return _this;}_createClass(Button,[{key:'handleMouseOver',value:function handleMouseOver(e){var onMouseOver=this.props.onMouseOver;if(onMouseOver){onMouseOver(e);}this.setState({isHovered:true});}},{key:'handleMouseOut',value:function handleMouseOut(e){var onMouseOut=this.props.onMouseOut;if(onMouseOut){onMouseOut(e);}this.setState({isHovered:false});}},{key:'render',value:function render(){var _props=this.props,buttonRef=_props.buttonRef,children=_props.children,className=_props.className,cssMap=_props.cssMap,defaultValue=_props.defaultValue,forceHover=_props.forceHover,iconPosition=_props.iconPosition,iconType=_props.iconType,isDisabled=_props.isDisabled,isReadOnly=_props.isReadOnly,isLoading=_props.isLoading,label=_props.label,onClick=_props.onClick,role=_props.role,type=_props.type,value=_props.value;var _state=this.state,id=_state.id,isHovered=_state.isHovered;var iconMarkup=void 0;if(iconType&&iconType!=='none'){iconMarkup=_react2.default.createElement('div',{className:cssMap.iconContainer},_react2.default.createElement(_Icon2.default,{className:cssMap.icon,type:iconType,theme:role==='control'?role:'button',variant:'stroke',forceHover:isHovered,isDisabled:isDisabled}));}var content=_react2.default.createElement('div',{className:cssMap.content},iconMarkup,_react2.default.createElement('div',{className:cssMap.label},children||label));return _react2.default.createElement(_Css2.default,{cssMap:cssMap,cssProps:{role:role,iconPosition:iconPosition,loading:isLoading&&!isDisabled,disabled:isDisabled,fakeHovered:forceHover}},_react2.default.createElement('button',{ref:buttonRef,type:type,className:className,id:id,defaultValue:defaultValue,value:value,disabled:isDisabled||isLoading||isReadOnly,onClick:onClick,onMouseEnter:this.handleMouseOver,onMouseLeave:this.handleMouseOut},content,isLoading&&!isDisabled&&_react2.default.createElement('div',{className:cssMap.loadingOverlay},_react2.default.createElement(_Spinner2.default,{className:cssMap.spinner}))));}}]);return Button;}(_Component3.default);Button.propTypes={/**
    *  Label text
    */label:_propTypes2.default.string,/**
    *  HTML type attribute
    */type:_propTypes2.default.oneOf(['button','reset','submit']),/**
    *  Button role/style
    */role:_propTypes2.default.oneOf(['default','subtle','promoted','critical','control']),/**
    *  Icon type to display (overrides customIcon)
    */iconType:_propTypes2.default.oneOf(['add','alert','approved','calendar','close','declined','delete','down','download','duplicate','edit','ended','error','info','inspect','left','link','pending','preview','reset','right','search','up','upload','validation','none']),/*
     *  Icon position relative to Button text
     */iconPosition:_propTypes2.default.oneOf(['left','right']),/**
    *  Display as disabled
    */isDisabled:_propTypes2.default.bool,/**
    *  Display as read-only
    */isReadOnly:_propTypes2.default.bool,/**
    *  Display loading state
    */isLoading:_propTypes2.default.bool,/**
    *  Initial HTML value attribute
    */defaultValue:_propTypes2.default.string,/**
    *  HTML value attribute
    */value:_propTypes2.default.string,/**
     * HTML id attribute (overwrite default)
     */id:_propTypes2.default.string,/**
     *  Button click callback function: ( e ) => { ... }
     */onClick:_propTypes2.default.func,/**
     *  Mouse over callback function: ( e ) => { ... }
     */onMouseOver:_propTypes2.default.func,/**
     *  Mouse out callback function: ( e ) => { ... }
     */onMouseOut:_propTypes2.default.func,/**
     * Display as hover when required from another component
     */forceHover:_propTypes2.default.bool,/**
     * Callback that receives the native <button>: ( ref ) => { ... }
     */buttonRef:_propTypes2.default.func};Button.defaultProps={type:'button',role:'default',iconType:'none',iconPosition:'left',isLoading:false,isDisabled:false,isReadOnly:false,forceHover:false,cssMap:__webpack_require__(111)};exports.default=Button;/***/}
283908
function checkDescriptor(descriptor, err){
	if(typeof descriptor != 'object') return false;
	
	for(var key in CONST.descriptorType){
		if(!checkType(descriptor[key], CONST.descriptorType[key])){
			err.key = key;
			err.expect = CONST.descriptorType[key];
			err.type = typeof descriptor[key];
			return false;
		}
	}

	for(var key in CONST.descriptorOptType){
		if(typeof descriptor[key] != 'undefined' && checkType(descriptor[key], CONST.descriptorOptType[key].type)) continue;
		if(typeof descriptor[key] == 'undefined'){
			if(typeof CONST.descriptorOptType[key].value != 'undefined') descriptor[key] = CONST.descriptorOptType[key].value;
			continue;
		}

		err.key = key;
		err.expect = CONST.descriptorOptType[key].type;
		err.type = typeof descriptor[key];
		return false;
	}

	return true;
}
688008
def load_module(self, loader):
        '''
        
        '''

        modfile, pathname, description = loader.info
        module = imp.load_module(
            loader.fullname,
            modfile,
            pathname,
            description
        )
        sys.modules[loader.fullname] = module
        self.__loaded_modules.add(loader.fullname)

        autodecorator.decorate_module(module, decorator=self.__decorator)

        return module
680031
public void setClassLoader (ClassLoader loader)
    {
        _loader = loader;
        PresentsConnection conn = getConnection();
        if (conn != null) {
            conn.setClassLoader(loader);
        }
    }
706210
function(context, descriptor, args) {
		var path = args[0],
			template = args[1];
		var ctx = new Context(typeof path === 'string' ? context.get(path) : path, context, path);
		template.toHTMLString(ctx, descriptor);
	}
1072474
function bundler(loader, options, modules) {
  var stack    = modules.slice(0);
  var mods     = [];
  var finished = {};

  function processModule(mod) {
    if (finished.hasOwnProperty(mod.id)) {
      return;
    }

    mod = loader.getModule(mod.id);

    // browser pack chunk
    var browserpack = {
      id     : mod.id,
      source : mod.source,
      deps   : {}
    };

    // Gather up all dependencies
    var i, length, dep;
    for (i = 0, length = mod.deps.length; i < length; i++) {
      dep = mod.deps[i];
      stack.push(dep);
      browserpack.deps[dep.id] = dep.id;
    }

    finished[mod.id] = browserpack;
    mods.unshift(browserpack);
  }

  // Process all modules
  while (stack.length) {
    processModule(stack.pop());
  }

  var stream = browserPack(options).setEncoding("utf8");
  var promise = pstream(stream);

  stream.end(JSON.stringify(mods));
  return promise;
}
1198276
def enable_external_loaders(obj):
    
    for name, loader in ct.EXTERNAL_LOADERS.items():
        enabled = getattr(
            obj, "{}_ENABLED_FOR_DYNACONF".format(name.upper()), False
        )
        if (
            enabled
            and enabled not in false_values
            and loader not in obj.LOADERS_FOR_DYNACONF
        ):  # noqa
            obj.logger.debug("loaders: Enabling %s", loader)
            obj.LOADERS_FOR_DYNACONF.insert(0, loader)
1150473
function(loader, packageJSON, isRoot){
		var config = utils.pkg.config(packageJSON);
		var hasConfig = !!config;

		// convert npmIgnore
		var npmIgnore = hasConfig && config.npmIgnore;
		function convertToMap(arr) {
			var npmMap = {};
			for(var i = 0; i < arr.length; i++) {
				npmMap[arr[i]] = true;
			}
			return npmMap;
		}
		if(npmIgnore && typeof npmIgnore.length === 'number') {
			npmIgnore = config.npmIgnore = convertToMap(npmIgnore);
		}
		// convert npmDependencies
		var npmDependencies = hasConfig && config.npmDependencies;
		if(npmDependencies && typeof npmDependencies.length === "number") {
			config.npmDependencies = convertToMap(npmDependencies);
		}
		npmIgnore = npmIgnore || {};

		var deps = {};

		addDeps(packageJSON, packageJSON.peerDependencies || {}, deps,
				"peerDependencies", {_isPeerDependency: true});

		addDeps(packageJSON, packageJSON.dependencies || {}, deps, "dependencies");

		if(isRoot) {
			addDeps(packageJSON, packageJSON.devDependencies || {}, deps,
				   "devDependencies");
		}

		return deps;
	}
355287
function(loader) {
  // public
  this.maxRecursion = 5;
  this.loader = (typeof loader === 'function') ? loader : null;

  // internal
  this._schemaRegistry = new SchemaRegistry();
  this._customFormatHandlers = {};

  // _refsRequested is an object where the key is the normalized ID
  // of the schema ref that was requested, and the value is a
  // promise for the content of that schema.
  this._refsRequested = {};
}
291979
private void findPluginsForDescriptor(final CommandLinePluginDescriptor<?> pluginDescriptor)
    {
        final ClassFinder classFinder = new ClassFinder();
        pluginDescriptor.getPackageNames().forEach(
                pkg -> classFinder.find(pkg, pluginDescriptor.getPluginBaseClass()));
        final Set<Class<?>> pluginClasses = classFinder.getClasses();

        for (Class<?> c : pluginClasses) {
            if (pluginDescriptor.includePluginClass(c)) {
                try {
                    final Object plugin = pluginDescriptor.createInstanceForPlugin(c);
                    createArgumentDefinitions(plugin, pluginDescriptor);
                } catch (InstantiationException | IllegalAccessException e) {
                    throw new CommandLineException.CommandLineParserInternalException("Problem making an instance of plugin " + c +
                            " Do check that the class has a non-arg constructor", e);
                }
            }
        }
    }