Prints in standard output report about animation rendering. Namely, it prints seconds spent, number of
        frames and step size that is used in functional animation.
343812
def report(self):
        
        message = 'Elapsed in {0} seconds with {1} frames and {2} step.'
        print(message.format(self.elapsed_time, self.frames, self.step))
900516
def print_progress_bar(text, done, total, width):
    
    if total > 0:
        n = int(float(width) * float(done) / float(total))
        sys.stdout.write("\r{0} [{1}{2}] ({3}/{4})".format(text, '#' * n, ' ' * (width - n), done, total))
        sys.stdout.flush()
1107592
def do_printActivities(self,args):
        """"""
        parser = CommandArgumentParser("printActivities")
        parser.add_argument('-r','--refresh',action='store_true',dest='refresh',help='refresh');
        args = vars(parser.parse_args(args))
        refresh = args['refresh'] or not self.activities

        if refresh:
            response = self.client.describe_scaling_activities(AutoScalingGroupName=self.scalingGroup)
            self.activities = response['Activities']
        
        index = 0
        for activity in self.activities:
            print "{}: {} -> {} {}: {}".format(index,activity['StartTime'],stdplus.defaultifyDict(activity,'EndTime',''),activity['StatusCode'],activity['Description'])
            index = index + 1
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();
	}
1223923
function printfloatbuffer()
	{
		if (count($this->floatbuffer)) {
			$this->objectbuffer = $this->floatbuffer;
			$this->printobjectbuffer(false);
			$this->objectbuffer = [];
			$this->floatbuffer = [];
			$this->floatmargins = [];
		}
	}
672588
def print_progress(self, i, current_params):
        
        for split in range(1,11):
            if i == (round(self.iterations/10*split)-1):
                post = -self.full_neg_posterior(current_params)
                approx = self.create_normal_logq(current_params)
                diff = post - approx
                if not self.quiet_progress:
                    print(str(split) + "0% done : ELBO is " + str(diff) + ", p(y,z) is " + str(post) + ", q(z) is " + str(approx))
657668
function main() {
    var TIME_STEP_MS = 20;
    var frameCount = sozi.presentation.frames.length;
    var imageIndex = 0;

    document.querySelector(".sozi-blank-screen").style.display = "none";
    
    sozi.presentation.frames.forEach(function (currentFrame, currentFrameIndex) {
        console.log("Exporting frame: " + (currentFrameIndex + 1));

        sozi.player.jumpToFrame(currentFrameIndex);

        // Generate images for the duration of the current frame
        for (var timeMs = 0; timeMs < currentFrame.timeoutMs; timeMs += TIME_STEP_MS, imageIndex ++) {
            window.callPhantom(imageIndex);
        }

        // Generate images for the transition to the next frame.
        // If the last frame has a timeout enabled, transition to the first frame.
        if (currentFrameIndex < frameCount - 1 || currentFrame.timeoutEnable) {
            if (typeof sozi.player.nextFrameIndex === "number") {
                sozi.player.targetFrameIndex = sozi.player.nextFrameIndex; // Sozi < 18
            }
            else {
                sozi.player.targetFrame = sozi.player.nextFrame; // Sozi 18
            }

            sozi.viewport.cameras.forEach(function (camera) {
                var lp = sozi.player.targetFrame.layerProperties[camera.layer.index];
                sozi.player.setupTransition(camera, sozi.Timing[lp.transitionTimingFunction], lp.transitionRelativeZoom, lp.transitionPath, false);
            });

            for (timeMs = 0; timeMs < sozi.player.targetFrame.transitionDurationMs; timeMs += TIME_STEP_MS, imageIndex ++) {
                sozi.player.onAnimatorStep(timeMs / sozi.player.targetFrame.transitionDurationMs);
                window.callPhantom(imageIndex);
            }
        }
    });
}
220212
def stats(args):
    
    cat = _catalog(args)
    print('Summary:')
    print('  {0:,} objects with {1:,} bitstreams of total size {2}'.format(
        len(cat), sum(len(obj.bitstreams) for obj in cat), cat.size_h))
    print('  {0} duplicate bitstreams'.format(
        sum(1 for objs in cat.md5_to_object.values() if len(objs) > 1)))
    print('  {0} objects with no bitstreams'.format(
        sum(1 for obj in cat if not obj.bitstreams)))

    print()
    types = Counter(chain(*[[bs.mimetype for bs in obj.bitstreams] for obj in cat]))
    table = Table('maintype', 'subtype', 'bitstreams')
    for maintype, items in groupby(
            sorted(types.items(), key=lambda p: (p[0].split('/')[0], -p[1])),
            lambda p: p[0].split('/')[0]):
        for k, v in items:
            table.append([maintype, k.split('/')[1], v])
    print(table.render(tablefmt='simple'))
