Renders help for task
486308
protected function renderTaskHelp()
    {
        $this->appendLine($this->getColoredString('Available actions', 'dark_gray'));
        $this->appendLine(PHP_EOL);
        foreach ($this->actions as $action) {
            $this->appendLine(sprintf(
                '   %s      %s',
                $this->getColoredString($action->getName(), 'light_green'),
                $this->getColoredString($action->getDescription(), 'green'))
            );
        }
    }
205930
def render(self, path, width = 1024, height = 1024):
    
    self.conn.issue_command("Render", path, width, height)
993776
function render(filename, options, callback) {
  var isAsync = callback && typeof callback === 'function';

  if (!isAsync) {
    return renderSync(filename, options)
  }

  getTemplate(filename, options, function(err, template) {
    if (err) {
      return callback(err);
    }

    template.render({ model: options, }, callback);
  });
}
389618
def render(self, name, value, attrs=None, renderer=None):
        """"""
        if django.VERSION >= (1, 11):
            return super(BetterFileInput, self).render(name, value, attrs)

        t = render_to_string(
            template_name=self.template_name,
            context=self.get_context(name, value, attrs),
        )
        return mark_safe(t)
1224207
public function help()
    {
        $this->setGlobalIndent(0);
        echo $this->yellow->render('Usage:');
        echo $this('  phillip [options] [file|directory]');

        echo $this('');
        echo $this->yellow->render('Options:');
        echo $this('  -h, --help           Show help text and exit.');
        echo $this('  -v, --version        Show version information and exit.');
        echo $this('  -c, --coverage       Show coverage data.');
        echo $this('  -s, --suite <suite>  Run a predefined test suite.');
        echo $this('  -r, --random         Run tests within each suite in random order.');
    }
324597
def _render(self):
        """"""
        return list(self._parent)[self._start:self._stop:self._step]
753506
private static void renderHelper(final WebXmlRenderContext renderContext,
			final Diagnosable component,
			final List<Diagnostic> diags,
			final int severity) {
		if (diags.isEmpty()) {
			return;
		}

		XmlStringBuilder xml = renderContext.getWriter();

		xml.appendTagOpen(TAG_NAME);
		xml.appendAttribute("id", "_wc_".concat(UUID.randomUUID().toString()));
		xml.appendAttribute("type", getLevel(severity));
		xml.appendAttribute("for", component.getId());
		xml.appendClose();
		for (Diagnostic diagnostic : diags) {
			xml.appendTag(MESSAGE_TAG_NAME);
			xml.appendEscaped(diagnostic.getDescription());
			xml.appendEndTag(MESSAGE_TAG_NAME);
		}
		xml.appendEndTag(TAG_NAME);
	}
1089273
public function renderHelp()
    {
        $this->renderHeader();

        echo Line::begin('Usage:', Line::YELLOW)->nl();
        echo Line::begin()
            ->indent(2)
            ->text($this->getUsage())
            ->nl(2);

        // Options
        echo Line::begin('Options:', Line::YELLOW)->nl();
        echo Line::begin()
            ->indent(2)
            ->text('--help', Line::MAGENTA)
            ->to(21)
            ->text('-h', Line::MAGENTA)
            ->text('Display this help message.')
            ->nl(1);

        $attributes = $this->attributeNames();
        $help = $this->attributeHelp();

        sort($attributes);

        foreach ($attributes as $name) {
            echo Line::begin()
                ->indent(2)
                ->text("--$name", Line::MAGENTA)
                ->to(24)
                ->text(isset($help[$name]) ? $help[$name] : '')
                ->nl();
        }

        exit(0);
    }
289546
function render(template, data, block) {
  data = Benchpress.addGlobals(data || {});

  return Promise.try(() => {
    Benchpress.cache[template] = Benchpress.cache[template] || load(template);
    return Benchpress.cache[template];
  }).then((templateFunction) => {
    if (block) {
      templateFunction = templateFunction.blocks && templateFunction.blocks[block];
    }
    if (!templateFunction) {
      return '';
    }

    return runtime(Benchpress.helpers, data, templateFunction);
  });
}
888269
public function render_help() {
		$field_data    = Carbon_Breadcrumb_Admin_Settings::get_field_data();
		$original_name = str_replace( 'carbon_breadcrumbs_', '', $this->get_id() );
		$help          = ! empty( $field_data[ $original_name ]['help'] ) ? $field_data[ $original_name ]['help'] : '';
		if ( ! $help ) {
			return;
		}
		?>
		<p class="description"><?php echo esc_html( $help ); ?></p>
		<?php
	}
518837
function tryRender(view, options, callback) {
  try {
    view.render(options, callback);
  } catch (err) {
    callback(err);
  }
}
1229863
def render(parameters = {})

      has_thumbnail = parameters.fetch(:has_thumbnail, true)
      effect_number = parameters.fetch(:effect_number, false)
      thumbnail_template = self.get_template(effect_number)


      if has_thumbnail
        @attributes.map { |key, value| thumbnail_template["###{key}##"] &&= value }
        thumbnail_template.gsub!('##url##', @url).html_safe
      else
        self.to_s.html_safe
      end
    end
1359646
def render(self, **kwargs):
        """"""
        for name, child in self._children.items():
            child.render(**kwargs)

        figure = self.get_root()
        assert isinstance(figure, Figure), ('You cannot render this Element '
                                            'if it is not in a Figure.')

        figure.script.add_child(Element(
            self._template.render(this=self, kwargs=kwargs)),
            name=self.get_name())
1318558
function render() {
		$args=func_get_args();
		$format=$args?array_shift($args):'png';
		if (PHP_SAPI!='cli') {
			header('Content-Type: image/'.$format);
			header('X-Powered-By: '.Base::instance()->PACKAGE);
		}
		call_user_func_array(
			'image'.$format,
			array_merge([$this->data,NULL],$args)
		);
	}
1221335
def render(self, **kwargs):
        """"""
        for item in self._parent._children.values():
            if not isinstance(item, Layer) or not item.control:
                continue
            key = item.layer_name
            if not item.overlay:
                self.base_layers[key] = item.get_name()
                if len(self.base_layers) > 1:
                    self.layers_untoggle[key] = item.get_name()
            else:
                self.overlays[key] = item.get_name()
                if not item.show:
                    self.layers_untoggle[key] = item.get_name()
        super(LayerControl, self).render()
774197
def help(cls, task=None):
        """"""
        if task is None:
            usage_list = []
            for task in iter(cls._tasks):
                task_func = getattr(cls, task)
                usage_string = "  %s %s" % (cls._prog, task_func.usage)
                desc = task_func.__doc__.splitlines()[0]
                usage_list.append((usage_string, desc))
            max_len = functools.reduce(lambda m, item: max(m, len(item[0])), usage_list, 0)
            print("Tasks:")
            cols = int(os.environ.get("COLUMNS", 80))
            for line, desc in usage_list:
                task_func = getattr(cls, task)
                if desc:
                    line = "%s%s  # %s" % (line, " " * (max_len - len(line)), desc)
                if len(line) > cols:
                    line = line[:cols - 3] + "..."
                print(line)
        else:
            task_func = getattr(cls, task)
            print("Usage:")
            print("  %s %s" % (cls._prog, task_func.usage))
            print("")
            print(task_func.__doc__)
563532
def render(object, options={}, return_obj=false)
      if options[:inspect]
        puts(object.inspect)
      else
        render_object(object, options, return_obj) unless silent_object?(object)
      end
    end