override doTag method
199987
@Override
	public void doTag() throws JspException, IOException {
		PageContext pageContext = (PageContext) getJspContext();
        HttpServletRequest request  = (HttpServletRequest) pageContext.getRequest();

		// set global parameter
		globalMap.put("__AXU4J_CONTEXT_PATH__", request.getContextPath());

        // invoke body tags. like div, row, col...
        StringWriter dummy = new StringWriter();
        getJspBody().invoke(dummy);

        boolean isPjax = BooleanUtils.toBoolean(ObjectUtils.toString(request.getHeader(HEADER_KEY_PJAX)));
        if (isPjax) {
            Writer out = pageContext.getOut();
            String[] divs = StringUtils.split(request.getHeader(HEADER_KEY_AXU4J_DIV), ",");

            for(String div : divs) {
                out.write(divMap.get(StringUtils.trim(div)));
            }
            return;
        }

        AXUConfig config = ConfigReader.getConfig();
        String layoutFilename = getLayoutFilename();

        Reader layoutFileReader = null;
        try {
            // JSP
            if (StringUtils.endsWithIgnoreCase(layoutFilename, "jsp")) {

                pageContext.getRequest().setAttribute("divMap", divMap);
                pageContext.forward(layoutFilename);

            // HTML, else
            } else {
                layoutFileReader = new BufferedReader(new InputStreamReader(
                        new FileInputStream(getLayoutFile(layoutFilename)), config.getLayoutEncoding()));

                globalMap.put("param",   TagUtils.getRequestParameterMap(pageContext));
                globalMap.put("request", TagUtils.getRequestAttributeMap(pageContext));
                globalMap.put("session", TagUtils.getSessionAttributeMap(pageContext));
                globalMap.put("cookie",  TagUtils.getCookieMap(pageContext));

                Object[] params = new Object[] { divMap, globalMap };
                mustacheHtml = mustacheFactory.compile(layoutFileReader, key);
                mustacheHtml.execute(getJspContext().getOut(), params);

            }
        } catch (Exception e) {
            throw new JspException(String.format("LayoutTag is fail.\nname: %s", name), e);
        } finally {
            if (layoutFileReader != null) {
                layoutFileReader.close();
            }
            divMap = null;
        }
    }
1164045
public void doTag()
            throws JspException
    {
        // report any errors...
        if (hasErrors()) {
            reportErrors();
            return;
        }

        // calculate the output value...
        String text;
        if (_value != null) {
            text = _value.toString();
        }
        else {
            if (_defaultValue != null) {
                text = _defaultValue;
            }
            else {
                logger.warn(Bundle.getString("Tags_ContentExpressionNull", _value));
                text = DEFAULT_NULL_TEXT;
            }
        }

        write(text);
    }
1319245
public void doTag()
            throws JspException
    {
        if (hasErrors()) {
            reportErrors();
            return;
        }

        JspTag tag = SimpleTagSupport.findAncestorWithClass(this, IBehaviorConsumer.class);
        if (tag == null) {
            String s = Bundle.getString("Tags_BehaviorInvalidParent");
            registerTagError(s, null);
            reportErrors();
            return;
        }

        IBehaviorConsumer ac = (IBehaviorConsumer) tag;
        ac.setBehavior(_name, _value, _facet);
        return;
    }
1092454
public function override_dot_org( $type, $repo ) {
		// Correctly account for dashicon in Settings page.
		$icon           = is_array( $repo );
		$repo           = is_array( $repo ) ? (object) $repo : $repo;
		$dot_org_master = ! $icon ? $repo->dot_org && 'master' === $repo->branch : true;

		$transient_key = 'plugin' === $type ? $repo->file : null;
		$transient_key = 'theme' === $type ? $repo->slug : $transient_key;

		/**
		 * Filter update to override dot org.
		 *
		 * @since 8.5.0
		 *
		 * @return bool
		 */
		$override = in_array( $transient_key, apply_filters( 'github_updater_override_dot_org', [] ), true );

		return ! $dot_org_master || $override || $this->deprecate_override_constant();
	}