1199145
private static void printUsage() {
        final StringBuilder msg = new StringBuilder();
        msg.append("Usage: dita -i <file> -f <name> [options]\n");
        msg.append("   or: dita --project=<file> [options]\n");
        msg.append("   or: dita --propertyfile=<file> [options]\n");
        msg.append("   or: dita --install [=<file> | <url> | <id>]\n");
        msg.append("   or: dita --uninstall <id>\n");
        msg.append("   or: dita --plugins\n");
        msg.append("   or: dita --transtypes\n");
        msg.append("   or: dita --deliverables\n");
        msg.append("   or: dita --help\n");
        msg.append("   or: dita --version\n");
        msg.append("Arguments: \n");
        msg.append("  -i <file>, --input=<file>   input file\n");
        msg.append("  -f <name>, --format=<name>  output format (transformation type)\n");
        msg.append("  -p <name>, --project=<name> run project file\n");
        msg.append("  --install [<file>]          install plug-in from a local ZIP file\n");
        msg.append("  --install [<url>]           install plug-in from a URL\n");
        msg.append("  --install [<id>]            install plug-in from plugin registry\n");
        msg.append("  --install                   reload plug-ins\n");
        msg.append("  --uninstall <id>            uninstall plug-in with the ID\n");
        msg.append("  --plugins                   print list of installed plug-ins\n");
        msg.append("  --transtypes                print list of installed transtypes\n");
        msg.append("  --deliverables              print list of deliverables in project\n");
        msg.append("  -h, --help                  print this message\n");
        msg.append("  --version                   print version information and exit\n");
        msg.append("Options: \n");
        msg.append("  -o, --output=<dir>          output directory\n");
        // msg.append("  -diagnostics           print information that might be helpful to"
        // + lSep);
        // msg.append("                         diagnose or report problems." +
        // lSep);
        // msg.append("  -quiet, -q             be extra quiet" + lSep);
        msg.append("  --filter=<files>            filter and flagging files\n");
        msg.append("  --force                     force install plug-in\n");
        msg.append("  -t, --temp=<dir>            temporary directory\n");
        msg.append("  -v, --verbose               verbose logging\n");
        msg.append("  -d, --debug                 print debugging information\n");
        // msg.append("  -emacs, -e             produce logging information without adornments"
        // + lSep);
        // msg.append("  -lib <path>            specifies a path to search for jars and classes"
        // + lSep);
        msg.append("  -l, --logfile=<file>        use given file for log\n");
        // msg.append("  -logger <classname>    the class which is to perform logging"
        // + lSep);
        // msg.append("  -listener <classname>  add an instance of class as a project listener"
        // + lSep);
        // msg.append("  -noinput               do not allow interactive input"
        // + lSep);
        // msg.append("  -buildfile <file>      use given buildfile" + lSep);
        // msg.append("    -file    <file>              ''" + lSep);
        // msg.append("    -f       <file>              ''" + lSep);
        msg.append("  --<property>=<value>        use value for given property\n");
        msg.append("  --propertyfile=<name>       load all properties from file\n");
        // msg.append("  -keep-going, -k        execute all targets that do not depend"
        // + lSep);
        // msg.append("                         on failed target(s)" + lSep);
        // msg.append("  -inputhandler <class>  the class which will handle input requests"
        // + lSep);
        // msg.append("  -nice  number          A niceness value for the main thread:"
        // + lSep
        // +
        // "                         1 (lowest) to 10 (highest); 5 is the default"
        // + lSep);
        // msg.append("  -nouserlib             Run ant without using the jar files from"
        // + lSep
        // + "                         ${user.home}/.ant/lib" + lSep);
        // msg.append("  -noclasspath           Run ant without using CLASSPATH"
        // + lSep);
        // msg.append("  -autoproxy             Java1.5+: use the OS proxy settings"
        // + lSep);
        // msg.append("  -main <class>          override Ant's normal entry point");
        System.out.println(msg.toString());
    }
822547
def render(self, time: float, frame_time: float):
        
        self.example.render(time, frame_time)
