EDBML script declaration micro DSL.
@param {String} id
424385
function(id) {
		var config, script;
		return {
			as: function($edbml) {
				config = edbml.$runtimeconfigure($edbml);
				script = gui.Object.assert(id, config);
				script.$bind = function() {
					console.error('Deprecated API is deprecated: $bind');
				};
				script.lock = function(out) {
					return script({
						$out: out
					});
				};
				return this;
			},
			withInstructions: function(pis) {
				script.$instructions = pis;
			}
		};
	}
823858
@Override
    protected Element exportDataElement(String id) {
        final FragmentDefinition fragmentDefinition =
                fragmentDefinitionDao.getFragmentDefinition(id);
        if (fragmentDefinition == null) {
            return null;
        }

        final org.dom4j.Document fragmentDefDoc = new org.dom4j.DocumentFactory().createDocument();
        final Element fragmentDefElement = fragmentDefDoc.addElement("fragment-definition");
        fragmentDefElement.addNamespace("dlm", Constants.NS_URI);
        fragmentDefElement.addAttribute(
                "script", "classpath://org/jasig/portal/io/import-fragment-definition_v3-1.crn");
        fragmentDefinition.toElement(fragmentDefElement);

        return fragmentDefElement;
    }
717670
@SuppressWarnings("unchecked")
    public <M extends T> M byId(ID id) {
        return (M) server().find(getModelType(), id);
    }
704272
public static void addIdToRegexp(final StringBuilder buf, final byte[] id) {
    boolean backslash = false;
    for (final byte b : id) {
      buf.append((char) (b & 0xFF));
      if (b == 'E' && backslash) {  // If we saw a `\' and now we have a `E'.
        // So we just terminated the quoted section because we just added \E
        // to `buf'.  So let's put a literal \E now and start quoting again.
        buf.append("\\\\E\\Q");
      } else {
        backslash = b == '\\';
      }
    }
    buf.append("\\E");
  }
1193792
function Widget(id, document) {
    EventEmitter.call(this);
    this.id = id;
    this.el = null;
    this.bodyEl = null;
    this.state = null;
    this.__subscriptions = null;
    this.__evHandles = null;
    this.__lifecycleState = null;
    this.__customEvents = null;
    this.__scope = null;
    this.__dirty = false;
    this.__oldState = null;
    this.__stateChanges = null;
    this.__updateQueued = false;
    this.__dirtyState = null;
    this.__document = document;
}
668177
function (id, length) {
            length = length || 8;

            id = id || words.generate(length);

            while (this.mapValues[id] !== undefined) {
                id = words.generate(length);
                length += 1;
            }

            return id.toString();
        }
598479
function (id) {
        var returnControl = null;
        for(var i=0, len=this.controls.length; i<len; i++) {
            var control = this.controls[i];
            if (control.id == id) {
                returnControl = control;
                break;
            }
        }
        return returnControl;
    }
157966
function createId (coll) {
  var _ = this
  var idProperty = _.__id()
  if (_.isEmpty(coll)) {
    return 1
  } else {
    var id = _.maxBy(coll, function (doc) {
      return doc[idProperty]
    })[idProperty]

    if (_.isFinite(id)) {
      // Increment integer id
      return ++id
    } else {
      // Generate string id
      return uuid()
    }
  }
}
924752
function normalize( id, baseId ) {
        if ( !id ) {
            return '';
        }

        baseId = baseId || '';
        var idInfo = parseId( id );
        if ( !idInfo ) {
            return id;
        }

        var resourceId = idInfo.resource;
        var moduleId = relative2absolute( idInfo.module, baseId );

        each(
            packagesIndex,
            function ( packageConf ) {
                var name = packageConf.name;
                if ( name === moduleId ) {
                    moduleId = name + '/' + packageConf.main;
                    return false;
                }
            }
        );

        // 根据config中的map配置进行module id mapping
        indexRetrieve(
            baseId,
            mappingIdIndex,
            function ( value ) {

                indexRetrieve(
                    moduleId,
                    value,
                    function ( mdValue, mdKey ) {
                        moduleId = moduleId.replace( mdKey, mdValue );
                    }
                );

            }
        );

        if ( resourceId ) {
            var module = modGetModuleExports( moduleId );
            resourceId = module.normalize
                ? module.normalize(
                    resourceId,
                    function ( resId ) {
                        return normalize( resId, baseId );
                    }
                  )
                : normalize( resourceId, baseId );

            moduleId += '!' + resourceId;
        }

        return moduleId;
    }
1158635
function(obj, id) {
            if (!obj) {
                return;
            }

            if (typeof obj == 'function') {
                obj.prototype.__moduleId__ = id;
                return;
            }

            if (typeof obj == 'string') {
                return;
            }

            obj.__moduleId__ = id;
        }
712623
function($edbml) {
		return function configured($in) {
			$edbml.$out = ($in && $in.$out) ? $in.$out : new edbml.Out();
			$edbml.$att = new edbml.Att();
			$edbml.$input = function(Type) {
				return this.script.$input.get(Type);
			}.bind(this);
			return $edbml.apply(this, arguments);
		};
	}
1044133
function parseId(self, id) {
    const { options } = self.schema;

    if (is.string(id)) {
        if (options && options.keyType === 'name') {
            return id;
        } if (options.keyType === 'id') {
            return self.gstore.ds.int(id);
        }
        // auto convert string number to number
        return isFinite(id) ? self.gstore.ds.int(id) : id;
    }

    if (!is.number(id)) {
        throw new Error('id must be a string or a number');
    }

    return id;
}
237831
function (id) {
                var plugin = null;
                util.each(this.get('plugins'), function (p) {
                    // user defined takes priority
                    var pluginId = p.get && p.get('pluginId') || p.pluginId;
                    if (pluginId === id) {
                        plugin = p;
                        return false;
                    }
                    return undefined;
                });
                return plugin;
            }
155833
function injectCode(code, id) {
  var pre = document.getElementById(id);
  pre.textContent = code;
  code = pre.innerHTML;
  code = prettyPrintOne(code, 'js');
  pre.innerHTML = code;
}
360292
function (jax,id,script) {
      if (!jax.enriched || this.config.disabled) return;
      if (jax.root.Get("display") === "block" ||
          script.parentNode.childNodes.length <= 3) {
        jax.root.SRE = {action: this.Actions(jax.root)};
      }
    }
1224624
function(id) {
        if (typeof id !== "string") {
            YAHOO.log("id is not a string, assuming it is an HTMLElement");
            id = Dom.generateId(id);
        }
        this.invalidHandleIds[id] = id;
    }
304413
function(id) {
      if (id == null) return void 0;
      return this._byId[id.id != null ? id.id : id];
    }