repo
stringclasses
195 values
path
stringlengths
4
99
func_name
stringlengths
0
41
original_string
stringlengths
72
56.1k
language
stringclasses
1 value
code
stringlengths
72
56.1k
code_tokens
listlengths
25
8.12k
docstring
stringlengths
2
12.5k
docstring_tokens
listlengths
1
449
sha
stringclasses
197 values
url
stringlengths
88
186
partition
stringclasses
1 value
summary
stringlengths
8
338
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
adobe/brackets
src/preferences/PreferencesBase.js
function (id, type, initial, options) { return this.base.definePreference(this.prefix + id, type, initial, options); }
javascript
function (id, type, initial, options) { return this.base.definePreference(this.prefix + id, type, initial, options); }
[ "function", "(", "id", ",", "type", ",", "initial", ",", "options", ")", "{", "return", "this", ".", "base", ".", "definePreference", "(", "this", ".", "prefix", "+", "id", ",", "type", ",", "initial", ",", "options", ")", ";", "}" ]
Defines a new (prefixed) preference. @param {string} id unprefixed identifier of the preference. Generally a dotted name. @param {string} type Data type for the preference (generally, string, boolean, number) @param {Object} initial Default value for the preference @param {?{name: string=, description: string=, valida...
[ "Defines", "a", "new", "(", "prefixed", ")", "preference", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/preferences/PreferencesBase.js#L1080-L1082
train
define preference for the user
[ 30522, 3853, 1006, 8909, 1010, 2828, 1010, 3988, 1010, 7047, 1007, 1063, 2709, 2023, 1012, 2918, 1012, 9375, 28139, 25523, 1006, 2023, 1012, 17576, 1009, 8909, 1010, 2828, 1010, 3988, 1010, 7047, 1007, 1025, 1065, 102, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
facebook/relay
packages/relay-compiler/language/javascript/RelayFlowBabelFactories.js
readOnlyObjectTypeProperty
function readOnlyObjectTypeProperty(key: string, value: BabelAST) { const prop = t.objectTypeProperty(t.identifier(key), value); prop.variance = t.variance('plus'); return prop; }
javascript
function readOnlyObjectTypeProperty(key: string, value: BabelAST) { const prop = t.objectTypeProperty(t.identifier(key), value); prop.variance = t.variance('plus'); return prop; }
[ "function", "readOnlyObjectTypeProperty", "(", "key", ":", "string", ",", "value", ":", "BabelAST", ")", "{", "const", "prop", "=", "t", ".", "objectTypeProperty", "(", "t", ".", "identifier", "(", "key", ")", ",", "value", ")", ";", "prop", ".", "varian...
+KEY: VALUE
[ "+", "KEY", ":", "VALUE" ]
7fb9be5182b9650637d7b92ead9a42713ac30aa4
https://github.com/facebook/relay/blob/7fb9be5182b9650637d7b92ead9a42713ac30aa4/packages/relay-compiler/language/javascript/RelayFlowBabelFactories.js#L94-L98
train
Returns a property that is read only if the value is not a number
[ 30522, 3853, 3191, 2239, 2135, 16429, 20614, 13874, 21572, 4842, 3723, 1006, 3145, 1024, 5164, 1010, 3643, 1024, 11561, 8523, 2102, 1007, 1063, 9530, 3367, 17678, 1027, 1056, 1012, 4874, 13874, 21572, 4842, 3723, 1006, 1056, 1012, 8909, 476...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
moleculerjs/moleculer
src/middlewares/metrics.js
shouldMetric
function shouldMetric(ctx) { if (ctx.broker.options.metrics) { sampleCounter++; if (sampleCounter * ctx.broker.options.metricsRate >= 1.0) { sampleCounter = 0; return true; } } return false; }
javascript
function shouldMetric(ctx) { if (ctx.broker.options.metrics) { sampleCounter++; if (sampleCounter * ctx.broker.options.metricsRate >= 1.0) { sampleCounter = 0; return true; } } return false; }
[ "function", "shouldMetric", "(", "ctx", ")", "{", "if", "(", "ctx", ".", "broker", ".", "options", ".", "metrics", ")", "{", "sampleCounter", "++", ";", "if", "(", "sampleCounter", "*", "ctx", ".", "broker", ".", "options", ".", "metricsRate", ">=", "1...
Check should metric the current context @param {Context} ctx @returns {Boolean} @memberof ServiceBroker
[ "Check", "should", "metric", "the", "current", "context" ]
f95aadc2d61b0d0e3c643a43c3ed28bca6425cde
https://github.com/moleculerjs/moleculer/blob/f95aadc2d61b0d0e3c643a43c3ed28bca6425cde/src/middlewares/metrics.js#L21-L31
train
Returns true if the metric should be applied
[ 30522, 3853, 2323, 12589, 1006, 14931, 2595, 1007, 1063, 2065, 1006, 14931, 2595, 1012, 20138, 1012, 7047, 1012, 12046, 2015, 1007, 1063, 7099, 3597, 16671, 2121, 1009, 1009, 1025, 2065, 1006, 7099, 3597, 16671, 2121, 1008, 14931, 2595, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ManagedObject.js
updateRecursive
function updateRecursive(oControl, oContexts) { update(oControl, oContexts, null, function(oContext, oClone) { updateRecursive(oClone, oBinding.getNodeContexts(oContext)); }); }
javascript
function updateRecursive(oControl, oContexts) { update(oControl, oContexts, null, function(oContext, oClone) { updateRecursive(oClone, oBinding.getNodeContexts(oContext)); }); }
[ "function", "updateRecursive", "(", "oControl", ",", "oContexts", ")", "{", "update", "(", "oControl", ",", "oContexts", ",", "null", ",", "function", "(", "oContext", ",", "oClone", ")", "{", "updateRecursive", "(", "oClone", ",", "oBinding", ".", "getNodeC...
Update the tree recursively
[ "Update", "the", "tree", "recursively" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ManagedObject.js#L4056-L4060
train
Updates the context tree recursively.
[ 30522, 3853, 10651, 2890, 10841, 2869, 3512, 1006, 1051, 8663, 13181, 2140, 1010, 1051, 8663, 18209, 2015, 1007, 1063, 10651, 1006, 1051, 8663, 13181, 2140, 1010, 1051, 8663, 18209, 2015, 1010, 19701, 1010, 3853, 1006, 1051, 8663, 18209, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
websockets/ws
lib/websocket.js
receiverOnConclude
function receiverOnConclude(code, reason) { const websocket = this[kWebSocket]; websocket._socket.removeListener('data', socketOnData); websocket._socket.resume(); websocket._closeFrameReceived = true; websocket._closeMessage = reason; websocket._closeCode = code; if (code === 1005) websocket.close(); ...
javascript
function receiverOnConclude(code, reason) { const websocket = this[kWebSocket]; websocket._socket.removeListener('data', socketOnData); websocket._socket.resume(); websocket._closeFrameReceived = true; websocket._closeMessage = reason; websocket._closeCode = code; if (code === 1005) websocket.close(); ...
[ "function", "receiverOnConclude", "(", "code", ",", "reason", ")", "{", "const", "websocket", "=", "this", "[", "kWebSocket", "]", ";", "websocket", ".", "_socket", ".", "removeListener", "(", "'data'", ",", "socketOnData", ")", ";", "websocket", ".", "_sock...
The listener of the `Receiver` `'conclude'` event. @param {Number} code The status code @param {String} reason The reason for closing @private
[ "The", "listener", "of", "the", "Receiver", "conclude", "event", "." ]
995c527c87d0d4833d8093c18dcfa2e4a41d9582
https://github.com/websockets/ws/blob/995c527c87d0d4833d8093c18dcfa2e4a41d9582/lib/websocket.js#L740-L752
train
receiverOnConclude - Close the connection
[ 30522, 3853, 8393, 2239, 8663, 20464, 12672, 1006, 3642, 1010, 3114, 1007, 1063, 9530, 3367, 4773, 6499, 19869, 2102, 1027, 2023, 1031, 6448, 15878, 6499, 19869, 2102, 1033, 1025, 4773, 6499, 19869, 2102, 1012, 1035, 22278, 1012, 6366, 9863...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
lib/jsdoc/ui5/plugin.js
function (e) { currentProgram = undefined; currentModule = { name: null, resource: getResourceName(e.filename), module: getModuleName(getResourceName(e.filename)), localNames: Object.create(null) }; }
javascript
function (e) { currentProgram = undefined; currentModule = { name: null, resource: getResourceName(e.filename), module: getModuleName(getResourceName(e.filename)), localNames: Object.create(null) }; }
[ "function", "(", "e", ")", "{", "currentProgram", "=", "undefined", ";", "currentModule", "=", "{", "name", ":", "null", ",", "resource", ":", "getResourceName", "(", "e", ".", "filename", ")", ",", "module", ":", "getModuleName", "(", "getResourceName", "...
Log each file before it is parsed @param {object} e Event info object
[ "Log", "each", "file", "before", "it", "is", "parsed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/lib/jsdoc/ui5/plugin.js#L2106-L2114
train
This function is called when a module is loaded
[ 30522, 3853, 1006, 1041, 1007, 1063, 2783, 21572, 13113, 1027, 6151, 28344, 1025, 2783, 5302, 8566, 2571, 1027, 1063, 2171, 1024, 19701, 1010, 7692, 1024, 2131, 6072, 8162, 27524, 14074, 1006, 1041, 1012, 5371, 18442, 1007, 1010, 11336, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/extensions/default/InlineTimingFunctionEditor/TimingFunctionUtils.js
_getValidStepsParams
function _getValidStepsParams(match) { var param, def = [ "5", "end" ], params = def, oldIndex = match.index, // we need to store the old match.index to re-set the index afterwards originalString = match[0]; if (match) { match = match[1].split...
javascript
function _getValidStepsParams(match) { var param, def = [ "5", "end" ], params = def, oldIndex = match.index, // we need to store the old match.index to re-set the index afterwards originalString = match[0]; if (match) { match = match[1].split...
[ "function", "_getValidStepsParams", "(", "match", ")", "{", "var", "param", ",", "def", "=", "[", "\"5\"", ",", "\"end\"", "]", ",", "params", "=", "def", ",", "oldIndex", "=", "match", ".", "index", ",", "// we need to store the old match.index to re-set the in...
Get valid params for an invalid steps function. @param {RegExp.match} match (Invalid) matches from stepsMatch() @return {?RegExp.match} Valid match or null if the output is not valid
[ "Get", "valid", "params", "for", "an", "invalid", "steps", "function", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/extensions/default/InlineTimingFunctionEditor/TimingFunctionUtils.js#L170-L223
train
Get valid steps parameters
[ 30522, 3853, 1035, 2131, 10175, 9821, 2618, 4523, 28689, 5244, 1006, 2674, 1007, 1063, 13075, 11498, 2213, 1010, 13366, 1027, 1031, 1000, 1019, 1000, 1010, 1000, 2203, 1000, 1033, 1010, 11498, 5244, 1027, 13366, 1010, 2214, 22254, 10288, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aframevr/aframe
src/components/look-controls.js
function () { var el = this.el; var savedPose = this.savedPose; if (!this.hasSavedPose) { return; } // Reset camera orientation. el.object3D.position.copy(savedPose.position); el.object3D.rotation.copy(savedPose.rotation); this.hasSavedPose = false; }
javascript
function () { var el = this.el; var savedPose = this.savedPose; if (!this.hasSavedPose) { return; } // Reset camera orientation. el.object3D.position.copy(savedPose.position); el.object3D.rotation.copy(savedPose.rotation); this.hasSavedPose = false; }
[ "function", "(", ")", "{", "var", "el", "=", "this", ".", "el", ";", "var", "savedPose", "=", "this", ".", "savedPose", ";", "if", "(", "!", "this", ".", "hasSavedPose", ")", "{", "return", ";", "}", "// Reset camera orientation.", "el", ".", "object3D...
Reset camera pose to before entering VR.
[ "Reset", "camera", "pose", "to", "before", "entering", "VR", "." ]
24acc78a7299a4cdfe3ef617f4d40ddf6275c992
https://github.com/aframevr/aframe/blob/24acc78a7299a4cdfe3ef617f4d40ddf6275c992/src/components/look-controls.js#L420-L430
train
Reset camera orientation
[ 30522, 3853, 1006, 1007, 1063, 13075, 3449, 1027, 2023, 1012, 3449, 1025, 13075, 5552, 20688, 1027, 2023, 1012, 5552, 20688, 1025, 2065, 1006, 999, 2023, 1012, 2038, 3736, 7178, 20688, 1007, 1063, 2709, 1025, 1065, 1013, 1013, 25141, 4950, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
jgraph/mxgraph
javascript/mxClient.js
function(lan) { if (mxClient.languages != null) { return mxUtils.indexOf(mxClient.languages, lan) >= 0; } return true; }
javascript
function(lan) { if (mxClient.languages != null) { return mxUtils.indexOf(mxClient.languages, lan) >= 0; } return true; }
[ "function", "(", "lan", ")", "{", "if", "(", "mxClient", ".", "languages", "!=", "null", ")", "{", "return", "mxUtils", ".", "indexOf", "(", "mxClient", ".", "languages", ",", "lan", ")", ">=", "0", ";", "}", "return", "true", ";", "}" ]
Function: isLanguageSupported Hook for subclassers to disable support for a given language. This implementation returns true if lan is in <mxClient.languages>. Parameters: lan - The current language.
[ "Function", ":", "isLanguageSupported" ]
33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44
https://github.com/jgraph/mxgraph/blob/33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44/javascript/mxClient.js#L1347-L1355
train
Returns true if the language is a valid language
[ 30522, 3853, 1006, 17595, 1007, 1063, 2065, 1006, 25630, 20464, 11638, 1012, 4155, 999, 1027, 19701, 1007, 1063, 2709, 25630, 21823, 4877, 1012, 5950, 11253, 1006, 25630, 20464, 11638, 1012, 4155, 1010, 17595, 1007, 1028, 1027, 1014, 1025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws-amplify/amplify-js
packages/amazon-cognito-identity-js/src/BigInteger.js
bnCompareTo
function bnCompareTo(a) { var r = this.s - a.s; if (r != 0) return r; var i = this.t; r = i - a.t; if (r != 0) return this.s < 0 ? -r : r; while (--i >= 0) if ((r = this[i] - a[i]) != 0) return r; return 0; }
javascript
function bnCompareTo(a) { var r = this.s - a.s; if (r != 0) return r; var i = this.t; r = i - a.t; if (r != 0) return this.s < 0 ? -r : r; while (--i >= 0) if ((r = this[i] - a[i]) != 0) return r; return 0; }
[ "function", "bnCompareTo", "(", "a", ")", "{", "var", "r", "=", "this", ".", "s", "-", "a", ".", "s", ";", "if", "(", "r", "!=", "0", ")", "return", "r", ";", "var", "i", "=", "this", ".", "t", ";", "r", "=", "i", "-", "a", ".", "t", ";...
(public) return + if this > a, - if this < a, 0 if equal
[ "(", "public", ")", "return", "+", "if", "this", ">", "a", "-", "if", "this", "<", "a", "0", "if", "equal" ]
db55ff3dff31c64a246180f39eb0a04a89fd16e1
https://github.com/aws-amplify/amplify-js/blob/db55ff3dff31c64a246180f39eb0a04a89fd16e1/packages/amazon-cognito-identity-js/src/BigInteger.js#L272-L281
train
Compare two numbers
[ 30522, 3853, 24869, 9006, 19362, 18903, 1006, 1037, 1007, 1063, 13075, 1054, 1027, 2023, 1012, 1055, 1011, 1037, 1012, 1055, 1025, 2065, 1006, 1054, 999, 1027, 1014, 1007, 2709, 1054, 1025, 13075, 1045, 1027, 2023, 1012, 1056, 1025, 1054, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
caolan/async
lib/waterfall.js
waterfall
function waterfall (tasks, callback) { callback = once(callback); if (!Array.isArray(tasks)) return callback(new Error('First argument to waterfall must be an array of functions')); if (!tasks.length) return callback(); var taskIndex = 0; function nextTask(args) { var task = wrapAsync(tasks...
javascript
function waterfall (tasks, callback) { callback = once(callback); if (!Array.isArray(tasks)) return callback(new Error('First argument to waterfall must be an array of functions')); if (!tasks.length) return callback(); var taskIndex = 0; function nextTask(args) { var task = wrapAsync(tasks...
[ "function", "waterfall", "(", "tasks", ",", "callback", ")", "{", "callback", "=", "once", "(", "callback", ")", ";", "if", "(", "!", "Array", ".", "isArray", "(", "tasks", ")", ")", "return", "callback", "(", "new", "Error", "(", "'First argument to wat...
Runs the `tasks` array of functions in series, each passing their results to the next in the array. However, if any of the `tasks` pass an error to their own callback, the next function is not executed, and the main `callback` is immediately called with the error. @name waterfall @static @memberOf module:ControlFlow @...
[ "Runs", "the", "tasks", "array", "of", "functions", "in", "series", "each", "passing", "their", "results", "to", "the", "next", "in", "the", "array", ".", "However", "if", "any", "of", "the", "tasks", "pass", "an", "error", "to", "their", "own", "callbac...
4330d536c106592139fa82062494c9dba0da1fdb
https://github.com/caolan/async/blob/4330d536c106592139fa82062494c9dba0da1fdb/lib/waterfall.js#L64-L84
train
A function that runs a series of functions in parallel.
[ 30522, 3853, 14297, 1006, 8518, 1010, 2655, 5963, 1007, 1063, 2655, 5963, 1027, 2320, 1006, 2655, 5963, 1007, 1025, 2065, 1006, 999, 9140, 1012, 18061, 11335, 2100, 1006, 8518, 1007, 1007, 2709, 2655, 5963, 1006, 2047, 7561, 1006, 1005, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
openlayers/openlayers
examples/color-manipulation.js
rgb2hcl
function rgb2hcl(pixel) { const red = rgb2xyz(pixel[0]); const green = rgb2xyz(pixel[1]); const blue = rgb2xyz(pixel[2]); const x = xyz2lab( (0.4124564 * red + 0.3575761 * green + 0.1804375 * blue) / Xn); const y = xyz2lab( (0.2126729 * red + 0.7151522 * green + 0.0721750 * blue) / Yn); const z = x...
javascript
function rgb2hcl(pixel) { const red = rgb2xyz(pixel[0]); const green = rgb2xyz(pixel[1]); const blue = rgb2xyz(pixel[2]); const x = xyz2lab( (0.4124564 * red + 0.3575761 * green + 0.1804375 * blue) / Xn); const y = xyz2lab( (0.2126729 * red + 0.7151522 * green + 0.0721750 * blue) / Yn); const z = x...
[ "function", "rgb2hcl", "(", "pixel", ")", "{", "const", "red", "=", "rgb2xyz", "(", "pixel", "[", "0", "]", ")", ";", "const", "green", "=", "rgb2xyz", "(", "pixel", "[", "1", "]", ")", ";", "const", "blue", "=", "rgb2xyz", "(", "pixel", "[", "2"...
Convert an RGB pixel into an HCL pixel. @param {Array<number>} pixel A pixel in RGB space. @return {Array<number>} A pixel in HCL space.
[ "Convert", "an", "RGB", "pixel", "into", "an", "HCL", "pixel", "." ]
f366eaea522388fb575b11010e69d309164baca7
https://github.com/openlayers/openlayers/blob/f366eaea522388fb575b11010e69d309164baca7/examples/color-manipulation.js#L26-L53
train
Convert an RGB pixel to HCL pixel
[ 30522, 3853, 1054, 30524, 3367, 2665, 1027, 1054, 18259, 2475, 18037, 2480, 1006, 22138, 1031, 1015, 1033, 1007, 1025, 9530, 3367, 2630, 1027, 1054, 18259, 2475, 18037, 2480, 1006, 22138, 1031, 1016, 1033, 1007, 1025, 9530, 3367, 1060, 1027...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
laurent22/joplin
Clipper/joplin-webclipper/content_scripts/Readability.js
function() { var metadata = {}; var values = {}; var metaElements = this._doc.getElementsByTagName("meta"); // Match "description", or Twitter's "twitter:description" (Cards) // in name attribute. var namePattern = /^\s*((twitter)\s*:\s*)?(description|title)\s*$/gi; // Match Facebook's Ope...
javascript
function() { var metadata = {}; var values = {}; var metaElements = this._doc.getElementsByTagName("meta"); // Match "description", or Twitter's "twitter:description" (Cards) // in name attribute. var namePattern = /^\s*((twitter)\s*:\s*)?(description|title)\s*$/gi; // Match Facebook's Ope...
[ "function", "(", ")", "{", "var", "metadata", "=", "{", "}", ";", "var", "values", "=", "{", "}", ";", "var", "metaElements", "=", "this", ".", "_doc", ".", "getElementsByTagName", "(", "\"meta\"", ")", ";", "// Match \"description\", or Twitter's \"twitter:de...
Attempts to get excerpt and byline metadata for the article. @return Object with optional "excerpt" and "byline" properties
[ "Attempts", "to", "get", "excerpt", "and", "byline", "metadata", "for", "the", "article", "." ]
beb428b246cecba4630a3ca57b472f43c0933a43
https://github.com/laurent22/joplin/blob/beb428b246cecba4630a3ca57b472f43c0933a43/Clipper/joplin-webclipper/content_scripts/Readability.js#L1199-L1261
train
Get the metadata object from the meta elements
[ 30522, 3853, 1006, 1007, 1063, 13075, 27425, 1027, 1063, 1065, 1025, 13075, 5300, 1027, 1063, 1065, 1025, 13075, 18804, 12260, 8163, 1027, 2023, 1012, 30524, 2030, 10474, 1005, 1055, 1000, 10474, 1024, 6412, 1000, 1006, 5329, 1007, 1013, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
typeorm/typeorm
extra/typeorm-class-transformer-shim.js
OneToOne
function OneToOne(typeFunction, inverseSideOrOptions, options) { return function (object, propertyName) { class_transformer_1.Type(typeFunction)(object, propertyName); }; }
javascript
function OneToOne(typeFunction, inverseSideOrOptions, options) { return function (object, propertyName) { class_transformer_1.Type(typeFunction)(object, propertyName); }; }
[ "function", "OneToOne", "(", "typeFunction", ",", "inverseSideOrOptions", ",", "options", ")", "{", "return", "function", "(", "object", ",", "propertyName", ")", "{", "class_transformer_1", ".", "Type", "(", "typeFunction", ")", "(", "object", ",", "propertyNam...
/* export
[ "/", "*", "export" ]
360468b7913db8d988346fba1ee2d3f323498eef
https://github.com/typeorm/typeorm/blob/360468b7913db8d988346fba1ee2d3f323498eef/extra/typeorm-class-transformer-shim.js#L161-L165
train
OneToOne is a helper function for creating a new one - to - one relation.
[ 30522, 3853, 2028, 3406, 5643, 1006, 2828, 11263, 27989, 1010, 19262, 7363, 14604, 16790, 2015, 1010, 7047, 1007, 1063, 2709, 3853, 1006, 4874, 1010, 3200, 18442, 1007, 1063, 2465, 1035, 10938, 2121, 1035, 1015, 1012, 2828, 1006, 2828, 1126...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
chartjs/Chart.js
src/core/core.datasetController.js
function() { var me = this; me._config = helpers.merge({}, [ me.chart.options.datasets[me._type], me.getDataset(), ], { merger: function(key, target, source) { if (key !== '_meta' && key !== 'data') { helpers._merger(key, target, source); } } }); }
javascript
function() { var me = this; me._config = helpers.merge({}, [ me.chart.options.datasets[me._type], me.getDataset(), ], { merger: function(key, target, source) { if (key !== '_meta' && key !== 'data') { helpers._merger(key, target, source); } } }); }
[ "function", "(", ")", "{", "var", "me", "=", "this", ";", "me", ".", "_config", "=", "helpers", ".", "merge", "(", "{", "}", ",", "[", "me", ".", "chart", ".", "options", ".", "datasets", "[", "me", ".", "_type", "]", ",", "me", ".", "getDatase...
Returns the merged user-supplied and default dataset-level options @private
[ "Returns", "the", "merged", "user", "-", "supplied", "and", "default", "dataset", "-", "level", "options" ]
f093c36574d290330ed623e60fbd070421c730d5
https://github.com/chartjs/Chart.js/blob/f093c36574d290330ed623e60fbd070421c730d5/src/core/core.datasetController.js#L244-L256
train
Merge the config with the dataset
[ 30522, 3853, 1006, 1007, 1063, 13075, 2033, 1027, 2023, 1025, 2033, 1012, 1035, 9530, 8873, 2290, 1027, 2393, 2545, 1012, 13590, 1006, 1063, 1065, 1010, 1031, 2033, 1012, 3673, 1012, 7047, 1012, 2951, 13462, 2015, 1031, 2033, 1012, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
apache/incubator-echarts
src/chart/heatmap/HeatmapLayer.js
function (data, colorFunc, state) { var gradientPixels = this._gradientPixels; var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4)); var color = [0, 0, 0, 0]; var off = 0; for (var i = 0; i < 256; i++) { colorFunc[s...
javascript
function (data, colorFunc, state) { var gradientPixels = this._gradientPixels; var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4)); var color = [0, 0, 0, 0]; var off = 0; for (var i = 0; i < 256; i++) { colorFunc[s...
[ "function", "(", "data", ",", "colorFunc", ",", "state", ")", "{", "var", "gradientPixels", "=", "this", ".", "_gradientPixels", ";", "var", "pixelsSingleState", "=", "gradientPixels", "[", "state", "]", "||", "(", "gradientPixels", "[", "state", "]", "=", ...
get gradient color map @private
[ "get", "gradient", "color", "map" ]
4d0ea095dc3929cb6de40c45748826e7999c7aa8
https://github.com/apache/incubator-echarts/blob/4d0ea095dc3929cb6de40c45748826e7999c7aa8/src/chart/heatmap/HeatmapLayer.js#L159-L172
train
get gradient pixels
[ 30522, 3853, 1006, 2951, 1010, 3609, 11263, 12273, 1010, 2110, 1007, 1063, 13075, 17978, 8197, 2595, 9050, 1027, 2023, 1012, 1035, 17978, 8197, 2595, 9050, 1025, 13075, 27725, 7741, 4244, 12259, 1027, 17978, 8197, 2595, 9050, 1031, 2110, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
angular/material
src/components/panel/panel.js
MdPanelService
function MdPanelService(presets, $rootElement, $rootScope, $injector, $window) { /** * Default config options for the panel. * Anything angular related needs to be done later. Therefore * scope: $rootScope.$new(true), * attachTo: $rootElement, * are added later. * @private {!Object} */ ...
javascript
function MdPanelService(presets, $rootElement, $rootScope, $injector, $window) { /** * Default config options for the panel. * Anything angular related needs to be done later. Therefore * scope: $rootScope.$new(true), * attachTo: $rootElement, * are added later. * @private {!Object} */ ...
[ "function", "MdPanelService", "(", "presets", ",", "$rootElement", ",", "$rootScope", ",", "$injector", ",", "$window", ")", "{", "/**\n * Default config options for the panel.\n * Anything angular related needs to be done later. Therefore\n * scope: $rootScope.$new(true),\n ...
*************************************************************************** MdPanel Service * *************************************************************************** A service that is used for controlling/displaying panels on the screen. @param {!Object} presets @param {!angular.JQLite}...
[ "***************************************************************************", "MdPanel", "Service", "*", "***************************************************************************", "A", "service", "that", "is", "used", "for", "controlling", "/", "displaying", "panels", "on", "the...
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/panel/panel.js#L1036-L1128
train
The MdPanelService constructor.
[ 30522, 3853, 9108, 9739, 9050, 2121, 7903, 2063, 1006, 3653, 13462, 2015, 1010, 1002, 7117, 12260, 3672, 1010, 1002, 6147, 16186, 1010, 1002, 1999, 20614, 2953, 1010, 1002, 3332, 1007, 1063, 1013, 1008, 1008, 1008, 12398, 9530, 8873, 2290, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
GitbookIO/gitbook
lib/parse/parseStructureFile.js
parseStructureFile
function parseStructureFile(book, type) { var fs = book.getContentFS(); return lookupStructureFile(book, type) .then(function(file) { if (!file) return [undefined, undefined]; return parseFile(fs, file, type); }); }
javascript
function parseStructureFile(book, type) { var fs = book.getContentFS(); return lookupStructureFile(book, type) .then(function(file) { if (!file) return [undefined, undefined]; return parseFile(fs, file, type); }); }
[ "function", "parseStructureFile", "(", "book", ",", "type", ")", "{", "var", "fs", "=", "book", ".", "getContentFS", "(", ")", ";", "return", "lookupStructureFile", "(", "book", ",", "type", ")", ".", "then", "(", "function", "(", "file", ")", "{", "if...
Parse a structure file (ex: SUMMARY.md, GLOSSARY.md). It uses the configuration to find the specified file. @param {Book} book @param {String} type: one of ["glossary", "readme", "summary"] @return {Promise<List|Map>}
[ "Parse", "a", "structure", "file", "(", "ex", ":", "SUMMARY", ".", "md", "GLOSSARY", ".", "md", ")", ".", "It", "uses", "the", "configuration", "to", "find", "the", "specified", "file", "." ]
6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4
https://github.com/GitbookIO/gitbook/blob/6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4/lib/parse/parseStructureFile.js#L56-L65
train
Parse structure file
[ 30522, 3853, 11968, 8583, 18300, 5397, 8873, 2571, 1006, 2338, 1010, 2828, 1007, 1063, 13075, 1042, 2015, 1027, 2338, 1012, 2131, 8663, 6528, 24475, 2015, 1006, 1007, 1025, 2709, 2298, 22264, 18300, 5397, 8873, 2571, 1006, 2338, 1010, 2828,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/preferences/PreferencesBase.js
function (data, context) { if (!data) { return; } var relativeFilename = FileUtils.getRelativeFilename(this.prefFilePath, context[this.key]); if (relativeFilename) { var glob = _findMatchingGlob(data, relativeFilename); if...
javascript
function (data, context) { if (!data) { return; } var relativeFilename = FileUtils.getRelativeFilename(this.prefFilePath, context[this.key]); if (relativeFilename) { var glob = _findMatchingGlob(data, relativeFilename); if...
[ "function", "(", "data", ",", "context", ")", "{", "if", "(", "!", "data", ")", "{", "return", ";", "}", "var", "relativeFilename", "=", "FileUtils", ".", "getRelativeFilename", "(", "this", ".", "prefFilePath", ",", "context", "[", "this", ".", "key", ...
Retrieves the keys provided by this layer object. If context with a filename is provided, only the keys for the matching file glob are given. Otherwise, all keys for all globs are provided. @param {Object} data the preference data from the Scope @param {?Object} context Additional context data (filename in particular ...
[ "Retrieves", "the", "keys", "provided", "by", "this", "layer", "object", ".", "If", "context", "with", "a", "filename", "is", "provided", "only", "the", "keys", "for", "the", "matching", "file", "glob", "are", "given", ".", "Otherwise", "all", "keys", "for...
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/preferences/PreferencesBase.js#L960-L976
train
get the list of all the records in the file
[ 30522, 3853, 1006, 2951, 1010, 6123, 1007, 1063, 2065, 1006, 999, 2951, 1007, 1063, 2709, 1025, 1065, 13075, 5816, 8873, 20844, 4168, 1027, 5371, 21823, 4877, 1012, 2131, 16570, 8082, 8873, 20844, 4168, 1006, 30524, 2951, 1010, 5816, 8873, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/RenderManager.js
triggerBeforeRendering
function triggerBeforeRendering(oControl){ bLocked = true; try { var oEvent = jQuery.Event("BeforeRendering"); // store the element on the event (aligned with jQuery syntax) oEvent.srcControl = oControl; oControl._handleEvent(oEvent); } finally { bLocked = false; } }
javascript
function triggerBeforeRendering(oControl){ bLocked = true; try { var oEvent = jQuery.Event("BeforeRendering"); // store the element on the event (aligned with jQuery syntax) oEvent.srcControl = oControl; oControl._handleEvent(oEvent); } finally { bLocked = false; } }
[ "function", "triggerBeforeRendering", "(", "oControl", ")", "{", "bLocked", "=", "true", ";", "try", "{", "var", "oEvent", "=", "jQuery", ".", "Event", "(", "\"BeforeRendering\"", ")", ";", "// store the element on the event (aligned with jQuery syntax)", "oEvent", "....
Triggers the BeforeRendering event on the given Control
[ "Triggers", "the", "BeforeRendering", "event", "on", "the", "given", "Control" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/RenderManager.js#L577-L587
train
trigger the BeforeRendering event
[ 30522, 3853, 9495, 4783, 29278, 7869, 11563, 2075, 1006, 1051, 8663, 13181, 2140, 1007, 1063, 8534, 1027, 2995, 30524, 3372, 13153, 1027, 1051, 8663, 13181, 2140, 1025, 1051, 8663, 13181, 2140, 1012, 1035, 5047, 18697, 3372, 1006, 1051, 186...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/language/HTMLUtils.js
getTagAttributes
function getTagAttributes(editor, pos) { var attrs = [], backwardCtx = TokenUtils.getInitialContext(editor._codeMirror, pos), forwardCtx = $.extend({}, backwardCtx); if (editor.getModeForSelection() === "html") { if (backwardCtx.token && !tagPrefixedRegExp.tes...
javascript
function getTagAttributes(editor, pos) { var attrs = [], backwardCtx = TokenUtils.getInitialContext(editor._codeMirror, pos), forwardCtx = $.extend({}, backwardCtx); if (editor.getModeForSelection() === "html") { if (backwardCtx.token && !tagPrefixedRegExp.tes...
[ "function", "getTagAttributes", "(", "editor", ",", "pos", ")", "{", "var", "attrs", "=", "[", "]", ",", "backwardCtx", "=", "TokenUtils", ".", "getInitialContext", "(", "editor", ".", "_codeMirror", ",", "pos", ")", ",", "forwardCtx", "=", "$", ".", "ex...
Compiles a list of used attributes for a given tag @param {CodeMirror} editor An instance of a CodeMirror editor @param {ch:{string}, line:{number}} pos A CodeMirror position @return {Array.<string>} A list of the used attributes inside the current tag
[ "Compiles", "a", "list", "of", "used", "attributes", "for", "a", "given", "tag" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/language/HTMLUtils.js#L131-L173
train
Get the attributes of a tag
[ 30522, 3853, 2131, 15900, 19321, 3089, 8569, 4570, 1006, 3559, 1010, 13433, 2015, 1007, 1063, 13075, 2012, 16344, 2015, 1027, 1031, 1033, 1010, 8848, 6593, 2595, 1027, 19204, 21823, 4877, 1012, 2131, 5498, 20925, 8663, 18209, 1006, 3559, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
firebase/firebase-js-sdk
packages/auth/src/cordovahandler.js
function(eventData) { initialResolve = true; // Cancel no event timer. if (noEventTimer) { noEventTimer.cancel(); } // Incoming link detected. // Check for any stored partial event. self.getPartialStoredEvent_().then(function(event) { // Initialize to an unknown event. var ...
javascript
function(eventData) { initialResolve = true; // Cancel no event timer. if (noEventTimer) { noEventTimer.cancel(); } // Incoming link detected. // Check for any stored partial event. self.getPartialStoredEvent_().then(function(event) { // Initialize to an unknown event. var ...
[ "function", "(", "eventData", ")", "{", "initialResolve", "=", "true", ";", "// Cancel no event timer.", "if", "(", "noEventTimer", ")", "{", "noEventTimer", ".", "cancel", "(", ")", ";", "}", "// Incoming link detected.", "// Check for any stored partial event.", "se...
No event name needed, subscribe to all incoming universal links.
[ "No", "event", "name", "needed", "subscribe", "to", "all", "incoming", "universal", "links", "." ]
491598a499813dacc23724de5e237ec220cc560e
https://github.com/firebase/firebase-js-sdk/blob/491598a499813dacc23724de5e237ec220cc560e/packages/auth/src/cordovahandler.js#L753-L773
train
This function is called when the link is received from the server.
[ 30522, 3853, 1006, 2724, 2850, 2696, 1007, 1063, 3988, 6072, 4747, 3726, 1027, 2995, 1025, 1013, 1013, 17542, 2053, 2724, 25309, 1012, 2065, 1006, 2053, 18697, 3372, 7292, 2099, 1007, 1063, 2053, 18697, 3372, 7292, 2099, 1012, 17542, 1006, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
nhn/tui.editor
src/js/extensions/scrollSync/scrollSync.js
scrollSyncExtension
function scrollSyncExtension(editor) { const className = 'tui-scrollsync'; const i18n = editor.i18n; const TOOL_TIP = { active: i18n.get('Auto scroll enabled'), inactive: i18n.get('Auto scroll disabled') }; if (editor.isViewer()) { return; } const cm = editor.getCodeMirror(); const section...
javascript
function scrollSyncExtension(editor) { const className = 'tui-scrollsync'; const i18n = editor.i18n; const TOOL_TIP = { active: i18n.get('Auto scroll enabled'), inactive: i18n.get('Auto scroll disabled') }; if (editor.isViewer()) { return; } const cm = editor.getCodeMirror(); const section...
[ "function", "scrollSyncExtension", "(", "editor", ")", "{", "const", "className", "=", "'tui-scrollsync'", ";", "const", "i18n", "=", "editor", ".", "i18n", ";", "const", "TOOL_TIP", "=", "{", "active", ":", "i18n", ".", "get", "(", "'Auto scroll enabled'", ...
scrollSync plugin @param {Editor} editor - editor @ignore
[ "scrollSync", "plugin" ]
e75ab08c2a7ab07d1143e318f7cde135c5e3002e
https://github.com/nhn/tui.editor/blob/e75ab08c2a7ab07d1143e318f7cde135c5e3002e/src/js/extensions/scrollSync/scrollSync.js#L15-L119
train
Scroll sync extension
[ 30522, 3853, 23074, 6038, 3401, 18413, 6132, 3258, 1006, 3559, 1007, 1063, 9530, 3367, 2465, 18442, 1027, 1005, 10722, 2072, 1011, 23074, 6038, 2278, 1005, 1025, 9530, 3367, 1045, 15136, 2078, 1027, 3559, 1012, 1045, 15136, 2078, 1025, 9530...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ColorlibHQ/AdminLTE
bower_components/ion.rangeSlider/js/ion.rangeSlider.js
function (update) { if (!this.options) { return; } this.calc_count++; if (this.calc_count === 10 || update) { this.calc_count = 0; this.coords.w_rs = this.$cache.rs.outerWidth(false); this.calcHandlePercen...
javascript
function (update) { if (!this.options) { return; } this.calc_count++; if (this.calc_count === 10 || update) { this.calc_count = 0; this.coords.w_rs = this.$cache.rs.outerWidth(false); this.calcHandlePercen...
[ "function", "(", "update", ")", "{", "if", "(", "!", "this", ".", "options", ")", "{", "return", ";", "}", "this", ".", "calc_count", "++", ";", "if", "(", "this", ".", "calc_count", "===", "10", "||", "update", ")", "{", "this", ".", "calc_count",...
============================================================================================================= Calculations All calculations and measures start here @param update {boolean=}
[ "=============================================================================================================", "Calculations", "All", "calculations", "and", "measures", "start", "here" ]
19113c3cbc19a7afe0cfd3158d647064d2d30661
https://github.com/ColorlibHQ/AdminLTE/blob/19113c3cbc19a7afe0cfd3158d647064d2d30661/bower_components/ion.rangeSlider/js/ion.rangeSlider.js#L1004-L1198
train
update the coords
[ 30522, 3853, 1006, 10651, 1007, 1063, 2065, 1006, 999, 2023, 1012, 7047, 1007, 1063, 2709, 1025, 1065, 2023, 1012, 10250, 2278, 1035, 4175, 1009, 1009, 1025, 2065, 1006, 2023, 1012, 10250, 2278, 1035, 4175, 1027, 1027, 1027, 2184, 1064, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
dequelabs/axe-core
lib/core/utils/respondable.js
respondable
function respondable(win, topic, message, keepalive, callback) { var id = uuid.v1(); post(win, topic, message, id, keepalive, callback); }
javascript
function respondable(win, topic, message, keepalive, callback) { var id = uuid.v1(); post(win, topic, message, id, keepalive, callback); }
[ "function", "respondable", "(", "win", ",", "topic", ",", "message", ",", "keepalive", ",", "callback", ")", "{", "var", "id", "=", "uuid", ".", "v1", "(", ")", ";", "post", "(", "win", ",", "topic", ",", "message", ",", "id", ",", "keepalive", ","...
Post a message to a window who may or may not respond to it. @param {Window} win The window to post the message to @param {String} topic The topic of the message @param {Object} message The message content @param {Boolean} keepalive Whether to allow multiple responses - default is false @param {Fun...
[ "Post", "a", "message", "to", "a", "window", "who", "may", "or", "may", "not", "respond", "to", "it", "." ]
727323c07980e2291575f545444d389fb942906f
https://github.com/dequelabs/axe-core/blob/727323c07980e2291575f545444d389fb942906f/lib/core/utils/respondable.js#L104-L107
train
Send a message to the remote device
[ 30522, 3853, 6869, 3085, 1006, 2663, 1010, 8476, 1010, 4471, 1010, 2562, 11475, 3726, 1010, 2655, 5963, 1007, 1063, 13075, 8909, 1027, 1057, 21272, 1012, 1058, 2487, 1006, 1007, 1025, 2695, 1006, 2663, 1010, 8476, 1010, 4471, 1010, 8909, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aframevr/aframe
src/components/animation.js
function () { var config = this.config; var data = this.data; var el = this.el; var from; var isBoolean; var isNumber; var to; if (this.waitComponentInitRawProperty(this.updateConfigForDefault)) { return; } if (data.from === '') { // Infer from. from = isRawPr...
javascript
function () { var config = this.config; var data = this.data; var el = this.el; var from; var isBoolean; var isNumber; var to; if (this.waitComponentInitRawProperty(this.updateConfigForDefault)) { return; } if (data.from === '') { // Infer from. from = isRawPr...
[ "function", "(", ")", "{", "var", "config", "=", "this", ".", "config", ";", "var", "data", "=", "this", ".", "data", ";", "var", "el", "=", "this", ".", "el", ";", "var", "from", ";", "var", "isBoolean", ";", "var", "isNumber", ";", "var", "to",...
Stuff property into generic `property` key.
[ "Stuff", "property", "into", "generic", "property", "key", "." ]
24acc78a7299a4cdfe3ef617f4d40ddf6275c992
https://github.com/aframevr/aframe/blob/24acc78a7299a4cdfe3ef617f4d40ddf6275c992/src/components/animation.js#L273-L340
train
Update the aframe property of the component.
[ 30522, 3853, 1006, 1007, 1063, 13075, 9530, 8873, 2290, 1027, 2023, 1012, 9530, 8873, 2290, 1025, 13075, 2951, 1027, 2023, 1012, 2951, 1025, 13075, 3449, 1027, 2023, 1012, 3449, 1025, 13075, 2013, 1025, 13075, 2003, 5092, 9890, 2319, 1025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/widgets/StatusBar.js
addIndicator
function addIndicator(id, indicator, visible, style, tooltip, insertBefore) { if (!_init) { console.error("StatusBar API invoked before status bar created"); return; } indicator = indicator || window.document.createElement("div"); tooltip = tooltip || ""; ...
javascript
function addIndicator(id, indicator, visible, style, tooltip, insertBefore) { if (!_init) { console.error("StatusBar API invoked before status bar created"); return; } indicator = indicator || window.document.createElement("div"); tooltip = tooltip || ""; ...
[ "function", "addIndicator", "(", "id", ",", "indicator", ",", "visible", ",", "style", ",", "tooltip", ",", "insertBefore", ")", "{", "if", "(", "!", "_init", ")", "{", "console", ".", "error", "(", "\"StatusBar API invoked before status bar created\"", ")", "...
Registers a new status indicator @param {string} id Registration id of the indicator to be updated. @param {(DOMNode|jQueryObject)=} indicator Optional DOMNode for the indicator @param {boolean=} visible Shows or hides the indicator over the statusbar. @param {string=} style Sets the attribute "class" of the indicator....
[ "Registers", "a", "new", "status", "indicator" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/widgets/StatusBar.js#L102-L135
train
Add indicator to status bar
[ 30522, 3853, 5587, 22254, 5555, 4263, 1006, 8909, 1010, 17245, 1010, 5710, 1010, 2806, 1010, 6994, 25101, 1010, 19274, 4783, 29278, 2063, 1007, 1063, 2065, 1006, 999, 1035, 1999, 4183, 1007, 1063, 10122, 1012, 7561, 1006, 1000, 3570, 8237, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SeleniumHQ/selenium
third_party/js/mozmill/shared-modules/utils.js
closeContentAreaContextMenu
function closeContentAreaContextMenu(controller) { var contextMenu = new elementslib.ID(controller.window.document, "contentAreaContextMenu"); controller.keypress(contextMenu, "VK_ESCAPE", {}); }
javascript
function closeContentAreaContextMenu(controller) { var contextMenu = new elementslib.ID(controller.window.document, "contentAreaContextMenu"); controller.keypress(contextMenu, "VK_ESCAPE", {}); }
[ "function", "closeContentAreaContextMenu", "(", "controller", ")", "{", "var", "contextMenu", "=", "new", "elementslib", ".", "ID", "(", "controller", ".", "window", ".", "document", ",", "\"contentAreaContextMenu\"", ")", ";", "controller", ".", "keypress", "(", ...
Close the context menu inside the content area of the currently open tab @param {MozmillController} controller MozMillController of the window to operate on
[ "Close", "the", "context", "menu", "inside", "the", "content", "area", "of", "the", "currently", "open", "tab" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/utils.js#L213-L216
train
Close the context menu
[ 30522, 3853, 2485, 8663, 6528, 7559, 5243, 8663, 18209, 3549, 2226, 1006, 11486, 1007, 1063, 13075, 6123, 3549, 2226, 1027, 2047, 3787, 29521, 1012, 8909, 1006, 11486, 1012, 3332, 1012, 6254, 1010, 1000, 4180, 12069, 22684, 10111, 18413, 35...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ColorlibHQ/AdminLTE
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
function(shouldParseHtml) { var textareaValue = this.textarea.getValue(false, false); if (textareaValue) { this.composer.setValue(textareaValue, shouldParseHtml); } else { this.composer.clear(); this.editor.fire("set_placeholder"); } }
javascript
function(shouldParseHtml) { var textareaValue = this.textarea.getValue(false, false); if (textareaValue) { this.composer.setValue(textareaValue, shouldParseHtml); } else { this.composer.clear(); this.editor.fire("set_placeholder"); } }
[ "function", "(", "shouldParseHtml", ")", "{", "var", "textareaValue", "=", "this", ".", "textarea", ".", "getValue", "(", "false", ",", "false", ")", ";", "if", "(", "textareaValue", ")", "{", "this", ".", "composer", ".", "setValue", "(", "textareaValue",...
Sync value of textarea to composer Takes care of placeholders @param {Boolean} shouldParseHtml Whether the html should be sanitized before inserting it into the composer
[ "Sync", "value", "of", "textarea", "to", "composer", "Takes", "care", "of", "placeholders" ]
19113c3cbc19a7afe0cfd3158d647064d2d30661
https://github.com/ColorlibHQ/AdminLTE/blob/19113c3cbc19a7afe0cfd3158d647064d2d30661/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js#L13054-L13062
train
Set the value of the textarea
[ 30522, 3853, 1006, 2323, 19362, 3366, 11039, 19968, 30524, 10175, 5657, 1006, 6270, 1010, 6270, 1007, 1025, 2065, 1006, 3793, 12069, 12462, 7630, 2063, 1007, 1063, 2023, 1012, 4543, 1012, 2275, 10175, 5657, 1006, 3793, 12069, 12462, 7630, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
angular/material
src/core/services/theming/theming.js
function (scope, el) { if (el === undefined) { el = scope; scope = undefined; } if (scope === undefined) { scope = $rootScope; } applyTheme.inherit(el, el); }
javascript
function (scope, el) { if (el === undefined) { el = scope; scope = undefined; } if (scope === undefined) { scope = $rootScope; } applyTheme.inherit(el, el); }
[ "function", "(", "scope", ",", "el", ")", "{", "if", "(", "el", "===", "undefined", ")", "{", "el", "=", "scope", ";", "scope", "=", "undefined", ";", "}", "if", "(", "scope", "===", "undefined", ")", "{", "scope", "=", "$rootScope", ";", "}", "a...
Allow us to be invoked via a linking function signature.
[ "Allow", "us", "to", "be", "invoked", "via", "a", "linking", "function", "signature", "." ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/core/services/theming/theming.js#L711-L715
train
inherit theme from parent theme
[ 30522, 3853, 1006, 9531, 1010, 3449, 1007, 1063, 2065, 1006, 3449, 1027, 1027, 1027, 6151, 28344, 1007, 1063, 3449, 1027, 9531, 1025, 9531, 1027, 6151, 28344, 1025, 1065, 2065, 1006, 9531, 1027, 1027, 1027, 6151, 28344, 1007, 1063, 9531, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SeleniumHQ/selenium
third_party/closure/goog/string/stringformat.js
replacerDemuxer
function replacerDemuxer( match, flags, width, dotp, precision, type, offset, wholeString) { // The % is too simple and doesn't take an argument. if (type == '%') { return '%'; } // Try to get the actual value from parent function. var value = args.shift(); // If we didn't get any ...
javascript
function replacerDemuxer( match, flags, width, dotp, precision, type, offset, wholeString) { // The % is too simple and doesn't take an argument. if (type == '%') { return '%'; } // Try to get the actual value from parent function. var value = args.shift(); // If we didn't get any ...
[ "function", "replacerDemuxer", "(", "match", ",", "flags", ",", "width", ",", "dotp", ",", "precision", ",", "type", ",", "offset", ",", "wholeString", ")", "{", "// The % is too simple and doesn't take an argument.", "if", "(", "type", "==", "'%'", ")", "{", ...
Chooses which conversion function to call based on type conversion specifier. @param {string} match Contains the re matched string. @param {string} flags Formatting flags. @param {string} width Replacement string minimum width. @param {string} dotp Matched precision including a dot. @param {string} precision Specifies ...
[ "Chooses", "which", "conversion", "function", "to", "call", "based", "on", "type", "conversion", "specifier", "." ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/closure/goog/string/stringformat.js#L66-L85
train
This function is used to replace the % in a string.
[ 30522, 3853, 5672, 25547, 12274, 2595, 2121, 1006, 2674, 1010, 9245, 1010, 9381, 1010, 11089, 2361, 1010, 11718, 1010, 2828, 1010, 16396, 1010, 2878, 3367, 4892, 1007, 1063, 1013, 1013, 1996, 1003, 2003, 2205, 3722, 1998, 2987, 1005, 1056, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mChangeListeners, sPath, oOldObject, oNewObject) { if (!oNewObject) { return; } // iterate over all properties in the old object Object.keys(oOldObject).forEach(function (sProperty) { var sPropertyPath = _Helper.buildPath(sPath, sProperty), vOldProperty = oOldObject[sProperty], ...
javascript
function (mChangeListeners, sPath, oOldObject, oNewObject) { if (!oNewObject) { return; } // iterate over all properties in the old object Object.keys(oOldObject).forEach(function (sProperty) { var sPropertyPath = _Helper.buildPath(sPath, sProperty), vOldProperty = oOldObject[sProperty], ...
[ "function", "(", "mChangeListeners", ",", "sPath", ",", "oOldObject", ",", "oNewObject", ")", "{", "if", "(", "!", "oNewObject", ")", "{", "return", ";", "}", "// iterate over all properties in the old object", "Object", ".", "keys", "(", "oOldObject", ")", ".",...
Updates the old object with the new object. Only existing properties of the old object are updated. Fires change events for all changed properties. The function recursively handles modified, added or removed structural properties and fires change events for all modified/added/removed primitive properties therein. Colle...
[ "Updates", "the", "old", "object", "with", "the", "new", "object", ".", "Only", "existing", "properties", "of", "the", "old", "object", "are", "updated", ".", "Fires", "change", "events", "for", "all", "changed", "properties", ".", "The", "function", "recurs...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L1118-L1174
train
Updates the properties in the new object
[ 30522, 3853, 1006, 11338, 18003, 29282, 6528, 2545, 1010, 14690, 2232, 1010, 1051, 11614, 16429, 20614, 1010, 2028, 12155, 2497, 20614, 1007, 1063, 2065, 1006, 999, 2028, 12155, 2497, 20614, 1007, 1063, 2709, 1025, 1065, 1013, 1013, 2009, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
lib/jsdoc/transform-apijson-for-sdk.js
function (aEvents) { var fnExtractParameterProperties = function (oParameter, aParameters, iDepth, aPhoneName) { if (oParameter.parameterProperties) { Object.keys(oParameter.parameterProperties).forEach(function (sProperty) { var oProperty = oParameter.parameterProperties[sProperty], sPhoneType...
javascript
function (aEvents) { var fnExtractParameterProperties = function (oParameter, aParameters, iDepth, aPhoneName) { if (oParameter.parameterProperties) { Object.keys(oParameter.parameterProperties).forEach(function (sProperty) { var oProperty = oParameter.parameterProperties[sProperty], sPhoneType...
[ "function", "(", "aEvents", ")", "{", "var", "fnExtractParameterProperties", "=", "function", "(", "oParameter", ",", "aParameters", ",", "iDepth", ",", "aPhoneName", ")", "{", "if", "(", "oParameter", ".", "parameterProperties", ")", "{", "Object", ".", "keys...
Adjusts events info so that it can be easily displayed in a table @param {Array} aEvents - the events array initially coming from the server
[ "Adjusts", "events", "info", "so", "that", "it", "can", "be", "easily", "displayed", "in", "a", "table" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/lib/jsdoc/transform-apijson-for-sdk.js#L1871-L1915
train
This function is called when the event is added to the event list
[ 30522, 3853, 1006, 29347, 15338, 2015, 1007, 1063, 13075, 1042, 2638, 18413, 22648, 25856, 5400, 22828, 21572, 4842, 7368, 1027, 3853, 1006, 6728, 5400, 22828, 1010, 9706, 5400, 22828, 2015, 1010, 8909, 23606, 2232, 1010, 9706, 27406, 18442, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
uber/deck.gl
modules/layers/src/solid-polygon-layer/polygon.js
getFlatVertexCount
function getFlatVertexCount(positions, size, startIndex = 0, endIndex) { endIndex = endIndex || positions.length; if (startIndex >= endIndex) { return 0; } return ( (isFlatRingClosed(positions, size, startIndex, endIndex) ? 0 : 1) + (endIndex - startIndex) / size ); }
javascript
function getFlatVertexCount(positions, size, startIndex = 0, endIndex) { endIndex = endIndex || positions.length; if (startIndex >= endIndex) { return 0; } return ( (isFlatRingClosed(positions, size, startIndex, endIndex) ? 0 : 1) + (endIndex - startIndex) / size ); }
[ "function", "getFlatVertexCount", "(", "positions", ",", "size", ",", "startIndex", "=", "0", ",", "endIndex", ")", "{", "endIndex", "=", "endIndex", "||", "positions", ".", "length", ";", "if", "(", "startIndex", ">=", "endIndex", ")", "{", "return", "0",...
Counts the number of vertices in a simple flat array, closes the polygon if needed. @param {Array} positions - array of numbers @param {Number} size - size of a position, 2 (xy) or 3 (xyz) @param {Number} [startIndex] - start index of the path in the positions array @param {Number} [endIndex] - end index of the path in...
[ "Counts", "the", "number", "of", "vertices", "in", "a", "simple", "flat", "array", "closes", "the", "polygon", "if", "needed", "." ]
a2010448b7f268bbd03617b812334c68a6b9e5b2
https://github.com/uber/deck.gl/blob/a2010448b7f268bbd03617b812334c68a6b9e5b2/modules/layers/src/solid-polygon-layer/polygon.js#L154-L163
train
Get the number of vertices in a flat ring
[ 30522, 3853, 2131, 10258, 4017, 16874, 10288, 3597, 16671, 1006, 4460, 1010, 2946, 1010, 2707, 22254, 10288, 1027, 1014, 1010, 2203, 22254, 10288, 1007, 1063, 2203, 22254, 10288, 1027, 2203, 22254, 10288, 1064, 1064, 4460, 1012, 3091, 1025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
angular/material
src/core/services/interimElement/interimElement.js
transitionOutAndRemove
function transitionOutAndRemove(response, isCancelled, opts) { // abort if the show() and compile failed if (!element) return $q.when(false); options = angular.extend(options || {}, opts || {}); options.cancelAutoHide && options.cancelAutoHide(); options.element.trigg...
javascript
function transitionOutAndRemove(response, isCancelled, opts) { // abort if the show() and compile failed if (!element) return $q.when(false); options = angular.extend(options || {}, opts || {}); options.cancelAutoHide && options.cancelAutoHide(); options.element.trigg...
[ "function", "transitionOutAndRemove", "(", "response", ",", "isCancelled", ",", "opts", ")", "{", "// abort if the show() and compile failed", "if", "(", "!", "element", ")", "return", "$q", ".", "when", "(", "false", ")", ";", "options", "=", "angular", ".", ...
After the show process has finished/rejected: - announce 'removing', - perform the transition-out, and - perform optional clean up scope.
[ "After", "the", "show", "process", "has", "finished", "/", "rejected", ":", "-", "announce", "removing", "-", "perform", "the", "transition", "-", "out", "and", "-", "perform", "optional", "clean", "up", "scope", "." ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/core/services/interimElement/interimElement.js#L526-L566
train
transition out and remove
[ 30522, 3853, 6653, 5833, 5685, 28578, 21818, 1006, 3433, 1010, 2003, 9336, 29109, 3709, 1010, 23569, 2015, 1007, 1063, 1013, 1013, 11113, 11589, 2065, 1996, 2265, 1006, 1007, 1998, 4012, 22090, 3478, 2065, 1006, 999, 5783, 1007, 2709, 1002,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
websockets/ws
lib/buffer-util.js
concat
function concat(list, totalLength) { if (list.length === 0) return EMPTY_BUFFER; if (list.length === 1) return list[0]; const target = Buffer.allocUnsafe(totalLength); let offset = 0; for (let i = 0; i < list.length; i++) { const buf = list[i]; buf.copy(target, offset); offset += buf.length; }...
javascript
function concat(list, totalLength) { if (list.length === 0) return EMPTY_BUFFER; if (list.length === 1) return list[0]; const target = Buffer.allocUnsafe(totalLength); let offset = 0; for (let i = 0; i < list.length; i++) { const buf = list[i]; buf.copy(target, offset); offset += buf.length; }...
[ "function", "concat", "(", "list", ",", "totalLength", ")", "{", "if", "(", "list", ".", "length", "===", "0", ")", "return", "EMPTY_BUFFER", ";", "if", "(", "list", ".", "length", "===", "1", ")", "return", "list", "[", "0", "]", ";", "const", "ta...
Merges an array of buffers into a new buffer. @param {Buffer[]} list The array of buffers to concat @param {Number} totalLength The total length of buffers in the list @return {Buffer} The resulting buffer @public
[ "Merges", "an", "array", "of", "buffers", "into", "a", "new", "buffer", "." ]
995c527c87d0d4833d8093c18dcfa2e4a41d9582
https://github.com/websockets/ws/blob/995c527c87d0d4833d8093c18dcfa2e4a41d9582/lib/buffer-util.js#L13-L27
train
Concat a list of buffers into a new buffer
[ 30522, 3853, 9530, 11266, 1006, 2862, 1010, 2561, 7770, 13512, 2232, 1007, 1063, 2065, 1006, 2862, 1012, 3091, 1027, 1027, 1027, 1014, 1007, 2709, 4064, 1035, 17698, 1025, 2065, 1006, 2862, 1012, 3091, 1027, 1027, 1027, 1015, 1007, 2709, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/extensions/default/InlineTimingFunctionEditor/main.js
prepareEditorForProvider
function prepareEditorForProvider(hostEditor, pos) { var cursorLine, sel, startPos, endPos, startBookmark, endBookmark, currentMatch, cm = hostEditor._codeMirror; sel = hostEditor.getSelection(); if (sel.start.line !== sel.end.line) { return {timingFunction: null, reason...
javascript
function prepareEditorForProvider(hostEditor, pos) { var cursorLine, sel, startPos, endPos, startBookmark, endBookmark, currentMatch, cm = hostEditor._codeMirror; sel = hostEditor.getSelection(); if (sel.start.line !== sel.end.line) { return {timingFunction: null, reason...
[ "function", "prepareEditorForProvider", "(", "hostEditor", ",", "pos", ")", "{", "var", "cursorLine", ",", "sel", ",", "startPos", ",", "endPos", ",", "startBookmark", ",", "endBookmark", ",", "currentMatch", ",", "cm", "=", "hostEditor", ".", "_codeMirror", "...
Functions Prepare hostEditor for an InlineTimingFunctionEditor at pos if possible. Return editor context if so; otherwise null. @param {Editor} hostEditor @param {{line:Number, ch:Number}} pos @return {timingFunction:{?string}, reason:{?string}, start:{?TextMarker}, end:{?TextMarker}}
[ "Functions", "Prepare", "hostEditor", "for", "an", "InlineTimingFunctionEditor", "at", "pos", "if", "possible", ".", "Return", "editor", "context", "if", "so", ";", "otherwise", "null", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/extensions/default/InlineTimingFunctionEditor/main.js#L68-L122
train
prepareEditorForProvider - prepare editor for provider
[ 30522, 3853, 7374, 2098, 15660, 29278, 21572, 17258, 2121, 1006, 4354, 15660, 1010, 13433, 2015, 1007, 1063, 13075, 12731, 25301, 19403, 2063, 1010, 7367, 2140, 1010, 2707, 6873, 2015, 1010, 2203, 6873, 2015, 1010, 2707, 8654, 10665, 1010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oMetadata; if (oControl && typeof oControl.getMetadata === "function") { oMetadata = oControl.getMetadata(); if (oMetadata && typeof oMetadata.getElementName === "function") { return oMetadata.getElementName(); } } }
javascript
function (oControl) { var oMetadata; if (oControl && typeof oControl.getMetadata === "function") { oMetadata = oControl.getMetadata(); if (oMetadata && typeof oMetadata.getElementName === "function") { return oMetadata.getElementName(); } } }
[ "function", "(", "oControl", ")", "{", "var", "oMetadata", ";", "if", "(", "oControl", "&&", "typeof", "oControl", ".", "getMetadata", "===", "\"function\"", ")", "{", "oMetadata", "=", "oControl", ".", "getMetadata", "(", ")", ";", "if", "(", "oMetadata",...
Retrieves the controlType of the control @param {sap.ui.core.Control} oControl Control instance @returns {string} control type of the control - undefined if controlType cannot be determined @private
[ "Retrieves", "the", "controlType", "of", "the", "control" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L800-L808
train
Returns the name of the metadata of the control.
[ 30522, 3853, 1006, 1051, 30524, 1012, 2131, 11368, 8447, 2696, 1006, 1007, 1025, 2065, 1006, 18168, 12928, 2850, 2696, 1004, 1004, 2828, 11253, 18168, 12928, 2850, 2696, 1012, 2131, 12260, 3672, 18442, 1027, 1027, 1027, 1000, 3853, 1000, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
tensorflow/tfjs-models
speech-commands/demo/index.js
scrollToPageBottom
function scrollToPageBottom() { const scrollingElement = (document.scrollingElement || document.body); scrollingElement.scrollTop = scrollingElement.scrollHeight; }
javascript
function scrollToPageBottom() { const scrollingElement = (document.scrollingElement || document.body); scrollingElement.scrollTop = scrollingElement.scrollHeight; }
[ "function", "scrollToPageBottom", "(", ")", "{", "const", "scrollingElement", "=", "(", "document", ".", "scrollingElement", "||", "document", ".", "body", ")", ";", "scrollingElement", ".", "scrollTop", "=", "scrollingElement", ".", "scrollHeight", ";", "}" ]
Transfer learning logic. Scroll to the bottom of the page
[ "Transfer", "learning", "logic", ".", "Scroll", "to", "the", "bottom", "of", "the", "page" ]
af194797c90cc5bcac1060d3cd41b0258a34c7dc
https://github.com/tensorflow/tfjs-models/blob/af194797c90cc5bcac1060d3cd41b0258a34c7dc/speech-commands/demo/index.js#L162-L165
train
Scrolls to the bottom of the page
[ 30522, 3853, 17186, 14399, 4270, 18384, 20389, 1006, 1007, 1063, 9530, 3367, 28903, 12260, 3672, 1027, 1006, 6254, 1012, 28903, 12260, 3672, 1064, 1064, 6254, 1012, 2303, 1007, 1025, 28903, 12260, 3672, 1012, 17186, 14399, 1027, 28903, 12260,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/extensions/default/InlineTimingFunctionEditor/BezierCurveEditor.js
_pointKeyDown
function _pointKeyDown(e) { var code = e.keyCode, self = e.target, bezierEditor = self.bezierEditor; if (code >= KeyEvent.DOM_VK_LEFT && code <= KeyEvent.DOM_VK_DOWN) { e.preventDefault(); // Arrow keys pressed var $this = $(e.target), ...
javascript
function _pointKeyDown(e) { var code = e.keyCode, self = e.target, bezierEditor = self.bezierEditor; if (code >= KeyEvent.DOM_VK_LEFT && code <= KeyEvent.DOM_VK_DOWN) { e.preventDefault(); // Arrow keys pressed var $this = $(e.target), ...
[ "function", "_pointKeyDown", "(", "e", ")", "{", "var", "code", "=", "e", ".", "keyCode", ",", "self", "=", "e", ".", "target", ",", "bezierEditor", "=", "self", ".", "bezierEditor", ";", "if", "(", "code", ">=", "KeyEvent", ".", "DOM_VK_LEFT", "&&", ...
Handle key down in <button> element @param {Event} e Key down event
[ "Handle", "key", "down", "in", "<button", ">", "element" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/extensions/default/InlineTimingFunctionEditor/BezierCurveEditor.js#L435-L504
train
Point key down
[ 30522, 3853, 1035, 2391, 14839, 7698, 1006, 1041, 1007, 1063, 13075, 3642, 1027, 1041, 1012, 3145, 16044, 1010, 2969, 1027, 1041, 1012, 4539, 1010, 2022, 21548, 2098, 15660, 1027, 2969, 1012, 2022, 21548, 2098, 15660, 1025, 2065, 1006, 3642...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SeleniumHQ/selenium
javascript/selenium-core/scripts/htmlutils.js
function( event ) { // Check if mouse(over|out) are still within the same parent element var parent = event.relatedTarget; // Traverse up the tree while ( parent && parent !== this ) { // Firefox sometimes assigns relatedTarget a XUL element // which we cannot access the parentNode property of try { paren...
javascript
function( event ) { // Check if mouse(over|out) are still within the same parent element var parent = event.relatedTarget; // Traverse up the tree while ( parent && parent !== this ) { // Firefox sometimes assigns relatedTarget a XUL element // which we cannot access the parentNode property of try { paren...
[ "function", "(", "event", ")", "{", "// Check if mouse(over|out) are still within the same parent element", "var", "parent", "=", "event", ".", "relatedTarget", ";", "// Traverse up the tree", "while", "(", "parent", "&&", "parent", "!==", "this", ")", "{", "// Firefox ...
Checks if an event happened on an element within another element Used in jQuery.event.special.mouseenter and mouseleave handlers
[ "Checks", "if", "an", "event", "happened", "on", "an", "element", "within", "another", "element", "Used", "in", "jQuery", ".", "event", ".", "special", ".", "mouseenter", "and", "mouseleave", "handlers" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/javascript/selenium-core/scripts/htmlutils.js#L4697-L4722
train
The event handler for the mouseover event
[ 30522, 3853, 1006, 2724, 1007, 1063, 1013, 1013, 4638, 2065, 8000, 1006, 2058, 1064, 2041, 1007, 2024, 2145, 2306, 1996, 2168, 6687, 5783, 13075, 6687, 1027, 2724, 1012, 3141, 7559, 18150, 1025, 1013, 1013, 20811, 2039, 1996, 3392, 2096, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
cloneMetadata
function cloneMetadata(source) { var backupMetadata = initMetadata(source.__ui5version); for (var index in source.__byIndex__) { backupMetadata.__byIndex__[index] = source.__byIndex__[index]; } for (var key in source.__byKey__) { backupMetadata.__byKey__[key] = source.__byKey__[key]; } return ...
javascript
function cloneMetadata(source) { var backupMetadata = initMetadata(source.__ui5version); for (var index in source.__byIndex__) { backupMetadata.__byIndex__[index] = source.__byIndex__[index]; } for (var key in source.__byKey__) { backupMetadata.__byKey__[key] = source.__byKey__[key]; } return ...
[ "function", "cloneMetadata", "(", "source", ")", "{", "var", "backupMetadata", "=", "initMetadata", "(", "source", ".", "__ui5version", ")", ";", "for", "(", "var", "index", "in", "source", ".", "__byIndex__", ")", "{", "backupMetadata", ".", "__byIndex__", ...
Clones a given metadata instance @param source the instance to clone @returns {*} cloned metadata
[ "Clones", "a", "given", "metadata", "instance" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js#L722-L731
train
Clone metadata from source
[ 30522, 3853, 17598, 11368, 8447, 2696, 1006, 3120, 1007, 1063, 13075, 10200, 11368, 8447, 2696, 1027, 1999, 4183, 11368, 8447, 2696, 1006, 3120, 1012, 1035, 1035, 21318, 2629, 27774, 1007, 1025, 2005, 1006, 13075, 5950, 1999, 3120, 1012, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
getinsomnia/insomnia
packages/insomnia-importers/src/importers/swagger2.js
generateParameterExample
function generateParameterExample(schema) { const typeExamples = { string: () => 'string', string_email: () => 'user@example.com', 'string_date-time': () => new Date().toISOString(), string_byte: () => 'ZXhhbXBsZQ==', number: () => 0, number_float: () => 0.0, number_double: () => 0.0, ...
javascript
function generateParameterExample(schema) { const typeExamples = { string: () => 'string', string_email: () => 'user@example.com', 'string_date-time': () => new Date().toISOString(), string_byte: () => 'ZXhhbXBsZQ==', number: () => 0, number_float: () => 0.0, number_double: () => 0.0, ...
[ "function", "generateParameterExample", "(", "schema", ")", "{", "const", "typeExamples", "=", "{", "string", ":", "(", ")", "=>", "'string'", ",", "string_email", ":", "(", ")", "=>", "'user@example.com'", ",", "'string_date-time'", ":", "(", ")", "=>", "ne...
Generate example value of parameter based on it's schema. Returns example / default value of the parameter, if any of those are defined. If not, returns value based on parameter type. @param {string|Object} schema - Swagger 2.0 parameter definition object (https://github.com/OAI/OpenAPI-Specification/blob/master/versi...
[ "Generate", "example", "value", "of", "parameter", "based", "on", "it", "s", "schema", ".", "Returns", "example", "/", "default", "value", "of", "the", "parameter", "if", "any", "of", "those", "are", "defined", ".", "If", "not", "returns", "value", "based"...
e24ce7f7b41246e700c4b9bdb6b34b6652ad589b
https://github.com/getinsomnia/insomnia/blob/e24ce7f7b41246e700c4b9bdb6b34b6652ad589b/packages/insomnia-importers/src/importers/swagger2.js#L281-L335
train
Generates a parameter example from a schema
[ 30522, 3853, 9699, 28689, 22828, 10288, 16613, 2571, 1006, 8040, 28433, 1007, 1063, 9530, 3367, 2828, 10288, 16613, 4244, 1027, 1063, 5164, 1024, 1006, 1007, 1027, 1028, 1005, 5164, 1005, 1010, 5164, 1035, 10373, 1024, 1006, 1007, 1027, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js
function () { var oVersionModel = this.getModel("versionData"), bIsDevVersion = oVersionModel.getProperty('/isDevVersion'), bIsOpenUI5 = oVersionModel.getProperty('/isOpenUI5'); if (bIsOpenUI5) { return 'https://help.sap.com/OpenUI5_PDF/OpenUI5.pdf'; } return bIsDevVersion ? 'https://he...
javascript
function () { var oVersionModel = this.getModel("versionData"), bIsDevVersion = oVersionModel.getProperty('/isDevVersion'), bIsOpenUI5 = oVersionModel.getProperty('/isOpenUI5'); if (bIsOpenUI5) { return 'https://help.sap.com/OpenUI5_PDF/OpenUI5.pdf'; } return bIsDevVersion ? 'https://he...
[ "function", "(", ")", "{", "var", "oVersionModel", "=", "this", ".", "getModel", "(", "\"versionData\"", ")", ",", "bIsDevVersion", "=", "oVersionModel", ".", "getProperty", "(", "'/isDevVersion'", ")", ",", "bIsOpenUI5", "=", "oVersionModel", ".", "getProperty"...
Determines the downloaded PDF's file location. @returns {string} The location of the PDF file @private
[ "Determines", "the", "downloaded", "PDF", "s", "file", "location", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js#L83-L93
train
Returns the url of the PDF file
[ 30522, 3853, 1006, 1007, 1063, 13075, 15849, 3258, 5302, 9247, 1027, 2023, 1012, 2131, 5302, 9247, 1006, 1000, 2544, 2850, 2696, 1000, 1007, 1010, 20377, 24844, 27774, 1027, 15849, 3258, 5302, 9247, 1012, 2131, 21572, 4842, 3723, 1006, 1005...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/dom/units/Rem.js
function(vPx) { assert(((typeof vPx === "string") && (vPx !== "") && !isNaN(parseFloat(vPx)) && (typeof parseFloat(vPx) === "number")) || ((typeof vPx === "number") && !isNaN(vPx)), 'Rem.fromPx: either the "vPx" parameter must be an integer, or a string e.g.: "16px"'); return parseFloat(vPx) / getRootFontSize(); ...
javascript
function(vPx) { assert(((typeof vPx === "string") && (vPx !== "") && !isNaN(parseFloat(vPx)) && (typeof parseFloat(vPx) === "number")) || ((typeof vPx === "number") && !isNaN(vPx)), 'Rem.fromPx: either the "vPx" parameter must be an integer, or a string e.g.: "16px"'); return parseFloat(vPx) / getRootFontSize(); ...
[ "function", "(", "vPx", ")", "{", "assert", "(", "(", "(", "typeof", "vPx", "===", "\"string\"", ")", "&&", "(", "vPx", "!==", "\"\"", ")", "&&", "!", "isNaN", "(", "parseFloat", "(", "vPx", ")", ")", "&&", "(", "typeof", "parseFloat", "(", "vPx", ...
Convert <code>px</code> values to <code>rem</code>. @param {string|float} vPx The value in <code>px</code> units. E.g.: <code>"16px"</code> or <code>16</code> @returns {float} The converted value in <code>rem</code> units. E.g.: <code>1</code> @private @ui5-restricted sap.m
[ "Convert", "<code", ">", "px<", "/", "code", ">", "values", "to", "<code", ">", "rem<", "/", "code", ">", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/dom/units/Rem.js#L38-L41
train
Converts a px value to a pixel value
[ 30522, 3853, 1006, 21210, 2595, 1007, 1063, 20865, 1006, 1006, 1006, 2828, 11253, 21210, 2595, 1027, 1027, 1027, 1000, 5164, 1000, 1007, 1004, 1004, 1006, 21210, 2595, 999, 1027, 1027, 1000, 1000, 1007, 1004, 1004, 999, 3475, 2319, 1006, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
eslint/eslint
lib/rules/padding-line-between-statements.js
match
function match(node, type) { let innerStatementNode = node; while (innerStatementNode.type === "LabeledStatement") { innerStatementNode = innerStatementNode.body; } if (Array.isArray(type)) { return type.some(match.bind(null, innerStatemen...
javascript
function match(node, type) { let innerStatementNode = node; while (innerStatementNode.type === "LabeledStatement") { innerStatementNode = innerStatementNode.body; } if (Array.isArray(type)) { return type.some(match.bind(null, innerStatemen...
[ "function", "match", "(", "node", ",", "type", ")", "{", "let", "innerStatementNode", "=", "node", ";", "while", "(", "innerStatementNode", ".", "type", "===", "\"LabeledStatement\"", ")", "{", "innerStatementNode", "=", "innerStatementNode", ".", "body", ";", ...
Checks whether the given node matches the given type. @param {ASTNode} node The statement node to check. @param {string|string[]} type The statement type to check. @returns {boolean} `true` if the statement node matched the type. @private
[ "Checks", "whether", "the", "given", "node", "matches", "the", "given", "type", "." ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/padding-line-between-statements.js#L520-L530
train
Check if node matches type
[ 30522, 3853, 2674, 1006, 13045, 1010, 2828, 1007, 1063, 2292, 5110, 9153, 18532, 4765, 3630, 3207, 1027, 13045, 1025, 2096, 1006, 5110, 9153, 18532, 4765, 3630, 3207, 1012, 2828, 1027, 1027, 1027, 1000, 12599, 9153, 18532, 4765, 1000, 1007,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
advance
function advance(sExpectedTokenId) { var oToken = aTokens[iNextToken]; if (sExpectedTokenId) { if (!oToken) { error("Expected " + sExpectedTokenId + " but instead saw end of input", sInput); } else if (oToken.id !== sExpectedTokenId) { error("Expected " + sExpectedTokenId + " but instead ...
javascript
function advance(sExpectedTokenId) { var oToken = aTokens[iNextToken]; if (sExpectedTokenId) { if (!oToken) { error("Expected " + sExpectedTokenId + " but instead saw end of input", sInput); } else if (oToken.id !== sExpectedTokenId) { error("Expected " + sExpectedTokenId + " but instead ...
[ "function", "advance", "(", "sExpectedTokenId", ")", "{", "var", "oToken", "=", "aTokens", "[", "iNextToken", "]", ";", "if", "(", "sExpectedTokenId", ")", "{", "if", "(", "!", "oToken", ")", "{", "error", "(", "\"Expected \"", "+", "sExpectedTokenId", "+"...
Returns the next token in the array of tokens and advances the index in this array. Throws an error if the next token's ID is not equal to the optional <code>sExpectedTokenId</code>. @param {string} [sExpectedTokenId] - the expected id of the next token @returns {object} - the next token or undefined if all tokens have...
[ "Returns", "the", "next", "token", "in", "the", "array", "of", "tokens", "and", "advances", "the", "index", "in", "this", "array", ".", "Throws", "an", "error", "if", "the", "next", "token", "s", "ID", "is", "not", "equal", "to", "the", "optional", "<c...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L734-L750
train
Advance to next token
[ 30522, 3853, 5083, 1006, 3348, 5051, 10985, 18715, 18595, 2094, 1007, 1063, 13075, 27178, 11045, 2078, 1027, 2012, 11045, 3619, 1031, 1999, 10288, 9284, 7520, 1033, 1025, 2065, 1006, 3348, 5051, 10985, 18715, 18595, 2094, 1007, 1063, 2065, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
dcloudio/mui
examples/login/libs/easymob-webim-sdk/strophe-custom-2.0.0.js
function(message) { var elem, data; // check for closing stream var close = '<close xmlns="urn:ietf:params:xml:ns:xmpp-framing" />'; if (message.data === close) { this._conn.rawInput(close); this._conn.xmlInput(message); if (!this._conn.disconne...
javascript
function(message) { var elem, data; // check for closing stream var close = '<close xmlns="urn:ietf:params:xml:ns:xmpp-framing" />'; if (message.data === close) { this._conn.rawInput(close); this._conn.xmlInput(message); if (!this._conn.disconne...
[ "function", "(", "message", ")", "{", "var", "elem", ",", "data", ";", "// check for closing stream\r", "var", "close", "=", "'<close xmlns=\"urn:ietf:params:xml:ns:xmpp-framing\" />'", ";", "if", "(", "message", ".", "data", "===", "close", ")", "{", "this", ".",...
PrivateFunction: _onMessage _Private_ function to handle websockets messages. This function parses each of the messages as if they are full documents. [TODO : We may actually want to use a SAX Push parser]. Since all XMPP traffic starts with "<stream:stream version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stre...
[ "PrivateFunction", ":", "_onMessage", "_Private_", "function", "to", "handle", "websockets", "messages", "." ]
ff74c90a1671a552f3604b1288bf38a4126312d0
https://github.com/dcloudio/mui/blob/ff74c90a1671a552f3604b1288bf38a4126312d0/examples/login/libs/easymob-webim-sdk/strophe-custom-2.0.0.js#L5130-L5168
train
Handle message from the device
[ 30522, 3853, 1006, 4471, 1007, 1063, 13075, 3449, 6633, 1010, 2951, 1025, 1013, 1013, 4638, 2005, 5494, 5460, 13075, 2485, 1027, 1005, 1026, 2485, 20950, 3619, 1027, 1000, 24471, 2078, 1024, 29464, 24475, 1024, 11498, 5244, 1024, 20950, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
goldfire/howler.js
examples/player/player.js
function(direction) { var self = this; // Get the next track based on the direction of the track. var index = 0; if (direction === 'prev') { index = self.index - 1; if (index < 0) { index = self.playlist.length - 1; } } else { index = self.index + 1; if (index ...
javascript
function(direction) { var self = this; // Get the next track based on the direction of the track. var index = 0; if (direction === 'prev') { index = self.index - 1; if (index < 0) { index = self.playlist.length - 1; } } else { index = self.index + 1; if (index ...
[ "function", "(", "direction", ")", "{", "var", "self", "=", "this", ";", "// Get the next track based on the direction of the track.", "var", "index", "=", "0", ";", "if", "(", "direction", "===", "'prev'", ")", "{", "index", "=", "self", ".", "index", "-", ...
Skip to the next or previous track. @param {String} direction 'next' or 'prev'.
[ "Skip", "to", "the", "next", "or", "previous", "track", "." ]
030db918dd8ce640afd57e172418472497e8f113
https://github.com/goldfire/howler.js/blob/030db918dd8ce640afd57e172418472497e8f113/examples/player/player.js#L142-L160
train
Get the next track in the list
[ 30522, 3853, 1006, 3257, 1007, 1063, 13075, 2969, 1027, 2023, 1025, 1013, 1013, 2131, 1996, 2279, 2650, 2241, 2006, 1996, 3257, 1997, 1996, 2650, 1012, 13075, 5950, 1027, 1014, 1025, 2065, 1006, 3257, 1027, 1027, 1027, 1005, 3653, 2615, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
chartjs/Chart.js
src/core/core.interaction.js
getDistanceMetricForAxis
function getDistanceMetricForAxis(axis) { var useX = axis.indexOf('x') !== -1; var useY = axis.indexOf('y') !== -1; return function(pt1, pt2) { var deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0; var deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0; return Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2)); }; }
javascript
function getDistanceMetricForAxis(axis) { var useX = axis.indexOf('x') !== -1; var useY = axis.indexOf('y') !== -1; return function(pt1, pt2) { var deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0; var deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0; return Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2)); }; }
[ "function", "getDistanceMetricForAxis", "(", "axis", ")", "{", "var", "useX", "=", "axis", ".", "indexOf", "(", "'x'", ")", "!==", "-", "1", ";", "var", "useY", "=", "axis", ".", "indexOf", "(", "'y'", ")", "!==", "-", "1", ";", "return", "function",...
Get a distance metric function for two points based on the axis mode setting @param {string} axis - the axis mode. x|y|xy
[ "Get", "a", "distance", "metric", "function", "for", "two", "points", "based", "on", "the", "axis", "mode", "setting" ]
f093c36574d290330ed623e60fbd070421c730d5
https://github.com/chartjs/Chart.js/blob/f093c36574d290330ed623e60fbd070421c730d5/src/core/core.interaction.js#L100-L109
train
Returns a function that returns the distance between two points
[ 30522, 3853, 2131, 10521, 26897, 12589, 29278, 8528, 2483, 1006, 8123, 1007, 1063, 13075, 2224, 2595, 1027, 8123, 1012, 5950, 11253, 1006, 1005, 1060, 1005, 1007, 999, 1027, 1027, 1011, 1015, 1025, 13075, 2224, 2100, 1027, 8123, 1012, 5950,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
TryGhost/Ghost
core/server/api/v0.1/subscribers.js
doQuery
function doQuery(options) { return models.Subscriber.findPage(options) .then(({data, meta}) => { return { subscribers: data.map(model => model.toJSON(options)), meta: meta }; }); }
javascript
function doQuery(options) { return models.Subscriber.findPage(options) .then(({data, meta}) => { return { subscribers: data.map(model => model.toJSON(options)), meta: meta }; }); }
[ "function", "doQuery", "(", "options", ")", "{", "return", "models", ".", "Subscriber", ".", "findPage", "(", "options", ")", ".", "then", "(", "(", "{", "data", ",", "meta", "}", ")", "=>", "{", "return", "{", "subscribers", ":", "data", ".", "map",...
### Model Query Make the call to the Model layer @param {Object} options @returns {Object} options
[ "###", "Model", "Query", "Make", "the", "call", "to", "the", "Model", "layer" ]
bb7bb55cf3e60af99ebbc56099928827b58461bc
https://github.com/TryGhost/Ghost/blob/bb7bb55cf3e60af99ebbc56099928827b58461bc/core/server/api/v0.1/subscribers.js#L35-L43
train
Query the database for the subscribers
[ 30522, 3853, 2079, 4226, 2854, 1006, 7047, 1007, 1063, 2709, 4275, 1012, 4942, 29234, 2099, 1012, 2424, 13704, 1006, 7047, 1007, 1012, 2059, 1006, 1006, 1063, 2951, 1010, 18804, 1065, 1007, 1027, 1028, 1063, 2709, 1063, 17073, 1024, 2951, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/util/DraftEnabledMockServer.js
function(oEvent) { var oXhr = oEvent.getParameter("oXhr"); var oEntry = jQuery.sap.sjax({ url: oXhr.url, dataType: "json" }).data.d; // navigate to draft nodes and delete nodes for (var i = 0; i < this._oDraftMetadata.draftNodes.length; i++) { for (var navprop in this._mEntitySets[thi...
javascript
function(oEvent) { var oXhr = oEvent.getParameter("oXhr"); var oEntry = jQuery.sap.sjax({ url: oXhr.url, dataType: "json" }).data.d; // navigate to draft nodes and delete nodes for (var i = 0; i < this._oDraftMetadata.draftNodes.length; i++) { for (var navprop in this._mEntitySets[thi...
[ "function", "(", "oEvent", ")", "{", "var", "oXhr", "=", "oEvent", ".", "getParameter", "(", "\"oXhr\"", ")", ";", "var", "oEntry", "=", "jQuery", ".", "sap", ".", "sjax", "(", "{", "url", ":", "oXhr", ".", "url", ",", "dataType", ":", "\"json\"", ...
callback function to update draft specific properties pre deletion
[ "callback", "function", "to", "update", "draft", "specific", "properties", "pre", "deletion" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/DraftEnabledMockServer.js#L37-L64
train
callback function for the delete event
[ 30522, 3853, 1006, 1051, 18697, 3372, 1007, 1063, 13075, 23060, 8093, 1027, 1051, 18697, 3372, 1012, 2131, 28689, 22828, 1006, 1000, 23060, 8093, 1000, 1007, 1025, 13075, 1051, 4765, 2854, 1027, 1046, 4226, 2854, 1012, 20066, 1012, 1055, 39...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aframevr/aframe
src/components/hand-controls.js
function (gesture, lastGesture, reverse) { var clip; var fromAction; var mesh = this.el.getObject3D('mesh'); var toAction; if (!mesh) { return; } // Stop all current animations. mesh.mixer.stopAllAction(); // Grab clip action. clip = this.getClip(gesture); toAction = mesh.mixe...
javascript
function (gesture, lastGesture, reverse) { var clip; var fromAction; var mesh = this.el.getObject3D('mesh'); var toAction; if (!mesh) { return; } // Stop all current animations. mesh.mixer.stopAllAction(); // Grab clip action. clip = this.getClip(gesture); toAction = mesh.mixe...
[ "function", "(", "gesture", ",", "lastGesture", ",", "reverse", ")", "{", "var", "clip", ";", "var", "fromAction", ";", "var", "mesh", "=", "this", ".", "el", ".", "getObject3D", "(", "'mesh'", ")", ";", "var", "toAction", ";", "if", "(", "!", "mesh"...
Play hand animation based on button state. @param {string} gesture - Name of the animation as specified by the model. @param {string} lastGesture - Previous pose. @param {boolean} reverse - Whether animation should play in reverse.
[ "Play", "hand", "animation", "based", "on", "button", "state", "." ]
24acc78a7299a4cdfe3ef617f4d40ddf6275c992
https://github.com/aframevr/aframe/blob/24acc78a7299a4cdfe3ef617f4d40ddf6275c992/src/components/hand-controls.js#L326-L363
train
Animate the current animation to the given gesture.
[ 30522, 3853, 1006, 9218, 1010, 2197, 8449, 11244, 1010, 7901, 1007, 1063, 13075, 12528, 1025, 13075, 2013, 18908, 3258, 1025, 13075, 20437, 1027, 2023, 1012, 3449, 1012, 2131, 16429, 20614, 29097, 1006, 1005, 20437, 1005, 1007, 1025, 13075, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
LLK/scratch-blocks
blocks_vertical/motion.js
function() { this.jsonInit({ "message0": Blockly.Msg.MOTION_ALIGNSCENE, "args0": [ { "type": "field_dropdown", "name": "ALIGNMENT", "options": [ [Blockly.Msg.MOTION_ALIGNSCENE_BOTTOMLEFT, 'bottom-left'], [Blockly.Msg.MOTION_ALIGNSCENE_BOTTOMR...
javascript
function() { this.jsonInit({ "message0": Blockly.Msg.MOTION_ALIGNSCENE, "args0": [ { "type": "field_dropdown", "name": "ALIGNMENT", "options": [ [Blockly.Msg.MOTION_ALIGNSCENE_BOTTOMLEFT, 'bottom-left'], [Blockly.Msg.MOTION_ALIGNSCENE_BOTTOMR...
[ "function", "(", ")", "{", "this", ".", "jsonInit", "(", "{", "\"message0\"", ":", "Blockly", ".", "Msg", ".", "MOTION_ALIGNSCENE", ",", "\"args0\"", ":", "[", "{", "\"type\"", ":", "\"field_dropdown\"", ",", "\"name\"", ":", "\"ALIGNMENT\"", ",", "\"options...
Block to change the stage's scrolling alignment. Does not actually do anything. This is an obsolete block that is implemented for compatibility with Scratch 2.0 projects. @this Blockly.Block
[ "Block", "to", "change", "the", "stage", "s", "scrolling", "alignment", ".", "Does", "not", "actually", "do", "anything", ".", "This", "is", "an", "obsolete", "block", "that", "is", "implemented", "for", "compatibility", "with", "Scratch", "2", ".", "0", "...
455b2a854435c0a67da1da92320ddc3ec3e2b799
https://github.com/LLK/scratch-blocks/blob/455b2a854435c0a67da1da92320ddc3ec3e2b799/blocks_vertical/motion.js#L532-L551
train
Block for the ambient alignment section.
[ 30522, 3853, 1006, 1007, 1063, 2023, 1012, 1046, 3385, 5498, 2102, 1006, 1063, 1000, 4471, 2692, 1000, 1024, 3796, 2135, 1012, 5796, 2290, 1012, 4367, 1035, 25705, 11020, 8625, 1010, 1000, 12098, 5620, 2692, 1000, 1024, 1031, 1063, 1000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js
function (oInterface, oPathValue) { var sBindingPath = oPathValue.value, oConstraints = {}, oExclusiveAnnotation, oIsDigitSequence, oMinMaxAnnotation, oModel = oInterface.getModel(), oPathValueInterface = { getModel : function () { return oModel; }, getPath : function () ...
javascript
function (oInterface, oPathValue) { var sBindingPath = oPathValue.value, oConstraints = {}, oExclusiveAnnotation, oIsDigitSequence, oMinMaxAnnotation, oModel = oInterface.getModel(), oPathValueInterface = { getModel : function () { return oModel; }, getPath : function () ...
[ "function", "(", "oInterface", ",", "oPathValue", ")", "{", "var", "sBindingPath", "=", "oPathValue", ".", "value", ",", "oConstraints", "=", "{", "}", ",", "oExclusiveAnnotation", ",", "oIsDigitSequence", ",", "oMinMaxAnnotation", ",", "oModel", "=", "oInterfac...
Handling of "14.5.12 Expression edm:Path" and "14.5.13 Expression edm:PropertyPath"; embedded within an entity set or entity type (see {@link Basics.followPath}). @param {sap.ui.core.util.XMLPreprocessor.IContext|sap.ui.model.Context} oInterface the callback interface related to the current formatter call @param {obje...
[ "Handling", "of", "14", ".", "5", ".", "12", "Expression", "edm", ":", "Path", "and", "14", ".", "5", ".", "13", "Expression", "edm", ":", "PropertyPath", ";", "embedded", "within", "an", "entity", "set", "or", "entity", "type", "(", "see", "{", "@li...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js#L708-L788
train
Returns the binding result
[ 30522, 3853, 1006, 1051, 18447, 2121, 12172, 1010, 6728, 8988, 10175, 5657, 1007, 1063, 13075, 24829, 22254, 2075, 15069, 1027, 6728, 8988, 10175, 5657, 1012, 3643, 1010, 1051, 8663, 20528, 18447, 2015, 1027, 1063, 1065, 1010, 1051, 10288, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/editor/CodeHintManager.js
_getProvidersForLanguageId
function _getProvidersForLanguageId(languageId) { var providers = hintProviders[languageId] || hintProviders.all; // Exclude providers that are explicitly disabled in the preferences. // All code hint providers that do not have their constructor // names listed in the preferences are en...
javascript
function _getProvidersForLanguageId(languageId) { var providers = hintProviders[languageId] || hintProviders.all; // Exclude providers that are explicitly disabled in the preferences. // All code hint providers that do not have their constructor // names listed in the preferences are en...
[ "function", "_getProvidersForLanguageId", "(", "languageId", ")", "{", "var", "providers", "=", "hintProviders", "[", "languageId", "]", "||", "hintProviders", ".", "all", ";", "// Exclude providers that are explicitly disabled in the preferences.", "// All code hint providers ...
Return the array of hint providers for the given language id. This gets called (potentially) on every keypress. So, it should be fast. @param {!string} languageId @return {?Array.<{provider: Object, priority: number}>}
[ "Return", "the", "array", "of", "hint", "providers", "for", "the", "given", "language", "id", ".", "This", "gets", "called", "(", "potentially", ")", "on", "every", "keypress", ".", "So", "it", "should", "be", "fast", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/editor/CodeHintManager.js#L356-L366
train
Returns a list of code hint providers for a given language.
[ 30522, 3853, 1035, 2131, 21572, 17258, 2545, 29278, 25023, 6692, 3351, 3593, 1006, 2653, 3593, 1007, 1063, 13075, 11670, 1027, 9374, 21572, 17258, 2545, 1031, 2653, 3593, 1033, 1064, 1064, 9374, 21572, 17258, 2545, 1012, 2035, 1025, 1013, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pagekit/vue-resource
dist/vue-resource.esm.js
template
function template (options) { var variables = [], url = expand(options.url, options.params, variables); variables.forEach(function (key) { delete options.params[key]; }); return url; }
javascript
function template (options) { var variables = [], url = expand(options.url, options.params, variables); variables.forEach(function (key) { delete options.params[key]; }); return url; }
[ "function", "template", "(", "options", ")", "{", "var", "variables", "=", "[", "]", ",", "url", "=", "expand", "(", "options", ".", "url", ",", "options", ".", "params", ",", "variables", ")", ";", "variables", ".", "forEach", "(", "function", "(", ...
URL Template (RFC 6570) Transform.
[ "URL", "Template", "(", "RFC", "6570", ")", "Transform", "." ]
fe268fa1d6053ede5f34aef9a11e1a424a70446c
https://github.com/pagekit/vue-resource/blob/fe268fa1d6053ede5f34aef9a11e1a424a70446c/dist/vue-resource.esm.js#L637-L646
train
template function for the
[ 30522, 3853, 23561, 1006, 7047, 1007, 1063, 13075, 10857, 1027, 1031, 1033, 1010, 24471, 2140, 1027, 7818, 1006, 7047, 1012, 24471, 2140, 1010, 7047, 1012, 11498, 5244, 1010, 10857, 1007, 1025, 10857, 1012, 18921, 6776, 1006, 3853, 1006, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
angular/material
src/components/panel/panel.spec.js
openPanel
function openPanel(preset, opt_config) { // TODO(ErinCoughlan): Investigate why panelRef.open() doesn't return // panelRef. var openPromise; if (panelRef) { openPromise = panelRef.open(); } else { openPromise = $mdPanel.open(preset, opt_config); } openPromise.then(function(crea...
javascript
function openPanel(preset, opt_config) { // TODO(ErinCoughlan): Investigate why panelRef.open() doesn't return // panelRef. var openPromise; if (panelRef) { openPromise = panelRef.open(); } else { openPromise = $mdPanel.open(preset, opt_config); } openPromise.then(function(crea...
[ "function", "openPanel", "(", "preset", ",", "opt_config", ")", "{", "// TODO(ErinCoughlan): Investigate why panelRef.open() doesn't return", "// panelRef.", "var", "openPromise", ";", "if", "(", "panelRef", ")", "{", "openPromise", "=", "panelRef", ".", "open", "(", ...
Opens the panel. If a config value is passed, creates a new panelRef using $mdPanel.open(config); Otherwise, called open on the panelRef, assuming one has already been created. @param {!Object=} opt_config
[ "Opens", "the", "panel", ".", "If", "a", "config", "value", "is", "passed", "creates", "a", "new", "panelRef", "using", "$mdPanel", ".", "open", "(", "config", ")", ";", "Otherwise", "called", "open", "on", "the", "panelRef", "assuming", "one", "has", "a...
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/panel/panel.spec.js#L3423-L3440
train
Open a panel
[ 30522, 3853, 2330, 9739, 2884, 1006, 3653, 13462, 1010, 23569, 1035, 9530, 8873, 2290, 1007, 1063, 1013, 1013, 28681, 2080, 1006, 11781, 3597, 8953, 5802, 1007, 1024, 8556, 2339, 5997, 2890, 2546, 1012, 2330, 1006, 1007, 2987, 1005, 1056, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/JSUtils/Session.js
Session
function Session(editor) { this.editor = editor; this.path = editor.document.file.fullPath; this.ternHints = []; this.ternGuesses = null; this.fnType = null; this.builtins = null; }
javascript
function Session(editor) { this.editor = editor; this.path = editor.document.file.fullPath; this.ternHints = []; this.ternGuesses = null; this.fnType = null; this.builtins = null; }
[ "function", "Session", "(", "editor", ")", "{", "this", ".", "editor", "=", "editor", ";", "this", ".", "path", "=", "editor", ".", "document", ".", "file", ".", "fullPath", ";", "this", ".", "ternHints", "=", "[", "]", ";", "this", ".", "ternGuesses...
Session objects encapsulate state associated with a hinting session and provide methods for updating and querying the session. @constructor @param {Editor} editor - the editor context for the session
[ "Session", "objects", "encapsulate", "state", "associated", "with", "a", "hinting", "session", "and", "provide", "methods", "for", "updating", "and", "querying", "the", "session", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/JSUtils/Session.js#L45-L52
train
Session constructor.
[ 30522, 3853, 5219, 1006, 3559, 1007, 1063, 2023, 1012, 3559, 1027, 3559, 1025, 2023, 1012, 4130, 1027, 3559, 1012, 6254, 1012, 5371, 1012, 2440, 15069, 1025, 2023, 1012, 28774, 25311, 18447, 2015, 1027, 1031, 1033, 1025, 2023, 1012, 28774, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/editor/Editor.js
_clearMessagePopover
function _clearMessagePopover() { if (self._$messagePopover && self._$messagePopover.length > 0) { // self._$messagePopover.remove() is done by PopUpManager self._$messagePopover = null; } _removeListeners(); }
javascript
function _clearMessagePopover() { if (self._$messagePopover && self._$messagePopover.length > 0) { // self._$messagePopover.remove() is done by PopUpManager self._$messagePopover = null; } _removeListeners(); }
[ "function", "_clearMessagePopover", "(", ")", "{", "if", "(", "self", ".", "_$messagePopover", "&&", "self", ".", "_$messagePopover", ".", "length", ">", "0", ")", "{", "// self._$messagePopover.remove() is done by PopUpManager", "self", ".", "_$messagePopover", "=", ...
PopUpManager.removePopUp() callback
[ "PopUpManager", ".", "removePopUp", "()", "callback" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/editor/Editor.js#L1854-L1860
train
Clear the message popover
[ 30522, 3853, 1035, 3154, 7834, 3736, 3351, 16340, 7840, 1006, 1007, 1063, 2065, 1006, 2969, 1012, 1035, 1002, 4471, 16340, 7840, 1004, 1004, 2969, 1012, 30524, 16340, 7840, 1012, 6366, 1006, 1007, 2003, 2589, 2011, 3769, 6279, 24805, 4590, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
angular/material
src/components/virtualRepeat/virtual-repeater.js
VirtualRepeatDirective
function VirtualRepeatDirective($parse) { return { controller: VirtualRepeatController, priority: 1000, require: ['mdVirtualRepeat', '^^mdVirtualRepeatContainer'], restrict: 'A', terminal: true, transclude: 'element', compile: function VirtualRepeatCompile($element, $attrs) { var exp...
javascript
function VirtualRepeatDirective($parse) { return { controller: VirtualRepeatController, priority: 1000, require: ['mdVirtualRepeat', '^^mdVirtualRepeatContainer'], restrict: 'A', terminal: true, transclude: 'element', compile: function VirtualRepeatCompile($element, $attrs) { var exp...
[ "function", "VirtualRepeatDirective", "(", "$parse", ")", "{", "return", "{", "controller", ":", "VirtualRepeatController", ",", "priority", ":", "1000", ",", "require", ":", "[", "'mdVirtualRepeat'", ",", "'^^mdVirtualRepeatContainer'", "]", ",", "restrict", ":", ...
@ngdoc directive @name mdVirtualRepeat @module material.components.virtualRepeat @restrict A @priority 1000 @description The `md-virtual-repeat` attribute is applied to a template that is repeated using virtual scrolling. This provides smooth and performant scrolling through very large lists of elements. Virtual repea...
[ "@ngdoc", "directive", "@name", "mdVirtualRepeat", "@module", "material", ".", "components", ".", "virtualRepeat", "@restrict", "A", "@priority", "1000", "@description", "The", "md", "-", "virtual", "-", "repeat", "attribute", "is", "applied", "to", "a", "template...
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/virtualRepeat/virtual-repeater.js#L513-L533
train
VirtualRepeat directive.
[ 30522, 3853, 7484, 2890, 5051, 4017, 4305, 2890, 15277, 1006, 1002, 11968, 3366, 1007, 1063, 2709, 1063, 11486, 1024, 7484, 2890, 5051, 4017, 8663, 13181, 10820, 1010, 9470, 1024, 6694, 1010, 5478, 1024, 1031, 1005, 9108, 21663, 26302, 2097...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-js
lib/event-stream/int64.js
negate
function negate(bytes) { for (var i = 0; i < 8; i++) { bytes[i] ^= 0xFF; } for (var i = 7; i > -1; i--) { bytes[i]++; if (bytes[i] !== 0) { break; } } }
javascript
function negate(bytes) { for (var i = 0; i < 8; i++) { bytes[i] ^= 0xFF; } for (var i = 7; i > -1; i--) { bytes[i]++; if (bytes[i] !== 0) { break; } } }
[ "function", "negate", "(", "bytes", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "8", ";", "i", "++", ")", "{", "bytes", "[", "i", "]", "^=", "0xFF", ";", "}", "for", "(", "var", "i", "=", "7", ";", "i", ">", "-", "1", ";"...
@param {Buffer} bytes @api private
[ "@param", "{", "Buffer", "}", "bytes" ]
c23e5f0edd150f8885267e5f7c8a564f8e6e8562
https://github.com/aws/aws-sdk-js/blob/c23e5f0edd150f8885267e5f7c8a564f8e6e8562/lib/event-stream/int64.js#L76-L86
train
Negate the given byte array
[ 30522, 3853, 11265, 5867, 1006, 27507, 1007, 1063, 2005, 1006, 13075, 1045, 1027, 1014, 1025, 1045, 1026, 1022, 1025, 1045, 1009, 1009, 1007, 1063, 27507, 1031, 1045, 1033, 1034, 1027, 1014, 2595, 4246, 1025, 1065, 2005, 1006, 13075, 1045, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
laurent22/joplin
ReactNativeClient/lib/import-enex-md-gen.js
simplifyString
function simplifyString(s) { let output = ''; let previousWhite = false; for (let i = 0; i < s.length; i++) { let c = s[i]; let isWhite = isWhiteSpace(c); if (previousWhite && isWhite) { // skip } else { output += c; } previousWhite = isWhite; } while (output.length && isWhiteSpace(output[0])) o...
javascript
function simplifyString(s) { let output = ''; let previousWhite = false; for (let i = 0; i < s.length; i++) { let c = s[i]; let isWhite = isWhiteSpace(c); if (previousWhite && isWhite) { // skip } else { output += c; } previousWhite = isWhite; } while (output.length && isWhiteSpace(output[0])) o...
[ "function", "simplifyString", "(", "s", ")", "{", "let", "output", "=", "''", ";", "let", "previousWhite", "=", "false", ";", "for", "(", "let", "i", "=", "0", ";", "i", "<", "s", ".", "length", ";", "i", "++", ")", "{", "let", "c", "=", "s", ...
Like QString::simpified(), except that it preserves non-breaking spaces (which Evernote uses for identation, etc.)
[ "Like", "QString", "::", "simpified", "()", "except", "that", "it", "preserves", "non", "-", "breaking", "spaces", "(", "which", "Evernote", "uses", "for", "identation", "etc", ".", ")" ]
beb428b246cecba4630a3ca57b472f43c0933a43
https://github.com/laurent22/joplin/blob/beb428b246cecba4630a3ca57b472f43c0933a43/ReactNativeClient/lib/import-enex-md-gen.js#L251-L269
train
simplifies a string
[ 30522, 3853, 21934, 28250, 3367, 4892, 1006, 1055, 1007, 1063, 2292, 6434, 1027, 1005, 1005, 1025, 2292, 3025, 2860, 16584, 2063, 1027, 6270, 1025, 2005, 1006, 2292, 1045, 1027, 1014, 1025, 1045, 1026, 1055, 1012, 3091, 1025, 1045, 1009, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
lib/jsdoc/create-api-index.js
function (oList) { /* Sorting since records */ let aKeys = Object.keys(oList), oSorted = {}; aKeys.sort((a, b) => { let aA = a.split("."), aB = b.split("."); if (a === "noVersion") { return 1; /* No version always at end of list */ } if (b === "noVersion") {...
javascript
function (oList) { /* Sorting since records */ let aKeys = Object.keys(oList), oSorted = {}; aKeys.sort((a, b) => { let aA = a.split("."), aB = b.split("."); if (a === "noVersion") { return 1; /* No version always at end of list */ } if (b === "noVersion") {...
[ "function", "(", "oList", ")", "{", "/* Sorting since records */", "let", "aKeys", "=", "Object", ".", "keys", "(", "oList", ")", ",", "oSorted", "=", "{", "}", ";", "aKeys", ".", "sort", "(", "(", "a", ",", "b", ")", "=>", "{", "let", "aA", "=", ...
/* Lists - modify and cleanup
[ "/", "*", "Lists", "-", "modify", "and", "cleanup" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/lib/jsdoc/create-api-index.js#L378-L408
train
Sort the given list by version
[ 30522, 3853, 1006, 19330, 2923, 1007, 1063, 1013, 1008, 22210, 2144, 2636, 1008, 1013, 2292, 17712, 3240, 2015, 1027, 4874, 1012, 6309, 1006, 19330, 2923, 1007, 1010, 9808, 15613, 1027, 1063, 1065, 1025, 17712, 3240, 2015, 1012, 4066, 1006,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ColorlibHQ/AdminLTE
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
isHtmlNamespace
function isHtmlNamespace(node) { var ns; return typeof node.namespaceURI == UNDEF || ((ns = node.namespaceURI) === null || ns == "http://www.w3.org/1999/xhtml"); }
javascript
function isHtmlNamespace(node) { var ns; return typeof node.namespaceURI == UNDEF || ((ns = node.namespaceURI) === null || ns == "http://www.w3.org/1999/xhtml"); }
[ "function", "isHtmlNamespace", "(", "node", ")", "{", "var", "ns", ";", "return", "typeof", "node", ".", "namespaceURI", "==", "UNDEF", "||", "(", "(", "ns", "=", "node", ".", "namespaceURI", ")", "===", "null", "||", "ns", "==", "\"http://www.w3.org/1999/...
Opera 11 puts HTML elements in the null namespace, it seems, and IE 7 has undefined namespaceURI
[ "Opera", "11", "puts", "HTML", "elements", "in", "the", "null", "namespace", "it", "seems", "and", "IE", "7", "has", "undefined", "namespaceURI" ]
19113c3cbc19a7afe0cfd3158d647064d2d30661
https://github.com/ColorlibHQ/AdminLTE/blob/19113c3cbc19a7afe0cfd3158d647064d2d30661/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js#L560-L563
train
Check if node is an HTML namespace
[ 30522, 3853, 2003, 11039, 19968, 18442, 23058, 1006, 13045, 1007, 1063, 13075, 24978, 1025, 2709, 2828, 11253, 13045, 1012, 3415, 15327, 9496, 1027, 1027, 6151, 12879, 1064, 1064, 1006, 1006, 24978, 1027, 13045, 1012, 3415, 15327, 9496, 1007,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
lib/jsdoc/transform-apijson-for-sdk.js
getLibraryPromise
function getLibraryPromise(oChainObject) { return new Promise(function(oResolve) { fs.readFile(oChainObject.libraryFile, 'utf8', (oError, oData) => { oChainObject.libraryFileData = oData; oResolve(oChainObject); }); }); }
javascript
function getLibraryPromise(oChainObject) { return new Promise(function(oResolve) { fs.readFile(oChainObject.libraryFile, 'utf8', (oError, oData) => { oChainObject.libraryFileData = oData; oResolve(oChainObject); }); }); }
[ "function", "getLibraryPromise", "(", "oChainObject", ")", "{", "return", "new", "Promise", "(", "function", "(", "oResolve", ")", "{", "fs", ".", "readFile", "(", "oChainObject", ".", "libraryFile", ",", "'utf8'", ",", "(", "oError", ",", "oData", ")", "=...
Load .library file @param oChainObject chain return object @returns {Promise} library file promise
[ "Load", ".", "library", "file" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/lib/jsdoc/transform-apijson-for-sdk.js#L768-L775
train
Reads the library file and returns a promise
[ 30522, 3853, 2131, 29521, 19848, 22571, 21716, 5562, 1006, 28166, 8113, 16429, 20614, 1007, 1063, 2709, 2047, 4872, 1006, 3853, 1006, 10848, 19454, 3726, 1007, 1063, 1042, 2015, 1012, 3191, 8873, 2571, 1006, 28166, 8113, 16429, 20614, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/IntervalTrigger.js
function() { clearTimeout(this._delayedCallId); // if interval is active and there are registered listeners var bHasListeners = this._oEventBus._defaultChannel.hasListeners(_EVENT_ID); if (this._iInterval > 0 && bHasListeners) { this._oEventBus.publish(_EVENT_ID); this._delayedCallId = setTimeout(...
javascript
function() { clearTimeout(this._delayedCallId); // if interval is active and there are registered listeners var bHasListeners = this._oEventBus._defaultChannel.hasListeners(_EVENT_ID); if (this._iInterval > 0 && bHasListeners) { this._oEventBus.publish(_EVENT_ID); this._delayedCallId = setTimeout(...
[ "function", "(", ")", "{", "clearTimeout", "(", "this", ".", "_delayedCallId", ")", ";", "// if interval is active and there are registered listeners", "var", "bHasListeners", "=", "this", ".", "_oEventBus", ".", "_defaultChannel", ".", "hasListeners", "(", "_EVENT_ID",...
This is the function that will be used for triggering. @private
[ "This", "is", "the", "function", "that", "will", "be", "used", "for", "triggering", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/IntervalTrigger.js#L50-L60
train
trigger the event
[ 30522, 3853, 1006, 1007, 1063, 3154, 7292, 5833, 1006, 2023, 1012, 1035, 8394, 9289, 21273, 1007, 1025, 1013, 1013, 2065, 13483, 2003, 3161, 1998, 2045, 2024, 5068, 13810, 13075, 1038, 14949, 9863, 24454, 2015, 1027, 2023, 1012, 1035, 1051,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
eslint/eslint
lib/rules/spaced-comment.js
createExceptionsPattern
function createExceptionsPattern(exceptions) { let pattern = ""; /* * A space or an exception pattern sequence. * [] ==> "\s" * ["-"] ==> "(?:\s|\-+$)" * ["-", "="] ==> "(?:\s|(?:\-+|=+)$)" * ["-", "=", "--=="] ==> "(?:\s|(?:\-+|=+|(?:\-\-==)+)$)" =...
javascript
function createExceptionsPattern(exceptions) { let pattern = ""; /* * A space or an exception pattern sequence. * [] ==> "\s" * ["-"] ==> "(?:\s|\-+$)" * ["-", "="] ==> "(?:\s|(?:\-+|=+)$)" * ["-", "=", "--=="] ==> "(?:\s|(?:\-+|=+|(?:\-\-==)+)$)" =...
[ "function", "createExceptionsPattern", "(", "exceptions", ")", "{", "let", "pattern", "=", "\"\"", ";", "/*\n * A space or an exception pattern sequence.\n * [] ==> \"\\s\"\n * [\"-\"] ==> \"(?:\\s|\\-+$)\"\n * [\"-\", \"=\"] ==> \"(?:\\s|(?...
Creates string pattern for exceptions. Generated pattern: 1. A space or an exception pattern sequence. @param {string[]} exceptions - An exception pattern list. @returns {string} A regular expression string for exceptions.
[ "Creates", "string", "pattern", "for", "exceptions", ".", "Generated", "pattern", ":" ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/spaced-comment.js#L58-L92
train
Creates a pattern for the exception patterns.
[ 30522, 3853, 3443, 10288, 24422, 13102, 20097, 2078, 1006, 11790, 1007, 1063, 2292, 5418, 1027, 1000, 1000, 1025, 1013, 1008, 1008, 1037, 2686, 2030, 2019, 6453, 5418, 5537, 1012, 1008, 1031, 1033, 1027, 1027, 1028, 1000, 1032, 1055, 1000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js
_traverseToLastManagedObject
function _traverseToLastManagedObject(aNodeStack) { //Determine last managed object via node stack of getProperty var sMember, i = aNodeStack.length - 1, aParts = []; while (!(aNodeStack[i].node instanceof ManagedObject)) { if (sMember) { aParts.splice(0, 0, sMember); } sMember = aNodeStack[i].path; ...
javascript
function _traverseToLastManagedObject(aNodeStack) { //Determine last managed object via node stack of getProperty var sMember, i = aNodeStack.length - 1, aParts = []; while (!(aNodeStack[i].node instanceof ManagedObject)) { if (sMember) { aParts.splice(0, 0, sMember); } sMember = aNodeStack[i].path; ...
[ "function", "_traverseToLastManagedObject", "(", "aNodeStack", ")", "{", "//Determine last managed object via node stack of getProperty", "var", "sMember", ",", "i", "=", "aNodeStack", ".", "length", "-", "1", ",", "aParts", "=", "[", "]", ";", "while", "(", "!", ...
Traverse in the recorded node stack of an object retrievel to tha last used managed object in oder to be able to get the value/binding to use this for further retrietment @param aNodeStack @returns {array} an array containing: <ul> <li>the last managed object</li> <li>a map with the value of the last direct child and i...
[ "Traverse", "in", "the", "recorded", "node", "stack", "of", "an", "object", "retrievel", "to", "tha", "last", "used", "managed", "object", "in", "oder", "to", "be", "able", "to", "get", "the", "value", "/", "binding", "to", "use", "this", "for", "further...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js#L77-L89
train
Traverse the node stack to the last managed object
[ 30522, 3853, 1035, 20811, 3406, 8523, 22942, 18655, 16429, 20614, 1006, 2019, 19847, 2696, 3600, 1007, 1063, 1013, 1013, 5646, 2197, 3266, 4874, 3081, 13045, 9991, 1997, 2131, 21572, 4842, 3723, 13075, 15488, 6633, 5677, 1010, 1045, 1027, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ColorlibHQ/AdminLTE
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
_wrapMatchesInNode
function _wrapMatchesInNode(textNode) { var parentNode = textNode.parentNode, nodeValue = wysihtml5.lang.string(textNode.data).escapeHTML(), tempElement = _getTempElement(parentNode.ownerDocument); // We need to insert an empty/temporary <span /> to fix IE quirks // Elsewise IE would str...
javascript
function _wrapMatchesInNode(textNode) { var parentNode = textNode.parentNode, nodeValue = wysihtml5.lang.string(textNode.data).escapeHTML(), tempElement = _getTempElement(parentNode.ownerDocument); // We need to insert an empty/temporary <span /> to fix IE quirks // Elsewise IE would str...
[ "function", "_wrapMatchesInNode", "(", "textNode", ")", "{", "var", "parentNode", "=", "textNode", ".", "parentNode", ",", "nodeValue", "=", "wysihtml5", ".", "lang", ".", "string", "(", "textNode", ".", "data", ")", ".", "escapeHTML", "(", ")", ",", "temp...
Replaces the original text nodes with the newly auto-linked dom tree
[ "Replaces", "the", "original", "text", "nodes", "with", "the", "newly", "auto", "-", "linked", "dom", "tree" ]
19113c3cbc19a7afe0cfd3158d647064d2d30661
https://github.com/ColorlibHQ/AdminLTE/blob/19113c3cbc19a7afe0cfd3158d647064d2d30661/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js#L4972-L4987
train
Wrap matches in a node
[ 30522, 3853, 1035, 10236, 18900, 8376, 23111, 10244, 1006, 3793, 3630, 3207, 1007, 1063, 13075, 6687, 3630, 3207, 1027, 3793, 3630, 3207, 1012, 6687, 3630, 3207, 1010, 13045, 10175, 5657, 1027, 1059, 7274, 19190, 21246, 2140, 2629, 1012, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-js
lib/polly/presigner.js
Signer
function Signer(options) { options = options || {}; this.options = options; this.service = options.service; this.bindServiceObject(options); this._operations = {}; }
javascript
function Signer(options) { options = options || {}; this.options = options; this.service = options.service; this.bindServiceObject(options); this._operations = {}; }
[ "function", "Signer", "(", "options", ")", "{", "options", "=", "options", "||", "{", "}", ";", "this", ".", "options", "=", "options", ";", "this", ".", "service", "=", "options", ".", "service", ";", "this", ".", "bindServiceObject", "(", "options", ...
Creates a presigner object with a set of configuration options. @option options params [map] An optional map of parameters to bind to every request sent by this service object. @option options service [AWS.Polly] An optional pre-configured instance of the AWS.Polly service object to use for requests. The object may bo...
[ "Creates", "a", "presigner", "object", "with", "a", "set", "of", "configuration", "options", "." ]
c23e5f0edd150f8885267e5f7c8a564f8e6e8562
https://github.com/aws/aws-sdk-js/blob/c23e5f0edd150f8885267e5f7c8a564f8e6e8562/lib/polly/presigner.js#L18-L24
train
Signer constructor.
[ 30522, 3853, 3696, 2121, 1006, 7047, 1007, 1063, 7047, 1027, 7047, 1064, 1064, 1063, 1065, 1025, 2023, 1012, 7047, 1027, 7047, 1025, 2023, 1012, 2326, 1027, 7047, 1012, 2326, 1025, 2023, 1012, 20817, 2121, 7903, 8780, 2497, 20614, 1006, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_GroupLock.js
_GroupLock
function _GroupLock(sGroupId, bLocked, oOwner, iSerialNumber) { this.sGroupId = sGroupId; this.bLocked = bLocked; this.oOwner = oOwner; // maps a group ID to a promise waiting for it, see waitFor this.mPromiseForGroup = {}; // maps a group ID to the resolve function of the promise above this.mResolveFunct...
javascript
function _GroupLock(sGroupId, bLocked, oOwner, iSerialNumber) { this.sGroupId = sGroupId; this.bLocked = bLocked; this.oOwner = oOwner; // maps a group ID to a promise waiting for it, see waitFor this.mPromiseForGroup = {}; // maps a group ID to the resolve function of the promise above this.mResolveFunct...
[ "function", "_GroupLock", "(", "sGroupId", ",", "bLocked", ",", "oOwner", ",", "iSerialNumber", ")", "{", "this", ".", "sGroupId", "=", "sGroupId", ";", "this", ".", "bLocked", "=", "bLocked", ";", "this", ".", "oOwner", "=", "oOwner", ";", "// maps a grou...
Constructs a potential lock for the given group ID. The group ID may be left empty initially, you can set it later exactly once. A group lock may be created locked or unlocked. If locked, its {@link #waitFor} returns a promise that is resolved when the lock is unlocked. If a locked group lock does not have a group ID y...
[ "Constructs", "a", "potential", "lock", "for", "the", "given", "group", "ID", ".", "The", "group", "ID", "may", "be", "left", "empty", "initially", "you", "can", "set", "it", "later", "exactly", "once", ".", "A", "group", "lock", "may", "be", "created", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_GroupLock.js#L31-L40
train
Constructor for the GroupLock class
[ 30522, 3853, 1035, 2177, 7878, 1006, 22214, 22107, 3593, 1010, 8534, 1010, 1051, 12384, 2121, 1010, 2003, 11610, 19666, 29440, 1007, 1063, 2023, 1012, 22214, 22107, 3593, 1027, 22214, 22107, 3593, 1025, 2023, 1012, 8534, 1027, 8534, 1025, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
summernote/summernote
src/js/base/core/env.js
isFontInstalled
function isFontInstalled(fontName) { const testFontName = fontName === 'Comic Sans MS' ? 'Courier New' : 'Comic Sans MS'; const testText = 'mmmmmmmmmmwwwww'; const testSize = '200px'; var canvas = document.createElement('canvas'); var context = canvas.getContext('2d'); context.font = testSize + " '" + tes...
javascript
function isFontInstalled(fontName) { const testFontName = fontName === 'Comic Sans MS' ? 'Courier New' : 'Comic Sans MS'; const testText = 'mmmmmmmmmmwwwww'; const testSize = '200px'; var canvas = document.createElement('canvas'); var context = canvas.getContext('2d'); context.font = testSize + " '" + tes...
[ "function", "isFontInstalled", "(", "fontName", ")", "{", "const", "testFontName", "=", "fontName", "===", "'Comic Sans MS'", "?", "'Courier New'", ":", "'Comic Sans MS'", ";", "const", "testText", "=", "'mmmmmmmmmmwwwww'", ";", "const", "testSize", "=", "'200px'", ...
eslint-disable-line returns whether font is installed or not. @param {String} fontName @return {Boolean}
[ "eslint", "-", "disable", "-", "line", "returns", "whether", "font", "is", "installed", "or", "not", "." ]
8dcafb8107453006b905ef697a529c42e76beb3f
https://github.com/summernote/summernote/blob/8dcafb8107453006b905ef697a529c42e76beb3f/src/js/base/core/env.js#L10-L25
train
Check if font is installed
[ 30522, 3853, 2003, 14876, 16778, 23808, 24164, 2094, 1006, 15489, 18442, 1007, 1063, 9530, 3367, 3231, 14876, 3372, 18442, 1027, 15489, 18442, 1027, 1027, 1027, 1005, 5021, 20344, 5796, 1005, 1029, 1005, 18092, 2047, 1005, 1024, 1005, 5021, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
nhn/tui.editor
src/js/extensions/table/tableDataHandler.js
createBasicCell
function createBasicCell(rowIndex, colIndex, nodeName) { return { nodeName: nodeName || 'TD', colspan: 1, rowspan: 1, content: BASIC_CELL_CONTENT, elementIndex: { rowIndex, colIndex } }; }
javascript
function createBasicCell(rowIndex, colIndex, nodeName) { return { nodeName: nodeName || 'TD', colspan: 1, rowspan: 1, content: BASIC_CELL_CONTENT, elementIndex: { rowIndex, colIndex } }; }
[ "function", "createBasicCell", "(", "rowIndex", ",", "colIndex", ",", "nodeName", ")", "{", "return", "{", "nodeName", ":", "nodeName", "||", "'TD'", ",", "colspan", ":", "1", ",", "rowspan", ":", "1", ",", "content", ":", "BASIC_CELL_CONTENT", ",", "eleme...
Create basic cell data. @param {number} rowIndex - row index @param {number} colIndex - column index @param {string} nodeName - node name @returns {{ nodeName: string, colspan: number, rowspan: number, content: string }} @ignore
[ "Create", "basic", "cell", "data", "." ]
e75ab08c2a7ab07d1143e318f7cde135c5e3002e
https://github.com/nhn/tui.editor/blob/e75ab08c2a7ab07d1143e318f7cde135c5e3002e/src/js/extensions/table/tableDataHandler.js#L221-L232
train
Creates a cell with the given row and column indices.
[ 30522, 3853, 3443, 22083, 2594, 29109, 2140, 1006, 5216, 22254, 10288, 1010, 6972, 3207, 2595, 1010, 13045, 18442, 1007, 1063, 2709, 1063, 13045, 18442, 1024, 13045, 18442, 1064, 1064, 1005, 14595, 1005, 1010, 8902, 13102, 2319, 1024, 1015, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
nhn/tui.editor
src/js/wysiwygCommands/tableAlignCol.js
getRangeInformation
function getRangeInformation(range, selectionMgr) { const $selectedCells = selectionMgr.getSelectedCells(); let rangeInformation, startCell; if ($selectedCells.length) { rangeInformation = selectionMgr.getSelectionRangeFromTable($selectedCells.first().get(0), $selectedCells.last().get(0)); } else { ...
javascript
function getRangeInformation(range, selectionMgr) { const $selectedCells = selectionMgr.getSelectedCells(); let rangeInformation, startCell; if ($selectedCells.length) { rangeInformation = selectionMgr.getSelectionRangeFromTable($selectedCells.first().get(0), $selectedCells.last().get(0)); } else { ...
[ "function", "getRangeInformation", "(", "range", ",", "selectionMgr", ")", "{", "const", "$selectedCells", "=", "selectionMgr", ".", "getSelectedCells", "(", ")", ";", "let", "rangeInformation", ",", "startCell", ";", "if", "(", "$selectedCells", ".", "length", ...
Get range information @param {Range} range Range object @param {object} selectionMgr Table selection manager @returns {object}
[ "Get", "range", "information" ]
e75ab08c2a7ab07d1143e318f7cde135c5e3002e
https://github.com/nhn/tui.editor/blob/e75ab08c2a7ab07d1143e318f7cde135c5e3002e/src/js/wysiwygCommands/tableAlignCol.js#L115-L129
train
Get selection range information
[ 30522, 3853, 2131, 24388, 12377, 14192, 3370, 1006, 2846, 1010, 4989, 24798, 2099, 1007, 1063, 9530, 3367, 1002, 3479, 29109, 4877, 1027, 4989, 24798, 2099, 1012, 4152, 12260, 10985, 29109, 4877, 1006, 1007, 1025, 2292, 2846, 2378, 14192, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SeleniumHQ/selenium
third_party/js/mozmill/shared-modules/tabs.js
getTabsWithURL
function getTabsWithURL(aUrl) { var tabs = [ ]; var uri = utils.createURI(aUrl, null, null); var wm = Cc["@mozilla.org/appshell/window-mediator;1"]. getService(Ci.nsIWindowMediator); var winEnum = wm.getEnumerator("navigator:browser"); // Iterate through all windows while (winEnum.hasMoreEleme...
javascript
function getTabsWithURL(aUrl) { var tabs = [ ]; var uri = utils.createURI(aUrl, null, null); var wm = Cc["@mozilla.org/appshell/window-mediator;1"]. getService(Ci.nsIWindowMediator); var winEnum = wm.getEnumerator("navigator:browser"); // Iterate through all windows while (winEnum.hasMoreEleme...
[ "function", "getTabsWithURL", "(", "aUrl", ")", "{", "var", "tabs", "=", "[", "]", ";", "var", "uri", "=", "utils", ".", "createURI", "(", "aUrl", ",", "null", ",", "null", ")", ";", "var", "wm", "=", "Cc", "[", "\"@mozilla.org/appshell/window-mediator;1...
Check and return all open tabs with the specified URL @param {string} aUrl URL to check for @returns Array of tabs
[ "Check", "and", "return", "all", "open", "tabs", "with", "the", "specified", "URL" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/tabs.js#L80-L111
train
Get tabs with a given URL
[ 30522, 3853, 2131, 2696, 5910, 24415, 3126, 2140, 1006, 8740, 12190, 1007, 1063, 13075, 21628, 2015, 1027, 1031, 1033, 1025, 13075, 24471, 2072, 1027, 21183, 12146, 1012, 3443, 9496, 1006, 8740, 12190, 1010, 19701, 1010, 19701, 1007, 1025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SheetJS/js-xlsx
xlsx.js
parse_Palette
function parse_Palette(blob) { var ccv = blob.read_shift(2); var o = []; while(ccv-->0) o.push(parse_LongRGB(blob, 8)); return o; }
javascript
function parse_Palette(blob) { var ccv = blob.read_shift(2); var o = []; while(ccv-->0) o.push(parse_LongRGB(blob, 8)); return o; }
[ "function", "parse_Palette", "(", "blob", ")", "{", "var", "ccv", "=", "blob", ".", "read_shift", "(", "2", ")", ";", "var", "o", "=", "[", "]", ";", "while", "(", "ccv", "--", ">", "0", ")", "o", ".", "push", "(", "parse_LongRGB", "(", "blob", ...
/* [MS-XLS] 2.4.188
[ "/", "*", "[", "MS", "-", "XLS", "]", "2", ".", "4", ".", "188" ]
9a6d8a1d3d80c78dad5201fb389316f935279cdc
https://github.com/SheetJS/js-xlsx/blob/9a6d8a1d3d80c78dad5201fb389316f935279cdc/xlsx.js#L6489-L6494
train
Parse palette from blob
[ 30522, 3853, 11968, 3366, 1035, 27396, 1006, 1038, 4135, 2497, 1007, 1063, 13075, 10507, 2615, 1027, 1038, 4135, 2497, 1012, 3191, 1035, 5670, 1006, 1016, 1007, 1025, 13075, 1051, 1027, 1031, 1033, 1025, 2096, 1006, 10507, 2615, 1011, 1011,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/LiveDevelopment/Agents/RemoteFunctions.js
highlightRule
function highlightRule(rule) { hideHighlight(); var i, nodes = window.document.querySelectorAll(rule); for (i = 0; i < nodes.length; i++) { highlight(nodes[i]); } _remoteHighlight.selector = rule; }
javascript
function highlightRule(rule) { hideHighlight(); var i, nodes = window.document.querySelectorAll(rule); for (i = 0; i < nodes.length; i++) { highlight(nodes[i]); } _remoteHighlight.selector = rule; }
[ "function", "highlightRule", "(", "rule", ")", "{", "hideHighlight", "(", ")", ";", "var", "i", ",", "nodes", "=", "window", ".", "document", ".", "querySelectorAll", "(", "rule", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "nodes", ".", "l...
highlight a rule
[ "highlight", "a", "rule" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/LiveDevelopment/Agents/RemoteFunctions.js#L675-L682
train
Highlights a rule
[ 30522, 30524, 14164, 1012, 3091, 1025, 1045, 1009, 1009, 1007, 1063, 12944, 1006, 14164, 1031, 1045, 1033, 1007, 1025, 1065, 1035, 6556, 4048, 5603, 7138, 1012, 27000, 1027, 3627, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oControl, bVisible) { var bOldVisible = this.getVisible(oControl); var vReturnValue = JsControlTreeModifier.setVisible.apply(this, arguments); /* If the visibility changed, record the reversal as undo operation */ if (bOldVisible !== this.getVisible(oControl)){ this._saveUndoOperation("setVi...
javascript
function (oControl, bVisible) { var bOldVisible = this.getVisible(oControl); var vReturnValue = JsControlTreeModifier.setVisible.apply(this, arguments); /* If the visibility changed, record the reversal as undo operation */ if (bOldVisible !== this.getVisible(oControl)){ this._saveUndoOperation("setVi...
[ "function", "(", "oControl", ",", "bVisible", ")", "{", "var", "bOldVisible", "=", "this", ".", "getVisible", "(", "oControl", ")", ";", "var", "vReturnValue", "=", "JsControlTreeModifier", ".", "setVisible", ".", "apply", "(", "this", ",", "arguments", ")",...
Execute the visibility change from parent and record the opposite visibility as undo operation @override
[ "Execute", "the", "visibility", "change", "from", "parent", "and", "record", "the", "opposite", "visibility", "as", "undo", "operation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L77-L88
train
Sets the visibility of the control.
[ 30522, 3853, 1006, 1051, 8663, 13181, 30524, 7028, 1012, 6611, 1006, 2023, 1010, 9918, 1007, 1025, 1013, 1008, 2065, 1996, 16476, 2904, 1010, 2501, 1996, 23163, 2004, 25672, 3169, 1008, 1013, 2065, 1006, 7782, 11365, 7028, 999, 1027, 1027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
jantimon/html-webpack-plugin
lib/html-tags.js
createHtmlTagObject
function createHtmlTagObject (tagName, attributes, innerHTML) { return { tagName: tagName, voidTag: voidTags.indexOf(tagName) !== -1, attributes: attributes || {}, innerHTML: innerHTML }; }
javascript
function createHtmlTagObject (tagName, attributes, innerHTML) { return { tagName: tagName, voidTag: voidTags.indexOf(tagName) !== -1, attributes: attributes || {}, innerHTML: innerHTML }; }
[ "function", "createHtmlTagObject", "(", "tagName", ",", "attributes", ",", "innerHTML", ")", "{", "return", "{", "tagName", ":", "tagName", ",", "voidTag", ":", "voidTags", ".", "indexOf", "(", "tagName", ")", "!==", "-", "1", ",", "attributes", ":", "attr...
Static helper to create a tag object to be get injected into the dom @param {string} tagName the name of the tage e.g. 'div' @param {{[attributeName: string]: string|boolean}} [attributes] tag attributes e.g. `{ 'class': 'example', disabled: true }` @param {string} [innerHTML] @returns {HtmlTagObject}
[ "Static", "helper", "to", "create", "a", "tag", "object", "to", "be", "get", "injected", "into", "the", "dom" ]
38db64ae8805de37d038e0ee0f6dfa2a26e2163a
https://github.com/jantimon/html-webpack-plugin/blob/38db64ae8805de37d038e0ee0f6dfa2a26e2163a/lib/html-tags.js#L59-L66
train
Create an object that can be used to create a tag object
[ 30522, 3853, 3443, 11039, 19968, 15900, 16429, 20614, 1006, 6415, 18442, 1010, 12332, 1010, 5110, 11039, 19968, 1007, 1063, 2709, 1063, 6415, 18442, 1024, 6415, 18442, 1010, 11675, 15900, 1024, 11675, 15900, 2015, 1012, 5950, 11253, 1006, 641...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
function(sComponentName) { Log.info("CustomizingConfiguration: activateForComponent('" + sComponentName + "')"); var sFullComponentName = sComponentName + ".Component"; sap.ui.requireSync(sFullComponentName.replace(/\./g, "/")); var oCustomizingConfig = ObjectPath.get(sFullComponentName).getMetadata().g...
javascript
function(sComponentName) { Log.info("CustomizingConfiguration: activateForComponent('" + sComponentName + "')"); var sFullComponentName = sComponentName + ".Component"; sap.ui.requireSync(sFullComponentName.replace(/\./g, "/")); var oCustomizingConfig = ObjectPath.get(sFullComponentName).getMetadata().g...
[ "function", "(", "sComponentName", ")", "{", "Log", ".", "info", "(", "\"CustomizingConfiguration: activateForComponent('\"", "+", "sComponentName", "+", "\"')\"", ")", ";", "var", "sFullComponentName", "=", "sComponentName", "+", "\".Component\"", ";", "sap", ".", ...
Activates the Customizing of a component by registering the component configuration in the central customizing configuration. @param {string} sComponentName the name of the component @private
[ "Activates", "the", "Customizing", "of", "a", "component", "by", "registering", "the", "component", "configuration", "in", "the", "central", "customizing", "configuration", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L98-L106
train
Activate customizing for a component
[ 30522, 3853, 1006, 8040, 25377, 5643, 3372, 18442, 1007, 1063, 8833, 1012, 18558, 1006, 1000, 7661, 6026, 8663, 8873, 27390, 3370, 1024, 20544, 29278, 9006, 29513, 3372, 1006, 1005, 1000, 1009, 8040, 25377, 5643, 3372, 18442, 1009, 1000, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js
brackets
function brackets() { for (;;) { oToken = that.advance(); if (!oToken || oToken.id === ';') { that.expected("')'", oToken); } sValue += oToken.value; if (oToken.id === ")") { return; } if (oToken.id === "(") { brackets(); } } }
javascript
function brackets() { for (;;) { oToken = that.advance(); if (!oToken || oToken.id === ';') { that.expected("')'", oToken); } sValue += oToken.value; if (oToken.id === ")") { return; } if (oToken.id === "(") { brackets(); } } }
[ "function", "brackets", "(", ")", "{", "for", "(", ";", ";", ")", "{", "oToken", "=", "that", ".", "advance", "(", ")", ";", "if", "(", "!", "oToken", "||", "oToken", ".", "id", "===", "';'", ")", "{", "that", ".", "expected", "(", "\"')'\"", "...
recursive function that advances and adds to sValue until the matching closing bracket has been consumed
[ "recursive", "function", "that", "advances", "and", "adds", "to", "sValue", "until", "the", "matching", "closing", "bracket", "has", "been", "consumed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L482-L496
train
The following code is used to parse the brackets.
[ 30522, 3853, 19719, 1006, 1007, 1063, 2005, 1006, 1025, 1025, 1007, 1063, 27178, 11045, 2078, 1027, 2008, 1012, 5083, 1006, 1007, 1025, 2065, 1006, 999, 27178, 11045, 2078, 1064, 1064, 27178, 11045, 2078, 1012, 8909, 1027, 1027, 1027, 1005,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
openlayers/openlayers
src/ol/events.js
getListenerMap
function getListenerMap(target, opt_create) { let listenerMap = target.ol_lm; if (!listenerMap && opt_create) { listenerMap = target.ol_lm = {}; } return listenerMap; }
javascript
function getListenerMap(target, opt_create) { let listenerMap = target.ol_lm; if (!listenerMap && opt_create) { listenerMap = target.ol_lm = {}; } return listenerMap; }
[ "function", "getListenerMap", "(", "target", ",", "opt_create", ")", "{", "let", "listenerMap", "=", "target", ".", "ol_lm", ";", "if", "(", "!", "listenerMap", "&&", "opt_create", ")", "{", "listenerMap", "=", "target", ".", "ol_lm", "=", "{", "}", ";",...
Get the lookup of listeners. @param {Object} target Target. @param {boolean=} opt_create If a map should be created if it doesn't exist. @return {!Object<string, Array<EventsKey>>} Map of listeners by event type.
[ "Get", "the", "lookup", "of", "listeners", "." ]
f366eaea522388fb575b11010e69d309164baca7
https://github.com/openlayers/openlayers/blob/f366eaea522388fb575b11010e69d309164baca7/src/ol/events.js#L93-L99
train
Get the listener map for a given target
[ 30522, 3853, 2131, 9863, 24454, 2863, 2361, 1006, 4539, 1010, 23569, 1035, 3443, 1007, 1063, 2292, 19373, 2863, 2361, 1027, 4539, 1012, 19330, 1035, 1048, 2213, 1025, 2065, 1006, 999, 19373, 2863, 2361, 1004, 1004, 23569, 1035, 3443, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/LiveDevelopment/LiveDevelopment.js
onActiveEditorChange
function onActiveEditorChange(event, current, previous) { if (previous && previous.document && CSSUtils.isCSSPreprocessorFile(previous.document.file.fullPath)) { var prevDocUrl = _server && _server.pathToUrl(previous.document.file.fullPath); if (_relatedDocuments && _rel...
javascript
function onActiveEditorChange(event, current, previous) { if (previous && previous.document && CSSUtils.isCSSPreprocessorFile(previous.document.file.fullPath)) { var prevDocUrl = _server && _server.pathToUrl(previous.document.file.fullPath); if (_relatedDocuments && _rel...
[ "function", "onActiveEditorChange", "(", "event", ",", "current", ",", "previous", ")", "{", "if", "(", "previous", "&&", "previous", ".", "document", "&&", "CSSUtils", ".", "isCSSPreprocessorFile", "(", "previous", ".", "document", ".", "file", ".", "fullPath...
If the current editor is for a CSS preprocessor file, then add it to the style sheet so that we can track cursor positions in the editor to show live preview highlighting. For normal CSS we only do highlighting from files we know for sure are referenced by the current live preview document, but for preprocessors we jus...
[ "If", "the", "current", "editor", "is", "for", "a", "CSS", "preprocessor", "file", "then", "add", "it", "to", "the", "style", "sheet", "so", "that", "we", "can", "track", "cursor", "positions", "in", "the", "editor", "to", "show", "live", "preview", "hig...
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/LiveDevelopment/LiveDevelopment.js#L783-L797
train
onActiveEditorChange - On Active Editor change
[ 30522, 3853, 2006, 19620, 2098, 15660, 22305, 2063, 1006, 2724, 1010, 2783, 1010, 3025, 1007, 1063, 2065, 1006, 3025, 1004, 1004, 3025, 1012, 6254, 1004, 1004, 20116, 6342, 3775, 4877, 1012, 2003, 6169, 13102, 2890, 21572, 9623, 21748, 8873...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js
function (oModel, sPath) { var aMatches, aParts = sPath.split('/'), sObjectPath, sRecordType; /** * Processes the property with the given path of the object at <code>sObjectPath</code>. * If it exists and is of type "string", the index at position <code>i</code> in * <code>aParts</code> i...
javascript
function (oModel, sPath) { var aMatches, aParts = sPath.split('/'), sObjectPath, sRecordType; /** * Processes the property with the given path of the object at <code>sObjectPath</code>. * If it exists and is of type "string", the index at position <code>i</code> in * <code>aParts</code> i...
[ "function", "(", "oModel", ",", "sPath", ")", "{", "var", "aMatches", ",", "aParts", "=", "sPath", ".", "split", "(", "'/'", ")", ",", "sObjectPath", ",", "sRecordType", ";", "/**\n\t\t\t * Processes the property with the given path of the object at <code>sObjectPath</c...
Replaces the indexes in the given path by queries in the form <code>[${key}==='value']</code> if possible. Expects the path to start with "/dataServices/schema/<i>/". @param {sap.ui.model.Model} oModel the model the path belongs to @param {string} sPath the path, where to replace the indexes @returns {string} the repl...
[ "Replaces", "the", "indexes", "in", "the", "given", "path", "by", "queries", "in", "the", "form", "<code", ">", "[", "$", "{", "key", "}", "===", "value", "]", "<", "/", "code", ">", "if", "possible", ".", "Expects", "the", "path", "to", "start", "...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js#L802-L859
train
Checks if the given property path is a valid index in the given model.
[ 30522, 3853, 1006, 18168, 10244, 2140, 1010, 14690, 2232, 1007, 1063, 13075, 25933, 10649, 2229, 1010, 4237, 2015, 1027, 14690, 2232, 1012, 3975, 1006, 1005, 1013, 1005, 1007, 1010, 17540, 20614, 15069, 1010, 5034, 8586, 8551, 13874, 1025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
angular/material
gulp/util.js
validateProp
function validateProp(prop) { return prop && prop.type === 'decl' && ![prop.prop, prop.value].some(function(value) { return value.indexOf('-') > -1 && prefixRegex.test(value); }); }
javascript
function validateProp(prop) { return prop && prop.type === 'decl' && ![prop.prop, prop.value].some(function(value) { return value.indexOf('-') > -1 && prefixRegex.test(value); }); }
[ "function", "validateProp", "(", "prop", ")", "{", "return", "prop", "&&", "prop", ".", "type", "===", "'decl'", "&&", "!", "[", "prop", ".", "prop", ",", "prop", ".", "value", "]", ".", "some", "(", "function", "(", "value", ")", "{", "return", "v...
Checks if a property is a style declaration and that it doesn't contain any vendor prefixes.
[ "Checks", "if", "a", "property", "is", "a", "style", "declaration", "and", "that", "it", "doesn", "t", "contain", "any", "vendor", "prefixes", "." ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/gulp/util.js#L289-L293
train
Validate a property
[ 30522, 3853, 9398, 3686, 21572, 2361, 1006, 17678, 1007, 1063, 2709, 17678, 1004, 1004, 17678, 1012, 2828, 1027, 1027, 1027, 1005, 11703, 2140, 1005, 1004, 1004, 999, 1031, 17678, 1012, 17678, 1010, 17678, 1012, 3643, 1033, 1012, 2070, 1006...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SeleniumHQ/selenium
third_party/closure/goog/labs/format/csv.js
readField
function readField() { var start = index; var didSeeComma = sawComma; sawComma = false; var token = nextToken(); if (token == EMPTY) { return EOR; } if (token == EOF || token == NEWLINE) { if (didSeeComma) { pushBack(EMPTY); return ''; } return EOR; ...
javascript
function readField() { var start = index; var didSeeComma = sawComma; sawComma = false; var token = nextToken(); if (token == EMPTY) { return EOR; } if (token == EOF || token == NEWLINE) { if (didSeeComma) { pushBack(EMPTY); return ''; } return EOR; ...
[ "function", "readField", "(", ")", "{", "var", "start", "=", "index", ";", "var", "didSeeComma", "=", "sawComma", ";", "sawComma", "=", "false", ";", "var", "token", "=", "nextToken", "(", ")", ";", "if", "(", "token", "==", "EMPTY", ")", "{", "retur...
Read a field from input. @return {string|!goog.labs.format.csv.Sentinels_} The field, as a string, or a sentinel (if applicable).
[ "Read", "a", "field", "from", "input", "." ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/closure/goog/labs/format/csv.js#L289-L337
train
Read a field from the current line.
[ 30522, 3853, 3191, 3790, 1006, 1007, 1063, 13075, 2707, 1027, 5950, 1025, 13075, 2106, 19763, 9006, 2863, 1027, 2387, 9006, 2863, 1025, 2387, 9006, 2863, 1027, 6270, 1025, 13075, 19204, 1027, 2279, 18715, 2368, 1006, 1007, 1025, 2065, 1006,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
lynckia/licode
extras/basic_example/public/script.js
toggleSlideShowMode
function toggleSlideShowMode() { const streams = room.remoteStreams; const cb = (evt) => { console.log('SlideShowMode changed', evt); }; slideShowMode = !slideShowMode; streams.forEach((stream) => { if (localStream.getID() !== stream.getID()) { console.log('Updating config'); stream.update...
javascript
function toggleSlideShowMode() { const streams = room.remoteStreams; const cb = (evt) => { console.log('SlideShowMode changed', evt); }; slideShowMode = !slideShowMode; streams.forEach((stream) => { if (localStream.getID() !== stream.getID()) { console.log('Updating config'); stream.update...
[ "function", "toggleSlideShowMode", "(", ")", "{", "const", "streams", "=", "room", ".", "remoteStreams", ";", "const", "cb", "=", "(", "evt", ")", "=>", "{", "console", ".", "log", "(", "'SlideShowMode changed'", ",", "evt", ")", ";", "}", ";", "slideSho...
eslint-disable-next-line no-unused-vars
[ "eslint", "-", "disable", "-", "next", "-", "line", "no", "-", "unused", "-", "vars" ]
ce1f09ae30054f677fc25f2011b0e5072fa6f71f
https://github.com/lynckia/licode/blob/ce1f09ae30054f677fc25f2011b0e5072fa6f71f/extras/basic_example/public/script.js#L45-L57
train
Toggle slideShowMode
[ 30522, 3853, 2000, 24989, 24198, 22231, 2860, 5302, 3207, 1006, 1007, 1063, 9530, 3367, 9199, 1027, 2282, 1012, 6556, 21422, 2015, 1025, 9530, 3367, 17324, 1027, 1006, 23408, 2102, 1007, 1027, 1028, 1063, 10122, 1012, 8833, 1006, 1005, 1481...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aframevr/aframe
examples/showcase/link-traversal/js/components/aframe-tooltip-component.js
function (oldData) { var data = this.data; this.material.color.setStyle(data.color); this.material.opacity = data.opacity; this.material.transparent = data.transparent; this.material.wireframe = data.debug; this.material.side = parseSide(data.side); var diff = AFRAME.u...
javascript
function (oldData) { var data = this.data; this.material.color.setStyle(data.color); this.material.opacity = data.opacity; this.material.transparent = data.transparent; this.material.wireframe = data.debug; this.material.side = parseSide(data.side); var diff = AFRAME.u...
[ "function", "(", "oldData", ")", "{", "var", "data", "=", "this", ".", "data", ";", "this", ".", "material", ".", "color", ".", "setStyle", "(", "data", ".", "color", ")", ";", "this", ".", "material", ".", "opacity", "=", "data", ".", "opacity", "...
Called when component is attached and when component data changes. Generally modifies the entity based on the data.
[ "Called", "when", "component", "is", "attached", "and", "when", "component", "data", "changes", ".", "Generally", "modifies", "the", "entity", "based", "on", "the", "data", "." ]
24acc78a7299a4cdfe3ef617f4d40ddf6275c992
https://github.com/aframevr/aframe/blob/24acc78a7299a4cdfe3ef617f4d40ddf6275c992/examples/showcase/link-traversal/js/components/aframe-tooltip-component.js#L312-L328
train
Update the material
[ 30522, 3853, 1006, 2214, 2850, 2696, 1007, 1063, 13075, 2951, 1027, 2023, 1012, 2951, 1025, 2023, 1012, 3430, 1012, 3609, 1012, 4520, 27983, 1006, 2951, 1012, 3609, 1007, 1025, 2023, 1012, 3430, 1012, 6728, 6305, 3012, 1027, 2951, 1012, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
GitbookIO/gitbook
lib/utils/command.js
escapeShellArg
function escapeShellArg(value) { if (is.number(value)) { return value; } value = String(value); value = value.replace(/"/g, '\\"'); return '"' + value + '"'; }
javascript
function escapeShellArg(value) { if (is.number(value)) { return value; } value = String(value); value = value.replace(/"/g, '\\"'); return '"' + value + '"'; }
[ "function", "escapeShellArg", "(", "value", ")", "{", "if", "(", "is", ".", "number", "(", "value", ")", ")", "{", "return", "value", ";", "}", "value", "=", "String", "(", "value", ")", ";", "value", "=", "value", ".", "replace", "(", "/", "\"", ...
Transform an option object to a command line string @param {String|number} value @param {String}
[ "Transform", "an", "option", "object", "to", "a", "command", "line", "string" ]
6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4
https://github.com/GitbookIO/gitbook/blob/6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4/lib/utils/command.js#L77-L86
train
Escape shell arguments
[ 30522, 3853, 12976, 18223, 2906, 2290, 1006, 3643, 1007, 1063, 2065, 1006, 2003, 1012, 2193, 1006, 3643, 1007, 1007, 1063, 2709, 3643, 1025, 1065, 3643, 1027, 5164, 1006, 3643, 1007, 1025, 3643, 1027, 3643, 1012, 5672, 1006, 1013, 1000, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/extensions/default/QuickView/main.js
queryPreviewProviders
function queryPreviewProviders(editor, pos, token) { var line = editor.document.getLine(pos.line); // FUTURE: Support plugin providers. For now we just hard-code... var popover = colorAndGradientPreviewProvider(editor, pos, token, line) || imagePreviewProvider(editor, pos,...
javascript
function queryPreviewProviders(editor, pos, token) { var line = editor.document.getLine(pos.line); // FUTURE: Support plugin providers. For now we just hard-code... var popover = colorAndGradientPreviewProvider(editor, pos, token, line) || imagePreviewProvider(editor, pos,...
[ "function", "queryPreviewProviders", "(", "editor", ",", "pos", ",", "token", ")", "{", "var", "line", "=", "editor", ".", "document", ".", "getLine", "(", "pos", ".", "line", ")", ";", "// FUTURE: Support plugin providers. For now we just hard-code...", "var", "p...
Preview hide/show logic ------------------------------------------------ Returns a 'ready for use' popover state object: { visible: false, editor, start, end, content, ?onShow, xpos, ytop, ybot } Lacks only hoverTimer (supplied by handleMouseMove()) and marker (supplied by showPreview()).
[ "Preview", "hide", "/", "show", "logic", "------------------------------------------------", "Returns", "a", "ready", "for", "use", "popover", "state", "object", ":", "{", "visible", ":", "false", "editor", "start", "end", "content", "?onShow", "xpos", "ytop", "yb...
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/extensions/default/QuickView/main.js#L559-L574
train
Query the provider to use for previewing
[ 30522, 3853, 23032, 28139, 8584, 21572, 17258, 2545, 1006, 3559, 1010, 13433, 2015, 1010, 19204, 1007, 1063, 13075, 2240, 1027, 3559, 1012, 6254, 1012, 2131, 4179, 1006, 13433, 2015, 1012, 2240, 1007, 1025, 1013, 1013, 2925, 1024, 2490, 133...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.asm.js
asmHyphenEngine
function asmHyphenEngine(std, ext, heap) { "use asm"; var ui8 = new std.Uint8Array(heap); var ui16 = new std.Uint16Array(heap); var i32 = new std.Int32Array(heap); var imul = std.Math.imul; var hpbTranslateOffset = ext.hpbTranslateOffset | 0; var hpbPatternsOffset = ext.hpbPatternsOffset | ...
javascript
function asmHyphenEngine(std, ext, heap) { "use asm"; var ui8 = new std.Uint8Array(heap); var ui16 = new std.Uint16Array(heap); var i32 = new std.Int32Array(heap); var imul = std.Math.imul; var hpbTranslateOffset = ext.hpbTranslateOffset | 0; var hpbPatternsOffset = ext.hpbPatternsOffset | ...
[ "function", "asmHyphenEngine", "(", "std", ",", "ext", ",", "heap", ")", "{", "\"use asm\"", ";", "var", "ui8", "=", "new", "std", ".", "Uint8Array", "(", "heap", ")", ";", "var", "ui16", "=", "new", "std", ".", "Uint16Array", "(", "heap", ")", ";", ...
@license hyphenEngine.asm.js 2.4.0-devel - client side hyphenation for webbrowsers ©2018 Mathias Nater, Zürich (mathiasnater at gmail dot com) https://github.com/mnater/Hyphenopoly Released under the MIT license http://mnater.github.io/Hyphenopoly/LICENSE
[ "@license", "hyphenEngine", ".", "asm", ".", "js", "2", ".", "4", ".", "0", "-", "devel", "-", "client", "side", "hyphenation", "for", "webbrowsers", "©2018", "Mathias", "Nater", "Zürich", "(", "mathiasnater", "at", "gmail", "dot", "com", ")", "https", "...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/hyphenEngine.asm.js#L10-L280
train
The hyphen engine
[ 30522, 3853, 2004, 2213, 10536, 8458, 8625, 3070, 3170, 1006, 2358, 2094, 1010, 4654, 2102, 1010, 16721, 1007, 1063, 1000, 2224, 2004, 2213, 1000, 1025, 13075, 21318, 2620, 1027, 2047, 2358, 2094, 1012, 21318, 3372, 2620, 2906, 9447, 1006, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aframevr/aframe
src/components/look-controls.js
function () { var sceneEl = this.el.sceneEl; var canvasEl = sceneEl.canvas; // Wait for canvas to load. if (!canvasEl) { sceneEl.addEventListener('render-target-loaded', bind(this.addEventListeners, this)); return; } // Mouse events. canvasEl.addEventListener('mousedown', this....
javascript
function () { var sceneEl = this.el.sceneEl; var canvasEl = sceneEl.canvas; // Wait for canvas to load. if (!canvasEl) { sceneEl.addEventListener('render-target-loaded', bind(this.addEventListeners, this)); return; } // Mouse events. canvasEl.addEventListener('mousedown', this....
[ "function", "(", ")", "{", "var", "sceneEl", "=", "this", ".", "el", ".", "sceneEl", ";", "var", "canvasEl", "=", "sceneEl", ".", "canvas", ";", "// Wait for canvas to load.", "if", "(", "!", "canvasEl", ")", "{", "sceneEl", ".", "addEventListener", "(", ...
Add mouse and touch event listeners to canvas.
[ "Add", "mouse", "and", "touch", "event", "listeners", "to", "canvas", "." ]
24acc78a7299a4cdfe3ef617f4d40ddf6275c992
https://github.com/aframevr/aframe/blob/24acc78a7299a4cdfe3ef617f4d40ddf6275c992/src/components/look-controls.js#L121-L151
train
Add event listeners
[ 30522, 3853, 1006, 1007, 1063, 13075, 3496, 2884, 1027, 2023, 1012, 3449, 1012, 3496, 2884, 1025, 13075, 10683, 2884, 1027, 3496, 2884, 1012, 10683, 1025, 1013, 1013, 3524, 2005, 10683, 2000, 7170, 1012, 2065, 1006, 999, 10683, 2884, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.dt/src/sap/ui/dt/ContextMenuControl.js
function (aButtons) { var iButtonsEnabled = this._getNumberOfEnabledButtons(aButtons); if (iButtonsEnabled !== 0) { this._hideDisabledButtons(aButtons); } this._iButtonsVisible = this._hideButtonsInOverflow(aButtons); if (this._iButtonsVisible === this.getMaxButtonsDisplayed() && this._iButtonsVisib...
javascript
function (aButtons) { var iButtonsEnabled = this._getNumberOfEnabledButtons(aButtons); if (iButtonsEnabled !== 0) { this._hideDisabledButtons(aButtons); } this._iButtonsVisible = this._hideButtonsInOverflow(aButtons); if (this._iButtonsVisible === this.getMaxButtonsDisplayed() && this._iButtonsVisib...
[ "function", "(", "aButtons", ")", "{", "var", "iButtonsEnabled", "=", "this", ".", "_getNumberOfEnabledButtons", "(", "aButtons", ")", ";", "if", "(", "iButtonsEnabled", "!==", "0", ")", "{", "this", ".", "_hideDisabledButtons", "(", "aButtons", ")", ";", "}...
Sets all parameters of the buttons in the non-expanded ContextMenu @param {array} aButtons some buttons
[ "Sets", "all", "parameters", "of", "the", "buttons", "in", "the", "non", "-", "expanded", "ContextMenu" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.dt/src/sap/ui/dt/ContextMenuControl.js#L215-L229
train
Hides the buttons that are not enabled and overflow
[ 30522, 3853, 30524, 5054, 3085, 2094, 999, 1027, 1027, 1014, 1007, 1063, 2023, 1012, 1035, 5342, 10521, 3085, 18939, 4904, 2669, 2015, 1006, 8273, 15474, 2015, 1007, 1025, 1065, 2023, 1012, 1035, 21307, 4904, 2669, 2015, 11365, 7028, 1027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.layout/src/sap/ui/layout/form/SimpleForm.js
_getFieldLayoutData
function _getFieldLayoutData(oField){ var oLayoutData; switch (this.getLayout()) { case SimpleFormLayout.ResponsiveLayout: oLayoutData = FormLayout.prototype.getLayoutDataForElement(oField, "sap.ui.layout.ResponsiveFlowLayoutData"); break; case SimpleFormLayout.GridLayout: oLayoutData = FormLayout.pr...
javascript
function _getFieldLayoutData(oField){ var oLayoutData; switch (this.getLayout()) { case SimpleFormLayout.ResponsiveLayout: oLayoutData = FormLayout.prototype.getLayoutDataForElement(oField, "sap.ui.layout.ResponsiveFlowLayoutData"); break; case SimpleFormLayout.GridLayout: oLayoutData = FormLayout.pr...
[ "function", "_getFieldLayoutData", "(", "oField", ")", "{", "var", "oLayoutData", ";", "switch", "(", "this", ".", "getLayout", "(", ")", ")", "{", "case", "SimpleFormLayout", ".", "ResponsiveLayout", ":", "oLayoutData", "=", "FormLayout", ".", "prototype", "....
/* There may be VariantLayoutData used -> so get the right one for the used Layout
[ "/", "*", "There", "may", "be", "VariantLayoutData", "used", "-", ">", "so", "get", "the", "right", "one", "for", "the", "used", "Layout" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.layout/src/sap/ui/layout/form/SimpleForm.js#L1458-L1480
train
Returns the layout data for the given field
[ 30522, 3853, 1035, 2131, 3790, 8485, 5833, 2850, 2696, 1006, 1997, 12891, 1007, 1063, 13075, 19330, 28852, 4904, 2850, 2696, 1025, 6942, 1006, 2023, 1012, 2131, 8485, 5833, 1006, 1007, 1007, 1063, 2553, 3722, 14192, 8485, 5833, 1012, 26651,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js
function (oInterface, oPathValue) { var oResult = Expression.parameter(oInterface, oPathValue, 0); if (oResult.result === "constant") { // convert V4 to V2 for sap.ui.model.odata.ODataUtils if (oResult.type === "Edm.Date") { oResult.type = "Edm.DateTime"; // Note: ODataUtils.formatValue calls D...
javascript
function (oInterface, oPathValue) { var oResult = Expression.parameter(oInterface, oPathValue, 0); if (oResult.result === "constant") { // convert V4 to V2 for sap.ui.model.odata.ODataUtils if (oResult.type === "Edm.Date") { oResult.type = "Edm.DateTime"; // Note: ODataUtils.formatValue calls D...
[ "function", "(", "oInterface", ",", "oPathValue", ")", "{", "var", "oResult", "=", "Expression", ".", "parameter", "(", "oInterface", ",", "oPathValue", ",", "0", ")", ";", "if", "(", "oResult", ".", "result", "===", "\"constant\"", ")", "{", "// convert V...
Handling of "14.5.3.1.3 Function odata.uriEncode". @param {sap.ui.core.util.XMLPreprocessor.IContext|sap.ui.model.Context} oInterface the callback interface related to the current formatter call @param {object} oPathValue path and value information pointing to the parameters array (see Expression object) @returns {obj...
[ "Handling", "of", "14", ".", "5", ".", "3", ".", "1", ".", "3", "Function", "odata", ".", "uriEncode", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js#L878-L903
train
Returns an object with the result of an expression
[ 30522, 3853, 1006, 1051, 18447, 2121, 12172, 1010, 6728, 8988, 10175, 5657, 1007, 1063, 13075, 10848, 23722, 2102, 1027, 3670, 1012, 16381, 1006, 1051, 18447, 2121, 12172, 1010, 6728, 8988, 10175, 5657, 1010, 1014, 1007, 1025, 2065, 1006, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SeleniumHQ/selenium
third_party/js/mozmill/shared-modules/places.js
removeAllHistory
function removeAllHistory() { const TOPIC_EXPIRATION_FINISHED = "places-expiration-finished"; // Create flag visible to both the eval and the observer object var finishedFlag = { state: false } // Set up an observer so we get notified when remove completes let observer = { observe: function(aSubje...
javascript
function removeAllHistory() { const TOPIC_EXPIRATION_FINISHED = "places-expiration-finished"; // Create flag visible to both the eval and the observer object var finishedFlag = { state: false } // Set up an observer so we get notified when remove completes let observer = { observe: function(aSubje...
[ "function", "removeAllHistory", "(", ")", "{", "const", "TOPIC_EXPIRATION_FINISHED", "=", "\"places-expiration-finished\"", ";", "// Create flag visible to both the eval and the observer object", "var", "finishedFlag", "=", "{", "state", ":", "false", "}", "// Set up an observe...
Synchronous wrapper around browserHistory.removeAllPages() Removes history and blocks until done
[ "Synchronous", "wrapper", "around", "browserHistory", ".", "removeAllPages", "()", "Removes", "history", "and", "blocks", "until", "done" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/places.js#L161-L181
train
Remove all pages from the history
[ 30522, 3853, 6366, 8095, 24158, 7062, 1006, 1007, 1063, 9530, 3367, 8476, 1035, 4654, 16781, 1035, 2736, 1027, 1000, 3182, 1011, 4654, 16781, 1011, 2736, 1000, 1025, 1013, 1013, 3443, 5210, 5710, 2000, 2119, 1996, 9345, 2140, 1998, 1996, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/sinon-server.js
function (obj, method, args) { switch (args.length) { case 0: return obj[method](); case 1: return obj[method](args[0]); case 2: return obj[method](args[0], args[1]); case 3: return obj[method](args[0], args[1], args[2]); case 4: return obj[method](args[0], args[1], args[...
javascript
function (obj, method, args) { switch (args.length) { case 0: return obj[method](); case 1: return obj[method](args[0]); case 2: return obj[method](args[0], args[1]); case 3: return obj[method](args[0], args[1], args[2]); case 4: return obj[method](args[0], args[1], args[...
[ "function", "(", "obj", ",", "method", ",", "args", ")", "{", "switch", "(", "args", ".", "length", ")", "{", "case", "0", ":", "return", "obj", "[", "method", "]", "(", ")", ";", "case", "1", ":", "return", "obj", "[", "method", "]", "(", "arg...
largest arity in XHR is 5 - XHR#open
[ "largest", "arity", "in", "XHR", "is", "5", "-", "XHR#open" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/sinon-server.js#L1140-L1149
train
This is the main function for the Language
[ 30522, 3853, 1006, 27885, 3501, 1010, 4118, 1010, 12098, 5620, 1007, 1063, 6942, 1006, 12098, 5620, 1012, 3091, 1007, 1063, 2553, 1014, 1024, 2709, 27885, 3501, 1031, 4118, 1033, 1006, 1007, 1025, 2553, 1015, 1024, 2709, 27885, 3501, 1031, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
electron/electron
lib/browser/guest-view-manager.js
function (embedder, params) { if (webViewManager == null) { webViewManager = process.electronBinding('web_view_manager') } const guest = webContents.create({ isGuest: true, partition: params.partition, embedder: embedder }) const guestInstanceId = guest.id guestInstances[guestInstanceId] = ...
javascript
function (embedder, params) { if (webViewManager == null) { webViewManager = process.electronBinding('web_view_manager') } const guest = webContents.create({ isGuest: true, partition: params.partition, embedder: embedder }) const guestInstanceId = guest.id guestInstances[guestInstanceId] = ...
[ "function", "(", "embedder", ",", "params", ")", "{", "if", "(", "webViewManager", "==", "null", ")", "{", "webViewManager", "=", "process", ".", "electronBinding", "(", "'web_view_manager'", ")", "}", "const", "guest", "=", "webContents", ".", "create", "("...
Create a new guest instance.
[ "Create", "a", "new", "guest", "instance", "." ]
6e29611788277729647acf465f10db1ea6f15788
https://github.com/electron/electron/blob/6e29611788277729647acf465f10db1ea6f15788/lib/browser/guest-view-manager.js#L56-L161
train
Create a new guest web view
[ 30522, 3853, 1006, 7861, 8270, 4063, 1010, 11498, 5244, 1007, 1063, 2065, 1006, 4773, 8584, 24805, 4590, 1027, 1027, 19701, 1007, 1063, 4773, 8584, 24805, 4590, 1027, 2832, 1012, 10496, 8428, 4667, 1006, 1005, 4773, 1035, 3193, 1035, 3208, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
dcloudio/mui
examples/login/libs/easymob-webim-sdk/strophe-custom-2.0.0.js
function(text) { text = text.replace(/\&/g, "&amp;"); text = text.replace(/</g, "&lt;"); text = text.replace(/>/g, "&gt;"); text = text.replace(/'/g, "&apos;"); text = text.replace(/"/g, "&quot;"); return text; }
javascript
function(text) { text = text.replace(/\&/g, "&amp;"); text = text.replace(/</g, "&lt;"); text = text.replace(/>/g, "&gt;"); text = text.replace(/'/g, "&apos;"); text = text.replace(/"/g, "&quot;"); return text; }
[ "function", "(", "text", ")", "{", "text", "=", "text", ".", "replace", "(", "/", "\\&", "/", "g", ",", "\"&amp;\"", ")", ";", "text", "=", "text", ".", "replace", "(", "/", "<", "/", "g", ",", "\"&lt;\"", ")", ";", "text", "=", "text", ".", ...
/* Function: xmlescape Excapes invalid xml characters. Parameters: (String) text - text to escape. Returns: Escaped text.
[ "/", "*", "Function", ":", "xmlescape", "Excapes", "invalid", "xml", "characters", "." ]
ff74c90a1671a552f3604b1288bf38a4126312d0
https://github.com/dcloudio/mui/blob/ff74c90a1671a552f3604b1288bf38a4126312d0/examples/login/libs/easymob-webim-sdk/strophe-custom-2.0.0.js#L1040-L1048
train
Converts a text to a string of unicode
[ 30522, 3853, 1006, 3793, 1007, 1063, 3793, 1027, 3793, 1012, 5672, 1006, 1013, 1032, 1004, 1013, 1043, 1010, 1000, 1004, 23713, 1025, 1000, 1007, 1025, 3793, 1027, 3793, 1012, 5672, 1006, 1013, 1026, 1013, 1043, 1010, 1000, 1004, 8318, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...