184821
def print_summary(self, w=0, objs=(), **print3opts):
        '''
        '''
        self._printf('%*d bytes%s%s', w, self._total, _SI(self._total), self._incl, **print3opts)
        if self._mask:
            self._printf('%*d byte aligned', w, self._mask + 1, **print3opts)
        self._printf('%*d byte sizeof(void*)', w, _sizeof_Cvoidp, **print3opts)
        n = len(objs or ())
        if n > 0:
            d = self._duplicate or ''
            if d:
                d = ', %d duplicate' % self._duplicate
            self._printf('%*d object%s given%s', w, n, _plural(n), d, **print3opts)
        t = _sum([1 for t in _values(self._seen) if t != 0])  # [] for Python 2.2
        self._printf('%*d object%s sized', w, t, _plural(t), **print3opts)
        if self._excl_d:
            t = _sum(_values(self._excl_d))
            self._printf('%*d object%s excluded', w, t, _plural(t), **print3opts)
        t = _sum(_values(self._seen))
        self._printf('%*d object%s seen', w, t, _plural(t), **print3opts)
        if self._missed > 0:
            self._printf('%*d object%s missed', w, self._missed, _plural(self._missed), **print3opts)
        if self._depth > 0:
            self._printf('%*d recursion depth', w, self._depth, **print3opts)
903202
def output(results_dir, config, parent='../../'):
    
    start = time.time()
    print("Compiling results...")
    results_dir = os.path.abspath(results_dir)
    results = ReportResults(config['run_time'], config['results_ts_interval'])
    results.compile_results()
    print("Results compiled in {} seconds\n".format(time.time() - start))

    if results.total_transactions == 0:
        print("No results, cannot create report")
        return False

    print_infos(results)

    data = {
        'report': results,
        'run_time': config['run_time'],
        'ts_interval': config['results_ts_interval'],
        'turrets_config': results.turrets,
        'results': {"all": results.main_results, "timers": results.timers_results}
    }

    print("Generating graphs...")
    partial = time.time()
    generate_graphs(results.main_results, 'All_Transactions', results_dir)

    for key, value in results.timers_results.items():
        generate_graphs(value, key, results_dir)
    print("All graphs generated in {} seconds\n".format(time.time() - partial))

    write_template(data, results_dir, parent)
    print("Full report generated in {} seconds".format(time.time() - start))
    return True
1061584
def print_benchmark(elapsed):
    
    print '%-7.2f %s' % (elapsed, 'seconds elapsed')
    keys = ['directories', 'files',
            'logical lines', 'physical lines']
    for key in keys:
        if key in options.counters:
            print '%-7d %s per second (%d total)' % (
                options.counters[key] / elapsed, key,
                options.counters[key])
634083
def _print_duration(self):
        ''''''
        duration = int(time.time() - self._start_time)
        self._print(datetime.timedelta(seconds=duration))
1135413
def print_benchmark(self):
        """"""
        print('%-7.2f %s' % (self.elapsed, 'seconds elapsed'))
        if self.elapsed:
            for key in self._benchmark_keys:
                print('%-7d %s per second (%d total)' %
                      (self.counters[key] / self.elapsed, key,
                       self.counters[key]))
824810
def _render_pages(self):
        """"""
        self.style_log = StyleLog(self.stylesheet)
        self.floats = set()
        self.placed_footnotes = set()
        self._start_time = time.time()

        part_page_counts = {}
        part_page_count = PartPageCount()
        last_number_format = None
        for part_template in self.part_templates:
            part = part_template.document_part(self, part_page_count.count + 1)
            if part is None:
                continue
            if part_template.page_number_format != last_number_format:
                part_page_count = PartPageCount()
            part_page_count += part.render(part_page_count.count + 1)
            part_page_counts[part_template.name] = part_page_count
            last_number_format = part_template.page_number_format
        sys.stdout.write('\n')     # for the progress indicator
        return part_page_counts
396829
def _print(self, force_flush=False):
        
        self._stream_flush()
        next_perc = self._calc_percent()
        if self.update_interval:
            do_update = time.time() - self.last_time >= self.update_interval
        elif force_flush:
            do_update = True
        else:
            do_update = next_perc > self.last_progress

        if do_update and self.active:
            self.last_progress = next_perc
            self._cache_percent_indicator(self.last_progress)
            if self.track:
                self._cached_output += ' Time elapsed: ' + \
                                       self._get_time(self._elapsed())
                self._cache_eta()
            if self.item_id:
                self._cache_item_id()
            self._stream_out('\r%s' % self._cached_output)
            self._stream_flush()
            self._cached_output = ''