#endregion #region Print
162525
function printBuild(build, header) {
  header = header || 'Loaded staticbuild configuration:';
  console.log(header);
  console.dir(build);
}
405190
def do_region(self, x, y, w, h):
        """"""
        infile = self.tmpfile
        outfile = self.basename + '.reg'
        # simeon@ice ~>cat m.pnm | pnmcut 10 10 100 200 > m1.pnm
        if (x is None):
            # print "region: full"
            self.tmpfile = infile
        else:
            # print "region: (%d,%d,%d,%d)" % (x,y,w,h)
            if (self.shell_call('cat ' + infile + ' | ' + self.pnmcut + ' ' + str(x) + ' ' + str(y) + ' ' + str(w) + ' ' + str(h) + '  > ' + outfile)):
                raise IIIFError(text="Oops... got nonzero output from pnmcut.")
            self.width = w
            self.height = h
            self.tmpfile = outfile
884818
public void printEndGridScreenData(PrintWriter out, int iPrintOptions)
    {
        out.println(Utility.endTag(XMLTags.DATA));
    }
1366590
def print_finding
      if @finding_print_index < @findings.length
        result = @findings[@finding_print_index].to_json
        result += ',' unless @finding_print_index >= @findings.length - 1
        puts result
        puts
        $stdout.flush
        @finding_print_index += 1
      else
        raise IndexOutOfBoundException
      end
    end
486411
public function printSummary() {
    drush_print();

    // Print env files used for this definition.
    drush_print($this->formatHeading('Environment Definitions Found'));
    foreach ($this->loadedEnvs as $filename) {
      drush_print("{$filename}", 1);
    }

    drush_print();
    drush_print($this->formatHeading(dt("CONFIGURATION SUMMARY")));

    // We want to make sure they are printed in the same order as they will run.
    foreach ($this->getActiveDefinition() as $group => $options) {
      // Print a nice heading.
      $heading = $this->formatHeading($group);

      switch (strtolower($group)) {
        case 'modules':
          $this->printModuleSummary($options, $heading);
          break;

        case 'variables':
          $this->printVariableSummary($options, $heading);
          break;

        case 'permissions':
          $this->printPermissionSummary($options, $heading);
          break;

        case 'commands':
          $this->printCommandSummary($options, $heading);
          break;

        default:
          drush_print($this->formatHeading($group));
          drush_log(dt("I'm not sure what to do with '@group'.", ['@group' => $group]), 'warning');
          break;
      }
    }
  }
766888
def OnPrint(self, event):
        """"""

        print_area = self._get_print_area()
        print_data = self.main_window.print_data

        self.main_window.actions.printout(print_area, print_data)
