Dump bundle -----------------------------------------------------------------
517106
function dump(opts) {
	if(typeof opts.dump !== "string") {
		throw new Error("no input file");
	}
	
	var bundle = new Bundle(opts.dump);
	
	// Dump a single symbol
	if(opts._.length > 0 || opts.b) {
		var symbol = opts._[0] || opts.b;
		process.stdout.write(bundle.load(symbol, true), (opts.b ? "base64" : "utf8"));
		return;
	}
	
	// Dump the whole bundle
	
	console.log("SYMBOLS:");
	for(var symbol in bundle.symbols()) {
		var sym = bundle.symbol(symbol);
		
		var flag = sym.flag;
		if(flag === "") {
			flag = " ";
		}
		
		console.log(util.format("  [%s] %s", flag, symbol));
	}
	
	console.log("\nPATHS-MAP:");
	for(var path in bundle.map()) {
		console.log(util.format("  %s -> %s", path, bundle.resolve(path)));
	}
	
	console.log("\nAUTORUNS:");
	bundle.autoruns().forEach(function(autorun) {
		console.log(util.format("  %s", autorun));
	});
}
1225941
function dump() {
		$args=func_get_args();
		$format=$args?array_shift($args):'png';
		ob_start();
		call_user_func_array(
			'image'.$format,
			array_merge([$this->data,NULL],$args)
		);
		return ob_get_clean();
	}
153757
@SuppressWarnings("resource")
	private void storeBundle(String bundleName, String bundledResources, boolean gzipFile, String rootdir) {
		if (LOGGER.isDebugEnabled()) {
			String msg = "Storing a generated " + (gzipFile ? "and gzipped" : "") + " bundle with an id of:"
					+ bundleName;
			LOGGER.debug(msg);
		}

		try {
			// Create subdirs if needed
			bundleName = bundleName.replaceAll(":", "_");
			if (bundleName.indexOf('/') != -1) {
				StringTokenizer tk = new StringTokenizer(bundleName, "/");
				StringBuilder pathName = new StringBuilder(rootdir);
				while (tk.hasMoreTokens()) {
					String name = tk.nextToken();
					if (tk.hasMoreTokens()) {
						pathName.append(File.separator).append(name);
						createDir(pathName.toString());
					}
				}
				bundleName = bundleName.replace('/', File.separatorChar);
			}

			File store = createNewFile(rootdir + File.separator + bundleName);

			GZIPOutputStream gzOut = null;
			Writer wr = null;
			try {
				if (gzipFile) {
					FileOutputStream fos = new FileOutputStream(store);
					gzOut = new GZIPOutputStream(fos);
					byte[] data = bundledResources.getBytes(charset.name());
					gzOut.write(data, 0, data.length);
				} else {
					FileOutputStream fos = new FileOutputStream(store);
					FileChannel channel = fos.getChannel();
					wr = Channels.newWriter(channel, charset.newEncoder(), -1);
					wr.write(bundledResources);
				}
			} finally {
				IOUtils.close(gzOut);
				IOUtils.close(wr);
			}
		} catch (IOException e) {
			if (ThreadLocalJawrContext.isInterruptingProcessingBundle() || e instanceof ClosedByInterruptException) {
				throw new InterruptBundlingProcessException();
			}
			throw new BundlingProcessException("Unexpected IOException creating temporary jawr file", e);
		}
	}
126443
@Override
	public void rebuildDirtyBundles() {
		if (jsMBean != null) {
			jsMBean.rebuildDirtyBundles();
		}
		if (cssMBean != null) {
			cssMBean.rebuildDirtyBundles();
		}
		if (binaryMBean != null) {
			binaryMBean.rebuildDirtyBundles();
		}
	}
77766
def dump(self):
        """"""
        id = self.get("id")
        if not id:
            id = "(none)"
        else:
            id = id[0]

        parent = self.get("parent")
        if not parent:
            parent = "(none)"
        else:
            parent = parent[0]

        print "'%s'" % id
        print "Parent project:%s", parent
        print "Requirements:%s", self.get("requirements")
        print "Default build:%s", string.join(self.get("debuild-build"))
        print "Source location:%s", string.join(self.get("source-location"))
        print "Projects to build:%s", string.join(self.get("projects-to-build").sort());
