Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.58472276", "0.5728634", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396",...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function Scheduler(ecInstance, api, dataProcessorHandlers, visualHandlers) { this.ecInstance = ecInstance; this.api = api; this.unfinished; // Fix current processors in case that in some rear cases that // processors might be registered after echarts instance created. // Register processors incrementally for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", ...
0.0
-1
Only some legacy stage handlers (usually in echarts extensions) are pure function. To ensure that they can work normally, they should work in block mode, that is, they should not be started util the previous tasks finished. So they cause the progressive rendering disabled. We try to detect the series type, to narrow do...
function detectSeriseType(legacyFunc) { seriesType = null; try { // Assume there is no async when calling `eachSeriesByType`. legacyFunc(ecModelMock, apiMock); } catch (e) {} return seriesType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRe...
[ "0.55556005", "0.55556005", "0.55556005", "0.55556005", "0.55556005", "0.55556005", "0.5188472", "0.5092429", "0.5010943", "0.49098608", "0.4895438", "0.47905648", "0.47741607", "0.47344053", "0.468847", "0.46273974", "0.46089348", "0.4607397", "0.45870084", "0.45822388", "0....
0.49039078
12
Checks whether we're in the Node.js or Browser environment
function isNodeEnv() { return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isNodeEnvironment () {\n if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n return false\n }\n return true\n}", "function isNodeEnv() {\n\t // explicitly check for browser bundles as those can be optimized statically\n\t // by terser/rollup.\n\t return (\n\t !isBrowser...
[ "0.8173587", "0.79640615", "0.7947373", "0.79303575", "0.79016584", "0.78729254", "0.78729254", "0.7831705", "0.77341163", "0.7697025", "0.7667353", "0.76627254", "0.75735116", "0.74987024", "0.7341295", "0.7226947", "0.72189665", "0.7194779", "0.71641034", "0.7158115", "0.71...
0.7912755
5
Requires a module which is protected against bundler minification.
function dynamicRequire(mod, request) { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access return mod.require(request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isVendor(module) {\n var userRequest = module.userRequest;\n if (typeof userRequest !== 'string') {\n return false;\n }\n // handle paths like ... node_modules/some-loader.js!app.css\n var parts = userRequest.split('!');\n var path = parts[parts.length - 1];\n return path.indexOf('node_modules')...
[ "0.5956874", "0.59230155", "0.5757844", "0.5748891", "0.57327366", "0.569161", "0.56815684", "0.5675172", "0.56721777", "0.5546803", "0.5513292", "0.5507152", "0.54904824", "0.5463262", "0.5445428", "0.5444974", "0.5429205", "0.54162806", "0.5413627", "0.53695875", "0.5368501...
0.5364112
25
Normalizes data from the request object, accounting for framework differences.
function extractNodeRequestData(req, keys) { if (keys === void 0) { keys = DEFAULT_REQUEST_KEYS; } // make sure we can safely use dynamicRequire below if (!isNodeEnv()) { throw new Error("Can't get node request data outside of a node environment"); } var requestData = {}; // headers: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeReponseData(data) {\n // New reference is required to never influence in another operation\n var _data = _.clone(data);\n\n if (_data._key) {\n // Replace _key for key\n _data.key = data._key;\n }\n\n if (_.isNumber(_data._pi)) {\n // Replace _pi for priority\n...
[ "0.65899986", "0.63519746", "0.63153577", "0.6311833", "0.6121214", "0.60882616", "0.5803269", "0.5741578", "0.56778985", "0.5576039", "0.547102", "0.5451973", "0.54297554", "0.5427569", "0.5414031", "0.53950083", "0.5372084", "0.53426385", "0.53074175", "0.5293618", "0.52936...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function RadiusAxis(scale, radiusExtent) { Axis.call(this, 'radius', scale, radiusExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = 'category'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0...
0.0
-1
all visuals should be in original state.
function brushed(rangeInfoList) { return !!rangeInfoList.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setVisual () {\n window.cancelAnimationFrame(drawVisual)\n visualize()\n }", "resetLayers() {\n this.underlays = [];\n this.layersContainers.forEach((container) => {\n container.innerHTML = '';\n });\n }", "reset() {\n this.alpha = 0;\n this.y = 0;\n }", "funct...
[ "0.6679147", "0.6556555", "0.63043183", "0.6294563", "0.62732536", "0.6272323", "0.6190434", "0.6188055", "0.61700356", "0.6157433", "0.61476946", "0.6132609", "0.61142915", "0.6109966", "0.6080713", "0.6067858", "0.60518014", "0.60453874", "0.60399747", "0.60237604", "0.6023...
0.0
-1
CONCATENATED MODULE: ./node_modules/vueloader/lib/runtime/componentNormalizer.js / globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __vue_normalize__(a,b,c,d,e){var f=(\"function\"==typeof c?c.options:c)||{};// For security concerns, we use only base name in production mode.\nreturn f.__file=\"/Users/hadefication/Packages/vue-chartisan/src/components/Pie.vue\",f.render||(f.render=a.render,f.staticRenderFns=a.staticRenderFns,f._compile...
[ "0.67436", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0....
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function makeRectPanelClipPath(rect) { rect = normalizeRect(rect); return function (localPoints, transform) { return graphicUtil.clipPointsByRect(localPoints, rect); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", ...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(seriesType, actionInfos) { zrUtil.each(actionInfos, function (actionInfo) { actionInfo.update = 'updateView'; /** * @payload * @property {string} seriesName * @property {string} name */ echarts.registerAction(actionInfo, function (payload, ecModel) { var select...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(ecModel) { ecModel.eachSeriesByType('themeRiver', function (seriesModel) { var data = seriesModel.getData(); var rawData = seriesModel.getRawData(); var colorList = seriesModel.get('color'); var idxMap = createHashMap(); data.each(function (idx) { idxMap.set(data.getRawInde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.4...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function updateMarkerLayout(mpData, seriesModel, api) { var coordSys = seriesModel.coordinateSystem; mpData.each(function (idx) { var itemModel = mpData.getItemModel(idx); var point; var xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth()); var yPx = numberUtil.parsePercent(itemModel.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.4...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function DefaultDataProvider(source, dimSize) { if (!Source.isInstance(source)) { source = Source.seriesDataToSource(source); } this._source = source; var data = this._data = source.data; var sourceFormat = source.sourceFormat; // Typed array. TODO IE10+? if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jdcDataProvider(o){\n\t//Too many characters/values set\n\tvar ret = {};\n\tvar cache = {}; //= dataArray; //cached slices\n\tvar calc = {}; //calculated definitions\n\tvar o;\n\n\tvar def = {\n\t\tall : '_', //used for where no filter on dimension\n\t\tfn : 'fn', //used for function branching\n\t\tresult...
[ "0.63014805", "0.5726598", "0.5682507", "0.55231667", "0.5451085", "0.54473096", "0.5332241", "0.53161055", "0.5306075", "0.52250314", "0.5187884", "0.51667017", "0.5077823", "0.50438917", "0.50388014", "0.4983998", "0.49754262", "0.495078", "0.49497983", "0.49245393", "0.491...
0.60213345
4
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function dimAxisMapper(dim) { return this._axes[dim]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Center() { return [this.x1 + (0.5 * this.x2 - this.x1), this.y1 + (0.5 * this.y2 - this.y1)]; }", "get Center() { return [this.x1 + (0.5 * this.x2 - this.x1), this.y1 + (0.5 * this.y2 - this.y1)]; }", "center() {\n let x_center = 0, y_center = 0;\n const coords = this.getCoords();\n for (let...
[ "0.589108", "0.589108", "0.57303226", "0.5684142", "0.56726396", "0.561011", "0.5600579", "0.5583609", "0.55618536", "0.55525583", "0.5520512", "0.5502633", "0.54673386", "0.54541224", "0.54532754", "0.5447362", "0.5438439", "0.5435534", "0.54311943", "0.54281527", "0.5427857...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function getIsInPiecewiseRange(dataExtent, pieceList, selected) { var dataSpan = dataExtent[1] - dataExtent[0]; pieceList = zrUtil.map(pieceList, function (piece) { return { interval: [(piece.interval[0] - dataExtent[0]) / dataSpan, (piece.interval[1] - dataExtent[0]) / dataSpan] }; }); var len = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.4...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(ecModel) { var stackInfoMap = createHashMap(); ecModel.eachSeries(function (seriesModel) { var stack = seriesModel.get('stack'); // Compatibal: when `stack` is set as '', do not stack. if (stack) { var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []); var...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function computeSeries(buffer, sampletype, label, currentTimestamp) {\n return {\n uncompressSamples: [\n {\n data_relative_timestamp: currentTimestamp,\n data: {\n value: getMeasure(buffer, sampletype),\n label: label\n }\n }\n ],\n codingType: 0,\n co...
[ "0.5395717", "0.5296205", "0.526486", "0.50855595", "0.4923552", "0.4848148", "0.4844965", "0.48335835", "0.48011985", "0.47947785", "0.47552708", "0.47359625", "0.47311857", "0.4707583", "0.46699825", "0.4665293", "0.4662054", "0.46503162", "0.46456394", "0.46434087", "0.462...
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.5848589", "0.5729015", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "...
0.0
-1
The `wrapper` function encapsulates all of the throttling / debouncing functionality and when executed will limit the rate at which `callback` is executed.
function wrapper () { var self = this; var elapsed = Number(new Date()) - lastExec; var args = arguments; // Execute `callback` and update the `lastExec` timestamp. function exec () { lastExec = Number(new Date()); callback.apply(self, args); } // If `debounceMode` is true (at begin) this is used...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wrapper () {\n\t\n\t\t\tvar self = this;\n\t\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\t\tvar args = arguments;\n\t\n\t\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\t\tfunction exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}\n\...
[ "0.76545846", "0.75691485", "0.75119", "0.7482876", "0.7476267", "0.7465964", "0.74465024", "0.7236648", "0.72273993", "0.72273993", "0.72273993", "0.7219503", "0.7204663", "0.7197319", "0.71716654", "0.7170736", "0.7125604", "0.7117773", "0.70514154", "0.7033687", "0.7033687...
0.75165534
14
Execute `callback` and update the `lastExec` timestamp.
function exec () { lastExec = Number(new Date()); callback.apply(self, args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }", "function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }", "function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, arguments_);\n\t }", "functi...
[ "0.7534715", "0.7534715", "0.74420613", "0.7414292", "0.72901076", "0.72901076", "0.72901076", "0.72901076", "0.72235554", "0.72235554", "0.72235554", "0.72235554", "0.72235554", "0.72182584", "0.7175835", "0.71624535", "0.71624535", "0.71268946", "0.63363063", "0.6257808", "...
0.7207457
27
If `debounceMode` is true (at begin) this is used to clear the flag to allow future `callback` executions.
function clear () { timeoutID = undefined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag", "function exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag", "function debounce(cal...
[ "0.75899327", "0.75899327", "0.7187051", "0.6593778", "0.6560421", "0.6506219", "0.64902383", "0.64902383", "0.64902383", "0.64900494", "0.63927615", "0.63781947", "0.62871194", "0.6223693", "0.6153537", "0.6110939", "0.59642303", "0.5955426", "0.59527093", "0.59446585", "0.5...
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.5848589", "0.5729015", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "...
0.0
-1
.dirname, .basename, and .extname methods are extracted from Node.js v8.11.1, backported and transplited with Babel, with backwardscompat fixes Copyright Joyent, Inc. and other Node contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
function normalizeArray(parts, allowAboveRoot) { // if the path tries to go above the root, `up` ends up > 0 var up = 0; for (var i = parts.length - 1; i >= 0; i--) { var last = parts[i]; if (last === '.') { parts.splice(i, 1); } else if (last === '..') { parts.splice(i, 1); up++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeArray(parts,allowAboveRoot){// if the path tries to go above the root, `up` ends up > 0\nvar up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==='.'){parts.splice(i,1);}else if(last==='..'){parts.splice(i,1);up++;}else if(up){parts.splice(i,1);up--;}}// if the path is allowed to g...
[ "0.6246232", "0.62140876", "0.6013123", "0.5982529", "0.5973695", "0.5966872", "0.58964515", "0.58964515", "0.58888525", "0.5883687", "0.58758354", "0.58038723", "0.5782002", "0.5782002", "0.5782002", "0.5782002", "0.5782002", "0.5782002", "0.5778279", "0.57694095", "0.576392...
0.0
-1
Data in excludeDimensions is copied, otherwise transfered.
function cloneListForMapAndSample(original, excludeDimensions) { var allDimensions = original.dimensions; var list = new List(zrUtil.map(allDimensions, original.getDimensionInfo, original), original.hostModel); // FIXME If needs stackedOn, value may already been stacked transferProperties(list, original); var ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exclude_data() {\n\t new_data = _.difference(data, actives());\n\t if (new_data.length == 0) {\n\t alert(\"I don't mean to be rude, but I can't let you remove all the data.\\n\\nTry selecting just a few data points then clicking 'Exclude'.\");\n\t return false;\n\t }\n\t data = new_data;\n\t re...
[ "0.6004552", "0.58761233", "0.5863451", "0.5723548", "0.5459735", "0.5356632", "0.5327947", "0.526774", "0.5105735", "0.5102186", "0.5066668", "0.50662035", "0.502312", "0.5011056", "0.49681273", "0.49657607", "0.49570408", "0.49260467", "0.49256632", "0.491796", "0.49178806"...
0.57861066
7
Do some preprocess to avoid error happened when interpolating from arr0 to arr1
function fillArr(arr0, arr1, arrDim) { var arr0Len = arr0.length; var arr1Len = arr1.length; if (arr0Len !== arr1Len) { // FIXME Not work for TypedArray var isPreviousLarger = arr0Len > arr1Len; if (isPreviousLarger) { // Cut the previous arr0.length = arr1Len; } else { // Fill...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpolate (arr0, arr1, p) {\n var q = 1 - p;\n return [q * arr0[0] + p * arr1[0], q * arr0[1] + p * arr1[1], q * arr0[2] + p * arr1[2]];\n }", "function prioritize(arr1, callback){}", "function doubleTrouble(arr){\n arr.length *= 2;\n for(var i = ar...
[ "0.6116968", "0.56331503", "0.53370744", "0.5176731", "0.5164284", "0.5164284", "0.51372236", "0.51000935", "0.508971", "0.5086835", "0.5077008", "0.5048154", "0.504141", "0.5031001", "0.5022402", "0.4969825", "0.49393553", "0.48832396", "0.4880707", "0.4873582", "0.48699877"...
0.51098967
16
Prepare dataIndex for outside usage, where dataIndex means rawIndex, and dataIndexInside means filtered index.
function makeHighDownBatch(batch, visualMapModel) { zrUtil.each(batch || [], function (batchItem) { if (batchItem.dataIndex != null) { batchItem.dataIndexInside = batchItem.dataIndex; batchItem.dataIndex = null; } batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.compone...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createInternalItemsSource() {\n internalItemsSource = options.itemsSource;\n internalItemsSource = setupSorting(internalItemsSource);\n internalItemsSource = setupFilters(internalItemsSource);\n internalItemsSource = setupIndex(internalItemsSource);\n }",...
[ "0.51373285", "0.51373285", "0.48970872", "0.48970872", "0.48970872", "0.482369", "0.482369", "0.482369", "0.48140103", "0.47091633", "0.45909852", "0.44129932", "0.43725613", "0.42502397", "0.42042467", "0.4197168", "0.41751447", "0.41635278", "0.4151749", "0.41436946", "0.4...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(nodes, edges, seriesModel, directed, beforeLink) { // ??? TODO // support dataset? var graph = new Graph(directed); for (var i = 0; i < nodes.length; i++) { graph.addNode(zrUtil.retrieve( // Id, name, dataIndex nodes[i].id, nodes[i].name, i), i); } var linkNameList = []; var va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) { return axisModel.getCoordSysModel() === gridModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isAxisUsedInTheGrid(axisModel,gridModel,ecModel){return ecModel.getComponent('grid',axisModel.get('gridIndex')) === gridModel;}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridMod...
[ "0.7949989", "0.7594166", "0.74707824", "0.74536157", "0.744521", "0.73065215", "0.73065215", "0.60898906", "0.60467076", "0.5842424", "0.58246017", "0.564273", "0.5627384", "0.551221", "0.54815674", "0.54344904", "0.54317445", "0.5330635", "0.5321357", "0.53115165", "0.53012...
0.75602084
9
The implementation of this function was originally copied from "d3.js" < with some modifications made for this program. See the license statement at the head of this file.
function defaultSeparation(node1, node2) { return node1.parentNode === node2.parentNode ? 1 : 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dd3(s) {\n\t//Create a svg\n\tvar width = 800;\n\tvar height = 400;\n\tvar svg = d3.select(\"body\")\n\t\t\t\t.append(\"svg\")\n\t\t\t\t.attr(\"width\", width)\n\t\t\t\t.attr(\"height\", height);\n\n\t//Put information from the object into an array\n\tvar data = [];\n\tfor(var k in s) {\n\t\tdata.push({\n...
[ "0.60988605", "0.58762753", "0.5790278", "0.57821137", "0.5664158", "0.5621234", "0.559586", "0.5564337", "0.55374056", "0.5500207", "0.5463439", "0.5448093", "0.5433864", "0.54269993", "0.5418614", "0.5401882", "0.53843695", "0.53351146", "0.53228676", "0.5318037", "0.531771...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function legendSelectActionHandler(methodName, payload, ecModel) { var selectedMap = {}; var isToggleSelect = methodName === 'toggleSelected'; var isSelected; // Update all legend components ecModel.eachComponent('legend', function (legendModel) { if (isToggleSelect && isSelected != null) { // Force ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", ...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(ecModel) { var processedMapType = {}; ecModel.eachSeriesByType('map', function (mapSeries) { var mapType = mapSeries.getMapType(); if (mapSeries.getHostGeoModel() || processedMapType[mapType]) { return; } var mapSymbolOffsets = {}; zrUtil.each(mapSeries.seriesGroup, fun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0...
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.58472276", "0.5728634", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396",...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function normalize(a) { if (!(a instanceof Array)) { a = [a, a]; } return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio pl...
[ "0.47174537", "0.4658246", "0.45285463", "0.45032862", "0.44835344", "0.44350168", "0.4382653", "0.43627265", "0.43324777", "0.4301593", "0.42541128", "0.42418656", "0.4221815", "0.42179117", "0.41816333", "0.41801563", "0.41795337", "0.417805", "0.4176735", "0.41745046", "0....
0.0
-1
Mouse wheel (and 2finger trackpad) support on the web sucks. It is complicated, thus this doc is long and (hopefully) detailed enough to answer your questions. If you need to react to the mouse wheel in a predictable way, this code is like your bestest friend. hugs As of today, there are 4 DOM event types you can liste...
function normalizeWheel(/*object*/ event) /*object*/ { var sX = 0, sY = 0, // spinX, spinY pX = 0, pY = 0; // pixelX, pixelY // Legacy if ('detail' in event) { sY = event.detail; } if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; } if ('wheelDeltaY' in event) { sY = -event.w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wheel(event) {\n var delta = 0;\n if (!event) /* For IE. */\n event = window.event;\n\n console.log('event.wheelDelta:' + event.wheelDelta);\n\n if (event.wheelDelta) { /* IE/Opera. */\n // delta = event.wheelDelta / ...
[ "0.74452955", "0.7360421", "0.7360421", "0.73285323", "0.7291883", "0.72836906", "0.72627944", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72465014", "0.72219574", "0.7214204", "0.70123476", "0.68367326", ...
0.7408591
12
unused harmony export Store / unused harmony export createLogger / unused harmony export createNamespacedHelpers / unused harmony export install / unused harmony export mapActions / unused harmony export mapGetters / unused harmony export mapMutations / unused harmony export mapState /! vuex v3.6.2 (c) 2021 Evan You
function applyMixin (Vue) { var version = Number(Vue.version.split('.')[0]); if (version >= 2) { Vue.mixin({ beforeCreate: vuexInit }); } else { // override init and inject vuex init procedure // for 1.x backwards compatibility. var _init = Vue.prototype._init; Vue.prototype._init = function ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vuexInit(){var options=this.$options;// store injection\n\tif(options.store){this.$store=options.store;}else if(options.parent&&options.parent.$store){this.$store=options.parent.$store;}}", "function vuexInit() {\n\t var options = this.$options;\n\t var store = options.store;\n\t var vuex...
[ "0.6092144", "0.5971127", "0.5956504", "0.58335847", "0.5815055", "0.58010286", "0.57920104", "0.57920104", "0.57920104", "0.5788793", "0.57770205", "0.57744676", "0.57668114", "0.57354736", "0.57161903", "0.57111406", "0.5709962", "0.57018363", "0.56991994", "0.565581", "0.5...
0.0
-1
Vuex init hook, injected into each instances init hooks list.
function vuexInit () { var options = this.$options; // store injection if (options.store) { this.$store = typeof options.store === 'function' ? options.store() : options.store; } else if (options.parent && options.parent.$store) { this.$store = options.parent.$store; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "function vuexInit () {\n\t var op...
[ "0.7631415", "0.7631415", "0.7631415", "0.75977623", "0.75614333", "0.7543656", "0.7533113", "0.751491", "0.751491", "0.751491", "0.751491", "0.751491", "0.75131863", "0.7491084" ]
0.0
-1
make localized dispatch, commit, getters and state if there is no namespace, just use root ones
function makeLocalContext (store, namespace, path) { var noNamespace = namespace === ''; var local = { dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) { var args = unifyObjectStyle(_type, _payload, _options); var payload = args.payload; var options = args.options...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NamespaceContext(){\n this.ns = null; //full namespace string e.g. www.bond.co.uk/jsocs/something\n this.type_ = {}; //e.g. type_[mytype] types referenceable by rulesets in this or parent context\n //this.rootRuleSet = null; //tree of RuleSets NOT USED?\n this.ns_ = {}; //e.g. ns_[prefix] = {other ...
[ "0.54127026", "0.5343469", "0.5306553", "0.5285096", "0.51793885", "0.51739925", "0.5150764", "0.515004", "0.5139046", "0.5139046", "0.5139046", "0.513132", "0.5114281", "0.5113796", "0.51070684", "0.5104122", "0.5082985", "0.50759965", "0.50759965", "0.5075922", "0.5069613",...
0.5192131
10
Credits: borrowed code from fcomb/reduxlogger
function createLogger (ref) { if ( ref === void 0 ) ref = {}; var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true; var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; }; var transformer = ref.transformer; if ( transformer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function logger() {}", "log() {}", "function createLogger() {\n // eslint-disable-next-line no-unused-vars\n return store => next => action => {\n let formattedPayload = '';\n const actionFormatter = actionFormatters[action.type];\n if (typeof actionFormatter === 'function') {\n formattedPayloa...
[ "0.6768441", "0.66658837", "0.6609707", "0.66028816", "0.63250905", "0.6218309", "0.6113801", "0.6111682", "0.6106845", "0.6086207", "0.6064796", "0.6064796", "0.6064796", "0.6049157", "0.60338503", "0.60278296", "0.5969888", "0.59581715", "0.59551686", "0.5951857", "0.594973...
0.57609177
69
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel) { var axis = axisModel.axis; if (axis.scale.isBlank()) { return; } var splitAreaModel = axisModel.getModel('splitArea'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var areaColors = areaStyleModel.get('color...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function dataToCoordSize(dataSize, dataItem) { // dataItem is necessary in log axis. return zrUtil.map(['Radius', 'Angle'], function (dim, dimIdx) { var axis = this['get' + dim + 'Axis'](); var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; var method = 'dataTo' + dim; var result =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.4...
0.0
-1
Base class of all displayable graphic objects
function Displayable(opts) { opts = opts || {}; Element.call(this, opts); // Extend properties for (var name in opts) { if (opts.hasOwnProperty(name) && name !== 'style') { this[name] = opts[name]; } } /** * @type {module:zrender/graphic/Style} */ this.style = new Style(opts.style, th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ObjectOrientedRenderer3(){}", "function ObjectOrientedRenderer3() {}", "function ObjectOrientedRenderer3() {}", "function ObjectOrientedRenderer3() {}", "function BaseRenderer() {\n }", "get graphic() { return this._graphic; }", "function Displayable(opts){opts = opts || {};Element.call(thi...
[ "0.69194615", "0.6688154", "0.6688154", "0.6688154", "0.66517085", "0.66406757", "0.66051143", "0.65034276", "0.65034276", "0.65007764", "0.6476872", "0.6475505", "0.6472556", "0.64547557", "0.6442107", "0.6425698", "0.63875705", "0.63875705", "0.62926406", "0.626307", "0.626...
0.61626756
26
Zepto.js (c) 20102013 Thomas Fuchs Zepto.js may be freely distributed under the MIT license.
function detect(ua) { var os = {}; var browser = {}; // var webkit = ua.match(/Web[kK]it[\/]{0,1}([\d.]+)/); // var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/); // var ipad = ua.match(/(iPad).*OS\s([\d_]+)/); // var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/); // var iphone = !ipad && ua.match(/(iPhone...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function zXmlDom() {\n\n}", "function ie(){Z.apply(this,arguments),this._timer=null,this._input=null}", "function ie(e,r){var n=o(e),a=void 0===w[0]\nr=void 0===r||!!r,t.animate&&!a&&i(_,t.cssClasses.tap,t.animationDuration),E.forEach((function(e){re(e,function(e,r){return null===e||!1===e||void 0===e?w[r]:(\"...
[ "0.54452085", "0.5397458", "0.52313274", "0.5162148", "0.51133716", "0.5104136", "0.50951636", "0.50460666", "0.49960187", "0.4994283", "0.4949351", "0.49335945", "0.49236035", "0.49236035", "0.49055308", "0.48984432", "0.4881266", "0.48740616", "0.48456576", "0.4838046", "0....
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.5847333", "0.57279235", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897",...
0.0
-1
Checks whether given value has a then function.
function isThenable(wat) { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access return Boolean(wat && wat.then && typeof wat.then === 'function'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _isThennable(value) {\n return (value != null) && (value === Object(value)) && value.then &&\n typeof value.then === 'function';\n }", "function getThen(value) {\n var t = typeof value;\n if (value && (t === 'object' || t === 'function')) {\n var then = value.then;\n ...
[ "0.80465287", "0.67174774", "0.66543853", "0.63882905", "0.62898785", "0.61310995", "0.6061243", "0.5992452", "0.5992452", "0.5992452", "0.5992452", "0.5941137", "0.5904761", "0.58698785", "0.58390975", "0.5826621", "0.5774215", "0.5774215", "0.57626593", "0.5748154", "0.5741...
0.5370377
81
Wrap a given object method with a higherorder function
function fill(source, name, replacementFactory) { if (!(name in source)) { return; } var original = source[name]; var wrapped = replacementFactory(original); // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work // otherwise it'll thro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function methodize(func) {\n return function(y) {\n return func(this, y);\n };\n}", "function methodize(func) {\n return function(y) {\n return func(this, y);\n };\n}", "function wrap(object, method, wrapper) {\n // remembers original function so that we can later reference it via\n ...
[ "0.7118614", "0.7118614", "0.69643897", "0.6961941", "0.68753374", "0.68540996", "0.68257385", "0.676492", "0.6675088", "0.6642421", "0.6556523", "0.6324649", "0.62975204", "0.62975204", "0.62975204", "0.6265594", "0.6245071", "0.62206024", "0.62135124", "0.61943644", "0.6186...
0.0
-1
Encodes given object into urlfriendly format
function urlEncode(object) { return Object.keys(object) .map(function (key) { return encodeURIComponent(key) + "=" + encodeURIComponent(object[key]); }) .join('&'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function urlEncode(object) {\n\t return Object.keys(object)\n\t .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)\n\t .join('&');\n\t}", "function urlEncode(object) {\n return Object.keys(object)\n .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])...
[ "0.7075348", "0.69900453", "0.6940979", "0.69122267", "0.69057965", "0.68956923", "0.6877793", "0.6877793", "0.6849789", "0.67005026", "0.66411144", "0.65580183", "0.6543892", "0.653108", "0.6506763", "0.64945924", "0.64945924", "0.6492153", "0.64404225", "0.6425823", "0.6425...
0.6817048
10
Transforms any object into an object literal with all its attributes attached to it.
function getWalkSource(value) { if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isError */ "d"])(value)) { var error = value; var err = { message: error.message, name: error.name, stack: error.stack, }; for (var i in error) { if (Object....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "objd(obj) {\n\n return toObject(obj);\n }", "static create(object) {\n let type = getType(object);\n let result;\n\n // this object has objectify?\n if (Objectify.hasObjectify(object)) {\n result = object.objectify();\n\n } else {\n // nope, we c...
[ "0.63033193", "0.6186111", "0.6181688", "0.6178447", "0.6162323", "0.6153746", "0.6097385", "0.6076546", "0.60002905", "0.59292245", "0.5837002", "0.5768401", "0.5759092", "0.57580835", "0.57580835", "0.57333976", "0.56712276", "0.56712276", "0.56712276", "0.56547177", "0.563...
0.0
-1
Calculates bytes size of input string
function utf8Length(value) { // eslint-disable-next-line no-bitwise return ~-encodeURI(value).split(/%..|./).length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function byteLength(string) {\n var length = 0 | 0;\n Array.prototype.forEach.call(string, function(chr) {\n var code = chr.charCodeAt(0);\n length += (code < 0x80) ? 1 : (code < 0x800) ? 2 : 3;\n });\n return length;\n}", "function sc_stringLength(s) { return s.length; }", "function stringByteLength...
[ "0.7504241", "0.7437573", "0.7372879", "0.7372879", "0.7289268", "0.7079476", "0.7076118", "0.7076118", "0.7001815", "0.6960768", "0.6960768", "0.6960768", "0.6928371", "0.689141", "0.689141", "0.689141", "0.689141", "0.689141", "0.689141", "0.689141", "0.689141", "0.688535...
0.0
-1
Calculates bytes size of input object
function jsonSize(value) { return utf8Length(JSON.stringify(value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sizeOf(obj) {\n if(obj !== null && obj !== undefined) {\n switch(typeof obj) {\n case 'number':\n bytes += 8;\n break;\n case 'string':\n bytes += obj.length * 2;\n break;\n case 'boolean':\n ...
[ "0.8283993", "0.7918841", "0.7464799", "0.7323434", "0.72478044", "0.7198797", "0.71818054", "0.7149525", "0.71246827", "0.70923644", "0.7086633", "0.690561", "0.68373615", "0.6832636", "0.6830192", "0.6819628", "0.67580444", "0.67553556", "0.67530406", "0.6649227", "0.664922...
0.61523384
99
Transform any nonprimitive, BigInt, or Symboltype value into a string. Acts as a noop on strings, numbers, booleans, null, and undefined.
function serializeValue(value) { var type = Object.prototype.toString.call(value); // Node.js REPL notation if (typeof value === 'string') { return value; } if (type === '[object Object]') { return '[Object]'; } if (type === '[object Array]') { return '[Array]'; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function coerceToString(value) {\n return \"\" + (value || '');\n}", "function toString(val){return val==null?'':(typeof val===\"undefined\"?\"undefined\":_typeof2(val))==='object'?JSON.stringify(val,null,2):String(val);}", "function toString(val){return val==null?'':(typeof val===\"undefined\"?\"undefined\...
[ "0.770156", "0.7288965", "0.7288965", "0.7242612", "0.72089994", "0.71955764", "0.7188808", "0.70924395", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7071465", "0.70560217", "0.705158", "0.705158", ...
0.0
-1
Walks an object to perform a normalization on it
function walk(key, value, depth, memo) { if (depth === void 0) { depth = +Infinity; } if (memo === void 0) { memo = new _memo__WEBPACK_IMPORTED_MODULE_3__[/* Memo */ "a"](); } // If we reach the maximum depth, serialize whatever has left if (depth === 0) { return serializeValue(value); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async normalize () {\n\t}", "function normalize_parsed_OBJ( mesh )\n {\n /// 1 Initialize a min and max variable for x,y,z.\n /// 2 Iterate over each vertex and update the min and max.\n /// 3 Iterate again over each vertex, translating it by -(min+max)/2\n /// and scaling it by ...
[ "0.63614464", "0.61781055", "0.61748886", "0.61282885", "0.6031321", "0.5866984", "0.5849714", "0.5836643", "0.5836643", "0.5826804", "0.5739979", "0.5727746", "0.57100224", "0.5659664", "0.5642877", "0.55743283", "0.5571632", "0.55670726", "0.5559348", "0.55572414", "0.55552...
0.0
-1
Given any captured exception, extract its keys and create a sorted and truncated list that will be used inside the event message. eg. `Nonerror exception captured with keys: foo, bar, baz`
function extractExceptionKeysForMessage(exception, maxLength) { if (maxLength === void 0) { maxLength = 40; } var keys = Object.keys(getWalkSource(exception)); keys.sort(); if (!keys.length) { return '[object has no keys]'; } if (keys[0].length >= maxLength) { return Object(_stri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extractExceptionKeysForMessage(exception, maxLength) {\n if (maxLength === void 0) { maxLength = 40; }\n var keys = Object.keys(getWalkSource(exception));\n keys.sort();\n if (!keys.length) {\n return '[object has no keys]';\n }\n if (keys[0].length >= maxLength) {\n return...
[ "0.7304901", "0.73008126", "0.7290147", "0.72591186", "0.72258234", "0.54549325", "0.53605604", "0.5154988", "0.5112228", "0.5079283", "0.5035567", "0.4984389", "0.49531645", "0.49511376", "0.4893601", "0.48805863", "0.48525614", "0.48444852", "0.4748979", "0.47236496", "0.46...
0.7280513
3
Given any object, return the new object with removed keys that value was `undefined`. Works recursively on objects and arrays.
function dropUndefinedKeys(val) { var e_1, _a; if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isPlainObject */ "h"])(val)) { var obj = val; var rv = {}; try { for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __values */ "f"])(Object.keys(obj)), _c = _b.next(); !_c.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeUndefinedFromObject(obj) {\n return Object.entries(obj).reduce(function (acc, curEntry) {\n var key = curEntry[0],\n val = curEntry[1];\n if (val !== undefined) acc[key] = val;\n return acc;\n }, {});\n }", "function remove_f...
[ "0.74809533", "0.7117657", "0.71070737", "0.6905473", "0.6897231", "0.6877788", "0.68554044", "0.6844166", "0.6809099", "0.6786408", "0.66902", "0.6581826", "0.6543314", "0.63499093", "0.63324165", "0.6279909", "0.61685574", "0.6167942", "0.61546713", "0.61524314", "0.6145421...
0.68371415
8
which is reasonable. But dimension name is duplicated. Returns undefined or an array contains only object without null/undefiend or string.
function normalizeDimensionsDefine(dimensionsDefine) { if (!dimensionsDefine) { // The meaning of null/undefined is different from empty array. return; } var nameMap = createHashMap(); return map(dimensionsDefine, function (item, index) { item = extend({}, isObject(item) ? item : { name: item...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDimensionName() {\n var dummyRecord = {};\n Object.keys(dimensions).forEach(function(d) {\n dummyRecord[d] = d;\n });\n\n return dimensionFct(dummyRecord);\n }", "parseArrayDimension () {\n const dimToken = this.getToken();\n if(dimToken.type === this.lexerClass.INTEGER) {\n ...
[ "0.6884483", "0.6139163", "0.5990928", "0.5961865", "0.58693033", "0.5855728", "0.57637715", "0.57536316", "0.5712528", "0.55924106", "0.55911034", "0.55376387", "0.55022717", "0.54896414", "0.5485744", "0.5485744", "0.52894366", "0.5250677", "0.5250677", "0.5245448", "0.5233...
0.57112443
11
If return null/undefined, indicate that should not use datasetModel.
function getDatasetModel(seriesModel) { var option = seriesModel.option; // Caution: consider the scenario: // A dataset is declared and a series is not expected to use the dataset, // and at the beginning `setOption({series: { noData })` (just prepare other // option but no data), then `setOption({series: {dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function datasetDangerously () {}", "function useSelectedDataset() {\n let modUrl = \"/models-for-dataset?dataset=\" + getSelectedDatasetName();\n let imgUrl = \"/dataset-details?dataset=\" + getSelectedDatasetName();\n\n populateModels(modUrl);\n populateStaticImages(imgUrl);\n}", "get dataset() {...
[ "0.6383661", "0.6067127", "0.5612951", "0.5528505", "0.54733825", "0.53940594", "0.53370905", "0.531399", "0.5253888", "0.5207945", "0.5207945", "0.5207945", "0.5184196", "0.5141729", "0.51400405", "0.51392275", "0.5070492", "0.50489503", "0.5045966", "0.4974367", "0.4963073"...
0.6284609
4
Throws a `Cancel` if cancellation has been requested.
function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async cancel() {\n throw new Error(this.cancelMessage);\n }", "cancel() {\n throw new Error(\"Not implemented.\")\n }", "isCanceled(cancelled) {\n if (cancelled) {\n throw new Error(\"Cancelled request\");\n }\n }", "function throwIfCancellationRequested(config) {\n ...
[ "0.79484594", "0.7737491", "0.75342494", "0.7447438", "0.7424596", "0.7386911", "0.7386911", "0.7386911", "0.7386911", "0.7386911", "0.7206988", "0.7168578", "0.71630925", "0.7162724", "0.7143389", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397...
0.0
-1
Set area to each child, and calculate data extent for visual coding.
function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) { var viewChildren = node.children || []; var orderBy = options.sort; orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null); var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "resizeToChildren() {\n let totalBounds = this.recurseThroughChildren(this, []);\n let minX;\n let minY;\n let maxX;\n let maxY;\n for (let bound in totalBounds) {\n if (!minX) {\n minX = this.x;\n maxX = totalBounds[bound].x + total...
[ "0.6299004", "0.60675913", "0.6066776", "0.58993673", "0.57981884", "0.5790527", "0.57366335", "0.5722501", "0.5586438", "0.5541919", "0.5472329", "0.54684424", "0.54277647", "0.5420227", "0.5414548", "0.5382922", "0.5362616", "0.5332332", "0.5332332", "0.5332332", "0.5327955...
0.5103846
50
Consider 'visibleMin'. Modify viewChildren and get new sum.
function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) { // visibleMin is not supported yet when no option.sort. if (!orderBy) { return sum; } var visibleMin = nodeModel.get('visibleMin'); var len = orderedChildren.length; var deletePoint = len; // Always travel from little val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filterByThreshold(nodeModel,totalArea,sum,orderBy,orderedChildren){ // visibleMin is not supported yet when no option.sort.\n if(!orderBy){return sum;}var visibleMin=nodeModel.get('visibleMin');var len=orderedChildren.length;var deletePoint=len; // Always travel from little value to big value.\n for(var...
[ "0.5722014", "0.56633747", "0.5654579", "0.56508374", "0.5588599", "0.5485403", "0.5445127", "0.54053354", "0.5262732", "0.5243111", "0.52223074", "0.5155601", "0.5082663", "0.5057831", "0.50453824", "0.49923185", "0.49842614", "0.49837878", "0.49813396", "0.4957671", "0.4955...
0.55855453
11
Computes the score for the specified row, as the worst aspect ratio.
function worst(row, rowFixedLength, ratio) { var areaMax = 0; var areaMin = Infinity; for (var i = 0, area, len = row.length; i < len; i++) { area = row[i].getLayout().area; if (area) { area < areaMin && (areaMin = area); area > areaMax && (areaMax = area); } } var squareArea = row....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function worst(row, u) {\n var s = row.area,\n r,\n rmax = 0,\n rmin = Infinity,\n i = -1,\n n = row.length;\n while (++i < n) {\n if (!(r = row[i].area)) continue;\n if (r < rmin) rmin = r;\n if (r > rmax) rmax = r;\n }\n s *= s;\n u *= u;\n retu...
[ "0.7066478", "0.7066478", "0.7066478", "0.7058576", "0.7046692", "0.7003589", "0.6942306", "0.6861829", "0.60861534", "0.60804725", "0.58110905", "0.5502837", "0.5441484", "0.5435079", "0.53749436", "0.53722227", "0.53577477", "0.5345831", "0.5305904", "0.5279443", "0.5271823...
0.69869965
11
Positions the specified row of nodes. Modifies `rect`.
function position(row, rowFixedLength, rect, halfGapWidth, flush) { // When rowFixedLength === rect.width, // it is horizontal subdivision, // rowFixedLength is the width of the subdivision, // rowOtherLength is the height of the subdivision, // and nodes will be positioned from left to right. // wh[idx0Whe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function position(row,rowFixedLength,rect,halfGapWidth,flush){ // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0...
[ "0.71293", "0.68804145", "0.68788224", "0.68788224", "0.68788224", "0.68788224", "0.68788224", "0.67839974", "0.67658097", "0.6720569", "0.63873994", "0.63873994", "0.63873994", "0.62019384", "0.6145864", "0.58184195", "0.5812495", "0.5742029", "0.57289517", "0.56630695", "0....
0.68788224
7
Prunning depends on layout and root position, so we have to do it after layout.
function prunning(node, clipRect, viewAbovePath, viewRoot, depth) { var nodeLayout = node.getLayout(); var nodeInViewAbovePath = viewAbovePath[depth]; var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node; if (nodeInViewAbovePath && !isAboveViewRoot || depth === viewAbovePath.length && node...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "start () {\n // Draw the starting point for the view with no elements\n }", "start () {\n // Draw the starting point for the view with no elements\n }", "layout() {\n var d = document.documentElement;\n var oldHeight = d.scrollHeight;\n this.reset()\n this.setOrders()\n ...
[ "0.5961233", "0.5961233", "0.5859002", "0.5846671", "0.5813428", "0.58122605", "0.57694703", "0.57338387", "0.5728721", "0.5710151", "0.5685172", "0.56799024", "0.56204766", "0.56043565", "0.5600555", "0.559614", "0.5595732", "0.558868", "0.55854076", "0.55634403", "0.553763"...
0.0
-1
set default to level configuration
function setDefault(levels, ecModel) { var globalColorList = ecModel.get('color'); if (!globalColorList) { return; } levels = levels || []; var hasColorDefine; zrUtil.each(levels, function (levelDefine) { var model = new Model(levelDefine); var modelColor = model.get('color'); if (model.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setLevel() {\n level = 1;\n}", "function setLevel(l) {\n storage.level = l;\n console.log(\"SETTING LEVEL\"+l);\n }", "setInitialLevel(level) {\n\t\tthis.initialLevel = level;\n\t\tthis.level = level;\n\t\tthis._updateLevelLinesBox();\n\t}", "set level(level) {\n ...
[ "0.6801757", "0.6353623", "0.63523316", "0.6323303", "0.6295211", "0.6184253", "0.6089131", "0.6020891", "0.5996376", "0.5939502", "0.59392095", "0.5921456", "0.5896845", "0.5895545", "0.58174103", "0.5783133", "0.5781619", "0.5726141", "0.5726141", "0.5726141", "0.57230496",...
0.5674742
26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function normalize(a) { if (!(a instanceof Array)) { a = [a, a]; } return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio pl...
[ "0.47163445", "0.46584114", "0.45273763", "0.45036152", "0.448429", "0.44346538", "0.43841133", "0.4362977", "0.4333602", "0.43013042", "0.42535996", "0.42417178", "0.42218232", "0.42189214", "0.41818306", "0.41804415", "0.4179575", "0.41772082", "0.41758674", "0.41746357", "...
0.0
-1
Consider case: `chart.setOption(opt1);` Then user do some interaction like dataZoom, dataView changing. `chart.setOption(opt2);` Then user press 'reset button' in toolbox. After doing that all of the interaction effects should be reset, the chart should be the same as the result of invoke `chart.setOption(opt1); chart....
function mergeOption(oldOption, newOption) { newOption = newOption || {}; each(newOption, function (newCptOpt, mainType) { if (newCptOpt == null) { return; } var oldCptOpt = oldOption[mainType]; if (!ComponentModel.hasClass(mainType)) { oldOption[mainType] = merge(oldCptOpt, newCptOpt,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mergeOptions (options, notMerge, lazyUpdate) {\n this.delegateMethod('setOption', options, notMerge, lazyUpdate)\n }", "function disableTransformOptionMerge(datasetModel) {\n\t var transformOption = datasetModel.option.transform;\n\t transformOption && setAsPrimitive(datasetModel.option.transfo...
[ "0.63035333", "0.5849141", "0.57570434", "0.571645", "0.56947654", "0.56782305", "0.5657643", "0.56274074", "0.5625435", "0.55258864", "0.5482081", "0.5455701", "0.54461205", "0.54172605", "0.54077274", "0.5353575", "0.5346342", "0.53099597", "0.52984023", "0.52929634", "0.52...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(dom, ecModel) { var ariaModel = ecModel.getModel('aria'); if (!ariaModel.get('show')) { return; } else if (ariaModel.get('description')) { dom.setAttribute('aria-label', ariaModel.get('description')); return; } var seriesCnt = 0; ecModel.eachSeries(function (seriesModel, idx)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.4...
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.5848589", "0.5729015", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "...
0.0
-1
Set an object as primitive to be ignored traversing children in clone or merge
function setAsPrimitive(obj) { obj[primitiveKey] = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n }", "function setAsPrimitive(obj) {\n\t obj[primitiveKey] = true;\n\t}", "function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n }", "function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n ...
[ "0.6688739", "0.6624384", "0.6611472", "0.6611472", "0.6336426", "0.5629428", "0.54229057", "0.5412837", "0.53969187", "0.5369282", "0.53480685", "0.52820265", "0.5181333", "0.5173371", "0.5149473", "0.51368874", "0.51223475", "0.51223475", "0.51169837", "0.51053363", "0.5083...
0.6362994
12
Set or calculate default value about symbol, and calculate layout info.
function getSymbolMeta(data, dataIndex, itemModel, opt) { var layout = data.getItemLayout(dataIndex); var symbolRepeat = itemModel.get('symbolRepeat'); var symbolClip = itemModel.get('symbolClip'); var symbolPosition = itemModel.get('symbolPosition') || 'start'; var symbolRotate = itemModel.get('symbolRotate'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSymbolMeta(data, dataIndex, itemModel, opt) {\n var layout = data.getItemLayout(dataIndex);\n var symbolRepeat = itemModel.get('symbolRepeat');\n var symbolClip = itemModel.get('symbolClip');\n var symbolPosition = itemModel.get('symbolPosition') || 'start';\n var symbolRotate = itemModel.get('sym...
[ "0.58664745", "0.5845491", "0.58197355", "0.5759925", "0.55711716", "0.5520214", "0.5520214", "0.5520214", "0.5520214", "0.5520214", "0.5516355", "0.551447", "0.5510452", "0.54998726", "0.52375317", "0.52375317", "0.5183262", "0.5183262", "0.5183262", "0.5183262", "0.5183262"...
0.5821798
7
Displayable for incremental rendering. It will be rendered in a separate layer IncrementalDisplay have two main methods. `clearDisplayables` and `addDisplayables` addDisplayables will render the added displayables incremetally. It use a not clearFlag to tell the painter don't clear the layer if it's the first element. ...
function IncrementalDisplayble(opts) { Displayble.call(this, opts); this._displayables = []; this._temporaryDisplayables = []; this._cursor = 0; this.notClear = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Displayable(opts){opts = opts || {};Element.call(this,opts); // Extend properties\n for(var name in opts) {if(opts.hasOwnProperty(name) && name !== 'style'){this[name] = opts[name];}} /**\n \t * @type {module:zrender/graphic/Style}\n \t */this.style = new Style(opts.style);this._rect = ...
[ "0.6213168", "0.5756399", "0.5756399", "0.56918347", "0.56884956", "0.5577846", "0.5547541", "0.5346625", "0.53179514", "0.5314656", "0.5273291", "0.5256486", "0.5206572", "0.51939934", "0.51723945", "0.51640016", "0.51606536", "0.51556456", "0.514929", "0.513892", "0.5118991...
0.6358434
4
mouse event in upper applicatoin.
function markTouch(event) { event && (event.zrByTouch = true); } // function markTriggeredFromLocal(event) {
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mouseUp() { }", "mouseReleased() {\n this.mouseEvent(\"mouseReleased\");\n }", "function MouseUpEvent() {}", "e_mouseOut(e)\n\t{\n\n\t}", "mouseDown(pt) {}", "mouseDown(pt) {}", "_mouseEvent(eventType, e)\n\t{\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "_mouseEvent(eventType, e...
[ "0.71278685", "0.7011503", "0.6923161", "0.6783577", "0.67772967", "0.67772967", "0.6727869", "0.6727869", "0.6727869", "0.6727869", "0.6727869", "0.67134", "0.66991264", "0.66991264", "0.66144776", "0.6577799", "0.6574535", "0.65693283", "0.6567548", "0.655783", "0.65392727"...
0.0
-1
Detect whether the given el is in `painterRoot`.
function isLocalEl(instance, el) { var elTmp = el; var isLocal = false; while (elTmp && elTmp.nodeType !== 9 && !(isLocal = elTmp.domBelongToZr || elTmp !== el && elTmp === instance.painterRoot)) { elTmp = elTmp.parentNode; } return isLocal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "contains(element) {\n return this.root.contains(element.root);\n }", "function isElementInViewport(el) {\n // special bonus for those using jQuery\n if (el instanceof jQuery) {\n el = el[0];\n }\n\n var elRect = el.getBoundingClientRect();\n var windowRect = {\n top: 0,\n left: 0,\n bo...
[ "0.6508953", "0.6346906", "0.61302805", "0.6118589", "0.60854", "0.60770774", "0.6059435", "0.60318965", "0.60308576", "0.5997771", "0.5997771", "0.5997771", "0.5984568", "0.59779656", "0.597612", "0.5967062", "0.5961217", "0.5957339", "0.5956322", "0.5937471", "0.59357744", ...
0.59724075
16
Make a fake event but not change the original event, becuase the global event probably be used by other listeners not belonging to zrender.
function FakeGlobalEvent(instance, event) { this.type = event.type; this.target = this.currentTarget = instance.dom; this.pointerType = event.pointerType; // Necessray for the force calculation of zrX, zrY this.clientX = event.clientX; this.clientY = event.clientY; // Because we do not mount global listeners...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function InternalEvent() { }", "function InternalEvent() { }", "function InternalEvent() { }", "function InternalEvent() { }", "function InternalEvent() { }", "function InternalEvent() {}", "function FakeEvent(type, bubbles, cancelable, target) {\r\n\t\t this.initEvent(type, bubbles, cancelable,...
[ "0.6689947", "0.6689947", "0.6689947", "0.6689947", "0.6689947", "0.6672476", "0.6390427", "0.6323072", "0.61057925", "0.59957904", "0.59957904", "0.5988517", "0.5988517", "0.594916", "0.591062", "0.59044594", "0.58671993", "0.584601", "0.58458734", "0.582639", "0.5821287", ...
0.7121552
1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function get(opt, path) { path = path.split(','); var obj = opt; for (var i = 0; i < path.length; i++) { obj = obj && obj[path[i]]; if (obj == null) { break; } } return obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "private public function m246() {}", "private internal function m248() {}", "get() {}", "constructor() {\n throw new Error('Not implemented');\n }", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "constructor() {\n\t}", "constructor() {\n\t}", "n...
[ "0.5306975", "0.5000489", "0.49478292", "0.49032435", "0.48796922", "0.4813589", "0.47755355", "0.47755355", "0.47531366", "0.47512633", "0.47255257", "0.47252375", "0.4716664", "0.4704309", "0.4702985", "0.46977335", "0.4639922", "0.45913684", "0.45748463", "0.45701677", "0....
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(seriesType, defaultSymbolType, legendSymbol) { // Encoding visual for all series include which is filtered for legend drawing return { seriesType: seriesType, // For legend. performRawSeries: true, reset: function (seriesModel, ecModel, api) { var data = seriesModel.getData()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", ...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(ecModel, payload) { ecModel.eachSeriesByType('sankey', function (seriesModel) { var graph = seriesModel.getGraph(); var nodes = graph.nodes; if (nodes.length) { var minValue = Infinity; var maxValue = -Infinity; zrUtil.each(nodes, function (node) { var nodeValu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0...
0.0
-1
Myers' Diff Algorithm Modified from
function Diff() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function diffArray(_a, _b) {\n const state = {\n distance: 0,\n adds: {},\n dels: {},\n const: {},\n linear: []\n };\n if (_a === _b) {\n return state;\n }\n const reverse = _a.length >= _b.length;\n const adds = state[reverse ? \"dels\" : \"adds\"];\n ...
[ "0.6273011", "0.6077076", "0.59796834", "0.5967978", "0.59645283", "0.5930521", "0.59217876", "0.59086835", "0.5904942", "0.58921844", "0.5887232", "0.5876926", "0.58377385", "0.5837271", "0.58078206", "0.57771474", "0.5774021", "0.57625955", "0.5746534", "0.5738624", "0.5735...
0.6874856
5
Main worker method. checks all permutations of a given edit length for acceptance.
function execEditLength() { for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { var basePath; var addPath = bestPath[diagonalPath - 1]; var removePath = bestPath[diagonalPath + 1]; var oldPos = (removePath ? removePath.newPos : 0) - diagonalPat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function execEditLength() {\n\t for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n\t var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n\t var addPath = bestPath[diagonalPath - 1],\n\t removePath = bestPath[diagonalPath + ...
[ "0.58797383", "0.58797383", "0.58797383", "0.58797383", "0.5835287", "0.57971644", "0.577797", "0.57108396", "0.5707728", "0.5707728", "0.5707728", "0.5707728", "0.5707728", "0.5707728", "0.5685203", "0.5685203", "0.5685203", "0.5685203", "0.5676224", "0.55059826", "0.5442204...
0.5730249
12
Hover to change label and labelLine
function onEmphasis() { text.ignore = text.hoverIgnore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function labelMouseOver(tag) {\n d3.selectAll('marker#' + tag)\n .select('path')\n .classed('hovered', true);\n\n d3.selectAll('.' + tag)\n .selectAll('path, text')\n .classed('hovered', true);\n }", "mouseover() {\n this.label.value = \"Reset\";\n this.label.innerHTML = ...
[ "0.7160721", "0.6747871", "0.66706216", "0.6636008", "0.66344315", "0.6630238", "0.6559844", "0.6481869", "0.6460244", "0.6438774", "0.642701", "0.63942605", "0.6377741", "0.635967", "0.6343922", "0.6314459", "0.62718886", "0.6250335", "0.6237528", "0.62035286", "0.61927736",...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function dataToCoordSize(dataSize, dataItem) { // dataItem is necessary in log axis. dataItem = dataItem || [0, 0]; return zrUtil.map(['x', 'y'], function (dim, dimIdx) { var axis = this.getAxis(dim); var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; return axis.type === 'category' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(ecModel) { ecModel.eachSeriesByType('map', function (seriesModel) { var colorList = seriesModel.get('color'); var itemStyleModel = seriesModel.getModel('itemStyle'); var areaColor = itemStyleModel.get('areaColor'); var color = itemStyleModel.get('color') || colorList[seriesModel.seri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio pl...
[ "0.47174537", "0.4658246", "0.45285463", "0.45032862", "0.44835344", "0.44350168", "0.4382653", "0.43627265", "0.43324777", "0.4301593", "0.42541128", "0.42418656", "0.4221815", "0.42179117", "0.41816333", "0.41801563", "0.41795337", "0.417805", "0.4176735", "0.41745046", "0....
0.0
-1
Consider big data, do not create map until needed.
function getOrCreateMap(ordinalMeta) { return ordinalMeta._map || (ordinalMeta._map = createHashMap(ordinalMeta.categories)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MapCache(){this.__data__={};}", "function MapCache(){this.__data__={};}", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t t...
[ "0.6768424", "0.6768424", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.6186008", ...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function getScaleExtent(scale, model) { var scaleType = scale.type; var min = model.getMin(); var max = model.getMax(); var originalExtent = scale.getExtent(); var axisDataLen; var boundaryGap; var span; if (scaleType === 'ordinal') { axisDataLen = model.getCategories().length; } else { bound...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var min = model.getMin();\n var max = model.getMax();\n var fixMin = min != null;\n var fixMax = max != null;\n var originalExtent = scale.getExtent();\n var axisDataLen;\n var boundaryGap;\n var span;\n\n if (scaleType === 'ordinal'...
[ "0.6635224", "0.6635224", "0.6635224", "0.66095996", "0.66095996", "0.66095996", "0.6483339", "0.6249751", "0.61508304", "0.5989345", "0.58926207", "0.57632697", "0.5706201", "0.56735045", "0.5659753", "0.56560963", "0.562904", "0.5597452", "0.55943", "0.5567527", "0.5566558"...
0.6690351
1
Check if the axis corss 0
function ifAxisCrossZero(axis) { var dataExtent = axis.scale.getExtent(); var min = dataExtent[0]; var max = dataExtent[1]; return !(min > 0 && max > 0 || min < 0 && max < 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ifAxisCrossZero(axis) {\n\t var dataExtent = axis.scale.getExtent();\n\t var min = dataExtent[0];\n\t var max = dataExtent[1];\n\t return !(min > 0 && max > 0 || min < 0 && max < 0);\n\t }", "hasAxisOrientSignalRef() {\n return (this.component.axes.x?.some(a => a.hasOrientS...
[ "0.79084367", "0.6435964", "0.64173824", "0.63664246", "0.6054823", "0.6044323", "0.6015769", "0.59150916", "0.5879838", "0.57272536", "0.5702873", "0.56943345", "0.56880975", "0.5687422", "0.56293803", "0.5625402", "0.56174374", "0.5593879", "0.5576341", "0.55748653", "0.557...
0.77958435
9
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(ecModel) { var paletteScope = {}; ecModel.eachSeriesByType('graph', function (seriesModel) { var categoriesData = seriesModel.getCategoriesData(); var data = seriesModel.getData(); var categoryNameIdxMap = {}; categoriesData.each(function (idx) { var name = categoriesData.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio pl...
[ "0.47174537", "0.4658246", "0.45285463", "0.45032862", "0.44835344", "0.44350168", "0.4382653", "0.43627265", "0.43324777", "0.4301593", "0.42541128", "0.42418656", "0.4221815", "0.42179117", "0.41816333", "0.41801563", "0.41795337", "0.417805", "0.4176735", "0.41745046", "0....
0.0
-1
Draw smoothed line in nonmonotone, in may cause undesired curve in extreme situations. This should be used when points are nonmonotone neither in x or y dimension.
function drawNonMono(ctx, points, start, segLen, allLen, dir, smoothMin, smoothMax, smooth, smoothMonotone, connectNulls) { var prevIdx = 0; var idx = start; for (var k = 0; k < segLen; k++) { var p = points[idx]; if (idx >= allLen || idx < 0) { break; } if (isPointNull(p)) { if (co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawSeriesLines(series){\n\t\t\tfunction plotLine(data, offset){\n\t\t\t\tif(data.length < 2) return;\n\t\n\t\t\t\tvar prevx = tHoz(data[0][0]),\n\t\t\t\t\tprevy = tVert(data[0][1]) + offset;\n\t\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(prevx, prevy);\n\t\t\t\tfor(var i = 0; i < data.length - 1; ++i)...
[ "0.6029256", "0.6015774", "0.59806824", "0.5928093", "0.5922997", "0.5870417", "0.5858161", "0.5855403", "0.5854368", "0.5852314", "0.5850531", "0.5846535", "0.58302444", "0.58302444", "0.58302444", "0.58270085", "0.58270085", "0.58270085", "0.58270085", "0.58270085", "0.5827...
0.6422131
3
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(option) { if (!option || !zrUtil.isArray(option.series)) { return; } // Translate 'k' to 'candlestick'. zrUtil.each(option.series, function (seriesItem) { if (zrUtil.isObject(seriesItem) && seriesItem.type === 'k') { seriesItem.type = 'candlestick'; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", ...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function isPointsSame(points1, points2) { if (points1.length !== points2.length) { return; } for (var i = 0; i < points1.length; i++) { var p1 = points1[i]; var p2 = points2[i]; if (p1[0] !== p2[0] || p1[1] !== p2[1]) { return; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_radialCoordinates(angles, radius){\n\n return angles.map((angle) => {\n return Coordinate.polar({\n coords: [radius, angle - 90],\n isDegree: true\n });\n })\n\n }", "static polar (len, angle) {\n return new Point (Math.cos(angle)*len, Math.sin(angle)*len);\n }", "function ...
[ "0.5401263", "0.52766746", "0.52660877", "0.520424", "0.5201473", "0.51762426", "0.5160272", "0.50617266", "0.5049639", "0.5038044", "0.5035436", "0.49931473", "0.49789587", "0.49776223", "0.49741748", "0.4967716", "0.49524423", "0.4948356", "0.49479464", "0.4944791", "0.4926...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function _default(coordSys) { var rect = coordSys.getRect(); var rangeInfo = coordSys.getRangeInfo(); return { coordSys: { type: 'calendar', x: rect.x, y: rect.y, width: rect.width, height: rect.height, cellWidth: coordSys.getCellWidth(), cellHeight: coordSys.getCellH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio pl...
[ "0.47174537", "0.4658246", "0.45285463", "0.45032862", "0.44835344", "0.44350168", "0.4382653", "0.43627265", "0.43324777", "0.4301593", "0.42541128", "0.42418656", "0.4221815", "0.42179117", "0.41816333", "0.41801563", "0.41795337", "0.417805", "0.4176735", "0.41745046", "0....
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function setLabel(normalStyle, hoverStyle, itemModel, color, seriesModel, dataIndex, labelPositionOutside) { var labelModel = itemModel.getModel('label'); var hoverLabelModel = itemModel.getModel('emphasis.label'); graphic.setLabelStyle(normalStyle, hoverStyle, labelModel, hoverLabelModel, { labelFetcher: ser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.4...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function getNodeGlobalScale(seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys.type !== 'view') { return 1; } var nodeScaleRatio = seriesModel.option.nodeScaleRatio; var groupScale = coordSys.scale; var groupZoom = groupScale && groupScale[0] || 1; // Scale node when zoom changes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio pl...
[ "0.47173288", "0.46583715", "0.45286083", "0.45038942", "0.44843733", "0.44348565", "0.43834072", "0.4362673", "0.43318212", "0.43005583", "0.42536354", "0.42424083", "0.4222003", "0.42190567", "0.41818368", "0.41800052", "0.41799405", "0.41780844", "0.4177319", "0.41746554", ...
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.5847333", "0.57279235", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897",...
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.58472276", "0.5728634", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396",...
0.0
-1
Group series by axis.
function groupSeriesByAxis(ecModel) { var result = []; var axisList = []; ecModel.eachSeriesByType('boxplot', function (seriesModel) { var baseAxis = seriesModel.getBaseAxis(); var idx = zrUtil.indexOf(axisList, baseAxis); if (idx < 0) { idx = axisList.length; axisList[idx] = baseAxis; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function groupSeriesByAxis(ecModel){var result=[];var axisList=[];ecModel.eachSeriesByType('boxplot',function(seriesModel){var baseAxis=seriesModel.getBaseAxis();var idx=zrUtil.indexOf(axisList,baseAxis);if(idx < 0){idx = axisList.length;axisList[idx] = baseAxis;result[idx] = {axis:baseAxis,seriesModels:[]};}resul...
[ "0.7366417", "0.73142976", "0.7063738", "0.70488536", "0.693459", "0.6706458", "0.65628886", "0.6077776", "0.5936247", "0.5918551", "0.58900046", "0.5805062", "0.5800044", "0.57898194", "0.578439", "0.57058454", "0.5703831", "0.56538266", "0.563329", "0.56188244", "0.5612189"...
0.67869306
10
Calculate offset and box width for each series.
function calculateBase(groupItem) { var extent; var baseAxis = groupItem.axis; var seriesModels = groupItem.seriesModels; var seriesCount = seriesModels.length; var boxWidthList = groupItem.boxWidthList = []; var boxOffsetList = groupItem.boxOffsetList = []; var boundList = []; var bandWidth; if (bas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setBoxWidths() {\n var leftWidth = dragBarPos - 2,\n rightWidth = outerWidth - dragBarPos - 12;\n\n left.css('width', '' + toPercent(leftWidth) + '%');\n right.css('width', '' + toPercent(rightWidth) + '%');\n }", "function layoutSingleSeries(seri...
[ "0.63623863", "0.628116", "0.6104059", "0.60975456", "0.60712206", "0.60562366", "0.60562366", "0.60562366", "0.60157585", "0.5921455", "0.5906814", "0.5867821", "0.5862238", "0.5848198", "0.5848198", "0.5848198", "0.58450717", "0.5810764", "0.58092725", "0.58091784", "0.5798...
0.0
-1
Calculate points location for each series.
function layoutSingleSeries(seriesModel, offset, boxWidth) { var coordSys = seriesModel.coordinateSystem; var data = seriesModel.getData(); var halfWidth = boxWidth / 2; var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1; var vDimIdx = 1 - cDimIdx; var coordDims = ['x', 'y']; var cDim = data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addPoints() {\n\t//for every station in the dataset, create a marker\n for(var i=0; i<dataTrento.length; i++) {\n var station=dataTrento[i];\n createMarker(station);\n }\n for(var i=0; i<dataPergine.length; i++) {\n var station=dataPergine[i];\n createMarker(station);\...
[ "0.6539702", "0.61264336", "0.61147594", "0.5986655", "0.5976617", "0.59176654", "0.58934206", "0.58934206", "0.5756893", "0.575432", "0.57149243", "0.57079583", "0.5660125", "0.5651129", "0.56494355", "0.56259024", "0.5609707", "0.55992824", "0.55733764", "0.5568796", "0.555...
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (...
[ "0.58472276", "0.5728634", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396",...
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file e...
function retrieveTargetInfo(payload, validPayloadTypes, seriesModel) { if (payload && zrUtil.indexOf(validPayloadTypes, payload.type) >= 0) { var root = seriesModel.getData().tree.root; var targetNode = payload.targetNode; if (typeof targetNode === 'string') { targetNode = root.getNodeById(targetNo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio pla...
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.4...
0.0
-1
Extend shape with parameters
function extendShape(opts) { return Path.extend(opts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extendShape(opts) {\n\t return Path.extend(opts);\n\t }", "function extendShape(opts) {\n return zrender_lib_graphic_Path__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"b\"].extend(opts);\n}", "function baseParams_2_extendedParams()\n {\n rg.b.value = 1- rg.a.value;\n setRgPoin...
[ "0.7005202", "0.6436609", "0.60699636", "0.56709445", "0.5648829", "0.55835265", "0.5462741", "0.5448022", "0.54328185", "0.5429609", "0.5429609", "0.52849346", "0.5266649", "0.5246164", "0.5209159", "0.5109845", "0.5107622", "0.5099576", "0.5089148", "0.5088283", "0.50840217...
0.6893373
7
Give some default value to the input `textStyle` object, based on the current settings in this `textStyle` object. The Scenario: when text position is `inside` and `textFill` is not specified, we show text border by default for better view. But it should be considered that text position might be changed when hovering o...
function applyDefaultTextStyle(textStyle) { var textPosition = textStyle.textPosition; var opt = textStyle.insideRollbackOpt; var insideRollback; if (opt && textStyle.textFill == null) { var autoColor = opt.autoColor; var isRectText = opt.isRectText; var useInsideStyle = opt.useInsideStyle; var...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyDefaultTextStyle(textStyle) {\n var opt = textStyle.insideRollbackOpt; // Only `insideRollbackOpt` created (in `setTextStyleCommon`),\n // applyDefaultTextStyle works.\n\n if (!opt || textStyle.textFill != null) {\n return;\n }\n\n var useInsideStyle = opt.useInsideStyle;\n var textPosition ...
[ "0.8612479", "0.8612479", "0.69574237", "0.68188125", "0.6409353", "0.6377287", "0.6057339", "0.59188133", "0.5891148", "0.58824503", "0.5709304", "0.5670272", "0.5625694", "0.5582218", "0.55812746", "0.55652595", "0.556286", "0.55606073", "0.5515488", "0.55114144", "0.550188...
0.84855735
3
Apply group transition animation from g1 to g2. If no animatableModel, no animation.
function groupTransition(g1, g2, animatableModel, cb) { if (!g1 || !g2) { return; } function getElMap(g) { var elMap = {}; g.traverse(function (el) { if (!el.isGroup && el.anid) { elMap[el.anid] = el; } }); return elMap; } function getAnimatableProps(el) { var obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function groupTransition(g1, g2, animatableModel) {\n\t if (!g1 || !g2) {\n\t return;\n\t }\n\t\n\t function getElMap(g) {\n\t var elMap = {};\n\t g.traverse(function (el) {\n\t if (isNotGroup(el) && el.anid) {\n\t elMap[el.anid] = el;\n\t }\n\t ...
[ "0.820132", "0.8088333", "0.6136704", "0.6013339", "0.55981725", "0.55143064", "0.55142707", "0.5408207", "0.53423864", "0.5327602", "0.529113", "0.5283208", "0.5273691", "0.5247298", "0.51998985", "0.5177673", "0.5168194", "0.5150979", "0.51409525", "0.508437", "0.50793487",...
0.8376651
6