826278
private static void printUsage() {
		FeatureTiles featureTiles = new DefaultFeatureTiles(null);
		System.out.println();
		System.out.println("USAGE");
		System.out.println();
		System.out
				.println("\t["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_MAX_FEATURES_PER_TILE
						+ " max_features_per_tile] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_COMPRESS_FORMAT
						+ " compress_format] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_COMPRESS_QUALITY
						+ " compress_quality] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_GOOGLE_TILES
						+ "] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_BOUNDING_BOX
						+ " minLon,minLat,maxLon,maxLat] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_EPSG
						+ " epsg] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_TILE_WIDTH
						+ " width] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_TILE_HEIGHT
						+ " height] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_TILE_SCALE
						+ " scale] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_POINT_RADIUS
						+ " radius] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_POINT_COLOR
						+ " color] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_POINT_ICON
						+ " image_file] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_ICON_WIDTH
						+ " width] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_ICON_HEIGHT
						+ " height] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_POINT_CENTER_ICON
						+ "] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_LINE_STROKE_WIDTH
						+ " stroke_width] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_LINE_COLOR
						+ " color] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_POLYGON_STROKE_WIDTH
						+ " stroke_width] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_POLYGON_COLOR
						+ " color] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_FILL_POLYGON
						+ "] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_POLYGON_FILL_COLOR
						+ " color] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_SIMPLIFY_GEOMETRIES
						+ " true|false] ["
						+ ARGUMENT_PREFIX
						+ ARGUMENT_IGNORE_GEOPACKAGE_STYLES
						+ " true|false] feature_geopackage_file feature_table tile_geopackage_file tile_table min_zoom max_zoom");
		System.out.println();
		System.out.println("DESCRIPTION");
		System.out.println();
		System.out
				.println("\tGenerates tiles from a GeoPackage feature table into a tile table");
		System.out.println();
		System.out.println("ARGUMENTS");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX
				+ ARGUMENT_MAX_FEATURES_PER_TILE + " max_features_per_tile");
		System.out
				.println("\t\tMax features to generate into a tile before generating a numbered feature count tile (default is "
						+ DEFAULT_MAX_FEATURES_PER_TILE
						+ ", use -1 for no max)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_COMPRESS_FORMAT
				+ " compress_format");
		System.out
				.println("\t\tTile compression image format: png, jpg, jpeg (default is no compression, native format)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_COMPRESS_QUALITY
				+ " compress_quality");
		System.out
				.println("\t\tTile compression image quality between 0.0 and 1.0 (not valid for png, default is 1.0)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_GOOGLE_TILES);
		System.out
				.println("\t\tGenerate tiles in Google tile format (default is GeoPackage format with minimum bounds)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_BOUNDING_BOX
				+ " minLon,minLat,maxLon,maxLat");
		System.out
				.println("\t\tOnly tiles overlapping the bounding box are requested (default is the world)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_EPSG + " epsg");
		System.out
				.println("\t\tEPSG number of the provided bounding box (default is 4326, WGS 84)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_TILE_WIDTH
				+ " width");
		System.out
				.println("\t\tWidth used when creating each tile (default is "
						+ featureTiles.getTileWidth() + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_TILE_HEIGHT
				+ " height");
		System.out
				.println("\t\tHeight used when creating each tile (default is "
						+ featureTiles.getTileHeight() + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_TILE_SCALE
				+ " scale");
		System.out
				.println("\t\tScale factor used when creating each tile (default is "
						+ featureTiles.getScale() + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_POINT_RADIUS
				+ " radius");
		System.out
				.println("\t\tFloating point circle radius used when drawing points (default is "
						+ featureTiles.getPointRadius() + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_POINT_COLOR
				+ " color");
		System.out
				.println("\t\tColor used when drawing points formatted as one of: [ name | r,g,b | r,g,b,a ] (default is "
						+ colorString(featureTiles.getPointColor()) + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_POINT_ICON
				+ " image_file");
		System.out
				.println("\t\tImage file containing image to use when drawing points in place of a drawn circle");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_ICON_WIDTH
				+ " width");
		System.out
				.println("\t\tPoint icon display width (default is actual icon width)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_ICON_HEIGHT
				+ " height");
		System.out
				.println("\t\tPoint icon display height (default is actual icon height)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_POINT_CENTER_ICON);
		System.out
				.println("\t\tDraw point icons by centering the icon image to the location (default is pinning to bottom center)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_LINE_STROKE_WIDTH
				+ " stroke_width");
		System.out
				.println("\t\tFloating point stroke width when drawing lines (default is "
						+ featureTiles.getLineStrokeWidth() + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_LINE_COLOR
				+ " color");
		System.out
				.println("\t\tColor used when drawing lines formatted as one of: [ name | r,g,b | r,g,b,a ] (default is "
						+ colorString(featureTiles.getLineColor()) + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX
				+ ARGUMENT_POLYGON_STROKE_WIDTH + " stroke_width");
		System.out
				.println("\t\tFloating point stroke width when drawing polygons (default is "
						+ featureTiles.getPolygonStrokeWidth() + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_POLYGON_COLOR
				+ " color");
		System.out
				.println("\t\tColor used when drawing polygons formatted as one of: [ name | r,g,b | r,g,b,a ] (default is "
						+ colorString(featureTiles.getPolygonColor()) + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_FILL_POLYGON);
		System.out.println("\t\tFill polygons with color (default is "
				+ featureTiles.isFillPolygon() + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX + ARGUMENT_POLYGON_FILL_COLOR
				+ " color");
		System.out
				.println("\t\tColor used when filling polygons formatted as one of: [ name | r,g,b | r,g,b,a ] (default is "
						+ colorString(featureTiles.getPolygonFillColor()) + ")");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX
				+ ARGUMENT_SIMPLIFY_GEOMETRIES + " true|false");
		System.out
				.println("\t\tFlag indicating whether geometries should be simplified with a similar curve with fewer points before drawn (default is true)");
		System.out.println();
		System.out.println("\t" + ARGUMENT_PREFIX
				+ ARGUMENT_IGNORE_GEOPACKAGE_STYLES + " true|false");
		System.out
				.println("\t\tFlag indicating whether styles saved within the GeoPackage should be ignored (default is false)");
		System.out.println();
		System.out.println("\tfeature_geopackage_file");
		System.out
				.println("\t\tpath to the GeoPackage file containing the feature table to generate tiles from");
		System.out.println();
		System.out.println("\tfeature_table");
		System.out
				.println("\t\tfeature table name within the GeoPackage file to generate tiles from");
		System.out.println();
		System.out.println("\ttile_geopackage_file");
		System.out
				.println("\t\tpath to the GeoPackage file to create with tiles, or existing file to update");
		System.out.println();
		System.out.println("\ttile_table");
		System.out
				.println("\t\ttile table name within the GeoPackage file to create or update");
		System.out.println();
		System.out.println("\tmin_zoom");
		System.out.println("\t\tMinimum zoom level to request tiles for");
		System.out.println();
		System.out.println("\tmax_zoom");
		System.out.println("\t\tMaximum zoom level to request tiles for");
		System.out.println();
	}
