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
& its going to ... lets just return user
function applyTaxToItems(user){ return user }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUser () {return user;}", "function getUser(next){\n if(!assignedto) return next(null);\n\n \n //get users to check current phlebo is eligible for visit\n ModelUser.findById(assignedto,{specialneedlist:1},{lean:true}, function (e,r) {\n if(e) return next(e);\n ...
[ "0.70447403", "0.6671202", "0.66637987", "0.6657244", "0.66301143", "0.65965635", "0.6594804", "0.6575853", "0.6575853", "0.6560633", "0.6511188", "0.6505736", "0.649421", "0.64578", "0.6443375", "0.6402335", "0.6399545", "0.63886416", "0.63550997", "0.6350499", "0.6336117", ...
0.0
-1
for each of these functions so as the data funnels through we can see the output
function applyTaxToItems(user){ return user }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "outputs (_outputs) {\n for (let output in _outputs) {\n this.output(output, _outputs[output]);\n }\n }", "function getvals(mot) {\n// let v = mot.call('stat',null, (data, opt) => { console.log(\"call: \",JSON.stringify(data),typeof opt==='undefined'?\"\":opt); });\nlet v1 = mot.stat((data...
[ "0.5844929", "0.5689076", "0.55886346", "0.55143803", "0.546116", "0.54594773", "0.54532397", "0.5447825", "0.543722", "0.5424356", "0.5402443", "0.53684336", "0.5353597", "0.5292238", "0.52909845", "0.5274609", "0.5235446", "0.5227721", "0.52252096", "0.52252096", "0.5212302...
0.0
-1
if I run this purchase items outerHeight, & this is not an arrow function this is a function declaration
function purchaseItem(...fns) => fns.reduce(compose) {} // so I have to make sure that I have returned in here this property
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getHeight() {\n return this.$node.innerHeight();\n }", "getHeight(){return this.__height}", "function addItemHeight(element) {\n\t\t//get key dimensions to calculate height\n\t\tlet dimensions = [\n\t\t\tparseInt(window.getComputedStyle(element, null).getPropertyValue('margin-top')),\n\t\t\tparseInt(window...
[ "0.64142865", "0.64012414", "0.62060165", "0.6172117", "0.61672837", "0.614269", "0.60842234", "0.6081568", "0.6071458", "0.60658777", "0.6029858", "0.6028371", "0.6028371", "0.6012281", "0.60063124", "0.59936786", "0.5987718", "0.5986718", "0.5984882", "0.59697115", "0.59660...
0.0
-1
Kim now has an item in her cart how cool is that I was able to purchase items well I was able to do the first thing add item to cart & I passed on the data to the next functions that were componsing but they just received the user & just passed all the way out like a factory how coll is that! alright. now that we have ...
function applyTaxToItems(user){ return user }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem(...fns)\n\n\n{} // & these spreads functions", "function applyTaxToItems(user){\n const {cart}\n...
[ "0.75987434", "0.75987434", "0.75987434", "0.75987434", "0.75987434", "0.75987434", "0.7352021", "0.726937", "0.7176461", "0.7035906", "0.7009222", "0.6938106", "0.68814236", "0.68814236", "0.6756084", "0.67458695", "0.6652405", "0.6566373", "0.6565125", "0.6518857", "0.64993...
0.6370175
29
I am going to say const
function applyTaxToItems(user){ const }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Constants() {}", "function Constants() {}", "function exampleConst(){\n\tconst sample = 2\n\tconsole.log(sample)\n\tsample = 10 \n\tconsole.log(sample)\n}", "function _const() {\n return function() {\n this.__init(arguments);\n return this;\n };\n}", "function Const(){ return Identifier.ap...
[ "0.72001326", "0.72001326", "0.6808048", "0.67779756", "0.6746539", "0.6607082", "0.6599955", "0.6508891", "0.6487994", "0.6440341", "0.6327984", "0.62105685", "0.6207223", "0.6132995", "0.60778004", "0.6061794", "0.60166836", "0.59611964", "0.5944361", "0.59070057", "0.58448...
0.0
-1
& lets use destructuring here
function applyTaxToItems(user){ const {cart} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function f2(o) { \n\tconst {p1, p2, p3} = o; // name must by same as property in object\n\tconsole.log(p1, p2, p3);\n}", "function mainAdress(adress){\n const {city, state} = adress;\nconst newAddress = {\n city,\n state,\n country: 'United States'\n};\nconsole.log(`${newAddress.city}, ${newAddress.s...
[ "0.5988406", "0.58500993", "0.57225215", "0.55980784", "0.5548373", "0.53839046", "0.5374687", "0.5350371", "0.53484845", "0.5330931", "0.5321086", "0.52760863", "0.5257265", "0.52461505", "0.5223898", "0.51855624", "0.51765466", "0.5160782", "0.51365715", "0.5130236", "0.510...
0.0
-1
so we dont to use user dot cart all the time lets say user
function applyTaxToItems(user){ const {cart} = user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function emptyCart(user) {\n return user\n}", "function loadMyCart() {\n let userId = sessionStorage.getItem('userId');\n marketService.getUser(userId)\n .then((userInfo) => {\n displayMyCart(userInfo);\n }).catch(handleError);\n }", "function disableUma...
[ "0.70345634", "0.6765896", "0.63296354", "0.6265118", "0.62382376", "0.6212076", "0.6206064", "0.62034327", "0.61930114", "0.6080757", "0.60781246", "0.60661274", "0.60619086", "0.600053", "0.59872216", "0.5984875", "0.5969234", "0.59520644", "0.59364116", "0.59165204", "0.59...
0.6044435
13
remember cart is an array we are gonna map over this & we are gonna map over each item
function applyTaxToItems(user){ const {cart} = user; const taxRate = 1.3; const updatedCart = cart.map(item => { }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function itemcart(item)\r\n{\r\n\r\n let citem=sweets.map( i=>{\r\n if(i.name==item)\r\n {\r\n user.cart.push(i);\r\n alert(\"Product is added To The Cart\");\r\n }\r\n })\r\n cartview();\r\n}", "function generateCart(){//afegit el paràmetre cartlist a la funci...
[ "0.7206258", "0.70412815", "0.6930295", "0.6882032", "0.67385983", "0.66993916", "0.66955453", "0.66868323", "0.6671819", "0.6638757", "0.65444815", "0.6534553", "0.65077096", "0.64698344", "0.6447866", "0.64461434", "0.6439311", "0.6429244", "0.64244807", "0.6372611", "0.637...
0.60296583
61
& we are going to return a new object
function applyTaxToItems(user){ const {cart} = user; const taxRate = 1.3; const updatedCart = cart.map(item => { return {} }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NewObj(){}", "function NewObj() {}", "function newObject() { return {}; }", "newObj() {\n const newObj = {};\n this.objects[this.count] = {};\n this.objects[this.count].JSobj = newObj; // Store JS object\n this.objects[this.count].DOMelements = {}; // Prepare to store DOM elements\n\n ...
[ "0.7310951", "0.713915", "0.702999", "0.6956048", "0.6931777", "0.6877507", "0.6777336", "0.6723244", "0.6694841", "0.6694841", "0.6655465", "0.66028637", "0.65494555", "0.6480717", "0.6468077", "0.64094704", "0.6392973", "0.63875777", "0.6386137", "0.63171905", "0.63083583",...
0.0
-1
that contains well the name that is item dot name
function applyTaxToItems(user){ const {cart} = user; const taxRate = 1.3; const updatedCart = cart.map(item => { return { name: item.name, } }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "itemToName(item) {\n return item.template.full_name;\n }", "getName() {\r\n return this.getNameNodes().map(n => n.getText()).join(\".\");\r\n }", "function ItemName(obj) { this.obj = obj; }", "function item_info(item) {\n return parent.G.items[item.name];\n}", "static displayNa...
[ "0.6854586", "0.6663962", "0.6496458", "0.64875036", "0.6444733", "0.640706", "0.6358315", "0.63048553", "0.6275277", "0.6255061", "0.62208897", "0.62053066", "0.61827654", "0.61827654", "0.6065856", "0.6053934", "0.6019581", "0.5999365", "0.5999189", "0.59629166", "0.5946460...
0.0
-1
so nothing has changed there but the price is going to be different item dot price multiply by the tax rate
function applyTaxToItems(user){ const {cart} = user; const taxRate = 1.3; const updatedCart = cart.map(item => { return { name: item.name, price: item.price*taxRate } }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "priceWithTax() {\n return Number(this.price) * 1.05;\n }", "function updatePrice() {\n var sum = 0;\n for(var i = 0; i < $scope.currentItems.length; i++) {\n sum += $scope.currentItems[i].price;\n }\n\n $scope.totalCost = sum + (sum * taxRate);\n $scope.totalCost = Math.floor($sco...
[ "0.7855273", "0.7843759", "0.73156786", "0.7306113", "0.72632635", "0.72504747", "0.71966815", "0.71951973", "0.71951973", "0.7086096", "0.70790136", "0.69795007", "0.69440544", "0.69350934", "0.69294333", "0.6925785", "0.6900987", "0.68869215", "0.68861145", "0.68541396", "0...
0.6752837
26
so finally at the end of them all we can just return object dot assign
function applyTaxToItems(user){ const {cart} = user; const taxRate = 1.3; const updatedCart = cart.map(item => { return { name: item.name, price: item.price*taxRate } }) return Object.assign({}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function obj(objec){\nreturn objec;\n}", "function ontoAnObject() {\n const array = [1, 2, 3, 4, 5, 6];\n const object = {};\n // refactor the lines below\n // object.one = array[0];\n // object.two = array[1];\n // object.three = array[2];\n // object.rest = array.slice(3);\n // YOUR CODE STARTS HERE\n ...
[ "0.6088852", "0.60120404", "0.5883428", "0.5862965", "0.58536214", "0.58536214", "0.5761726", "0.57505476", "0.57468826", "0.57223874", "0.5696513", "0.56879425", "0.56760484", "0.5672575", "0.5672575", "0.5669267", "0.5667347", "0.5663948", "0.5661943", "0.56537354", "0.5623...
0.0
-1
rememeber we wanna return return the user but a new copy of the user with the updated information that has the cart updated cart
function applyTaxToItems(user){ const {cart} = user; const taxRate = 1.3; const updatedCart = cart.map(item => { return { name: item.name, price: item.price*taxRate } }) return Object.assign({}, user, { cart: updatedCart }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async updateCart_Of_User(){\n }", "function addItemToCart(user, items){\n let updateCart = user.cart.concat(items);\n // NOTE: data is userClone = Object.assign({}, user , {cart: updateCart})\n return Object.assign({}, user , {cart: updateCart}) \n }", "function addItemToCart(user, item){\n //...
[ "0.6933249", "0.69314843", "0.6841272", "0.6698418", "0.6649481", "0.66314226", "0.660621", "0.6581117", "0.6560843", "0.65342116", "0.6522401", "0.64837945", "0.6393923", "0.6348072", "0.6317977", "0.62365687", "0.6174833", "0.61374587", "0.6127107", "0.6120284", "0.60980016...
0.57899916
41
because we apply the tax rate from two hundred to two hundred & sixty oh boy this tax is really killing us alright lets keep going with buy item so in here we wanna move the cart item to the purchases
function buyItem(user){ return user }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyTaxToItems(user){\n const {cart} = user;\n const taxRate = 1.3;\n const updatedCart = cart.map(item => {\n\n })\n}", "function applyTaxToItems(user){\n const {cart} = user;\n const taxRate = 1.3;\n const updatedCart = cart.map(item => {\n return {}\n })\n}", "functi...
[ "0.7443831", "0.729691", "0.7206038", "0.71875536", "0.689346", "0.68917716", "0.6810214", "0.6809397", "0.68011695", "0.6760368", "0.6757188", "0.6750302", "0.6685144", "0.66638607", "0.66591364", "0.6634718", "0.65394664", "0.65353835", "0.6533203", "0.6527724", "0.6527724"...
0.0
-1
again using our functional approach this should be an easy one all we need to do object dot assign
function buyItem(user){ return Object.assign() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dAssign222(result, curr) {\n\t//console.log(arr)\n\tconsole.log(Reflect.ownKeys(curr).length)\n\t/*for (let i=0; i<Object.keys(curr).length; i++) {\n\t\tresult[Object.keys(curr)[i]] = curr[Object.keys(curr)[i]]\n\t}\t*/\t\n\tReflect.ownKeys(curr).forEach()\n\tconsole.log(Reflect.ownKeys(curr))\n\t//consol...
[ "0.61705", "0.6156957", "0.6136031", "0.6037386", "0.5956187", "0.59539384", "0.5925172", "0.5925172", "0.592437", "0.5865132", "0.58543915", "0.5822048", "0.5818879", "0.58131427", "0.58119524", "0.57855284", "0.57828677", "0.57781136", "0.57534695", "0.5749399", "0.5748441"...
0.0
-1
& in here we have an empty object
function buyItem(user){ return Object.assign({}, ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Object$empty() {\n return {};\n }", "function Object$empty() {\n return {};\n }", "function Object$zero() {\n return {};\n }", "function Object$zero() {\n return {};\n }", "function makeEmptyObject() {\n return new Object();\n}", "function empty() {\n\treturn Object.create(nul...
[ "0.79855925", "0.79855925", "0.7497064", "0.7497064", "0.74441254", "0.73145586", "0.6973477", "0.6820783", "0.67450047", "0.67225456", "0.67225456", "0.67225456", "0.66453165", "0.65873176", "0.65399355", "0.6516783", "0.643919", "0.64344174", "0.6352483", "0.6297621", "0.62...
0.0
-1
the user that we receive
function buyItem(user){ return Object.assign({}, user, ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUser () {return user;}", "function getUser() {\n return user;\n }", "function getUser(){\n return user;\n }", "get user() { return this.args.user }", "get user() { return this.user_; }", "function current() {\n return user;\n }", "function GetCurrentUser() {\...
[ "0.74128604", "0.7068514", "0.7034865", "0.6944389", "0.68714726", "0.6727432", "0.66817117", "0.6655455", "0.65990317", "0.6596135", "0.65659785", "0.65361875", "0.65215397", "0.64980596", "0.6473161", "0.6424909", "0.640973", "0.638212", "0.6362784", "0.6346945", "0.6339472...
0.0
-1
& all we do is well we have the purchases
function buyItem(user){ return Object.assign({}, user, { purchases: }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {\n return\n}", "function purchase(shirts, pants, shoes, discount) {\n\n if (!isLoaded) {\n...
[ "0.68480057", "0.68480057", "0.68480057", "0.68480057", "0.68480057", "0.68480057", "0.65781265", "0.64865464", "0.6476866", "0.6297486", "0.6230282", "0.62167007", "0.61998117", "0.61833054", "0.6163183", "0.6150414", "0.6143537", "0.6143105", "0.6138853", "0.61304617", "0.6...
0.5573715
100
& we update that with the items in the so it will be user dot cart
function buyItem(user){ return Object.assign({}, user, { purchases: user.cart }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateCart(){\n reset();\n cart.forEach(product =>{\n appendProduct(product);\n }); \n}", "function updateMiniCart() {\n if(!cart.items ) {\n cart.items = [];\n }\n }", "async updateCart_Of_User(){\n }", "function updateCart(){\n\t\tstorage(['items', 'subt...
[ "0.7289283", "0.723617", "0.7103477", "0.7100007", "0.7062099", "0.6936709", "0.6862387", "0.68604136", "0.6832831", "0.68196964", "0.6781367", "0.6777007", "0.67340124", "0.6727093", "0.67100394", "0.6691258", "0.667923", "0.66478145", "0.663374", "0.65717614", "0.65565306",...
0.0
-1
Hey look at that we have our purchases but we need to remove this from the actual cart because now Kim have purchased her laptop so the last option, to finish things off lets do the last piece
function emptyCart(user) { return user }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeFromCart(event) {\n\tlet storedCart = JSON.parse(localStorage.getItem('cart'));\n\tlet buttonName = event.target.dataset.name;\n\t//LOOP FOR SEARCHING SELECTED ITEM TO DELETE, EMPTYING ITS QUANTITY PROP BEFORE SPLICING IT OUT\n\tfor (let i = 0; i < storedCart.length; i += 1) {\n\t\tif (storedCart[i]...
[ "0.71327853", "0.7098311", "0.7069868", "0.704039", "0.7012164", "0.6976155", "0.6964491", "0.6923108", "0.6920773", "0.69204795", "0.69193035", "0.6881149", "0.6878736", "0.6872928", "0.68678886", "0.67989063", "0.6798291", "0.6794826", "0.67944556", "0.6758043", "0.6750638"...
0.0
-1
we have an empty object
function emptyCart(user) { return Object.assign({}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Object$empty() {\n return {};\n }", "function Object$empty() {\n return {};\n }", "function emptyObject (data) {\n return object(data) && Object.keys(data).length === 0;\n }", "function emptyObject (data) {\n return object(data) && Object.keys(data).length === 0;\n }", "funct...
[ "0.7978587", "0.7978587", "0.75720143", "0.7550998", "0.7261981", "0.7145195", "0.7145195", "0.7108276", "0.7108276", "0.7092023", "0.70807767", "0.70325994", "0.6980002", "0.69753695", "0.69753695", "0.69753695", "0.69753695", "0.69753695", "0.6949144", "0.6892917", "0.68424...
0.0
-1
that we attach the user to
function emptyCart(user) { return Object.assign({}, user) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function attachNewUserToIncident() {\n attachNewUser = true;\n $(\"#user_add_username\").val($(\"#user_name\").val());\n openAddUser();\n }", "async postSave () {\n\t\t// save an invite code as a signup token for this user\n\t\tawait this.saveSignupToken();\n\n\t\t// grant the user access...
[ "0.70610565", "0.6370864", "0.6258515", "0.61999613", "0.6174369", "0.61023957", "0.6075733", "0.60091335", "0.59679824", "0.5960956", "0.5929272", "0.59280473", "0.59259343", "0.58826303", "0.5878986", "0.58309025", "0.5792502", "0.5756952", "0.5732944", "0.57242495", "0.571...
0.0
-1
& then we update the cart to be what? just an empty array
function emptyCart(user) { return Object.assign({}, user, {cart: []}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateCart(){\n reset();\n cart.forEach(product =>{\n appendProduct(product);\n }); \n}", "function updateMiniCart() {\n if(!cart.items ) {\n cart.items = [];\n }\n }", "function updateCart(){\n\t\tstorage(['items', 'subtotal'], function(err, col){\n\t\t\t//...
[ "0.8029781", "0.78955716", "0.7504164", "0.74371463", "0.7170738", "0.712077", "0.709515", "0.7085033", "0.70527315", "0.70392627", "0.7026553", "0.70200926", "0.70095426", "0.69086605", "0.688936", "0.6771302", "0.673569", "0.673022", "0.67054623", "0.6696708", "0.66939217",...
0.0
-1
Kim has just purchased her first laptop it was twohundred & sixty bucks because of the big tax but now hey she all the coding that she wants how nice was that! I mean it was a little bit complicated at first, because we have to create this compose function but now that we have this compose in place purchase item works ...
function refundItem() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function purchaseItem(...fns) => fns.reduce(compose)\n\n{} // & act over the data that we receive", "function purchaseItem(...fns) => fns.reduce(compose)\n\n{} // so I have to make sure that I have returned in here this property", "function purchaseItem(...fns) => fns.reduce(compose)\n\n{} // the reduce functi...
[ "0.72371185", "0.7230484", "0.7070733", "0.69941866", "0.6823645", "0.6341362", "0.62372386", "0.62057656", "0.62057656", "0.62057656", "0.62057656", "0.62057656", "0.62057656", "0.6131362", "0.60218513", "0.5882894", "0.56475824", "0.5645957", "0.5630192", "0.5627244", "0.56...
0.52532417
60
& everytime we do something we wanna add to this history for example in the add item to cart at the beginning I can just say amazon dot history dot push the current user state
function addItemToCart(user, item) { amazonHistory.push(user) const updateCart = user.cart.concat(item) return Object.assign({}, user, { cart: updateCart }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "recordState() {\n this._history.push(this.getDataString());\n }", "addHistory(state, { history }) {\n history.forEach((element) => {\n state.history.push(element);\n });\n }", "saveInHistory(state) {\n let histName = state.currentHistoryName;\n\n if (histName === null) {\n ...
[ "0.7073374", "0.70728594", "0.7058642", "0.69189364", "0.6844427", "0.6816257", "0.6783681", "0.6746898", "0.6671639", "0.66029346", "0.6587681", "0.65237963", "0.6508683", "0.64927334", "0.6459939", "0.64535743", "0.6448391", "0.6445364", "0.6444287", "0.6443917", "0.6438886...
0.606635
51
& then maybe I wanna make sure that I capture the state of the user before we apply the taxes
function applyTaxToItems(user){ amazonHistory.push(user) const {cart} = user; const taxRate = 1.3; const updatedCart = cart.map(item => { return { name: item.name, price: item.price*taxRate } }) return Object.assign({}, user, { cart: updatedCart }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyTaxToItems(user){}", "function applyTaxToItems(user){\n const\n}", "function applyTaxToItems(user){\n return user\n}", "function applyTaxToItems(user){\n return user\n}", "function applyTaxToItems(user){\n return user\n}", "function tax() {\n if (paysTax.checked) {\n return ...
[ "0.71665764", "0.69283986", "0.6824644", "0.6824644", "0.6824644", "0.6514695", "0.6489362", "0.64564246", "0.6449419", "0.640856", "0.63412637", "0.63382673", "0.62944937", "0.62597966", "0.6229813", "0.62088215", "0.61874354", "0.614564", "0.6008244", "0.59829456", "0.59515...
0.6083801
18
maybe here when we buy the item
function buyItem(user){ amazonHistory.push(user) return Object.assign({}, user, { purchases: user.cart }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function buyItem() {\n\n}", "buyItem(item) {\n console.log(\"Buying Item:\", item.name);\n }", "function buyI...
[ "0.79187906", "0.79187906", "0.79187906", "0.79187906", "0.79187906", "0.79187906", "0.7769632", "0.75005263", "0.74575", "0.7396091", "0.7283617", "0.7227057", "0.7210392", "0.7182856", "0.71780926", "0.714833", "0.69720185", "0.6955359", "0.69443524", "0.69295746", "0.69281...
0.0
-1
I have the entire history of Kim & what she did now, this doesnt look very pretty right now but I hope you can see that we have Kim initialy no purchases, nothing in the cart & all untill the end where she has purchases & right now she has still things in the cart because we havent capture history after we empty cart b...
function getUserState() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buyItem(user){\n amazonHistory.push(user)\n return Object.assign({}, user, { purchases: user.cart })\n}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", "function purchaseItem() {}", ...
[ "0.63574064", "0.61856747", "0.61856747", "0.61856747", "0.61856747", "0.61856747", "0.61856747", "0.60266846", "0.5997815", "0.5989271", "0.59656394", "0.59552443", "0.5932503", "0.5930405", "0.5910026", "0.5877828", "0.5869807", "0.5864504", "0.5859745", "0.582038", "0.5820...
0.0
-1
uses the $.data collection to set the current mode of operation 0 is for new 1 is for edit
function setEditOrCreateMode(mode) { $(invoke_button).data("mode", mode) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@action initCategoryEditing(editingData) {\n this.isEditingCategory = true;\n this.editingCategoryData = {...editingData, mode: 'edit'};\n }", "function fhArrival_editMode() {\n\n\tjQuery('.fhArrival_viewMode').hide();\n\t\n\tjQuery('.fhArrival_viewField').each(function () {\n\t\tvar editField =...
[ "0.6250643", "0.62061447", "0.6168037", "0.61565536", "0.60810053", "0.58429164", "0.58047915", "0.5736389", "0.5726355", "0.5716586", "0.56958395", "0.5654687", "0.56344986", "0.56238943", "0.5603323", "0.5582353", "0.55768484", "0.556819", "0.55554056", "0.5552621", "0.5542...
0.67604053
0
get the values added in the fancybox and add them to the flex grid
function populateValuesInGrid(event) { //value of 1 means affiliated with LUMS event.field.find(".configName").text($("#configNamePopUp").val()) event.field.find("*[id*=name]").val($("#configNamePopUp").val()) event.field.find(".editConfigLink").click(function() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initFancyGallery()\n\t{\n\t\tvar $slides = $('.more-views__fancy-item');\n\t\t\n\t\tif ( $slides.length > 0 )\n\t\t{\n\t\t\t$slides.fancybox({\n\t\t\t\tkeyboard: true,\n\t\t\t\tloop: true,\n\t\t\t\tarrows: true,\n\t\t\t\tinfobar: true,\n\t\t\t\tsmallBtn: \"auto\",\n\t\t\t\ttoolbar: \"auto\",\n\t\t\t\tbase...
[ "0.5487896", "0.5434743", "0.5408386", "0.5375987", "0.53671753", "0.53619415", "0.53388476", "0.5338306", "0.5332664", "0.5322752", "0.5320682", "0.53182495", "0.5312672", "0.5250149", "0.52407247", "0.5240117", "0.52380985", "0.52188253", "0.52098686", "0.519757", "0.518699...
0.60808325
0
Filter Notes by Tags
filterNotes(e) { e.preventDefault(); const tagCategory = this.state.search; let promise = axios.get(url); promise .then(result => { const notes = []; for (let id in result.data) { const note = { id, tag: result.data[id].tag, text: result....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filter_notes(tags)\n {\n var id, note, tr, match;\n for (id in noteslist.rows) {\n tr = noteslist.rows[id].obj;\n note = notesdata[id];\n match = note.tags && note.tags.length;\n for (var i=0; match && note && i < tags.length; i++) {\n ...
[ "0.7423184", "0.6709971", "0.6677388", "0.66748637", "0.662941", "0.63826823", "0.6152156", "0.6137908", "0.6047202", "0.5993102", "0.5958183", "0.59414595", "0.5939921", "0.5936382", "0.5905244", "0.58351755", "0.5780541", "0.57714903", "0.5697105", "0.5693547", "0.5683578",...
0.62764424
6
Add Tags UPDATE NOTE NEEDS TO BE FIXED
updateNote() { let notes = this.state.notes; let id = this.state.editNoteId; let text= this.state.input; let tag = this.state.tags; let tagList = tag.split(','); axios.put(editUrl + id + '.json', {text, tag: tagList}) .then( result => { let newNotes = notes.map( note => { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tags(tags) { }", "function addTag(tag_index,tag_name,tag_content,tagArray) {\r\n var tag={tag_index,tag_name,tag_content};\r\n tagArray.push(tag);\r\n}", "onAddTags() {}", "addTags(tags) {\n tags = Object.assign({}, tags)\n this.tags = Object.assign(this.tags, tags)\n // calculate graph i...
[ "0.7387906", "0.7251404", "0.7153994", "0.7099827", "0.70873046", "0.70794547", "0.7054802", "0.70471495", "0.69335383", "0.6803474", "0.67968065", "0.67637855", "0.6748811", "0.6738825", "0.66982925", "0.66908187", "0.6687641", "0.66764146", "0.66650647", "0.66456705", "0.66...
0.0
-1
inner working of this function
function gameFunction() { if (document.querySelector('input:checked') === null) { alert('Please select one of the three options.'); return; } const userChoice = document.querySelector('input:checked').value; const computerChoice = getComputerThrow(); const userWon = rockPaperScis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "protected internal function m252() {}", "transient protected internal function m189() {}", "private public function m246() {}", "transient private protected internal function m182() {}", "transient private internal function m185() {}", "static private internal fun...
[ "0.6540367", "0.62368804", "0.6236711", "0.62117434", "0.616918", "0.59639865", "0.59015316", "0.5873283", "0.58373016", "0.58023936", "0.56132144", "0.5558817", "0.55560195", "0.5533693", "0.5489347", "0.5478784", "0.5451235", "0.5449582", "0.5449582", "0.5433544", "0.541253...
0.0
-1
Battleship Characteristics & Details // (You Could Say This Section Is Full Of Ship) // / Fleet Creation & Ship Properties
function Fleet(name) { this.name = name; // Define Ships In Fleet // this.shipDetails = [{ "name": "carrier", "length": 5 }, { "name": "battleship", "length": 4 }, { "name": "cruiser", "length": 3 }, { "name": "destroyer", "length": 3 }, { "name": "frigate", "length": 2 }]; this.numOfShips =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createShip(index) {\n\n // if the cannoneer isn't in the game, set it to a fixed (near maximum) level\n let cannons = [2, -1, -1, -1], cannoneerLvl = 0, cannoneerInGame = false;\n if(!cannoneerInGame) {\n cannons = [2, 2, 2, 2]\n cannoneerLvl = 3;\n }\n\n let randOrientation = Math.floor(Math.r...
[ "0.6219669", "0.6122258", "0.6106414", "0.6004893", "0.5940519", "0.58919734", "0.58860546", "0.5835676", "0.58263576", "0.5788037", "0.57335156", "0.5667143", "0.5633085", "0.5626628", "0.56000525", "0.5578178", "0.55688787", "0.5561249", "0.5557492", "0.554208", "0.55408484...
0.6277782
0
Keeping Track Of Ships In Fleet
function Ship(name){ this.name = name; this.length = 0; this.hitPoints = []; // Hits for Horizontal Ships // this.populateHorzHits = function(start) { for (var i = 0; i < this.length; i++, start++) { this.hitPoints[i] = start; } }; // Hits for Vertical Ships // this.populateVertHits = function(start) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ShipsLocal() {\n\n this.go=function(command,data) {\n var c,sy,ps,h,hs,cm,pHistogram,warrantHistogram,mes=\"\";\n var parsed={};\n //alert(command+\"+\"+data);\n \n if ( command==\"cs\" || command==\"as\" ) view2.pMessage.put(\"\");\n \n if ( command==\"cell\" && data ) { // set a sq...
[ "0.6251798", "0.588347", "0.57260734", "0.5708157", "0.5685251", "0.5593833", "0.5570978", "0.55329376", "0.54191667", "0.5413811", "0.5404049", "0.53766936", "0.53735465", "0.5368961", "0.53679925", "0.5320632", "0.5312145", "0.5298861", "0.5289078", "0.5282714", "0.5277696"...
0.0
-1
Naval Command Ship Placement
function randomSetup(fleet) { if (fleet.currentShip >= fleet.numOfShips) return; var orien = Math.floor((Math.random() * 10) + 1); var length = fleet.ships[fleet.currentShip].length; if (orien < 6) { var shipOffset = 11 - fleet.ships[fleet.currentShip].length; var horiz = Math.floor((Math.random() * shipOf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "placeShip(ship,position){\n\n // if the ship is horizontal\n if (ship.vertical == false){\n for( let i = 0; i < ship.length; i++){\n this.grid[parseInt(position.charAt(0))][parseInt(position.charAt(1))+i] = ship.name+(i+1)\n } \n }\n else{\n ...
[ "0.6277569", "0.606101", "0.6034509", "0.60007274", "0.5967282", "0.5920826", "0.5842553", "0.5789088", "0.57203084", "0.57110023", "0.56926155", "0.5686221", "0.56737554", "0.56446046", "0.56228864", "0.5613628", "0.5557849", "0.555779", "0.55187553", "0.54868704", "0.547642...
0.0
-1
Add a document by given collecction and document
function addDocument(collection, document, callback){ MongoClient.connect(url, function(err, db){ if (err) throw err db.collection(collection).insert(document, function(err, result) { console.log(result) assert.equal(err, null); assert.equal(1, result.result.n); assert.equal(1, result....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "add(doc){const idx=this.size();if(isString(doc)){this._addString(doc,idx);}else {this._addObject(doc,idx);}}", "async addDocument(_, { input: { doc, owner } }, { generalInfo }) {\n const document = { doc }\n const { insertedId } = await generalInfo.insertOne(document)\n document._id = insertedId\n\n ...
[ "0.72200406", "0.71269244", "0.69567025", "0.69169676", "0.6706773", "0.6706773", "0.6706773", "0.6609426", "0.6559072", "0.6519775", "0.65146273", "0.64679414", "0.64276755", "0.6423943", "0.6304233", "0.6277262", "0.6253428", "0.620708", "0.6202558", "0.6160706", "0.6149428...
0.6680174
7
create template document by given template name and array of fields required to be added
function createTemplate(templateName, fieldsArray, callback){ var readyTemplate = { template: templateName, fields:fieldsArray } callback(readyTemplate) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addTemplate(templateName, fieldsArray,callback){\n\tcreateTemplate(templateName,fieldsArray, function(readyTemplate){\n\taddDocument('templates',readyTemplate,function(result){\n\tcallback(result)})})\n}", "function Template(style, fields) {\n if (!~STYLES.indexOf(style))\n throw new Error(\"Unsuppo...
[ "0.7970951", "0.61272025", "0.6053861", "0.5956159", "0.57502514", "0.56741035", "0.562444", "0.55815834", "0.5574609", "0.55380154", "0.55362004", "0.54940426", "0.5479189", "0.5460542", "0.5450835", "0.54419816", "0.54292387", "0.5385388", "0.5380933", "0.5360706", "0.53575...
0.7424708
1
1. creates template 2. adds it to 'templates' collection as any other document, using addDocument function
function addTemplate(templateName, fieldsArray,callback){ createTemplate(templateName,fieldsArray, function(readyTemplate){ addDocument('templates',readyTemplate,function(result){ callback(result)})}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "create(title, cost, description, thumbnail, image){\n let template = {\n \"title\": title,\n \"cost\": cost,\n //VERY BAD, USE Object.Id (mongoose)\n // \"id\": this.guid(),\n \"id\": Math.floor(1000 + Math.random() * 9000),\n \"description\": description,\n \"thumbnail\": thu...
[ "0.61595595", "0.6001832", "0.5951343", "0.59362054", "0.5834552", "0.58092976", "0.57732886", "0.57645494", "0.57587427", "0.57551444", "0.5728691", "0.5703054", "0.57015073", "0.5653954", "0.56371397", "0.5611637", "0.56008595", "0.5599949", "0.55592513", "0.5515634", "0.55...
0.7559686
0
webpackBootstrap install a JSONP callback for chunk loading
function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ /******/ /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function webpackJsonpCallback(data) {\n/******/ \t\tvar chunkIds = data[0];\n/******/ \t\tvar moreModules = data[1];\n/******/\n/******/ \t\tvar prefetchChunks = data[3] || [];\n/******/ \t\t// add \"moreModules\" to the modules object,\n/******/ \t\t// then flag all \"chunkIds\" as loaded and fire callback\n/****...
[ "0.77749467", "0.7585046", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.7549729", "0.75380653", "0.75380653", "0.74099153",...
0.7522832
38
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 makeStyleCoord(out, zr, zrX, zrY) { out[0] = zrX; out[1] = zrY; out[2] = out[0] / zr.getWidth(); // The ratio of left to width out[3] = out[1] / zr.getHeight(); // The ratio of top to height }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "render() {\n return (\n <g className=\"chart-legend-group\"/>\n );\n }", "function Group(options) {\n // parent can be position(global level) or another group\n\n\n this.children = [];\n this.points = [];\n this.circles = [];\n\n this.state = {\n inAir: false\n };\n\n this.dPos = [0...
[ "0.58008933", "0.57160455", "0.56957245", "0.543457", "0.5425413", "0.5348135", "0.53019774", "0.52256423", "0.5212535", "0.5190508", "0.5159354", "0.51460224", "0.5126315", "0.503613", "0.5036009", "0.5035937", "0.5032178", "0.5028976", "0.50117284", "0.49989685", "0.4982458...
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
Determine if we're running in a standard browser environment This allows axios to run in a web worker, and reactnative. Both environments support XMLHttpRequest, but not fully standard globals. web workers: typeof window > undefined typeof document > undefined reactnative: navigator.product > 'ReactNative'
function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isStandardBrowserEnv() {\n if (\n typeof navigator !== 'undefined' &&\n (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')\n ) {\n return false;\n }\n return typeof win...
[ "0.81448644", "0.81339467", "0.81299907", "0.8129108", "0.811999", "0.811999", "0.81184554", "0.81019855", "0.81019855", "0.81019855", "0.81019855", "0.81019855", "0.81019855", "0.81019855", "0.81019855", "0.80985695", "0.80985695", "0.80985695", "0.80985695", "0.80985695", "...
0.0
-1
Parameter are the same as `addEventListener`. Notice that if a listener is registered twice, one with capture and one without, remove each one separately. Removal of a capturing listener does not affect a noncapturing version of the same listener, and vice versa.
function removeEventListener(el, name, handler, opt) { if (isDomLevel2) { el.removeEventListener(name, handler, opt); } else { el.detachEvent('on' + name, handler); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function xRemoveEventListener(e,eT,eL,cap)\r\n{\r\n if(!(e=xGetElementById(e)))return;\r\n eT=eT.toLowerCase();\r\n if(e.removeEventListener)e.removeEventListener(eT,eL,cap||false);\r\n else if(e.detachEvent)e.detachEvent('on'+eT,eL);\r\n else e['on'+eT]=null;\r\n}", "function xRemoveEventListener(e,eT,eL,c...
[ "0.73523843", "0.7347782", "0.73320246", "0.71575457", "0.70834035", "0.70741934", "0.70741934", "0.70741934", "0.70741934", "0.69655424", "0.6936234", "0.69298404", "0.69137335", "0.69062173", "0.69062173", "0.69062173", "0.69062173", "0.69062173", "0.68763345", "0.6863793", ...
0.6346375
67
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 IndicatorAxis(dim, scale, radiusExtent) { Axis.call(this, dim, scale, radiusExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = 'value'; this.angle = 0; /** * Indicator name * @type {string} */ this.name = ''; ...
{ "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 getViewRect(seriesModel, api) { return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), { width: api.getWidth(), height: api.getHeight() }); }
{ "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
Mixin common methods to axis model, Inlcude methods `getFormattedLabels() => Array.` `getCategories() => Array.` `getMin(origin: boolean) => number` `getMax(origin: boolean) => number` `getNeedCrossZero() => boolean` `setRange(start: number, end: number)` `resetRange()`
function mixinAxisModelCommonMethods(Model) { zrUtil.mixin(Model, axisModelCommonMixin); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Axis(min, max) {\n this.Min = min;\n this.Max = max;\n }", "function mixinAxisModelCommonMethods(Model) {\n\t mixin(Model, AxisModelCommonMixin);\n\t }", "function _default() {\n\n\tfunction axisX(selection, x) {\n\t\tselection.attr(\"transform\", function (d) {\n\t\t\treturn...
[ "0.6456995", "0.64222115", "0.64139944", "0.6311109", "0.62709725", "0.62081957", "0.60227144", "0.59888047", "0.5952998", "0.592759", "0.59203583", "0.58894354", "0.5867283", "0.5856101", "0.580715", "0.5805064", "0.5797678", "0.57902026", "0.57778424", "0.5771716", "0.57472...
0.6458842
8
Creates a new instance of ResizeObserverController.
function ResizeObserverController() { /** * Indicates whether DOM listeners have been added. * * @private {boolean} */ this.connected_ = false; /** * Tells that controller has subscribed for Mutation Events. * * @private {boolean} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ResizeObserverController() {\n /**\n * Indicates whether DOM listeners have been added.\n *\n * @private {boolean}\n */\n this.connected_ = false;\n /**\n * Tells that controller has subscribed for Mutation Events...
[ "0.78830975", "0.78830975", "0.78728455", "0.786317", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.7860705", "0.78508484", "0.78344685", "0.78318673", "0.7805686"...
0.78771085
18
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 create(ecModel, api) { var coordSysList = []; ecModel.eachComponent('parallel', function (parallelModel, idx) { var coordSys = new Parallel(parallelModel, ecModel, api); coordSys.name = 'parallel_' + idx; coordSys.resize(parallelModel, api); parallelModel.coordinateSystem = coordSys; co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init() {\n\n // array of: r_maj,r_min,lat1,lat2,c_lon,c_lat,false_east,false_north\n //double c_lat; /* center latitude */\n //double c_lon; /* center longitude */\n //double lat1; /* first standard parall...
[ "0.6406983", "0.6309303", "0.59099597", "0.5575591", "0.5456198", "0.5451001", "0.5451001", "0.542809", "0.53596663", "0.53301585", "0.52945304", "0.52557594", "0.5235773", "0.5232545", "0.51846546", "0.5149977", "0.5139875", "0.5132247", "0.5104597", "0.5080405", "0.5079979"...
0.59175324
7
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) { return { seriesType: seriesType, reset: function (seriesModel, ecModel) { var legendModels = ecModel.findComponents({ mainType: 'legend' }); if (!legendModels || !legendModels.length) { return; } var data = seriesModel.getData(); ...
{ "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
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 simpleLayout(seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type !== 'view') { return; } var graph = seriesModel.getGraph(); graph.eachNode(function (node) { var model = node.getModel(); node.setLayout([+model.get('x'), +model.get('y')]); }); si...
{ "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
Do not execute util needed.
function getLabelDefaultText(idx, opt) { return useNameLabel ? data.getName(idx) : getDefaultLabel(data, idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Util() {}", "function DWRUtil() { }", "function AeUtil() {}", "function Utils(){}", "function Utils() {}", "function Utils() {}", "private public function m246() {}", "function _____SHARED_functions_____(){}", "private internal function m248() {}", "static private internal function m121(...
[ "0.6675781", "0.6511974", "0.63683903", "0.6353246", "0.633664", "0.633664", "0.61127895", "0.6072407", "0.600812", "0.5830197", "0.57776296", "0.5775812", "0.5761761", "0.57195854", "0.5696808", "0.5674436", "0.56700087", "0.56700087", "0.5631267", "0.5621573", "0.5604435", ...
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, api) { ecModel.eachSeriesByType('themeRiver', function (seriesModel) { var data = seriesModel.getData(); var single = seriesModel.coordinateSystem; var layoutInfo = {}; // use the axis boundingRect for view var rect = single.getRect(); layoutInfo.rect = rect; var bo...
{ "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(seriesType) { return { getTargetSeries: function (ecModel) { // Pie and funnel may use diferrent scope var paletteScope = {}; var seiresModelMap = createHashMap(); ecModel.eachSeriesByType(seriesType, function (seriesModel) { seriesModel.__paletteScope = paletteSc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pickColor(d, data, colorIds) {\n var candidateId;\n for (var i=0; i<colorIds.length; i++) {\n candidateId = colorIds[i];\n if (isAvailableColor(d, data, candidateId)) {\n return candidateId;\n }\n }\n return -1; // no colors are available\n }", "function randomColorFro...
[ "0.6433456", "0.6427001", "0.63661575", "0.63516146", "0.6293389", "0.6179588", "0.61693805", "0.6082315", "0.6061434", "0.60444456", "0.60351753", "0.6022115", "0.6020953", "0.6009073", "0.600888", "0.59864014", "0.59861124", "0.59814674", "0.5944339", "0.5918118", "0.590719...
0.5517558
97
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 getFixedItemStyle(model) { var itemStyle = model.getItemStyle(); var areaColor = model.get('areaColor'); // If user want the color not to be changed when hover, // they should both set areaColor and color to be null. if (areaColor != null) { itemStyle.fill = areaColor; } return itemStyle; }
{ "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
|1|2|3|4|. So the displayed ticks and splitLine/splitArea should between each data item, otherwise cause misleading (e.g., split tow bars of a single data item when there are two bar series). Also consider if tickCategoryInterval > 0 and onBand, ticks and splitLine/spliteArea should layout appropriately corresponding t...
function fixOnBandTicksCoords(axis, ticksCoords, alignWithLabel, clamp) { var ticksLen = ticksCoords.length; if (!axis.onBand || alignWithLabel || !ticksLen) { return; } var axisExtent = axis.getExtent(); var last; var diffSize; if (ticksLen === 1) { ticksCoords[0].coord = axisExtent[0]; la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addMiddleMajorTicks(tickscount, ticksDistance, distanceFromFirstToSecond, distanceModifier, normalLayout, ticksFrequency) {\n const that = this.context;\n\n let majorTicks = '', majorLabels = '', valuePlusExponent;\n\n for (let i = 1; i < tickscount; i++) {\n let number = distanceFr...
[ "0.60392827", "0.60314906", "0.6030362", "0.59701616", "0.59503067", "0.5904751", "0.58438474", "0.58438474", "0.58438474", "0.5722795", "0.57056075", "0.55909246", "0.5581331", "0.55562097", "0.5527876", "0.5527876", "0.5527876", "0.5527876", "0.5525694", "0.5498436", "0.546...
0.5525234
20
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 Radar(radarModel, ecModel, api) { this._model = radarModel; /** * Radar dimensions * @type {Array.<string>} */ this.dimensions = []; this._indicatorAxes = zrUtil.map(radarModel.getIndicatorModels(), function (indicatorModel, idx) { var dim = 'indicator_' + idx; var indicatorAxis = new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static get FREE_ROTATION() { return 1; }", "static get TWO_ANGLE_ROTATION() { return 0; }", "extractSlice(requestedOrientation,index){\n\n }", "isRotateSupported() {\n return true;\n }", "rotateClockwise()\r\n {\r\n this.rotation += Math.PI / 180;\r\n }", "getRotation() {\nretur...
[ "0.5294491", "0.5209744", "0.51446456", "0.51192975", "0.4876428", "0.4870541", "0.47322673", "0.47205248", "0.47182938", "0.46515015", "0.46481043", "0.46409717", "0.4629595", "0.46273243", "0.46244168", "0.46191004", "0.46133575", "0.4586382", "0.4586382", "0.4586382", "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 getSeriesStackId(seriesModel) { return seriesModel.get('stack') || '__ec_stack_' + seriesModel.seriesIndex; }
{ "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
Calculate bar width and offset for radial bar charts
function calRadialBar(barSeries, api) { // Columns info on each category axis. Key is polar name var columnsMap = {}; zrUtil.each(barSeries, function (seriesModel, idx) { var data = seriesModel.getData(); var polar = seriesModel.coordinateSystem; var baseAxis = polar.getBaseAxis(); var axisKey = g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calRadialBar(barSeries) {\n // Columns info on each category axis. Key is polar name\n var columnsMap = {};\n util[\"k\" /* each */](barSeries, function (seriesModel, idx) {\n var data = seriesModel.getData();\n var polar = seriesModel.coordinateSystem;\n var baseAxis = polar.getBaseAxis();\n ...
[ "0.6897167", "0.68837523", "0.67884", "0.6748104", "0.6733237", "0.6733237", "0.6733237", "0.6733237", "0.6513658", "0.64330727", "0.63705564", "0.63193226", "0.6267019", "0.6200514", "0.61871135", "0.60821056", "0.60558355", "0.6031888", "0.6010426", "0.599754", "0.59904987"...
0.6655762
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) { ecModel.eachSeriesByType('radar', function (seriesModel) { var data = seriesModel.getData(); var points = []; var coordSys = seriesModel.coordinateSystem; if (!coordSys) { return; } var axes = coordSys.getIndicatorAxes(); zrUtil.each(axes, function (axi...
{ "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
This action will be throttled.
function dispatchAction(api, batch) { api.dispatchAction({ type: 'dataZoom', batch: batch }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "throttle () {\n return _.throttle.apply(_, arguments);\n }", "function throttle (method. context) {\n clearTimeout(method.tld);\n method.tld = setTimeout(function () {\n method.call(context);\n }, 100);\n}", "set throttle(t) {\n this.system.throttle = t;\n }", "function throttledRequ...
[ "0.6899684", "0.6878536", "0.66055375", "0.65668017", "0.6566585", "0.64832175", "0.6468493", "0.6352173", "0.6343378", "0.6342932", "0.63019234", "0.6262077", "0.62402064", "0.6228161", "0.617086", "0.60943234", "0.6088599", "0.6071916", "0.6071916", "0.6071447", "0.60616916...
0.0
-1
Merge roamController settings when multiple dataZooms share one roamController.
function mergeControllerParams(dataZoomInfos) { var controlType; // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated // as string, it is probably revert to reserved word by compress tool. See #7411. var prefix = 'type_'; var typePriority = { 'type_true': 2, 'type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mergeControllerParams(dataZoomInfoMap) {\n var controlType; // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated\n // as string, it is probably revert to reserved word by compress tool. See #7411.\n\n var prefix = 'type_';\n var typePriority = {\n 'type_true':...
[ "0.68844336", "0.683665", "0.6807137", "0.6807137", "0.6807137", "0.66090053", "0.6491149", "0.536376", "0.4962876", "0.49064708", "0.48554066", "0.47996208", "0.4716626", "0.4716621", "0.4697131", "0.46848083", "0.46733788", "0.46705052", "0.46656418", "0.4617166", "0.461554...
0.6634023
7
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('graph', function (seriesModel) { if (seriesModel.get('layout') === 'circular') { circularLayout(seriesModel, 'symbolSize'); } }); }
{ "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(properties) { // Normalize for (var i = 0; i < properties.length; i++) { if (!properties[i][1]) { properties[i][1] = properties[i][0]; } } return function (model, excludes, includes) { var style = {}; for (var i = 0; i < properties.length; i++) { var propName = pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get path()\t\t{ return this.match[7] || \"\" }", "_getDirectMatchProps() {\n return ['file'];\n }", "function PathMapper() {\n\t}", "function PathMapper() {\n\t}", "resolveAsPath() { }", "get fullpath()\t{ return \"\" + this.prefix + this.path }", "function segment(WrappedComponent, mapping) {\n /...
[ "0.53262603", "0.5297441", "0.5290855", "0.5290855", "0.52720904", "0.51392984", "0.50177807", "0.50107986", "0.49552584", "0.49144223", "0.49073443", "0.49059615", "0.48887694", "0.4885875", "0.48386818", "0.4826161", "0.4825986", "0.4801901", "0.47598985", "0.4757453", "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, api) { ecModel.eachSeriesByType('graph', function (seriesModel) { var layout = seriesModel.get('layout'); var coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type !== 'view') { var data = seriesModel.getData(); var dimensions = []; each(coord...
{ "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
Use timsort because in most case elements are partially sorted
function shapeCompareFunc(a, b) { if (a.zlevel === b.zlevel) { if (a.z === b.z) { // if (a.z2 === b.z2) { // // FIXME Slow has renderidx compare // // http://stackoverflow.com/questions/20883421/sorting-in-javascript-should-every-compare-function-have-a-return-0-statement // //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function timSort(){\n console.log(\"WORK IN PROGRESS\");\n let run = 32;\n\n for(let i = 0; i < values.length; i += run) {\n insertionSort(i, Math.min((i+31), (values.length-1)));\n }\n\n for(let size = run; size < values.length; size = 2 * size) {\n for(let left = 0; left < values.len...
[ "0.7325162", "0.6831727", "0.66565955", "0.6642157", "0.65832806", "0.65818954", "0.65380836", "0.6420119", "0.64198995", "0.63896215", "0.63785446", "0.6361396", "0.63176745", "0.6280679", "0.627885", "0.621601", "0.6211559", "0.61778635", "0.6151861", "0.6149226", "0.614890...
0.0
-1
And `getCoordinateSystems` and `getComponentByElement` will be injected in echarts.js
function ExtensionAPI(chartInstance) { zrUtil.each(echartsAPIList, function (name) { this[name] = zrUtil.bind(chartInstance[name], chartInstance); }, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_initializeComponent() {\n //Heade\n this.elements.header = document.createElement(\"div\");\n this.elements.title = document.createElement(\"span\");\n this.elements.range = document.createElement(\"span\");\n\n this.elements.header.className = \"chart-header\";\n this.el...
[ "0.55974907", "0.5475304", "0.5357767", "0.531706", "0.5299839", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52864987", "0.52713776", "0.52608424", "0.52194715", "0.51955324", "0.5170994", "0.5170994", "0.5170994", "0.5170994", "0.5141789", "0.512...
0.0
-1
attribute 'color' to represent both concepts of 'colorRange' and 'color', (It means 'colorRange' when 'color' is Array, means 'color' when not array), this problem will be encountered: If a level1 node dont have children, and its siblings has children, and colorRange is set on level1, then the node can not be colored. ...
function getRangeVisual(nodeModel, name) { // 'colorRange', 'colorARange', 'colorSRange'. // If not exsits on this node, fetch from levels and series. var range = nodeModel.get(name); return isArray(range) && range.length ? { name: name, range: range } : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function locateColorAttrs(attr, attrName, attrs, level) {\n path[level] = attrName;\n path.length = level + 1;\n if(attr.valType === 'color' && attr.dflt === undefined) {\n colorAttrs.push(path.join('.'));\n }\n }", "function locateColorAttrs(attr, attrName, attrs, level...
[ "0.63619906", "0.63619906", "0.6360443", "0.6170336", "0.60562044", "0.60562044", "0.6054188", "0.60462403", "0.60265625", "0.5981543", "0.5981543", "0.5981543", "0.5981543", "0.59813595", "0.59813595", "0.59813595", "0.59418565", "0.59411913", "0.5850726", "0.5762965", "0.57...
0.5855089
23
Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not support the API. Wrapping the native API works around differences in behavior from different browsers.
function getBrowserPerformance() { var performance = Object(_misc__WEBPACK_IMPORTED_MODULE_0__[/* getGlobalObject */ "e"])().performance; if (!performance || !performance.now) { return undefined; } // Replace performance.timeOrigin with our own timeOrigin based on Date.now(). // // This ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBrowserPerformance() {\n var performance = global_1.getGlobalObject().performance;\n if (!performance || !performance.now) {\n return undefined;\n }\n // Replace performance.timeOrigin with our own timeOrigin based on Date.now().\n //\n // This is a partial workaround for brows...
[ "0.73013914", "0.7155615", "0.6459154", "0.64586353", "0.64429426", "0.6427585", "0.6427123", "0.6411863", "0.63525313", "0.5877083", "0.56639206", "0.53158796", "0.5205851", "0.5202694", "0.51719266", "0.5155014", "0.50735724", "0.5063916", "0.50532377", "0.4981765", "0.4976...
0.74283653
0
Returns the native Performance API implementation from Node.js. Returns undefined in old Node.js versions that don't implement the API.
function getNodePerformance() { try { var perfHooks = Object(_node__WEBPACK_IMPORTED_MODULE_1__[/* dynamicRequire */ "a"])(module, 'perf_hooks'); return perfHooks.performance; } catch (_) { return undefined; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNodePerformance() {\n try {\n const perfHooks = node.dynamicRequire(module, 'perf_hooks') ;\n return perfHooks.performance;\n } catch (_) {\n return undefined;\n }\n}", "function getNodePerformance() {\n try {\n var perfHooks = node_1.dynamicRequire(module, 'perf_hooks');\n ...
[ "0.72891647", "0.72782433", "0.7228223", "0.7197571", "0.7179545", "0.6287327", "0.61517394", "0.6042175", "0.56824195", "0.54146206", "0.5385064", "0.5351549", "0.52193046", "0.5199999", "0.5183398", "0.51653475", "0.5127289", "0.5127289", "0.5127289", "0.5127289", "0.512728...
0.7035801
5
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 getViewRect(seriesModel, api, aspect) { var option = seriesModel.getBoxLayoutParams(); option.aspect = aspect; return getLayoutRect(option, { width: api.getWidth(), height: api.getHeight() }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function View(projection) {\n 'use strict';\n /**\n * centerUser define the center of the view\n * @type {number[]}\n */\n this.centerUser = [0,0];\n /**\n * zoomMin define the minimal zoom possible of the map\n * @type {number}\n */\n this.zoomMin = 0;\n /**\n * zoomM...
[ "0.6192853", "0.6091999", "0.60366374", "0.60334706", "0.6004408", "0.5991304", "0.5938834", "0.5920568", "0.5900496", "0.58869183", "0.58195364", "0.581382", "0.5787588", "0.5783509", "0.57745093", "0.57741964", "0.5695295", "0.56733745", "0.56659806", "0.56338286", "0.56295...
0.0
-1
Retrieve the those raw params from option, which will be cached separately. becasue they will be overwritten by normalized/calculated values in the main process.
function retrieveRawOption(option) { var ret = {}; each(['start', 'end', 'startValue', 'endValue', 'throttle'], function (name) { option.hasOwnProperty(name) && (ret[name] = option[name]); }); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function retrieveRawOption(option) {\n\t var ret = {};\n\t each(['start', 'end', 'startValue', 'endValue', 'throttle'], function (name) {\n\t option.hasOwnProperty(name) && (ret[name] = option[name]);\n\t });\n\t return ret;\n\t }", "function retrieveRawOption(option) {\n var ret =...
[ "0.7022471", "0.6510197", "0.57947916", "0.5677672", "0.5633863", "0.5613766", "0.5612137", "0.56063175", "0.56030595", "0.5596381", "0.5594433", "0.558702", "0.55598414", "0.5553571", "0.55411255", "0.55017984", "0.5500522", "0.54437107", "0.54320693", "0.5431934", "0.539722...
0.68530434
2
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 defaultKeyGetter(item) { return item; }
{ "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 LineDraw(ctor) { this._ctor = ctor || LineGroup; this.group = new graphic.Group(); }
{ "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
probably be fetched by multiple times. So we cache the result. axis is created each time during a ec process, so we do not need to clear cache.
function getListCache(axis, prop) { // Because key can be funciton, and cache size always be small, we use array cache. return inner(axis)[prop] || (inner(axis)[prop] = []); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axis_old_camera(result)\n{\n console.log(\"axis_old_camera\")\n console.log(result);\n}", "get axes() {\n if (this._axes === null) {\n let coll = new IgrAxisCollection();\n let inner = coll._innerColl;\n inner.addListener((sender, e) => {\n sw...
[ "0.5536096", "0.549356", "0.53217316", "0.52446747", "0.52361155", "0.5233653", "0.515395", "0.51246244", "0.5050672", "0.5034768", "0.4985576", "0.49759856", "0.49518067", "0.49134618", "0.49048334", "0.49028695", "0.48955682", "0.48922464", "0.4891089", "0.48861334", "0.487...
0.4491439
98
Calculate interval for category axis ticks and labels. To get precise result, at least one of `getRotate` and `isHorizontal` should be implemented in axis.
function calculateCategoryInterval(axis) { var params = fetchAutoCategoryIntervalCalculationParams(axis); var labelFormatter = makeLabelFormatter(axis); var rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI; var ordinalScale = axis.scale; var ordinalExtent = ordinalScale.getExtent(); // Prov...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculateCategoryInterval(axis) {\n var params = fetchAutoCategoryIntervalCalculationParams(axis);\n var labelFormatter = makeLabelFormatter(axis);\n var rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI;\n var ordinalScale = axis.scale;\n var ordinalExtent = ordinalScale.getExtent(...
[ "0.7746507", "0.7746507", "0.7739931", "0.7715091", "0.77078474", "0.6546765", "0.64099866", "0.64099866", "0.64099866", "0.64099866", "0.62500155", "0.5976774", "0.58163536", "0.5799666", "0.57894534", "0.57893443", "0.56676996", "0.55825084", "0.5572562", "0.555126", "0.552...
0.7746507
2
It is time consuming for large category data.
function makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick) { var ordinalScale = axis.scale; var labelFormatter = makeLabelFormatter(axis); var result = []; zrUtil.each(ordinalScale.getTicks(), function (tickValue) { var rawLabel = ordinalScale.getLabel(tickValue); if (categoryInt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disneyCategories(){\n //fetch get index for attractions\n \n byCategory()\n}", "parseUniqueCategories(dataSet) {\n return dataSet.businesses.reduce((accum, business) => {\n business.categories.forEach((item) => {\n if (!(accum.findIndex(ele => ele.displayTitle === item[0]) + 1)) ...
[ "0.659236", "0.64316267", "0.63823956", "0.629352", "0.62469983", "0.61667466", "0.60887027", "0.60318846", "0.60295564", "0.6019952", "0.59892625", "0.59347", "0.59023935", "0.5854105", "0.5826978", "0.5824248", "0.5815708", "0.5805193", "0.5791007", "0.57905877", "0.578391"...
0.0
-1
Provide setColor helper method to avoid determine if set the fill or stroke outside
function symbolPathSetColor(color, innerColor) { if (this.type !== 'image') { var symbolStyle = this.style; var symbolShape = this.shape; if (symbolShape && symbolShape.symbolType === 'line') { symbolStyle.stroke = color; } else if (this.__isEmptyBrush) { symbolStyle.stroke = color; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setFill(color) {\n if (color === false) color = `transparent`;\n this.ctx.fillStyle = color;\n }", "setStroke(color) {\n if (color === false) color = `transparent`;\n this.ctx.strokeStyle = color;\n }", "function setStrokeFillColor() {\r\n strokeColor = getStrokeColor.value\r\n fillColor = ...
[ "0.741192", "0.72955114", "0.7238079", "0.7159115", "0.71136236", "0.7096291", "0.69520766", "0.681445", "0.6811898", "0.6772395", "0.67583734", "0.67560637", "0.67524433", "0.671158", "0.6707232", "0.66953677", "0.668504", "0.6675644", "0.6671853", "0.666045", "0.6658146", ...
0.61857325
61
Rule for validating the type of a value.
function type_type(rule, value, source, errors, options) { if (rule.required && value === undefined) { rule_required(rule, value, source, errors, options); return; } var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex']; var ruleType = rule.typ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function type(rule, value, source, errors, options) {\n\t if (rule.required && value === undefined) {\n\t required(rule, value, source, errors, options);\n\t return;\n\t }\n\t\n\t var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];\n\t var ru...
[ "0.7744373", "0.77012837", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555568", "0.7555349", "0.75483084", "0.75395113", "0.74793196", "0.7477892", "0.7468624",...
0.7137125
57
Rule for validating a value exists in an enumerable list.
function enumerable(rule, value, source, errors, options) { rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : []; if (rule[ENUM].indexOf(value) === -1) { errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', '))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function contains(list, value) {\n\n}", "function enumerable(rule, value, source, errors, options) {\n rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];\n\n if (rule[ENUM].indexOf(value) === -1) {\n errors.push(\n format(\n options.messages[ENUM],\...
[ "0.6492287", "0.6353805", "0.6350291", "0.6344891", "0.63385135", "0.63385135", "0.63385135", "0.63385135", "0.63385135", "0.63385135", "0.63385135", "0.63385135", "0.63385135", "0.6337836", "0.632967", "0.632967", "0.632967", "0.632967", "0.632967", "0.632967", "0.632967", ...
0.63200945
33
Validates an enumerable list.
function enum_enumerable(rule, value, callback, source, options) { var errors = []; var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); if (validate) { if (isEmptyValue(value) && !rule.required) { return callback(); } es_rule.required(rule, value, source, errors,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "validateList() {\n if (!this.isValid) {\n return;\n }\n\n for (let i = 0; i < this._data.length; i++) {\n const item = this._data[i];\n\n this._validateItem(item);\n }\n }", "function validate(list){\n if (!$.isArray(list)) throw new Error(\"...
[ "0.7411859", "0.7048682", "0.65108424", "0.6466217", "0.6312775", "0.6312775", "0.6312775", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6153104", "0.6084628", "0.6084628", "0.6067205", "0.6067205", "0.6067205", "0.6067205", ...
0.0
-1
zoomOnMouseWheel moveOnMouseMove moveOnMouseWheel } The value can be: true / false / 'shift' / 'ctrl' / 'alt'.
function isAvailableBehavior(behaviorToCheck, e, settings) { var setting = settings[behaviorToCheck]; return !behaviorToCheck || setting && (!zrUtil.isString(setting) || e.event[setting + 'Key']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "scrollZoom(event){\n event.preventDefault();\n if(event.ctrlKey == true){\n if(event.wheelDelta < 0){\n this.zoomOut();\n }else{\n this.zoomIn();\n }\n }\n }", "function onMove() {\t\t\t\n\t\tWGL.mcontroller.zoommove(map.getZo...
[ "0.63050866", "0.62884635", "0.62884635", "0.6262329", "0.62495875", "0.6220784", "0.6166487", "0.6136359", "0.6102232", "0.6102232", "0.6102232", "0.6102232", "0.6102232", "0.6100884", "0.6100884", "0.6100884", "0.6100884", "0.6100884", "0.60994065", "0.59863317", "0.5970488...
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('graph', function (graphSeries) { var coordSys = graphSeries.coordinateSystem; if (coordSys && coordSys.type !== 'view') { return; } if (graphSeries.get('layout') === 'force') { var preservedPoints = graphSeries.preservedPoints || {};...
{ "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. var axis = this.getAxis(); var val = dataItem instanceof Array ? dataItem[0] : dataItem; var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2; return axis.type === 'category' ? axis.getBandWidth() : Math.ab...
{ "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
Safely extract function name from itself
function getFunctionName(fn) { try { if (!fn || typeof fn !== 'function') { return defaultFunctionName; } return fn.name || defaultFunctionName; } catch (e) { // Just accessing custom props in some Selenium environments // can cause a "Permission denied" e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_function_name(f) {\r\n\tvar str = f.toString();\r\n var name = str.split ('(')[0];\r\n name = name.split (/[' '{1,}]/)[1];\r\n return(name);\r\n}", "function funcname(f) {\n const s = f.toString().match(/function (\\w*)/)[1];\n if ((s === null) || (s.length === 0)){ return \"~anonymous~\"...
[ "0.7382182", "0.7025916", "0.6980525", "0.6827642", "0.68144387", "0.6778119", "0.6767917", "0.6732436", "0.66889864", "0.66453636", "0.65887886", "0.6558353", "0.65296525", "0.6477961", "0.64645743", "0.64645636", "0.64425325", "0.6431579", "0.6425804", "0.6415161", "0.64151...
0.6177072
33
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, api) { ecModel.eachSeriesByType('tree', function (seriesModel) { commonLayout(seriesModel, api); }); }
{ "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
Build axisPointerModel, mergin tooltip.axisPointer model for each axis. allAxesInfo should be updated when setOption performed.
function collect(ecModel, api) { var result = { /** * key: makeKey(axis.model) * value: { * axis, * coordSys, * axisPointerModel, * triggerTooltip, * involveSeries, * snap, * seriesModels, * seriesDataCount * } */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveTooltipAxisInfo(fromTooltip, triggerTooltip, axis) {\n var axisPointerModel = axis.model.getModel('axisPointer', globalAxisPointerModel);\n var axisPointerShow = axisPointerModel.get('show');\n\n if (!axisPointerShow || axisPointerShow === 'auto' && !fromTooltip && !isHandleTrigger(axis...
[ "0.5693873", "0.5636385", "0.5636385", "0.5636385", "0.5636385", "0.5636385", "0.5636385", "0.5636385", "0.5636385", "0.56148744", "0.55848104", "0.55848104", "0.5581302", "0.5558696", "0.5493384", "0.5264039", "0.507943", "0.49443126", "0.49220106", "0.49116898", "0.48798317...
0.0
-1
fromTooltip: true | false | 'cross' triggerTooltip: true | false | null
function saveTooltipAxisInfo(fromTooltip, triggerTooltip, axis) { var axisPointerModel = axis.model.getModel('axisPointer', globalAxisPointerModel); var axisPointerShow = axisPointerModel.get('show'); if (!axisPointerShow || axisPointerShow === 'auto' && !fromTooltip && !isHandleTrigger(axisPointerMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "tooltipClicked() {}", "setTooltip(valueNew){let t=e.ValueConverter.toString(valueNew);null===t&&(t=this.getAttributeDefaultValueInternal(\"Tooltip\")),t!==this.__tooltip&&(this.__tooltip=t,e.EventProvider.raise(this.__id+\".onPropertyChanged\",{propertyName:\"Tooltip\"}),this.__processTooltip())}", "toggleTool...
[ "0.7494436", "0.73168004", "0.7181213", "0.715156", "0.70786935", "0.70663327", "0.69018006", "0.68914866", "0.6801135", "0.677454", "0.6710075", "0.6703516", "0.6672522", "0.6609714", "0.66061527", "0.65261465", "0.65257114", "0.65245795", "0.65063286", "0.65041316", "0.6481...
0.0
-1
Create symbol or update symbol opt: basic position and event handlers
function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) { var color = itemStyleModel.get('color'); if (!symbol) { var symbolType = hostModel.get('symbol'); symbol = createSymbol(symbolType, -1, -1, 2, 2, color); symbol.setStyle('strokeNoScale', true); group.add(symbol); cal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function placeSymbol() {\n if (type == \"moon\") {\n moon = new magicalCanvas.Moon();\n moon.name = \"moon\";\n symbols.push(moon);\n }\n if (type == \"cloud\") {\n cloud = new magicalCanvas.Cloud();\n cloud.name = \"cloud\";\n ...
[ "0.7114517", "0.6466557", "0.64647657", "0.6350686", "0.6192117", "0.61857975", "0.61804456", "0.6119256", "0.6101147", "0.608549", "0.6066747", "0.6053542", "0.60369134", "0.5908789", "0.58821964", "0.58692235", "0.5861347", "0.5808533", "0.58021885", "0.5780354", "0.5771597...
0.6124609
12
Avoid that: mouse click on a elements that is over geo or graph, but roam is triggered.
function onIrrelevantElement(e, api, targetCoordSysModel) { var model = api.getComponentByElement(e.topTarget); // If model is axisModel, it works only if it is injected with coordinateSystem. var coordSys = model && model.coordinateSystem; return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES[mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setGridToNonClickable(grid){\n grid.style.pointerEvents=\"none\";\n}", "function disableRightClick() {\n // stop zoom\n if (d3.event.button == 2) {\n console.log('No right click allowed');\n d3.event.stopImmediatePropagation();\n }\n }", "function block_user_interaction(paper) {...
[ "0.6195161", "0.61032456", "0.6087628", "0.5988084", "0.5986663", "0.59572905", "0.59342206", "0.59142506", "0.5885774", "0.58741486", "0.5844347", "0.5826384", "0.5825309", "0.581425", "0.58091223", "0.5796191", "0.5796191", "0.57542074", "0.57468164", "0.5743162", "0.573217...
0.55607754
51
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
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 createGridClipPath(cartesian, hasAnimation, seriesModel) { var rect = cartesian.getArea(); var isHorizontal = cartesian.getBaseAxis().isHorizontal(); var x = rect.x; var y = rect.y; var width = rect.width; var height = rect.height; var lineWidth = seriesModel.get('lineStyle.width') || 2; // Expan...
{ "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
Add animation to the view
function createGridClipShape(rect, seriesModel, cb) { var rectEl = new graphic.Rect({ shape: { x: rect.x - 10, y: rect.y - 10, width: 0, height: rect.height + 20 } }); graphic.initProps(rectEl, { shape: { width: rect.width + 20 } }, seriesModel, cb); return rectEl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Animation (){\n var animation = anime.timeline();\n \n animation.add({\n targets:'.animation',\n height:['100%',0],\n easing:'easeInOutCirc',\n delay:1200\n });\n \n \n }", "funct...
[ "0.7062568", "0.70235413", "0.6767325", "0.67139256", "0.6710684", "0.669293", "0.6676855", "0.65720755", "0.6497267", "0.6488997", "0.6447137", "0.63837045", "0.637486", "0.63446087", "0.629174", "0.62849635", "0.62760633", "0.62714154", "0.6268656", "0.6267167", "0.62433577...
0.0
-1
FIXME performance and export for heatmap? value can be Infinity or Infinity
function getColorVisual(seriesModel, visualMapModel, value, valueState) { var mappings = visualMapModel.targetVisuals[valueState]; var visualTypes = VisualMapping.prepareVisualTypes(mappings); var resultVisual = { color: seriesModel.getData().getVisual('color') // default color. }; for (var i = 0, len =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeMaxRange(value) {\n let maxQuantity = sortedData[0].quantity;\n let minQuantity = sortedData[sortedData.length - 1].quantity;\n heatmap.setData(\n getWeightedPoints(sortedData, minQuantity, maxQuantity, value)\n );\n document.getElementById(\"sliderLabel\").innerHTML = value;\n}", "functio...
[ "0.6321663", "0.62352866", "0.61463577", "0.6028201", "0.60187906", "0.5925194", "0.5866573", "0.5861707", "0.5716331", "0.56969607", "0.5683294", "0.56568146", "0.5613327", "0.55940735", "0.55808884", "0.55808884", "0.55808884", "0.55783063", "0.5574813", "0.55676407", "0.55...
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 Cartesian2D(name) { Cartesian.call(this, name); }
{ "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) { var legendModels = ecModel.findComponents({ mainType: 'legend' }); if (legendModels && legendModels.length) { ecModel.filterSeries(function (series) { // If in any legend component the status is not selected. // Because in legend series is assumed selected when it...
{ "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
Event `rendered` is triggered when zr rendered. It is useful for realtime snapshot (reflect animation). Event `finished` is triggered when: (1) zrender rendering finished. (2) initial animation finished. (3) progressive rendering finished. (4) no pending action. (5) no delayed setOption needs to be processed.
function bindRenderedEvent(zr, ecIns) { zr.on('rendered', function () { ecIns.trigger('rendered'); // The `finished` event should not be triggered repeatly, // so it should only be triggered when rendering indeed happend // in zrender. (Consider the case that dipatchAction is keep // triggering when m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function completeRender() {\n var afterRender = options.afterRender;\n\n if (afterRender) {\n afterRender.call(root, root);\n }\n\n // Always emit an afterRender event.\n root.trigger(\"afterRender\", root);\n }", "function completeRender() {\n var afterRen...
[ "0.62800556", "0.62800556", "0.61154693", "0.5770559", "0.57210225", "0.56043696", "0.55688053", "0.55178016", "0.54195154", "0.54195154", "0.53873533", "0.5357347", "0.5353915", "0.5351276", "0.5306065", "0.52924037", "0.525221", "0.525221", "0.52222323", "0.52076024", "0.51...
0.71350354
3
Render each chart and component
function renderSeries(ecIns, ecModel, api, payload, dirtyMap) { // Render all charts var scheduler = ecIns._scheduler; var unfinished; ecModel.eachSeries(function (seriesModel) { var chartView = ecIns._chartsMap[seriesModel.__viewId]; chartView.__alive = true; var renderTask = chartView.renderTask; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "renderComponents() {\n this.algedonodeActivators.forEach(aa => {\n aa.render(this.renderer)\n })\n this.dials.forEach(d => {\n d.render(this.renderer)\n })\n this.strips.forEach(s => {\n s.render(this.renderer)\n })\n this.rows.forEach(r => {\n r.forEach(c => {\n c.r...
[ "0.74726593", "0.74035674", "0.6937942", "0.68690914", "0.68412125", "0.6785853", "0.6784853", "0.67671984", "0.67398727", "0.67398727", "0.6715055", "0.66594696", "0.6651233", "0.6619226", "0.65332055", "0.65247124", "0.65234154", "0.64998627", "0.64785224", "0.6468529", "0....
0.6012614
78
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 makeAction(method, actionInfo) { actionInfo.update = 'updateView'; echarts.registerAction(actionInfo, function (payload, ecModel) { var selected = {}; ecModel.eachComponent({ mainType: 'geo', query: payload }, function (geoModel) { geoModel[method](payload.name); var geo...
{ "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(option) { // Save geoCoord var mapSeries = []; zrUtil.each(option.series, function (seriesOpt) { if (seriesOpt && seriesOpt.type === 'map') { mapSeries.push(seriesOpt); seriesOpt.map = seriesOpt.map || seriesOpt.mapType; // Put x, y, width, height, x2, y2 in the top level ...
{ "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