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
NetEase/pomelo
template/web-server/public/js/lib/pomeloclient.js
processCall
function processCall(msg) { var route = msg.route; if(!!route) { if (!!msg.body) { var body = msg.body.body; if (!body) {body = msg.body;} pomelo.emit(route, body); } else { pomelo.emit(route,msg); } } else { pomelo.emit(msg.bod...
javascript
function processCall(msg) { var route = msg.route; if(!!route) { if (!!msg.body) { var body = msg.body.body; if (!body) {body = msg.body;} pomelo.emit(route, body); } else { pomelo.emit(route,msg); } } else { pomelo.emit(msg.bod...
[ "function", "processCall", "(", "msg", ")", "{", "var", "route", "=", "msg", ".", "route", ";", "if", "(", "!", "!", "route", ")", "{", "if", "(", "!", "!", "msg", ".", "body", ")", "{", "var", "body", "=", "msg", ".", "body", ".", "body", ";...
if no id then it should be a server push message
[ "if", "no", "id", "then", "it", "should", "be", "a", "server", "push", "message" ]
defcf019631ed399cc4dad932d3b028a04a039a4
https://github.com/NetEase/pomelo/blob/defcf019631ed399cc4dad932d3b028a04a039a4/template/web-server/public/js/lib/pomeloclient.js#L424-L437
train
Process call
[ 30522, 3853, 2832, 9289, 2140, 1006, 5796, 2290, 1007, 1063, 13075, 2799, 1027, 5796, 2290, 1012, 2799, 1025, 2065, 1006, 999, 999, 2799, 1007, 1063, 2065, 1006, 999, 999, 5796, 2290, 1012, 2303, 1007, 1063, 13075, 2303, 1027, 5796, 2290,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
GeekyAnts/vue-native-core
src/platforms/weex/framework.js
createVueModuleInstance
function createVueModuleInstance (instanceId, moduleGetter) { const exports = {} VueFactory(exports, renderer) const Vue = exports.Vue const instance = instances[instanceId] // patch reserved tag detection to account for dynamically registered // components const isReservedTag = Vue.config.isReservedTag...
javascript
function createVueModuleInstance (instanceId, moduleGetter) { const exports = {} VueFactory(exports, renderer) const Vue = exports.Vue const instance = instances[instanceId] // patch reserved tag detection to account for dynamically registered // components const isReservedTag = Vue.config.isReservedTag...
[ "function", "createVueModuleInstance", "(", "instanceId", ",", "moduleGetter", ")", "{", "const", "exports", "=", "{", "}", "VueFactory", "(", "exports", ",", "renderer", ")", "const", "Vue", "=", "exports", ".", "Vue", "const", "instance", "=", "instances", ...
Create a fresh instance of Vue for each Weex instance.
[ "Create", "a", "fresh", "instance", "of", "Vue", "for", "each", "Weex", "instance", "." ]
a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e
https://github.com/GeekyAnts/vue-native-core/blob/a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e/src/platforms/weex/framework.js#L234-L285
train
Create a new instance of a Vue module.
[ 30522, 3853, 3443, 19722, 6633, 7716, 9307, 7076, 26897, 1006, 6013, 3593, 1010, 11336, 18150, 3334, 1007, 1063, 9530, 3367, 14338, 1027, 1063, 1065, 24728, 12879, 18908, 10253, 1006, 14338, 1010, 17552, 2121, 1007, 9530, 3367, 24728, 2063, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-regex-spaces.js
checkRegex
function checkRegex(node, value, valueStart) { const multipleSpacesRegex = /( {2,})( [+*{?]|[^+*{?]|$)/u, regexResults = multipleSpacesRegex.exec(value); if (regexResults !== null) { const count = regexResults[1].length; context.report({ ...
javascript
function checkRegex(node, value, valueStart) { const multipleSpacesRegex = /( {2,})( [+*{?]|[^+*{?]|$)/u, regexResults = multipleSpacesRegex.exec(value); if (regexResults !== null) { const count = regexResults[1].length; context.report({ ...
[ "function", "checkRegex", "(", "node", ",", "value", ",", "valueStart", ")", "{", "const", "multipleSpacesRegex", "=", "/", "( {2,})( [+*{?]|[^+*{?]|$)", "/", "u", ",", "regexResults", "=", "multipleSpacesRegex", ".", "exec", "(", "value", ")", ";", "if", "(",...
Validate regular expressions @param {ASTNode} node node to validate @param {string} value regular expression to validate @param {number} valueStart The start location of the regex/string literal. It will always be the case that `sourceCode.getText().slice(valueStart, valueStart + value.length) === value` @returns {void...
[ "Validate", "regular", "expressions" ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/no-regex-spaces.js#L41-L65
train
Check if the value is a multiple spaces
[ 30522, 3853, 4638, 2890, 3351, 2595, 1006, 13045, 1010, 3643, 1010, 5300, 7559, 2102, 1007, 1063, 9530, 3367, 3674, 23058, 21338, 24746, 2595, 1027, 1013, 1006, 1063, 1016, 1010, 1065, 1007, 1006, 1031, 1009, 1008, 1063, 1029, 1033, 1064, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
angular/material
src/components/panel/panel.js
MdPanelPosition
function MdPanelPosition($injector) { /** @private @const {!angular.$window} */ this._$window = $injector.get('$window'); /** @private {boolean} */ this._isRTL = $injector.get('$mdUtil').bidi() === 'rtl'; /** @private @const {!angular.$mdConstant} */ this._$mdConstant = $injector.get('$mdConstant'); /*...
javascript
function MdPanelPosition($injector) { /** @private @const {!angular.$window} */ this._$window = $injector.get('$window'); /** @private {boolean} */ this._isRTL = $injector.get('$mdUtil').bidi() === 'rtl'; /** @private @const {!angular.$mdConstant} */ this._$mdConstant = $injector.get('$mdConstant'); /*...
[ "function", "MdPanelPosition", "(", "$injector", ")", "{", "/** @private @const {!angular.$window} */", "this", ".", "_$window", "=", "$injector", ".", "get", "(", "'$window'", ")", ";", "/** @private {boolean} */", "this", ".", "_isRTL", "=", "$injector", ".", "get...
*************************************************************************** MdPanelPosition * *************************************************************************** Position configuration object. To use, create an MdPanelPosition with the desired properties, then pass the object as par...
[ "***************************************************************************", "MdPanelPosition", "*", "***************************************************************************", "Position", "configuration", "object", ".", "To", "use", "create", "an", "MdPanelPosition", "with", "the",...
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/panel/panel.js#L2539-L2578
train
The position of the panel.
[ 30522, 3853, 9108, 9739, 2884, 26994, 1006, 1002, 1999, 20614, 2953, 1007, 1063, 1013, 1008, 1008, 1030, 2797, 1030, 9530, 3367, 1063, 999, 16108, 1012, 1002, 3332, 1065, 1008, 1013, 2023, 1012, 1035, 1002, 3332, 1027, 1002, 1999, 20614, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/menu/js/menuServiceProvider.js
showMenu
function showMenu() { opts.parent.append(element); element[0].style.display = ''; return $q(function(resolve) { var position = calculateMenuPosition(element, opts); element.removeClass('md-leave'); // Animate the menu scaling, and opacity [from its position origi...
javascript
function showMenu() { opts.parent.append(element); element[0].style.display = ''; return $q(function(resolve) { var position = calculateMenuPosition(element, opts); element.removeClass('md-leave'); // Animate the menu scaling, and opacity [from its position origi...
[ "function", "showMenu", "(", ")", "{", "opts", ".", "parent", ".", "append", "(", "element", ")", ";", "element", "[", "0", "]", ".", "style", ".", "display", "=", "''", ";", "return", "$q", "(", "function", "(", "resolve", ")", "{", "var", "positi...
Place the menu into the DOM and call positioning related functions
[ "Place", "the", "menu", "into", "the", "DOM", "and", "call", "positioning", "related", "functions" ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/menu/js/menuServiceProvider.js#L149-L169
train
Show the menu
[ 30522, 3853, 2265, 3549, 2226, 1006, 1007, 1063, 23569, 2015, 1012, 6687, 1012, 10439, 10497, 1006, 5783, 1007, 1025, 5783, 1031, 1014, 1033, 1012, 2806, 1012, 4653, 1027, 1005, 1005, 1025, 2709, 1002, 1053, 1006, 3853, 1006, 10663, 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...
angular/material
src/components/datepicker/js/calendarMonth.js
calendarDirective
function calendarDirective() { return { template: '<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table>' + '<div class="md-calendar-scroll-mask">' + '<md-virtual-repeat-container class="md-calendar-scroll-container" ' + 'md-offset-size="' + (TB...
javascript
function calendarDirective() { return { template: '<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table>' + '<div class="md-calendar-scroll-mask">' + '<md-virtual-repeat-container class="md-calendar-scroll-container" ' + 'md-offset-size="' + (TB...
[ "function", "calendarDirective", "(", ")", "{", "return", "{", "template", ":", "'<table aria-hidden=\"true\" class=\"md-calendar-day-header\"><thead></thead></table>'", "+", "'<div class=\"md-calendar-scroll-mask\">'", "+", "'<md-virtual-repeat-container class=\"md-calendar-scroll-contain...
Private directive that represents a list of months inside the calendar.
[ "Private", "directive", "that", "represents", "a", "list", "of", "months", "inside", "the", "calendar", "." ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/datepicker/js/calendarMonth.js#L20-L55
train
A calendar directive that is used to generate the calendar calendar.
[ 30522, 3853, 8094, 4305, 2890, 15277, 1006, 1007, 1063, 2709, 1063, 23561, 1024, 1005, 1026, 2795, 9342, 1011, 5023, 1027, 1000, 2995, 1000, 2465, 1027, 1000, 9108, 1011, 8094, 1011, 2154, 1011, 20346, 1000, 1028, 1026, 1996, 4215, 1028, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/client/CSSStyleModel.js
function(propertyText, majorChange, userCallback) { function enabledCallback(style) { if (style) WebInspector.cssModel._styleSheetChanged(style.id.styleSheetId, majorChange); if (userCallback) userCallback(style); } function ca...
javascript
function(propertyText, majorChange, userCallback) { function enabledCallback(style) { if (style) WebInspector.cssModel._styleSheetChanged(style.id.styleSheetId, majorChange); if (userCallback) userCallback(style); } function ca...
[ "function", "(", "propertyText", ",", "majorChange", ",", "userCallback", ")", "{", "function", "enabledCallback", "(", "style", ")", "{", "if", "(", "style", ")", "WebInspector", ".", "cssModel", ".", "_styleSheetChanged", "(", "style", ".", "id", ".", "sty...
Replaces "propertyName: propertyValue [!important];" in the stylesheet by an arbitrary propertyText.
[ "Replaces", "propertyName", ":", "propertyValue", "[", "!important", "]", ";", "in", "the", "stylesheet", "by", "an", "arbitrary", "propertyText", "." ]
55c1dda0dff0c44920673711656ddfd7ff03c307
https://github.com/wuchangming/spy-debugger/blob/55c1dda0dff0c44920673711656ddfd7ff03c307/buildin_modules/weinre/web/client/CSSStyleModel.js#L457-L492
train
Set the text of the property
[ 30522, 3853, 1006, 3200, 18209, 1010, 2350, 22305, 2063, 1010, 5310, 9289, 20850, 8684, 1007, 1063, 3853, 9124, 9289, 20850, 8684, 1006, 2806, 1007, 1063, 2065, 1006, 2806, 1007, 4773, 7076, 5051, 16761, 1012, 20116, 25855, 9247, 1012, 1035...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (mPropertyBag) { var sAppVersion = mPropertyBag.appVersion; var bDeveloperMode = mPropertyBag.developerMode; var sScenario = mPropertyBag.scenario; var oValidAppVersions = { creation: sAppVersion, from: sAppVersion }; if (this._isValidAppVersionToRequired(sAppVersion, bDeveloperMode, ...
javascript
function (mPropertyBag) { var sAppVersion = mPropertyBag.appVersion; var bDeveloperMode = mPropertyBag.developerMode; var sScenario = mPropertyBag.scenario; var oValidAppVersions = { creation: sAppVersion, from: sAppVersion }; if (this._isValidAppVersionToRequired(sAppVersion, bDeveloperMode, ...
[ "function", "(", "mPropertyBag", ")", "{", "var", "sAppVersion", "=", "mPropertyBag", ".", "appVersion", ";", "var", "bDeveloperMode", "=", "mPropertyBag", ".", "developerMode", ";", "var", "sScenario", "=", "mPropertyBag", ".", "scenario", ";", "var", "oValidAp...
Generates a ValidAppVersions object for changes and variants; Depending on the parameters passed a 'to' field is included. @param {map} mPropertyBag @param {string} mPropertyBag.appVersion Version to be filled into the validAppVersions object fields @param {boolean} mPropertyBag.developerMode Flag if the creation of t...
[ "Generates", "a", "ValidAppVersions", "object", "for", "changes", "and", "variants", ";", "Depending", "on", "the", "parameters", "passed", "a", "to", "field", "is", "included", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1043-L1055
train
Returns an object with the app version and the to property
[ 30522, 3853, 1006, 6131, 18981, 15010, 16078, 1007, 1063, 13075, 20066, 2361, 27774, 1027, 6131, 18981, 15010, 16078, 1012, 10439, 27774, 1025, 13075, 1038, 24844, 18349, 4842, 5302, 3207, 1027, 6131, 18981, 15010, 16078, 1012, 9722, 5302, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
NervJS/taro
packages/taro/src/internal/_common.js
isHostObject
function isHostObject(value) { // Many host objects are `Object` objects that can coerce to strings // despite having improperly defined `toString` methods. var result = false if (value != null && typeof value.toString !== 'function') { try { result = !!(value + '') } catch (e) {} } return res...
javascript
function isHostObject(value) { // Many host objects are `Object` objects that can coerce to strings // despite having improperly defined `toString` methods. var result = false if (value != null && typeof value.toString !== 'function') { try { result = !!(value + '') } catch (e) {} } return res...
[ "function", "isHostObject", "(", "value", ")", "{", "// Many host objects are `Object` objects that can coerce to strings", "// despite having improperly defined `toString` methods.", "var", "result", "=", "false", "if", "(", "value", "!=", "null", "&&", "typeof", "value", "....
Checks if `value` is a host object in IE < 9. @private @param {*} value The value to check. @returns {boolean} Returns `true` if `value` is a host object, else `false`.
[ "Checks", "if", "value", "is", "a", "host", "object", "in", "IE", "<", "9", "." ]
274e76d731d7f158141287e31cbd51f092d472c5
https://github.com/NervJS/taro/blob/274e76d731d7f158141287e31cbd51f092d472c5/packages/taro/src/internal/_common.js#L76-L86
train
Check if value is a host object
[ 30522, 3853, 2003, 15006, 3406, 2497, 20614, 1006, 3643, 1007, 1063, 1013, 1013, 2116, 3677, 5200, 2024, 1036, 4874, 1036, 5200, 2008, 2064, 24873, 19170, 2000, 7817, 1013, 1013, 2750, 2383, 24156, 2135, 4225, 1036, 2000, 3367, 4892, 1036, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/sessionstore.js
aboutSessionRestore_getTabs
function aboutSessionRestore_getTabs(window) { var tabs = [ ]; var tree = this.tabList.getNode(); // Add entries when they are tabs (no container) var ii = window.listIndex + 1; while (ii < tree.view.rowCount && !tree.view.isContainer(ii)) { tabs.push({ index: tabs.length, ...
javascript
function aboutSessionRestore_getTabs(window) { var tabs = [ ]; var tree = this.tabList.getNode(); // Add entries when they are tabs (no container) var ii = window.listIndex + 1; while (ii < tree.view.rowCount && !tree.view.isContainer(ii)) { tabs.push({ index: tabs.length, ...
[ "function", "aboutSessionRestore_getTabs", "(", "window", ")", "{", "var", "tabs", "=", "[", "]", ";", "var", "tree", "=", "this", ".", "tabList", ".", "getNode", "(", ")", ";", "// Add entries when they are tabs (no container)", "var", "ii", "=", "window", "....
Get restorable tabs under the given window @param {object} window Window inside the tree @returns List of tabs @type {array of object}
[ "Get", "restorable", "tabs", "under", "the", "given", "window" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/sessionstore.js#L169-L186
train
Get the tabs from the session restore table
[ 30522, 3853, 2055, 8583, 10992, 28533, 5686, 1035, 2131, 2696, 5910, 1006, 3332, 1007, 1063, 13075, 21628, 2015, 1027, 1031, 1033, 1025, 13075, 3392, 1027, 2023, 1012, 21628, 9863, 1012, 2131, 3630, 3207, 1006, 1007, 1025, 1013, 1013, 5587,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Dogfalo/materialize
extras/noUiSlider/nouislider.js
fireEvent
function fireEvent ( eventName, handleNumber, tap ) { Object.keys(scope_Events).forEach(function( targetEvent ) { var eventType = targetEvent.split('.')[0]; if ( eventName === eventType ) { scope_Events[targetEvent].forEach(function( callback ) { ...
javascript
function fireEvent ( eventName, handleNumber, tap ) { Object.keys(scope_Events).forEach(function( targetEvent ) { var eventType = targetEvent.split('.')[0]; if ( eventName === eventType ) { scope_Events[targetEvent].forEach(function( callback ) { ...
[ "function", "fireEvent", "(", "eventName", ",", "handleNumber", ",", "tap", ")", "{", "Object", ".", "keys", "(", "scope_Events", ")", ".", "forEach", "(", "function", "(", "targetEvent", ")", "{", "var", "eventType", "=", "targetEvent", ".", "split", "(",...
External event handling
[ "External", "event", "handling" ]
1122efadad8f1433d404696f7613e3cc13fb83a4
https://github.com/Dogfalo/materialize/blob/1122efadad8f1433d404696f7613e3cc13fb83a4/extras/noUiSlider/nouislider.js#L1447-L1473
train
Fire an event
[ 30522, 3853, 2543, 18697, 3372, 1006, 2724, 18442, 1010, 5047, 19172, 5677, 1010, 11112, 1007, 1063, 4874, 1012, 6309, 1006, 9531, 1035, 2824, 1007, 1012, 18921, 6776, 1006, 3853, 1006, 4539, 18697, 3372, 1007, 1063, 13075, 2724, 13874, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js
function(sId) { //Match camelCase - case sensitive var idRegEx = /^[a-z][a-zA-Z]+$/; if ( !sId || typeof sId !== 'string') { return false; } if (sId.match(idRegEx) && this.validateStringLength(sId, 6, 50)) { return true; } return false; }
javascript
function(sId) { //Match camelCase - case sensitive var idRegEx = /^[a-z][a-zA-Z]+$/; if ( !sId || typeof sId !== 'string') { return false; } if (sId.match(idRegEx) && this.validateStringLength(sId, 6, 50)) { return true; } return false; }
[ "function", "(", "sId", ")", "{", "//Match camelCase - case sensitive", "var", "idRegEx", "=", "/", "^[a-z][a-zA-Z]+$", "/", ";", "if", "(", "!", "sId", "||", "typeof", "sId", "!==", "'string'", ")", "{", "return", "false", ";", "}", "if", "(", "sId", "....
Validates the id of a rule each id. The Id has to be of type string, and needs to be camelCase. Positive cases : - "validId" @private @param {string} sId Id in string format. @returns {boolean} Boolean response if the provided id is valid.
[ "Validates", "the", "id", "of", "a", "rule", "each", "id", ".", "The", "Id", "has", "to", "be", "of", "type", "string", "and", "needs", "to", "be", "camelCase", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js#L94-L109
train
Checks if the given string is a valid ID
[ 30522, 3853, 1006, 15765, 1007, 1063, 1013, 1013, 2674, 19130, 18382, 1011, 2553, 7591, 13075, 8909, 2890, 3351, 2595, 1027, 1013, 1034, 1031, 1037, 1011, 1062, 1033, 1031, 1037, 1011, 23564, 1011, 1062, 1033, 1009, 1002, 1013, 1025, 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...
ecomfe/zrender
src/mixin/Animatable.js
function (forwardToLast) { var animators = this.animators; var len = animators.length; for (var i = 0; i < len; i++) { animators[i].stop(forwardToLast); } animators.length = 0; return this; }
javascript
function (forwardToLast) { var animators = this.animators; var len = animators.length; for (var i = 0; i < len; i++) { animators[i].stop(forwardToLast); } animators.length = 0; return this; }
[ "function", "(", "forwardToLast", ")", "{", "var", "animators", "=", "this", ".", "animators", ";", "var", "len", "=", "animators", ".", "length", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "animators", ...
停止动画 @param {boolean} forwardToLast If move to last frame before stop
[ "停止动画" ]
30321b57cba3149c30eacb0c1e18276f0f001b9f
https://github.com/ecomfe/zrender/blob/30321b57cba3149c30eacb0c1e18276f0f001b9f/src/mixin/Animatable.js#L100-L109
train
Stop all the animators
[ 30522, 3853, 1006, 2830, 3406, 8523, 2102, 1007, 1063, 13075, 25132, 2015, 1027, 2023, 1012, 25132, 2015, 1025, 13075, 18798, 1027, 25132, 2015, 1012, 3091, 1025, 2005, 1006, 13075, 1045, 1027, 1014, 1025, 1045, 1026, 18798, 1025, 1045, 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/language/HTMLDOMDiff.js
function () { if (!oldNodeMap[newChild.tagID]) { newEdit = { type: "elementInsert", tag: newChild.tag, tagID: newChild.tagID, parentID: newChild.parent.tagID, attributes: newChild.attributes ...
javascript
function () { if (!oldNodeMap[newChild.tagID]) { newEdit = { type: "elementInsert", tag: newChild.tag, tagID: newChild.tagID, parentID: newChild.parent.tagID, attributes: newChild.attributes ...
[ "function", "(", ")", "{", "if", "(", "!", "oldNodeMap", "[", "newChild", ".", "tagID", "]", ")", "{", "newEdit", "=", "{", "type", ":", "\"elementInsert\"", ",", "tag", ":", "newChild", ".", "tag", ",", "tagID", ":", "newChild", ".", "tagID", ",", ...
If the current element was not in the old DOM, then we will create an elementInsert edit for it. If the element was in the old DOM, this will return false and the main loop will either spot this element later in the child list or the element has been moved. @return {boolean} true if an elementInsert was created
[ "If", "the", "current", "element", "was", "not", "in", "the", "old", "DOM", "then", "we", "will", "create", "an", "elementInsert", "edit", "for", "it", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/language/HTMLDOMDiff.js#L161-L188
train
This function is called when a new node is inserted.
[ 30522, 3853, 1006, 1007, 1063, 2065, 1006, 999, 2214, 3630, 3207, 2863, 2361, 1031, 2047, 19339, 1012, 6415, 3593, 1033, 1007, 1063, 2047, 2098, 4183, 1027, 1063, 2828, 1024, 1000, 5783, 7076, 8743, 1000, 1010, 6415, 1024, 2047, 19339, 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
lib/jsdoc/transform-apijson-for-sdk.js
function (sSince, sDescription, sEntityType) { var aResult; // Build deprecation message // Note: there may be no since or no description text available aResult = ["Deprecated"]; if (sSince) { aResult.push(" as of version " + sSince); } if (sDescription) { // Evaluate code blocks - Handle ...
javascript
function (sSince, sDescription, sEntityType) { var aResult; // Build deprecation message // Note: there may be no since or no description text available aResult = ["Deprecated"]; if (sSince) { aResult.push(" as of version " + sSince); } if (sDescription) { // Evaluate code blocks - Handle ...
[ "function", "(", "sSince", ",", "sDescription", ",", "sEntityType", ")", "{", "var", "aResult", ";", "// Build deprecation message", "// Note: there may be no since or no description text available", "aResult", "=", "[", "\"Deprecated\"", "]", ";", "if", "(", "sSince", ...
Formats the entity deprecation message and pre-process jsDoc link and code blocks @param {string} sSince since text @param {string} sDescription deprecation description text @param {string} sEntityType string representation of entity type @returns {string} formatted deprecation message
[ "Formats", "the", "entity", "deprecation", "message", "and", "pre", "-", "process", "jsDoc", "link", "and", "code", "blocks" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/lib/jsdoc/transform-apijson-for-sdk.js#L1670-L1691
train
Build deprecation message
[ 30522, 3853, 1006, 7020, 2378, 3401, 1010, 17371, 2229, 23235, 3258, 1010, 2741, 3012, 13874, 1007, 1063, 13075, 23631, 11314, 1025, 1013, 1013, 3857, 2139, 28139, 10719, 4471, 1013, 1013, 3602, 1024, 2045, 2089, 2022, 2053, 2144, 2030, 205...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
quasarframework/quasar
ui/src/components/datetime/persian.js
jalCalLeap
function jalCalLeap (jy) { let bl = breaks.length, jp = breaks[0], jm, jump, leap, n, i if (jy < jp || jy >= breaks[bl - 1]) { throw new Error('Invalid Jalaali year ' + jy) } for (i = 1; i < bl; i += 1) { jm = breaks[i] jump = jm - jp if (jy < jm) { break } jp = jm } ...
javascript
function jalCalLeap (jy) { let bl = breaks.length, jp = breaks[0], jm, jump, leap, n, i if (jy < jp || jy >= breaks[bl - 1]) { throw new Error('Invalid Jalaali year ' + jy) } for (i = 1; i < bl; i += 1) { jm = breaks[i] jump = jm - jp if (jy < jm) { break } jp = jm } ...
[ "function", "jalCalLeap", "(", "jy", ")", "{", "let", "bl", "=", "breaks", ".", "length", ",", "jp", "=", "breaks", "[", "0", "]", ",", "jm", ",", "jump", ",", "leap", ",", "n", ",", "i", "if", "(", "jy", "<", "jp", "||", "jy", ">=", "breaks"...
/* This function determines if the Jalaali (Persian) year is leap (366-day long) or is the common year (365 days) @param jy Jalaali calendar year (-61 to 3177) @returns number of years since the last leap year (0 to 4)
[ "/", "*", "This", "function", "determines", "if", "the", "Jalaali", "(", "Persian", ")", "year", "is", "leap", "(", "366", "-", "day", "long", ")", "or", "is", "the", "common", "year", "(", "365", "days", ")" ]
5d2fb6c96bff6095236f8ca6fe07a037e32e06b3
https://github.com/quasarframework/quasar/blob/5d2fb6c96bff6095236f8ca6fe07a037e32e06b3/ui/src/components/datetime/persian.js#L62-L88
train
Jalaali leap year
[ 30522, 3853, 14855, 15472, 24164, 9331, 1006, 1046, 2100, 1007, 1063, 2292, 1038, 2140, 1027, 7807, 1012, 3091, 1010, 16545, 1027, 7807, 1031, 1014, 1033, 1010, 1046, 2213, 1010, 5376, 1010, 11679, 1010, 1050, 1010, 1045, 2065, 1006, 1046, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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(codec) { if (codec != null) { var name = codec.getName(); mxCodecRegistry.codecs[name] = codec; var classname = mxUtils.getFunctionName(codec.template.constructor); if (classname != name) { mxCodecRegistry.addAlias(classname, name); } } return codec; }
javascript
function(codec) { if (codec != null) { var name = codec.getName(); mxCodecRegistry.codecs[name] = codec; var classname = mxUtils.getFunctionName(codec.template.constructor); if (classname != name) { mxCodecRegistry.addAlias(classname, name); } } return codec; }
[ "function", "(", "codec", ")", "{", "if", "(", "codec", "!=", "null", ")", "{", "var", "name", "=", "codec", ".", "getName", "(", ")", ";", "mxCodecRegistry", ".", "codecs", "[", "name", "]", "=", "codec", ";", "var", "classname", "=", "mxUtils", "...
Function: register Registers a new codec and associates the name of the template constructor in the codec with the codec object. Parameters: codec - <mxObjectCodec> to be registered.
[ "Function", ":", "register" ]
33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44
https://github.com/jgraph/mxgraph/blob/33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44/javascript/mxClient.js#L86015-L86031
train
Registers a codec
[ 30522, 3853, 1006, 3642, 2278, 1007, 1063, 2065, 1006, 3642, 2278, 999, 1027, 19701, 1007, 1063, 13075, 2171, 1027, 3642, 2278, 1012, 2131, 18442, 1006, 1007, 1025, 25630, 16044, 16748, 24063, 2854, 1012, 3642, 6169, 1031, 2171, 1033, 1027,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (oInstance, sMetaPath, mTypeForMetaPath, bReturnAlias) { var bFailed, mKey2Value = {}; bFailed = mTypeForMetaPath[sMetaPath].$Key.some(function (vKey) { var sKey, sKeyPath, aPath, sPropertyName, oType, vValue; if (typeof vKey === "string") { sKey = sKeyPath = vKey; } else { sK...
javascript
function (oInstance, sMetaPath, mTypeForMetaPath, bReturnAlias) { var bFailed, mKey2Value = {}; bFailed = mTypeForMetaPath[sMetaPath].$Key.some(function (vKey) { var sKey, sKeyPath, aPath, sPropertyName, oType, vValue; if (typeof vKey === "string") { sKey = sKeyPath = vKey; } else { sK...
[ "function", "(", "oInstance", ",", "sMetaPath", ",", "mTypeForMetaPath", ",", "bReturnAlias", ")", "{", "var", "bFailed", ",", "mKey2Value", "=", "{", "}", ";", "bFailed", "=", "mTypeForMetaPath", "[", "sMetaPath", "]", ".", "$Key", ".", "some", "(", "func...
Returns the key properties mapped to values from the given entity using the given meta data. @param {object} oInstance Entity instance runtime data @param {string} sMetaPath The absolute meta path of the given instance @param {object} mTypeForMetaPath Maps meta paths to the corresponding entity or complex types @param...
[ "Returns", "the", "key", "properties", "mapped", "to", "values", "from", "the", "given", "entity", "using", "the", "given", "meta", "data", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L572-L604
train
drill down the property value
[ 30522, 3853, 1006, 1051, 7076, 26897, 1010, 15488, 12928, 15069, 1010, 11047, 18863, 14192, 12928, 15069, 1010, 25626, 14287, 22786, 2015, 1007, 1063, 13075, 28939, 17440, 1010, 12395, 3240, 2475, 10175, 5657, 1027, 1063, 1065, 1025, 28939, 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.documentation/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js
function (oReferences) { // Setup this._sTopicId = oReferences.sTopicId; this._oModel = oReferences.oModel; this._oControlData = this._oModel.getData(); this._aApiIndex = oReferences.aApiIndex; this._aAllowedMembers = oReferences.aAllowedMembers; this._sEntityType = oReferences.sEntityType;...
javascript
function (oReferences) { // Setup this._sTopicId = oReferences.sTopicId; this._oModel = oReferences.oModel; this._oControlData = this._oModel.getData(); this._aApiIndex = oReferences.aApiIndex; this._aAllowedMembers = oReferences.aAllowedMembers; this._sEntityType = oReferences.sEntityType;...
[ "function", "(", "oReferences", ")", "{", "// Setup", "this", ".", "_sTopicId", "=", "oReferences", ".", "sTopicId", ";", "this", ".", "_oModel", "=", "oReferences", ".", "oModel", ";", "this", ".", "_oControlData", "=", "this", ".", "_oModel", ".", "getDa...
/* =========================================================== /* lifecycle methods /* ===========================================================
[ "/", "*", "===========================================================", "/", "*", "lifecycle", "methods", "/", "*", "===========================================================" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js#L46-L136
train
Initializes the data structures for the control and the view
[ 30522, 3853, 1006, 10848, 25523, 2015, 1007, 1063, 1013, 1013, 16437, 30524, 25523, 2015, 1012, 18168, 10244, 2140, 1025, 2023, 1012, 1035, 1051, 8663, 13181, 15150, 2696, 1027, 2023, 1012, 1035, 18168, 10244, 2140, 1012, 2131, 2850, 2696, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ManagedObjectMetadata.js
SpecialSetting
function SpecialSetting(oClass, name, info) { info = typeof info !== 'object' ? { type: info } : info; this.name = name; this.type = info.type || 'any'; this.visibility = info.visibility || 'public'; this.defaultValue = info.defaultValue; this.appData = remainder(this, info); this._oParent = oClass; thi...
javascript
function SpecialSetting(oClass, name, info) { info = typeof info !== 'object' ? { type: info } : info; this.name = name; this.type = info.type || 'any'; this.visibility = info.visibility || 'public'; this.defaultValue = info.defaultValue; this.appData = remainder(this, info); this._oParent = oClass; thi...
[ "function", "SpecialSetting", "(", "oClass", ",", "name", ",", "info", ")", "{", "info", "=", "typeof", "info", "!==", "'object'", "?", "{", "type", ":", "info", "}", ":", "info", ";", "this", ".", "name", "=", "name", ";", "this", ".", "type", "="...
---- SpecialSetting -------------------------------------------------------------------- SpecialSetting info object @private @since 1.27.1
[ "----", "SpecialSetting", "--------------------------------------------------------------------", "SpecialSetting", "info", "object" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ManagedObjectMetadata.js#L150-L160
train
Special setting constructor.
[ 30522, 3853, 19247, 18319, 3070, 1006, 1051, 26266, 1010, 2171, 1010, 18558, 1007, 1063, 18558, 1027, 2828, 11253, 18558, 999, 1027, 1027, 1005, 4874, 1005, 1029, 1063, 2828, 1024, 18558, 1065, 1024, 18558, 1025, 2023, 1012, 2171, 1027, 217...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
expressjs/express
examples/content-negotiation/index.js
format
function format(path) { var obj = require(path); return function(req, res){ res.format(obj); }; }
javascript
function format(path) { var obj = require(path); return function(req, res){ res.format(obj); }; }
[ "function", "format", "(", "path", ")", "{", "var", "obj", "=", "require", "(", "path", ")", ";", "return", "function", "(", "req", ",", "res", ")", "{", "res", ".", "format", "(", "obj", ")", ";", "}", ";", "}" ]
or you could write a tiny middleware like this to add a layer of abstraction and make things a bit more declarative:
[ "or", "you", "could", "write", "a", "tiny", "middleware", "like", "this", "to", "add", "a", "layer", "of", "abstraction", "and", "make", "things", "a", "bit", "more", "declarative", ":" ]
dc538f6e810bd462c98ee7e6aae24c64d4b1da93
https://github.com/expressjs/express/blob/dc538f6e810bd462c98ee7e6aae24c64d4b1da93/examples/content-negotiation/index.js#L31-L36
train
Returns a function that formats the given object.
[ 30522, 3853, 4289, 1006, 4130, 1007, 1063, 13075, 27885, 3501, 1027, 5478, 1006, 4130, 1007, 1025, 2709, 3853, 1006, 2128, 4160, 1010, 24501, 1007, 1063, 24501, 1012, 4289, 1006, 27885, 3501, 1007, 1025, 1065, 1025, 1065, 102, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
examples/svg/svg.js
function () { var total = this.stats.length return this.stats.map(function (stat, i) { var point = valueToPoint(stat.value, i, total) return point.x + ',' + point.y }).join(' ') }
javascript
function () { var total = this.stats.length return this.stats.map(function (stat, i) { var point = valueToPoint(stat.value, i, total) return point.x + ',' + point.y }).join(' ') }
[ "function", "(", ")", "{", "var", "total", "=", "this", ".", "stats", ".", "length", "return", "this", ".", "stats", ".", "map", "(", "function", "(", "stat", ",", "i", ")", "{", "var", "point", "=", "valueToPoint", "(", "stat", ".", "value", ",", ...
a computed property for the polygon's points
[ "a", "computed", "property", "for", "the", "polygon", "s", "points" ]
a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e
https://github.com/GeekyAnts/vue-native-core/blob/a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e/examples/svg/svg.js#L17-L23
train
Returns the sequence of points in the log file
[ 30522, 3853, 1006, 1007, 1063, 13075, 2561, 1027, 2023, 1012, 26319, 1012, 3091, 2709, 2023, 1012, 26319, 1012, 4949, 1006, 3853, 1006, 28093, 1010, 1045, 1007, 1063, 13075, 2391, 1027, 3643, 14399, 25785, 1006, 28093, 1012, 3643, 1010, 104...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.unified/src/sap/ui/unified/CalendarTimeInterval.js
_togglePrevNext
function _togglePrevNext(bSkipMonthCheck){ var oDate = new UniversalDate(_getStartDate.call(this).getTime()); var iItems = this._getItems(); var iYear = oDate.getJSDate().getUTCFullYear(); var iYearMax = this._oMaxDate.getJSDate().getUTCFullYear(); var iYearMin = this._oMinDate.getJSDate().getUTCFullYear(); ...
javascript
function _togglePrevNext(bSkipMonthCheck){ var oDate = new UniversalDate(_getStartDate.call(this).getTime()); var iItems = this._getItems(); var iYear = oDate.getJSDate().getUTCFullYear(); var iYearMax = this._oMaxDate.getJSDate().getUTCFullYear(); var iYearMin = this._oMinDate.getJSDate().getUTCFullYear(); ...
[ "function", "_togglePrevNext", "(", "bSkipMonthCheck", ")", "{", "var", "oDate", "=", "new", "UniversalDate", "(", "_getStartDate", ".", "call", "(", "this", ")", ".", "getTime", "(", ")", ")", ";", "var", "iItems", "=", "this", ".", "_getItems", "(", ")...
Enables / Disables previous and next button in the Header. This function assumes there is a "monthPicker" aggregation unless the bSkipMonthCheck flag is false. So callers must take care. @param {boolean} bSkipMonthCheck if month picker should be examined or not @return {void} @private
[ "Enables", "/", "Disables", "previous", "and", "next", "button", "in", "the", "Header", ".", "This", "function", "assumes", "there", "is", "a", "monthPicker", "aggregation", "unless", "the", "bSkipMonthCheck", "flag", "is", "false", ".", "So", "callers", "must...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1606-L1677
train
Toggles the previous and next buttons
[ 30522, 3853, 1035, 2000, 24679, 28139, 16022, 10288, 2102, 1006, 18667, 3211, 9737, 12162, 16257, 5369, 3600, 1007, 1063, 13075, 1051, 13701, 1027, 2047, 5415, 13701, 1006, 1035, 4152, 7559, 2102, 13701, 1012, 2655, 1006, 2023, 1007, 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...
caolan/async
support/jsdoc/theme/publish.js
writeSearchData
function writeSearchData(methodNames, sourceFilenames) { var dataDir = path.join(outdir, 'data'); fsExtra.mkdirsSync(dataDir); fsExtra.writeJsonSync(path.join(dataDir, 'methodNames.json'), sortStrs(methodNames), 'utf8'); fsExtra.writeJsonSync(path.join(dataDir, 'sourceFiles.json'), sortStrs(sourceFilena...
javascript
function writeSearchData(methodNames, sourceFilenames) { var dataDir = path.join(outdir, 'data'); fsExtra.mkdirsSync(dataDir); fsExtra.writeJsonSync(path.join(dataDir, 'methodNames.json'), sortStrs(methodNames), 'utf8'); fsExtra.writeJsonSync(path.join(dataDir, 'sourceFiles.json'), sortStrs(sourceFilena...
[ "function", "writeSearchData", "(", "methodNames", ",", "sourceFilenames", ")", "{", "var", "dataDir", "=", "path", ".", "join", "(", "outdir", ",", "'data'", ")", ";", "fsExtra", ".", "mkdirsSync", "(", "dataDir", ")", ";", "fsExtra", ".", "writeJsonSync", ...
Prints into <outdir>/data a `methodNames.json` and a `sourceFiles.json` JSON file that contains methods and files that can be searched on the generated doc site. @param {Array<String>} methodNames - A list of method names @param {Array<String>} sourceFilenames - A list of source filenames
[ "Prints", "into", "<outdir", ">", "/", "data", "a", "methodNames", ".", "json", "and", "a", "sourceFiles", ".", "json", "JSON", "file", "that", "contains", "methods", "and", "files", "that", "can", "be", "searched", "on", "the", "generated", "doc", "site",...
4330d536c106592139fa82062494c9dba0da1fdb
https://github.com/caolan/async/blob/4330d536c106592139fa82062494c9dba0da1fdb/support/jsdoc/theme/publish.js#L417-L422
train
Writes the search data to the specified directory
[ 30522, 3853, 7009, 14644, 2818, 2850, 2696, 1006, 4118, 18442, 2015, 1010, 3120, 8873, 20844, 7834, 1007, 1063, 13075, 2951, 4305, 2099, 1027, 4130, 1012, 3693, 1006, 2041, 4305, 2099, 1010, 1005, 2951, 1005, 1007, 1025, 1042, 3366, 18413, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
docs/config/processors/buildConfig.js
getCommitDate
function getCommitDate() { const deferred = q.defer(); exec('git show -s --format=%ci HEAD', function(error, stdout) { buildConfig.date = stdout && stdout.toString().trim(); deferred.resolve(buildConfig.date); }); return deferred.promise; }
javascript
function getCommitDate() { const deferred = q.defer(); exec('git show -s --format=%ci HEAD', function(error, stdout) { buildConfig.date = stdout && stdout.toString().trim(); deferred.resolve(buildConfig.date); }); return deferred.promise; }
[ "function", "getCommitDate", "(", ")", "{", "const", "deferred", "=", "q", ".", "defer", "(", ")", ";", "exec", "(", "'git show -s --format=%ci HEAD'", ",", "function", "(", "error", ",", "stdout", ")", "{", "buildConfig", ".", "date", "=", "stdout", "&&",...
Get the commit date for the most recent commit on origin/master @returns {*}
[ "Get", "the", "commit", "date", "for", "the", "most", "recent", "commit", "on", "origin", "/", "master" ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/docs/config/processors/buildConfig.js#L45-L54
train
Get commit date
[ 30522, 3853, 2131, 9006, 22930, 13701, 1006, 1007, 1063, 9530, 3367, 13366, 28849, 2094, 1027, 1053, 1012, 13366, 2121, 1006, 1007, 1025, 4654, 8586, 1006, 1005, 21025, 2102, 2265, 1011, 1055, 1011, 1011, 4289, 1027, 1003, 25022, 2132, 1005...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ColorlibHQ/AdminLTE
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
function() { var that = this, oldHtml, cleanHtml; if (wysihtml5.browser.supportsModenPaste()) { this.on("paste:composer", function(event) { event.preventDefault(); oldHtml = wysihtml5.dom.getPastedHtml(event); if (oldHtml) { that._cleanA...
javascript
function() { var that = this, oldHtml, cleanHtml; if (wysihtml5.browser.supportsModenPaste()) { this.on("paste:composer", function(event) { event.preventDefault(); oldHtml = wysihtml5.dom.getPastedHtml(event); if (oldHtml) { that._cleanA...
[ "function", "(", ")", "{", "var", "that", "=", "this", ",", "oldHtml", ",", "cleanHtml", ";", "if", "(", "wysihtml5", ".", "browser", ".", "supportsModenPaste", "(", ")", ")", "{", "this", ".", "on", "(", "\"paste:composer\"", ",", "function", "(", "ev...
Prepare html parser logic - Observes for paste and drop
[ "Prepare", "html", "parser", "logic", "-", "Observes", "for", "paste", "and", "drop" ]
19113c3cbc19a7afe0cfd3158d647064d2d30661
https://github.com/ColorlibHQ/AdminLTE/blob/19113c3cbc19a7afe0cfd3158d647064d2d30661/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js#L13395-L13420
train
This function is called by the paste event handler. It is called by the paste event handler. It is also called by the paste event handler.
[ 30522, 3853, 1006, 1007, 1063, 13075, 2008, 1027, 2023, 1010, 2214, 11039, 19968, 1010, 4550, 11039, 19968, 1025, 2065, 1006, 1059, 7274, 19190, 21246, 2140, 2629, 1012, 16602, 1012, 6753, 5302, 4181, 19707, 2618, 1006, 1007, 1007, 1063, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/util/apply-disable-directives.js
compareLocations
function compareLocations(itemA, itemB) { return itemA.line - itemB.line || itemA.column - itemB.column; }
javascript
function compareLocations(itemA, itemB) { return itemA.line - itemB.line || itemA.column - itemB.column; }
[ "function", "compareLocations", "(", "itemA", ",", "itemB", ")", "{", "return", "itemA", ".", "line", "-", "itemB", ".", "line", "||", "itemA", ".", "column", "-", "itemB", ".", "column", ";", "}" ]
Compares the locations of two objects in a source file @param {{line: number, column: number}} itemA The first object @param {{line: number, column: number}} itemB The second object @returns {number} A value less than 1 if itemA appears before itemB in the source file, greater than 1 if itemA appears after itemB in the...
[ "Compares", "the", "locations", "of", "two", "objects", "in", "a", "source", "file" ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/util/apply-disable-directives.js#L17-L19
train
Compare two locations of the given line and column of the given line and column of the given line and column of the given line and column of the given line or column of the given line.
[ 30522, 3853, 12826, 4135, 10719, 2015, 1006, 8875, 2050, 1010, 8875, 2497, 1007, 1063, 2709, 8875, 2050, 1012, 2240, 1011, 8875, 2497, 1012, 2240, 1064, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
heyui/heyui
src/utils/debounce.js
trailingEdge
function trailingEdge(time) { timerId = undefined; // 有lastArgs才执行, // 意味着只有 func 已经被 debounced 过一次以后才会在 trailing edge 执行 if (trailing && lastArgs) { return invokeFunc(time); } // 每次 trailingEdge 都会清除 lastArgs 和 lastThis,目的是避免最后一次函数被执行了两次 // 举个例子:最后一次函数执行的时候,可能恰巧是前一次的 trailing edge,函数被...
javascript
function trailingEdge(time) { timerId = undefined; // 有lastArgs才执行, // 意味着只有 func 已经被 debounced 过一次以后才会在 trailing edge 执行 if (trailing && lastArgs) { return invokeFunc(time); } // 每次 trailingEdge 都会清除 lastArgs 和 lastThis,目的是避免最后一次函数被执行了两次 // 举个例子:最后一次函数执行的时候,可能恰巧是前一次的 trailing edge,函数被...
[ "function", "trailingEdge", "(", "time", ")", "{", "timerId", "=", "undefined", ";", "// 有lastArgs才执行,", "// 意味着只有 func 已经被 debounced 过一次以后才会在 trailing edge 执行", "if", "(", "trailing", "&&", "lastArgs", ")", "{", "return", "invokeFunc", "(", "time", ")", ";", "}", ...
在trailing edge阶段执行函数
[ "在trailing", "edge阶段执行函数" ]
d5405d27d994151b676eb91c12b389316d7f6679
https://github.com/heyui/heyui/blob/d5405d27d994151b676eb91c12b389316d7f6679/src/utils/debounce.js#L105-L116
train
trailingEdge 执行发生时间
[ 30522, 3853, 12542, 24225, 1006, 2051, 1007, 1063, 25309, 3593, 1027, 6151, 28344, 1025, 1013, 1013, 1873, 2197, 2906, 5620, 100, 100, 1945, 1989, 1013, 1013, 100, 100, 100, 100, 1873, 4569, 2278, 100, 100, 100, 2139, 5092, 22392, 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...
eslint/eslint
lib/rules/spaced-comment.js
reportBegin
function reportBegin(node, message, match, refChar) { const type = node.type.toLowerCase(), commentIdentifier = type === "block" ? "/*" : "//"; context.report({ node, fix(fixer) { const start = node.range[0]; ...
javascript
function reportBegin(node, message, match, refChar) { const type = node.type.toLowerCase(), commentIdentifier = type === "block" ? "/*" : "//"; context.report({ node, fix(fixer) { const start = node.range[0]; ...
[ "function", "reportBegin", "(", "node", ",", "message", ",", "match", ",", "refChar", ")", "{", "const", "type", "=", "node", ".", "type", ".", "toLowerCase", "(", ")", ",", "commentIdentifier", "=", "type", "===", "\"block\"", "?", "\"/*\"", ":", "\"//\...
Reports a beginning spacing error with an appropriate message. @param {ASTNode} node - A comment node to check. @param {string} message - An error message to report. @param {Array} match - An array of match results for markers. @param {string} refChar - Character used for reference in the error message. @returns {void}
[ "Reports", "a", "beginning", "spacing", "error", "with", "an", "appropriate", "message", "." ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/spaced-comment.js#L269-L292
train
Report begin of a node
[ 30522, 3853, 3189, 4783, 11528, 1006, 13045, 1010, 4471, 1010, 2674, 1010, 25416, 7507, 2099, 1007, 1063, 9530, 3367, 2828, 1027, 13045, 1012, 2828, 1012, 2000, 27663, 18992, 3366, 1006, 1007, 1010, 7615, 5178, 16778, 8873, 2121, 1027, 2828...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sass/node-sass
lib/extensions.js
getPlatformVariant
function getPlatformVariant() { var contents = ''; if (process.platform !== 'linux') { return ''; } try { contents = fs.readFileSync(process.execPath); // Buffer.indexOf was added in v1.5.0 so cast to string for old node // Delay contents.toStrings because it's expensive if (!contents.ind...
javascript
function getPlatformVariant() { var contents = ''; if (process.platform !== 'linux') { return ''; } try { contents = fs.readFileSync(process.execPath); // Buffer.indexOf was added in v1.5.0 so cast to string for old node // Delay contents.toStrings because it's expensive if (!contents.ind...
[ "function", "getPlatformVariant", "(", ")", "{", "var", "contents", "=", "''", ";", "if", "(", "process", ".", "platform", "!==", "'linux'", ")", "{", "return", "''", ";", "}", "try", "{", "contents", "=", "fs", ".", "readFileSync", "(", "process", "."...
Gets the platform variant, currently either an empty string or 'musl' for Linux/musl platforms. @api public
[ "Gets", "the", "platform", "variant", "currently", "either", "an", "empty", "string", "or", "musl", "for", "Linux", "/", "musl", "platforms", "." ]
0c1a49eefa37544d16041c5fe5b2e3d9168004b7
https://github.com/sass/node-sass/blob/0c1a49eefa37544d16041c5fe5b2e3d9168004b7/lib/extensions.js#L425-L447
train
Get the platform variant
[ 30522, 3853, 2131, 24759, 4017, 14192, 10755, 2937, 2102, 1006, 1007, 1063, 13075, 8417, 1027, 1005, 1005, 1025, 2065, 1006, 2832, 1012, 4132, 999, 1027, 1027, 1005, 11603, 1005, 1007, 1063, 2709, 1005, 1005, 1025, 1065, 3046, 1063, 8417, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/layout/barPolar.js
calRadialBar
function calRadialBar(barSeries, api) { // Columns info on each category axis. Key is polar name var columnsMap = {}; zrUtil.each(barSeries, function (seriesModel, idx) { var data = seriesModel.getData(); var polar = seriesModel.coordinateSystem; var baseAxis = polar.getBaseAxis();...
javascript
function calRadialBar(barSeries, api) { // Columns info on each category axis. Key is polar name var columnsMap = {}; zrUtil.each(barSeries, function (seriesModel, idx) { var data = seriesModel.getData(); var polar = seriesModel.coordinateSystem; var baseAxis = polar.getBaseAxis();...
[ "function", "calRadialBar", "(", "barSeries", ",", "api", ")", "{", "// Columns info on each category axis. Key is polar name", "var", "columnsMap", "=", "{", "}", ";", "zrUtil", ".", "each", "(", "barSeries", ",", "function", "(", "seriesModel", ",", "idx", ")", ...
Calculate bar width and offset for radial bar charts
[ "Calculate", "bar", "width", "and", "offset", "for", "radial", "bar", "charts" ]
4d0ea095dc3929cb6de40c45748826e7999c7aa8
https://github.com/apache/incubator-echarts/blob/4d0ea095dc3929cb6de40c45748826e7999c7aa8/src/layout/barPolar.js#L180-L301
train
CalRadialBar calRadialBar
[ 30522, 3853, 10250, 12173, 4818, 8237, 1006, 6963, 28077, 1010, 17928, 1007, 1063, 1013, 1013, 7753, 18558, 2006, 2169, 4696, 8123, 1012, 3145, 2003, 11508, 2171, 13075, 7753, 2863, 2361, 1027, 1063, 1065, 1025, 1062, 22134, 4014, 1012, 216...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/Configuration.js
checkEnum
function checkEnum(oEnum, sValue, sPropertyName) { var aValidValues = []; for (var sKey in oEnum) { if (oEnum.hasOwnProperty(sKey)) { if (oEnum[sKey] === sValue) { return; } aValidValues.push(oEnum[sKey]); } } throw new Error("Unsupported Enumeration value for " + sPropertyName + ", valid...
javascript
function checkEnum(oEnum, sValue, sPropertyName) { var aValidValues = []; for (var sKey in oEnum) { if (oEnum.hasOwnProperty(sKey)) { if (oEnum[sKey] === sValue) { return; } aValidValues.push(oEnum[sKey]); } } throw new Error("Unsupported Enumeration value for " + sPropertyName + ", valid...
[ "function", "checkEnum", "(", "oEnum", ",", "sValue", ",", "sPropertyName", ")", "{", "var", "aValidValues", "=", "[", "]", ";", "for", "(", "var", "sKey", "in", "oEnum", ")", "{", "if", "(", "oEnum", ".", "hasOwnProperty", "(", "sKey", ")", ")", "{"...
Checks if a value exists within an enumerable list. @param {object} oEnum Enumeration object with values for validation @param {string} sValue Value to check against enumerable list @param {string} sPropertyName Name of the property which is checked @throws {Error} If the value could not be found, an error is thrown
[ "Checks", "if", "a", "value", "exists", "within", "an", "enumerable", "list", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1613-L1624
train
Checks if the value of the given enumeration is valid
[ 30522, 3853, 4638, 2368, 2819, 1006, 1051, 2368, 30524, 1006, 15315, 3240, 1007, 1007, 1063, 2065, 1006, 1051, 2368, 2819, 1031, 15315, 3240, 1033, 1027, 1027, 1027, 17917, 2389, 5657, 1007, 1063, 2709, 1025, 1065, 10927, 21273, 10175, 1580...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.table/src/sap/ui/table/TableColumnUtils.js
function(oTable, bConsiderVisibility) { var iFixed = oTable.getComputedFixedColumnCount(); if (!bConsiderVisibility) { return iFixed; } if (iFixed <= 0 || oTable._bIgnoreFixedColumnCount) { return 0; } var aColumns = oTable.getColumns(); var iVisibleFixedColumnCount = 0; iFixed = Math...
javascript
function(oTable, bConsiderVisibility) { var iFixed = oTable.getComputedFixedColumnCount(); if (!bConsiderVisibility) { return iFixed; } if (iFixed <= 0 || oTable._bIgnoreFixedColumnCount) { return 0; } var aColumns = oTable.getColumns(); var iVisibleFixedColumnCount = 0; iFixed = Math...
[ "function", "(", "oTable", ",", "bConsiderVisibility", ")", "{", "var", "iFixed", "=", "oTable", ".", "getComputedFixedColumnCount", "(", ")", ";", "if", "(", "!", "bConsiderVisibility", ")", "{", "return", "iFixed", ";", "}", "if", "(", "iFixed", "<=", "0...
Returns the number of fixed columns depending on the parameter <code>bConsiderVisibility</code>. @param {sap.ui.table.Table} oTable Instance of the table. @param {boolean} bConsiderVisibility If <code>false</code> the result of the <code>getComputedFixedColumnCount</code> function of the table is returned. If <code>tr...
[ "Returns", "the", "number", "of", "fixed", "columns", "depending", "on", "the", "parameter", "<code", ">", "bConsiderVisibility<", "/", "code", ">", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableColumnUtils.js#L727-L749
train
Returns the number of visible columns in the table.
[ 30522, 3853, 1006, 27178, 3085, 1010, 4647, 5644, 18688, 11365, 13464, 1007, 1063, 13075, 2065, 7646, 2098, 1027, 27178, 3085, 1012, 2131, 9006, 29462, 23901, 25778, 2819, 15305, 16671, 1006, 1007, 1025, 2065, 1006, 999, 4647, 5644, 18688, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-helper/build.js
getSlots
function getSlots(children) { var slots = {}; if (children == null) { return slots } if (!Array.isArray(children)) { children = [children]; } children = children.filter(function (v) { return v != null; }); children.forEach(function (v, _i) { if (typeof v === 'string' || typeof v === 'number' |...
javascript
function getSlots(children) { var slots = {}; if (children == null) { return slots } if (!Array.isArray(children)) { children = [children]; } children = children.filter(function (v) { return v != null; }); children.forEach(function (v, _i) { if (typeof v === 'string' || typeof v === 'number' |...
[ "function", "getSlots", "(", "children", ")", "{", "var", "slots", "=", "{", "}", ";", "if", "(", "children", "==", "null", ")", "{", "return", "slots", "}", "if", "(", "!", "Array", ".", "isArray", "(", "children", ")", ")", "{", "children", "=", ...
for 'this.$solts' @param {this.props.children} children
[ "for", "this", ".", "$solts" ]
a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e
https://github.com/GeekyAnts/vue-native-core/blob/a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e/packages/vue-native-helper/build.js#L1741-L1769
train
Get the slots for a given children
[ 30522, 3853, 4152, 10994, 2015, 1006, 2336, 1007, 1063, 13075, 19832, 1027, 1063, 1065, 1025, 2065, 1006, 2336, 1027, 1027, 19701, 1007, 1063, 2709, 19832, 1065, 2065, 1006, 999, 9140, 1012, 18061, 11335, 2100, 1006, 2336, 1007, 1007, 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...
adobe/brackets
src/search/node/FindInFilesDomain.js
setResults
function setResults(fullpath, resultInfo, maxResultsToReturn) { if (results[fullpath]) { numMatches -= results[fullpath].matches.length; delete results[fullpath]; } if (foundMaximum || !resultInfo || !resultInfo.matches || !resultInfo.matches.length) { return; } // Make sur...
javascript
function setResults(fullpath, resultInfo, maxResultsToReturn) { if (results[fullpath]) { numMatches -= results[fullpath].matches.length; delete results[fullpath]; } if (foundMaximum || !resultInfo || !resultInfo.matches || !resultInfo.matches.length) { return; } // Make sur...
[ "function", "setResults", "(", "fullpath", ",", "resultInfo", ",", "maxResultsToReturn", ")", "{", "if", "(", "results", "[", "fullpath", "]", ")", "{", "numMatches", "-=", "results", "[", "fullpath", "]", ".", "matches", ".", "length", ";", "delete", "res...
Sets the list of matches for the given path, removing the previous match info, if any, and updating the total match count. Note that for the count to remain accurate, the previous match info must not have been mutated since it was set. @param {string} fullpath Full path to the file containing the matches. @param {!{mat...
[ "Sets", "the", "list", "of", "matches", "for", "the", "given", "path", "removing", "the", "previous", "match", "info", "if", "any", "and", "updating", "the", "total", "match", "count", ".", "Note", "that", "for", "the", "count", "to", "remain", "accurate",...
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/search/node/FindInFilesDomain.js#L237-L258
train
Sets the results for a given path to the given resultInfo object.
[ 30522, 3853, 2275, 6072, 11314, 2015, 1006, 2440, 15069, 1010, 2765, 2378, 14876, 1010, 4098, 6072, 11314, 23809, 3388, 14287, 1007, 1063, 2065, 1006, 3463, 1031, 2440, 15069, 1033, 1007, 1063, 16371, 14760, 10649, 2229, 1011, 1027, 3463, 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/model/odata/AnnotationHelper.js
function (aParts, fnRootFormatter) { var bMergeNeeded = false, vPropertySetting; aParts = aParts.slice(); // shallow copy to avoid changes visible to caller aParts.forEach(function (vPart, i) { switch (typeof vPart) { case "boolean": case "number": case "undefined": bMergeNee...
javascript
function (aParts, fnRootFormatter) { var bMergeNeeded = false, vPropertySetting; aParts = aParts.slice(); // shallow copy to avoid changes visible to caller aParts.forEach(function (vPart, i) { switch (typeof vPart) { case "boolean": case "number": case "undefined": bMergeNee...
[ "function", "(", "aParts", ",", "fnRootFormatter", ")", "{", "var", "bMergeNeeded", "=", "false", ",", "vPropertySetting", ";", "aParts", "=", "aParts", ".", "slice", "(", ")", ";", "// shallow copy to avoid changes visible to caller", "aParts", ".", "forEach", "(...
Creates a property setting (which is either a constant value or a binding info object) from the given parts and from the optional root formatter function. Each part can have one of the following types: <ul> <li><code>boolean</code>, <code>number</code>, <code>undefined</code>: The part is a constant value. <li><code>s...
[ "Creates", "a", "property", "setting", "(", "which", "is", "either", "a", "constant", "value", "or", "a", "binding", "info", "object", ")", "from", "the", "given", "parts", "and", "from", "the", "optional", "root", "formatter", "function", ".", "Each", "pa...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/AnnotationHelper.js#L128-L193
train
This function is called by the parser to parse a list of parts
[ 30522, 3853, 1006, 4237, 2015, 1010, 1042, 16118, 17206, 14192, 20097, 1007, 1063, 13075, 1038, 5017, 6914, 13089, 2098, 1027, 6270, 1010, 21210, 18981, 15010, 21678, 2075, 1025, 4237, 2015, 1027, 4237, 2015, 1012, 14704, 1006, 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...
jgraph/mxgraph
javascript/mxClient.js
function(fn, lan) { var pending = mxClient.defaultBundles.length; function callback() { if (--pending == 0) { fn(); } } for (var i = 0; i < mxClient.defaultBundles.length; i++) { mxResources.add(mxClient.defaultBundles[i], lan, callback); } }
javascript
function(fn, lan) { var pending = mxClient.defaultBundles.length; function callback() { if (--pending == 0) { fn(); } } for (var i = 0; i < mxClient.defaultBundles.length; i++) { mxResources.add(mxClient.defaultBundles[i], lan, callback); } }
[ "function", "(", "fn", ",", "lan", ")", "{", "var", "pending", "=", "mxClient", ".", "defaultBundles", ".", "length", ";", "function", "callback", "(", ")", "{", "if", "(", "--", "pending", "==", "0", ")", "{", "fn", "(", ")", ";", "}", "}", "for...
Function: loadResources Helper method to load the default bundles if mxLoadResources is false. Parameters: fn - Function to call after all resources have been loaded. lan - Optional string to pass to <mxResources.add>.
[ "Function", ":", "loadResources" ]
33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44
https://github.com/jgraph/mxgraph/blob/33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44/javascript/mxClient.js#L310-L326
train
This function is called when the default bundles are added to the pool
[ 30522, 3853, 1006, 1042, 2078, 1010, 17595, 1007, 1063, 13075, 14223, 1027, 25630, 20464, 11638, 1012, 12398, 27265, 4244, 1012, 3091, 1025, 3853, 2655, 5963, 1006, 1007, 1063, 2065, 1006, 1011, 1011, 14223, 1027, 1027, 1014, 1007, 1063, 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...
SeleniumHQ/selenium-ide
packages/side-recorder/src/content/record-handlers.js
findClickableElement
function findClickableElement(e) { if (!e.tagName) return null let tagName = e.tagName.toLowerCase() let type = e.type if ( e.hasAttribute('onclick') || e.hasAttribute('href') || tagName == 'button' || (tagName == 'input' && (type == 'submit' || type == 'button' || type == ...
javascript
function findClickableElement(e) { if (!e.tagName) return null let tagName = e.tagName.toLowerCase() let type = e.type if ( e.hasAttribute('onclick') || e.hasAttribute('href') || tagName == 'button' || (tagName == 'input' && (type == 'submit' || type == 'button' || type == ...
[ "function", "findClickableElement", "(", "e", ")", "{", "if", "(", "!", "e", ".", "tagName", ")", "return", "null", "let", "tagName", "=", "e", ".", "tagName", ".", "toLowerCase", "(", ")", "let", "type", "=", "e", ".", "type", "if", "(", "e", ".",...
END
[ "END" ]
2b7852d2bb0d19cf285bae30e7dce2d250bc54ae
https://github.com/SeleniumHQ/selenium-ide/blob/2b7852d2bb0d19cf285bae30e7dce2d250bc54ae/packages/side-recorder/src/content/record-handlers.js#L670-L694
train
Find Clickable Element
[ 30522, 3853, 2424, 20464, 6799, 3085, 12260, 3672, 1006, 1041, 1007, 1063, 2065, 1006, 999, 1041, 1012, 6415, 18442, 1007, 2709, 19701, 2292, 6415, 18442, 1027, 1041, 1012, 6415, 18442, 1012, 2000, 27663, 18992, 3366, 1006, 1007, 2292, 2828...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/ODataMetaModel.js
log
function log(iLevel) { var sLocation; if (Log.isLoggable(iLevel, sODataMetaModel)) { sLocation = Array.isArray(vLocation) ? vLocation.join("/") : vLocation; Log[iLevel === DEBUG ? "debug" : "warning"]( Array.prototype.slice.call(arguments, 1).join("") + (sLocation ? " at /" +...
javascript
function log(iLevel) { var sLocation; if (Log.isLoggable(iLevel, sODataMetaModel)) { sLocation = Array.isArray(vLocation) ? vLocation.join("/") : vLocation; Log[iLevel === DEBUG ? "debug" : "warning"]( Array.prototype.slice.call(arguments, 1).join("") + (sLocation ? " at /" +...
[ "function", "log", "(", "iLevel", ")", "{", "var", "sLocation", ";", "if", "(", "Log", ".", "isLoggable", "(", "iLevel", ",", "sODataMetaModel", ")", ")", "{", "sLocation", "=", "Array", ".", "isArray", "(", "vLocation", ")", "?", "vLocation", ".", "jo...
/* Outputs a log message for the given level. Leads to an <code>undefined</code> result in case of a WARNING. @param {sap.base.Log.Level} iLevel A log level, either DEBUG or WARNING @param {...string} aTexts The main text of the message is constructed from the rest of the arguments by joining them @returns {boolean} <...
[ "/", "*", "Outputs", "a", "log", "message", "for", "the", "given", "level", ".", "Leads", "to", "an", "<code", ">", "undefined<", "/", "code", ">", "result", "in", "case", "of", "a", "WARNING", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/ODataMetaModel.js#L1140-L1156
train
Log the given arguments
[ 30522, 3853, 8833, 1006, 17869, 15985, 1007, 1063, 13075, 22889, 23909, 1025, 2065, 1006, 8833, 1012, 2003, 21197, 3654, 3468, 1006, 17869, 15985, 1010, 14904, 15464, 12928, 5302, 9247, 1007, 1007, 1063, 22889, 23909, 1027, 9140, 1012, 18061,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-call.js
isCallOrNonVariadicApply
function isCallOrNonVariadicApply(node) { return ( node.callee.type === "MemberExpression" && node.callee.property.type === "Identifier" && node.callee.computed === false && ( (node.callee.property.name === "call" && node.arguments.length >= 1) || (node.callee...
javascript
function isCallOrNonVariadicApply(node) { return ( node.callee.type === "MemberExpression" && node.callee.property.type === "Identifier" && node.callee.computed === false && ( (node.callee.property.name === "call" && node.arguments.length >= 1) || (node.callee...
[ "function", "isCallOrNonVariadicApply", "(", "node", ")", "{", "return", "(", "node", ".", "callee", ".", "type", "===", "\"MemberExpression\"", "&&", "node", ".", "callee", ".", "property", ".", "type", "===", "\"Identifier\"", "&&", "node", ".", "callee", ...
------------------------------------------------------------------------------ Helpers ------------------------------------------------------------------------------ Checks whether or not a node is a `.call()`/`.apply()`. @param {ASTNode} node - A CallExpression node to check. @returns {boolean} Whether or not the nod...
[ "------------------------------------------------------------------------------", "Helpers", "------------------------------------------------------------------------------", "Checks", "whether", "or", "not", "a", "node", "is", "a", ".", "call", "()", "/", ".", "apply", "()", "."...
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/no-useless-call.js#L19-L29
train
Returns true if the node is a call or non - variadic apply
[ 30522, 3853, 2003, 9289, 10626, 8540, 10755, 28665, 5555, 9397, 2135, 1006, 13045, 1007, 1063, 2709, 1006, 13045, 1012, 2655, 4402, 1012, 2828, 1027, 1027, 1027, 1000, 2266, 10288, 20110, 3258, 1000, 1004, 1004, 13045, 1012, 2655, 4402, 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/util/reflection/BaseTreeModifier.js
function(oNode) { var aChildren = []; var aNodes = oNode.childNodes; for (var i = 0, n = aNodes.length; i < n; i++) { if (aNodes[i].nodeType === 1) { aChildren.push(aNodes[i]); } } return aChildren; }
javascript
function(oNode) { var aChildren = []; var aNodes = oNode.childNodes; for (var i = 0, n = aNodes.length; i < n; i++) { if (aNodes[i].nodeType === 1) { aChildren.push(aNodes[i]); } } return aChildren; }
[ "function", "(", "oNode", ")", "{", "var", "aChildren", "=", "[", "]", ";", "var", "aNodes", "=", "oNode", ".", "childNodes", ";", "for", "(", "var", "i", "=", "0", ",", "n", "=", "aNodes", ".", "length", ";", "i", "<", "n", ";", "i", "++", "...
Gets all the children of an XML Node that are element nodes. @param {Element} oNode - XML node @returns {Element[]} Array with the children of the node
[ "Gets", "all", "the", "children", "of", "an", "XML", "Node", "that", "are", "element", "nodes", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/reflection/BaseTreeModifier.js#L248-L257
train
Returns an array of the children of the given node
[ 30522, 3853, 1006, 21058, 3207, 1007, 1063, 13075, 9353, 19466, 16200, 2078, 1027, 1031, 1033, 1025, 13075, 2019, 19847, 1027, 21058, 3207, 1012, 2775, 3630, 6155, 1025, 2005, 1006, 13075, 1045, 1027, 1014, 1010, 1050, 1027, 2019, 19847, 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...
apache/incubator-echarts
src/component/marker/MarkLineView.js
function (markLineModel, ecModel, api) { ecModel.eachSeries(function (seriesModel) { var mlModel = seriesModel.markLineModel; if (mlModel) { var mlData = mlModel.getData(); var fromData = mlModel.__from; var toData = mlModel.__to; ...
javascript
function (markLineModel, ecModel, api) { ecModel.eachSeries(function (seriesModel) { var mlModel = seriesModel.markLineModel; if (mlModel) { var mlData = mlModel.getData(); var fromData = mlModel.__from; var toData = mlModel.__to; ...
[ "function", "(", "markLineModel", ",", "ecModel", ",", "api", ")", "{", "ecModel", ".", "eachSeries", "(", "function", "(", "seriesModel", ")", "{", "var", "mlModel", "=", "seriesModel", ".", "markLineModel", ";", "if", "(", "mlModel", ")", "{", "var", "...
} }, this); },
[ "}", "}", "this", ")", ";", "}" ]
4d0ea095dc3929cb6de40c45748826e7999c7aa8
https://github.com/apache/incubator-echarts/blob/4d0ea095dc3929cb6de40c45748826e7999c7aa8/src/component/marker/MarkLineView.js#L225-L249
train
Update marker layout of markLineModel
[ 30522, 3853, 1006, 2928, 4179, 5302, 9247, 1010, 14925, 5302, 9247, 1010, 17928, 1007, 1063, 14925, 5302, 9247, 1012, 2169, 8043, 3111, 1006, 3853, 1006, 2186, 5302, 9247, 1007, 1063, 13075, 19875, 5302, 9247, 1027, 2186, 5302, 9247, 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...
mescroll/mescroll
mescroll.js/dist/mescroll.js
function (mescroll, downwarp) { // 下拉刷新初始化完毕的回调 mescroll.downTipDom = downwarp.getElementsByClassName('downwarp-tip')[0]; mescroll.downProgressDom = downwarp.getElementsByClassName('downwarp-progress')[0]; }
javascript
function (mescroll, downwarp) { // 下拉刷新初始化完毕的回调 mescroll.downTipDom = downwarp.getElementsByClassName('downwarp-tip')[0]; mescroll.downProgressDom = downwarp.getElementsByClassName('downwarp-progress')[0]; }
[ "function", "(", "mescroll", ",", "downwarp", ")", "{", "// 下拉刷新初始化完毕的回调", "mescroll", ".", "downTipDom", "=", "downwarp", ".", "getElementsByClassName", "(", "'downwarp-tip'", ")", "[", "0", "]", ";", "mescroll", ".", "downProgressDom", "=", "downwarp", ".", ...
布局内容
[ "布局内容" ]
43d3dcf3062da0fe95995ddcb5e93f5725792c98
https://github.com/mescroll/mescroll/blob/43d3dcf3062da0fe95995ddcb5e93f5725792c98/mescroll.js/dist/mescroll.js#L85-L89
train
init downwarp
[ 30522, 3853, 1006, 2033, 11020, 28402, 1010, 2091, 9028, 2361, 1007, 1063, 1013, 1013, 1743, 100, 100, 1862, 100, 100, 100, 100, 100, 1916, 100, 100, 2033, 11020, 28402, 1012, 2091, 25101, 9527, 1027, 2091, 9028, 2361, 1012, 2131, 12260, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fengyuanchen/cropper
dist/cropper.common.js
setCropBoxData
function setCropBoxData(data) { var cropBoxData = this.cropBoxData; var aspectRatio = this.options.aspectRatio; var widthChanged = void 0; var heightChanged = void 0; if (this.ready && this.cropped && !this.disabled && isPlainObject(data)) { if (isNumber(data.left)) { cropBoxData.lef...
javascript
function setCropBoxData(data) { var cropBoxData = this.cropBoxData; var aspectRatio = this.options.aspectRatio; var widthChanged = void 0; var heightChanged = void 0; if (this.ready && this.cropped && !this.disabled && isPlainObject(data)) { if (isNumber(data.left)) { cropBoxData.lef...
[ "function", "setCropBoxData", "(", "data", ")", "{", "var", "cropBoxData", "=", "this", ".", "cropBoxData", ";", "var", "aspectRatio", "=", "this", ".", "options", ".", "aspectRatio", ";", "var", "widthChanged", "=", "void", "0", ";", "var", "heightChanged",...
Set the crop box position and size with new data. @param {Object} data - The new crop box data. @returns {Cropper} this
[ "Set", "the", "crop", "box", "position", "and", "size", "with", "new", "data", "." ]
6677332a6a375b647f58808dfc24ea09f5804041
https://github.com/fengyuanchen/cropper/blob/6677332a6a375b647f58808dfc24ea09f5804041/dist/cropper.common.js#L3011-L3049
train
set crop box data
[ 30522, 3853, 2275, 26775, 7361, 8758, 2850, 2696, 1006, 2951, 1007, 1063, 13075, 10416, 8758, 2850, 2696, 1027, 2023, 1012, 10416, 8758, 2850, 2696, 1025, 13075, 7814, 8609, 3695, 1027, 2023, 1012, 7047, 1012, 7814, 8609, 3695, 1025, 13075,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SheetJS/js-xlsx
xlsx.js
ws_get_cell_stub
function ws_get_cell_stub(ws, R, C) { /* A1 cell address */ if(typeof R == "string") return ws[R] || (ws[R] = {t:'z'}); /* cell address object */ if(typeof R != "number") return ws_get_cell_stub(ws, encode_cell(R)); /* R and C are 0-based indices */ return ws_get_cell_stub(ws, encode_cell({r:R,c:C||0})); }
javascript
function ws_get_cell_stub(ws, R, C) { /* A1 cell address */ if(typeof R == "string") return ws[R] || (ws[R] = {t:'z'}); /* cell address object */ if(typeof R != "number") return ws_get_cell_stub(ws, encode_cell(R)); /* R and C are 0-based indices */ return ws_get_cell_stub(ws, encode_cell({r:R,c:C||0})); }
[ "function", "ws_get_cell_stub", "(", "ws", ",", "R", ",", "C", ")", "{", "/* A1 cell address */", "if", "(", "typeof", "R", "==", "\"string\"", ")", "return", "ws", "[", "R", "]", "||", "(", "ws", "[", "R", "]", "=", "{", "t", ":", "'z'", "}", ")...
/* get cell, creating a stub if necessary
[ "/", "*", "get", "cell", "creating", "a", "stub", "if", "necessary" ]
9a6d8a1d3d80c78dad5201fb389316f935279cdc
https://github.com/SheetJS/js-xlsx/blob/9a6d8a1d3d80c78dad5201fb389316f935279cdc/xlsx.js#L20765-L20772
train
Returns a cell stub
[ 30522, 3853, 1059, 2015, 1035, 2131, 1035, 3526, 1035, 24646, 2497, 1006, 1059, 2015, 1010, 1054, 1010, 1039, 1007, 1063, 1013, 1008, 17350, 3526, 4769, 1008, 1013, 2065, 1006, 2828, 11253, 1054, 1027, 1027, 1000, 5164, 1000, 1007, 2709, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
eslint/eslint
lib/rules/semi.js
isEndOfArrowBlock
function isEndOfArrowBlock(lastToken) { if (!astUtils.isClosingBraceToken(lastToken)) { return false; } const node = sourceCode.getNodeByRangeIndex(lastToken.range[0]); return ( node.type === "BlockStatement" && node.parent...
javascript
function isEndOfArrowBlock(lastToken) { if (!astUtils.isClosingBraceToken(lastToken)) { return false; } const node = sourceCode.getNodeByRangeIndex(lastToken.range[0]); return ( node.type === "BlockStatement" && node.parent...
[ "function", "isEndOfArrowBlock", "(", "lastToken", ")", "{", "if", "(", "!", "astUtils", ".", "isClosingBraceToken", "(", "lastToken", ")", ")", "{", "return", "false", ";", "}", "const", "node", "=", "sourceCode", ".", "getNodeByRangeIndex", "(", "lastToken",...
Check whether a given token is the closing brace of an arrow function. @param {Token} lastToken A token to check. @returns {boolean} `true` if the token is the closing brace of an arrow function.
[ "Check", "whether", "a", "given", "token", "is", "the", "closing", "brace", "of", "an", "arrow", "function", "." ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/semi.js#L149-L159
train
Check if the last token is a closing brace
[ 30522, 3853, 2003, 10497, 11253, 2906, 10524, 23467, 1006, 2197, 18715, 2368, 1007, 1063, 2065, 1006, 999, 2004, 8525, 3775, 4877, 1012, 2003, 20464, 18606, 10024, 3401, 18715, 2368, 1006, 2197, 18715, 2368, 1007, 1007, 1063, 2709, 6270, 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...
adobe/brackets
src/extensions/default/QuickOpenCSS/main.js
createSelectorList
function createSelectorList() { var doc = DocumentManager.getCurrentDocument(); if (!doc) { return; } var docText = doc.getText(); return CSSUtils.extractAllSelectors(docText, doc.getLanguage().getMode()); }
javascript
function createSelectorList() { var doc = DocumentManager.getCurrentDocument(); if (!doc) { return; } var docText = doc.getText(); return CSSUtils.extractAllSelectors(docText, doc.getLanguage().getMode()); }
[ "function", "createSelectorList", "(", ")", "{", "var", "doc", "=", "DocumentManager", ".", "getCurrentDocument", "(", ")", ";", "if", "(", "!", "doc", ")", "{", "return", ";", "}", "var", "docText", "=", "doc", ".", "getText", "(", ")", ";", "return",...
Returns a list of information about selectors for a single document. This array is populated by createSelectorList() @return {?Array.<FileLocation>}
[ "Returns", "a", "list", "of", "information", "about", "selectors", "for", "a", "single", "document", ".", "This", "array", "is", "populated", "by", "createSelectorList", "()" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/extensions/default/QuickOpenCSS/main.js#L40-L48
train
Creates a list of selector objects
[ 30522, 3853, 9005, 12260, 16761, 9863, 1006, 1007, 1063, 13075, 9986, 1027, 6254, 24805, 4590, 1012, 2131, 10841, 14343, 3372, 3527, 24894, 4765, 1006, 1007, 1025, 2065, 1006, 999, 9986, 1007, 1063, 2709, 1025, 1065, 13075, 9986, 18209, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
angular/material
src/components/progressLinear/progress-linear.js
MdProgressLinearDirective
function MdProgressLinearDirective($mdTheming, $mdUtil, $log) { var MODE_DETERMINATE = "determinate"; var MODE_INDETERMINATE = "indeterminate"; var MODE_BUFFER = "buffer"; var MODE_QUERY = "query"; var DISABLED_CLASS = "_md-progress-linear-disabled"; return { restrict: 'E', template: '<div class="m...
javascript
function MdProgressLinearDirective($mdTheming, $mdUtil, $log) { var MODE_DETERMINATE = "determinate"; var MODE_INDETERMINATE = "indeterminate"; var MODE_BUFFER = "buffer"; var MODE_QUERY = "query"; var DISABLED_CLASS = "_md-progress-linear-disabled"; return { restrict: 'E', template: '<div class="m...
[ "function", "MdProgressLinearDirective", "(", "$mdTheming", ",", "$mdUtil", ",", "$log", ")", "{", "var", "MODE_DETERMINATE", "=", "\"determinate\"", ";", "var", "MODE_INDETERMINATE", "=", "\"indeterminate\"", ";", "var", "MODE_BUFFER", "=", "\"buffer\"", ";", "var"...
@ngdoc directive @name mdProgressLinear @module material.components.progressLinear @restrict E @description The linear progress directive is used to make loading content in your app as delightful and painless as possible by minimizing the amount of visual change a user sees before they can view and interact with conte...
[ "@ngdoc", "directive", "@name", "mdProgressLinear", "@module", "material", ".", "components", ".", "progressLinear", "@restrict", "E" ]
84ac558674e73958be84312444c48d9f823f6684
https://github.com/angular/material/blob/84ac558674e73958be84312444c48d9f823f6684/src/components/progressLinear/progress-linear.js#L60-L198
train
A directive that displays a progress linear indicator.
[ 30522, 3853, 9108, 21572, 17603, 4757, 4179, 4232, 7442, 15277, 1006, 1002, 9108, 10760, 6562, 1010, 1002, 9108, 21823, 2140, 1010, 1002, 8833, 1007, 1063, 13075, 5549, 1035, 28283, 19269, 1027, 1000, 28283, 19269, 1000, 1025, 13075, 5549, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/LiveDevelopmentUtils.js
isStaticHtmlFileExt
function isStaticHtmlFileExt(filePath) { if (!filePath) { return false; } return (_staticHtmlFileExts.indexOf(LanguageManager.getLanguageForPath(filePath).getId()) !== -1); }
javascript
function isStaticHtmlFileExt(filePath) { if (!filePath) { return false; } return (_staticHtmlFileExts.indexOf(LanguageManager.getLanguageForPath(filePath).getId()) !== -1); }
[ "function", "isStaticHtmlFileExt", "(", "filePath", ")", "{", "if", "(", "!", "filePath", ")", "{", "return", "false", ";", "}", "return", "(", "_staticHtmlFileExts", ".", "indexOf", "(", "LanguageManager", ".", "getLanguageForPath", "(", "filePath", ")", ".",...
Determine if file extension is a static html file extension. @param {string} filePath could be a path, a file name or just a file extension @return {boolean} Returns true if fileExt is in the list
[ "Determine", "if", "file", "extension", "is", "a", "static", "html", "file", "extension", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/LiveDevelopment/LiveDevelopmentUtils.js#L45-L51
train
Check if a file is static
[ 30522, 3853, 26354, 29336, 7033, 21246, 10270, 9463, 10288, 2102, 1006, 5371, 15069, 1007, 1063, 2065, 1006, 999, 5371, 15069, 1007, 1063, 2709, 6270, 1025, 1065, 2709, 1006, 1035, 10763, 11039, 19968, 8873, 10559, 30524, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/array-element-newline.js
reportNoLineBreak
function reportNoLineBreak(token) { const tokenBefore = sourceCode.getTokenBefore(token, { includeComments: true }); context.report({ loc: { start: tokenBefore.loc.end, end: token.loc.start }, messageId: "un...
javascript
function reportNoLineBreak(token) { const tokenBefore = sourceCode.getTokenBefore(token, { includeComments: true }); context.report({ loc: { start: tokenBefore.loc.end, end: token.loc.start }, messageId: "un...
[ "function", "reportNoLineBreak", "(", "token", ")", "{", "const", "tokenBefore", "=", "sourceCode", ".", "getTokenBefore", "(", "token", ",", "{", "includeComments", ":", "true", "}", ")", ";", "context", ".", "report", "(", "{", "loc", ":", "{", "start", ...
Reports that there shouldn't be a line break after the first token @param {Token} token - The token to use for the report. @returns {void}
[ "Reports", "that", "there", "shouldn", "t", "be", "a", "line", "break", "after", "the", "first", "token" ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/array-element-newline.js#L108-L150
train
Reports an unexpected line break.
[ 30522, 3853, 3189, 3630, 4179, 23890, 1006, 19204, 1007, 1063, 9530, 3367, 19204, 4783, 29278, 2063, 1027, 3120, 16044, 1012, 2131, 18715, 2368, 4783, 29278, 2063, 1006, 19204, 1010, 1063, 2421, 9006, 8163, 1024, 2995, 1065, 1007, 1025, 612...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-mixed-spaces-and-tabs.js
afterLoc
function afterLoc(loc, line, column) { if (line > loc.end.line) { return true; } return line === loc.end.line && column > loc.end.column; }
javascript
function afterLoc(loc, line, column) { if (line > loc.end.line) { return true; } return line === loc.end.line && column > loc.end.column; }
[ "function", "afterLoc", "(", "loc", ",", "line", ",", "column", ")", "{", "if", "(", "line", ">", "loc", ".", "end", ".", "line", ")", "{", "return", "true", ";", "}", "return", "line", "===", "loc", ".", "end", ".", "line", "&&", "column", ">", ...
Determines if a given line and column are after a location. @param {Location} loc The location object from an AST node. @param {int} line The line to check. @param {int} column The column to check. @returns {boolean} True if the line and column are after the location, false if not. @private
[ "Determines", "if", "a", "given", "line", "and", "column", "are", "after", "a", "location", "." ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/no-mixed-spaces-and-tabs.js#L67-L72
train
returns true if loc is after end
[ 30522, 3853, 2044, 4135, 2278, 1006, 8840, 2278, 1010, 2240, 1010, 5930, 1007, 1063, 2065, 1006, 2240, 1028, 8840, 2278, 1012, 2203, 1012, 2240, 1007, 1063, 2709, 2995, 1025, 1065, 2709, 2240, 1027, 1027, 1027, 8840, 2278, 1012, 2203, 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...
apache/incubator-echarts
src/component/visualMap/visualEncoding.js
getColorVisual
function getColorVisual(seriesModel, visualMapModel, value, valueState) { var mappings = visualMapModel.targetVisuals[valueState]; var visualTypes = VisualMapping.prepareVisualTypes(mappings); var resultVisual = { color: seriesModel.getData().getVisual('color') // default color. }; for (var...
javascript
function getColorVisual(seriesModel, visualMapModel, value, valueState) { var mappings = visualMapModel.targetVisuals[valueState]; var visualTypes = VisualMapping.prepareVisualTypes(mappings); var resultVisual = { color: seriesModel.getData().getVisual('color') // default color. }; for (var...
[ "function", "getColorVisual", "(", "seriesModel", ",", "visualMapModel", ",", "value", ",", "valueState", ")", "{", "var", "mappings", "=", "visualMapModel", ".", "targetVisuals", "[", "valueState", "]", ";", "var", "visualTypes", "=", "VisualMapping", ".", "pre...
FIXME performance and export for heatmap? value can be Infinity or -Infinity
[ "FIXME", "performance", "and", "export", "for", "heatmap?", "value", "can", "be", "Infinity", "or", "-", "Infinity" ]
4d0ea095dc3929cb6de40c45748826e7999c7aa8
https://github.com/apache/incubator-echarts/blob/4d0ea095dc3929cb6de40c45748826e7999c7aa8/src/component/visualMap/visualEncoding.js#L82-L106
train
Get color visual for a given value
[ 30522, 3853, 2131, 18717, 11365, 8787, 1006, 2186, 5302, 9247, 1010, 5107, 2863, 9737, 10244, 2140, 1010, 3643, 1010, 5300, 12259, 1007, 1063, 13075, 12375, 2015, 1027, 5107, 2863, 9737, 10244, 2140, 1012, 4539, 11365, 8787, 2015, 1031, 530...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
renderStatic
function renderStatic ( index, isInFor ) { var tree = this._staticTrees[index]; // if has already-rendered static tree and not inside v-for, // we can reuse the same tree by doing a shallow clone. if (tree && !isInFor) { return Array.isArray(tree) ? cloneVNodes(tree) : cloneVNode(tree) } ...
javascript
function renderStatic ( index, isInFor ) { var tree = this._staticTrees[index]; // if has already-rendered static tree and not inside v-for, // we can reuse the same tree by doing a shallow clone. if (tree && !isInFor) { return Array.isArray(tree) ? cloneVNodes(tree) : cloneVNode(tree) } ...
[ "function", "renderStatic", "(", "index", ",", "isInFor", ")", "{", "var", "tree", "=", "this", ".", "_staticTrees", "[", "index", "]", ";", "// if has already-rendered static tree and not inside v-for,", "// we can reuse the same tree by doing a shallow clone.", "if", "(",...
/* Runtime helper for rendering static trees.
[ "/", "*", "Runtime", "helper", "for", "rendering", "static", "trees", "." ]
a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e
https://github.com/GeekyAnts/vue-native-core/blob/a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e/packages/weex-vue-framework/factory.js#L3459-L3476
train
render static tree
[ 30522, 3853, 17552, 16677, 1006, 5950, 1010, 2003, 2378, 29278, 1007, 1063, 13075, 3392, 1027, 2023, 1012, 1035, 10763, 13334, 2015, 1031, 5950, 1033, 1025, 1013, 1013, 2065, 2038, 2525, 1011, 10155, 10763, 3392, 1998, 2025, 2503, 1058, 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...
badges/shields
services/nuget/nuget-v3-service-family.js
apiUrl
function apiUrl({ withTenant, apiBaseUrl, apiDomain, tenant, withFeed, feed }) { let result = withTenant ? `https://${tenant || 'www'}.${apiDomain}` : apiBaseUrl if (withFeed) { result += `/F/${feed}/api/v3` } return result }
javascript
function apiUrl({ withTenant, apiBaseUrl, apiDomain, tenant, withFeed, feed }) { let result = withTenant ? `https://${tenant || 'www'}.${apiDomain}` : apiBaseUrl if (withFeed) { result += `/F/${feed}/api/v3` } return result }
[ "function", "apiUrl", "(", "{", "withTenant", ",", "apiBaseUrl", ",", "apiDomain", ",", "tenant", ",", "withFeed", ",", "feed", "}", ")", "{", "let", "result", "=", "withTenant", "?", "`", "${", "tenant", "||", "'www'", "}", "${", "apiDomain", "}", "`"...
/* Construct the URL for an individual request. `apiBaseUrl`, `apiDomain`, `withTenant` and `withFeed` come from the service configuration. When `withTenant` and `withFeed` are false, return `apiBaseUrl` for every request. When `withTenant` and/or `withFeed` are true, `tenant` and `feed` come from the request, and th...
[ "/", "*", "Construct", "the", "URL", "for", "an", "individual", "request", "." ]
283601423f3d1a19aae83bf62032d40683948636
https://github.com/badges/shields/blob/283601423f3d1a19aae83bf62032d40683948636/services/nuget/nuget-v3-service-family.js#L39-L47
train
Returns the url to the API
[ 30522, 3853, 17928, 3126, 2140, 1006, 1063, 2007, 6528, 4630, 1010, 17928, 15058, 3126, 2140, 1010, 17928, 9527, 8113, 1010, 16713, 1010, 2007, 7959, 2098, 1010, 5438, 1065, 1007, 1063, 2292, 2765, 1027, 2007, 6528, 4630, 1029, 1036, 16770,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/FindUtils.js
labelForScope
function labelForScope(scope) { if (scope) { return StringUtils.format( Strings.FIND_IN_FILES_SCOPED, StringUtils.breakableUrl( ProjectManager.makeProjectRelativeIfPossible(scope.fullPath) ) ); } else { ...
javascript
function labelForScope(scope) { if (scope) { return StringUtils.format( Strings.FIND_IN_FILES_SCOPED, StringUtils.breakableUrl( ProjectManager.makeProjectRelativeIfPossible(scope.fullPath) ) ); } else { ...
[ "function", "labelForScope", "(", "scope", ")", "{", "if", "(", "scope", ")", "{", "return", "StringUtils", ".", "format", "(", "Strings", ".", "FIND_IN_FILES_SCOPED", ",", "StringUtils", ".", "breakableUrl", "(", "ProjectManager", ".", "makeProjectRelativeIfPossi...
Returns label text to indicate the search scope. Already HTML-escaped. @param {?Entry} scope @return {string}
[ "Returns", "label", "text", "to", "indicate", "the", "search", "scope", ".", "Already", "HTML", "-", "escaped", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/search/FindUtils.js#L286-L297
train
Returns a label for the given scope
[ 30522, 3853, 3830, 29278, 26127, 1006, 9531, 1007, 1063, 2065, 1006, 9531, 1007, 1063, 2709, 5164, 21823, 4877, 1012, 4289, 1006, 7817, 1012, 2424, 1035, 1999, 1035, 6764, 1035, 9531, 2094, 1010, 5164, 21823, 4877, 1012, 3338, 3085, 3126, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/component/marker/MarkLineView.js
ifMarkLineHasOnlyDim
function ifMarkLineHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) { var otherDimIndex = 1 - dimIndex; var dimName = coordSys.dimensions[dimIndex]; return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]) && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(...
javascript
function ifMarkLineHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) { var otherDimIndex = 1 - dimIndex; var dimName = coordSys.dimensions[dimIndex]; return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]) && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(...
[ "function", "ifMarkLineHasOnlyDim", "(", "dimIndex", ",", "fromCoord", ",", "toCoord", ",", "coordSys", ")", "{", "var", "otherDimIndex", "=", "1", "-", "dimIndex", ";", "var", "dimName", "=", "coordSys", ".", "dimensions", "[", "dimIndex", "]", ";", "return...
If a markLine has one dim
[ "If", "a", "markLine", "has", "one", "dim" ]
4d0ea095dc3929cb6de40c45748826e7999c7aa8
https://github.com/apache/incubator-echarts/blob/4d0ea095dc3929cb6de40c45748826e7999c7aa8/src/component/marker/MarkLineView.js#L107-L112
train
Check if a mark line has only dimIndex
[ 30522, 3853, 2065, 10665, 4179, 14949, 2239, 2135, 22172, 1006, 11737, 22254, 10288, 1010, 2013, 3597, 8551, 1010, 2000, 3597, 8551, 1010, 2522, 8551, 6508, 2015, 1007, 1063, 13075, 2060, 22172, 22254, 10288, 1027, 1015, 1011, 11737, 22254, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
goldfire/howler.js
examples/radio/radio.js
function(index, state) { var self = this; // Highlight/un-highlight the row. window['station' + index].style.backgroundColor = state ? 'rgba(255, 255, 255, 0.33)' : ''; // Show/hide the "live" marker. window['live' + index].style.opacity = state ? 1 : 0; // Show/hide the "playing" animation. ...
javascript
function(index, state) { var self = this; // Highlight/un-highlight the row. window['station' + index].style.backgroundColor = state ? 'rgba(255, 255, 255, 0.33)' : ''; // Show/hide the "live" marker. window['live' + index].style.opacity = state ? 1 : 0; // Show/hide the "playing" animation. ...
[ "function", "(", "index", ",", "state", ")", "{", "var", "self", "=", "this", ";", "// Highlight/un-highlight the row.", "window", "[", "'station'", "+", "index", "]", ".", "style", ".", "backgroundColor", "=", "state", "?", "'rgba(255, 255, 255, 0.33)'", ":", ...
Toggle the display of a station to off/on. @param {Number} index Index of the station to toggle. @param {Boolean} state true is on and false is off.
[ "Toggle", "the", "display", "of", "a", "station", "to", "off", "/", "on", "." ]
030db918dd8ce640afd57e172418472497e8f113
https://github.com/goldfire/howler.js/blob/030db918dd8ce640afd57e172418472497e8f113/examples/radio/radio.js#L101-L112
train
Set the state of a row of the cluster
[ 30522, 3853, 1006, 5950, 1010, 2110, 1007, 1063, 13075, 2969, 1027, 2023, 1025, 1013, 1013, 12944, 1013, 4895, 1011, 12944, 1996, 5216, 1012, 3332, 1031, 1005, 2276, 1005, 1009, 5950, 1033, 1012, 2806, 1012, 4281, 18717, 1027, 2110, 1029, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
_toggleInlineWidget
function _toggleInlineWidget(providers, errorMsg) { var result = new $.Deferred(); var currentEditor = getCurrentFullEditor(); if (currentEditor) { var inlineWidget = currentEditor.getFocusedInlineWidget(); if (inlineWidget) { // an inline widget's edit...
javascript
function _toggleInlineWidget(providers, errorMsg) { var result = new $.Deferred(); var currentEditor = getCurrentFullEditor(); if (currentEditor) { var inlineWidget = currentEditor.getFocusedInlineWidget(); if (inlineWidget) { // an inline widget's edit...
[ "function", "_toggleInlineWidget", "(", "providers", ",", "errorMsg", ")", "{", "var", "result", "=", "new", "$", ".", "Deferred", "(", ")", ";", "var", "currentEditor", "=", "getCurrentFullEditor", "(", ")", ";", "if", "(", "currentEditor", ")", "{", "var...
Closes any focused inline widget. Else, asynchronously asks providers to create one. @param {Array.<{priority:number, provider:function(...)}>} providers prioritized list of providers @param {string=} errorMsg Default message to display if no providers return non-null @return {!Promise} A promise resolved with true if...
[ "Closes", "any", "focused", "inline", "widget", ".", "Else", "asynchronously", "asks", "providers", "to", "create", "one", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/editor/EditorManager.js#L282-L312
train
Toggle inline widget
[ 30522, 3853, 1035, 2000, 24679, 2378, 4179, 9148, 24291, 1006, 11670, 1010, 7561, 5244, 2290, 1007, 1063, 13075, 2765, 1027, 2047, 1002, 1012, 13366, 28849, 2094, 1006, 1007, 1025, 13075, 2783, 2098, 15660, 1027, 2131, 10841, 14343, 3372, 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...
postcss/autoprefixer
lib/hacks/grid-utils.js
warnMissedAreas
function warnMissedAreas (areas, decl, result) { let missed = Object.keys(areas) decl.root().walkDecls('grid-area', gridArea => { missed = missed.filter(e => e !== gridArea.value) }) if (missed.length > 0) { decl.warn(result, 'Can not find grid areas: ' + missed.join(', ')) } return undefined }
javascript
function warnMissedAreas (areas, decl, result) { let missed = Object.keys(areas) decl.root().walkDecls('grid-area', gridArea => { missed = missed.filter(e => e !== gridArea.value) }) if (missed.length > 0) { decl.warn(result, 'Can not find grid areas: ' + missed.join(', ')) } return undefined }
[ "function", "warnMissedAreas", "(", "areas", ",", "decl", ",", "result", ")", "{", "let", "missed", "=", "Object", ".", "keys", "(", "areas", ")", "decl", ".", "root", "(", ")", ".", "walkDecls", "(", "'grid-area'", ",", "gridArea", "=>", "{", "missed"...
Warn user if grid area identifiers are not found @param {Object} areas @param {Declaration} decl @param {Result} result @return {void}
[ "Warn", "user", "if", "grid", "area", "identifiers", "are", "not", "found" ]
24b28b6dbdc34a5e5800986e76f48cbaf9bbbc32
https://github.com/postcss/autoprefixer/blob/24b28b6dbdc34a5e5800986e76f48cbaf9bbbc32/lib/hacks/grid-utils.js#L653-L665
train
Warn if any grid - areas are not present in the declaration
[ 30522, 3853, 11582, 15630, 6924, 12069, 3022, 1006, 2752, 1010, 11703, 2140, 1010, 2765, 1007, 1063, 2292, 4771, 1027, 4874, 1012, 6309, 1006, 2752, 1007, 11703, 2140, 1012, 7117, 1006, 1007, 1012, 3328, 3207, 20464, 2015, 1006, 1005, 8370,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/tabview.js
tabView_getElement
function tabView_getElement(aSpec) { var spec = aSpec || { }; var type = spec.type; var subtype = spec.subtype; var value = spec.value; var parent = spec.parent; var root = parent ? parent.getNode() : this._tabViewDoc; var nodeCollector = new domUtils.nodeCollector(root); switch(type) ...
javascript
function tabView_getElement(aSpec) { var spec = aSpec || { }; var type = spec.type; var subtype = spec.subtype; var value = spec.value; var parent = spec.parent; var root = parent ? parent.getNode() : this._tabViewDoc; var nodeCollector = new domUtils.nodeCollector(root); switch(type) ...
[ "function", "tabView_getElement", "(", "aSpec", ")", "{", "var", "spec", "=", "aSpec", "||", "{", "}", ";", "var", "type", "=", "spec", ".", "type", ";", "var", "subtype", "=", "spec", ".", "subtype", ";", "var", "value", "=", "spec", ".", "value", ...
Retrieve list of UI elements based on the given specification @param {object} aSpec Information of the UI elements which should be retrieved Elements: type - Identifier of the element subtype - Attribute of the element to filter [optional - default: ""] value - Value of the attribute to filter [optional - defa...
[ "Retrieve", "list", "of", "UI", "elements", "based", "on", "the", "given", "specification" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/tabview.js#L454-L582
train
Returns the element that contains the specified tabView element.
[ 30522, 3853, 21628, 8584, 1035, 2131, 12260, 3672, 1006, 2004, 5051, 2278, 1007, 1063, 13075, 28699, 1027, 2004, 5051, 2278, 1064, 1064, 1063, 1065, 1025, 13075, 2828, 1027, 28699, 1012, 2828, 1025, 13075, 4942, 13874, 1027, 28699, 1012, 49...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/protractor
lib/clientsidescripts.js
findRepeaterElement
function findRepeaterElement(repeater, exact, index, binding, using, rootSelector) { var matches = []; using = using || document; var rows = []; var prefixes = ['ng-', 'ng_', 'data-ng-', 'x-ng-', 'ng\\:']; for (var p = 0; p < prefixes.length; ++p) { var attr = prefixes[p] + 'repeat'; var repeatElems ...
javascript
function findRepeaterElement(repeater, exact, index, binding, using, rootSelector) { var matches = []; using = using || document; var rows = []; var prefixes = ['ng-', 'ng_', 'data-ng-', 'x-ng-', 'ng\\:']; for (var p = 0; p < prefixes.length; ++p) { var attr = prefixes[p] + 'repeat'; var repeatElems ...
[ "function", "findRepeaterElement", "(", "repeater", ",", "exact", ",", "index", ",", "binding", ",", "using", ",", "rootSelector", ")", "{", "var", "matches", "=", "[", "]", ";", "using", "=", "using", "||", "document", ";", "var", "rows", "=", "[", "]...
Find an element within an ng-repeat by its row and column. @param {string} repeater The text of the repeater, e.g. 'cat in cats'. @param {boolean} exact Whether the repeater needs to be matched exactly @param {number} index The row index. @param {string} binding The column binding, e.g. '{{cat.name}}'. @param {Element...
[ "Find", "an", "element", "within", "an", "ng", "-", "repeat", "by", "its", "row", "and", "column", "." ]
4f74a4ec753c97adfe955fe468a39286a0a55837
https://github.com/angular/protractor/blob/4f74a4ec753c97adfe955fe468a39286a0a55837/lib/clientsidescripts.js#L383-L468
train
Finds an element that matches the specified repeater.
[ 30522, 3853, 2424, 2890, 5051, 24932, 12260, 3672, 1006, 9377, 2121, 1010, 6635, 1010, 5950, 1010, 8031, 1010, 2478, 1010, 6147, 12260, 16761, 1007, 1063, 13075, 3503, 1027, 1031, 1033, 1025, 2478, 1027, 2478, 1064, 1064, 6254, 1025, 13075,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/utils/ViewUtils.js
sidebarList
function sidebarList($scrollerElement, selectedClassName, leafClassName) { var $listElement = $scrollerElement.find("ul"), $selectionMarker, $selectionExtension, $sidebar = $("#sidebar"), showExtension = true; // build selectionMarker and position absolut...
javascript
function sidebarList($scrollerElement, selectedClassName, leafClassName) { var $listElement = $scrollerElement.find("ul"), $selectionMarker, $selectionExtension, $sidebar = $("#sidebar"), showExtension = true; // build selectionMarker and position absolut...
[ "function", "sidebarList", "(", "$scrollerElement", ",", "selectedClassName", ",", "leafClassName", ")", "{", "var", "$listElement", "=", "$scrollerElement", ".", "find", "(", "\"ul\"", ")", ",", "$selectionMarker", ",", "$selectionExtension", ",", "$sidebar", "=", ...
Within a scrolling DOMElement, creates and positions a styled selection div to align a single selected list item from a ul list element. Assumptions: - scrollerElement is a child of the #sidebar div - ul list element fires a "selectionChanged" event after the selectedClassName is assigned to a new list item @param {!...
[ "Within", "a", "scrolling", "DOMElement", "creates", "and", "positions", "a", "styled", "selection", "div", "to", "align", "a", "single", "selected", "list", "item", "from", "a", "ul", "list", "element", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/utils/ViewUtils.js#L186-L293
train
Creates sidebar list
[ 30522, 3853, 2217, 8237, 9863, 1006, 1002, 17186, 7869, 16930, 4765, 1010, 3479, 26266, 18442, 1010, 7053, 26266, 18442, 1007, 1063, 13075, 1002, 2862, 12260, 3672, 1027, 1002, 17186, 7869, 16930, 4765, 1012, 2424, 1006, 1000, 17359, 1000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
GitbookIO/gitbook
lib/api/encodeSummary.js
encodeSummary
function encodeSummary(output, summary) { var result = { /** Iterate over the summary, it stops when the "iter" returns false @param {Function} iter */ walk: function (iter) { summary.getArticle(function(article) { var jsonArticle = encode...
javascript
function encodeSummary(output, summary) { var result = { /** Iterate over the summary, it stops when the "iter" returns false @param {Function} iter */ walk: function (iter) { summary.getArticle(function(article) { var jsonArticle = encode...
[ "function", "encodeSummary", "(", "output", ",", "summary", ")", "{", "var", "result", "=", "{", "/**\n Iterate over the summary, it stops when the \"iter\" returns false\n\n @param {Function} iter\n */", "walk", ":", "function", "(", "iter", ")", "...
Encode summary to provide an API to plugin @param {Output} output @param {Config} config @return {Object}
[ "Encode", "summary", "to", "provide", "an", "API", "to", "plugin" ]
6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4
https://github.com/GitbookIO/gitbook/blob/6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4/lib/api/encodeSummary.js#L10-L49
train
Encode summary
[ 30522, 3853, 4372, 30524, 1006, 2009, 2121, 1007, 1063, 12654, 1012, 2131, 8445, 25128, 1006, 3853, 1006, 3720, 1007, 1063, 13075, 1046, 3385, 8445, 25128, 1027, 4372, 23237, 2819, 7849, 13380, 4588, 2571, 1006, 3720, 1010, 6270, 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...
adobe/brackets
src/utils/PerfUtils.js
updateMeasurement
function updateMeasurement(id) { var elapsedTime = brackets.app.getElapsedMilliseconds(); if (updatableTests[id.id]) { // update existing measurement elapsedTime -= updatableTests[id].startTime; // update if (perfData[id] && Array.isArray(perfData[id])) ...
javascript
function updateMeasurement(id) { var elapsedTime = brackets.app.getElapsedMilliseconds(); if (updatableTests[id.id]) { // update existing measurement elapsedTime -= updatableTests[id].startTime; // update if (perfData[id] && Array.isArray(perfData[id])) ...
[ "function", "updateMeasurement", "(", "id", ")", "{", "var", "elapsedTime", "=", "brackets", ".", "app", ".", "getElapsedMilliseconds", "(", ")", ";", "if", "(", "updatableTests", "[", "id", ".", "id", "]", ")", "{", "// update existing measurement", "elapsedT...
This function is similar to addMeasurement(), but it allows timing the *last* event, when you don't know which event will be the last one. Tests that are in the activeTests list, have not yet been added, so add measurements to the performance data, and move test to updatableTests list. A test is moved to the updatable...
[ "This", "function", "is", "similar", "to", "addMeasurement", "()", "but", "it", "allows", "timing", "the", "*", "last", "*", "event", "when", "you", "don", "t", "know", "which", "event", "will", "be", "the", "last", "one", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/utils/PerfUtils.js#L244-L271
train
update measurement for a test
[ 30522, 3853, 10651, 4168, 3022, 5397, 3672, 1006, 8909, 1007, 1063, 13075, 3449, 9331, 6924, 7292, 1027, 19719, 1012, 10439, 1012, 2131, 10581, 29251, 22117, 8591, 5562, 8663, 5104, 1006, 1007, 1025, 2065, 1006, 2039, 2850, 10880, 22199, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/EventDispatcher.js
function (eventName) { var event = { type: eventName, target: this }, handlerList = this._eventHandlers && this._eventHandlers[eventName], i; if (!handlerList) { return; } // Use a clone of the list in case handlers call on()/off() while we're still ...
javascript
function (eventName) { var event = { type: eventName, target: this }, handlerList = this._eventHandlers && this._eventHandlers[eventName], i; if (!handlerList) { return; } // Use a clone of the list in case handlers call on()/off() while we're still ...
[ "function", "(", "eventName", ")", "{", "var", "event", "=", "{", "type", ":", "eventName", ",", "target", ":", "this", "}", ",", "handlerList", "=", "this", ".", "_eventHandlers", "&&", "this", ".", "_eventHandlers", "[", "eventName", "]", ",", "i", "...
Invokes all handlers for the given event (in the order they were added). @param {string} eventName @param {*} ... Any additional args are passed to the event handler after the event object
[ "Invokes", "all", "handlers", "for", "the", "given", "event", "(", "in", "the", "order", "they", "were", "added", ")", "." ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/utils/EventDispatcher.js#L210-L235
train
Trigger an event
[ 30522, 3853, 1006, 2724, 18442, 1007, 1063, 13075, 2724, 1027, 1063, 2828, 1024, 2724, 18442, 1010, 4539, 1024, 2023, 1065, 1010, 28213, 9863, 1027, 2023, 1012, 1035, 2724, 11774, 12910, 1004, 1004, 2023, 1012, 1035, 2724, 11774, 12910, 103...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
useAmoPreviewUrls
function useAmoPreviewUrls() { var prefSrv = prefs.preferences; for each (var preference in AMO_PREFERENCES) { var pref = prefSrv.getPref(preference.name, ""); prefSrv.setPref(preference.name, pref.replace(preference.old, preference.new)); } }
javascript
function useAmoPreviewUrls() { var prefSrv = prefs.preferences; for each (var preference in AMO_PREFERENCES) { var pref = prefSrv.getPref(preference.name, ""); prefSrv.setPref(preference.name, pref.replace(preference.old, preference.new)); } }
[ "function", "useAmoPreviewUrls", "(", ")", "{", "var", "prefSrv", "=", "prefs", ".", "preferences", ";", "for", "each", "(", "var", "preference", "in", "AMO_PREFERENCES", ")", "", "{", "var", "pref", "=", "prefSrv", ".", "getPref", "(", "preference", ".", ...
Updates all necessary preferences to the preview sub domain
[ "Updates", "all", "necessary", "preferences", "to", "the", "preview", "sub", "domain" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/addons.js#L1263-L1271
train
Use AMO preview urls
[ 30522, 3853, 2224, 22591, 28139, 8584, 3126, 4877, 1006, 1007, 1063, 13075, 3653, 10343, 2099, 2615, 1027, 3653, 10343, 1012, 18394, 1025, 2005, 2169, 1006, 13075, 12157, 1999, 2572, 2080, 1035, 18394, 1007, 1063, 13075, 3653, 2546, 1027, 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...
Microsoft/vscode
build/gulpfile.editor.js
createTscCompileTask
function createTscCompileTask(watch) { return () => { const createReporter = require('./lib/reporter').createReporter; return new Promise((resolve, reject) => { const args = ['./node_modules/.bin/tsc', '-p', './src/tsconfig.monaco.json', '--noEmit']; if (watch) { args.push('-w'); } const child = c...
javascript
function createTscCompileTask(watch) { return () => { const createReporter = require('./lib/reporter').createReporter; return new Promise((resolve, reject) => { const args = ['./node_modules/.bin/tsc', '-p', './src/tsconfig.monaco.json', '--noEmit']; if (watch) { args.push('-w'); } const child = c...
[ "function", "createTscCompileTask", "(", "watch", ")", "{", "return", "(", ")", "=>", "{", "const", "createReporter", "=", "require", "(", "'./lib/reporter'", ")", ".", "createReporter", ";", "return", "new", "Promise", "(", "(", "resolve", ",", "reject", ")...
#region monaco type checking
[ "#region", "monaco", "type", "checking" ]
693a13cd32c5be798051edc0cb43e1e39fc456d9
https://github.com/Microsoft/vscode/blob/693a13cd32c5be798051edc0cb43e1e39fc456d9/build/gulpfile.editor.js#L322-L370
train
Creates a task that runs the tsc - p tsc - p src / tsconfig. monaco. json and then reports the error to the console.
[ 30522, 3853, 3443, 3215, 21408, 8737, 9463, 10230, 2243, 1006, 3422, 1007, 1063, 2709, 1006, 1007, 1027, 1028, 1063, 9530, 3367, 3443, 2890, 6442, 2121, 1027, 5478, 1006, 1005, 1012, 1013, 5622, 2497, 1013, 6398, 1005, 1007, 1012, 3443, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
openlayers/openlayers
examples/wms-custom-proj.js
WGStoCHy
function WGStoCHy(lat, lng) { // Converts degrees dec to sex lat = DECtoSEX(lat); lng = DECtoSEX(lng); // Converts degrees to seconds (sex) lat = DEGtoSEC(lat); lng = DEGtoSEC(lng); // Axiliary values (% Bern) const lat_aux = (lat - 169028.66) / 10000; const lng_aux = (lng - 26782.5) / 10000; //...
javascript
function WGStoCHy(lat, lng) { // Converts degrees dec to sex lat = DECtoSEX(lat); lng = DECtoSEX(lng); // Converts degrees to seconds (sex) lat = DEGtoSEC(lat); lng = DEGtoSEC(lng); // Axiliary values (% Bern) const lat_aux = (lat - 169028.66) / 10000; const lng_aux = (lng - 26782.5) / 10000; //...
[ "function", "WGStoCHy", "(", "lat", ",", "lng", ")", "{", "// Converts degrees dec to sex", "lat", "=", "DECtoSEX", "(", "lat", ")", ";", "lng", "=", "DECtoSEX", "(", "lng", ")", ";", "// Converts degrees to seconds (sex)", "lat", "=", "DEGtoSEC", "(", "lat", ...
/* Swiss projection transform functions downloaded from http://www.swisstopo.admin.ch/internet/swisstopo/en/home/products/software/products/skripts.html Convert WGS lat/long (° dec) to CH y
[ "/", "*", "Swiss", "projection", "transform", "functions", "downloaded", "from", "http", ":", "//", "www", ".", "swisstopo", ".", "admin", ".", "ch", "/", "internet", "/", "swisstopo", "/", "en", "/", "home", "/", "products", "/", "software", "/", "produ...
f366eaea522388fb575b11010e69d309164baca7
https://github.com/openlayers/openlayers/blob/f366eaea522388fb575b11010e69d309164baca7/examples/wms-custom-proj.js#L94-L116
train
Calculate the WGStoCHy of the given LatLon
[ 30522, 3853, 1059, 5620, 3406, 11714, 1006, 2474, 2102, 1010, 1048, 3070, 1007, 1063, 1013, 1013, 19884, 5445, 11703, 2000, 3348, 2474, 2102, 1027, 11703, 22282, 2595, 1006, 2474, 2102, 1007, 1025, 1048, 3070, 1027, 11703, 22282, 2595, 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...
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
sanitizeAttribs
function sanitizeAttribs( tagName, attribs, opt_naiveUriRewriter, opt_nmTokenPolicy) { for (var i = 0; i < attribs.length; i += 2) { var attribName = attribs[i]; var value = attribs[i + 1]; var atype = null, attribKey; if ((attribKey = tagName + '::' + attribName, html4.ATTR...
javascript
function sanitizeAttribs( tagName, attribs, opt_naiveUriRewriter, opt_nmTokenPolicy) { for (var i = 0; i < attribs.length; i += 2) { var attribName = attribs[i]; var value = attribs[i + 1]; var atype = null, attribKey; if ((attribKey = tagName + '::' + attribName, html4.ATTR...
[ "function", "sanitizeAttribs", "(", "tagName", ",", "attribs", ",", "opt_naiveUriRewriter", ",", "opt_nmTokenPolicy", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "attribs", ".", "length", ";", "i", "+=", "2", ")", "{", "var", "attribName",...
Sanitizes attributes on an HTML tag. @param {string} tagName An HTML tag name in lowercase. @param {Array.<?string>} attribs An array of alternating names and values. @param {?function(?string): ?string} opt_naiveUriRewriter A transform to apply to URI attributes; it can return a new string value, or null to delete the...
[ "Sanitizes", "attributes", "on", "an", "HTML", "tag", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js#L3433-L3506
train
Sanitize attributes
[ 30522, 3853, 2624, 25090, 4371, 19321, 3089, 5910, 1006, 6415, 18442, 1010, 2012, 18886, 5910, 1010, 23569, 1035, 15743, 9496, 15603, 17625, 2099, 1010, 23569, 1035, 13221, 18715, 2368, 18155, 2594, 2100, 1007, 1063, 2005, 1006, 13075, 1045, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
GeekyAnts/vue-native-core
dist/vue.common.js
genOnce
function genOnce (el) { el.onceProcessed = true; if (el.if && !el.ifProcessed) { return genIf(el) } else if (el.staticInFor) { var key = ''; var parent = el.parent; while (parent) { if (parent.for) { key = parent.key; break } parent = parent.parent; } if (...
javascript
function genOnce (el) { el.onceProcessed = true; if (el.if && !el.ifProcessed) { return genIf(el) } else if (el.staticInFor) { var key = ''; var parent = el.parent; while (parent) { if (parent.for) { key = parent.key; break } parent = parent.parent; } if (...
[ "function", "genOnce", "(", "el", ")", "{", "el", ".", "onceProcessed", "=", "true", ";", "if", "(", "el", ".", "if", "&&", "!", "el", ".", "ifProcessed", ")", "{", "return", "genIf", "(", "el", ")", "}", "else", "if", "(", "el", ".", "staticInFo...
v-once
[ "v", "-", "once" ]
a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e
https://github.com/GeekyAnts/vue-native-core/blob/a7b4c9e35fe3f01d7576086f41e5e9ec6975b72e/dist/vue.common.js#L8408-L8432
train
Generate once element
[ 30522, 3853, 8991, 2239, 3401, 1006, 3449, 1007, 1063, 3449, 1012, 2320, 21572, 9623, 6924, 1027, 2995, 1025, 2065, 1006, 3449, 1012, 2065, 1004, 1004, 999, 3449, 1012, 2065, 21572, 9623, 6924, 1007, 1063, 2709, 8991, 10128, 1006, 3449, 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.commons/src/sap/ui/commons/RoadMap.js
function(oThis, sDir, bUpdateFocus){ RoadMapRenderer.scrollToNextStep(oThis, sDir, function(sFirstVisibleNodeId){ var iIdx = sFirstVisibleNodeId.lastIndexOf("-expandend"); if (iIdx != -1) { sFirstVisibleNodeId = sFirstVisibleNodeId.substring(0, iIdx); } oThis.setProperty("firstVisibleStep", sFirstVisi...
javascript
function(oThis, sDir, bUpdateFocus){ RoadMapRenderer.scrollToNextStep(oThis, sDir, function(sFirstVisibleNodeId){ var iIdx = sFirstVisibleNodeId.lastIndexOf("-expandend"); if (iIdx != -1) { sFirstVisibleNodeId = sFirstVisibleNodeId.substring(0, iIdx); } oThis.setProperty("firstVisibleStep", sFirstVisi...
[ "function", "(", "oThis", ",", "sDir", ",", "bUpdateFocus", ")", "{", "RoadMapRenderer", ".", "scrollToNextStep", "(", "oThis", ",", "sDir", ",", "function", "(", "sFirstVisibleNodeId", ")", "{", "var", "iIdx", "=", "sFirstVisibleNodeId", ".", "lastIndexOf", "...
Helper function to scroll to following step (optionally with updating the focus (see focusStep)). Allowed directions are: next, prev, first, last.
[ "Helper", "function", "to", "scroll", "to", "following", "step", "(", "optionally", "with", "updating", "the", "focus", "(", "see", "focusStep", "))", ".", "Allowed", "directions", "are", ":", "next", "prev", "first", "last", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/RoadMap.js#L467-L479
train
Scrolls to the next step in the page
[ 30522, 3853, 1006, 27178, 24158, 1010, 17371, 4313, 1010, 20934, 17299, 3686, 14876, 7874, 1007, 1063, 2346, 2863, 28139, 11563, 2121, 1012, 17186, 5524, 18413, 13473, 2361, 1006, 27178, 24158, 1010, 17371, 4313, 1010, 3853, 1006, 16420, 1889...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/transforms/RelayRefetchableFragmentTransform.js
extractConnectionMetadata
function extractConnectionMetadata( fragment: Fragment, ): ReaderPaginationMetadata | void { const fields = []; let connectionField = null; let path = null; GraphQLIRVisitor.visit(fragment, { LinkedField: { enter(field) { fields.push(field); if ( (field.handles && ...
javascript
function extractConnectionMetadata( fragment: Fragment, ): ReaderPaginationMetadata | void { const fields = []; let connectionField = null; let path = null; GraphQLIRVisitor.visit(fragment, { LinkedField: { enter(field) { fields.push(field); if ( (field.handles && ...
[ "function", "extractConnectionMetadata", "(", "fragment", ":", "Fragment", ",", ")", ":", "ReaderPaginationMetadata", "|", "void", "{", "const", "fields", "=", "[", "]", ";", "let", "connectionField", "=", "null", ";", "let", "path", "=", "null", ";", "Graph...
Validate that any @connection usage is valid for refetching: - Variables are used for both the "count" and "cursor" arguments (after/first or before/last) - Exactly one connection - Has a stable path to the connection data Returns connection metadata to add to the transformed fragment or undefined if there is no conne...
[ "Validate", "that", "any", "@connection", "usage", "is", "valid", "for", "refetching", ":", "-", "Variables", "are", "used", "for", "both", "the", "count", "and", "cursor", "arguments", "(", "after", "/", "first", "or", "before", "/", "last", ")", "-", "...
7fb9be5182b9650637d7b92ead9a42713ac30aa4
https://github.com/facebook/relay/blob/7fb9be5182b9650637d7b92ead9a42713ac30aa4/packages/relay-compiler/transforms/RelayRefetchableFragmentTransform.js#L213-L318
train
Extract connection metadata from a fragment
[ 30522, 3853, 14817, 8663, 2638, 7542, 11368, 8447, 2696, 1006, 15778, 1024, 15778, 1010, 1007, 1024, 8068, 4502, 20876, 3508, 11368, 8447, 2696, 1064, 11675, 1063, 9530, 3367, 4249, 1027, 1031, 1033, 1025, 2292, 4434, 3790, 1027, 19701, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SheetJS/js-xlsx
xlsx.js
parse_ExternName
function parse_ExternName(blob, length, opts) { var flags = blob.read_shift(2); var body; var o = ({ fBuiltIn: flags & 0x01, fWantAdvise: (flags >>> 1) & 0x01, fWantPict: (flags >>> 2) & 0x01, fOle: (flags >>> 3) & 0x01, fOleLink: (flags >>> 4) & 0x01, cf: (flags >>> 5) & 0x3FF, fIcon: flags >>> 15 & 0...
javascript
function parse_ExternName(blob, length, opts) { var flags = blob.read_shift(2); var body; var o = ({ fBuiltIn: flags & 0x01, fWantAdvise: (flags >>> 1) & 0x01, fWantPict: (flags >>> 2) & 0x01, fOle: (flags >>> 3) & 0x01, fOleLink: (flags >>> 4) & 0x01, cf: (flags >>> 5) & 0x3FF, fIcon: flags >>> 15 & 0...
[ "function", "parse_ExternName", "(", "blob", ",", "length", ",", "opts", ")", "{", "var", "flags", "=", "blob", ".", "read_shift", "(", "2", ")", ";", "var", "body", ";", "var", "o", "=", "(", "{", "fBuiltIn", ":", "flags", "&", "0x01", ",", "fWant...
/* [MS-XLS] 2.4.105 TODO
[ "/", "*", "[", "MS", "-", "XLS", "]", "2", ".", "4", ".", "105", "TODO" ]
9a6d8a1d3d80c78dad5201fb389316f935279cdc
https://github.com/SheetJS/js-xlsx/blob/9a6d8a1d3d80c78dad5201fb389316f935279cdc/xlsx.js#L6198-L6215
train
Parse an extern name
[ 30522, 3853, 11968, 3366, 1035, 4654, 16451, 18442, 1006, 1038, 4135, 2497, 1010, 3091, 1010, 23569, 2015, 1007, 1063, 13075, 9245, 1027, 1038, 4135, 2497, 1012, 3191, 1035, 5670, 1006, 1016, 1007, 1025, 13075, 2303, 1025, 13075, 1051, 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...
facebook/flow
packages/flow-upgrade/src/findFlowFiles.js
processDirectory
function processDirectory(directory: string) { // If we were rejected then we should not continue. if (rejected === true) { return; } // We are now waiting on this asynchronous task. waiting++; // Read the directory... fs.readdir(directory, (error, fileNames) => { ...
javascript
function processDirectory(directory: string) { // If we were rejected then we should not continue. if (rejected === true) { return; } // We are now waiting on this asynchronous task. waiting++; // Read the directory... fs.readdir(directory, (error, fileNames) => { ...
[ "function", "processDirectory", "(", "directory", ":", "string", ")", "{", "// If we were rejected then we should not continue.", "if", "(", "rejected", "===", "true", ")", "{", "return", ";", "}", "// We are now waiting on this asynchronous task.", "waiting", "++", ";", ...
Process a directory by looking at all of its entries and recursing through child directories as is appropriate.
[ "Process", "a", "directory", "by", "looking", "at", "all", "of", "its", "entries", "and", "recursing", "through", "child", "directories", "as", "is", "appropriate", "." ]
25bc6aba258658eaf21ccc4722ef7124724a1d2b
https://github.com/facebook/flow/blob/25bc6aba258658eaf21ccc4722ef7124724a1d2b/packages/flow-upgrade/src/findFlowFiles.js#L39-L58
train
Process a directory
[ 30522, 3853, 2832, 4305, 2890, 16761, 2100, 1006, 14176, 1024, 5164, 1007, 1063, 1013, 1013, 2065, 2057, 2020, 5837, 2059, 2057, 2323, 2025, 3613, 1012, 2065, 1006, 5837, 1027, 1027, 1027, 2995, 1007, 1063, 2709, 1025, 1065, 1013, 1013, 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...
statsd/statsd
backends/graphite.js
sk
function sk(key) { if (globalKeySanitize) { return key; } else { return key.replace(/\s+/g, '_') .replace(/\//g, '-') .replace(/[^a-zA-Z_\-0-9\.]/g, ''); } }
javascript
function sk(key) { if (globalKeySanitize) { return key; } else { return key.replace(/\s+/g, '_') .replace(/\//g, '-') .replace(/[^a-zA-Z_\-0-9\.]/g, ''); } }
[ "function", "sk", "(", "key", ")", "{", "if", "(", "globalKeySanitize", ")", "{", "return", "key", ";", "}", "else", "{", "return", "key", ".", "replace", "(", "/", "\\s+", "/", "g", ",", "'_'", ")", ".", "replace", "(", "/", "\\/", "/", "g", "...
Sanitize key for graphite if not done globally
[ "Sanitize", "key", "for", "graphite", "if", "not", "done", "globally" ]
ef8e4d76d76c3a0cf771e3724cf79ea22f3c50d9
https://github.com/statsd/statsd/blob/ef8e4d76d76c3a0cf771e3724cf79ea22f3c50d9/backends/graphite.js#L164-L172
train
Returns the key for the key
[ 30522, 3853, 15315, 1006, 3145, 1007, 1063, 2065, 1006, 3795, 14839, 8791, 25090, 4371, 1007, 1063, 2709, 3145, 1025, 1065, 2842, 1063, 2709, 3145, 1012, 5672, 1006, 1013, 1032, 1055, 1009, 1013, 1043, 1010, 1005, 1035, 1005, 1007, 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...
SeleniumHQ/selenium
third_party/js/mozmill/shared-modules/addons.js
addonsManager_waitForDownloaded
function addonsManager_waitForDownloaded(aSpec) { var spec = aSpec || { }; var addon = spec.addon; var timeout = (spec.timeout == undefined) ? TIMEOUT_DOWNLOAD : spec.timeout; if (!addon) throw new Error(arguments.callee.name + ": Add-on not specified."); var self = this; var node = addo...
javascript
function addonsManager_waitForDownloaded(aSpec) { var spec = aSpec || { }; var addon = spec.addon; var timeout = (spec.timeout == undefined) ? TIMEOUT_DOWNLOAD : spec.timeout; if (!addon) throw new Error(arguments.callee.name + ": Add-on not specified."); var self = this; var node = addo...
[ "function", "addonsManager_waitForDownloaded", "(", "aSpec", ")", "{", "var", "spec", "=", "aSpec", "||", "{", "}", ";", "var", "addon", "=", "spec", ".", "addon", ";", "var", "timeout", "=", "(", "spec", ".", "timeout", "==", "undefined", ")", "?", "T...
Wait until the specified add-on has been downloaded @param {object} aSpec Object with parameters for customization Elements: addon - Add-on element to wait for being downloaded timeout - Duration to wait for the target state [optional - default: 15s]
[ "Wait", "until", "the", "specified", "add", "-", "on", "has", "been", "downloaded" ]
38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd
https://github.com/SeleniumHQ/selenium/blob/38d5e4440b2c866a78a1ccb2a18d9795a1bdeafd/third_party/js/mozmill/shared-modules/addons.js#L579-L599
train
Wait until the add - on has been downloaded
[ 30522, 3853, 5587, 5644, 24805, 4590, 1035, 3524, 3877, 12384, 17468, 1006, 2004, 5051, 2278, 1007, 1063, 13075, 28699, 1027, 2004, 5051, 2278, 1064, 1064, 1063, 1065, 1025, 13075, 5587, 2239, 1027, 28699, 1012, 5587, 2239, 1025, 13075, 205...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
thomaspark/bootswatch
docs/_vendor/popper.js/dist/popper.js
getOuterSizes
function getOuterSizes(element) { const window = element.ownerDocument.defaultView; const styles = window.getComputedStyle(element); const x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); const y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); const res...
javascript
function getOuterSizes(element) { const window = element.ownerDocument.defaultView; const styles = window.getComputedStyle(element); const x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); const y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); const res...
[ "function", "getOuterSizes", "(", "element", ")", "{", "const", "window", "=", "element", ".", "ownerDocument", ".", "defaultView", ";", "const", "styles", "=", "window", ".", "getComputedStyle", "(", "element", ")", ";", "const", "x", "=", "parseFloat", "("...
Get the outer sizes of the given element (offset size + margins) @method @memberof Popper.Utils @argument {Element} element @returns {Object} object containing width and height properties
[ "Get", "the", "outer", "sizes", "of", "the", "given", "element", "(", "offset", "size", "+", "margins", ")" ]
a913e4992dad8f7bf38df2e1d3f4cc6bfe5f26dd
https://github.com/thomaspark/bootswatch/blob/a913e4992dad8f7bf38df2e1d3f4cc6bfe5f26dd/docs/_vendor/popper.js/dist/popper.js#L676-L686
train
Get the outer sizes of an element
[ 30522, 3853, 2131, 5833, 2545, 10057, 1006, 5783, 1007, 1063, 9530, 3367, 3332, 1027, 5783, 1012, 3954, 3527, 24894, 4765, 1012, 12398, 8584, 1025, 9530, 3367, 6782, 1027, 3332, 1012, 2131, 9006, 29462, 21756, 2571, 1006, 5783, 30524, 3367,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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(s, newline) { s = String(s || ''); s = s.replace(/&/g,'&amp;'); // 38 26 s = s.replace(/"/g,'&quot;'); // 34 22 s = s.replace(/\'/g,'&#39;'); // 39 27 s = s.replace(/</g,'&lt;'); // 60 3C s = s.replace(/>/g,'&gt;'); // 62 3E if (newline == null || newline) { s = s.replace(/\n/g, '&#xa;'...
javascript
function(s, newline) { s = String(s || ''); s = s.replace(/&/g,'&amp;'); // 38 26 s = s.replace(/"/g,'&quot;'); // 34 22 s = s.replace(/\'/g,'&#39;'); // 39 27 s = s.replace(/</g,'&lt;'); // 60 3C s = s.replace(/>/g,'&gt;'); // 62 3E if (newline == null || newline) { s = s.replace(/\n/g, '&#xa;'...
[ "function", "(", "s", ",", "newline", ")", "{", "s", "=", "String", "(", "s", "||", "''", ")", ";", "s", "=", "s", ".", "replace", "(", "/", "&", "/", "g", ",", "'&amp;'", ")", ";", "// 38 26", "s", "=", "s", ".", "replace", "(", "/", "\"",...
Function: htmlEntities Replaces characters (less than, greater than, newlines and quotes) with their HTML entities in the given string and returns the result. Parameters: s - String that contains the characters to be converted. newline - If newlines should be replaced. Default is true.
[ "Function", ":", "htmlEntities" ]
33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44
https://github.com/jgraph/mxgraph/blob/33911ed7e055c17b74d0367f5f1f6c9ee4b4fd44/javascript/mxClient.js#L2928-L2944
train
Unescape the given string
[ 30522, 3853, 1006, 1055, 1010, 2047, 4179, 1007, 1063, 1055, 1027, 5164, 1006, 1055, 1064, 1064, 1005, 1005, 1007, 1025, 1055, 1027, 1055, 1012, 5672, 1006, 1013, 1004, 1013, 1043, 1010, 1005, 1004, 23713, 1025, 1005, 1007, 1025, 1013, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_showMonthPicker
function _showMonthPicker(){ if (this._iMode == 1) { _hideDayPicker.call(this, true); }else if (this._iMode == 3) { _hideYearPicker.call(this, true); } var oDate = this._getFocusedDate(); var oMonthPicker = this.getAggregation("monthPicker"); if (oMonthPicker.getDomRef()) { // already rendered ...
javascript
function _showMonthPicker(){ if (this._iMode == 1) { _hideDayPicker.call(this, true); }else if (this._iMode == 3) { _hideYearPicker.call(this, true); } var oDate = this._getFocusedDate(); var oMonthPicker = this.getAggregation("monthPicker"); if (oMonthPicker.getDomRef()) { // already rendered ...
[ "function", "_showMonthPicker", "(", ")", "{", "if", "(", "this", ".", "_iMode", "==", "1", ")", "{", "_hideDayPicker", ".", "call", "(", "this", ",", "true", ")", ";", "}", "else", "if", "(", "this", ".", "_iMode", "==", "3", ")", "{", "_hideYearP...
Shows an embedded month Picker. This function assumes there is a "monthPicker" aggregation. So callers must take care. @return {void} @private
[ "Shows", "an", "embedded", "month", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "monthPicker", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1454-L1492
train
Show the month picker
[ 30522, 3853, 1035, 2265, 9629, 22269, 6799, 2121, 1006, 1007, 1063, 2065, 1006, 2023, 1012, 1035, 10047, 10244, 1027, 1027, 1015, 1007, 1063, 1035, 5342, 10259, 24330, 5484, 1012, 2655, 1006, 2023, 1010, 2995, 1007, 1025, 1065, 2842, 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...
zloirock/core-js
packages/core-js-pure/override/modules/es.date.to-json.js
toJSON
function toJSON(key) { var O = toObject(this); var pv = toPrimitive(O); return typeof pv == 'number' && !isFinite(pv) ? null : (!('toISOString' in O) && classof(O) == 'Date') ? toISOString.call(O) : O.toISOString(); }
javascript
function toJSON(key) { var O = toObject(this); var pv = toPrimitive(O); return typeof pv == 'number' && !isFinite(pv) ? null : (!('toISOString' in O) && classof(O) == 'Date') ? toISOString.call(O) : O.toISOString(); }
[ "function", "toJSON", "(", "key", ")", "{", "var", "O", "=", "toObject", "(", "this", ")", ";", "var", "pv", "=", "toPrimitive", "(", "O", ")", ";", "return", "typeof", "pv", "==", "'number'", "&&", "!", "isFinite", "(", "pv", ")", "?", "null", "...
eslint-disable-next-line no-unused-vars
[ "eslint", "-", "disable", "-", "next", "-", "line", "no", "-", "unused", "-", "vars" ]
fe7c8511a6d27d03a9b8e075b3351416aae95c58
https://github.com/zloirock/core-js/blob/fe7c8511a6d27d03a9b8e075b3351416aae95c58/packages/core-js-pure/override/modules/es.date.to-json.js#L14-L19
train
Returns the JSON representation of the object.
[ 30522, 3853, 2000, 22578, 2239, 1006, 3145, 1007, 1063, 13075, 1051, 1027, 2205, 2497, 20614, 1006, 2023, 1007, 1025, 13075, 26189, 1027, 2327, 20026, 13043, 1006, 1051, 1007, 1025, 2709, 2828, 11253, 26189, 1027, 1027, 1005, 2193, 1005, 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...
goldfire/howler.js
examples/3d/js/map.js
function() { // Loop through the tiles and setup the audio listeners. for (var i=0; i<this.grid.length; i++) { if (this.grid[i] === 2) { var y = Math.floor(i / this.size); var x = i % this.size; game.audio.speaker(x, y); } } }
javascript
function() { // Loop through the tiles and setup the audio listeners. for (var i=0; i<this.grid.length; i++) { if (this.grid[i] === 2) { var y = Math.floor(i / this.size); var x = i % this.size; game.audio.speaker(x, y); } } }
[ "function", "(", ")", "{", "// Loop through the tiles and setup the audio listeners.", "for", "(", "var", "i", "=", "0", ";", "i", "<", "this", ".", "grid", ".", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "grid", "[", "i", "]", "===", ...
Sets up the map including the speaker audio points.
[ "Sets", "up", "the", "map", "including", "the", "speaker", "audio", "points", "." ]
030db918dd8ce640afd57e172418472497e8f113
https://github.com/goldfire/howler.js/blob/030db918dd8ce640afd57e172418472497e8f113/examples/3d/js/map.js#L32-L41
train
Setup the audio listeners for the next tile
[ 30522, 3853, 1006, 1007, 1063, 1013, 1013, 7077, 2083, 1996, 13262, 1998, 16437, 1996, 5746, 13810, 1012, 2005, 1006, 13075, 1045, 1027, 1014, 1025, 1045, 1026, 2023, 1012, 8370, 1012, 3091, 1025, 1045, 1009, 1009, 1007, 1063, 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...
eslint/eslint
lib/rules/quotes.js
isUsingFeatureOfTemplateLiteral
function isUsingFeatureOfTemplateLiteral(node) { const hasTag = node.parent.type === "TaggedTemplateExpression" && node === node.parent.quasi; if (hasTag) { return true; } const hasStringInterpolation = node.expressions.length > 0; if (hasSt...
javascript
function isUsingFeatureOfTemplateLiteral(node) { const hasTag = node.parent.type === "TaggedTemplateExpression" && node === node.parent.quasi; if (hasTag) { return true; } const hasStringInterpolation = node.expressions.length > 0; if (hasSt...
[ "function", "isUsingFeatureOfTemplateLiteral", "(", "node", ")", "{", "const", "hasTag", "=", "node", ".", "parent", ".", "type", "===", "\"TaggedTemplateExpression\"", "&&", "node", "===", "node", ".", "parent", ".", "quasi", ";", "if", "(", "hasTag", ")", ...
Checks whether or not a given TemplateLiteral node is actually using any of the special features provided by template literal strings. @param {ASTNode} node - A TemplateLiteral node to check. @returns {boolean} Whether or not the TemplateLiteral node is using any of the special features provided by template literal str...
[ "Checks", "whether", "or", "not", "a", "given", "TemplateLiteral", "node", "is", "actually", "using", "any", "of", "the", "special", "features", "provided", "by", "template", "literal", "strings", "." ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/quotes.js#L237-L257
train
returns true if node is using a feature of template literal
[ 30522, 3853, 2003, 18161, 7959, 4017, 5397, 15794, 6633, 15725, 22779, 7941, 1006, 13045, 1007, 1063, 9530, 3367, 2038, 15900, 1027, 13045, 1012, 6687, 1012, 2828, 1027, 1027, 1027, 1000, 26610, 18532, 15725, 10288, 20110, 3258, 1000, 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...
caolan/async
lib/eachOf.js
eachOfArrayLike
function eachOfArrayLike(coll, iteratee, callback) { callback = once(callback); var index = 0, completed = 0, {length} = coll, canceled = false; if (length === 0) { callback(null); } function iteratorCallback(err, value) { if (err === false) { can...
javascript
function eachOfArrayLike(coll, iteratee, callback) { callback = once(callback); var index = 0, completed = 0, {length} = coll, canceled = false; if (length === 0) { callback(null); } function iteratorCallback(err, value) { if (err === false) { can...
[ "function", "eachOfArrayLike", "(", "coll", ",", "iteratee", ",", "callback", ")", "{", "callback", "=", "once", "(", "callback", ")", ";", "var", "index", "=", "0", ",", "completed", "=", "0", ",", "{", "length", "}", "=", "coll", ",", "canceled", "...
eachOf implementation optimized for array-likes
[ "eachOf", "implementation", "optimized", "for", "array", "-", "likes" ]
4330d536c106592139fa82062494c9dba0da1fdb
https://github.com/caolan/async/blob/4330d536c106592139fa82062494c9dba0da1fdb/lib/eachOf.js#L10-L35
train
Alien array - like function that iterates over an array of objects and invokes a callback function for each object.
[ 30522, 3853, 2169, 11253, 2906, 9447, 10359, 1006, 8902, 2140, 1010, 2009, 22139, 2063, 1010, 2655, 5963, 1007, 1063, 2655, 5963, 1027, 2320, 1006, 2655, 5963, 1007, 1025, 13075, 5950, 1027, 1014, 1010, 2949, 1027, 1014, 1010, 1063, 3091, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/RTCMultiConnection
dev/XHRConnection.js
xhr
function xhr(url, callback, data) { if (!window.XMLHttpRequest || !window.JSON) return; var request = new XMLHttpRequest(); request.onreadystatechange = function() { if (callback && request.readyState == 4 && request.status == 200) { // server MUST return JSON text ...
javascript
function xhr(url, callback, data) { if (!window.XMLHttpRequest || !window.JSON) return; var request = new XMLHttpRequest(); request.onreadystatechange = function() { if (callback && request.readyState == 4 && request.status == 200) { // server MUST return JSON text ...
[ "function", "xhr", "(", "url", ",", "callback", ",", "data", ")", "{", "if", "(", "!", "window", ".", "XMLHttpRequest", "||", "!", "window", ".", "JSON", ")", "return", ";", "var", "request", "=", "new", "XMLHttpRequest", "(", ")", ";", "request", "....
a simple function to make XMLHttpRequests
[ "a", "simple", "function", "to", "make", "XMLHttpRequests" ]
2032ce949bde30b43a3d2666e0f1e5afbf337f3d
https://github.com/muaz-khan/RTCMultiConnection/blob/2032ce949bde30b43a3d2666e0f1e5afbf337f3d/dev/XHRConnection.js#L16-L34
train
XHR request
[ 30522, 3853, 1060, 8093, 1006, 24471, 2140, 1010, 2655, 5963, 1010, 2951, 1007, 1063, 2065, 1006, 999, 3332, 1012, 20950, 11039, 25856, 2890, 15500, 1064, 1064, 999, 3332, 1012, 1046, 3385, 1007, 2709, 1025, 13075, 5227, 1027, 2047, 20950, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-core/src/actions/editorialWorkflow.js
unpublishedEntryLoading
function unpublishedEntryLoading(collection, slug) { return { type: UNPUBLISHED_ENTRY_REQUEST, payload: { collection: collection.get('name'), slug, }, }; }
javascript
function unpublishedEntryLoading(collection, slug) { return { type: UNPUBLISHED_ENTRY_REQUEST, payload: { collection: collection.get('name'), slug, }, }; }
[ "function", "unpublishedEntryLoading", "(", "collection", ",", "slug", ")", "{", "return", "{", "type", ":", "UNPUBLISHED_ENTRY_REQUEST", ",", "payload", ":", "{", "collection", ":", "collection", ".", "get", "(", "'name'", ")", ",", "slug", ",", "}", ",", ...
/* Simple Action Creators (Internal)
[ "/", "*", "Simple", "Action", "Creators", "(", "Internal", ")" ]
2488556590cbfdcefa626f2f2de01e7a160cf6ee
https://github.com/netlify/netlify-cms/blob/2488556590cbfdcefa626f2f2de01e7a160cf6ee/packages/netlify-cms-core/src/actions/editorialWorkflow.js#L46-L54
train
Unpublished entry loading
[ 30522, 3853, 19106, 4765, 23320, 10441, 4667, 1006, 3074, 1010, 23667, 1007, 1063, 2709, 1063, 2828, 1024, 19106, 1035, 4443, 1035, 5227, 1010, 18093, 1024, 1063, 3074, 1024, 3074, 1012, 2131, 1006, 1005, 2171, 1005, 1007, 1010, 23667, 1010...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
firebase/firebaseui-web
javascript/widgets/handler/passwordsignup.js
function() { var errorMessage = firebaseui.auth.widget.handler.common.getErrorMessage(emailExistsError); firebaseui.auth.ui.element.setValid(component.getEmailElement(), false); firebaseui.auth.ui.element.show( component.getEmailErrorElement(), errorMessage); component.getEmailElement()....
javascript
function() { var errorMessage = firebaseui.auth.widget.handler.common.getErrorMessage(emailExistsError); firebaseui.auth.ui.element.setValid(component.getEmailElement(), false); firebaseui.auth.ui.element.show( component.getEmailErrorElement(), errorMessage); component.getEmailElement()....
[ "function", "(", ")", "{", "var", "errorMessage", "=", "firebaseui", ".", "auth", ".", "widget", ".", "handler", ".", "common", ".", "getErrorMessage", "(", "emailExistsError", ")", ";", "firebaseui", ".", "auth", ".", "ui", ".", "element", ".", "setValid"...
If a provider already exists, just display the error and focus the email element.
[ "If", "a", "provider", "already", "exists", "just", "display", "the", "error", "and", "focus", "the", "email", "element", "." ]
c10aa51e38aeb38dc63baa22b48cd6690c2be087
https://github.com/firebase/firebaseui-web/blob/c10aa51e38aeb38dc63baa22b48cd6690c2be087/javascript/widgets/handler/passwordsignup.js#L192-L199
train
Show the error message if the user already exists.
[ 30522, 3853, 1006, 1007, 1063, 13075, 7561, 7834, 3736, 3351, 1027, 2543, 15058, 10179, 1012, 8740, 2705, 1012, 15536, 24291, 1012, 28213, 1012, 2691, 1012, 2131, 2121, 29165, 7834, 3736, 3351, 1006, 10373, 10288, 5130, 2121, 29165, 1007, 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...
expressjs/express
examples/params/index.js
createError
function createError(status, message) { var err = new Error(message); err.status = status; return err; }
javascript
function createError(status, message) { var err = new Error(message); err.status = status; return err; }
[ "function", "createError", "(", "status", ",", "message", ")", "{", "var", "err", "=", "new", "Error", "(", "message", ")", ";", "err", ".", "status", "=", "status", ";", "return", "err", ";", "}" ]
Create HTTP error
[ "Create", "HTTP", "error" ]
dc538f6e810bd462c98ee7e6aae24c64d4b1da93
https://github.com/expressjs/express/blob/dc538f6e810bd462c98ee7e6aae24c64d4b1da93/examples/params/index.js#L20-L24
train
Create an error object
[ 30522, 3853, 3443, 2121, 29165, 1006, 3570, 1010, 4471, 1007, 1063, 13075, 9413, 2099, 1027, 2047, 7561, 1006, 4471, 1007, 1025, 9413, 2099, 1012, 3570, 1027, 3570, 1025, 2709, 9413, 2099, 1025, 1065, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-js
lib/config.js
Config
function Config(options) { if (options === undefined) options = {}; options = this.extractCredentials(options); AWS.util.each.call(this, this.keys, function (key, value) { this.set(key, options[key], value); }); }
javascript
function Config(options) { if (options === undefined) options = {}; options = this.extractCredentials(options); AWS.util.each.call(this, this.keys, function (key, value) { this.set(key, options[key], value); }); }
[ "function", "Config", "(", "options", ")", "{", "if", "(", "options", "===", "undefined", ")", "options", "=", "{", "}", ";", "options", "=", "this", ".", "extractCredentials", "(", "options", ")", ";", "AWS", ".", "util", ".", "each", ".", "call", "...
@!endgroup Creates a new configuration object. This is the object that passes option data along to service requests, including credentials, security, region information, and some service specific settings. @example Creating a new configuration object with credentials and region var config = new AWS.Config({ accessKe...
[ "@!endgroup", "Creates", "a", "new", "configuration", "object", ".", "This", "is", "the", "object", "that", "passes", "option", "data", "along", "to", "service", "requests", "including", "credentials", "security", "region", "information", "and", "some", "service",...
c23e5f0edd150f8885267e5f7c8a564f8e6e8562
https://github.com/aws/aws-sdk-js/blob/c23e5f0edd150f8885267e5f7c8a564f8e6e8562/lib/config.js#L308-L315
train
Config constructor.
[ 30522, 3853, 9530, 8873, 2290, 1006, 7047, 1007, 1063, 2065, 1006, 7047, 1027, 1027, 1027, 6151, 28344, 1007, 7047, 1027, 1063, 1065, 1025, 7047, 1027, 2023, 1012, 14817, 16748, 16454, 26340, 1006, 7047, 1007, 1025, 22091, 2015, 1012, 21183...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ColorlibHQ/AdminLTE
bower_components/ion.rangeSlider/js/ion.rangeSlider.js
function () { var o = this.options, c = this.$cache, is_from_min = typeof o.from_min === "number" && !isNaN(o.from_min), is_from_max = typeof o.from_max === "number" && !isNaN(o.from_max), is_to_min = typeof o.to_min === "number" && !isNaN(o.t...
javascript
function () { var o = this.options, c = this.$cache, is_from_min = typeof o.from_min === "number" && !isNaN(o.from_min), is_from_max = typeof o.from_max === "number" && !isNaN(o.from_max), is_to_min = typeof o.to_min === "number" && !isNaN(o.t...
[ "function", "(", ")", "{", "var", "o", "=", "this", ".", "options", ",", "c", "=", "this", ".", "$cache", ",", "is_from_min", "=", "typeof", "o", ".", "from_min", "===", "\"number\"", "&&", "!", "isNaN", "(", "o", ".", "from_min", ")", ",", "is_fro...
Draw shadow intervals
[ "Draw", "shadow", "intervals" ]
19113c3cbc19a7afe0cfd3158d647064d2d30661
https://github.com/ColorlibHQ/AdminLTE/blob/19113c3cbc19a7afe0cfd3158d647064d2d30661/bower_components/ion.rangeSlider/js/ion.rangeSlider.js#L1585-L1642
train
set the style of the shad_single
[ 30522, 3853, 1006, 1007, 1063, 13075, 1051, 1027, 2023, 1012, 7047, 1010, 1039, 1027, 2023, 1012, 1002, 17053, 1010, 2003, 1035, 2013, 1035, 8117, 1027, 2828, 11253, 1051, 1012, 2013, 1035, 8117, 1027, 1027, 1027, 1000, 2193, 1000, 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...
jhipster/generator-jhipster
generators/utils.js
rewriteFile
function rewriteFile(args, generator) { args.path = args.path || process.cwd(); const fullPath = path.join(args.path, args.file); args.haystack = generator.fs.read(fullPath); const body = rewrite(args); generator.fs.write(fullPath, body); }
javascript
function rewriteFile(args, generator) { args.path = args.path || process.cwd(); const fullPath = path.join(args.path, args.file); args.haystack = generator.fs.read(fullPath); const body = rewrite(args); generator.fs.write(fullPath, body); }
[ "function", "rewriteFile", "(", "args", ",", "generator", ")", "{", "args", ".", "path", "=", "args", ".", "path", "||", "process", ".", "cwd", "(", ")", ";", "const", "fullPath", "=", "path", ".", "join", "(", "args", ".", "path", ",", "args", "."...
Rewrite file with passed arguments @param {object} args argument object (containing path, file, haystack, etc properties) @param {object} generator reference to the generator
[ "Rewrite", "file", "with", "passed", "arguments" ]
f76fa8de0818ce6bda6c7b1455942e2a9b0ae3ff
https://github.com/jhipster/generator-jhipster/blob/f76fa8de0818ce6bda6c7b1455942e2a9b0ae3ff/generators/utils.js#L57-L64
train
Rewrite a file
[ 30522, 3853, 2128, 26373, 8873, 2571, 1006, 12098, 5620, 1010, 13103, 1007, 1063, 12098, 5620, 1012, 4130, 1027, 12098, 5620, 1012, 4130, 1064, 1064, 2832, 1012, 19296, 2094, 1006, 1007, 1025, 9530, 3367, 2440, 15069, 1027, 4130, 1012, 3693...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
dcloudio/mui
examples/login/libs/easymob-webim-sdk/strophe-custom-2.0.0.js
function (binarray) { var hex_tab = "0123456789abcdef"; var str = ""; for(var i = 0; i < binarray.length * 4; i++) { str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); } ...
javascript
function (binarray) { var hex_tab = "0123456789abcdef"; var str = ""; for(var i = 0; i < binarray.length * 4; i++) { str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); } ...
[ "function", "(", "binarray", ")", "{", "var", "hex_tab", "=", "\"0123456789abcdef\"", ";", "var", "str", "=", "\"\"", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "binarray", ".", "length", "*", "4", ";", "i", "++", ")", "{", "str", "+="...
/* Convert an array of little-endian words to a hex string.
[ "/", "*", "Convert", "an", "array", "of", "little", "-", "endian", "words", "to", "a", "hex", "string", "." ]
ff74c90a1671a552f3604b1288bf38a4126312d0
https://github.com/dcloudio/mui/blob/ff74c90a1671a552f3604b1288bf38a4126312d0/examples/login/libs/easymob-webim-sdk/strophe-custom-2.0.0.js#L328-L337
train
Returns the string of the last 4 bytes of the array
[ 30522, 3853, 1006, 8026, 2906, 9447, 1007, 1063, 13075, 2002, 2595, 1035, 21628, 1027, 1000, 5890, 21926, 19961, 2575, 2581, 2620, 2683, 7875, 19797, 12879, 1000, 1025, 13075, 2358, 2099, 1027, 1000, 1000, 1025, 2005, 1006, 13075, 1045, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adobe/brackets
src/extensions/default/NoDistractions/main.js
_showPanelsIfRequired
function _showPanelsIfRequired() { var panelIDs = _previouslyOpenPanelIDs; panelIDs.forEach(function (panelID) { var panel = WorkspaceManager.getPanelForID(panelID); if (panel) { panel.show(); } }); _previouslyOpenPanelIDs = []; }
javascript
function _showPanelsIfRequired() { var panelIDs = _previouslyOpenPanelIDs; panelIDs.forEach(function (panelID) { var panel = WorkspaceManager.getPanelForID(panelID); if (panel) { panel.show(); } }); _previouslyOpenPanelIDs = []; }
[ "function", "_showPanelsIfRequired", "(", ")", "{", "var", "panelIDs", "=", "_previouslyOpenPanelIDs", ";", "panelIDs", ".", "forEach", "(", "function", "(", "panelID", ")", "{", "var", "panel", "=", "WorkspaceManager", ".", "getPanelForID", "(", "panelID", ")",...
show all open panels that was previously hidden by _hidePanelsIfRequired()
[ "show", "all", "open", "panels", "that", "was", "previously", "hidden", "by", "_hidePanelsIfRequired", "()" ]
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/extensions/default/NoDistractions/main.js#L92-L101
train
show all panels
[ 30522, 3853, 1035, 2265, 9739, 9050, 10128, 2890, 15549, 5596, 1006, 1007, 1063, 13075, 5997, 9821, 1027, 1035, 3130, 26915, 9739, 20806, 5104, 1025, 5997, 9821, 1012, 18921, 6776, 1006, 3853, 1006, 5997, 3593, 1007, 1063, 13075, 5997, 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...
PrismJS/prism
plugins/line-highlight/prism-line-highlight.js
highlightLines
function highlightLines(pre, lines, classes) { lines = typeof lines === 'string' ? lines : pre.getAttribute('data-line'); var ranges = lines.replace(/\s+/g, '').split(','); var offset = +pre.getAttribute('data-line-offset') || 0; var parseMethod = isLineHeightRounded() ? parseInt : parseFloat; var lineHeigh...
javascript
function highlightLines(pre, lines, classes) { lines = typeof lines === 'string' ? lines : pre.getAttribute('data-line'); var ranges = lines.replace(/\s+/g, '').split(','); var offset = +pre.getAttribute('data-line-offset') || 0; var parseMethod = isLineHeightRounded() ? parseInt : parseFloat; var lineHeigh...
[ "function", "highlightLines", "(", "pre", ",", "lines", ",", "classes", ")", "{", "lines", "=", "typeof", "lines", "===", "'string'", "?", "lines", ":", "pre", ".", "getAttribute", "(", "'data-line'", ")", ";", "var", "ranges", "=", "lines", ".", "replac...
Highlights the lines of the given pre. This function is split into a DOM measuring and mutate phase to improve performance. The returned function mutates the DOM when called. @param {HTMLElement} pre @param {string} [lines] @param {string} [classes=''] @returns {() => void}
[ "Highlights", "the", "lines", "of", "the", "given", "pre", "." ]
acceb3b56f0e8362a7ef274dbd85b17611df2ec4
https://github.com/PrismJS/prism/blob/acceb3b56f0e8362a7ef274dbd85b17611df2ec4/plugins/line-highlight/prism-line-highlight.js#L53-L121
train
Highlights the given lines.
[ 30522, 3853, 12944, 12735, 1006, 3653, 1010, 3210, 1010, 4280, 1007, 1063, 3210, 1027, 2828, 11253, 3210, 1027, 1027, 1027, 1005, 5164, 1005, 1029, 3210, 1024, 3653, 1012, 2131, 19321, 3089, 8569, 2618, 1006, 1005, 2951, 1011, 2240, 1005, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/AnalyticalBinding.js
function(iRequestType, sGroupId, iLevel, oGroupContextFilter, iStartIndex, iLength, bAvoidLengthUpdate, bUseStartIndexForSkip) { var aHierarchyLevelFilters; // (1) set up analytical OData request object var oAnalyticalQueryRequest = new odata4analytics.QueryResultRequest(that.oAnalyticalQueryResult); o...
javascript
function(iRequestType, sGroupId, iLevel, oGroupContextFilter, iStartIndex, iLength, bAvoidLengthUpdate, bUseStartIndexForSkip) { var aHierarchyLevelFilters; // (1) set up analytical OData request object var oAnalyticalQueryRequest = new odata4analytics.QueryResultRequest(that.oAnalyticalQueryResult); o...
[ "function", "(", "iRequestType", ",", "sGroupId", ",", "iLevel", ",", "oGroupContextFilter", ",", "iStartIndex", ",", "iLength", ",", "bAvoidLengthUpdate", ",", "bUseStartIndexForSkip", ")", "{", "var", "aHierarchyLevelFilters", ";", "// (1) set up analytical OData reques...
local helper function for requesting members of a given level (across groups) - copied from _prepareGroupMembersQueryRequest & adapted
[ "local", "helper", "function", "for", "requesting", "members", "of", "a", "given", "level", "(", "across", "groups", ")", "-", "copied", "from", "_prepareGroupMembersQueryRequest", "&", "adapted" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/AnalyticalBinding.js#L2171-L2331
train
Analytical query request
[ 30522, 3853, 1006, 20868, 2063, 15500, 13874, 1010, 22214, 22107, 3593, 1010, 17869, 15985, 1010, 13958, 22107, 8663, 18209, 8873, 21928, 1010, 21541, 8445, 22254, 30524, 1010, 7793, 7559, 7629, 3207, 2595, 29278, 5488, 2361, 1007, 1063, 1307...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/extensibility/Package.js
installFromPath
function installFromPath(path, filenameHint) { var d = new $.Deferred(); install(path, filenameHint) .done(function (result) { result.keepFile = true; var installationStatus = result.installationStatus; if (installationStatus === Installation...
javascript
function installFromPath(path, filenameHint) { var d = new $.Deferred(); install(path, filenameHint) .done(function (result) { result.keepFile = true; var installationStatus = result.installationStatus; if (installationStatus === Installation...
[ "function", "installFromPath", "(", "path", ",", "filenameHint", ")", "{", "var", "d", "=", "new", "$", ".", "Deferred", "(", ")", ";", "install", "(", "path", ",", "filenameHint", ")", ".", "done", "(", "function", "(", "result", ")", "{", "result", ...
On success, resolves with an extension metadata object; at that point, the extension has already started running in Brackets. On failure (including validation errors), rejects with an error object. An error object consists of either a string error code OR an array where the first entry is the error code and the remain...
[ "On", "success", "resolves", "with", "an", "extension", "metadata", "object", ";", "at", "that", "point", "the", "extension", "has", "already", "started", "running", "in", "Brackets", ".", "On", "failure", "(", "including", "validation", "errors", ")", "reject...
d5d00d43602c438266d32b8eda8f8a3ca937b524
https://github.com/adobe/brackets/blob/d5d00d43602c438266d32b8eda8f8a3ca937b524/src/extensibility/Package.js#L304-L335
train
Installs the extension from the given path.
[ 30522, 3853, 16500, 19699, 25377, 8988, 1006, 4130, 1010, 5371, 18442, 10606, 2102, 1007, 1063, 13075, 1040, 1027, 2047, 1002, 1012, 13366, 28849, 2094, 1006, 1007, 1025, 16500, 1006, 4130, 1010, 5371, 18442, 10606, 2102, 1007, 1012, 2589, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.m/src/sap/m/TimePickerSlider.js
function (oEvent) { var iPageY = oEvent.changedTouches && oEvent.changedTouches.length ? oEvent.changedTouches[0].pageY : oEvent.pageY; if (this._bIsDrag === false) { this.fireTap(oEvent); this._dragSession = null; } this._bIsDrag = true; if (!this.getIsExpanded()) { this._dragSession = nu...
javascript
function (oEvent) { var iPageY = oEvent.changedTouches && oEvent.changedTouches.length ? oEvent.changedTouches[0].pageY : oEvent.pageY; if (this._bIsDrag === false) { this.fireTap(oEvent); this._dragSession = null; } this._bIsDrag = true; if (!this.getIsExpanded()) { this._dragSession = nu...
[ "function", "(", "oEvent", ")", "{", "var", "iPageY", "=", "oEvent", ".", "changedTouches", "&&", "oEvent", ".", "changedTouches", ".", "length", "?", "oEvent", ".", "changedTouches", "[", "0", "]", ".", "pageY", ":", "oEvent", ".", "pageY", ";", "if", ...
Default onTouchEnd handler. @param {jQuery.Event} oEvent Event object
[ "Default", "onTouchEnd", "handler", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/TimePickerSlider.js#L1282-L1300
train
Handles the touchend event
[ 30522, 3853, 1006, 1051, 18697, 3372, 1007, 1063, 13075, 24531, 3351, 2100, 1027, 1051, 18697, 3372, 1012, 2904, 24826, 8376, 1004, 1004, 1051, 18697, 3372, 1012, 2904, 24826, 8376, 1012, 3091, 1029, 1051, 18697, 3372, 1012, 2904, 24826, 83...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
build/transpile.js
transpileDerivedExchangeClass
function transpileDerivedExchangeClass (contents) { let exchangeClassDeclarationMatches = contents.match (/^module\.exports\s*=\s*class\s+([\S]+)\s+extends\s+([\S]+)\s+{([\s\S]+?)^};*/m) // log.green (file, exchangeClassDeclarationMatches[3]) let className = exchangeClassDeclarationMatches[1] let bas...
javascript
function transpileDerivedExchangeClass (contents) { let exchangeClassDeclarationMatches = contents.match (/^module\.exports\s*=\s*class\s+([\S]+)\s+extends\s+([\S]+)\s+{([\s\S]+?)^};*/m) // log.green (file, exchangeClassDeclarationMatches[3]) let className = exchangeClassDeclarationMatches[1] let bas...
[ "function", "transpileDerivedExchangeClass", "(", "contents", ")", "{", "let", "exchangeClassDeclarationMatches", "=", "contents", ".", "match", "(", "/", "^module\\.exports\\s*=\\s*class\\s+([\\S]+)\\s+extends\\s+([\\S]+)\\s+{([\\s\\S]+?)^};*", "/", "m", ")", "// log.green (file...
----------------------------------------------------------------------------
[ "----------------------------------------------------------------------------" ]
8168069b9180a465532905e225586215e115a565
https://github.com/ccxt/ccxt/blob/8168069b9180a465532905e225586215e115a565/build/transpile.js#L587-L694
train
transpileDerivedExchangeClass - Transpiles a class declaration into a derived class
[ 30522, 3853, 9099, 22090, 4063, 3512, 3207, 2595, 22305, 8586, 27102, 1006, 8417, 1007, 1063, 2292, 3863, 26266, 3207, 20464, 25879, 3258, 18900, 8376, 1027, 8417, 1012, 2674, 1006, 1013, 1034, 11336, 1032, 1012, 14338, 1032, 1055, 1008, 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...
eslint/eslint
lib/rules/comma-spacing.js
report
function report(node, loc, otherNode) { context.report({ node, fix(fixer) { if (options[loc]) { if (loc === "before") { return fixer.insertTextBefore(node, " "); } ...
javascript
function report(node, loc, otherNode) { context.report({ node, fix(fixer) { if (options[loc]) { if (loc === "before") { return fixer.insertTextBefore(node, " "); } ...
[ "function", "report", "(", "node", ",", "loc", ",", "otherNode", ")", "{", "context", ".", "report", "(", "{", "node", ",", "fix", "(", "fixer", ")", "{", "if", "(", "options", "[", "loc", "]", ")", "{", "if", "(", "loc", "===", "\"before\"", ")"...
Reports a spacing error with an appropriate message. @param {ASTNode} node The binary expression node to report. @param {string} loc Is the error "before" or "after" the comma? @param {ASTNode} otherNode The node at the left or right of `node` @returns {void} @private
[ "Reports", "a", "spacing", "error", "with", "an", "appropriate", "message", "." ]
bc0819c94aad14f7fad3cbc2338ea15658b0f272
https://github.com/eslint/eslint/blob/bc0819c94aad14f7fad3cbc2338ea15658b0f272/lib/rules/comma-spacing.js#L74-L104
train
Reports a node with an error message.
[ 30522, 3853, 3189, 1006, 13045, 1010, 8840, 2278, 1010, 2060, 3630, 3207, 1007, 1063, 6123, 1012, 3189, 1006, 1063, 13045, 1010, 8081, 1006, 8081, 2121, 1007, 1063, 2065, 1006, 7047, 1031, 8840, 2278, 1033, 1007, 1063, 2065, 1006, 8840, 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
_getAuthorizationToken
function _getAuthorizationToken() { return spinner( new Promise((resolve, reject) => ECR.sdk .getAuthorizationToken({}) .promise() .then(data => { if (!_.has(data, 'authorizationData.0')) { reject(new Err...
javascript
function _getAuthorizationToken() { return spinner( new Promise((resolve, reject) => ECR.sdk .getAuthorizationToken({}) .promise() .then(data => { if (!_.has(data, 'authorizationData.0')) { reject(new Err...
[ "function", "_getAuthorizationToken", "(", ")", "{", "return", "spinner", "(", "new", "Promise", "(", "(", "resolve", ",", "reject", ")", "=>", "ECR", ".", "sdk", ".", "getAuthorizationToken", "(", "{", "}", ")", ".", "promise", "(", ")", ".", "then", ...
Fetch Authentication token from AWS to authenticate with Docker @returns {Promise} Returns a promise that resolves when the informations are retrieved. @private
[ "Fetch", "Authentication", "token", "from", "AWS", "to", "authenticate", "with", "Docker" ]
f76fa8de0818ce6bda6c7b1455942e2a9b0ae3ff
https://github.com/jhipster/generator-jhipster/blob/f76fa8de0818ce6bda6c7b1455942e2a9b0ae3ff/generators/aws-containers/aws-client.js#L240-L255
train
Get the authorization token from the SDK
[ 30522, 3853, 1035, 2131, 4887, 27844, 3989, 18715, 2368, 1006, 1007, 1063, 2709, 6714, 3678, 1006, 2047, 4872, 1006, 1006, 10663, 1010, 15454, 1007, 1027, 1028, 14925, 2099, 1012, 17371, 2243, 1012, 2131, 4887, 27844, 3989, 18715, 2368, 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...
airyland/vux
src/components/range/lib/events.js
Events
function Events (el, obj) { if (!(this instanceof Events)) return new Events(el, obj) if (!el) throw new Error('element required') if (!obj) throw new Error('object required') this.el = el this.obj = obj this._events = {} }
javascript
function Events (el, obj) { if (!(this instanceof Events)) return new Events(el, obj) if (!el) throw new Error('element required') if (!obj) throw new Error('object required') this.el = el this.obj = obj this._events = {} }
[ "function", "Events", "(", "el", ",", "obj", ")", "{", "if", "(", "!", "(", "this", "instanceof", "Events", ")", ")", "return", "new", "Events", "(", "el", ",", "obj", ")", "if", "(", "!", "el", ")", "throw", "new", "Error", "(", "'element required...
Initialize an `Events` with the given `el` object which events will be bound to, and the `obj` which will receive method calls. @param {Object} el @param {Object} obj @api public
[ "Initialize", "an", "Events", "with", "the", "given", "el", "object", "which", "events", "will", "be", "bound", "to", "and", "the", "obj", "which", "will", "receive", "method", "calls", "." ]
484fc3c18bdca99b0c08efbb678c0ee0f5ceedd6
https://github.com/airyland/vux/blob/484fc3c18bdca99b0c08efbb678c0ee0f5ceedd6/src/components/range/lib/events.js#L24-L31
train
Event object.
[ 30522, 3853, 2824, 1006, 3449, 1010, 27885, 3501, 1007, 1063, 2065, 1006, 999, 1006, 2023, 6013, 11253, 2824, 1007, 1007, 2709, 2047, 2824, 1006, 3449, 1010, 27885, 3501, 1007, 2065, 1006, 999, 3449, 1007, 5466, 2047, 7561, 1006, 1005, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...