188427
@Override
	final public void doTag() throws JspException, IOException {
		try {
			// The output type cannot be determined until the body of the tag is invoked, because nested tags may
			// alter the resulting type.  We invoke the body first to accommodate nested tags.
			JspFragment body = getJspBody();
			if(body!=null) body.invoke(NullWriter.getInstance());

			MediaType myOutputType = getOutputType();
			if(myOutputType==null) {
				// No output, error if anything written.
				// prefix skipped
				doTag(FailOnWriteWriter.getInstance());
				// suffix skipped
			} else {
				final PageContext pageContext = (PageContext)getJspContext();
				final ServletRequest request = pageContext.getRequest();
				final HttpServletResponse response = (HttpServletResponse)pageContext.getResponse();
				final Writer out = pageContext.getOut();

				final ThreadEncodingContext parentEncodingContext = ThreadEncodingContext.getCurrentContext(request);

				// Determine the container's content type
				MediaType containerContentType;
				if(parentEncodingContext != null) {
					// Use the output type of the parent
					containerContentType = parentEncodingContext.contentType;
				} else {
					// Use the content type of the response
					String responseContentType = response.getContentType();
					// Default to XHTML: TODO: Is there a better way since can't set content type early in response then reset again...
					if(responseContentType == null) responseContentType = MediaType.XHTML.getContentType();
					containerContentType = MediaType.getMediaTypeForContentType(responseContentType);
				}

				// Determine the validator for the parent type.  This is to make sure prefix and suffix are valid.
				Writer containerValidator;
				if(parentEncodingContext != null) {
					// Make sure the output is compatibly validated.  It is a bug in the parent to not validate its input consistent with its content type
					if(!parentEncodingContext.validMediaInput.isValidatingMediaInputType(containerContentType)) {
						throw new LocalizedJspTagException(
							ApplicationResources.accessor,
							"AutoEncodingFilterTag.parentIncompatibleValidation",
							parentEncodingContext.validMediaInput.getClass().getName(),
							containerContentType.getContentType()
						);
					}
					// Already validated
					containerValidator = out;
				} else {
					// Need to add validator
					containerValidator = MediaValidator.getMediaValidator(containerContentType, out);
				}

				// Write any prefix
				writePrefix(containerContentType, containerValidator);

				// Find the encoder
				MediaEncoder mediaEncoder = MediaEncoder.getInstance(new HttpServletResponseEncodingContext(response), myOutputType, containerContentType);
				if(mediaEncoder!=null) {
					setMediaEncoderOptions(mediaEncoder);
					// Encode our output.  The encoder guarantees valid output for our parent.
					MediaWriter mediaWriter = new MediaWriter(mediaEncoder, out);
					mediaWriter.writePrefix();
					try {
						ThreadEncodingContext.setCurrentContext(
							request,
							new ThreadEncodingContext(myOutputType, mediaWriter)
						);
						try {
							doTag(mediaWriter);
						} finally {
							// Restore previous encoding context that is used for our output
							ThreadEncodingContext.setCurrentContext(request, parentEncodingContext);
						}
					} finally {
						mediaWriter.writeSuffix();
					}
				} else {
					// If parentValidMediaInput exists and is validating our output type, no additional validation is required
					if(
						parentEncodingContext != null
						&& parentEncodingContext.validMediaInput.isValidatingMediaInputType(myOutputType)
					) {
						ThreadEncodingContext.setCurrentContext(
							request,
							new ThreadEncodingContext(myOutputType, parentEncodingContext.validMediaInput)
						);
						try {
							doTag(out);
						} finally {
							ThreadEncodingContext.setCurrentContext(request, parentEncodingContext);
						}
					} else {
						// Not using an encoder and parent doesn't validate our output, validate our own output.
						MediaValidator validator = MediaValidator.getMediaValidator(myOutputType, out);
						ThreadEncodingContext.setCurrentContext(
							request,
							new ThreadEncodingContext(myOutputType, validator)
						);
						try {
							doTag(validator);
						} finally {
							ThreadEncodingContext.setCurrentContext(request, parentEncodingContext);
						}
					}
				}

				// Write any suffix
				writeSuffix(containerContentType, containerValidator);
			}
		} catch(MediaException err) {
			throw new JspTagException(err);
		}
	}
88058
public void doTag()
            throws JspException
    {
        JspTag parentTag = SimpleTagSupport.findAncestorWithClass(this, IFormattable.class);

        // if there are errors we need to either add these to the parent AbstractBastTag or report an error.
        if (hasErrors()) {
            if (parentTag instanceof IFormattable) {
                IFormattable parent = (IFormattable) parentTag;
                parent.formatterHasError();
            }
            reportErrors();
            return;
        }

        if (parentTag instanceof IFormattable) {
            IFormattable parent = (IFormattable) parentTag;
            DateFormatter dateFmt = new DateFormatter();
            dateFmt.setPattern(_pattern);
            dateFmt.setLocale(getLocale());
            dateFmt.setInputPattern(_stringInput);
            parent.addFormatter(dateFmt);
        }
        else {
            String s = Bundle.getString("Tags_FormattableParentRequired");
            registerTagError(s, null);
            reportErrors();
        }
    }