1319950
def _print_bar(self):
        ''''''
        self._print('[')

        for position in range(self._bar_width):
            position_fraction = position / (self._bar_width - 1)
            position_bytes = position_fraction * self.max_value

            if position_bytes < (self.continue_value or 0):
                self._print('+')
            elif position_bytes <= (self.continue_value or 0) + self.current_value:
                self._print('=')
            else:
                self._print(' ')

        self._print(']')
296166
public function print_continue() {
        global $CFG, $OUTPUT;

        debugging('function grade_export::print_continue is deprecated.', DEBUG_DEVELOPER);
        $params = $this->get_export_params();

        echo $OUTPUT->heading(get_string('export', 'grades'));

        echo $OUTPUT->container_start('gradeexportlink');

        if (!$this->userkey) {
            // This button should trigger a download prompt.
            $url = new moodle_url('/grade/export/'.$this->plugin.'/export.php', $params);
            echo $OUTPUT->single_button($url, get_string('download', 'admin'));

        } else {
            $paramstr = '';
            $sep = '?';
            foreach($params as $name=>$value) {
                $paramstr .= $sep.$name.'='.$value;
                $sep = '&';
            }

            $link = $CFG->wwwroot.'/grade/export/'.$this->plugin.'/dump.php'.$paramstr.'&key='.$this->userkey;

            echo get_string('download', 'admin').': ' . html_writer::link($link, $link);
        }
        echo $OUTPUT->container_end();

        return;
    }
928915
public function print_r($key, $gs, $ge, $ls, $le, $ind = ' ', $max_depth = 6)
    {
        $o = '';
        if (strlen($ind) > $max_depth) {
            return;
        }
        if (is_array($key)) {
            $o = $gs;
            foreach ($key as $a => $b) {
                $o .= $ind.$ls.$a.': '.$this->print_r($b, $gs, $ge, $ls, $le, $ind.' ').$le;
            }
            $o .= $ge;
        } elseif ($key instanceof Closure) {
            $o .= '[closure]';
        } elseif (is_object($key)) {
            $o .= 'object('.get_class($key).'): ';
            if (method_exists($key, '__debugInfo')) {
                $o .= $this->print_r($key->__debugInfo(), $gs, $ge, $ls, $le, $ind.' ').$le;
            }
        } else {
            $o .= $gs ? htmlspecialchars($key) : $key;
        }

        return $o;
    }