1021396
public function dump() : Generator
    {
        $nodes = [];

        $stack = [$this->root];

        while ($stack) {
            $current = array_pop($stack);

            if ($current instanceof BinaryNode) {
                foreach ($current->children() as $child) {
                    $stack[] = $child;
                }
            }

            yield $current;
        }
    }
323328
def _bse_cli_create_bundle(args):
    ''''''
    bundle.create_bundle(args.bundle_file, args.fmt, args.reffmt, args.archive_type, args.data_dir)
    return "Created " + args.bundle_file
1338217
def dump(self, backend, node):
        ''''''
        assert issubclass(backend, Backend)
        b = backend()
        b.attach(self)
        return b.run(node)
730994
public void dump() {

        if (dumped) {
            return;
        }

        try {
            Tr.dump(tc, "-- StatefulBeanReaper Dump -- ", this);
            synchronized (this) {
                Tr.dump(tc, "Number of objects:      " + this.numObjects);
                Tr.dump(tc, "Number of adds:         " + this.numAdds);
                Tr.dump(tc, "Number of removes:      " + this.numRemoves);
                Tr.dump(tc, "Number of null removes: " + this.numNullRemoves);
                Tr.dump(tc, "Number of deletes:      " + this.numDeletes);
            }
        } finally {
            dumped = true;
        }
    }
1332729
function bundle(entry, output, name) {
  rollup.rollup({
    input: path.resolve(process.cwd(), entry),
    plugins: plugins
  }).then((bundle) => {
    return bundle.generate({
      format: format(),
      name: name,
      sourcemap: true
    })
  }).then(({ code, map}) => {
    return write(path.resolve(process.cwd(), output), code)
  }).then(() => {
    var source = fs.readFileSync(path.resolve(process.cwd(), output), 'utf-8', (err) => { throw err })
    var compilerFlags = {
      jsCode: [{ src: source }],
      compilationLevel: 'ADVANCED',
      languageOut: 'ECMASCRIPT5',
      createSourceMap: true
    }
    var result = compiler(compilerFlags)
    var minPath = 'bundle/' + output.split('/').pop().split('.')[0] + '.min.js'
    var sourcePath = minPath + '.map'
    // write min.js and min.js.map
    fs.writeFileSync(minPath, result.compiledCode, 'utf-8', (err) => { throw err })
    fs.writeFileSync(sourcePath, result.sourceMap, 'utf-8', (err) => { throw err })
    console.info(chalk.red(minPath) + ' ' + chalk.green(getSize(result.compiledCode)))
  }).catch((err) => {
    console.error(err)
  })
}
1289990
public static function dumpTrace()
    {
        $debug = debug_backtrace();
        $lines = '';
        $index = 0;

        for ($i = 0; $i < count($debug); $i++) {
            if ($i == 0) {
                continue;
            }
            $file = $debug[$i];
            if (!isset($file['file'])) {
                $file['file'] = 'eval';
            }
            if (!isset($file['line'])) {
                $file['line'] = null;
            }
            $line = "#{$index} {$file['file']}({$file['line']}): ";
            if (isset($file['class'])) {
                $line .= "{$file['class']}{$file['type']}";
            }
            $line .= "{$file['function']}(";
            if (isset($file['args']) && count($file['args'])) {
                foreach ($file['args'] as $arg) {
                    $line .= gettype($arg) . ', ';
                }
                $line = substr($line, 0, -2);
            }
            $line .= ')';
            $lines .= $line . "\n";
            $index++;
        } // for

        $lines .= "#{$index} {main}\n";

        if (ini_get('html_errors')) {
            echo nl2br(str_replace(' ', '&nbsp;', $lines));
        } else {
            echo $lines;
        }
    }
