repo
stringclasses
192 values
path
stringlengths
4
115
func_name
stringlengths
0
45
original_string
stringlengths
74
24k
language
stringclasses
1 value
code
stringlengths
74
24k
code_tokens
listlengths
23
4.2k
docstring
stringlengths
2
23.7k
docstring_tokens
listlengths
1
810
sha
stringclasses
192 values
url
stringlengths
90
200
partition
stringclasses
1 value
summary
stringlengths
6
313
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
SAP/openui5
src/sap.ui.core/src/sap/ui/events/F6Navigation.js
navigate
function navigate(oSource, aScopes, bForward) { if (!aScopes || aScopes.length == 0) { aScopes = [document]; } if (!isContained(aScopes, oSource)) { return; } var oSouceGroup = findClosestGroup(oSource), $AllTabbables = filterStaticAreaContent(jQuery(aScopes).find(':sapTabbable').addBack(':...
javascript
function navigate(oSource, aScopes, bForward) { if (!aScopes || aScopes.length == 0) { aScopes = [document]; } if (!isContained(aScopes, oSource)) { return; } var oSouceGroup = findClosestGroup(oSource), $AllTabbables = filterStaticAreaContent(jQuery(aScopes).find(':sapTabbable').addBack(':...
[ "function", "navigate", "(", "oSource", ",", "aScopes", ",", "bForward", ")", "{", "if", "(", "!", "aScopes", "||", "aScopes", ".", "length", "==", "0", ")", "{", "aScopes", "=", "[", "document", "]", ";", "}", "if", "(", "!", "isContained", "(", "...
Finds the next/previous (bForward) element in the F6 chain starting from the given source element within the given scopes and focus it
[ "Finds", "the", "next", "/", "previous", "(", "bForward", ")", "element", "in", "the", "F6", "chain", "starting", "from", "the", "given", "source", "element", "within", "the", "given", "scopes", "and", "focus", "it" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/F6Navigation.js#L152-L224
train
Navigates to the given tabbable element.
[ 30522, 3853, 22149, 1006, 9808, 8162, 3401, 1010, 2004, 16186, 2015, 1010, 28939, 2953, 7652, 1007, 1063, 2065, 1006, 999, 2004, 16186, 2015, 1064, 1064, 2004, 16186, 2015, 1012, 3091, 1027, 1027, 1014, 1007, 1063, 2004, 16186, 2015, 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...
muaz-khan/RecordRTC
RecordRTC.js
GifRecorder
function GifRecorder(mediaStream, config) { if (typeof GIFEncoder === 'undefined') { var script = document.createElement('script'); script.src = 'https://cdn.webrtc-experiment.com/gif-recorder.js'; (document.body || document.documentElement).appendChild(script); } config = config ||...
javascript
function GifRecorder(mediaStream, config) { if (typeof GIFEncoder === 'undefined') { var script = document.createElement('script'); script.src = 'https://cdn.webrtc-experiment.com/gif-recorder.js'; (document.body || document.documentElement).appendChild(script); } config = config ||...
[ "function", "GifRecorder", "(", "mediaStream", ",", "config", ")", "{", "if", "(", "typeof", "GIFEncoder", "===", "'undefined'", ")", "{", "var", "script", "=", "document", ".", "createElement", "(", "'script'", ")", ";", "script", ".", "src", "=", "'https...
______________ GifRecorder.js GifRecorder is standalone calss used by {@link RecordRTC} to record video or canvas into animated gif. @license {@link https://github.com/muaz-khan/RecordRTC#license|MIT} @author {@link http://www.MuazKhan.com|Muaz Khan} @typedef GifRecorder @class @example var recorder = new GifRecorder(...
[ "______________", "GifRecorder", ".", "js", "GifRecorder", "is", "standalone", "calss", "used", "by", "{" ]
3c6bad427b9da35c1cf617199ed13dda056c38ba
https://github.com/muaz-khan/RecordRTC/blob/3c6bad427b9da35c1cf617199ed13dda056c38ba/RecordRTC.js#L4545-L4805
train
Gif recorder.
[ 30522, 3853, 21025, 19699, 8586, 8551, 2121, 1006, 2865, 21422, 1010, 9530, 8873, 2290, 1007, 1063, 2065, 1006, 2828, 11253, 21025, 18940, 16044, 2099, 1027, 1027, 1027, 1005, 6151, 28344, 1005, 1007, 1063, 13075, 5896, 1027, 6254, 1012, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
airyland/vux
src/components/orientation/orientation.js
bind
function bind (fn, context) { return fn.bind ? fn.bind(context) : function () { fn.apply(context, arguments) } }
javascript
function bind (fn, context) { return fn.bind ? fn.bind(context) : function () { fn.apply(context, arguments) } }
[ "function", "bind", "(", "fn", ",", "context", ")", "{", "return", "fn", ".", "bind", "?", "fn", ".", "bind", "(", "context", ")", ":", "function", "(", ")", "{", "fn", ".", "apply", "(", "context", ",", "arguments", ")", "}", "}" ]
绑定方法上下文 @method bind @param {Function} fn @param {Object} context @return {Function} @private
[ "绑定方法上下文" ]
484fc3c18bdca99b0c08efbb678c0ee0f5ceedd6
https://github.com/airyland/vux/blob/484fc3c18bdca99b0c08efbb678c0ee0f5ceedd6/src/components/orientation/orientation.js#L49-L53
train
bind function to context
[ 30522, 3853, 14187, 1006, 1042, 2078, 1010, 6123, 1007, 1063, 2709, 1042, 2078, 1012, 14187, 1029, 1042, 2078, 1012, 14187, 1006, 6123, 1007, 1024, 3853, 1006, 1007, 1063, 1042, 2078, 1012, 6611, 1006, 6123, 1010, 9918, 1007, 1065, 1065, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/search/node/FindInFilesDomain.js
offsetToLineNum
function offsetToLineNum(textOrLines, offset) { if (Array.isArray(textOrLines)) { var lines = textOrLines, total = 0, line; for (line = 0; line < lines.length; line++) { if (total < offset) { // add 1 per line since /n were removed by splitting, bu...
javascript
function offsetToLineNum(textOrLines, offset) { if (Array.isArray(textOrLines)) { var lines = textOrLines, total = 0, line; for (line = 0; line < lines.length; line++) { if (total < offset) { // add 1 per line since /n were removed by splitting, bu...
[ "function", "offsetToLineNum", "(", "textOrLines", ",", "offset", ")", "{", "if", "(", "Array", ".", "isArray", "(", "textOrLines", ")", ")", "{", "var", "lines", "=", "textOrLines", ",", "total", "=", "0", ",", "line", ";", "for", "(", "line", "=", ...
Copied from StringUtils.js Returns a line number corresponding to an offset in some text. The text can be specified as a single string or as an array of strings that correspond to the lines of the string. Specify the text in lines when repeatedly calling the function on the same text in a loop. Use getLines() to divid...
[ "Copied", "from", "StringUtils", ".", "js", "Returns", "a", "line", "number", "corresponding", "to", "an", "offset", "in", "some", "text", ".", "The", "text", "can", "be", "specified", "as", "a", "single", "string", "or", "as", "an", "array", "of", "stri...
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/search/node/FindInFilesDomain.js#L68-L94
train
offsetToLineNum - offset to the last line of the file
[ 30522, 3853, 16396, 3406, 4179, 19172, 1006, 3793, 2953, 12735, 1010, 16396, 1007, 1063, 2065, 1006, 9140, 1012, 18061, 11335, 2100, 1006, 3793, 2953, 12735, 1007, 1007, 1063, 13075, 3210, 1027, 3793, 2953, 12735, 1010, 2561, 1027, 1014, 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/utils/is-ie11.js
getInternetExplorerVersion
function getInternetExplorerVersion () { var version = -1; var userAgent = navigator.userAgent; var re; if (navigator.appName === 'Microsoft Internet Explorer') { re = new RegExp('MSIE ([0-9]{1,}[\\.0-9]{0,})'); if (re.exec(userAgent) != null) { version = parseFloat(RegExp.$1); } } else if (navigator....
javascript
function getInternetExplorerVersion () { var version = -1; var userAgent = navigator.userAgent; var re; if (navigator.appName === 'Microsoft Internet Explorer') { re = new RegExp('MSIE ([0-9]{1,}[\\.0-9]{0,})'); if (re.exec(userAgent) != null) { version = parseFloat(RegExp.$1); } } else if (navigator....
[ "function", "getInternetExplorerVersion", "(", ")", "{", "var", "version", "=", "-", "1", ";", "var", "userAgent", "=", "navigator", ".", "userAgent", ";", "var", "re", ";", "if", "(", "navigator", ".", "appName", "===", "'Microsoft Internet Explorer'", ")", ...
https://stackoverflow.com/a/17907562
[ "https", ":", "//", "stackoverflow", ".", "com", "/", "a", "/", "17907562" ]
24acc78a7299a4cdfe3ef617f4d40ddf6275c992
https://github.com/aframevr/aframe/blob/24acc78a7299a4cdfe3ef617f4d40ddf6275c992/src/utils/is-ie11.js#L2-L14
train
Get the version of Internet Explorer
[ 30522, 3853, 2131, 18447, 11795, 12870, 2595, 24759, 5686, 2099, 27774, 1006, 1007, 1063, 13075, 2544, 1027, 1011, 1015, 1025, 13075, 5310, 4270, 3372, 1027, 20532, 1012, 5310, 4270, 3372, 1025, 13075, 2128, 1025, 2065, 1006, 20532, 1012, 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...
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/qunit.js
function( /* result, actual, expected, message */ ) { var assert = this, currentTest = ( assert instanceof Assert && assert.test ) || QUnit.config.current; // Backwards compatibility fix. // Allows the direct use of global exported assertions and QUnit.assert.* // Although, it's use is not recommended as it...
javascript
function( /* result, actual, expected, message */ ) { var assert = this, currentTest = ( assert instanceof Assert && assert.test ) || QUnit.config.current; // Backwards compatibility fix. // Allows the direct use of global exported assertions and QUnit.assert.* // Although, it's use is not recommended as it...
[ "function", "(", "/* result, actual, expected, message */", ")", "{", "var", "assert", "=", "this", ",", "currentTest", "=", "(", "assert", "instanceof", "Assert", "&&", "assert", ".", "test", ")", "||", "QUnit", ".", "config", ".", "current", ";", "// Backwar...
Exports test.push() to the user API
[ "Exports", "test", ".", "push", "()", "to", "the", "user", "API" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/qunit.js#L1282-L1306
train
Push an assertion to the test stack.
[ 30522, 3853, 1006, 1013, 1008, 2765, 1010, 5025, 1010, 3517, 1010, 4471, 1008, 1013, 1007, 1063, 13075, 20865, 1027, 2023, 1010, 2783, 22199, 1027, 1006, 20865, 6013, 11253, 20865, 1004, 1004, 20865, 1012, 3231, 1007, 1064, 1064, 24209, 349...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
shipshapecode/shepherd
src/js/utils/modal.js
createModalOverlay
function createModalOverlay() { const containerElement = _createModalContainer(); const defsElement = document.createElementNS(svgNS, 'defs'); const maskContainer = _createMaskContainer(); const maskRect = _createMaskRect(); const maskOpening = _createMaskOpening(); const maskConsumer = _createMaskConsumer(...
javascript
function createModalOverlay() { const containerElement = _createModalContainer(); const defsElement = document.createElementNS(svgNS, 'defs'); const maskContainer = _createMaskContainer(); const maskRect = _createMaskRect(); const maskOpening = _createMaskOpening(); const maskConsumer = _createMaskConsumer(...
[ "function", "createModalOverlay", "(", ")", "{", "const", "containerElement", "=", "_createModalContainer", "(", ")", ";", "const", "defsElement", "=", "document", ".", "createElementNS", "(", "svgNS", ",", "'defs'", ")", ";", "const", "maskContainer", "=", "_cr...
Generates an SVG with the following structure: ```html <svg id="shepherdModalOverlayContainer" xmlns="http://www.w3.org/2000/svg"> <defs> <mask id="shepherdModalMask" x="0" y="0" width="100%" height="100%" > <rect x="0" y="0" width="100%" height="100%" fill="#FFFFFF"/> <!-- This element will "punch a hole" through the ...
[ "Generates", "an", "SVG", "with", "the", "following", "structure", ":", "html", "<svg", "id", "=", "shepherdModalOverlayContainer", "xmlns", "=", "http", ":", "//", "www", ".", "w3", ".", "org", "/", "2000", "/", "svg", ">", "<defs", ">", "<mask", "id", ...
0cb1c63fb07b58796358f6d33da5f6405e2b05f4
https://github.com/shipshapecode/shepherd/blob/0cb1c63fb07b58796358f6d33da5f6405e2b05f4/src/js/utils/modal.js#L107-L124
train
Creates a modal overlay
[ 30522, 3853, 3443, 5302, 9305, 7840, 8485, 1006, 1007, 1063, 9530, 3367, 11661, 12260, 3672, 1027, 1035, 3443, 5302, 9305, 8663, 18249, 2121, 1006, 1007, 1025, 9530, 3367, 13366, 11246, 13665, 1027, 6254, 1012, 3443, 12260, 3672, 3619, 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...
grpc/grpc
examples/node/dynamic_codegen/route_guide/route_guide_server.js
recordRoute
function recordRoute(call, callback) { var point_count = 0; var feature_count = 0; var distance = 0; var previous = null; // Start a timer var start_time = process.hrtime(); call.on('data', function(point) { point_count += 1; if (checkFeature(point).name !== '') { feature_count += 1; } ...
javascript
function recordRoute(call, callback) { var point_count = 0; var feature_count = 0; var distance = 0; var previous = null; // Start a timer var start_time = process.hrtime(); call.on('data', function(point) { point_count += 1; if (checkFeature(point).name !== '') { feature_count += 1; } ...
[ "function", "recordRoute", "(", "call", ",", "callback", ")", "{", "var", "point_count", "=", "0", ";", "var", "feature_count", "=", "0", ";", "var", "distance", "=", "0", ";", "var", "previous", "=", "null", ";", "// Start a timer", "var", "start_time", ...
recordRoute handler. Gets a stream of points, and responds with statistics about the "trip": number of points, number of known features visited, total distance traveled, and total time spent. @param {Readable} call The request point stream. @param {function(Error, routeSummary)} callback The callback to pass the respon...
[ "recordRoute", "handler", ".", "Gets", "a", "stream", "of", "points", "and", "responds", "with", "statistics", "about", "the", "trip", ":", "number", "of", "points", "number", "of", "known", "features", "visited", "total", "distance", "traveled", "and", "total...
cc75d93818410e2b0edd0fa3009a6def9ac403ca
https://github.com/grpc/grpc/blob/cc75d93818410e2b0edd0fa3009a6def9ac403ca/examples/node/dynamic_codegen/route_guide/route_guide_server.js#L147-L176
train
Record a route
[ 30522, 3853, 2501, 22494, 2618, 1006, 2655, 1010, 2655, 5963, 1007, 1063, 13075, 2391, 1035, 4175, 1027, 1014, 1025, 13075, 3444, 1035, 4175, 1027, 1014, 1025, 13075, 3292, 1027, 1014, 1025, 13075, 3025, 1027, 19701, 1025, 1013, 1013, 2707,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
nodejs/node-gyp
lib/configure.js
checkPyLauncher
function checkPyLauncher (errorCallback) { this.log.verbose( `- executing "${this.pyLauncher}" to get Python 2 executable path`) this.run(this.pyLauncher, ['-2', ...this.argsExecutable], false, function (err, execPath) { // Possible outcomes: same as checkCommand if (err) { ...
javascript
function checkPyLauncher (errorCallback) { this.log.verbose( `- executing "${this.pyLauncher}" to get Python 2 executable path`) this.run(this.pyLauncher, ['-2', ...this.argsExecutable], false, function (err, execPath) { // Possible outcomes: same as checkCommand if (err) { ...
[ "function", "checkPyLauncher", "(", "errorCallback", ")", "{", "this", ".", "log", ".", "verbose", "(", "`", "${", "this", ".", "pyLauncher", "}", "`", ")", "this", ".", "run", "(", "this", ".", "pyLauncher", ",", "[", "'-2'", ",", "...", "this", "."...
Check if the py launcher can find a valid Python to use. Will exit the Python finder on success. Distributions of Python on Windows by default install with the "py.exe" Python launcher which is more likely to exist than the Python executable being in the $PATH. Because the Python launcher supports all versions of Pytho...
[ "Check", "if", "the", "py", "launcher", "can", "find", "a", "valid", "Python", "to", "use", ".", "Will", "exit", "the", "Python", "finder", "on", "success", ".", "Distributions", "of", "Python", "on", "Windows", "by", "default", "install", "with", "the", ...
721eb691cf15556cc2700eda0558d5bad5f84232
https://github.com/nodejs/node-gyp/blob/721eb691cf15556cc2700eda0558d5bad5f84232/lib/configure.js#L526-L540
train
Check the Python 2 executable path
[ 30522, 3853, 4638, 7685, 17298, 26091, 2099, 1006, 7561, 9289, 20850, 8684, 1007, 1063, 2023, 1012, 8833, 1012, 12034, 9232, 1006, 1036, 1011, 23448, 1000, 1002, 1063, 2023, 1012, 1052, 23943, 4609, 7474, 1065, 1000, 2000, 2131, 18750, 1016...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/gridList/grid-list.js
getTileSpans
function getTileSpans(tileElements) { return [].map.call(tileElements, function(ele) { var ctrl = angular.element(ele).controller('mdGridTile'); return { row: parseInt( $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1, col: parseInt( ...
javascript
function getTileSpans(tileElements) { return [].map.call(tileElements, function(ele) { var ctrl = angular.element(ele).controller('mdGridTile'); return { row: parseInt( $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1, col: parseInt( ...
[ "function", "getTileSpans", "(", "tileElements", ")", "{", "return", "[", "]", ".", "map", ".", "call", "(", "tileElements", ",", "function", "(", "ele", ")", "{", "var", "ctrl", "=", "angular", ".", "element", "(", "ele", ")", ".", "controller", "(", ...
Gets an array of objects containing the rowspan and colspan for each tile. @returns {Array<{row: number, col: number}>}
[ "Gets", "an", "array", "of", "objects", "containing", "the", "rowspan", "and", "colspan", "for", "each", "tile", "." ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/gridList/grid-list.js#L370-L380
train
Get the tile spans
[ 30522, 3853, 2131, 15286, 13102, 6962, 1006, 14090, 12260, 8163, 1007, 1063, 2709, 1031, 1033, 1012, 4949, 1012, 2655, 1006, 14090, 12260, 8163, 1010, 3853, 1006, 3449, 2063, 1007, 1063, 13075, 14931, 12190, 1027, 16108, 1012, 5783, 1006, 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/addons.js
addonsManager_removeAddon
function addonsManager_removeAddon(aSpec) { var spec = aSpec || { }; spec.button = "remove"; var button = this.getAddonButton(spec); this._controller.click(button); }
javascript
function addonsManager_removeAddon(aSpec) { var spec = aSpec || { }; spec.button = "remove"; var button = this.getAddonButton(spec); this._controller.click(button); }
[ "function", "addonsManager_removeAddon", "(", "aSpec", ")", "{", "var", "spec", "=", "aSpec", "||", "{", "}", ";", "spec", ".", "button", "=", "\"remove\"", ";", "var", "button", "=", "this", ".", "getAddonButton", "(", "spec", ")", ";", "this", ".", "...
Removes the specified add-on @param {object} aSpec Information on which add-on to operate on Elements: addon - Add-on element
[ "Removes", "the", "specified", "add", "-", "on" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/addons.js#L401-L407
train
Remove an add - on
[ 30522, 3853, 5587, 5644, 24805, 4590, 1035, 6366, 4215, 5280, 1006, 2004, 5051, 2278, 1007, 1063, 13075, 28699, 1027, 2004, 5051, 2278, 1064, 1064, 1063, 1065, 1025, 28699, 1012, 6462, 1027, 1000, 6366, 1000, 1025, 13075, 6462, 1027, 2023, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
GeekyAnts/vue-native-core
packages/vue-native-scripts/src/scripts/compiler.js
compileVueToRn
function compileVueToRn(resource) { const code = resource.toString(); const cparsed = compiler.parseComponent(code, { pad: 'line' }); // console.log(cparsed); let output = ''; let mappings = ''; // add react-vue import output += `import ${constants.VUE}, { observer as ${ constants.OBSERVER } } ...
javascript
function compileVueToRn(resource) { const code = resource.toString(); const cparsed = compiler.parseComponent(code, { pad: 'line' }); // console.log(cparsed); let output = ''; let mappings = ''; // add react-vue import output += `import ${constants.VUE}, { observer as ${ constants.OBSERVER } } ...
[ "function", "compileVueToRn", "(", "resource", ")", "{", "const", "code", "=", "resource", ".", "toString", "(", ")", ";", "const", "cparsed", "=", "compiler", ".", "parseComponent", "(", "code", ",", "{", "pad", ":", "'line'", "}", ")", ";", "// console...
watch('./', { recursive: true, filter: FILTER }, function (evt, name) { if (evt === 'update') { compileVueToRn(name); } else if (evt === 'remove') { remove(name); } });
[ "watch", "(", ".", "/", "{", "recursive", ":", "true", "filter", ":", "FILTER", "}", "function", "(", "evt", "name", ")", "{", "if", "(", "evt", "===", "update", ")", "{", "compileVueToRn", "(", "name", ")", ";", "}", "else", "if", "(", "evt", "=...
a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e
https://github.com/GeekyAnts/vue-native-core/blob/a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e/packages/vue-native-scripts/src/scripts/compiler.js#L48-L244
train
Compile a vue component to a RN file
[ 30522, 3853, 4012, 22090, 19722, 18903, 6826, 1006, 7692, 1007, 1063, 9530, 3367, 3642, 1027, 7692, 1012, 2000, 3367, 4892, 1006, 1007, 1025, 9530, 3367, 18133, 11650, 2098, 1027, 21624, 1012, 11968, 3366, 9006, 29513, 3372, 1006, 3642, 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/core/routing/async/Targets.js
function (oTargetInfo, vData, oSequencePromise, oTargetCreateInfo) { var sName = oTargetInfo.name, oTarget = this.getTarget(sName); if (oTarget !== undefined) { return oTarget._display(vData, oSequencePromise, oTargetCreateInfo); } else { var sErrorMessage = "The target with the name \"" + sName +...
javascript
function (oTargetInfo, vData, oSequencePromise, oTargetCreateInfo) { var sName = oTargetInfo.name, oTarget = this.getTarget(sName); if (oTarget !== undefined) { return oTarget._display(vData, oSequencePromise, oTargetCreateInfo); } else { var sErrorMessage = "The target with the name \"" + sName +...
[ "function", "(", "oTargetInfo", ",", "vData", ",", "oSequencePromise", ",", "oTargetCreateInfo", ")", "{", "var", "sName", "=", "oTargetInfo", ".", "name", ",", "oTarget", "=", "this", ".", "getTarget", "(", "sName", ")", ";", "if", "(", "oTarget", "!==", ...
Displays a single target @param {string} sName name of the single target @param {any} vData an object that will be passed to the display event in the data property. @param {Promise} oSequencePromise the promise which for chaining @param {object} [oTargetCreateInfo] the object which contains extra information for the c...
[ "Displays", "a", "single", "target" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/async/Targets.js#L86-L100
train
Display the target
[ 30522, 3853, 1006, 27178, 2906, 18150, 2378, 14876, 1010, 1058, 2850, 2696, 1010, 9808, 2063, 4226, 5897, 21572, 28732, 1010, 27178, 2906, 18150, 16748, 3686, 2378, 14876, 1007, 1063, 13075, 1055, 18442, 1027, 27178, 2906, 18150, 2378, 14876,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/webdriver/logging.js
function(logRecord, opt_type) { return new Entry( normalizeLevel(/** @type {!Logger.Level} */(logRecord.getLevel())), '[' + logRecord.getLoggerName() + '] ' + logRecord.getMessage(), logRecord.getMillis(), opt_type); }
javascript
function(logRecord, opt_type) { return new Entry( normalizeLevel(/** @type {!Logger.Level} */(logRecord.getLevel())), '[' + logRecord.getLoggerName() + '] ' + logRecord.getMessage(), logRecord.getMillis(), opt_type); }
[ "function", "(", "logRecord", ",", "opt_type", ")", "{", "return", "new", "Entry", "(", "normalizeLevel", "(", "/** @type {!Logger.Level} */", "(", "logRecord", ".", "getLevel", "(", ")", ")", ")", ",", "'['", "+", "logRecord", ".", "getLoggerName", "(", ")"...
Converts a {@link goog.debug.LogRecord} into a {@link webdriver.logging.Entry}. @param {!LogRecord} logRecord The record to convert. @param {string=} opt_type The log type. @return {!Entry} The converted entry.
[ "Converts", "a", "{" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/javascript/webdriver/logging.js#L325-L331
train
Creates an entry from a log record
[ 30522, 3853, 1006, 8833, 2890, 27108, 2094, 1010, 23569, 1035, 2828, 1007, 1063, 2709, 2047, 4443, 1006, 3671, 4697, 20414, 2884, 1006, 1013, 1008, 1008, 1030, 2828, 1063, 999, 8833, 4590, 1012, 2504, 1065, 1008, 1013, 1006, 8833, 2890, 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...
firebase/firebaseui-web
javascript/widgets/handler/emaillinkconfirmation.js
function() { var email = component.checkAndGetEmail(); if (!email) { component.getEmailElement().focus(); return; } component.dispose(); onContinue(app, container, email, link); }
javascript
function() { var email = component.checkAndGetEmail(); if (!email) { component.getEmailElement().focus(); return; } component.dispose(); onContinue(app, container, email, link); }
[ "function", "(", ")", "{", "var", "email", "=", "component", ".", "checkAndGetEmail", "(", ")", ";", "if", "(", "!", "email", ")", "{", "component", ".", "getEmailElement", "(", ")", ".", "focus", "(", ")", ";", "return", ";", "}", "component", ".", ...
On email enter.
[ "On", "email", "enter", "." ]
c10aa51e38aeb38dc63baa22b48cd6690c2be087
https://github.com/firebase/firebaseui-web/blob/c10aa51e38aeb38dc63baa22b48cd6690c2be087/javascript/widgets/handler/emaillinkconfirmation.js#L46-L54
train
This function is called when the user is trying to send an email to the user.
[ 30522, 3853, 1006, 1007, 1063, 13075, 10373, 1027, 6922, 1012, 4638, 5685, 18150, 14545, 4014, 1006, 1007, 1025, 2065, 1006, 999, 10373, 1007, 1063, 6922, 1012, 2131, 14545, 9463, 16930, 4765, 1006, 1007, 1012, 3579, 1006, 1007, 1025, 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...
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js
function (aContextObjects) { var aRequiredContextParameters = []; aContextObjects.forEach(function (oContext) { oContext.parameters.forEach(function (oContextParameter) { var sSelector = oContextParameter.selector; if (aRequiredContextParameters.indexOf(sSelector) === -1) { aRequiredContextPa...
javascript
function (aContextObjects) { var aRequiredContextParameters = []; aContextObjects.forEach(function (oContext) { oContext.parameters.forEach(function (oContextParameter) { var sSelector = oContextParameter.selector; if (aRequiredContextParameters.indexOf(sSelector) === -1) { aRequiredContextPa...
[ "function", "(", "aContextObjects", ")", "{", "var", "aRequiredContextParameters", "=", "[", "]", ";", "aContextObjects", ".", "forEach", "(", "function", "(", "oContext", ")", "{", "oContext", ".", "parameters", ".", "forEach", "(", "function", "(", "oContext...
Helper to retreive the context parameters from the instanciated context api @param {sap.ui.fl.Context[]} aContextObjects - context objects within the application @returns {Promise} aRuntimeContextParameters - Promise resolving with a map of context keys and their current values
[ "Helper", "to", "retreive", "the", "context", "parameters", "from", "the", "instanciated", "context", "api" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L78-L91
train
Returns the context value of the context object
[ 30522, 3853, 1006, 9353, 28040, 18413, 16429, 20614, 2015, 1007, 1063, 13075, 2024, 15549, 5596, 8663, 18209, 28689, 22828, 2015, 1027, 1031, 1033, 1025, 9353, 28040, 18413, 16429, 20614, 2015, 1012, 18921, 6776, 1006, 3853, 1006, 1051, 8663,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
docs/js/toc.js
maketoc
function maketoc(element, enableSections) { enableSections = (enableSections != null) ? enableSections : true; var tmp = crawlDom(document.body, 2, 4, [], 30, enableSections); if (tmp.childNodes.length > 0) { element.appendChild(tmp); } }
javascript
function maketoc(element, enableSections) { enableSections = (enableSections != null) ? enableSections : true; var tmp = crawlDom(document.body, 2, 4, [], 30, enableSections); if (tmp.childNodes.length > 0) { element.appendChild(tmp); } }
[ "function", "maketoc", "(", "element", ",", "enableSections", ")", "{", "enableSections", "=", "(", "enableSections", "!=", "null", ")", "?", "enableSections", ":", "true", ";", "var", "tmp", "=", "crawlDom", "(", "document", ".", "body", ",", "2", ",", ...
Creates a table of contents inside the given element.
[ "Creates", "a", "table", "of", "contents", "inside", "the", "given", "element", "." ]
33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44
https://github.com/jgraph/mxgraph/blob/33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44/docs/js/toc.js#L4-L13
train
Crawls the document and adds it to the DOM
[ 30522, 3853, 2191, 3406, 2278, 1006, 5783, 1010, 12939, 18491, 2015, 1007, 1063, 12939, 18491, 2015, 1027, 1006, 12939, 18491, 2015, 999, 1027, 19701, 1007, 1029, 12939, 18491, 2015, 1024, 2995, 1025, 13075, 1056, 8737, 1027, 13529, 9527, 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...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/XMLTemplateProcessor.js
function() { // Pass processingMode to Fragments only if (oClass.getMetadata().isA("sap.ui.core.Fragment") && node.getAttribute("type") !== "JS" && oView._sProcessingMode === "sequential") { mSettings.processingMode = "sequential"; } if (oView.fnScopedRunWithOwner) { return o...
javascript
function() { // Pass processingMode to Fragments only if (oClass.getMetadata().isA("sap.ui.core.Fragment") && node.getAttribute("type") !== "JS" && oView._sProcessingMode === "sequential") { mSettings.processingMode = "sequential"; } if (oView.fnScopedRunWithOwner) { return o...
[ "function", "(", ")", "{", "// Pass processingMode to Fragments only", "if", "(", "oClass", ".", "getMetadata", "(", ")", ".", "isA", "(", "\"sap.ui.core.Fragment\"", ")", "&&", "node", ".", "getAttribute", "(", "\"type\"", ")", "!==", "\"JS\"", "&&", "oView", ...
call the control constructor with the according owner in scope
[ "call", "the", "control", "constructor", "with", "the", "according", "owner", "in", "scope" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/XMLTemplateProcessor.js#L927-L939
train
Creates a new instance of the class
[ 30522, 3853, 1006, 1007, 1063, 1013, 1013, 3413, 6364, 5302, 3207, 2000, 10341, 2069, 2065, 1006, 1051, 26266, 1012, 2131, 11368, 8447, 2696, 1006, 1007, 1012, 18061, 1006, 1000, 20066, 1012, 21318, 1012, 4563, 1012, 15778, 1000, 1007, 1004...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/filesystem/FileSystemEntry.js
compareFilesWithIndices
function compareFilesWithIndices(index1, index2) { return entries[index1]._name.toLocaleLowerCase().localeCompare(entries[index2]._name.toLocaleLowerCase()); }
javascript
function compareFilesWithIndices(index1, index2) { return entries[index1]._name.toLocaleLowerCase().localeCompare(entries[index2]._name.toLocaleLowerCase()); }
[ "function", "compareFilesWithIndices", "(", "index1", ",", "index2", ")", "{", "return", "entries", "[", "index1", "]", ".", "_name", ".", "toLocaleLowerCase", "(", ")", ".", "localeCompare", "(", "entries", "[", "index2", "]", ".", "_name", ".", "toLocaleLo...
sort entries if required
[ "sort", "entries", "if", "required" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/filesystem/FileSystemEntry.js#L510-L512
train
Compare files with indices
[ 30522, 3853, 12826, 8873, 4244, 24415, 22254, 23522, 1006, 5950, 2487, 1010, 5950, 2475, 1007, 1063, 2709, 10445, 1031, 5950, 2487, 1033, 1012, 1035, 2171, 1012, 2000, 4135, 9289, 18349, 13777, 18382, 1006, 1007, 1012, 2334, 8586, 25377, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
statsd/statsd
backends/graphite.js
Stats
function Stats() { var s = this; this.metrics = []; this.add = function(key, value, ts) { s.metrics.push(new Metric(key, value, ts)); }; this.toText = function() { return s.metrics.map(function(m) { return m.toText(); }).join('\n') + '\n'; }; this.toPickle = function() { var body = MARK + LI...
javascript
function Stats() { var s = this; this.metrics = []; this.add = function(key, value, ts) { s.metrics.push(new Metric(key, value, ts)); }; this.toText = function() { return s.metrics.map(function(m) { return m.toText(); }).join('\n') + '\n'; }; this.toPickle = function() { var body = MARK + LI...
[ "function", "Stats", "(", ")", "{", "var", "s", "=", "this", ";", "this", ".", "metrics", "=", "[", "]", ";", "this", ".", "add", "=", "function", "(", "key", ",", "value", ",", "ts", ")", "{", "s", ".", "metrics", ".", "push", "(", "new", "M...
A collection of measurements for sending to graphite.
[ "A", "collection", "of", "measurements", "for", "sending", "to", "graphite", "." ]
ef8e4d76d76c3a0cf771e3724cf79ea22f3c50d9
https://github.com/statsd/statsd/blob/ef8e4d76d76c3a0cf771e3724cf79ea22f3c50d9/backends/graphite.js#L124-L148
train
Stats object.
[ 30522, 3853, 26319, 1006, 1007, 1063, 13075, 1055, 1027, 2023, 1025, 2023, 1012, 12046, 2015, 1027, 1031, 1033, 1025, 2023, 1012, 5587, 1027, 3853, 1006, 3145, 1010, 3643, 1010, 24529, 1007, 1063, 1055, 1012, 12046, 2015, 1012, 5245, 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/no-fallthrough.js
hasBlankLinesBetween
function hasBlankLinesBetween(node, token) { return token.loc.start.line > node.loc.end.line + 1; }
javascript
function hasBlankLinesBetween(node, token) { return token.loc.start.line > node.loc.end.line + 1; }
[ "function", "hasBlankLinesBetween", "(", "node", ",", "token", ")", "{", "return", "token", ".", "loc", ".", "start", ".", "line", ">", "node", ".", "loc", ".", "end", ".", "line", "+", "1", ";", "}" ]
Checks whether a node and a token are separated by blank lines @param {ASTNode} node - The node to check @param {Token} token - The token to compare against @returns {boolean} `true` if there are blank lines between node and token
[ "Checks", "whether", "a", "node", "and", "a", "token", "are", "separated", "by", "blank", "lines" ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/no-fallthrough.js#L48-L50
train
Returns true if the given token is a blank line between the node and the token.
[ 30522, 3853, 2038, 28522, 8950, 12735, 20915, 28394, 2078, 1006, 13045, 1010, 19204, 1007, 1063, 2709, 19204, 1012, 8840, 2278, 1012, 2707, 1012, 2240, 1028, 13045, 1012, 8840, 2278, 1012, 2203, 1012, 2240, 1009, 1015, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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/tabs/js/tabsController.js
updateHeightFromContent
function updateHeightFromContent () { if (!ctrl.dynamicHeight) return $element.css('height', ''); if (!ctrl.tabs.length) return queue.push(updateHeightFromContent); var elements = getElements(); var tabContent = elements.contents[ ctrl.selectedIndex ], contentHeight = tabContent ? tabConten...
javascript
function updateHeightFromContent () { if (!ctrl.dynamicHeight) return $element.css('height', ''); if (!ctrl.tabs.length) return queue.push(updateHeightFromContent); var elements = getElements(); var tabContent = elements.contents[ ctrl.selectedIndex ], contentHeight = tabContent ? tabConten...
[ "function", "updateHeightFromContent", "(", ")", "{", "if", "(", "!", "ctrl", ".", "dynamicHeight", ")", "return", "$element", ".", "css", "(", "'height'", ",", "''", ")", ";", "if", "(", "!", "ctrl", ".", "tabs", ".", "length", ")", "return", "queue",...
Calculates the content height of the current tab. @returns {*}
[ "Calculates", "the", "content", "height", "of", "the", "current", "tab", "." ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/tabs/js/tabsController.js#L792-L851
train
Updates the height of the tab s content based on the current height of the tabs.
[ 30522, 3853, 10651, 26036, 13900, 19699, 5358, 8663, 6528, 2102, 1006, 1007, 1063, 2065, 1006, 999, 14931, 12190, 1012, 8790, 26036, 13900, 1007, 2709, 1002, 5783, 1012, 20116, 2015, 1006, 1005, 4578, 1005, 1010, 1005, 1005, 1007, 1025, 206...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
zeit/pkg
prelude/bootstrap.js
accessFromSnapshot
function accessFromSnapshot (path_, cb) { var cb2 = cb || rethrow; var path = normalizePath(path_); // console.log("accessFromSnapshot", path); var entity = VIRTUAL_FILESYSTEM[path]; if (!entity) return cb2(error_ENOENT('File or directory', path)); return cb2(null, undefined); }
javascript
function accessFromSnapshot (path_, cb) { var cb2 = cb || rethrow; var path = normalizePath(path_); // console.log("accessFromSnapshot", path); var entity = VIRTUAL_FILESYSTEM[path]; if (!entity) return cb2(error_ENOENT('File or directory', path)); return cb2(null, undefined); }
[ "function", "accessFromSnapshot", "(", "path_", ",", "cb", ")", "{", "var", "cb2", "=", "cb", "||", "rethrow", ";", "var", "path", "=", "normalizePath", "(", "path_", ")", ";", "// console.log(\"accessFromSnapshot\", path);", "var", "entity", "=", "VIRTUAL_FILES...
/////////////////////////////////////////////////////////////// access //////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
[ "///////////////////////////////////////////////////////////////", "access", "////////////////////////////////////////////////////////", "///////////////////////////////////////////////////////////////" ]
3775ab6decc2f8f013142e1282934c12fbd1881e
https://github.com/zeit/pkg/blob/3775ab6decc2f8f013142e1282934c12fbd1881e/prelude/bootstrap.js#L1044-L1051
train
accessFromSnapshot - Get the VIRTUAL_FILESYSTEM entity for a given path
[ 30522, 3853, 3229, 19699, 22225, 2532, 4523, 12326, 1006, 4130, 1035, 1010, 17324, 1007, 1063, 13075, 17324, 2475, 1027, 17324, 1064, 1064, 2128, 2705, 10524, 1025, 13075, 4130, 1027, 3671, 4697, 15069, 1006, 4130, 1035, 1007, 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...
SAP/openui5
src/sap.ui.core/src/ui5loader.js
requireModule
function requireModule(oRequestingModule, sModuleName, bAsync, bSkipShimDeps) { var bLoggable = log.isLoggable(), oSplitName = urnToBaseIDAndSubType(sModuleName), oShim = mShims[sModuleName], oModule, aExtensions, i, sMsg, bExecutedNow; // only for robustness, should not be possible by design (all caller...
javascript
function requireModule(oRequestingModule, sModuleName, bAsync, bSkipShimDeps) { var bLoggable = log.isLoggable(), oSplitName = urnToBaseIDAndSubType(sModuleName), oShim = mShims[sModuleName], oModule, aExtensions, i, sMsg, bExecutedNow; // only for robustness, should not be possible by design (all caller...
[ "function", "requireModule", "(", "oRequestingModule", ",", "sModuleName", ",", "bAsync", ",", "bSkipShimDeps", ")", "{", "var", "bLoggable", "=", "log", ".", "isLoggable", "(", ")", ",", "oSplitName", "=", "urnToBaseIDAndSubType", "(", "sModuleName", ")", ",", ...
Loads the given module if needed and returns the module export or a promise on it. If loading is still ongoing for the requested module and if there is a cycle detected between the requesting module and the module to be loaded, then <code>undefined</code> (or a promise on <code>undefined</code>) will be returned as in...
[ "Loads", "the", "given", "module", "if", "needed", "and", "returns", "the", "module", "export", "or", "a", "promise", "on", "it", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/ui5loader.js#L1278-L1438
train
require module
[ 30522, 3853, 5478, 5302, 8566, 2571, 1006, 10848, 15500, 2075, 5302, 8566, 2571, 1010, 15488, 7716, 9307, 18442, 1010, 19021, 6038, 2278, 1010, 18667, 3211, 4523, 14341, 3207, 4523, 1007, 1063, 13075, 9927, 3654, 3468, 1027, 8833, 1012, 200...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/toolbars.js
locationBar_toggleAutocompletePopup
function locationBar_toggleAutocompletePopup() { var dropdown = this.getElement({type: "historyDropMarker"}); var stateOpen = this.autoCompleteResults.isOpened; this._controller.click(dropdown); this._controller.waitForEval("subject.isOpened == " + stateOpen, TIMEOUT, 1...
javascript
function locationBar_toggleAutocompletePopup() { var dropdown = this.getElement({type: "historyDropMarker"}); var stateOpen = this.autoCompleteResults.isOpened; this._controller.click(dropdown); this._controller.waitForEval("subject.isOpened == " + stateOpen, TIMEOUT, 1...
[ "function", "locationBar_toggleAutocompletePopup", "(", ")", "{", "var", "dropdown", "=", "this", ".", "getElement", "(", "{", "type", ":", "\"historyDropMarker\"", "}", ")", ";", "var", "stateOpen", "=", "this", ".", "autoCompleteResults", ".", "isOpened", ";",...
Toggles between the open and closed state of the auto-complete popup
[ "Toggles", "between", "the", "open", "and", "closed", "state", "of", "the", "auto", "-", "complete", "popup" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/toolbars.js#L474-L481
train
Toggle autocomplete popup
[ 30522, 3853, 3295, 8237, 1035, 2000, 24679, 4887, 3406, 9006, 10814, 2618, 16340, 6279, 1006, 1007, 1063, 13075, 4530, 7698, 1027, 2023, 1012, 2131, 12260, 3672, 1006, 1063, 2828, 1024, 1000, 2381, 25711, 10665, 2121, 1000, 1065, 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...
angular/material
src/components/chips/js/chipsDirective.js
MdChips
function MdChips ($mdTheming, $mdUtil, $compile, $log, $timeout, $$mdSvgRegistry) { // Run our templates through $mdUtil.processTemplate() to allow custom start/end symbols var templates = getTemplates(); return { template: function(element, attrs) { // Clone the element into an attribute. By...
javascript
function MdChips ($mdTheming, $mdUtil, $compile, $log, $timeout, $$mdSvgRegistry) { // Run our templates through $mdUtil.processTemplate() to allow custom start/end symbols var templates = getTemplates(); return { template: function(element, attrs) { // Clone the element into an attribute. By...
[ "function", "MdChips", "(", "$mdTheming", ",", "$mdUtil", ",", "$compile", ",", "$log", ",", "$timeout", ",", "$$mdSvgRegistry", ")", "{", "// Run our templates through $mdUtil.processTemplate() to allow custom start/end symbols", "var", "templates", "=", "getTemplates", "(...
MDChips Directive Definition
[ "MDChips", "Directive", "Definition" ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/chips/js/chipsDirective.js#L275-L489
train
The md - chips directive is a template that can be used to generate the chips.
[ 30522, 3853, 9108, 5428, 4523, 1006, 1002, 9108, 10760, 6562, 1010, 1002, 9108, 21823, 2140, 1010, 1002, 4012, 22090, 1010, 1002, 8833, 1010, 1002, 2051, 5833, 1010, 1002, 1002, 9108, 2015, 2615, 17603, 24063, 2854, 1007, 1063, 1013, 1013, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/no-useless-escape.js
check
function check(node) { const isTemplateElement = node.type === "TemplateElement"; if ( isTemplateElement && node.parent && node.parent.parent && node.parent.parent.type === "TaggedTemplateExpression" && node.parent ...
javascript
function check(node) { const isTemplateElement = node.type === "TemplateElement"; if ( isTemplateElement && node.parent && node.parent.parent && node.parent.parent.type === "TaggedTemplateExpression" && node.parent ...
[ "function", "check", "(", "node", ")", "{", "const", "isTemplateElement", "=", "node", ".", "type", "===", "\"TemplateElement\"", ";", "if", "(", "isTemplateElement", "&&", "node", ".", "parent", "&&", "node", ".", "parent", ".", "parent", "&&", "node", "....
Checks if a node has an escape. @param {ASTNode} node - node to check. @returns {void}
[ "Checks", "if", "a", "node", "has", "an", "escape", "." ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/no-useless-escape.js#L158-L219
train
Check if node is valid
[ 30522, 3853, 4638, 1006, 13045, 1007, 1063, 9530, 3367, 21541, 6633, 15725, 12260, 3672, 1027, 13045, 1012, 2828, 1027, 1027, 1027, 1000, 23561, 12260, 3672, 1000, 1025, 2065, 1006, 21541, 6633, 15725, 12260, 3672, 1004, 1004, 13045, 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...
mui-org/material-ui
docs/src/modules/components/AppDrawer.js
renderNavItems
function renderNavItems({ pages, ...params }) { return ( <List> {pages.reduce( // eslint-disable-next-line no-use-before-define (items, page) => reduceChildRoutes({ items, page, ...params }), [], )} </List> ); }
javascript
function renderNavItems({ pages, ...params }) { return ( <List> {pages.reduce( // eslint-disable-next-line no-use-before-define (items, page) => reduceChildRoutes({ items, page, ...params }), [], )} </List> ); }
[ "function", "renderNavItems", "(", "{", "pages", ",", "...", "params", "}", ")", "{", "return", "(", "<", "List", ">", "\n ", "{", "pages", ".", "reduce", "(", "// eslint-disable-next-line no-use-before-define", "(", "items", ",", "page", ")", "=>", "re...
eslint-disable-next-line react/prop-types
[ "eslint", "-", "disable", "-", "next", "-", "line", "react", "/", "prop", "-", "types" ]
1555e52367835946382fbf2a8f681de71318915d
https://github.com/mui-org/material-ui/blob/1555e52367835946382fbf2a8f681de71318915d/docs/src/modules/components/AppDrawer.js#L47-L57
train
Render nav items
[ 30522, 3853, 17552, 2532, 25217, 5244, 1006, 1063, 5530, 1010, 1012, 1012, 1012, 11498, 5244, 1065, 1007, 1063, 2709, 1006, 1026, 2862, 1028, 1063, 5530, 1012, 5547, 1006, 1013, 1013, 9686, 4115, 2102, 1011, 4487, 19150, 1011, 2279, 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...
Microsoft/vscode
build/lib/bundle.js
visit
function visit(rootNodes, graph) { const result = {}; const queue = rootNodes; rootNodes.forEach((node) => { result[node] = true; }); while (queue.length > 0) { const el = queue.shift(); const myEdges = graph[el] || []; myEdges.forEach((toNode) => { if (!r...
javascript
function visit(rootNodes, graph) { const result = {}; const queue = rootNodes; rootNodes.forEach((node) => { result[node] = true; }); while (queue.length > 0) { const el = queue.shift(); const myEdges = graph[el] || []; myEdges.forEach((toNode) => { if (!r...
[ "function", "visit", "(", "rootNodes", ",", "graph", ")", "{", "const", "result", "=", "{", "}", ";", "const", "queue", "=", "rootNodes", ";", "rootNodes", ".", "forEach", "(", "(", "node", ")", "=>", "{", "result", "[", "node", "]", "=", "true", "...
Return a set of reachable nodes in `graph` starting from `rootNodes`
[ "Return", "a", "set", "of", "reachable", "nodes", "in", "graph", "starting", "from", "rootNodes" ]
693a13cd32c5be798051edc0cb43e1e39fc456d9
https://github.com/Microsoft/vscode/blob/693a13cd32c5be798051edc0cb43e1e39fc456d9/build/lib/bundle.js#L404-L421
train
Visit a set of nodes
[ 30522, 3853, 3942, 1006, 7117, 3630, 6155, 1010, 10629, 1007, 1063, 9530, 3367, 2765, 1027, 1063, 1065, 1025, 9530, 3367, 24240, 1027, 7117, 3630, 6155, 1025, 7117, 3630, 6155, 1012, 18921, 6776, 1006, 1006, 13045, 1007, 1027, 1028, 1063, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/taskCounter.js
taskCounterExtension
function taskCounterExtension(editor) { editor.getTaskCount = () => { let found, count; if (editor.isViewer()) { count = editor.preview.$el.find('.task-list-item').length; } else if (editor.isMarkdownMode()) { found = editor.mdEditor.getValue().match(FIND_TASK_RX); count = found ? found...
javascript
function taskCounterExtension(editor) { editor.getTaskCount = () => { let found, count; if (editor.isViewer()) { count = editor.preview.$el.find('.task-list-item').length; } else if (editor.isMarkdownMode()) { found = editor.mdEditor.getValue().match(FIND_TASK_RX); count = found ? found...
[ "function", "taskCounterExtension", "(", "editor", ")", "{", "editor", ".", "getTaskCount", "=", "(", ")", "=>", "{", "let", "found", ",", "count", ";", "if", "(", "editor", ".", "isViewer", "(", ")", ")", "{", "count", "=", "editor", ".", "preview", ...
task counter extension @param {Editor} editor - editor instance @ignore
[ "task", "counter", "extension" ]
e75ab08c2a7ab07d1143e318f7cde135c5e3002e
https://github.com/nhn/tui.editor/blob/e75ab08c2a7ab07d1143e318f7cde135c5e3002e/src/js/extensions/taskCounter.js#L15-L45
train
taskCounterExtension - Extension for task counter
[ 30522, 3853, 4708, 3597, 16671, 7869, 18413, 6132, 3258, 1006, 3559, 1007, 1063, 3559, 1012, 2131, 10230, 2243, 3597, 16671, 1027, 1006, 1007, 1027, 1028, 1063, 2292, 2179, 1010, 4175, 1025, 2065, 1006, 3559, 1012, 2003, 8584, 2121, 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...
adobe/brackets
src/editor/EditorManager.js
closeInlineWidget
function closeInlineWidget(hostEditor, inlineWidget) { // If widget has focus, return it to the hostEditor & move the cursor to where the inline used to be if (inlineWidget.hasFocus()) { // Place cursor back on the line just above the inline (the line from which it was opened) //...
javascript
function closeInlineWidget(hostEditor, inlineWidget) { // If widget has focus, return it to the hostEditor & move the cursor to where the inline used to be if (inlineWidget.hasFocus()) { // Place cursor back on the line just above the inline (the line from which it was opened) //...
[ "function", "closeInlineWidget", "(", "hostEditor", ",", "inlineWidget", ")", "{", "// If widget has focus, return it to the hostEditor & move the cursor to where the inline used to be", "if", "(", "inlineWidget", ".", "hasFocus", "(", ")", ")", "{", "// Place cursor back on the ...
Removes the given widget UI from the given hostEditor (agnostic of what the widget's content is). The widget's onClosed() callback will be run as a result. @param {!Editor} hostEditor The editor containing the widget. @param {!InlineWidget} inlineWidget The inline widget to close. @return {$.Promise} A promise that's r...
[ "Removes", "the", "given", "widget", "UI", "from", "the", "given", "hostEditor", "(", "agnostic", "of", "what", "the", "widget", "s", "content", "is", ")", ".", "The", "widget", "s", "onClosed", "()", "callback", "will", "be", "run", "as", "a", "result",...
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/editor/EditorManager.js#L364-L379
train
Close inline widget
[ 30522, 3853, 2485, 2378, 4179, 9148, 24291, 1006, 4354, 15660, 1010, 23881, 9148, 24291, 1007, 1063, 1013, 1013, 2065, 15536, 24291, 2038, 3579, 1010, 2709, 2009, 2000, 1996, 4354, 15660, 1004, 2693, 1996, 12731, 25301, 2099, 2000, 2073, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/firebaseui-web
javascript/widgets/handler/phonesigninstart.js
function(phoneAuthResult) { // Display the dialog that the code was sent. var container = component.getContainer(); component.showProgressDialog( firebaseui.auth.ui.element.progressDialog.State.DONE, firebaseui.auth.soy2.strings.dialogCodeSent().toString()); // Ke...
javascript
function(phoneAuthResult) { // Display the dialog that the code was sent. var container = component.getContainer(); component.showProgressDialog( firebaseui.auth.ui.element.progressDialog.State.DONE, firebaseui.auth.soy2.strings.dialogCodeSent().toString()); // Ke...
[ "function", "(", "phoneAuthResult", ")", "{", "// Display the dialog that the code was sent.", "var", "container", "=", "component", ".", "getContainer", "(", ")", ";", "component", ".", "showProgressDialog", "(", "firebaseui", ".", "auth", ".", "ui", ".", "element"...
On success a phone Auth result is returned.
[ "On", "success", "a", "phone", "Auth", "result", "is", "returned", "." ]
c10aa51e38aeb38dc63baa22b48cd6690c2be087
https://github.com/firebase/firebaseui-web/blob/c10aa51e38aeb38dc63baa22b48cd6690c2be087/javascript/widgets/handler/phonesigninstart.js#L269-L297
train
Called when the phone number is successfully signed in.
[ 30522, 3853, 1006, 3042, 4887, 2705, 6072, 11314, 1007, 1063, 1013, 1013, 4653, 1996, 13764, 8649, 2008, 1996, 3642, 2001, 2741, 1012, 13075, 11661, 1027, 6922, 1012, 2131, 8663, 18249, 2121, 1006, 1007, 1025, 6922, 1012, 2265, 21572, 17603...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/project/FileTreeViewModel.js
_createIntermediateDirectories
function _createIntermediateDirectories(treeData, path) { var objectPath = [], result = { objectPath: objectPath, treeData: treeData }, treePointer = treeData; if (path === "") { return result; } var parts ...
javascript
function _createIntermediateDirectories(treeData, path) { var objectPath = [], result = { objectPath: objectPath, treeData: treeData }, treePointer = treeData; if (path === "") { return result; } var parts ...
[ "function", "_createIntermediateDirectories", "(", "treeData", ",", "path", ")", "{", "var", "objectPath", "=", "[", "]", ",", "result", "=", "{", "objectPath", ":", "objectPath", ",", "treeData", ":", "treeData", "}", ",", "treePointer", "=", "treeData", ";...
@private Creates the directories necessary to display the given path, even if those directories do not yet exist in the tree and have not been loaded. @param {Immutable.Map} treeData @param {string} path Path to the final directory to be added in the tree @return {{treeData: Immutable.Map, objectPath: Array.<string>}...
[ "@private" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/project/FileTreeViewModel.js#L725-L773
train
Create intermediate directories
[ 30522, 3853, 1035, 3443, 18447, 2121, 16969, 3064, 7442, 16761, 3111, 1006, 3392, 2850, 2696, 1010, 4130, 1007, 1063, 13075, 4874, 15069, 1027, 1031, 1033, 1010, 2765, 1027, 1063, 4874, 15069, 1024, 4874, 15069, 1010, 3392, 2850, 2696, 1024...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
wuchangming/spy-debugger
buildin_modules/weinre/web/demo/weinre-demo.js
onLoad
function onLoad() { if (!buttonStartStuff) buttonStartStuff = document.getElementById("button-start-stuff") if (!buttonClearOutput) buttonClearOutput = document.getElementById("button-clear-output") if (!outputElement) outputElement = document.getElementById("output")...
javascript
function onLoad() { if (!buttonStartStuff) buttonStartStuff = document.getElementById("button-start-stuff") if (!buttonClearOutput) buttonClearOutput = document.getElementById("button-clear-output") if (!outputElement) outputElement = document.getElementById("output")...
[ "function", "onLoad", "(", ")", "{", "if", "(", "!", "buttonStartStuff", ")", "buttonStartStuff", "=", "document", ".", "getElementById", "(", "\"button-start-stuff\"", ")", "if", "(", "!", "buttonClearOutput", ")", "buttonClearOutput", "=", "document", ".", "ge...
------------------------------------------------------------------------------
[ "------------------------------------------------------------------------------" ]
55c1dda0dff0c44920673711656ddfd7ff03c307
https://github.com/wuchangming/spy-debugger/blob/55c1dda0dff0c44920673711656ddfd7ff03c307/buildin_modules/weinre/web/demo/weinre-demo.js#L38-L65
train
onLoad - Loads the database
[ 30522, 3853, 2006, 11066, 1006, 1007, 1063, 2065, 1006, 999, 11287, 7559, 3215, 8525, 4246, 1007, 11287, 7559, 3215, 8525, 4246, 1027, 6254, 1012, 2131, 12260, 3672, 3762, 3593, 1006, 1000, 6462, 1011, 2707, 1011, 4933, 1000, 1007, 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...
adobe/brackets
src/utils/DragAndDrop.js
isValidDrop
function isValidDrop(items) { var i, len = items.length; for (i = 0; i < len; i++) { if (items[i].kind === "file") { var entry = items[i].webkitGetAsEntry(); if (entry.isFile) { // If any files are being dropped, this is a valid drop ...
javascript
function isValidDrop(items) { var i, len = items.length; for (i = 0; i < len; i++) { if (items[i].kind === "file") { var entry = items[i].webkitGetAsEntry(); if (entry.isFile) { // If any files are being dropped, this is a valid drop ...
[ "function", "isValidDrop", "(", "items", ")", "{", "var", "i", ",", "len", "=", "items", ".", "length", ";", "for", "(", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "if", "(", "items", "[", "i", "]", ".", "kind", "===", "...
Returns true if the drag and drop items contains valid drop objects. @param {Array.<DataTransferItem>} items Array of items being dragged @return {boolean} True if one or more items can be dropped.
[ "Returns", "true", "if", "the", "drag", "and", "drop", "items", "contains", "valid", "drop", "objects", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/utils/DragAndDrop.js#L44-L63
train
Check if the drop item is valid
[ 30522, 3853, 2003, 10175, 3593, 25711, 1006, 5167, 1007, 1063, 13075, 1045, 1010, 18798, 1027, 5167, 1012, 3091, 1025, 2005, 1006, 1045, 1027, 1014, 1025, 1045, 1026, 18798, 1025, 1045, 1009, 1009, 1007, 1063, 2065, 1006, 5167, 1031, 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...
goldfire/howler.js
dist/howler.js
function(audio) { var self = this || Howler; // Don't add audio to the pool if we don't know if it has been unlocked. if (audio._unlocked) { self._html5AudioPool.push(audio); } return self; }
javascript
function(audio) { var self = this || Howler; // Don't add audio to the pool if we don't know if it has been unlocked. if (audio._unlocked) { self._html5AudioPool.push(audio); } return self; }
[ "function", "(", "audio", ")", "{", "var", "self", "=", "this", "||", "Howler", ";", "// Don't add audio to the pool if we don't know if it has been unlocked.", "if", "(", "audio", ".", "_unlocked", ")", "{", "self", ".", "_html5AudioPool", ".", "push", "(", "audi...
Return an activated HTML5 Audio object to the pool. @return {Howler}
[ "Return", "an", "activated", "HTML5", "Audio", "object", "to", "the", "pool", "." ]
030db918dd8ce640afd57e172418472497e8f113
https://github.com/goldfire/howler.js/blob/030db918dd8ce640afd57e172418472497e8f113/dist/howler.js#L423-L432
train
Add an audio to the pool
[ 30522, 3853, 1006, 5746, 1007, 1063, 13075, 2969, 1027, 2023, 1064, 1064, 22912, 2121, 1025, 1013, 1013, 2123, 1005, 1056, 5587, 5746, 2000, 1996, 4770, 2065, 2057, 2123, 1005, 1056, 2113, 2065, 2009, 2038, 2042, 14058, 1012, 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...
jiahaog/nativefier
src/helpers/iconShellHelpers.js
iconShellHelper
function iconShellHelper(shellScriptPath, icoSrc, dest) { return new Promise((resolve, reject) => { if (isWindows()) { reject(new Error('OSX or Linux is required')); return; } shell.exec( `"${shellScriptPath}" "${icoSrc}" "${dest}"`, { silent: true }, (exitCode, stdOut, stdE...
javascript
function iconShellHelper(shellScriptPath, icoSrc, dest) { return new Promise((resolve, reject) => { if (isWindows()) { reject(new Error('OSX or Linux is required')); return; } shell.exec( `"${shellScriptPath}" "${icoSrc}" "${dest}"`, { silent: true }, (exitCode, stdOut, stdE...
[ "function", "iconShellHelper", "(", "shellScriptPath", ",", "icoSrc", ",", "dest", ")", "{", "return", "new", "Promise", "(", "(", "resolve", ",", "reject", ")", "=>", "{", "if", "(", "isWindows", "(", ")", ")", "{", "reject", "(", "new", "Error", "(",...
Executes a shell script with the form "./pathToScript param1 param2" @param {string} shellScriptPath @param {string} icoSrc input .ico @param {string} dest has to be a .ico path
[ "Executes", "a", "shell", "script", "with", "the", "form", ".", "/", "pathToScript", "param1", "param2" ]
b959956a38ce51a9dd95d42308f0a6c66489b624
https://github.com/jiahaog/nativefier/blob/b959956a38ce51a9dd95d42308f0a6c66489b624/src/helpers/iconShellHelpers.js#L23-L47
train
Helper function for iconShell
[ 30522, 3853, 18407, 18223, 16001, 4842, 1006, 10986, 23235, 15069, 1010, 24582, 2891, 11890, 1010, 4078, 2102, 1007, 1063, 2709, 2047, 4872, 1006, 1006, 10663, 1010, 15454, 1007, 1027, 1028, 1063, 2065, 1006, 2003, 11101, 15568, 1006, 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/model/odata/_AnnotationHelperExpression.js
function (sValue) { return DateFormat.getDateInstance({ pattern : "yyyy-MM-dd", strictParsing : true, UTC : true }).parse(sValue); }
javascript
function (sValue) { return DateFormat.getDateInstance({ pattern : "yyyy-MM-dd", strictParsing : true, UTC : true }).parse(sValue); }
[ "function", "(", "sValue", ")", "{", "return", "DateFormat", ".", "getDateInstance", "(", "{", "pattern", ":", "\"yyyy-MM-dd\"", ",", "strictParsing", ":", "true", ",", "UTC", ":", "true", "}", ")", ".", "parse", "(", "sValue", ")", ";", "}" ]
Parses an Edm.Date value and returns the corresponding JavaScript Date value. @param {string} sValue the Edm.Date value to parse @returns {Date} the JavaScript Date value or <code>null</code> in case the input could not be parsed
[ "Parses", "an", "Edm", ".", "Date", "value", "and", "returns", "the", "corresponding", "JavaScript", "Date", "value", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_AnnotationHelperExpression.js#L647-L653
train
Parses the given value into a date object.
[ 30522, 3853, 1006, 17917, 2389, 5657, 1007, 1063, 2709, 3058, 14192, 4017, 1012, 2131, 13701, 7076, 26897, 1006, 1063, 5418, 1024, 1000, 1061, 2100, 2100, 2100, 1011, 3461, 1011, 20315, 1000, 1010, 9384, 19362, 7741, 1024, 2995, 1010, 11396...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/EditorCommandHandlers.js
openLine
function openLine(editor, direction) { editor = editor || EditorManager.getFocusedEditor(); if (!editor) { return; } var selections = editor.getSelections(), isInlineWidget = !!EditorManager.getFocusedInlineWidget(), lastLine = editor.getLas...
javascript
function openLine(editor, direction) { editor = editor || EditorManager.getFocusedEditor(); if (!editor) { return; } var selections = editor.getSelections(), isInlineWidget = !!EditorManager.getFocusedInlineWidget(), lastLine = editor.getLas...
[ "function", "openLine", "(", "editor", ",", "direction", ")", "{", "editor", "=", "editor", "||", "EditorManager", ".", "getFocusedEditor", "(", ")", ";", "if", "(", "!", "editor", ")", "{", "return", ";", "}", "var", "selections", "=", "editor", ".", ...
Inserts a new and smart indented line above/below the selected text, or current line if no selection. The cursor is moved in the new line. @param {Editor} editor - target editor @param {Number} direction - direction where to place the new line (-1,+1) => (Up,Down)
[ "Inserts", "a", "new", "and", "smart", "indented", "line", "above", "/", "below", "the", "selected", "text", "or", "current", "line", "if", "no", "selection", ".", "The", "cursor", "is", "moved", "in", "the", "new", "line", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/editor/EditorCommandHandlers.js#L950-L1023
train
Open a line in the editor
[ 30522, 3853, 2330, 4179, 1006, 3559, 1010, 3257, 1007, 1063, 3559, 1027, 3559, 1064, 1064, 3559, 24805, 4590, 1012, 2131, 14876, 7874, 19082, 15660, 1006, 1007, 1025, 2065, 1006, 999, 3559, 1007, 1063, 2709, 1025, 1065, 13075, 16310, 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...
adobe/brackets
src/preferences/PreferencesBase.js
function () { var result = new $.Deferred(); this.storage.load() .then(function (data) { var oldKeys = this.getKeys(); this.data = data; result.resolve(); this.trigger(PREFERENCE_CHANGE, { ...
javascript
function () { var result = new $.Deferred(); this.storage.load() .then(function (data) { var oldKeys = this.getKeys(); this.data = data; result.resolve(); this.trigger(PREFERENCE_CHANGE, { ...
[ "function", "(", ")", "{", "var", "result", "=", "new", "$", ".", "Deferred", "(", ")", ";", "this", ".", "storage", ".", "load", "(", ")", ".", "then", "(", "function", "(", "data", ")", "{", "var", "oldKeys", "=", "this", ".", "getKeys", "(", ...
Loads the prefs for this `Scope` from the `Storage`. @return {Promise} Promise that is resolved once loading is complete
[ "Loads", "the", "prefs", "for", "this", "Scope", "from", "the", "Storage", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/preferences/PreferencesBase.js#L316-L331
train
Load the cache
[ 30522, 3853, 1006, 1007, 1063, 13075, 2765, 1027, 2047, 1002, 1012, 13366, 28849, 2094, 1006, 1007, 1025, 2023, 1012, 5527, 1012, 7170, 1006, 1007, 1012, 2059, 1006, 3853, 1006, 2951, 1007, 1063, 13075, 2214, 14839, 2015, 1027, 2023, 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...
eslint/eslint
lib/rules/require-atomic-updates.js
reportAssignment
function reportAssignment(assignmentExpression) { context.report({ node: assignmentExpression, messageId: "nonAtomicUpdate", data: { value: sourceCode.getText(assignmentExpression.left) } }); }
javascript
function reportAssignment(assignmentExpression) { context.report({ node: assignmentExpression, messageId: "nonAtomicUpdate", data: { value: sourceCode.getText(assignmentExpression.left) } }); }
[ "function", "reportAssignment", "(", "assignmentExpression", ")", "{", "context", ".", "report", "(", "{", "node", ":", "assignmentExpression", ",", "messageId", ":", "\"nonAtomicUpdate\"", ",", "data", ":", "{", "value", ":", "sourceCode", ".", "getText", "(", ...
Reports an AssignmentExpression node that has a non-atomic update @param {ASTNode} assignmentExpression The assignment that is potentially unsafe @returns {void}
[ "Reports", "an", "AssignmentExpression", "node", "that", "has", "a", "non", "-", "atomic", "update" ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/require-atomic-updates.js#L116-L124
train
Reports an assignment expression.
[ 30522, 3853, 3189, 12054, 24838, 1006, 8775, 10288, 20110, 3258, 1007, 1063, 6123, 1012, 3189, 1006, 1063, 13045, 1024, 8775, 10288, 20110, 3258, 1010, 4471, 3593, 1024, 1000, 2512, 10610, 7712, 6279, 13701, 1000, 1010, 2951, 1024, 1063, 36...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
waitForInterim
function waitForInterim(callbackFn) { return function() { var fnArguments = arguments; if (!showingInterims.length) { // When there are still interim's opening, then wait for the first interim element to // finish its open animation. if (showPromises.leng...
javascript
function waitForInterim(callbackFn) { return function() { var fnArguments = arguments; if (!showingInterims.length) { // When there are still interim's opening, then wait for the first interim element to // finish its open animation. if (showPromises.leng...
[ "function", "waitForInterim", "(", "callbackFn", ")", "{", "return", "function", "(", ")", "{", "var", "fnArguments", "=", "arguments", ";", "if", "(", "!", "showingInterims", ".", "length", ")", "{", "// When there are still interim's opening, then wait for the first...
Creates a function to wait for at least one interim element to be available. @param callbackFn Function to be used as callback @returns {Function}
[ "Creates", "a", "function", "to", "wait", "for", "at", "least", "one", "interim", "element", "to", "be", "available", "." ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/core/services/interimElement/interimElement.js#L425-L443
train
Wait until all interims are open
[ 30522, 3853, 3524, 29278, 18447, 11124, 2213, 1006, 2655, 5963, 2546, 2078, 1007, 1063, 2709, 3853, 1006, 1007, 1063, 13075, 1042, 11802, 22850, 11187, 1027, 9918, 1025, 2065, 1006, 999, 4760, 18447, 11124, 5244, 1012, 3091, 1007, 1063, 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...
sass/node-sass
lib/index.js
tryCallback
function tryCallback(callback, args) { try { return callback.apply(this, args); } catch (e) { if (typeof e === 'string') { return new binding.types.Error(e); } else if (e instanceof Error) { return new binding.types.Error(e.message); } else { return new binding.types.Error('An unex...
javascript
function tryCallback(callback, args) { try { return callback.apply(this, args); } catch (e) { if (typeof e === 'string') { return new binding.types.Error(e); } else if (e instanceof Error) { return new binding.types.Error(e.message); } else { return new binding.types.Error('An unex...
[ "function", "tryCallback", "(", "callback", ",", "args", ")", "{", "try", "{", "return", "callback", ".", "apply", "(", "this", ",", "args", ")", ";", "}", "catch", "(", "e", ")", "{", "if", "(", "typeof", "e", "===", "'string'", ")", "{", "return"...
Executes a callback and transforms any exception raised into a sass error @param {Function} callback @param {Array} arguments @api private
[ "Executes", "a", "callback", "and", "transforms", "any", "exception", "raised", "into", "a", "sass", "error" ]
0c1a49eefa37544d16041c5fe5b2e3d9168004b7
https://github.com/sass/node-sass/blob/0c1a49eefa37544d16041c5fe5b2e3d9168004b7/lib/index.js#L226-L238
train
Try a callback
[ 30522, 3853, 3046, 9289, 20850, 8684, 1006, 2655, 5963, 1010, 12098, 5620, 1007, 1063, 3046, 1063, 2709, 2655, 5963, 1012, 6611, 1006, 2023, 1010, 12098, 5620, 1007, 1025, 1065, 4608, 1006, 1041, 1007, 1063, 2065, 1006, 2828, 11253, 1041, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/systems/tracked-controls-webvr.js
function () { var controllers = this.controllers; var gamepad; var gamepads; var i; var prevCount; gamepads = navigator.getGamepads && navigator.getGamepads(); if (!gamepads) { return; } prevCount = controllers.length; controllers.length = 0; for (i = 0; i < gamepads.length; ++...
javascript
function () { var controllers = this.controllers; var gamepad; var gamepads; var i; var prevCount; gamepads = navigator.getGamepads && navigator.getGamepads(); if (!gamepads) { return; } prevCount = controllers.length; controllers.length = 0; for (i = 0; i < gamepads.length; ++...
[ "function", "(", ")", "{", "var", "controllers", "=", "this", ".", "controllers", ";", "var", "gamepad", ";", "var", "gamepads", ";", "var", "i", ";", "var", "prevCount", ";", "gamepads", "=", "navigator", ".", "getGamepads", "&&", "navigator", ".", "get...
Update controller list.
[ "Update", "controller", "list", "." ]
24acc78a7299a4cdfe3ef617f4d40ddf6275c992
https://github.com/aframevr/aframe/blob/24acc78a7299a4cdfe3ef617f4d40ddf6275c992/src/systems/tracked-controls-webvr.js#L39-L61
train
Updates the controllers array
[ 30522, 3853, 1006, 1007, 1063, 30524, 25465, 21723, 1025, 2208, 15455, 2015, 1027, 20532, 1012, 2131, 16650, 15455, 2015, 1004, 1004, 20532, 1012, 2131, 16650, 15455, 2015, 1006, 1007, 1025, 2065, 1006, 999, 2208, 15455, 2015, 1007, 1063, 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...
jhipster/generator-jhipster
generators/aws-containers/aws-client.js
loadAWS
function loadAWS(generator) { return new Promise((resolve, reject) => { try { AWS = require('aws-sdk'); // eslint-disable-line ProgressBar = require('progress'); // eslint-disable-line ora = require('ora'); // eslint-disable-line } catch (e) { generato...
javascript
function loadAWS(generator) { return new Promise((resolve, reject) => { try { AWS = require('aws-sdk'); // eslint-disable-line ProgressBar = require('progress'); // eslint-disable-line ora = require('ora'); // eslint-disable-line } catch (e) { generato...
[ "function", "loadAWS", "(", "generator", ")", "{", "return", "new", "Promise", "(", "(", "resolve", ",", "reject", ")", "=>", "{", "try", "{", "AWS", "=", "require", "(", "'aws-sdk'", ")", ";", "// eslint-disable-line", "ProgressBar", "=", "require", "(", ...
Will load the aws-sdk npm dependency if it's not already loaded. @param generator the yeoman generator it'll be loaded in. @returns {Promise} The promise will succeed if the aws-sdk has been loaded and fails if it couldn't be installed.
[ "Will", "load", "the", "aws", "-", "sdk", "npm", "dependency", "if", "it", "s", "not", "already", "loaded", "." ]
f76fa8de0818ce6bda6c7b1455942e2a9b0ae3ff
https://github.com/jhipster/generator-jhipster/blob/f76fa8de0818ce6bda6c7b1455942e2a9b0ae3ff/generators/aws-containers/aws-client.js#L73-L97
train
Load the AWS SDK
[ 30522, 3853, 7170, 10376, 2015, 1006, 13103, 1007, 1063, 2709, 2047, 4872, 1006, 1006, 10663, 1010, 15454, 1007, 1027, 1028, 1063, 3046, 1063, 22091, 2015, 1027, 5478, 1006, 1005, 22091, 2015, 1011, 17371, 2243, 1005, 1007, 1025, 1013, 1013...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.commons/src/sap/ui/commons/RoadMapRenderer.js
function(oRoadMap, oStep){ var oParent = oStep.getParent(); if (oParent === oRoadMap) { return oParent.indexOfStep(oStep) + 1; } var iIdx = oParent.indexOfSubStep(oStep); if (iIdx < 26) { return String.fromCharCode(97 + iIdx); } // Single character //Double characters Substeps name are formed of ...
javascript
function(oRoadMap, oStep){ var oParent = oStep.getParent(); if (oParent === oRoadMap) { return oParent.indexOfStep(oStep) + 1; } var iIdx = oParent.indexOfSubStep(oStep); if (iIdx < 26) { return String.fromCharCode(97 + iIdx); } // Single character //Double characters Substeps name are formed of ...
[ "function", "(", "oRoadMap", ",", "oStep", ")", "{", "var", "oParent", "=", "oStep", ".", "getParent", "(", ")", ";", "if", "(", "oParent", "===", "oRoadMap", ")", "{", "return", "oParent", ".", "indexOfStep", "(", "oStep", ")", "+", "1", ";", "}", ...
Returns the name of the step according to its index in the aggregation (like "1", "a", "aa")
[ "Returns", "the", "name", "of", "the", "step", "according", "to", "its", "index", "in", "the", "aggregation", "(", "like", "1", "a", "aa", ")" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/RoadMapRenderer.js#L759-L775
train
Returns the name of the given step
[ 30522, 3853, 1006, 20298, 4215, 2863, 2361, 1010, 9808, 2618, 2361, 1007, 1063, 13075, 6728, 12069, 3372, 1027, 9808, 2618, 2361, 1012, 2131, 19362, 4765, 1006, 1007, 1025, 2065, 1006, 6728, 12069, 3372, 1027, 1027, 1027, 20298, 4215, 2863,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
wuchangming/spy-debugger
buildin_modules/weinre/web/interfaces/interfaces.js
showInterfaceJava
function showInterfaceJava(intf, html) { html.push("<div class='show-Java'><h3>Java</h3><pre>") intf.methods.forEach(function(method){ showInterfaceJavaMethod(intf, method, html) }) html.push("</pre></div>") }
javascript
function showInterfaceJava(intf, html) { html.push("<div class='show-Java'><h3>Java</h3><pre>") intf.methods.forEach(function(method){ showInterfaceJavaMethod(intf, method, html) }) html.push("</pre></div>") }
[ "function", "showInterfaceJava", "(", "intf", ",", "html", ")", "{", "html", ".", "push", "(", "\"<div class='show-Java'><h3>Java</h3><pre>\"", ")", "intf", ".", "methods", ".", "forEach", "(", "function", "(", "method", ")", "{", "showInterfaceJavaMethod", "(", ...
-----------------------------------------------------------------------------
[ "-----------------------------------------------------------------------------" ]
55c1dda0dff0c44920673711656ddfd7ff03c307
https://github.com/wuchangming/spy-debugger/blob/55c1dda0dff0c44920673711656ddfd7ff03c307/buildin_modules/weinre/web/interfaces/interfaces.js#L344-L352
train
show interface java
[ 30522, 3853, 2265, 18447, 2121, 12172, 3900, 3567, 1006, 20014, 2546, 1010, 16129, 1007, 1063, 16129, 1012, 5245, 1006, 1000, 1026, 4487, 2615, 2465, 1027, 1005, 2265, 1011, 9262, 1005, 1028, 1026, 1044, 2509, 1028, 9262, 1026, 1013, 1044, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
wix/Detox
generation/core/generator.js
createClass
function createClass(json) { return t.classDeclaration( t.identifier(json.name), null, t.classBody( json.methods .filter(filterMethodsWithUnsupportedParams) .filter(filterMethodsWithBlacklistedName) .reduce(handleOverloadedMethods, []) .map(createMet...
javascript
function createClass(json) { return t.classDeclaration( t.identifier(json.name), null, t.classBody( json.methods .filter(filterMethodsWithUnsupportedParams) .filter(filterMethodsWithBlacklistedName) .reduce(handleOverloadedMethods, []) .map(createMet...
[ "function", "createClass", "(", "json", ")", "{", "return", "t", ".", "classDeclaration", "(", "t", ".", "identifier", "(", "json", ".", "name", ")", ",", "null", ",", "t", ".", "classBody", "(", "json", ".", "methods", ".", "filter", "(", "filterMetho...
the input provided by objective-c-parser looks like this: { "name": "BasicName", "methods": [ { "args": [], "comment": "This is the comment of basic method one", "name": "basicMethodOne", "returnType": "NSInteger" }, { "args": [ { "type": "NSInteger", "name": "argOne" }, { "type": "NSString", "name": "argTwo" } ], "com...
[ "the", "input", "provided", "by", "objective", "-", "c", "-", "parser", "looks", "like", "this", ":", "{", "name", ":", "BasicName", "methods", ":", "[", "{", "args", ":", "[]", "comment", ":", "This", "is", "the", "comment", "of", "basic", "method", ...
0ed5e8c7ba279a3a409130b4d4bad3f9a9c2f1f9
https://github.com/wix/Detox/blob/0ed5e8c7ba279a3a409130b4d4bad3f9a9c2f1f9/generation/core/generator.js#L49-L62
train
Creates a class declaration
[ 30522, 3853, 3443, 26266, 1006, 1046, 3385, 1007, 1063, 2709, 1056, 1012, 2465, 3207, 20464, 25879, 3258, 1006, 1056, 1012, 8909, 4765, 18095, 1006, 1046, 3385, 1012, 2171, 1007, 1010, 19701, 1010, 1056, 1012, 2465, 23684, 1006, 1046, 3385,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/filesystem/impls/appshell/AppshellFileSystem.js
_mapError
function _mapError(err) { if (!err) { return null; } switch (err) { case appshell.fs.ERR_INVALID_PARAMS: return FileSystemError.INVALID_PARAMS; case appshell.fs.ERR_NOT_FOUND: return FileSystemError.NOT_FOUND; case appshell.fs.ERR_CANT...
javascript
function _mapError(err) { if (!err) { return null; } switch (err) { case appshell.fs.ERR_INVALID_PARAMS: return FileSystemError.INVALID_PARAMS; case appshell.fs.ERR_NOT_FOUND: return FileSystemError.NOT_FOUND; case appshell.fs.ERR_CANT...
[ "function", "_mapError", "(", "err", ")", "{", "if", "(", "!", "err", ")", "{", "return", "null", ";", "}", "switch", "(", "err", ")", "{", "case", "appshell", ".", "fs", ".", "ERR_INVALID_PARAMS", ":", "return", "FileSystemError", ".", "INVALID_PARAMS",...
Convert appshell error codes to FileSystemError values. @param {?number} err An appshell error code @return {?string} A FileSystemError string, or null if there was no error code. @private
[ "Convert", "appshell", "error", "codes", "to", "FileSystemError", "values", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/filesystem/impls/appshell/AppshellFileSystem.js#L143-L171
train
map error to FileSystemError
[ 30522, 3853, 1035, 4949, 2121, 29165, 1006, 9413, 2099, 1007, 1063, 2065, 1006, 999, 9413, 2099, 1007, 1063, 2709, 19701, 1025, 1065, 6942, 1006, 9413, 2099, 1007, 1063, 2553, 18726, 18223, 1012, 1042, 2015, 1012, 9413, 2099, 1035, 19528, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/bar/PictorialBarView.js
prepareSymbolSize
function prepareSymbolSize( data, dataIndex, layout, symbolRepeat, symbolClip, boundingLength, pxSign, symbolPatternSize, opt, output ) { var valueDim = opt.valueDim; var categoryDim = opt.categoryDim; var categorySize = Math.abs(layout[categoryDim.wh]); var symbolSize = data.getItemVisual(data...
javascript
function prepareSymbolSize( data, dataIndex, layout, symbolRepeat, symbolClip, boundingLength, pxSign, symbolPatternSize, opt, output ) { var valueDim = opt.valueDim; var categoryDim = opt.categoryDim; var categorySize = Math.abs(layout[categoryDim.wh]); var symbolSize = data.getItemVisual(data...
[ "function", "prepareSymbolSize", "(", "data", ",", "dataIndex", ",", "layout", ",", "symbolRepeat", ",", "symbolClip", ",", "boundingLength", ",", "pxSign", ",", "symbolPatternSize", ",", "opt", ",", "output", ")", "{", "var", "valueDim", "=", "opt", ".", "v...
Support ['100%', '100%']
[ "Support", "[", "100%", "100%", "]" ]
4d0ea095dc3929cb6de40c45748826e7999c7aa8
https://github.com/apache/incubator-echarts/blob/4d0ea095dc3929cb6de40c45748826e7999c7aa8/src/chart/bar/PictorialBarView.js#L238-L280
train
Prepare the symbol size for the categorizing chart.
[ 30522, 3853, 20776, 24335, 14956, 5332, 4371, 1006, 2951, 1010, 2951, 22254, 10288, 1010, 9621, 1010, 6454, 2890, 5051, 4017, 1010, 6454, 20464, 11514, 1010, 5391, 2075, 7770, 13512, 2232, 1010, 1052, 2595, 5332, 16206, 1010, 6454, 4502, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/EditorStatusBar.js
_updateEncodingInfo
function _updateEncodingInfo(editor) { var doc = editor.document; // Show the current encoding as button title if (!doc.file._encoding) { doc.file._encoding = "UTF-8"; } encodingSelect.$button.text(doc.file._encoding); }
javascript
function _updateEncodingInfo(editor) { var doc = editor.document; // Show the current encoding as button title if (!doc.file._encoding) { doc.file._encoding = "UTF-8"; } encodingSelect.$button.text(doc.file._encoding); }
[ "function", "_updateEncodingInfo", "(", "editor", ")", "{", "var", "doc", "=", "editor", ".", "document", ";", "// Show the current encoding as button title", "if", "(", "!", "doc", ".", "file", ".", "_encoding", ")", "{", "doc", ".", "file", ".", "_encoding",...
Update encoding @param {Editor} editor Current editor
[ "Update", "encoding" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/editor/EditorStatusBar.js#L100-L108
train
Update the encoding button
[ 30522, 3853, 1035, 10651, 2368, 3597, 4667, 2378, 14876, 1006, 3559, 1007, 1063, 13075, 9986, 1027, 3559, 1012, 6254, 1025, 1013, 1013, 2265, 1996, 2783, 17181, 2004, 6462, 2516, 2065, 1006, 999, 9986, 1012, 5371, 1012, 1035, 17181, 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...
GeekyAnts/vue-native-core
src/core/util/options.js
mergeHook
function mergeHook ( parentVal: ?Array<Function>, childVal: ?Function | ?Array<Function> ): ?Array<Function> { return childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal }
javascript
function mergeHook ( parentVal: ?Array<Function>, childVal: ?Function | ?Array<Function> ): ?Array<Function> { return childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal }
[ "function", "mergeHook", "(", "parentVal", ":", "?", "Array", "<", "Function", ">", ",", "childVal", ":", "?", "Function", "|", "?", "Array", "<", "Function", ">", ")", ":", "?", "Array", "<", "Function", ">", "{", "return", "childVal", "?", "parentVal...
Hooks and props are merged as arrays.
[ "Hooks", "and", "props", "are", "merged", "as", "arrays", "." ]
a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e
https://github.com/GeekyAnts/vue-native-core/blob/a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e/src/core/util/options.js#L120-L131
train
Merge a hook with a child hook
[ 30522, 3853, 13590, 6806, 6559, 1006, 6687, 10175, 1024, 1029, 9140, 1026, 3853, 1028, 1010, 2775, 10175, 1024, 1029, 3853, 1064, 1029, 9140, 1026, 3853, 1028, 1007, 1024, 1029, 9140, 1026, 3853, 1028, 1063, 2709, 2775, 10175, 1029, 6687, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/code-path-analysis/code-path-state.js
getContinueContext
function getContinueContext(state, label) { if (!label) { return state.loopContext; } let context = state.loopContext; while (context) { if (context.label === label) { return context; } context = context.upper; } /* istanbul ignore next: foolproof (...
javascript
function getContinueContext(state, label) { if (!label) { return state.loopContext; } let context = state.loopContext; while (context) { if (context.label === label) { return context; } context = context.upper; } /* istanbul ignore next: foolproof (...
[ "function", "getContinueContext", "(", "state", ",", "label", ")", "{", "if", "(", "!", "label", ")", "{", "return", "state", ".", "loopContext", ";", "}", "let", "context", "=", "state", ".", "loopContext", ";", "while", "(", "context", ")", "{", "if"...
Gets a loop-context for a `continue` statement. @param {CodePathState} state - A state to get. @param {string} label - The label of a `continue` statement. @returns {LoopContext} A loop-context for a `continue` statement.
[ "Gets", "a", "loop", "-", "context", "for", "a", "continue", "statement", "." ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/code-path-analysis/code-path-state.js#L50-L66
train
Returns the context for a continue statement
[ 30522, 3853, 2131, 8663, 7629, 5657, 8663, 18209, 1006, 2110, 1010, 3830, 1007, 1063, 2065, 1006, 999, 3830, 1007, 1063, 2709, 2110, 1012, 7077, 8663, 18209, 1025, 1065, 2292, 6123, 1027, 2110, 1012, 7077, 8663, 18209, 1025, 2096, 1006, 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...
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/report/ReportProvider.js
downloadReportZip
function downloadReportZip(oData) { this.getReportHtml(oData).done(function (html) { var report = '<!DOCTYPE HTML><html><head><title>Report</title></head><body><div id="sap-report-content">' + html + '</div></body></html>'; var issues = { 'issues': oData.issues }; var appInfos = { 'appInfos': oData.applicati...
javascript
function downloadReportZip(oData) { this.getReportHtml(oData).done(function (html) { var report = '<!DOCTYPE HTML><html><head><title>Report</title></head><body><div id="sap-report-content">' + html + '</div></body></html>'; var issues = { 'issues': oData.issues }; var appInfos = { 'appInfos': oData.applicati...
[ "function", "downloadReportZip", "(", "oData", ")", "{", "this", ".", "getReportHtml", "(", "oData", ")", ".", "done", "(", "function", "(", "html", ")", "{", "var", "report", "=", "'<!DOCTYPE HTML><html><head><title>Report</title></head><body><div id=\"sap-report-conte...
Creates a zip file containing the report.html, appInfo.json, technicalInfo.json, issues.json. @param {Object} oData - the data required to create a report
[ "Creates", "a", "zip", "file", "containing", "the", "report", ".", "html", "appInfo", ".", "json", "technicalInfo", ".", "json", "issues", ".", "json", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/report/ReportProvider.js#L400-L415
train
Download the report zip
[ 30522, 3853, 8816, 2890, 6442, 5831, 2361, 1006, 1051, 2850, 2696, 1007, 1063, 2023, 1012, 2131, 2890, 6442, 11039, 19968, 1006, 1051, 2850, 2696, 1007, 1012, 2589, 1006, 3853, 1006, 16129, 1007, 1063, 13075, 3189, 1027, 1005, 1026, 999, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/js/mui.locker.js
function(diffX, diffY) { var self = this; var Re = []; for (var row = 0; row < 3; row++) { for (var col = 0; col < 3; col++) { var Point = { X: (self.OffsetX + col * diffX + (col * 2 + 1) * self.R), Y: (self.OffsetY + row * diffY + (row * 2 + 1) * self.R) }; Re.push(Point); }...
javascript
function(diffX, diffY) { var self = this; var Re = []; for (var row = 0; row < 3; row++) { for (var col = 0; col < 3; col++) { var Point = { X: (self.OffsetX + col * diffX + (col * 2 + 1) * self.R), Y: (self.OffsetY + row * diffY + (row * 2 + 1) * self.R) }; Re.push(Point); }...
[ "function", "(", "diffX", ",", "diffY", ")", "{", "var", "self", "=", "this", ";", "var", "Re", "=", "[", "]", ";", "for", "(", "var", "row", "=", "0", ";", "row", "<", "3", ";", "row", "++", ")", "{", "for", "(", "var", "col", "=", "0", ...
计算
[ "计算" ]
ff74c90a1671a552f3604b1288bf38a4126312d0
https://github.com/dcloudio/mui/blob/ff74c90a1671a552f3604b1288bf38a4126312d0/examples/login/js/mui.locker.js#L107-L120
train
Returns a list of points that are within the specified rectangle
[ 30522, 3853, 1006, 4487, 4246, 2595, 1010, 4487, 16329, 1007, 1063, 13075, 2969, 1027, 2023, 1025, 13075, 2128, 1027, 1031, 1033, 1025, 2005, 1006, 13075, 5216, 1027, 1014, 1025, 5216, 1026, 1017, 1025, 5216, 1009, 1009, 1007, 1063, 2005, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
js/mui.jsonp.js
function(url) { var element = doc.createElement('script'); element.src = url; element.async = true; element.defer = true; container.appendChild(element); return element; }
javascript
function(url) { var element = doc.createElement('script'); element.src = url; element.async = true; element.defer = true; container.appendChild(element); return element; }
[ "function", "(", "url", ")", "{", "var", "element", "=", "doc", ".", "createElement", "(", "'script'", ")", ";", "element", ".", "src", "=", "url", ";", "element", ".", "async", "=", "true", ";", "element", ".", "defer", "=", "true", ";", "container"...
导入 script 元素
[ "导入", "script", "元素" ]
ff74c90a1671a552f3604b1288bf38a4126312d0
https://github.com/dcloudio/mui/blob/ff74c90a1671a552f3604b1288bf38a4126312d0/js/mui.jsonp.js#L20-L27
train
Creates a script element
[ 30522, 3853, 1006, 24471, 2140, 1007, 1063, 13075, 5783, 1027, 9986, 1012, 3443, 12260, 3672, 1006, 1005, 5896, 1005, 1007, 1025, 5783, 1012, 5034, 2278, 1027, 24471, 2140, 1025, 5783, 1012, 2004, 6038, 2278, 1027, 2995, 1025, 5783, 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...
ccxt/ccxt
examples/js/load-all-tickers-at-once.js
async function (exchange, symbol) { try { await exchange.loadMarkets () if (symbol in exchange.markets) { let ticker = await exchange.fetchTicker (symbol) log (exchange.id.green, symbol.green, 'ticker', ticker['datetime'], 'high: ' + hu...
javascript
async function (exchange, symbol) { try { await exchange.loadMarkets () if (symbol in exchange.markets) { let ticker = await exchange.fetchTicker (symbol) log (exchange.id.green, symbol.green, 'ticker', ticker['datetime'], 'high: ' + hu...
[ "async", "function", "(", "exchange", ",", "symbol", ")", "{", "try", "{", "await", "exchange", ".", "loadMarkets", "(", ")", "if", "(", "symbol", "in", "exchange", ".", "markets", ")", "{", "let", "ticker", "=", "await", "exchange", ".", "fetchTicker", ...
-----------------------------------------------------------------------------
[ "-----------------------------------------------------------------------------" ]
8168069b9180a465532905e225586215e115a565
https://github.com/ccxt/ccxt/blob/8168069b9180a465532905e225586215e115a565/examples/js/load-all-tickers-at-once.js#L22-L63
train
get the term
[ 30522, 2004, 6038, 2278, 3853, 1006, 3863, 1010, 6454, 1007, 1063, 3046, 1063, 26751, 3863, 1012, 7170, 20285, 2015, 1006, 1007, 2065, 1006, 6454, 1999, 3863, 1012, 6089, 1007, 1063, 2292, 16356, 2121, 1027, 26751, 3863, 1012, 18584, 26348,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
emberjs/ember.js
packages/@ember/object/lib/computed/reduce_computed_macros.js
propertySort
function propertySort(itemsKey, sortPropertiesKey) { let activeObserversMap = new WeakMap(); let sortPropertyDidChangeMap = new WeakMap(); if (EMBER_METAL_TRACKED_PROPERTIES) { let cp = computed(`${itemsKey}.[]`, `${sortPropertiesKey}.[]`, function(key) { let sortProperties = get(this, sortPropertiesKe...
javascript
function propertySort(itemsKey, sortPropertiesKey) { let activeObserversMap = new WeakMap(); let sortPropertyDidChangeMap = new WeakMap(); if (EMBER_METAL_TRACKED_PROPERTIES) { let cp = computed(`${itemsKey}.[]`, `${sortPropertiesKey}.[]`, function(key) { let sortProperties = get(this, sortPropertiesKe...
[ "function", "propertySort", "(", "itemsKey", ",", "sortPropertiesKey", ")", "{", "let", "activeObserversMap", "=", "new", "WeakMap", "(", ")", ";", "let", "sortPropertyDidChangeMap", "=", "new", "WeakMap", "(", ")", ";", "if", "(", "EMBER_METAL_TRACKED_PROPERTIES"...
This one needs to dynamically set up and tear down observers on the itemsKey depending on the sortProperties
[ "This", "one", "needs", "to", "dynamically", "set", "up", "and", "tear", "down", "observers", "on", "the", "itemsKey", "depending", "on", "the", "sortProperties" ]
7ef1d08b7fe44000cf97b3c43566d20337b0683d
https://github.com/emberjs/ember.js/blob/7ef1d08b7fe44000cf97b3c43566d20337b0683d/packages/@ember/object/lib/computed/reduce_computed_macros.js#L1487-L1570
train
Returns a computed property which sorts the items in the given array of items by the given property name.
[ 30522, 3853, 3200, 21748, 2102, 1006, 5167, 14839, 1010, 4066, 21572, 4842, 7368, 14839, 1007, 1063, 2292, 3161, 16429, 8043, 14028, 2863, 2361, 1027, 2047, 5410, 2863, 2361, 1006, 1007, 1025, 2292, 4066, 21572, 4842, 3723, 4305, 16409, 180...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/ODataParentBinding.js
ODataParentBinding
function ODataParentBinding() { // initialize members introduced by ODataBinding asODataBinding.call(this); // the aggregated query options this.mAggregatedQueryOptions = {}; // whether the aggregated query options are processed the first time this.bAggregatedQueryOptionsInitial = true; // auto-$expand/$...
javascript
function ODataParentBinding() { // initialize members introduced by ODataBinding asODataBinding.call(this); // the aggregated query options this.mAggregatedQueryOptions = {}; // whether the aggregated query options are processed the first time this.bAggregatedQueryOptionsInitial = true; // auto-$expand/$...
[ "function", "ODataParentBinding", "(", ")", "{", "// initialize members introduced by ODataBinding", "asODataBinding", ".", "call", "(", "this", ")", ";", "// the aggregated query options", "this", ".", "mAggregatedQueryOptions", "=", "{", "}", ";", "// whether the aggregat...
A mixin for all OData V4 bindings with dependent bindings. @alias sap.ui.model.odata.v4.ODataParentBinding @extends sap.ui.model.odata.v4.ODataBinding @mixin
[ "A", "mixin", "for", "all", "OData", "V4", "bindings", "with", "dependent", "bindings", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/ODataParentBinding.js#L24-L41
train
The ODataParentBinding class
[ 30522, 3853, 1051, 2850, 2696, 19362, 4765, 8428, 4667, 1006, 1007, 1063, 1013, 1013, 3988, 4697, 2372, 3107, 2011, 1051, 2850, 2696, 8428, 4667, 2004, 13390, 2696, 8428, 4667, 1012, 2655, 1006, 2023, 1007, 1025, 1013, 1013, 1996, 9572, 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...
adobe/brackets
src/editor/EditorOptionHandlers.js
_updateCheckedState
function _updateCheckedState(name) { var mapping = _optionMapping[name]; if (!mapping) { return; } CommandManager.get(mapping).setChecked(PreferencesManager.get(name)); }
javascript
function _updateCheckedState(name) { var mapping = _optionMapping[name]; if (!mapping) { return; } CommandManager.get(mapping).setChecked(PreferencesManager.get(name)); }
[ "function", "_updateCheckedState", "(", "name", ")", "{", "var", "mapping", "=", "_optionMapping", "[", "name", "]", ";", "if", "(", "!", "mapping", ")", "{", "return", ";", "}", "CommandManager", ".", "get", "(", "mapping", ")", ".", "setChecked", "(", ...
@private Updates the command checked status based on the preference name given. @param {string} name Name of preference that has changed
[ "@private" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/editor/EditorOptionHandlers.js#L64-L70
train
Updates the state of a command
[ 30522, 3853, 1035, 10651, 5403, 18141, 9153, 2618, 1006, 2171, 1007, 1063, 13075, 12375, 1027, 1035, 5724, 2863, 14853, 1031, 2171, 1033, 1025, 2065, 1006, 999, 12375, 1007, 1063, 2709, 1025, 1065, 3094, 24805, 4590, 1012, 2131, 1006, 12375...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
netlify/netlify-cms
packages/netlify-cms-widget-markdown/src/serializers/slateRemark.js
transform
function transform(node) { /** * Combine adjacent text and inline nodes before processing so they can * share marks. */ const combinedChildren = node.nodes && combineTextAndInline(node.nodes); /** * Call `transform` recursively on child nodes, and flatten the resulting * array. */ const child...
javascript
function transform(node) { /** * Combine adjacent text and inline nodes before processing so they can * share marks. */ const combinedChildren = node.nodes && combineTextAndInline(node.nodes); /** * Call `transform` recursively on child nodes, and flatten the resulting * array. */ const child...
[ "function", "transform", "(", "node", ")", "{", "/**\n * Combine adjacent text and inline nodes before processing so they can\n * share marks.\n */", "const", "combinedChildren", "=", "node", ".", "nodes", "&&", "combineTextAndInline", "(", "node", ".", "nodes", ")", ";...
The transform function mimics the approach of a Remark plugin for conformity with the other serialization functions. This function converts Slate nodes to MDAST nodes, and recursively calls itself to process child nodes to arbitrary depth.
[ "The", "transform", "function", "mimics", "the", "approach", "of", "a", "Remark", "plugin", "for", "conformity", "with", "the", "other", "serialization", "functions", ".", "This", "function", "converts", "Slate", "nodes", "to", "MDAST", "nodes", "and", "recursiv...
2488556590cbfdcefa626f2f2de01e7a160cf6ee
https://github.com/netlify/netlify-cms/blob/2488556590cbfdcefa626f2f2de01e7a160cf6ee/packages/netlify-cms-widget-markdown/src/serializers/slateRemark.js#L57-L74
train
Transform a node recursively.
[ 30522, 3853, 10938, 1006, 13045, 1007, 1063, 1013, 1008, 1008, 1008, 11506, 5516, 3793, 1998, 23881, 14164, 2077, 6364, 2061, 2027, 2064, 1008, 3745, 6017, 1012, 1008, 1013, 9530, 3367, 4117, 19339, 7389, 1027, 13045, 1012, 14164, 1004, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, oldContext, newContext) { var newGlob = _findMatchingGlob(data, FileUtils.getRelativeFilename(this.prefFilePath, newContext[this.key])), oldGlob = _findMatchingGlob(data, FileUtils.getRelativeFilename(this.prefFilePa...
javascript
function (data, oldContext, newContext) { var newGlob = _findMatchingGlob(data, FileUtils.getRelativeFilename(this.prefFilePath, newContext[this.key])), oldGlob = _findMatchingGlob(data, FileUtils.getRelativeFilename(this.prefFilePa...
[ "function", "(", "data", ",", "oldContext", ",", "newContext", ")", "{", "var", "newGlob", "=", "_findMatchingGlob", "(", "data", ",", "FileUtils", ".", "getRelativeFilename", "(", "this", ".", "prefFilePath", ",", "newContext", "[", "this", ".", "key", "]",...
Determines if there are preference IDs that could change as a result of a change in the context. This implementation considers only the path portion of the context and looks up matching globes if any. @param {Object} data Data in the Scope @param {{path: string}} oldContext Old context @param {{path: string}} newConte...
[ "Determines", "if", "there", "are", "preference", "IDs", "that", "could", "change", "as", "a", "result", "of", "a", "change", "in", "the", "context", ".", "This", "implementation", "considers", "only", "the", "path", "portion", "of", "the", "context", "and",...
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/preferences/PreferencesBase.js#L1001-L1018
train
returns the keys of the new and old globs
[ 30522, 3853, 1006, 2951, 1010, 2214, 8663, 18209, 1010, 2047, 8663, 18209, 1007, 1063, 13075, 2047, 23296, 16429, 1027, 1035, 2424, 18900, 8450, 23296, 16429, 1006, 2951, 1010, 5371, 21823, 4877, 1012, 2131, 16570, 8082, 8873, 20844, 4168, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
GeekyAnts/vue-native-core
packages/weex-vue-framework/factory.js
flushSchedulerQueue
function flushSchedulerQueue () { flushing = true; var watcher, id, vm; // Sort queue before flush. // This ensures that: // 1. Components are updated from parent to child. (because parent is always // created before the child) // 2. A component's user watchers are run before its render watcher (becau...
javascript
function flushSchedulerQueue () { flushing = true; var watcher, id, vm; // Sort queue before flush. // This ensures that: // 1. Components are updated from parent to child. (because parent is always // created before the child) // 2. A component's user watchers are run before its render watcher (becau...
[ "function", "flushSchedulerQueue", "(", ")", "{", "flushing", "=", "true", ";", "var", "watcher", ",", "id", ",", "vm", ";", "// Sort queue before flush.", "// This ensures that:", "// 1. Components are updated from parent to child. (because parent is always", "// created be...
Flush both queues and run the watchers.
[ "Flush", "both", "queues", "and", "run", "the", "watchers", "." ]
a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e
https://github.com/GeekyAnts/vue-native-core/blob/a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e/packages/weex-vue-framework/factory.js#L2286-L2341
train
flush scheduler queue
[ 30522, 3853, 13862, 22842, 8566, 3917, 4226, 5657, 1006, 1007, 1063, 23519, 1027, 2995, 1025, 13075, 3422, 2121, 1010, 8909, 1010, 1058, 2213, 1025, 1013, 1013, 4066, 24240, 2077, 13862, 1012, 1013, 1013, 2023, 21312, 2008, 1024, 1013, 1013...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 (newData) { var result = new $.Deferred(); var path = this.path; var prefFile = FileSystem.getFileForPath(path); if (path) { try { var text = JSON.stringify(newData, null, 4); // maintain the original line...
javascript
function (newData) { var result = new $.Deferred(); var path = this.path; var prefFile = FileSystem.getFileForPath(path); if (path) { try { var text = JSON.stringify(newData, null, 4); // maintain the original line...
[ "function", "(", "newData", ")", "{", "var", "result", "=", "new", "$", ".", "Deferred", "(", ")", ";", "var", "path", "=", "this", ".", "path", ";", "var", "prefFile", "=", "FileSystem", ".", "getFileForPath", "(", "path", ")", ";", "if", "(", "pa...
Saves the new data to disk. @param {Object} newData data to save @return {Promise} Promise resolved (with no arguments) once the data has been saved
[ "Saves", "the", "new", "data", "to", "disk", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/preferences/PreferencesBase.js#L237-L262
train
Save the new data to the file system
[ 30522, 3853, 1006, 2047, 2850, 2696, 1007, 1063, 13075, 2765, 1027, 2047, 1002, 1012, 13366, 28849, 2094, 1006, 1007, 1025, 13075, 4130, 30524, 3385, 1012, 5164, 8757, 1006, 2047, 2850, 2696, 1010, 19701, 1010, 1018, 1007, 1025, 1013, 1013,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
didi/cube-ui
example/modules/image.js
orientationHelper
function orientationHelper(canvas, ctx, orientation) { const w = canvas.width, h = canvas.height; if(orientation > 4){ canvas.width = h; canvas.height = w; } switch (orientation) { case 2: ctx.translate(w, 0); ctx.scale(-1, 1); break; c...
javascript
function orientationHelper(canvas, ctx, orientation) { const w = canvas.width, h = canvas.height; if(orientation > 4){ canvas.width = h; canvas.height = w; } switch (orientation) { case 2: ctx.translate(w, 0); ctx.scale(-1, 1); break; c...
[ "function", "orientationHelper", "(", "canvas", ",", "ctx", ",", "orientation", ")", "{", "const", "w", "=", "canvas", ".", "width", ",", "h", "=", "canvas", ".", "height", ";", "if", "(", "orientation", ">", "4", ")", "{", "canvas", ".", "width", "=...
修正拍照时图片的方向 ref to http://stackoverflow.com/questions/19463126/how-to-draw-photo-with-correct-orientation-in-canvas-after-capture-photo-by-usin
[ "修正拍照时图片的方向", "ref", "to", "http", ":", "//", "stackoverflow", ".", "com", "/", "questions", "/", "19463126", "/", "how", "-", "to", "-", "draw", "-", "photo", "-", "with", "-", "correct", "-", "orientation", "-", "in", "-", "canvas", "-", "after", "...
29096d1fe600c699237db8039255f74126730157
https://github.com/didi/cube-ui/blob/29096d1fe600c699237db8039255f74126730157/example/modules/image.js#L105-L142
train
Helper function for orientation
[ 30522, 3853, 10296, 16001, 4842, 1006, 10683, 1010, 14931, 2595, 1010, 10296, 1007, 1063, 9530, 3367, 1059, 1027, 10683, 1012, 9381, 1010, 1044, 1027, 10683, 1012, 4578, 1025, 2065, 1006, 10296, 1028, 1018, 1007, 1063, 10683, 1012, 9381, 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...
openlayers/openlayers
src/ol/render/canvas/ExecutorGroup.js
fillCircleArrayRowToMiddle
function fillCircleArrayRowToMiddle(array, x, y) { let i; const radius = Math.floor(array.length / 2); if (x >= radius) { for (i = radius; i < x; i++) { array[i][y] = true; } } else if (x < radius) { for (i = x + 1; i < radius; i++) { array[i][y] = true; } } }
javascript
function fillCircleArrayRowToMiddle(array, x, y) { let i; const radius = Math.floor(array.length / 2); if (x >= radius) { for (i = radius; i < x; i++) { array[i][y] = true; } } else if (x < radius) { for (i = x + 1; i < radius; i++) { array[i][y] = true; } } }
[ "function", "fillCircleArrayRowToMiddle", "(", "array", ",", "x", ",", "y", ")", "{", "let", "i", ";", "const", "radius", "=", "Math", ".", "floor", "(", "array", ".", "length", "/", "2", ")", ";", "if", "(", "x", ">=", "radius", ")", "{", "for", ...
This method fills a row in the array from the given coordinate to the middle with `true`. @param {Array<Array<(boolean|undefined)>>} array The array that will be altered. @param {number} x X coordinate. @param {number} y Y coordinate.
[ "This", "method", "fills", "a", "row", "in", "the", "array", "from", "the", "given", "coordinate", "to", "the", "middle", "with", "true", "." ]
f366eaea522388fb575b11010e69d309164baca7
https://github.com/openlayers/openlayers/blob/f366eaea522388fb575b11010e69d309164baca7/src/ol/render/canvas/ExecutorGroup.js#L361-L373
train
Fill the array row to the middle of the circle
[ 30522, 3853, 6039, 6895, 21769, 2906, 9447, 10524, 20389, 3593, 10362, 1006, 9140, 1010, 1060, 1010, 1061, 1007, 1063, 2292, 1045, 1025, 9530, 3367, 12177, 1027, 8785, 1012, 2723, 1006, 9140, 1012, 3091, 1013, 1016, 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...
facebook/relay
packages/relay-compiler/language/javascript/RelayFlowBabelFactories.js
readOnlyArrayOfType
function readOnlyArrayOfType(thing: BabelAST) { return t.genericTypeAnnotation( t.identifier('$ReadOnlyArray'), t.typeParameterInstantiation([thing]), ); }
javascript
function readOnlyArrayOfType(thing: BabelAST) { return t.genericTypeAnnotation( t.identifier('$ReadOnlyArray'), t.typeParameterInstantiation([thing]), ); }
[ "function", "readOnlyArrayOfType", "(", "thing", ":", "BabelAST", ")", "{", "return", "t", ".", "genericTypeAnnotation", "(", "t", ".", "identifier", "(", "'$ReadOnlyArray'", ")", ",", "t", ".", "typeParameterInstantiation", "(", "[", "thing", "]", ")", ",", ...
$ReadOnlyArray<TYPE>
[ "$ReadOnlyArray<TYPE", ">" ]
7fb9be5182b9650637d7b92ead9a42713ac30aa4
https://github.com/facebook/relay/blob/7fb9be5182b9650637d7b92ead9a42713ac30aa4/packages/relay-compiler/language/javascript/RelayFlowBabelFactories.js#L84-L89
train
Returns a type annotation for a given type
[ 30522, 3853, 3191, 2239, 2135, 2906, 9447, 15794, 18863, 1006, 2518, 1024, 11561, 8523, 2102, 1007, 1063, 2709, 1056, 1012, 12391, 13874, 11639, 17287, 3508, 1006, 1056, 1012, 8909, 4765, 18095, 1006, 1005, 1002, 3191, 2239, 2135, 30524, 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/core/support/techinfo/TechnicalInfo.js
function (oEvent) { var sValue = oEvent.getParameter("value"), oControl = oEvent.getSource(); this._storage.put(this._LOCAL_STORAGE_KEYS.CUSTOM_URL, sValue); try { this._validateValue(oControl.getValue()); this._resetValueState(oControl); } catch (oException) { this._showError(oControl, oExc...
javascript
function (oEvent) { var sValue = oEvent.getParameter("value"), oControl = oEvent.getSource(); this._storage.put(this._LOCAL_STORAGE_KEYS.CUSTOM_URL, sValue); try { this._validateValue(oControl.getValue()); this._resetValueState(oControl); } catch (oException) { this._showError(oControl, oExc...
[ "function", "(", "oEvent", ")", "{", "var", "sValue", "=", "oEvent", ".", "getParameter", "(", "\"value\"", ")", ",", "oControl", "=", "oEvent", ".", "getSource", "(", ")", ";", "this", ".", "_storage", ".", "put", "(", "this", ".", "_LOCAL_STORAGE_KEYS"...
Handler for liveChange event fired by custom bootstrap URL. @param oEvent
[ "Handler", "for", "liveChange", "event", "fired", "by", "custom", "bootstrap", "URL", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L369-L379
train
Updates the custom url in the local storage
[ 30522, 3853, 1006, 1051, 18697, 3372, 1007, 1063, 13075, 17917, 2389, 5657, 1027, 1051, 18697, 3372, 1012, 2131, 28689, 22828, 1006, 1000, 3643, 1000, 1007, 1010, 1051, 8663, 13181, 2140, 1027, 1051, 18697, 3372, 1012, 4152, 8162, 3401, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/Core.js
getModulePath
function getModulePath(sModuleName, sSuffix){ return sap.ui.require.toUrl(sModuleName.replace(/\./g, "/") + sSuffix); }
javascript
function getModulePath(sModuleName, sSuffix){ return sap.ui.require.toUrl(sModuleName.replace(/\./g, "/") + sSuffix); }
[ "function", "getModulePath", "(", "sModuleName", ",", "sSuffix", ")", "{", "return", "sap", ".", "ui", ".", "require", ".", "toUrl", "(", "sModuleName", ".", "replace", "(", "/", "\\.", "/", "g", ",", "\"/\"", ")", "+", "sSuffix", ")", ";", "}" ]
Retrieves the module path. @param {string} sModuleName module name. @param {string} sSuffix is used untouched (dots are not replaced with slashes). @returns {string} module path.
[ "Retrieves", "the", "module", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Core.js#L1870-L1872
train
Returns the absolute path of the module with the given name.
[ 30522, 3853, 2131, 5302, 8566, 2571, 15069, 1006, 15488, 7716, 9307, 18442, 1010, 7020, 16093, 8873, 2595, 1007, 1063, 2709, 20066, 1012, 21318, 1012, 5478, 1012, 2778, 2140, 1006, 15488, 7716, 9307, 18442, 1012, 5672, 1006, 1013, 1032, 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...
jantimon/html-webpack-plugin
lib/compiler.js
compileTemplate
function compileTemplate (templatePath, outputFilename, mainCompilation) { const childCompiler = getChildCompiler(mainCompilation.compiler); return childCompiler.compileTemplates(mainCompilation).then((compiledTemplates) => { if (!compiledTemplates[templatePath]) console.log(Object.keys(compiledTemplates), temp...
javascript
function compileTemplate (templatePath, outputFilename, mainCompilation) { const childCompiler = getChildCompiler(mainCompilation.compiler); return childCompiler.compileTemplates(mainCompilation).then((compiledTemplates) => { if (!compiledTemplates[templatePath]) console.log(Object.keys(compiledTemplates), temp...
[ "function", "compileTemplate", "(", "templatePath", ",", "outputFilename", ",", "mainCompilation", ")", "{", "const", "childCompiler", "=", "getChildCompiler", "(", "mainCompilation", ".", "compiler", ")", ";", "return", "childCompiler", ".", "compileTemplates", "(", ...
Starts the compilation for all templates. This has to be called once all templates where added. If this function is called multiple times it will use a cache inside the childCompiler @param {string} templatePath @param {string} outputFilename @param {WebpackCompilation} mainCompilation
[ "Starts", "the", "compilation", "for", "all", "templates", ".", "This", "has", "to", "be", "called", "once", "all", "templates", "where", "added", "." ]
38db64ae8805de37d038e0ee0f6dfa2a26e2163a
https://github.com/jantimon/html-webpack-plugin/blob/38db64ae8805de37d038e0ee0f6dfa2a26e2163a/lib/compiler.js#L258-L277
train
Compile a template
[ 30522, 3853, 4012, 22090, 18532, 15725, 1006, 23561, 15069, 1010, 6434, 8873, 20844, 4168, 1010, 2364, 9006, 8197, 13490, 1007, 1063, 9530, 3367, 2775, 9006, 22090, 2099, 1027, 2131, 19339, 9006, 22090, 2099, 1006, 2364, 9006, 8197, 13490, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
necolas/react-native-web
packages/website/storybook/3-demos/Game2048/GameBoard.js
function(matrix) { const rows = matrix.length; const columns = matrix[0].length; const res = []; for (let row = 0; row < rows; ++row) { res.push([]); for (let column = 0; column < columns; ++column) { res[row][column] = matrix[column][columns - row - 1]; } } return res; }
javascript
function(matrix) { const rows = matrix.length; const columns = matrix[0].length; const res = []; for (let row = 0; row < rows; ++row) { res.push([]); for (let column = 0; column < columns; ++column) { res[row][column] = matrix[column][columns - row - 1]; } } return res; }
[ "function", "(", "matrix", ")", "{", "const", "rows", "=", "matrix", ".", "length", ";", "const", "columns", "=", "matrix", "[", "0", "]", ".", "length", ";", "const", "res", "=", "[", "]", ";", "for", "(", "let", "row", "=", "0", ";", "row", "...
NB: Taken straight from: https://github.com/IvanVergiliev/2048-react/blob/master/src/board.js with no modification except to format it for CommonJS and fix lint/flow errors
[ "NB", ":", "Taken", "straight", "from", ":", "https", ":", "//", "github", ".", "com", "/", "IvanVergiliev", "/", "2048", "-", "react", "/", "blob", "/", "master", "/", "src", "/", "board", ".", "js", "with", "no", "modification", "except", "to", "fo...
801937748b2f3c96284bee1881164ac0c62a9c6d
https://github.com/necolas/react-native-web/blob/801937748b2f3c96284bee1881164ac0c62a9c6d/packages/website/storybook/3-demos/Game2048/GameBoard.js#L21-L32
train
Compute the coefficients of a matrix
[ 30522, 3853, 1006, 8185, 1007, 1063, 9530, 3367, 10281, 1027, 8185, 1012, 3091, 1025, 9530, 3367, 7753, 1027, 8185, 1031, 1014, 1033, 1012, 3091, 1025, 9530, 3367, 24501, 1027, 1031, 1033, 1025, 2005, 1006, 2292, 5216, 1027, 1014, 1025, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/DOMHelpers.js
extractPayload
function extractPayload(content) { var payload = {}; if (content[0] !== "<") { // text payload.nodeType = 3; payload.nodeValue = content; } else if (content.substr(0, 4) === "<!--") { // comment payload.nodeType = 8; payloa...
javascript
function extractPayload(content) { var payload = {}; if (content[0] !== "<") { // text payload.nodeType = 3; payload.nodeValue = content; } else if (content.substr(0, 4) === "<!--") { // comment payload.nodeType = 8; payloa...
[ "function", "extractPayload", "(", "content", ")", "{", "var", "payload", "=", "{", "}", ";", "if", "(", "content", "[", "0", "]", "!==", "\"<\"", ")", "{", "// text", "payload", ".", "nodeType", "=", "3", ";", "payload", ".", "nodeValue", "=", "cont...
Extract the node payload @param {string} source content
[ "Extract", "the", "node", "payload" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/LiveDevelopment/Agents/DOMHelpers.js#L183-L221
train
Extract payload from content
[ 30522, 3853, 14817, 4502, 30524, 1027, 1000, 1026, 1000, 1007, 1063, 1013, 1013, 3793, 18093, 1012, 13045, 13874, 1027, 1017, 1025, 18093, 1012, 13045, 10175, 5657, 1027, 4180, 1025, 1065, 2842, 2065, 1006, 4180, 1012, 4942, 3367, 2099, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/output/modifiers/svgToImg.js
renderDOM
function renderDOM($, dom, options) { if (!dom && $._root && $._root.children) { dom = $._root.children; } options = options|| dom.options || $._options; return domSerializer(dom, options); }
javascript
function renderDOM($, dom, options) { if (!dom && $._root && $._root.children) { dom = $._root.children; } options = options|| dom.options || $._options; return domSerializer(dom, options); }
[ "function", "renderDOM", "(", "$", ",", "dom", ",", "options", ")", "{", "if", "(", "!", "dom", "&&", "$", ".", "_root", "&&", "$", ".", "_root", ".", "children", ")", "{", "dom", "=", "$", ".", "_root", ".", "children", ";", "}", "options", "=...
Render a cheerio DOM as html @param {HTMLDom} $ @param {HTMLElement} dom @param {Object} @return {String}
[ "Render", "a", "cheerio", "DOM", "as", "html" ]
6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4
https://github.com/GitbookIO/gitbook/blob/6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4/lib/output/modifiers/svgToImg.js#L17-L23
train
Render a DOM
[ 30522, 3853, 17552, 9527, 1006, 1002, 1010, 14383, 1010, 7047, 1007, 1063, 2065, 1006, 999, 14383, 1004, 1004, 1002, 1012, 1035, 7117, 1004, 1004, 1002, 1012, 1035, 7117, 1012, 2336, 1007, 1063, 14383, 1027, 1002, 1012, 1035, 7117, 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...
vuejs/vue-cli
packages/@vue/cli-service/lib/commands/serve.js
checkInContainer
function checkInContainer () { const fs = require('fs') if (fs.existsSync(`/proc/1/cgroup`)) { const content = fs.readFileSync(`/proc/1/cgroup`, 'utf-8') return /:\/(lxc|docker|kubepods)\//.test(content) } }
javascript
function checkInContainer () { const fs = require('fs') if (fs.existsSync(`/proc/1/cgroup`)) { const content = fs.readFileSync(`/proc/1/cgroup`, 'utf-8') return /:\/(lxc|docker|kubepods)\//.test(content) } }
[ "function", "checkInContainer", "(", ")", "{", "const", "fs", "=", "require", "(", "'fs'", ")", "if", "(", "fs", ".", "existsSync", "(", "`", "`", ")", ")", "{", "const", "content", "=", "fs", ".", "readFileSync", "(", "`", "`", ",", "'utf-8'", ")"...
https://stackoverflow.com/a/20012536
[ "https", ":", "//", "stackoverflow", ".", "com", "/", "a", "/", "20012536" ]
206803cbefefdfbc7d8ed12440b0b751688b77b2
https://github.com/vuejs/vue-cli/blob/206803cbefefdfbc7d8ed12440b0b751688b77b2/packages/@vue/cli-service/lib/commands/serve.js#L299-L305
train
Check if the container is in the container group
[ 30522, 3853, 4638, 2378, 8663, 18249, 2121, 1006, 1007, 1063, 9530, 3367, 1042, 2015, 1027, 5478, 1006, 1005, 1042, 2015, 1005, 1007, 2065, 1006, 1042, 2015, 1012, 6526, 6508, 12273, 1006, 1036, 1013, 4013, 2278, 1013, 1015, 1013, 1039, 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/document/Document.js
Document
function Document(file, initialTimestamp, rawText) { this.file = file; this.editable = !file.readOnly; this._updateLanguage(); this.refreshText(rawText, initialTimestamp, true); // List of full editors which are initialized as master editors for this doc. this._associated...
javascript
function Document(file, initialTimestamp, rawText) { this.file = file; this.editable = !file.readOnly; this._updateLanguage(); this.refreshText(rawText, initialTimestamp, true); // List of full editors which are initialized as master editors for this doc. this._associated...
[ "function", "Document", "(", "file", ",", "initialTimestamp", ",", "rawText", ")", "{", "this", ".", "file", "=", "file", ";", "this", ".", "editable", "=", "!", "file", ".", "readOnly", ";", "this", ".", "_updateLanguage", "(", ")", ";", "this", ".", ...
Model for the contents of a single file and its current modification state. See DocumentManager documentation for important usage notes. Document dispatches these events: __change__ -- When the text of the editor changes (including due to undo/redo). Passes ({Document}, {ChangeList}), where ChangeList is an array of...
[ "Model", "for", "the", "contents", "of", "a", "single", "file", "and", "its", "current", "modification", "state", ".", "See", "DocumentManager", "documentation", "for", "important", "usage", "notes", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/document/Document.js#L74-L81
train
A document is a document that contains a single language and a single language.
[ 30522, 3853, 6254, 1006, 5371, 1010, 3988, 7292, 9153, 8737, 1010, 6315, 18209, 1007, 1063, 2023, 1012, 5371, 1027, 5371, 1025, 2023, 1012, 10086, 3085, 1027, 999, 5371, 1012, 3191, 2239, 2135, 1025, 2023, 1012, 1035, 10651, 25023, 6692, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.commons/src/sap/ui/commons/RoadMap.js
function(oEvent, oThis, sDir){ if (oEvent) { oEvent.stopPropagation(); oEvent.preventDefault(); } if (!oThis.sCurrentFocusedStepRefId) { return; } var sFoo = sDir + "All"; var bIsJumpToDelimiter = false; if (sDir == "first") { sFoo = "prevAll"; bIsJumpToDelimiter = true; } else if (sDir ...
javascript
function(oEvent, oThis, sDir){ if (oEvent) { oEvent.stopPropagation(); oEvent.preventDefault(); } if (!oThis.sCurrentFocusedStepRefId) { return; } var sFoo = sDir + "All"; var bIsJumpToDelimiter = false; if (sDir == "first") { sFoo = "prevAll"; bIsJumpToDelimiter = true; } else if (sDir ...
[ "function", "(", "oEvent", ",", "oThis", ",", "sDir", ")", "{", "if", "(", "oEvent", ")", "{", "oEvent", ".", "stopPropagation", "(", ")", ";", "oEvent", ".", "preventDefault", "(", ")", ";", "}", "if", "(", "!", "oThis", ".", "sCurrentFocusedStepRefId...
Helper function to focus the following step of the current focused step in the given direction. Allowed directions are: next, prev, first, last. If this step is not visible an automatic scrolling is done.
[ "Helper", "function", "to", "focus", "the", "following", "step", "of", "the", "current", "focused", "step", "in", "the", "given", "direction", ".", "Allowed", "directions", "are", ":", "next", "prev", "first", "last", ".", "If", "this", "step", "is", "not"...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/RoadMap.js#L484-L513
train
Scrolls to the next or previous step of the delimiter
[ 30522, 3853, 1006, 1051, 18697, 3372, 1010, 27178, 24158, 1010, 17371, 4313, 1007, 1063, 2065, 1006, 1051, 18697, 3372, 1007, 1063, 1051, 18697, 30524, 29264, 14876, 7874, 2098, 13473, 28139, 8873, 2094, 1007, 1063, 2709, 1025, 1065, 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...
sass/node-sass
lib/extensions.js
getBinaryCachePath
function getBinaryCachePath() { var i, cachePath, cachePathCandidates = getCachePathCandidates(); for (i = 0; i < cachePathCandidates.length; i++) { cachePath = path.join(cachePathCandidates[i], pkg.name, pkg.version); try { mkdir.sync(cachePath); return cachePath; } catch (e) { ...
javascript
function getBinaryCachePath() { var i, cachePath, cachePathCandidates = getCachePathCandidates(); for (i = 0; i < cachePathCandidates.length; i++) { cachePath = path.join(cachePathCandidates[i], pkg.name, pkg.version); try { mkdir.sync(cachePath); return cachePath; } catch (e) { ...
[ "function", "getBinaryCachePath", "(", ")", "{", "var", "i", ",", "cachePath", ",", "cachePathCandidates", "=", "getCachePathCandidates", "(", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "cachePathCandidates", ".", "length", ";", "i", "++", ")", ...
The most suitable location for caching the binding on disk. Given the candidates directories provided by `getCachePathCandidates()` this returns the first writable directory. By treating the candidate directories as a prioritised list this method is deterministic, assuming no change to the local environment. @return ...
[ "The", "most", "suitable", "location", "for", "caching", "the", "binding", "on", "disk", "." ]
0c1a49eefa37544d16041c5fe5b2e3d9168004b7
https://github.com/sass/node-sass/blob/0c1a49eefa37544d16041c5fe5b2e3d9168004b7/lib/extensions.js#L346-L363
train
Get the binary cache path
[ 30522, 3853, 2131, 21114, 2854, 3540, 5403, 15069, 1006, 1007, 1063, 13075, 1045, 1010, 17053, 15069, 1010, 17053, 15069, 9336, 4305, 27122, 1027, 2131, 3540, 5403, 15069, 9336, 4305, 27122, 1006, 1007, 1025, 2005, 1006, 1045, 1027, 1014, 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...
aframevr/aframe
src/core/a-register-element.js
wrapAEntityMethods
function wrapAEntityMethods (obj) { var newObj = {}; var ANodeMethods = [ 'attachedCallback', 'attributeChangedCallback', 'createdCallback', 'detachedCallback' ]; var AEntityMethods = [ 'attachedCallback', 'attributeChangedCallback', 'createdCallback', 'detachedCallback' ]; ...
javascript
function wrapAEntityMethods (obj) { var newObj = {}; var ANodeMethods = [ 'attachedCallback', 'attributeChangedCallback', 'createdCallback', 'detachedCallback' ]; var AEntityMethods = [ 'attachedCallback', 'attributeChangedCallback', 'createdCallback', 'detachedCallback' ]; ...
[ "function", "wrapAEntityMethods", "(", "obj", ")", "{", "var", "newObj", "=", "{", "}", ";", "var", "ANodeMethods", "=", "[", "'attachedCallback'", ",", "'attributeChangedCallback'", ",", "'createdCallback'", ",", "'detachedCallback'", "]", ";", "var", "AEntityMet...
This wraps some of the obj methods to call those on `AEntity` base prototype. @param {object} obj - The objects that contains the methods that will be wrapped. @return {object} - An object with the same properties as the input parameter but with some of methods wrapped.
[ "This", "wraps", "some", "of", "the", "obj", "methods", "to", "call", "those", "on", "AEntity", "base", "prototype", "." ]
24acc78a7299a4cdfe3ef617f4d40ddf6275c992
https://github.com/aframevr/aframe/blob/24acc78a7299a4cdfe3ef617f4d40ddf6275c992/src/core/a-register-element.js#L99-L119
train
ANode and AEntity methods are wrapped in a new object.
[ 30522, 3853, 10236, 6679, 16778, 3723, 11368, 6806, 5104, 1006, 27885, 3501, 1007, 1063, 13075, 2047, 16429, 3501, 1027, 1063, 1065, 1025, 13075, 2019, 10244, 11368, 6806, 5104, 1027, 1031, 1005, 4987, 9289, 20850, 8684, 1005, 1010, 1005, 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...
firebase/firebase-js-sdk
packages/auth/demo/public/script.js
populateActionCodes
function populateActionCodes() { var emailForSignIn = null; var signInTime = 0; if ('localStorage' in window && window['localStorage'] !== null) { try { // Try to parse as JSON first using new storage format. var emailForSignInData = JSON.parse(window.localStorage.getItem('emailForSignIn...
javascript
function populateActionCodes() { var emailForSignIn = null; var signInTime = 0; if ('localStorage' in window && window['localStorage'] !== null) { try { // Try to parse as JSON first using new storage format. var emailForSignInData = JSON.parse(window.localStorage.getItem('emailForSignIn...
[ "function", "populateActionCodes", "(", ")", "{", "var", "emailForSignIn", "=", "null", ";", "var", "signInTime", "=", "0", ";", "if", "(", "'localStorage'", "in", "window", "&&", "window", "[", "'localStorage'", "]", "!==", "null", ")", "{", "try", "{", ...
Detects if an action code is passed in the URL, and populates accordingly the input field for the confirm email verification process.
[ "Detects", "if", "an", "action", "code", "is", "passed", "in", "the", "URL", "and", "populates", "accordingly", "the", "input", "field", "for", "the", "confirm", "email", "verification", "process", "." ]
491598a499813dacc23724de5e237ec220cc560e
https://github.com/firebase/firebase-js-sdk/blob/491598a499813dacc23724de5e237ec220cc560e/packages/auth/demo/public/script.js#L1128-L1171
train
Populate the action codes
[ 30522, 3853, 3769, 9869, 18908, 3258, 23237, 1006, 1007, 1063, 13075, 10373, 29278, 5332, 29076, 2078, 1027, 19701, 1025, 13075, 3696, 18447, 14428, 1027, 1014, 1025, 2065, 1006, 1005, 10575, 4263, 4270, 1005, 1999, 3332, 1004, 1004, 3332, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
fex-team/webuploader
dist/webuploader.withoutimage.js
function( file ) { if ( !(file instanceof WUFile) ) { if ( !(file instanceof File) ) { if ( !this._ruid ) { throw new Error('Can\'t add external files.'); } file = new File( this....
javascript
function( file ) { if ( !(file instanceof WUFile) ) { if ( !(file instanceof File) ) { if ( !this._ruid ) { throw new Error('Can\'t add external files.'); } file = new File( this....
[ "function", "(", "file", ")", "{", "if", "(", "!", "(", "file", "instanceof", "WUFile", ")", ")", "{", "if", "(", "!", "(", "file", "instanceof", "File", ")", ")", "{", "if", "(", "!", "this", ".", "_ruid", ")", "{", "throw", "new", "Error", "(...
为了支持外部直接添加一个原生File对象。
[ "为了支持外部直接添加一个原生File对象。" ]
7094e4476c5af3b06993d91dde2d223200b9feb7
https://github.com/fex-team/webuploader/blob/7094e4476c5af3b06993d91dde2d223200b9feb7/dist/webuploader.withoutimage.js#L2452-L2466
train
Add external files to the file system.
[ 30522, 3853, 1006, 5371, 1007, 1063, 2065, 1006, 999, 1006, 5371, 6013, 11253, 8814, 8873, 2571, 1007, 1007, 1063, 2065, 1006, 999, 1006, 5371, 6013, 11253, 5371, 1007, 1007, 1063, 2065, 1006, 999, 2023, 1012, 1035, 21766, 3593, 1007, 106...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/support/plugins/Performance.js
_initSlider
function _initSlider() { _sliderVars.nodes.slider = _sliderVars.nodes.slider || document.querySelector('#slider'); _sliderVars.nodes.handle = _sliderVars.nodes.handle || document.querySelector('#slideHandle'); _sliderVars.nodes.leftResizeHandle = _sliderVars.nodes.leftResizeHandle || document.querySelector('#l...
javascript
function _initSlider() { _sliderVars.nodes.slider = _sliderVars.nodes.slider || document.querySelector('#slider'); _sliderVars.nodes.handle = _sliderVars.nodes.handle || document.querySelector('#slideHandle'); _sliderVars.nodes.leftResizeHandle = _sliderVars.nodes.leftResizeHandle || document.querySelector('#l...
[ "function", "_initSlider", "(", ")", "{", "_sliderVars", ".", "nodes", ".", "slider", "=", "_sliderVars", ".", "nodes", ".", "slider", "||", "document", ".", "querySelector", "(", "'#slider'", ")", ";", "_sliderVars", ".", "nodes", ".", "handle", "=", "_sl...
/* ============================================================================================================= Slider =============================================================================================================
[ "/", "*", "=============================================================================================================", "Slider", "=============================================================================================================" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/plugins/Performance.js#L867-L880
train
Initializes the slider
[ 30522, 3853, 1035, 1999, 12762, 24198, 2099, 1006, 1007, 1063, 1035, 7358, 19146, 2869, 1012, 14164, 1012, 7358, 2099, 1027, 1035, 7358, 19146, 2869, 1012, 14164, 1012, 7358, 2099, 1064, 1064, 6254, 1012, 23032, 11246, 22471, 2953, 1006, 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...
juliangarnier/anime
lib/anime.js
createAnimation
function createAnimation(animatable, prop) { var animType = getAnimationType(animatable.target, prop.name); if (animType) { var tweens = normalizeTweens(prop, animatable); var lastTween = tweens[tweens.length - 1]; return { type: animType, property: prop.name, animatable: animatable, ...
javascript
function createAnimation(animatable, prop) { var animType = getAnimationType(animatable.target, prop.name); if (animType) { var tweens = normalizeTweens(prop, animatable); var lastTween = tweens[tweens.length - 1]; return { type: animType, property: prop.name, animatable: animatable, ...
[ "function", "createAnimation", "(", "animatable", ",", "prop", ")", "{", "var", "animType", "=", "getAnimationType", "(", "animatable", ".", "target", ",", "prop", ".", "name", ")", ";", "if", "(", "animType", ")", "{", "var", "tweens", "=", "normalizeTwee...
Animations
[ "Animations" ]
875a3d6745d4bff2e4c6ffe0e2d24aac3bf8a45a
https://github.com/juliangarnier/anime/blob/875a3d6745d4bff2e4c6ffe0e2d24aac3bf8a45a/lib/anime.js#L815-L830
train
Create an animation object
[ 30522, 3853, 3443, 7088, 28649, 1006, 2019, 9581, 10880, 1010, 17678, 30524, 13075, 1056, 28394, 3619, 1027, 3671, 4697, 2102, 28394, 3619, 1006, 17678, 1010, 2019, 9581, 10880, 1007, 1025, 13075, 2197, 2102, 28394, 2078, 1027, 1056, 28394, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/max-len.js
isTrailingComment
function isTrailingComment(line, lineNumber, comment) { return comment && (comment.loc.start.line === lineNumber && lineNumber <= comment.loc.end.line) && (comment.loc.end.line > lineNumber || comment.loc.end.column === line.length); }
javascript
function isTrailingComment(line, lineNumber, comment) { return comment && (comment.loc.start.line === lineNumber && lineNumber <= comment.loc.end.line) && (comment.loc.end.line > lineNumber || comment.loc.end.column === line.length); }
[ "function", "isTrailingComment", "(", "line", ",", "lineNumber", ",", "comment", ")", "{", "return", "comment", "&&", "(", "comment", ".", "loc", ".", "start", ".", "line", "===", "lineNumber", "&&", "lineNumber", "<=", "comment", ".", "loc", ".", "end", ...
-------------------------------------------------------------------------- Helpers -------------------------------------------------------------------------- Tells if a given comment is trailing: it starts on the current line and extends to or past the end of the current line. @param {string} line The source line we w...
[ "--------------------------------------------------------------------------", "Helpers", "--------------------------------------------------------------------------", "Tells", "if", "a", "given", "comment", "is", "trailing", ":", "it", "starts", "on", "the", "current", "line", "and...
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/max-len.js#L163-L167
train
Check if comment is a trailing comment
[ 30522, 3853, 21541, 15118, 2075, 9006, 3672, 1006, 2240, 1010, 17517, 29440, 1010, 7615, 1007, 1063, 2709, 7615, 1004, 1004, 1006, 30524, 1012, 2203, 1012, 2240, 1028, 17517, 29440, 1064, 1064, 7615, 1012, 8840, 2278, 1012, 2203, 1012, 5930...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 () { var oViewport = {}; oViewport.width = window.innerWidth; oViewport.height = window.innerHeight; oViewport.top = parseInt(jQuery(".type_standalone").css("height")) || 0; oViewport.bottom = oViewport.top + oViewport.height; return oViewport; }
javascript
function () { var oViewport = {}; oViewport.width = window.innerWidth; oViewport.height = window.innerHeight; oViewport.top = parseInt(jQuery(".type_standalone").css("height")) || 0; oViewport.bottom = oViewport.top + oViewport.height; return oViewport; }
[ "function", "(", ")", "{", "var", "oViewport", "=", "{", "}", ";", "oViewport", ".", "width", "=", "window", ".", "innerWidth", ";", "oViewport", ".", "height", "=", "window", ".", "innerHeight", ";", "oViewport", ".", "top", "=", "parseInt", "(", "jQu...
Gets the dimensions of the viewport @return {object} the dimensions of the viewport
[ "Gets", "the", "dimensions", "of", "the", "viewport" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.dt/src/sap/ui/dt/ContextMenuControl.js#L530-L538
train
Returns the viewport of the type standalone element
[ 30522, 3853, 1006, 1007, 1063, 13075, 1051, 8584, 6442, 1027, 1063, 1065, 1025, 1051, 8584, 6442, 1012, 9381, 1027, 3332, 1012, 5110, 9148, 11927, 2232, 1025, 1051, 8584, 6442, 1012, 4578, 1027, 3332, 1012, 5110, 26036, 13900, 1025, 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...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/mvc/ControllerExtension.js
function(sId) { var sNamespace = this.getMetadata().getNamespace(); sId = sNamespace + "." + sId; return this.base ? this.base.byId(sId) : undefined; }
javascript
function(sId) { var sNamespace = this.getMetadata().getNamespace(); sId = sNamespace + "." + sId; return this.base ? this.base.byId(sId) : undefined; }
[ "function", "(", "sId", ")", "{", "var", "sNamespace", "=", "this", ".", "getMetadata", "(", ")", ".", "getNamespace", "(", ")", ";", "sId", "=", "sNamespace", "+", "\".\"", "+", "sId", ";", "return", "this", ".", "base", "?", "this", ".", "base", ...
Returns an Element of the connected view with the given local ID. Views automatically prepend their own ID as a prefix to created Elements to make the IDs unique even in the case of multiple view instances. For Controller extension the namespace of the control id gets also prefixed with the namespace of the extension....
[ "Returns", "an", "Element", "of", "the", "connected", "view", "with", "the", "given", "local", "ID", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/mvc/ControllerExtension.js#L52-L56
train
Returns the object with the given ID
[ 30522, 3853, 1006, 15765, 1007, 1063, 13075, 1055, 18442, 23058, 1027, 2023, 1012, 2131, 11368, 8447, 2696, 1006, 1007, 1012, 2131, 18442, 23058, 1006, 1007, 1025, 15765, 1027, 1055, 18442, 23058, 1009, 1000, 1012, 1000, 1009, 15765, 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/angular
aio/tools/examples/run-example-e2e.js
loadExampleConfig
function loadExampleConfig(exampleFolder) { // Default config. let config = {build: 'build', run: 'serve:e2e'}; try { const exampleConfig = fs.readJsonSync(`${exampleFolder}/${EXAMPLE_CONFIG_FILENAME}`); Object.assign(config, exampleConfig); } catch (e) { } return config; }
javascript
function loadExampleConfig(exampleFolder) { // Default config. let config = {build: 'build', run: 'serve:e2e'}; try { const exampleConfig = fs.readJsonSync(`${exampleFolder}/${EXAMPLE_CONFIG_FILENAME}`); Object.assign(config, exampleConfig); } catch (e) { } return config; }
[ "function", "loadExampleConfig", "(", "exampleFolder", ")", "{", "// Default config.", "let", "config", "=", "{", "build", ":", "'build'", ",", "run", ":", "'serve:e2e'", "}", ";", "try", "{", "const", "exampleConfig", "=", "fs", ".", "readJsonSync", "(", "`...
Load configuration for an example. Used for SystemJS
[ "Load", "configuration", "for", "an", "example", ".", "Used", "for", "SystemJS" ]
c016e2c4ecf7529f08fae4ca0f5c8b0170c6b51c
https://github.com/angular/angular/blob/c016e2c4ecf7529f08fae4ca0f5c8b0170c6b51c/aio/tools/examples/run-example-e2e.js#L373-L384
train
Load the example config from the example folder
[ 30522, 3853, 7170, 10288, 16613, 2571, 8663, 8873, 2290, 1006, 2742, 10371, 2121, 1007, 1063, 1013, 1013, 12398, 9530, 8873, 2290, 1012, 2292, 9530, 8873, 2290, 1027, 1063, 3857, 1024, 1005, 3857, 1005, 1010, 2448, 1024, 1005, 3710, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
jhipster/generator-jhipster
generators/docker-prompts.js
askForDockerPushCommand
function askForDockerPushCommand() { if (this.regenerate) return; const done = this.async(); const prompts = [ { type: 'input', name: 'dockerPushCommand', message: 'What command should we use for push Docker image to repository?', default: this.docke...
javascript
function askForDockerPushCommand() { if (this.regenerate) return; const done = this.async(); const prompts = [ { type: 'input', name: 'dockerPushCommand', message: 'What command should we use for push Docker image to repository?', default: this.docke...
[ "function", "askForDockerPushCommand", "(", ")", "{", "if", "(", "this", ".", "regenerate", ")", "return", ";", "const", "done", "=", "this", ".", "async", "(", ")", ";", "const", "prompts", "=", "[", "{", "type", ":", "'input'", ",", "name", ":", "'...
Ask For Docker Push Command
[ "Ask", "For", "Docker", "Push", "Command" ]
f76fa8de0818ce6bda6c7b1455942e2a9b0ae3ff
https://github.com/jhipster/generator-jhipster/blob/f76fa8de0818ce6bda6c7b1455942e2a9b0ae3ff/generators/docker-prompts.js#L424-L442
train
Ask For Docker Push Command
[ 30522, 3853, 3198, 3877, 7432, 2121, 12207, 16257, 5358, 2386, 2094, 1006, 1007, 1063, 2065, 1006, 2023, 1012, 19723, 24454, 3686, 1007, 2709, 1025, 9530, 3367, 2589, 1027, 2023, 1012, 2004, 6038, 2278, 1006, 1007, 1025, 9530, 3367, 25732, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/jquery.sap.history.js
calcStepsToRealHistory
function calcStepsToRealHistory(sCurrentHash, bForward){ var iIndex = jQuery.inArray(sCurrentHash, hashHistory), i; if (iIndex !== -1) { if (bForward) { for (i = iIndex ; i < hashHistory.length ; i++) { if (!isVirtualHash(hashHistory[i])) { return i - iIndex; } } } else {...
javascript
function calcStepsToRealHistory(sCurrentHash, bForward){ var iIndex = jQuery.inArray(sCurrentHash, hashHistory), i; if (iIndex !== -1) { if (bForward) { for (i = iIndex ; i < hashHistory.length ; i++) { if (!isVirtualHash(hashHistory[i])) { return i - iIndex; } } } else {...
[ "function", "calcStepsToRealHistory", "(", "sCurrentHash", ",", "bForward", ")", "{", "var", "iIndex", "=", "jQuery", ".", "inArray", "(", "sCurrentHash", ",", "hashHistory", ")", ",", "i", ";", "if", "(", "iIndex", "!==", "-", "1", ")", "{", "if", "(", ...
This function calculates the steps forward or backward that need to skip the virtual history states. @private
[ "This", "function", "calculates", "the", "steps", "forward", "or", "backward", "that", "need", "to", "skip", "the", "virtual", "history", "states", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/jquery.sap.history.js#L549-L569
train
Calculate the number of steps to real history
[ 30522, 3853, 10250, 6169, 2618, 4523, 19277, 2389, 24158, 7062, 1006, 8040, 29264, 14949, 2232, 1010, 28939, 2953, 7652, 1007, 1063, 13075, 2462, 13629, 2595, 1027, 1046, 4226, 2854, 1012, 27118, 11335, 2100, 1006, 8040, 29264, 14949, 2232, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
linkElement
function linkElement(compileData, options){ angular.extend(compileData.locals, options); var element = compileData.link(options.scope); // Search for parent at insertion time, if not specified options.element = element; options.parent = findParent(element, options); ...
javascript
function linkElement(compileData, options){ angular.extend(compileData.locals, options); var element = compileData.link(options.scope); // Search for parent at insertion time, if not specified options.element = element; options.parent = findParent(element, options); ...
[ "function", "linkElement", "(", "compileData", ",", "options", ")", "{", "angular", ".", "extend", "(", "compileData", ".", "locals", ",", "options", ")", ";", "var", "element", "=", "compileData", ".", "link", "(", "options", ".", "scope", ")", ";", "//...
Link an element with compiled configuration
[ "Link", "an", "element", "with", "compiled", "configuration" ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/core/services/interimElement/interimElement.js#L622-L633
train
Link the element to the parent element
[ 30522, 3853, 4957, 12260, 3672, 1006, 9227, 6790, 1010, 7047, 1007, 1063, 16108, 1012, 7949, 1006, 9227, 6790, 1012, 10575, 1010, 7047, 1007, 1025, 13075, 5783, 1027, 9227, 6790, 1012, 4957, 1006, 7047, 1012, 9531, 1007, 1025, 1013, 1013, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/tags.js
doQuery
function doQuery(options) { return models.Tag.findPage(options) .then(({data, meta}) => { return { tags: data.map(model => urlsForTag(model.id, model.toJSON(options), options)), meta: meta }; ...
javascript
function doQuery(options) { return models.Tag.findPage(options) .then(({data, meta}) => { return { tags: data.map(model => urlsForTag(model.id, model.toJSON(options), options)), meta: meta }; ...
[ "function", "doQuery", "(", "options", ")", "{", "return", "models", ".", "Tag", ".", "findPage", "(", "options", ")", ".", "then", "(", "(", "{", "data", ",", "meta", "}", ")", "=>", "{", "return", "{", "tags", ":", "data", ".", "map", "(", "mod...
### 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/tags.js#L36-L44
train
Query the database for tags
[ 30522, 3853, 2079, 4226, 2854, 1006, 7047, 1007, 1063, 2709, 4275, 1012, 6415, 1012, 2424, 13704, 1006, 7047, 1007, 1012, 2059, 1006, 1006, 1063, 2951, 1010, 18804, 1065, 1007, 1027, 1028, 1063, 2709, 1063, 22073, 1024, 2951, 1012, 4949, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
juliangarnier/anime
documentation/assets/js/website.js
scrollToElement
function scrollToElement(el, offset) { var off = offset || 0; var rect = el.getBoundingClientRect(); var top = rect.top + off; var animation = anime({ targets: [document.body, document.documentElement], scrollTop: '+='+top, easing: 'easeInOutSine', duration: 1500 }); // onScroll(animation.pa...
javascript
function scrollToElement(el, offset) { var off = offset || 0; var rect = el.getBoundingClientRect(); var top = rect.top + off; var animation = anime({ targets: [document.body, document.documentElement], scrollTop: '+='+top, easing: 'easeInOutSine', duration: 1500 }); // onScroll(animation.pa...
[ "function", "scrollToElement", "(", "el", ",", "offset", ")", "{", "var", "off", "=", "offset", "||", "0", ";", "var", "rect", "=", "el", ".", "getBoundingClientRect", "(", ")", ";", "var", "top", "=", "rect", ".", "top", "+", "off", ";", "var", "a...
Scroll to element
[ "Scroll", "to", "element" ]
875a3d6745d4bff2e4c6ffe0e2d24aac3bf8a45a
https://github.com/juliangarnier/anime/blob/875a3d6745d4bff2e4c6ffe0e2d24aac3bf8a45a/documentation/assets/js/website.js#L91-L102
train
Scrolls to an element
[ 30522, 3853, 17186, 3406, 12260, 3672, 1006, 3449, 1010, 16396, 1007, 1063, 13075, 2125, 1027, 16396, 1064, 1064, 1014, 1025, 13075, 28667, 2102, 1027, 3449, 1012, 2131, 15494, 2075, 20464, 11638, 2890, 6593, 1006, 1007, 1025, 13075, 2327, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
cytoscape/cytoscape.js
dist/cytoscape.esm.js
layoutPositions
function layoutPositions(layout, options, fn) { var nodes = this.nodes(); var cy = this.cy(); var layoutEles = options.eles; // nodes & edges var getMemoizeKey = function getMemoizeKey(node) { return node.id(); }; var fnMem = memoize(fn, getMemoizeKey); // memoized version of position fu...
javascript
function layoutPositions(layout, options, fn) { var nodes = this.nodes(); var cy = this.cy(); var layoutEles = options.eles; // nodes & edges var getMemoizeKey = function getMemoizeKey(node) { return node.id(); }; var fnMem = memoize(fn, getMemoizeKey); // memoized version of position fu...
[ "function", "layoutPositions", "(", "layout", ",", "options", ",", "fn", ")", "{", "var", "nodes", "=", "this", ".", "nodes", "(", ")", ";", "var", "cy", "=", "this", ".", "cy", "(", ")", ";", "var", "layoutEles", "=", "options", ".", "eles", ";", ...
using standard layout options, apply position function (w/ or w/o animation)
[ "using", "standard", "layout", "options", "apply", "position", "function", "(", "w", "/", "or", "w", "/", "o", "animation", ")" ]
ad2051b65e2243cfd953d8b24a8bf95bfa8559e5
https://github.com/cytoscape/cytoscape.js/blob/ad2051b65e2243cfd953d8b24a8bf95bfa8559e5/dist/cytoscape.esm.js#L10638-L10788
train
Layouts the nodes and edges of the graph
[ 30522, 3853, 9621, 26994, 2015, 1006, 9621, 1010, 7047, 1010, 1042, 2078, 1007, 1063, 13075, 14164, 1027, 2023, 1012, 14164, 1006, 1007, 1025, 13075, 22330, 1027, 2023, 1012, 22330, 1006, 1007, 1025, 13075, 9621, 26741, 1027, 7047, 1012, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/less.js
function () { var str, j = i, e; if (input.charAt(j) === '~') { j++; e = true; } // Escaped strings if (input.charAt(j) !== '`') { return; } if (env.javascriptEnabled !== undefined && !env.javascriptEnabled) { error...
javascript
function () { var str, j = i, e; if (input.charAt(j) === '~') { j++; e = true; } // Escaped strings if (input.charAt(j) !== '`') { return; } if (env.javascriptEnabled !== undefined && !env.javascriptEnabled) { error...
[ "function", "(", ")", "{", "var", "str", ",", "j", "=", "i", ",", "e", ";", "if", "(", "input", ".", "charAt", "(", "j", ")", "===", "'~'", ")", "{", "j", "++", ";", "e", "=", "true", ";", "}", "// Escaped strings", "if", "(", "input", ".", ...
JavaScript code to be evaluated `window.location.href`
[ "JavaScript", "code", "to", "be", "evaluated", "window", ".", "location", ".", "href" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/less.js#L1028-L1043
train
Parse JavaScript string
[ 30522, 3853, 1006, 1007, 1063, 13075, 2358, 2099, 1010, 1046, 1027, 1045, 1010, 1041, 1025, 2065, 1006, 7953, 1012, 25869, 4017, 1006, 1046, 1007, 1027, 1027, 1027, 1005, 1066, 1005, 1007, 1063, 1046, 1009, 1009, 1025, 1041, 1027, 2995, 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...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/IconPool.js
loadFont
function loadFont(oFontMetadata) { for (var sKey in oFontMetadata) { oFontMetadata[sKey] = parseInt(oFontMetadata[sKey], 16); } mRegistry[collectionName] = oFontMetadata; IconPool.insertFontFaceStyle(oConfig.fontFamily, oConfig.fontURI, collectionName); mFontRegistry[collectionName].metadataLoa...
javascript
function loadFont(oFontMetadata) { for (var sKey in oFontMetadata) { oFontMetadata[sKey] = parseInt(oFontMetadata[sKey], 16); } mRegistry[collectionName] = oFontMetadata; IconPool.insertFontFaceStyle(oConfig.fontFamily, oConfig.fontURI, collectionName); mFontRegistry[collectionName].metadataLoa...
[ "function", "loadFont", "(", "oFontMetadata", ")", "{", "for", "(", "var", "sKey", "in", "oFontMetadata", ")", "{", "oFontMetadata", "[", "sKey", "]", "=", "parseInt", "(", "oFontMetadata", "[", "sKey", "]", ",", "16", ")", ";", "}", "mRegistry", "[", ...
add icons to registry and insert the font style
[ "add", "icons", "to", "registry", "and", "insert", "the", "font", "style" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/IconPool.js#L1227-L1234
train
Loads the font metadata into the registry
[ 30522, 3853, 7170, 14876, 3372, 1006, 1997, 12162, 11368, 8447, 2696, 1007, 1063, 2005, 1006, 13075, 15315, 3240, 1999, 1997, 12162, 11368, 8447, 2696, 1007, 1063, 1997, 12162, 11368, 8447, 2696, 1031, 15315, 3240, 1033, 1027, 11968, 20240, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/command/KeyBindingManager.js
_isReservedShortcuts
function _isReservedShortcuts(normalizedKey) { if (!normalizedKey) { return false; } if (_reservedShortcuts.indexOf(normalizedKey) > -1 || _reservedShortcuts.indexOf(normalizedKey.replace("Cmd", "Ctrl")) > -1) { return true; } if (bracket...
javascript
function _isReservedShortcuts(normalizedKey) { if (!normalizedKey) { return false; } if (_reservedShortcuts.indexOf(normalizedKey) > -1 || _reservedShortcuts.indexOf(normalizedKey.replace("Cmd", "Ctrl")) > -1) { return true; } if (bracket...
[ "function", "_isReservedShortcuts", "(", "normalizedKey", ")", "{", "if", "(", "!", "normalizedKey", ")", "{", "return", "false", ";", "}", "if", "(", "_reservedShortcuts", ".", "indexOf", "(", "normalizedKey", ")", ">", "-", "1", "||", "_reservedShortcuts", ...
@private Checks whether the given key combination is a shortcut of a special command or a Mac system command that the user can't reassign to another command. @param {!string} normalizedKey A key combination string used for a keyboard shortcut @return {boolean} true if normalizedKey is a restricted shortcut, false othe...
[ "@private" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/command/KeyBindingManager.js#L1059-L1074
train
Check if the key is reserved
[ 30522, 3853, 1035, 2003, 6072, 25944, 22231, 5339, 12690, 2015, 1006, 3671, 3550, 14839, 1007, 1063, 2065, 1006, 999, 3671, 3550, 14839, 1007, 1063, 2709, 6270, 1025, 1065, 2065, 1006, 1035, 9235, 22231, 5339, 12690, 2015, 1012, 5950, 11253...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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(node, value) { if (mxUtils.isVml(node)) { if (value >= 100) { node.style.filter = ''; } else { // TODO: Why is the division by 5 needed in VML? node.style.filter = 'alpha(opacity=' + (value/5) + ')'; } } else if (mxClient.IS_IE && (typeof(docume...
javascript
function(node, value) { if (mxUtils.isVml(node)) { if (value >= 100) { node.style.filter = ''; } else { // TODO: Why is the division by 5 needed in VML? node.style.filter = 'alpha(opacity=' + (value/5) + ')'; } } else if (mxClient.IS_IE && (typeof(docume...
[ "function", "(", "node", ",", "value", ")", "{", "if", "(", "mxUtils", ".", "isVml", "(", "node", ")", ")", "{", "if", "(", "value", ">=", "100", ")", "{", "node", ".", "style", ".", "filter", "=", "''", ";", "}", "else", "{", "// TODO: Why is th...
Function: setOpacity Sets the opacity of the specified DOM node to the given value in %. Parameters: node - DOM node to set the opacity for. value - Opacity in %. Possible values are between 0 and 100.
[ "Function", ":", "setOpacity" ]
33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44
https://github.com/jgraph/mxgraph/blob/33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44/javascript/mxClient.js#L5203-L5232
train
Sets the opacity of a node
[ 30522, 3853, 1006, 13045, 1010, 3643, 1007, 1063, 2065, 1006, 25630, 21823, 4877, 1012, 2003, 2615, 19968, 1006, 13045, 1007, 1007, 1063, 2065, 1006, 3643, 1028, 1027, 2531, 1007, 1063, 13045, 1012, 2806, 1012, 11307, 1027, 1005, 1005, 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...
SeleniumHQ/selenium
javascript/node/selenium-webdriver/lib/error.js
throwDecodedError
function throwDecodedError(data) { if (isErrorResponse(data)) { let ctor = ERROR_CODE_TO_TYPE.get(data.error) || WebDriverError; let err = new ctor(data.message); // TODO(jleyba): remove whichever case is excluded from the final W3C spec. if (typeof data.stacktrace === 'string') { err.remoteStac...
javascript
function throwDecodedError(data) { if (isErrorResponse(data)) { let ctor = ERROR_CODE_TO_TYPE.get(data.error) || WebDriverError; let err = new ctor(data.message); // TODO(jleyba): remove whichever case is excluded from the final W3C spec. if (typeof data.stacktrace === 'string') { err.remoteStac...
[ "function", "throwDecodedError", "(", "data", ")", "{", "if", "(", "isErrorResponse", "(", "data", ")", ")", "{", "let", "ctor", "=", "ERROR_CODE_TO_TYPE", ".", "get", "(", "data", ".", "error", ")", "||", "WebDriverError", ";", "let", "err", "=", "new",...
Throws an error coded from the W3C protocol. A generic error will be thrown if the provided `data` is not a valid encoded error. @param {{error: string, message: string}} data The error data to decode. @throws {WebDriverError} the decoded error. @see https://w3c.github.io/webdriver/webdriver-spec.html#protocol
[ "Throws", "an", "error", "coded", "from", "the", "W3C", "protocol", ".", "A", "generic", "error", "will", "be", "thrown", "if", "the", "provided", "data", "is", "not", "a", "valid", "encoded", "error", "." ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/javascript/node/selenium-webdriver/lib/error.js#L547-L560
train
Throw an error from the server
[ 30522, 3853, 5466, 3207, 16044, 4063, 29165, 1006, 2951, 1007, 1063, 2065, 1006, 2003, 2121, 29165, 6072, 26029, 3366, 1006, 2951, 1007, 1007, 1063, 2292, 14931, 2953, 1027, 7561, 1035, 3642, 1035, 2000, 1035, 2828, 1012, 2131, 1006, 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...
SeleniumHQ/selenium
third_party/js/mozmill/shared-modules/downloads.js
downloadManager_open
function downloadManager_open(controller, shortcut) { if (shortcut) { if (mozmill.isLinux) { var cmdKey = utils.getEntity(this.getDtds(), "downloadsUnix.commandkey"); controller.keypress(null, cmdKey, {ctrlKey: true, shiftKey: true}); } else { var cmdKey = utils.getEntity(this.ge...
javascript
function downloadManager_open(controller, shortcut) { if (shortcut) { if (mozmill.isLinux) { var cmdKey = utils.getEntity(this.getDtds(), "downloadsUnix.commandkey"); controller.keypress(null, cmdKey, {ctrlKey: true, shiftKey: true}); } else { var cmdKey = utils.getEntity(this.ge...
[ "function", "downloadManager_open", "(", "controller", ",", "shortcut", ")", "{", "if", "(", "shortcut", ")", "{", "if", "(", "mozmill", ".", "isLinux", ")", "{", "var", "cmdKey", "=", "utils", ".", "getEntity", "(", "this", ".", "getDtds", "(", ")", "...
Open the Download Manager @param {MozMillController} controller MozMillController of the window to operate on @param {boolean} shortcut If true the keyboard shortcut is used
[ "Open", "the", "Download", "Manager" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/downloads.js#L302-L317
train
Open the download manager
[ 30522, 3853, 8816, 24805, 4590, 1035, 2330, 1006, 11486, 1010, 2460, 12690, 1007, 1063, 2065, 1006, 2460, 12690, 1007, 1063, 2065, 1006, 9587, 2480, 19912, 1012, 2003, 4115, 5602, 1007, 1063, 13075, 4642, 2094, 14839, 1027, 21183, 12146, 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...
SheetJS/js-xlsx
xlsx.js
write_BrtColInfo
function write_BrtColInfo(C, col, o) { if(o == null) o = new_buf(18); var p = col_obj_w(C, col); o.write_shift(-4, C); o.write_shift(-4, C); o.write_shift(4, (p.width || 10) * 256); o.write_shift(4, 0/*ixfe*/); // style var flags = 0; if(col.hidden) flags |= 0x01; if(typeof p.width == 'number') flags |= 0x02; ...
javascript
function write_BrtColInfo(C, col, o) { if(o == null) o = new_buf(18); var p = col_obj_w(C, col); o.write_shift(-4, C); o.write_shift(-4, C); o.write_shift(4, (p.width || 10) * 256); o.write_shift(4, 0/*ixfe*/); // style var flags = 0; if(col.hidden) flags |= 0x01; if(typeof p.width == 'number') flags |= 0x02; ...
[ "function", "write_BrtColInfo", "(", "C", ",", "col", ",", "o", ")", "{", "if", "(", "o", "==", "null", ")", "o", "=", "new_buf", "(", "18", ")", ";", "var", "p", "=", "col_obj_w", "(", "C", ",", "col", ")", ";", "o", ".", "write_shift", "(", ...
/* [MS-XLSB] 2.4.323 BrtColInfo /* TODO: once XLS ColInfo is set, combine the functions
[ "/", "*", "[", "MS", "-", "XLSB", "]", "2", ".", "4", ".", "323", "BrtColInfo", "/", "*", "TODO", ":", "once", "XLS", "ColInfo", "is", "set", "combine", "the", "functions" ]
9a6d8a1d3d80c78dad5201fb389316f935279cdc
https://github.com/SheetJS/js-xlsx/blob/9a6d8a1d3d80c78dad5201fb389316f935279cdc/xlsx.js#L13690-L13703
train
Writes the BrtColInfo object.
[ 30522, 3853, 4339, 1035, 7987, 13535, 18861, 14876, 1006, 1039, 1010, 8902, 1010, 1051, 1007, 1063, 2065, 1006, 1051, 1027, 1027, 19701, 1007, 1051, 1027, 2047, 1035, 20934, 2546, 1006, 2324, 1007, 1025, 13075, 1052, 1027, 8902, 1035, 27885...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/lib/common/i18n.js
init
function init() { // This function is called during Ghost's initialization. // Reading translation file for messages from core .js files and keeping its content in memory // The English file is always loaded, until back-end translations are enabled in future versions. // Before that, see...
javascript
function init() { // This function is called during Ghost's initialization. // Reading translation file for messages from core .js files and keeping its content in memory // The English file is always loaded, until back-end translations are enabled in future versions. // Before that, see...
[ "function", "init", "(", ")", "{", "// This function is called during Ghost's initialization.", "// Reading translation file for messages from core .js files and keeping its content in memory", "// The English file is always loaded, until back-end translations are enabled in future versions.", "// B...
Setup i18n support: - Load proper language file into memory
[ "Setup", "i18n", "support", ":", "-", "Load", "proper", "language", "file", "into", "memory" ]
bb7bb55cf3e60af99ebbc56099928827b58461bc
https://github.com/TryGhost/Ghost/blob/bb7bb55cf3e60af99ebbc56099928827b58461bc/core/server/lib/common/i18n.js#L175-L192
train
Initializes the language file.
[ 30522, 3853, 1999, 4183, 1006, 1007, 1063, 1013, 1013, 2023, 3853, 2003, 2170, 2076, 5745, 1005, 1055, 3988, 3989, 1012, 1013, 1013, 3752, 5449, 5371, 2005, 7696, 2013, 4563, 1012, 1046, 2015, 6764, 1998, 4363, 2049, 4180, 1999, 3638, 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...