Renders type tag column.
@param  {string} type
@return {string}
506408
function(type) {
  var t = '[' + type.toUpperCase() + ']';
  
  return utils.filler(t, utils.longestKey(CONSTS, 2));
}
811657
function (type) {
  var handlers = { 'html': beautify.html, 'css': beautify.css, 'js': beautify.js };

  if (type === undefined) {
    return beautify;
  }

  if (type in handlers) {
    return handlers[type];
  }

  throw new Error('Unrecognized beautifier type:', type);
}
1087875
public static String renderDisabledClassLine(final Class<?> type) {
        return String.format("-%-27s %-26s", getClassName(type), brackets(renderPackage(type)));
    }
885239
function(regexp, type){
    var captures;
    if (captures = regexp.exec(this.input)) {
      var len = captures[0].length;
      var val = captures[1];
      var diff = len - (val ? val.length : 0);
      var tok = this.tok(type, val);
      this.consume(len);
      this.incrementColumn(diff);
      return tok;
    }
  }
1113366
function(type){
			var view;

			if(type == 'scheduled')
				view = '<div class="group-tag group-tag-blue">'+
						'<span class="glyphicon glyphicon-time"></span> SCHEDULED</div>';

			else if(type == 'playing')
				view = '<div class="group-tag group-tag-orange">'+
						'<span class="glyphicon glyphicon-play"></span> PLAYING</div>';

			else if(type == 'ended')
				view = '<div class="group-tag group-tag-green">'+
						'<span class="glyphicon glyphicon-ok"></span> ENDED</div>';

			else
				view = '<div class="group-tag group-tag-green">'+type+'</div>';
			// Default one...
			return $(view);
		}
356901
public static Class<?> getColumnClass(CmsDataViewColumn.Type type) {

        if (type == Type.imageType) {
            return Component.class;
        } else {
            return type.getValueClass();
        }
    }
26602
function(type) {
    if (typeof XMLHttpRequest == 'undefined') {
      return false;
    }
    var xhr = new XMLHttpRequest();
    xhr.open('get', '/', true);
    try {
      xhr.responseType = type;
    } catch(error) {
      return false;
    }
    return 'response' in xhr && xhr.responseType == type;
  }
888658
public function render($type = 'all') {
		if ('all' != $type) {
			return $this->_render($type);
		}

		$out = '';
		foreach (array('js', 'scriptBlock', 'css') as $type) {
			$out .= $this->_render($type);
		}

		return $out;
	}
692147
public static String renderClassLine(final Class<?> type, final List<String> markers) {
        return String.format("%-28s %-26s %s", getClassName(type), brackets(renderPackage(type)), markers(markers));
    }
155443
public boolean containsOfType(final Class<? extends Tag> type) {
	read.lock();
	try {
	    return tags.containsKey(type);
	} finally {
	    read.unlock();
	}
    }
1349449
def render(self, type, rerender=False):
        """"""
        for child in self.children:
            child.render(type, rerender)
1320379
public EsRequest mappings( String type ) {
        EsRequest mappings = new EsRequest();
            EsRequest mappingsValue = new EsRequest();
                EsRequest mtype = new EsRequest();
                    EsRequest properties = new EsRequest();       
                    for (EsIndexColumn col : columns()) {
                        properties.put(col.getName(), fieldMapping(col.getType()));
                        properties.put(col.getLowerCaseFieldName(), fieldMapping(PropertyType.STRING));
                        properties.put(col.getUpperCaseFieldName(), fieldMapping(PropertyType.STRING));
                        properties.put(col.getLengthFieldName(), fieldMapping(PropertyType.LONG));
                    }        
                mtype.put("properties", properties);
            mappingsValue.put(type, mtype);
        mappings.put("mappings", mappingsValue);
        
        return mappings;
    }
1163629
function(type){
            type = this.string(type);
            if(types.indexOf(type.toLowerCase()) < 0){
                throw new TypeError('a type in [' + types.join(', ') + '] is expected, but ' + type + ' given');
            }
            return type.toLowerCase();
        }
814295
function (type) {
    return function (opts) {
        var opt = opts || {};
        var userAttrs = getUserAttrs(opt);
        var w = {
            classes: opt.classes,
            type: type,
            formatValue: function (value) {
                return (value || value === 0) ? value : null;
            }
        };
        w.toHTML = function (name, field) {
            var f = field || {};
            var attrs = {
                type: type,
                name: name,
                id: f.id === false ? false : (f.id || true),
                classes: w.classes,
                value: w.formatValue(f.value)
            };
            return tag('input', [attrs, userAttrs, w.attrs || {}]);
        };
        return w;
    };
}
961243
def render_tag(attrs=None, content=None):
    
    builder = '<pre><code{attrs}>{content}</code></pre>'
    return builder.format(
        attrs=flatatt(attrs) if attrs else '',
        content=escape(text_value(content)),
    )
616165
public function render($type = 'html')
    {
        $row = $this->getTable()->getRow()->getActualRow();

        $value = '';

        if (is_array($row) || $row instanceof \ArrayAccess) {
            $value = (isset($row[$this->getHeader()->getName()])) ? $row[$this->getHeader()->getName()] : '';
        } elseif (is_object($row)) {
            $headerName = $this->getHeader()->getName();
            $methodName = 'get' . ucfirst($headerName);
            if (method_exists($row, $methodName)) {
                $value = $row->$methodName();
            } else {
                $value = (property_exists($row, $headerName)) ? $row->$headerName : '';
            }
        }

        foreach ($this->decorators as $decorator) {
            if ($decorator->validConditions()) {
                $value = $decorator->render($value);
            }
        }

        if ($type == 'html') {
            $ret = sprintf("<td %s>%s</td>", $this->getAttributes(), $value);
            $this->clearVar();
            return $ret;

        } else {
            return $value;
        }
    }
338767
public function renderFields($type, $fields = [])
    {
        if (empty($fields)) {
            $fields = $this->getFields();
        }
        $output = '';

        switch ($type) {
        case 'form-create':
            $output .= $this->fieldHelper->formCreate($fields);
            break;
        case 'form-edit':
            $output .= $this->fieldHelper->formEdit($fields);
            break;
        case 'table-headings':
            $output .= $this->fieldHelper->tableHeadings($fields);
            break;
        case 'table-content':
            $output .= $this->fieldHelper->tableContent($fields, $this->instance);
            break;
            // JavaScript Variables
        case 'js-var':
            foreach ($fields as $f) {
                $output .= 'var '.$f.' = '.$this->instance->$f.'; ';
            }
            break;
        case 'js-modal-create':
            foreach ($fields as $f) {
                $output .= '"'.$f.'": $(\'#createItem'.$f.'\').val(), ';
            }
            break;
        default:
            break;
        }

        echo $output;
    }