_id
stringlengths
2
6
title
stringlengths
0
58
partition
stringclasses
3 values
text
stringlengths
27
233k
language
stringclasses
1 value
meta_information
dict
q51900
instanceIndex
train
function instanceIndex(context) { for (var i = 0; i < instances.length; i++) { var instance = instances[i];
javascript
{ "resource": "" }
q51901
train
function(requisition) { if (instanceIndex(requisition.conversionContext) !== -1) { throw new Error('Remote existing mapping before adding a new one'); } instances.push({ conversionContext: requisition.conversionContext,
javascript
{ "resource": "" }
q51902
train
function(option) { if (arg.text.length === 0) { // If someone hasn't typed anything, we only show top level commands in // the menu. i.e. sub-commands (those with a space in their name) are // excluded. We do this to keep the list at an overview level.
javascript
{ "resource": "" }
q51903
tweakI18nStrings
train
function tweakI18nStrings(data) { // Rip off the CommonJS header/footer var output = ''; data.replace(outline, function(m, inner) { // Remove the trailing spaces output += inner.replace(/ *$/, ''); }); if (output === '') { throw new Error('Mismatch in lib/gcli/nls/strings.js'); } var strings...
javascript
{ "resource": "" }
q51904
wordWrap
train
function wordWrap(input, length) { // LOOK! Over there! Is it an airplane? var wrapper = new RegExp('.{0,' + (length - 1) + '}([ $|\\s$]|$)', 'g'); return input.match(wrapper).slice(0, -1).map(function(s) {
javascript
{ "resource": "" }
q51905
nodeFromDataToString
train
function nodeFromDataToString(data, conversionContext) { var node = util.createElement(conversionContext.document, 'p');
javascript
{ "resource": "" }
q51906
train
function(javascript) { try { return Promise.resolve({ input: javascript, output: eval(javascript), exception: null }); } catch (ex) { return
javascript
{ "resource": "" }
q51907
train
function(start) { if (!this.requisition.isUpToDate()) { return; } var newAssignment = this.requisition.getAssignmentAt(start); if (newAssignment == null) { return; } if (this.assignment !== newAssignment) { if (this.assignment.param.type.onLeave) { this.assignment.para...
javascript
{ "resource": "" }
q51908
train
function() { this.lastText = this.assignment.arg.text; var field = this.terminal.field; if (field) { field.onFieldChange.remove(this.terminal.fieldChanged, this.terminal); field.destroy(); } var fields = this.terminal.system.fields; field = this.terminal.field = fields.get(this.ass...
javascript
{ "resource": "" }
q51909
train
function() { // If the user is on a valid value, then we increment the value, but if // they've typed something that's not right we page through predictions if (this.assignment.getStatus() === Status.VALID) { return this.requisition.nudge(this.assignment, 1).then(function() {
javascript
{ "resource": "" }
q51910
train
function(input) { // Deny RETURN unless the command might work if (this.requisition.status !== Status.VALID) { return Promise.resolve(false); } this.terminal.history.add(input);
javascript
{ "resource": "" }
q51911
train
function(value) { this.terminal._caretChange = Caret.NO_CHANGE; return this.requisition.update(value).then(function(updated) {
javascript
{ "resource": "" }
q51912
train
function(cursor) { this._caretChange = Caret.NO_CHANGE; this._processCaretChange({
javascript
{ "resource": "" }
q51913
train
function() { var input = this.terminal.getInputState(); var start = input.cursor.start; var index = this.terminal.getChoiceIndex(); return this.requisition.getStateData(start, index).then(function(data) { // Calculate the statusMarkup required to show wavy lines underneath the // input text...
javascript
{ "resource": "" }
q51914
train
function(ev) { if (ev.output.hidden) { return; } var template = this.commandDom.cloneNode(true); var templateOptions = { stack: 'terminal.html#outputView' }; var context = this.requisition.conversionContext; var data = { onclick: context.update, ondblclick: context.updateExec...
javascript
{ "resource": "" }
q51915
train
function(element) { var links = element.querySelectorAll('*[href]'); for (var
javascript
{ "resource": "" }
q51916
cloneState
train
function cloneState(state) { return { options: state.options,
javascript
{ "resource": "" }
q51917
processString
train
function processString(state, value, data) { return value.replace(TEMPLATE_REGION, function(path) {
javascript
{ "resource": "" }
q51918
maybeImportNode
train
function maybeImportNode(state, node, doc) { return node.ownerDocument === doc ?
javascript
{ "resource": "" }
q51919
handleError
train
function handleError(state, message, ex) { logError(message
javascript
{ "resource": "" }
q51920
Settings
train
function Settings(types, settingValues) { this._types = types; // Where we store the settings that we've created this._settings = {}; // Where the values for the settings are stored while in use. this._settingValues = settingValues || {}; // Where the values for the settings are persisted for next
javascript
{ "resource": "" }
q51921
Setting
train
function Setting(settings, name, type, description, defaultValue) { this._settings = settings; this.name = name; this.type = type; this.description =
javascript
{ "resource": "" }
q51922
onEnter
train
function onEnter(assignment) { // TODO: GCLI doesn't support passing a context to notifications of cursor // position, so onEnter/onLeave/onChange are disabled below until we fix this
javascript
{ "resource": "" }
q51923
removeItemsFromFront
train
function removeItemsFromFront(system, front) { system.commands.getAll().forEach(function(command)
javascript
{ "resource": "" }
q51924
getChainConverter
train
function getChainConverter(first, second) { if (first.to !== second.from) { throw new Error('Chain convert impossible: ' + first.to + '!=' + second.from);
javascript
{ "resource": "" }
q51925
train
function(ev) { if (fireHoldCount > 0) { heldEvents.push(ev); if (eventDebug) { console.log('Held fire: ' + name, ev); } return; } if (eventDebug) { console.group('Fire: ' + name + ' to ' + handlers.length + ' listeners', ev); } // Use for rather than forEach b...
javascript
{ "resource": "" }
q51926
toDate
train
function toDate(str) { var millis = Date.parse(str); if (isNaN(millis))
javascript
{ "resource": "" }
q51927
isDate
train
function isDate(thing) { return Object.prototype.toString.call(thing)
javascript
{ "resource": "" }
q51928
train
function(err) { console.log('SOCKET ' + command + '(' + debugStr(request.data, 30) + ') Exception'); util.errorHandler(err);
javascript
{ "resource": "" }
q51929
debugStr
train
function debugStr(obj) { var summary = JSON.stringify(obj)
javascript
{ "resource": "" }
q51930
Commands
train
function Commands(types, location) { this.types = types; this.location = location; // A lookup hash of our registered commands this._commands = {}; // A sorted list of command names, we regularly want them in order, so pre-sort this._commandNames = []; // A lookup of the
javascript
{ "resource": "" }
q51931
stringify
train
function stringify(data, action) { try { return JSON.stringify(data); } catch (ex) { console.error('Performing "' + action + '". Failed to stringify', data); util.errorHandler(ex);
javascript
{ "resource": "" }
q51932
WebsocketConnection
train
function WebsocketConnection(socket, url) { this.socket = socket; this.url = url; this.deferreds = {}; this.nextRequestId = 0;
javascript
{ "resource": "" }
q51933
addParamGroups
train
function addParamGroups(command) { Object.defineProperty(command, 'paramGroups', { get: function() { var paramGroups = {}; this.params.forEach(function(param) { var groupName = param.option || l10n.lookup('canonDefaultGroupName'); if (paramGroups[groupName] == null)
javascript
{ "resource": "" }
q51934
getSubCommands
train
function getSubCommands(context, command) { var commands = cli.getMapping(context).requisition.system.commands; var subcommands = commands.getAll().filter(function(subcommand) { return subcommand.name.indexOf(command.name) === 0 && subcommand.name !== command.name && !subcommand.hidden; ...
javascript
{ "resource": "" }
q51935
loadFirebaseRc
train
function loadFirebaseRc() { const rcFilePath = `${process.cwd()}/.firebaserc`; if (!fs.existsSync(rcFilePath)) { throw new Error('.firebaserc file not found'); } try { const fileStr = fs.readFileSync(rcFilePath);
javascript
{ "resource": "" }
q51936
getEnvNameFromConfig
train
function getEnvNameFromConfig(cypressConfig) { if (!cypressConfig.env
javascript
{ "resource": "" }
q51937
getParsedEnvVar
train
function getParsedEnvVar(varNameRoot) { const val = envVarBasedOnCIEnv(varNameRoot); const prefix = getEnvPrefix(); const combinedVar = `${prefix}${varNameRoot}`; if (!val) { error( `${chalk.cyan( combinedVar, )} not found, make sure it is set within environment variables.`,
javascript
{ "resource": "" }
q51938
validateDeep
train
function validateDeep(map) { if (!(map instanceof Map)) { throw new Error(`Invalid graph: Expected Map instead found ${typeof map}`); } map.forEach((value, key) => { if (typeof value === 'object' && value instanceof Map) { validateDeep(value); return; }
javascript
{ "resource": "" }
q51939
isValidNode
train
function isValidNode(val) { const cost = Number(val); if (isNaN(cost) || cost <= 0)
javascript
{ "resource": "" }
q51940
toDeepMap
train
function toDeepMap(source) { const map = new Map(); const keys = Object.keys(source); keys.forEach((key) => { const val = source[key]; if (val !== null && typeof val === 'object' &&
javascript
{ "resource": "" }
q51941
removeDeepFromMap
train
function removeDeepFromMap(map, key) { const newMap = new Map(); for (const [aKey, val] of map) { if (aKey !== key
javascript
{ "resource": "" }
q51942
createConnect
train
function createConnect() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, _ref$connectHOC = _ref.connectHOC, connectHOC = _ref$connectHOC === undefined ? __WEBPACK_IMPORTED_MODULE_0__components_connectAdvanced__["a" /* default */] : _ref$connectHOC, _ref$mapStateT...
javascript
{ "resource": "" }
q51943
finalPropsSelectorFactory
train
function finalPropsSelectorFactory(dispatch, _ref2) { var initMapStateToProps = _ref2.initMapStateToProps, initMapDispatchToProps = _ref2.initMapDispatchToProps, initMergeProps = _ref2.initMergeProps, options = _objectWithoutProperties(_ref2, ['initMapStateToProps', 'initMapDispatchToProps', 'initMe...
javascript
{ "resource": "" }
q51944
getDependsOnOwnProps
train
function getDependsOnOwnProps(mapToProps) { return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !==
javascript
{ "resource": "" }
q51945
resolveComponents
train
function resolveComponents(router) { const path = getLocation(router.options.base, router.options.mode) return flatMapComponents(router.match(path), async (Component, _, match, key, index) => { // If component is not resolved yet, resolve it if (typeof Component === 'function' && !Component.options) { ...
javascript
{ "resource": "" }
q51946
train
function(str1, str2, options) { var useCollator = (options && collator && options.useCollator); var str1Len = str1.length, str2Len = str2.length; // base cases if (str1Len === 0) return str2Len; if (str2Len === 0) return str1Len; // two rows var curCol, n...
javascript
{ "resource": "" }
q51947
formatUrl
train
function formatUrl (url, query) { let protocol let index = url.indexOf('://') if (index !== -1) { protocol = url.substring(0, index) url = url.substring(index + 3) } else if (url.indexOf('//') === 0) { url = url.substring(2) } let parts = url.split('/') let result = (protocol ? protocol + ':/...
javascript
{ "resource": "" }
q51948
formatQuery
train
function formatQuery (query) { return Object.keys(query).sort().map(key => { var val = query[key] if (val == null) { return '' } if (Array.isArray(val))
javascript
{ "resource": "" }
q51949
cleanup
train
function cleanup() { if (url) { URL.revokeObjectURL(url); } if (ww) { ww.terminate();
javascript
{ "resource": "" }
q51950
append
train
function append(object, path, value) { set(object, path, get(object,
javascript
{ "resource": "" }
q51951
getType
train
function getType(node) { const tagLoaders = { script: 'javascript', style: 'text/css' };
javascript
{ "resource": "" }
q51952
serialize
train
function serialize(obj) { var params = [], encodedBrackets = encodeURIComponent('[]'); _.forOwn(obj, function(value, key) { if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean')
javascript
{ "resource": "" }
q51953
getInfo
train
function getInfo(hostingId) { var requestConfigs = _.assign({}, configs.DEFAULT_REQUEST_CONFIGS, { url: configs.HOSTING_INFO_URL + '/' + hostingId + '?' + serialize(configs.DEFAULT_REQUEST_PARAMS) }); return new Promise(function(resolve, reject) { // Make request
javascript
{ "resource": "" }
q51954
executeEach
train
function executeEach(arr, fun) { var i = -1; while (++i < arr.length) {
javascript
{ "resource": "" }
q51955
train
function (ns, obj, overwrite) { var isFunc = typeof obj === 'function'; var parts = ns ? ns.split('.') : []; var parent = this; obj = obj || {}; // ignore leading global if (parts[0] === 'F2') { parts = parts.slice(1); } // create namespaces for
javascript
{ "resource": "" }
q51956
train
function(testObject) { var bIsNode = ( typeof Node === 'object' ? testObject instanceof Node : testObject && typeof testObject === 'object' && typeof testObject.nodeType === 'number' && typeof testObject.nodeName === 'string'
javascript
{ "resource": "" }
q51957
train
function(token, eventKey) // additional arguments will likely be passed { // will throw an exception and stop execution if the token is invalid if(token != _f2t) { throw ('Token passed is invalid. Only F2 is allowed to call F2.AppHandlers.__trigger().'); } if(_handlerCollection && _handlerCo...
javascript
{ "resource": "" }
q51958
train
function(appConfig, message, origin) { var obj, func; function parseFunction(parent, functionName) { var path = String(functionName).split('.'); for (var i = 0; i < path.length; i++) { if (parent[path[i]] === undefined) { parent = undefined; break; } parent = parent[path[i]]; } r...
javascript
{ "resource": "" }
q51959
train
function(messageType, params) { // check valid messageType var message = messageType + F2.stringify(params);
javascript
{ "resource": "" }
q51960
train
function(instanceId, messageType, functionName, params) { // loop through params and find functions and convert them to callbacks var callbacks = []; jQuery.each(params, function(i, e) { if (typeof e === 'function') { var cid = _registerCallback(e); params[i] = cid; callbacks.push(cid); ...
javascript
{ "resource": "" }
q51961
train
function(instanceId) { return ( // we have an app _apps[instanceId] !== undefined && // the app is
javascript
{ "resource": "" }
q51962
train
function(appConfig, appManifest) { if (!!appConfig && !!appManifest) { _apps[appConfig.instanceId] = { config:appConfig, socket:_createContainerToAppSocket(appConfig, appManifest) }; } else {
javascript
{ "resource": "" }
q51963
train
function(message, callback) { if (!F2.isInit()) { F2.log('F2.init() must be called before F2.UI.Modals.alert()'); return; } if (F2.Rpc.isRemote(_appConfig.instanceId)) { F2.Rpc.call( _appConfig.instanceId, F2.Constants.Sockets.UI_RPC, 'Modals.alert', ...
javascript
{ "resource": "" }
q51964
train
function(message, okCallback, cancelCallback) { if (!F2.isInit()) { F2.log('F2.init() must be called before F2.UI.Modals.confirm()'); return; } if (F2.Rpc.isRemote(_appConfig.instanceId)) { F2.Rpc.call( _appConfig.instanceId, F2.Constants.Sockets.UI_RPC, ...
javascript
{ "resource": "" }
q51965
train
function(title) { if (F2.Rpc.isRemote(_appConfig.instanceId)) { F2.Rpc.call( _appConfig.instanceId, F2.Constants.Sockets.UI_RPC, 'setTitle', [ title ] );
javascript
{ "resource": "" }
q51966
train
function(input) { if (typeof input === 'function') { this.on('change', input); } else if (typeof input === 'string') { if (_appConfig.isSecure && !F2.Rpc.isRemote(_appConfig.instanceId)) { F2.Rpc.call( _appConfig.instanceId, F2.Constants.Sockets.UI_RPC, 'Vi...
javascript
{ "resource": "" }
q51967
train
function(appConfig, html) { var handler = _config.afterAppRender || function(appConfig, html) { return jQuery(html).appendTo('body'); }; var appContainer = handler(appConfig, html); if ( !! _config.afterAppRender && !appContainer) { F2.log('F2.ContainerConfig.afterAppRender() must return the DOM Eleme...
javascript
{ "resource": "" }
q51968
train
function(appConfig, html) { // apply APP_CONTAINER class and AppID html = _outerHtml(jQuery(html).addClass(F2.Constants.Css.APP_CONTAINER +
javascript
{ "resource": "" }
q51969
train
function(appConfig, scriptInfo) { var handler = _config.appScriptLoadFailed || jQuery.noop;
javascript
{ "resource": "" }
q51970
train
function(appConfig) { // make a copy of the app config to ensure that the original is not modified appConfig = jQuery.extend(true, {}, appConfig); // create the instanceId for the app appConfig.instanceId = appConfig.instanceId || F2.guid(); // default the views if not provided appConfig.views = appConfi...
javascript
{ "resource": "" }
q51971
train
function(node) { var appConfig; if (node) { var appId = node.getAttribute('data-f2-appid'); var manifestUrl = node.getAttribute('data-f2-manifesturl'); if (appId && manifestUrl) { appConfig = { appId: appId, enableBatchRequests: node.hasAttribute('data-f2-enablebatchrequests'), isSecur...
javascript
{ "resource": "" }
q51972
train
function(node) { var hasNodes = false; if (node.hasChildNodes()) { for (var i = 0, len = node.childNodes.length; i < len; i++) {
javascript
{ "resource": "" }
q51973
train
function(containerConfig) { if (!containerConfig.scriptErrorTimeout) { containerConfig.scriptErrorTimeout = F2.ContainerConfig.scriptErrorTimeout; } if (containerConfig.debugMode
javascript
{ "resource": "" }
q51974
train
function(appConfig) { jQuery(appConfig.root).on('click', '.' + F2.Constants.Css.APP_VIEW_TRIGGER + '[' + F2.Constants.Views.DATA_ATTRIBUTE + ']', function(event) { event.preventDefault(); var view = jQuery(this).attr(F2.Constants.Views.DATA_ATTRIBUTE).toLowerCase(); // handle the special REMOVE view
javascript
{ "resource": "" }
q51975
train
function() { var resizeTimeout; var resizeHandler = function() { F2.Events.emit(F2.Constants.Events.CONTAINER_WIDTH_CHANGE); }; jQuery(window).on('resize', function() { clearTimeout(resizeTimeout); resizeTimeout = setTimeout(resizeHandler, 100); }); //listen for container-broadcasted locale chan...
javascript
{ "resource": "" }
q51976
train
function(node) { return ( F2.isNativeDOMNode(node) && !_hasNonTextChildNodes(node) &&
javascript
{ "resource": "" }
q51977
train
function(appConfig, appContent) { // instantiate F2.UI appConfig.ui = new F2.UI(appConfig); // instantiate F2.App if (F2.Apps[appConfig.appId] !== undefined) { if (typeof F2.Apps[appConfig.appId] === 'function') { // IE setTimeout(function() { _apps[appConfig.instanceId].app = new F2.Apps[appC...
javascript
{ "resource": "" }
q51978
train
function(styles, cb) { // Reduce the list to styles that haven't been loaded var existingStyles = _findExistingStyles(); styles = jQuery.grep(styles, function(url) { return url && jQuery.inArray(url, existingStyles) === -1; }); // Attempt to use the user provided method if (_config.loadStyles) { ...
javascript
{ "resource": "" }
q51979
train
function(scripts, cb) { // Reduce the list to scripts that haven't been loaded var existingScripts = _findExistingScripts(); var loadingScripts = Object.keys(_loadingScripts); scripts = jQuery.grep(scripts, function(url) { return url && (jQuery.inArray(url, existingScripts) === -1 || jQuery.inArray(url,...
javascript
{ "resource": "" }
q51980
train
function(apps) { jQuery.each(apps, function(i, a) { if (_isPlaceholderElement(appConfigs[i].root)) { jQuery(appConfigs[i].root) .addClass(F2.Constants.Css.APP) .append(jQuery(a.html).addClass(F2.Constants.Css.APP_CONTAINER + ' ' + appConfigs[i].appId)); } else if (!_bUsesAppHandlers) { ...
javascript
{ "resource": "" }
q51981
train
function(appConfig) { // check for valid app configurations if (!appConfig.appId) { F2.log('"appId" missing from app object'); return false; } else if (!appConfig.root && !appConfig.manifestUrl) {
javascript
{ "resource": "" }
q51982
train
function() { if (_config) { if (_config.xhr) { if (!(typeof _config.xhr === 'function' || typeof _config.xhr === 'object')) { throw ('ContainerConfig.xhr should be a function or an object'); } if (_config.xhr.dataType && typeof _config.xhr.dataType !== 'function') { throw ('ContainerConfig.x...
javascript
{ "resource": "" }
q51983
train
function() { if (!_isInit()) { F2.log('F2.init() must be called before F2.getContainerState()');
javascript
{ "resource": "" }
q51984
train
function(parentNode) { var elements = [], appConfigs = [], add = function(e) { if (!e) { return; } elements.push(e); }, addAll = function(els) { if (!els) { return; } for (var i = 0, len = els.length; i < len; i++) { add(els[i]); } }; if (!!parentNode && !F2.is...
javascript
{ "resource": "" }
q51985
train
function() { jQuery.each(req.apps, function(idx, item) { item.name = item.name || item.appId; F2.log('Removed failed ' + item.name + ' app', item);
javascript
{ "resource": "" }
q51986
whenReady
train
function whenReady(fn, scope){ if (domIsReady) { fn.call(scope); return; }
javascript
{ "resource": "" }
q51987
getParentObject
train
function getParentObject(){ var obj = parent; if (namespace !== "") { for (var
javascript
{ "resource": "" }
q51988
noConflict
train
function noConflict(ns){ window.easyXDM = _easyXDM; namespace = ns; if (namespace) { IFRAME_PREFIX = "easyXDM_"
javascript
{ "resource": "" }
q51989
getLocation
train
function getLocation(url){ var m = url.toLowerCase().match(reURI); var proto = m[2], domain = m[3], port = m[4] || ""; if ((proto == "http:" && port == ":80") || (proto
javascript
{ "resource": "" }
q51990
resolveUrl
train
function resolveUrl(url){ // replace all // except the one in proto with / url = url.replace(reDoubleSlash, "$1/"); // If the url is a valid url we do nothing if (!url.match(/^(http||https):\/\//)) { // If this is a relative path var path = (url.substring(0, 1) ===
javascript
{ "resource": "" }
q51991
train
function(){ var cached = {}; var obj = { a: [1, 2, 3] }, json = "{\"a\":[1,2,3]}"; if (typeof JSON != "undefined" && typeof JSON.stringify === "function" && JSON.stringify(obj).replace((/\s/g), "") === json) { // this is a working JSON instance return JSON; } if (Obj...
javascript
{ "resource": "" }
q51992
createFrame
train
function createFrame(config){ if (undef(HAS_NAME_PROPERTY_BUG)) { testForNamePropertyBug(); } var frame; // This is to work around the problems in IE6/7 with setting the name property. // Internally this is set as 'submitName' instead when using 'iframe.name = ...' // This is not requir...
javascript
{ "resource": "" }
q51993
removeFromStack
train
function removeFromStack(element){ element.up.down = element.down;
javascript
{ "resource": "" }
q51994
train
function(name, del){ if (!_map.hasOwnProperty(name)) { return; } var fn = _map[name];
javascript
{ "resource": "" }
q51995
addSwf
train
function addSwf(domain){ // the differentiating query argument is needed in Flash9 to avoid a caching issue where LocalConnection would throw an error. var url = config.swf + "?host=" + config.isHost; var id = "easyXDM_swf_" + Math.floor(Math.random() * 10000); // prepare the in...
javascript
{ "resource": "" }
q51996
_getOrigin
train
function _getOrigin(event){ if (event.origin) { // This is the HTML5 property return getLocation(event.origin); } if (event.uri) { // From earlier implementations
javascript
{ "resource": "" }
q51997
train
function(event){ if (event.data == config.channel + "-ready") { // replace the eventlistener callerWindow = ("postMessage" in frame.contentWindow) ? frame.contentWindow : frame.contentWindow.document; un(window, "message", wai...
javascript
{ "resource": "" }
q51998
train
function(){ // Remove the handler var w = callerWindow || this; un(w, "load", onLoad); easyXDM.Fn.set(config.channel + "_load", _onLoad);
javascript
{ "resource": "" }
q51999
_pollHash
train
function _pollHash(){ if (!_listenerWindow) { return; } var href = _listenerWindow.location.href, hash = "",
javascript
{ "resource": "" }