224584
function row (root, prefix, isTail, out, printNode) {
  if (root) {
    out(`${ prefix }${ isTail ? '└── ' : '├── ' }${ printNode(root) }\n`);
    const indent = prefix + (isTail ? '    ' : '│   ');
    if (root.left)  row(root.left,  indent, false, out, printNode);
    if (root.right) row(root.right, indent, true,  out, printNode);
  }
}
977874
function printNodes(node, indent) {
  indent = indent || 0;

  print(node.typename + ': ', indent);

  if (node instanceof NodeList) {
    print('\n');
    node.children.forEach((n) => {
      printNodes(n, indent + 2);
    });
  } else if (node instanceof CallExtension) {
    print(`${node.extName}.${node.prop}\n`);

    if (node.args) {
      printNodes(node.args, indent + 2);
    }

    if (node.contentArgs) {
      node.contentArgs.forEach((n) => {
        printNodes(n, indent + 2);
      });
    }
  } else {
    let nodes = [];
    let props = null;

    node.iterFields((val, fieldName) => {
      if (val instanceof Node) {
        nodes.push([fieldName, val]);
      } else {
        props = props || {};
        props[fieldName] = val;
      }
    });

    if (props) {
      print(JSON.stringify(props, null, 2) + '\n', null, true);
    } else {
      print('\n');
    }

    nodes.forEach(([fieldName, n]) => {
      print(`[${fieldName}] =>`, indent + 2);
      printNodes(n, indent + 4);
    });
  }
}
218109
function printTimingAndExit(startTime) {
  const execTime = time() - startTime;

  printColumns(chalk.green(`Finished in: ${execTime.toFixed()}ms`));
  process.exit(0);
}
1277187
def print_usage_table(options={})
      fields = get_usage_fields options[:fields]
      fields, opts =  get_fields_and_options(fields, options)
      render_table(fields, opts, options)
    end
267124
def _printClassRange(self, hrlinetop=True, print_inferred=False):
        
        if not self.currentEntity:  # ==> ontology level
            return
        x = self.currentEntity['object']
        if self.currentEntity['type'] == 'class':
            if hrlinetop:
                self._print("----------------")
            self._print("RANGE OF:", "IMPORTANT")
            self._print("[%d] Explicitly declared" % len(x.range_of), "IMPORTANT")
            for i in x.range_of:
                if i.domains:
                    domains = ",".join([y.qname if hasattr(y, "qname") else str(y)
                                        for y in i.domains])
                else:
                    domains = "owl:Thing"
                print(Style.DIM + domains + Style.RESET_ALL + " => " + Fore.MAGENTA + i.qname +
                      Style.RESET_ALL + " => " + Fore.GREEN + x.qname + Style.RESET_ALL)

            # inferred stuff
            if print_inferred:
                for _dict in x.range_of_inferred:
                    _class = list(_dict.items())[0][0]
                    _propslist = list(_dict.items())[0][1]
                    if _class.id != x.id and len(_propslist):  # print only inferred properties
                        self._print("[%d] Inherited from [%s]" % (len(_propslist), _class.qname),
                                    "IMPORTANT")
                        for i in _propslist:
                            if i.domains:
                                domains = ",".join(
                                    [y.qname if hasattr(y, "qname") else str(y) for y in i.domains])
                            else:
                                domains = "owl:Thing"
                            print(Style.DIM + domains + Style.RESET_ALL + " => " + Fore.MAGENTA +
                                  i.qname + Style.RESET_ALL + " => " + Fore.GREEN + x.qname + Style.RESET_ALL)

            self._print("----------------")
        return
1333247
public String print(TemporalFormatter<Moment> printer) {

        return printer.withTimezone(this.getTimezone()).print(this.moment);

    }
247963
function Printr(options) {
  options = options || {};
  options.out = options.out || process.stdout;
  options.err = options.err || process.stderr;
  options.prefix = options.prefix || '';
  this.options = options;
}