259284
public static function dump()
	{
		if (\Fuel::$is_cli)
		{
			// no fancy flying, jump dump 'm
			foreach (func_get_args() as $arg)
			{
				var_dump($arg);
			}
		}
		else
		{
			$backtrace = debug_backtrace();

			// locate the first file entry that isn't this class itself
			foreach ($backtrace as $stack => $trace)
			{
				if (isset($trace['file']))
				{
					// If being called from within, show the file above in the backtrack
					if (strpos($trace['file'], 'core/classes/debug.php') !== false)
					{
						$callee = $backtrace[$stack+1];
						$label = \Inflector::humanize($backtrace[$stack+1]['function']);
					}
					else
					{
						$callee = $trace;
						$label = 'Debug';
					}

					$callee['file'] = \Fuel::clean_path($callee['file']);

					break;
				}
			}

			$arguments = func_get_args();

			if ( ! static::$js_displayed)
			{
				echo <<<JS
	<script type="text/javascript">function fuel_debug_toggle(a){if(document.getElementById){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="block"}else{document.getElementById(a).style.display="none"}}else{if(document.layers){if(document.id.display=="none"){document.id.display="block"}else{document.id.display="none"}}else{if(document.all.id.style.display=="none"){document.all.id.style.display="block"}else{document.all.id.style.display="none"}}}};</script>
JS;
				static::$js_displayed = true;
			}
			echo '<div class="fuelphp-dump" style="font-size: 13px;background: #EEE !important; border:1px solid #666; color: #000 !important; padding:10px;">';
			echo '<h1 style="border-bottom: 1px solid #CCC; padding: 0 0 5px 0; margin: 0 0 5px 0; font: bold 120% sans-serif;">'.$callee['file'].' @ line: '.$callee['line'].'</h1>';
			echo '<pre style="overflow:auto;font-size:100%;">';

			$count = count($arguments);
			for ($i = 1; $i <= $count; $i++)
			{
				echo '<strong>Variable #'.$i.':</strong>'.PHP_EOL;
				echo static::format('', $arguments[$i - 1]);
				echo PHP_EOL.PHP_EOL;
			}

			echo "</pre>";
			echo "</div>";
		}
	}
360057
function dump() {
		$fw=Base::instance();
		$web=Web::instance();
		$out='';
		return ($req=$web->request(
			self::URL_Static.'?'.array_reduce(
				$this->query,
				function($out,$item) {
					return ($out.=($out?'&':'').
						urlencode($item[0]).'='.urlencode($item[1]));
				}
			))) && $req['body']?$req['body']:FALSE;
	}
572158
private function dumpStructure() {
    dump("Requesters:");
    dump($this->requesters);

    dump("Request roots:");
    dump($this->requestRoots);

    dump("Request paths:");
    dump($this->requestPaths);

    dump("Local names:");
    dump($this->localNames);

    if (isset($this->tree)) {
      dump("Containment tree:");
      dump($this->tree);
    }
  }
149640
function saveAsIndexedFile(bundle, options, log) {
  const {
    bundleOutput,
    bundleEncoding: encoding,
    sourcemapOutput
  } = options;

  log('start');
  const {startupModules, lazyModules, groups} = bundle.getUnbundle();
  log('finish');

  const moduleGroups = ModuleGroups(groups, lazyModules);
  const startupCode = joinModules(startupModules);

  log('Writing unbundle output to:', bundleOutput);
  const writeUnbundle = writeBuffers(
    fs.createWriteStream(bundleOutput),
    buildTableAndContents(startupCode, lazyModules, moduleGroups, encoding)
  ).then(() => log('Done writing unbundle output'));

  const sourceMap =
    buildSourceMapWithMetaData({startupModules, lazyModules, moduleGroups});

  return Promise.all([
    writeUnbundle,
    writeSourceMap(sourcemapOutput, JSON.stringify(sourceMap), log),
  ]);
}
537592
function bundle () {
  const ordered = order(deps[postcssify.entry], [], {})
  const l = ordered.length
  let ast
  for (let i = 0; i < l; i++) {
    const file = ordered[i]
    const style = styles[file]
    if (style === void 0) {
      return
    } else {
      if (!ast) {
        ast = style.clone()
      } else {
        ast.append(style)
      }
    }
  }
  if (ast) {
    postcss(processors).process(ast.toResult(), { to: dest, map: true }).then((result) => {
      fs.writeFile(dest, result.css, (err) => {
        if (err) {
          throw err
        } else {
          log.info('updated: %s', dest)
        }
      })
    }).catch((err) => log.error(err))
  }
}
1194262
public function Dump( ) {

    /**
      *
      * The method Dump( ) displays the reference graph in textual form
      *
      * Example:
      *
      */


      echo "\nDump für cReferenceGraph";

      for ( $i = 0; $i < count( $this->m_a_references ); $i++ ) {

	echo ( "\n $i  " . $this->m_a_references[$i]->m_table_name . ' ( ' );

	    for ($j = 0; $j <count($this->m_a_references[$i]->m_a_references); $j++) {

		echo " " . $this->m_a_references[$i]->m_a_references[$j]->m_TABLE_NAME;

	    }

	echo ")\n";


      }


  }