1286366
function joinTag(editor, node, syntax) {
	// Remove everything between the end of opening tag and the end of closing tag
	const open = getText(editor, node.open);
	const m = open.match(/\s*>$/);
	const start = node.open.end.translate([0, m ? -m[0].length : 0]);
	editor.setTextInBufferRange(new Range(start, node.end),
		selfClosingStyle[syntax] || selfClosingStyle.xhtml);
}
406002
function runGlob(args, opts, cb) {
  var dotIdx = args.indexOf('.');
  if (dotIdx !== -1) {
    args.splice(dotIdx, 1);
  }
  glob(args, opts, function(err, globbed) {
    if (Array.isArray(globbed) && dotIdx !== -1) globbed.push('.');
    cb(err, globbed);
  });
}
1310707
function overrideTags (parent, child, telegraf) {
  const childCopy = {};
  const toAppend = [];
  formatTags(child, telegraf).forEach(tag => {
    const idx = typeof tag === 'string' ? tag.indexOf(':') : -1;
    if (idx < 1) { // Not found or first character
      toAppend.push(tag);
    } else {
      childCopy[tag.substring(0, idx)] = tag.substring(idx + 1);
    }
  });
  const result = parent.map(tag => {
    const idx = typeof tag === 'string' ? tag.indexOf(':') : -1;
    if (idx < 1) { // Not found or first character
      return tag;
    }
    const key = tag.substring(0, idx);
    if (childCopy.hasOwnProperty(key)) {
      const value = childCopy[key];
      delete childCopy[key];
      return `${key}:${value}`;
    }
    return tag;
  });
  Object.keys(childCopy).forEach(key => {
    result.push(`${key}:${childCopy[key]}`);
  });
  return result.concat(toAppend);
}
946902
protected function overrideLangJS(): void
    {
        // Bind the Laravel JS Localization command into the app IOC.
        $this->app->singleton('localization.js', function ($app) {
            $app = $this->app;
            $laravelMajorVersion = (int) $app::VERSION;

            $files = $app['files'];

            if ($laravelMajorVersion === 4) {
                $langs = $app['path.base'].'/app/lang';
            } elseif ($laravelMajorVersion === 5) {
                $langs = $app['path.base'].'/resources/lang';
            }
            $messages = $app['config']->get('localization-js.messages');
            $generator = new LangJsGenerator($files, $langs, $messages);

            return new LangJsCommand($generator);
        });

        // Bind the Laravel JS Localization command into Laravel Artisan.
        $this->commands('localization.js');
    }
173852
function normalizeMethodName(method) {
    if (typeof method !== 'string')
        return method;
    switch (method.toUpperCase()) {
        case 'GET':
            return __WEBPACK_IMPORTED_MODULE_0__enums__["b" /* RequestMethod */].Get;
        case 'POST':
            return __WEBPACK_IMPORTED_MODULE_0__enums__["b" /* RequestMethod */].Post;
        case 'PUT':
            return __WEBPACK_IMPORTED_MODULE_0__enums__["b" /* RequestMethod */].Put;
        case 'DELETE':
            return __WEBPACK_IMPORTED_MODULE_0__enums__["b" /* RequestMethod */].Delete;
        case 'OPTIONS':
            return __WEBPACK_IMPORTED_MODULE_0__enums__["b" /* RequestMethod */].Options;
        case 'HEAD':
            return __WEBPACK_IMPORTED_MODULE_0__enums__["b" /* RequestMethod */].Head;
        case 'PATCH':
            return __WEBPACK_IMPORTED_MODULE_0__enums__["b" /* RequestMethod */].Patch;
    }
    throw new Error("Invalid request method. The method \"" + method + "\" is not supported.");
}
1120332
def override_args(**kwargs):
  

  override_kwargs = kwargs

  def custom_getter(getter, *args, **kwargs):
    """Custom getter with certain named arguments overridden.

    Args:
      getter: Underlying variable getter to invoke.
      *args: Arguments, compatible with those of tf.get_variable.
      **kwargs: Keyword arguments, compatible with those of tf.get_variable.

    Returns:
      The result of invoking `getter(*args, **kwargs)` except that certain
      kwargs entries may have been overridden.
    """
    kwargs.update(override_kwargs)
    return getter(*args, **kwargs)

  return custom_getter
621480
def setOverlayInputMethod(self, ulOverlayHandle, eInputMethod):
        """"""

        fn = self.function_table.setOverlayInputMethod
        result = fn(ulOverlayHandle, eInputMethod)
        return result
386871
def override(self, obj):
        """"""
        for field in obj.__class__.export_fields:
            setattr(self, field, getattr(obj, field))
634489
@Around(value = "execution(* *(..)) && (@annotation(tagReturnValue))")
	public Object doTagging(ProceedingJoinPoint pjp, TagReturnValue tagReturnValue) throws Throwable {
		Object result = pjp.proceed();
		MoSKitoContext.addTag(tagReturnValue.name(), result == null ? null : result.toString(), TagType.ANNOTATED, pjp.getSignature().toShortString());
		return result;
	}
115468
def _setFlag(self, name, val, defVal):
        """"""
        if not hasattr(self, "flags"):
            self.flags = {}
        if val != defVal:
            self.flags[name] = val
9986
function () {

    /*  Tagging arbitrary member as $final
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

        $assertThrows (function () {

            var A = $prototype ({
                        constructor: $final (function () {}) })

            var B = $extends (A, {
                        constructor: function () {} }) },   // will throw Error

            _.matches ({ message: 'Cannot override $final constructor' }))

    /*  Tagging whole prototype as $final
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

        $assertThrows (function () {

            var A = $prototype ($final ({}))
            var B = $extends (A) }, // will throw Error

             _.matches ({ message: 'Cannot derive from $final-marked prototype' })) }