/*
Method: load
Load a resource at a given absolute path, or relative to the current working directory of the PHP script.
559293
public function load($resource, $type = null){
		$resolver = $this->getResolverForResource($resource, $type);
		if(is_string($resource) && $resource[0] === '/'){
			$resource = basename($resource);
		}
		$loader = $resolver->resolve($resource, $type);
		if($loader === false){
			throw new FileLoaderLoadException($resource);
		}
		return $loader->load($resource, $type);
	}
1202560
function(url, prev, done) {
                url = normUrl(url
                    , prev.replace(/^\/(file|https?)(\/.*)/, '$1:/$2')
                );

                load(url, false, function(status, res) {
                    done({
                        file: url.replace(/^\/(file|https?):\/(.*)/, '$1$2'),
                        contents: res.data
                    });
                });
            }
454297
function load($plugin_name,$plugin_param = null)
	{
		$path = WEBPATH.'/swoole_plugin/'.$plugin_name.'/Swoole.plugin.php';
		if(file_exists($path))
		{
			require_once($path);
			$this->plugins[$plugin_name] = $swoole_plugin;
		}
		else Error::info('Plugin not Found!',"Plugin file <b>$path</b> not exists!");
	}
711926
public function load($name)
    {
        if (null === ($path = $this->path($name)))
            return;
        if ($this->fileExists && (!file_exists($path))) {
            return;
        }
        include_once $path;
    }
98156
public function load()
    {
        $file = BASE_PATH . '/rev-manifest.json';

        if (file_exists($file)) {
            $this->manifest = json_decode(file_get_contents($file), true);
        }
    }
89820
protected static function load()
    {
        $files = glob(root().'resources/translator/'.self::$lang.'/*.php');

        foreach ($files as $file) {
            $words = need($file);

            // get file name
            $filename = explode('resources/translator/'.self::$lang.'/', $file);
            $filename = $filename[1];
            $filename = explode('.php', $filename);
            $filename = $filename[0];

            foreach ($words as $key => $value) {
                if ($filename == self::$lang) {
                    self::$words[$key] = $value;
                } else {
                    self::$words[$filename][$key] = $value;
                }
            }
        }
    }
1344773
function loadJSON (path, callback) {
  var xobj = new XMLHttpRequest();
  xobj.overrideMimeType('application/json');
  xobj.open('GET', path, true);
  xobj.onreadystatechange = function () {
    if (xobj.readyState === 4 && xobj.status === 200) {
      callback(xobj.responseText);
    }
  };
  xobj.send(null);
}
281652
function load( $uri, $extraParameters = false, $returnResourceData = false )
    {
        $resourceData = $this->loadURIRoot( $uri, true, $extraParameters );
        if ( !$resourceData or
             $resourceData['root-node'] === null )
        {
            $retValue = null;
            return $retValue;
        }
        else
            return $resourceData['root-node'];
    }
986124
function loadResources( state, filePath ) {
	var resourcePath = path.resolve( process.cwd(), filePath );
	return getResources( resourcePath )
		.then( function( list ) {
			return when.all( _.map( _.filter( list ), loadModule.bind( undefined, state ) ) )
				.then( function( lists ) {
					return _.flatten( lists );
				} );
		} );
}
540673
function loadBeautify() {
    if (!self.beautify) {
      self.beautify = require('js-beautify').html;
      var rc = path.join(process.cwd(), '.jsbeautifyrc');
      if (fs.existsSync(rc)) {
        self.beautifyrc = JSON.parse(fs.readFileSync(rc, 'utf8'));
      }
    }
  }
133115
public void loadFile(File file, String resourcePath) throws IOException {
	loadFile(ResourceUtil.toResource(file), resourcePath);
    }
240318
def load(cls, path):
        """"""
        with open(path) as f:
            context = cls.read_from_buffer(f, path)
        context.set_load_path(path)
        return context
1238362
function loadFile(file, db, callback) { 
    callback = callback || function() {};
    
    if (file.substr(0, 1) !== '/') {
        var parentPath = module.parent.filename.split('/');
        parentPath.pop();
        file = parentPath.join('/') + '/' + file;
    }
    
    load(require(file), db, callback);
}
217229
function loadJS(filePath) {
  console.log("Found "+filePath);
  var contents = fs.readFileSync(filePath, {encoding:"utf8"});
  return eval(contents);
  /* the code below would be better, but it doesn't seem to work when running
   CLI - works fine when running as a module. */ 
  //return require("vm").runInThisContext(contents, filePath );
}
466551
static function load($root = NULL)
  {
    if ($root === NULL)
    {
      $root = realpath(dirname(__FILE__));
    }

    $files = array(
      'Compiler',
      'Error',
      'Helpers',
      'Lexer',
      'Nodes',
      'Parser',
      'Rewriter',
      'Scope',
      'SyntaxError',
      'Value',

      'yy/Base',  // load the base class first
      'yy/While', // For extends While

      'yy/Access',
      'yy/Arr',
      'yy/Assign',
      'yy/Block',
      'yy/Call',
      'yy/Class',
      'yy/Closure',
      'yy/Code',
      'yy/Comment',
      'yy/Existence',
      'yy/Extends',
      'yy/For',
      'yy/If',
      'yy/In',
      'yy/Index',
      'yy/Literal',
      'yy/Obj',
      'yy/Op',
      'yy/Param',
      'yy/Parens',
      'yy/Range',
      'yy/Return',
      'yy/Slice',
      'yy/Splat',
      'yy/Switch',
      'yy/Throw',
      'yy/Try',
      'yy/Value',
    );

    foreach ($files as $file)
    {
      require_once "$root/$file.php";
    }
  }
279914
def _load_resource(self, source_r, abs_path=False):
        

        r = self.doc.resource(source_r.name)

        r.url = self.resource_root.join(r.url).inner
186140
private function autoload()
    {
        $app = $this;
        $finder = new Finder();

        foreach ($finder->in($app['singular.directory.app'])->files()->name('*.php') as $file) {
            include_once $file->getRealpath();
        }
    }