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
TODO: Create a function to write README file
function writeToFile(data) { const responseObj = JSON.parse(data); const licenseBadge_link = generateMarkdown(`${responseObj.license}`); const filetext =` # ${responseObj.name} ${licenseBadge_link} ## Description ${responseObj.description} ## Table of Contents - [Description...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeREADME(savefileName, data) {\n fs.writeFile(savefileName, data, () => {});\n \n console.log('Your README has been generated, check the dist folder')\n}", "function writeToFile(data) {\n fs.writeFile(\"./README.md\", generatePage(data), (err) => {\n if (err) throw new Error(err);\n\n conso...
[ "0.80458415", "0.7696014", "0.76878834", "0.7662802", "0.7626176", "0.7613757", "0.76019704", "0.75781626", "0.75403416", "0.753985", "0.7520393", "0.75145626", "0.74542755", "0.7423865", "0.7416797", "0.7403752", "0.73878187", "0.7375195", "0.7368622", "0.7357301", "0.735657...
0.0
-1
TODO: Create a function to initialize app
function init() { inquirer .prompt([ { type: 'input', message: questions[0], name: 'name', validate :(value) => {if(value) return true; else return 'Please enter something to continiue' } }, { type: 'input', message: questions[1], name: '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initApp() {\n var router = new App.Router();\n var dispatcher = new App.Dispatcher();\n\n router.once('route', function() {\n dispatcher.runAction(router.getCurrent(), router.getParams());\n });\n\n // Start!\n router.startHistory();\n}", "function initApp() {\n\tinitSounds();\n\tinitSensors();...
[ "0.79483765", "0.77004915", "0.75859904", "0.7392242", "0.73389673", "0.7337566", "0.7098709", "0.7094714", "0.70335907", "0.70264256", "0.70233685", "0.69898516", "0.6983825", "0.6980272", "0.69399434", "0.6926202", "0.69252443", "0.69087744", "0.68747747", "0.6861737", "0.6...
0.0
-1
this function just adds the test result to the page
function addTestDom(element, color, text) { var body = document.getElementsByTagName("body")[0]; var elem = document.createElement(element); elem.style.color = color; elem.innerHTML = text; body.appendChild(elem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showResultPage() {\n if (console.log('test completed')) {\n\n //log \"time/score\" to High Scores page//\n\n //Automatically open High Scores HTML//\n\n }\n}", "function renderTest() {\n\t loadTestData(renderPage);\n\t}", "function writeResults(aTestcases) {\n var tc = 0;\n var ...
[ "0.6769351", "0.6717725", "0.66087735", "0.65334606", "0.6450378", "0.6445316", "0.63911486", "0.63786376", "0.6364182", "0.63177675", "0.62817687", "0.62749475", "0.62535536", "0.6193853", "0.61551464", "0.61367977", "0.6119656", "0.60948634", "0.60928", "0.60735005", "0.604...
0.0
-1
this it() function describes a group of tests
function it(description, contents) { var body = document.getElementsByTagName("body")[0]; var elem = document.createElement("h3"); elem.innerHTML = "It " + description; body.appendChild(elem); console.log("\n\n It " + description + ""); contents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "it(label, f) {\n const description = `${this.describeLabel}: ${label}`;\n this.testCases.push({description, f});\n }", "function testAllTests() {\n testExtremal();\n testDifference();\n testSpearman();\n testSerial()\n}", "function startAllTests(){ \n testGetObjectFromArrays();\n testNorma...
[ "0.6498697", "0.6398873", "0.6392699", "0.62697804", "0.6193794", "0.61210585", "0.61029226", "0.6081982", "0.60105044", "0.5990692", "0.5982113", "0.59798586", "0.59670687", "0.5956449", "0.595029", "0.59415066", "0.5868715", "0.5863493", "0.5845304", "0.58227915", "0.578829...
0.0
-1
checks strict equality of expectation and target for passing test eg. expect(calvin.mood).tobe("happy");
function expect(expectation) { return { tobe: function(target) { if (target === expectation) { var passTxt = "PASSED " + "Expected " + target + " to be " + expectation; addTestDom("p", "green", passTxt); console.log('\n %cPASSED', 'color:green;', 'Expected', target, 'to b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function expect(target) {\n return {\n toBe: function(expectation) {\n let passed = target === expectation;\n // handle arrays and objects differently\n if (Array.isArray(target) || typeof target === 'object') {\n passed = deepEqual(target, expectation)\n ...
[ "0.75612473", "0.7341075", "0.67229134", "0.6400634", "0.6053438", "0.60104406", "0.5938198", "0.5802777", "0.5712819", "0.57055813", "0.5632921", "0.562368", "0.56224495", "0.5599228", "0.5598924", "0.5598121", "0.55805933", "0.55759877", "0.55759877", "0.5556746", "0.552725...
0.64280623
3
getForm() Returns the HTML
getForm() { var form = ` <div class="tab-pane fade in active" id="tab1default"> <form id="login-form" class="text-left" method="post"> <div class="main-login-form"> <div style="position: relative"> <select class="select-css" name="campuses" id="campuses"> <option value="" disabled se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get form() {\n return this.internals.form;\n }", "get form() {\n return this.internals.form;\n }", "get form() {\n return this.internals.form;\n }", "get form() {\n return this.internals_.form;\n }", "function getForm() {\n return questionForm;\n}", "get form() {\n...
[ "0.69304734", "0.69304734", "0.69304734", "0.676853", "0.67617506", "0.67073506", "0.66000843", "0.65010524", "0.6296833", "0.627377", "0.6254022", "0.62143666", "0.6200887", "0.6184885", "0.6159615", "0.6143035", "0.6139914", "0.6133678", "0.6124409", "0.6113024", "0.6101339...
0.659913
7
TODO: rethink and validate http status codes TODO: for all routes, if an item or an array is returned, package the result as instructed by Peter using utils.package with corresponding routes TODO: update filter condition and algorithm the filterByUserSetting function does filter the fetched result based on "visibility"...
function filterByUserSetting (user, data) { var filtered = []; if (user) { let userRoles = user.roles; filtered = data.map(c => { for(var i = 0, l = c.visibility.length; i++; i < l) { if (userRoles.findIndex(role => role === c.visibility[i]) != -1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "rolesUsers(role, resource, ability) {\n let allRoles = {\n \"todo\": {\n \"reader\":[\"read\", \"list\",],\n \"writer\":[\"read\", \"list\", \"create\"],\n \"editor\": [\"read\", \"update\", \"list\", \"create\"],\n \"admin\": [\"read\",...
[ "0.5590145", "0.5557137", "0.54921305", "0.5332645", "0.53205866", "0.53153366", "0.53122336", "0.52102625", "0.51384056", "0.5124032", "0.50842947", "0.5079725", "0.5017207", "0.5011305", "0.4958828", "0.494416", "0.49390477", "0.49184254", "0.4916801", "0.49151874", "0.4911...
0.6563529
0
MOBILE SIDE BAR / Open the sidenav
function openNav() { document.getElementById("mySidenav").style.width = "100%"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openNav(){\n\tif (detectMobile() == true) {\n\tdocument.getElementById(\"mySidenav\").style.width = \"100%\";\n\t} else {\n\tdocument.getElementById(\"mySidenav\").style.width = \"40%\";\n\t}\n\n}", "function sidenavOpen () {\n sidenavBar.style.transform = 'translateX(0%)'\n sidenavStatus = true\n...
[ "0.7876455", "0.7779137", "0.74696815", "0.74442685", "0.74352", "0.73027706", "0.7262948", "0.7227062", "0.72136354", "0.7206045", "0.7183086", "0.7181891", "0.7178336", "0.7163835", "0.71553195", "0.71547455", "0.71495736", "0.7147065", "0.71327114", "0.7111494", "0.7087157...
0.6908853
52
Object used to mimic the native client side JS Activity Tracker.
function _ActivityTracker() { /* Public methods to add activity (page browse, product browse, quickview product browse that is later sent up to Listrak via client side JS calls. */ /* Adds a product browse activity to be sent up to Listrak later via client side JS. */ this.AddProductBrowse = function(Sk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "__init6() {this._lastActivity = new Date().getTime();}", "function activityHandler()\n {\n var now = new Date();\n lastActivityTime = now.getTime();\n }", "function dynamicActivity() {\n regularActivityMonitor();\n }", "function AppMeasurement_Module_ActivityMap(...
[ "0.6273786", "0.61858493", "0.6055782", "0.59407264", "0.59407264", "0.5934644", "0.5934644", "0.5899328", "0.5862422", "0.5776001", "0.5776001", "0.5776001", "0.5766123", "0.57500285", "0.57153714", "0.5687415", "0.55953234", "0.55753005", "0.5571862", "0.55654544", "0.55415...
0.76294285
0
COVERT NUMBERS TO STRINGS, and the engineering notation TODO : value is number, and na_on is for when a number of 0 should be turned to N/A instead (like for dividend). doesnt work because it results in showing N/A%
function dataToStr(value, na_on) { var str = ""; if (typeof value == "number") { //console.log('This is a number ' + value); value = roundTo(value, 2); str = String(value); str = str.replace(/\"/g, ""); str = str.replace(/\'/g, ""); var sign = ""; if (str....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function value_label(n) {\n if (n > 1000000) {\n return format1dp(n / 1000000) + 'Bn'\n //return Number(Math.round(n / 100000) / 10) + 'Bn';\n } else if (n > 1000) {\n return format1dp(n / 1000) + 'M'\n return Number(Math.round(n / 100) / 10) + 'M';\n }\n else {return 0;}\n}", "function nFormatte...
[ "0.66666293", "0.66068745", "0.63891673", "0.62899977", "0.6200289", "0.6102264", "0.610023", "0.6076256", "0.6066309", "0.59708995", "0.5967728", "0.59661937", "0.59461594", "0.5938728", "0.5906077", "0.59051317", "0.59025073", "0.58632153", "0.5855449", "0.5848432", "0.5823...
0.6958977
0
Copyright (c) 2008 Stefan LangeHegermann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribut...
function microAjax(B,A){this.bindFunction=function(E,D){return function(){return E.apply(D,[D])}};this.stateChange=function(D){if(this.request.readyState==4){this.callbackFunction(this.request.responseText)}};this.getRequest=function(){if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP")}else{if(windo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function me(e,t,a,s){var n,i=arguments.length,r=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,a):s;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,s);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(r=(i<3?n(r):i>3?n(t,a,r):n(t,a))||r);return i>3&&r&&Object.definePro...
[ "0.6151414", "0.57713974", "0.569549", "0.569549", "0.5553336", "0.5392826", "0.5392826", "0.5351175", "0.53438777", "0.53268415", "0.5283081", "0.5239828", "0.521605", "0.5192713", "0.51832527", "0.51774555", "0.51662326", "0.5116422", "0.5116081", "0.5094161", "0.5090677", ...
0.0
-1
When the user clicks on the button, scroll to the top of the document
function topFunction() { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scrollToTop () {\n //getting the currentPosition position of the button\n let currentPosition = document.documentElement.scrollTop || document.body.scrollTop;\n //if the position is greater than 0 then we'll scroll to the top of the page\n if (currentPosition > 0) {\n ...
[ "0.8499684", "0.8493862", "0.8238682", "0.80306077", "0.80239034", "0.80125797", "0.7994999", "0.79572564", "0.79508185", "0.7945779", "0.7924484", "0.7909982", "0.79083693", "0.7896633", "0.7890989", "0.78718835", "0.7841969", "0.7820104", "0.781835", "0.7801471", "0.7772324...
0.0
-1
var listLenght = document.getElementById("list").getElementsByTagName("li").length; currentElement = document.getElementById("list").getElementsByTagName("li");
function removeItemAfterClick(e){ // if (e.target.tag === deleteElementList){ // console.log(e.target.tagName); // deleteElementList.querySelector("li").remove(); e.target.parentNode.remove(); // e.deleteElementList.remove(); // deleteElementList.removeChild(deleteElementList.childNodes[i]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkList() {\n\treturn document.getElementsByTagName('li').length;\n}", "function listLength(){\n return list.length;\n}", "function countLiData() {\n var ul = document.getElementById(\"products\");\n var liNodes = [];\n\n for (var i = 0; i < ul.childNodes.length; i++) {\n if (ul.childNodes[...
[ "0.73907197", "0.7333334", "0.7038922", "0.7032649", "0.6938", "0.6904321", "0.6890173", "0.68781793", "0.6723638", "0.66284627", "0.6616211", "0.6484943", "0.62831146", "0.6275491", "0.6195715", "0.6169281", "0.6017938", "0.59966785", "0.59851885", "0.5962606", "0.5942797", ...
0.0
-1
Create dots and arrows
function nav(name, html) { if (name == 'dot') { html = '<ol class="dots">'; $.each(_.li, function(index) { html += '<li class="' + (index == _.i ? name + ' active' : name) + '">' + ++index + '</li>'; }); html += '</ol>'; } else { html = '<div class="'; html = html + name + 's">' + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDots() {\n slides.forEach( (_,i) => {\n const btn = `<button class=\"dots__dot\" data-slide=\"${i}\"></button>`;\n dots.insertAdjacentHTML('beforeend', btn);\n });\n }", "function createDots() {\n carouselDots = ML.El.create('div', {'class': 'carousel-dots'});\n var dots...
[ "0.6970812", "0.6641783", "0.6567195", "0.64544713", "0.6385724", "0.633363", "0.6333247", "0.6316965", "0.6296885", "0.62874603", "0.6221168", "0.6198752", "0.61799765", "0.61799765", "0.61799765", "0.6172588", "0.6172588", "0.61629367", "0.61439794", "0.6128188", "0.6122881...
0.0
-1
Helper function for antiAliasePath which cumulates the data around a station and essentially does the antialiasing
function antiAliase(stations) { var m = refPts; stations[m].lat = stations[m].lat * cur + stations[m-1].lat * oneOff + stations[m+1].lat * oneOff + stations[m-2].lat * twoOff + stations[m+2].lat * twoOff; stations[m].lng = stations[m].lng * cur + stations[m-1].lng * oneOff + s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function antiAliaseEndpoints(stations) {\n var m = middle;\n stations[m].lat = stations[m].lat * 0.4 +\n stations[m-1].lat * 0.3 + stations[m+1].lat * 0.3;\n stations[m].lng = stations[m].lng * 0.4 +\n stations[m-1].lng * 0.3 + stations[m+1].lng * 0.3;\n\n return stations[m];\n ...
[ "0.6311616", "0.5325669", "0.522156", "0.51514894", "0.510946", "0.50942045", "0.50861526", "0.5080813", "0.50801194", "0.505824", "0.50011104", "0.49966764", "0.49942586", "0.4992775", "0.4945665", "0.49369866", "0.49279177", "0.49215138", "0.49046025", "0.48972085", "0.4879...
0.6826108
0
Helper function for antiAliasePath which cumulates the data around a station which is one point off the end.
function antiAliaseEndpoints(stations) { var m = middle; stations[m].lat = stations[m].lat * 0.4 + stations[m-1].lat * 0.3 + stations[m+1].lat * 0.3; stations[m].lng = stations[m].lng * 0.4 + stations[m-1].lng * 0.3 + stations[m+1].lng * 0.3; return stations[m]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function antiAliase(stations) {\n var m = refPts;\n stations[m].lat = stations[m].lat * cur +\n stations[m-1].lat * oneOff + stations[m+1].lat * oneOff +\n stations[m-2].lat * twoOff + stations[m+2].lat * twoOff;\n\n stations[m].lng = stations[m].lng * cur +\n stations[m-1].lng ...
[ "0.6833938", "0.5472992", "0.52877843", "0.5198755", "0.5144185", "0.50698125", "0.4957582", "0.4952573", "0.48719087", "0.4852484", "0.48389146", "0.48313355", "0.48106563", "0.48053652", "0.48022857", "0.47539145", "0.47527048", "0.47450858", "0.47240537", "0.47180995", "0....
0.6824426
1
Dentro usamos el constructor
constructor() { super("Gameover"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructur() {}", "constructor() {\r\n // ohne Inhalt\r\n }", "constructor (){}", "constructor() {\n\t\t// ...\n\t}", "consructor() {\n }", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", ...
[ "0.86764866", "0.8547298", "0.84833103", "0.84155864", "0.83669454", "0.8346183", "0.8346183", "0.8346183", "0.8346183", "0.8346183", "0.8346183", "0.8346183", "0.8229774", "0.80792296", "0.8066797", "0.80548084", "0.8044877", "0.8016587", "0.7988952", "0.7982718", "0.7982718...
0.0
-1
Gets or sets the color to use for the horizontal line. Leave null for an automatic value.
get horizontalLineStroke() { return brushToString(this.i.pb); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setColor(color) {\r\n lineColor = color;\r\n}", "_getHorizontalLineGradient(startX, endX) {\n var lineGradient = this.context.createLinearGradient(startX, 0, endX, 0);\n lineGradient.addColorStop(0, Colors.QUESTION_AND_CHOICES_LINE_BASE);\n lineGradient.addColorStop(0.5, Colors.QUESTION_AND_...
[ "0.5623283", "0.5554134", "0.5533176", "0.55232215", "0.5490761", "0.5483522", "0.546015", "0.53378594", "0.5323061", "0.52380073", "0.52364916", "0.52087194", "0.51638275", "0.50903636", "0.5089598", "0.50693643", "0.5056754", "0.50369096", "0.5003858", "0.4978909", "0.49781...
0.6909831
0
Gets or sets the color to use for vertical line. Leave null for an automatic value.
get verticalLineStroke() { return brushToString(this.i.pc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get vertical() {\n return this._vertical;\n }", "get vertical() {\n return this._vertical;\n }", "get vertical() { return this._vertical; }", "get vertical() { return this._vertical; }", "function setColor(color) {\r\n lineColor = color;\r\n}", "get verticalLineVisibility()...
[ "0.6159057", "0.61295867", "0.6095553", "0.6095553", "0.5926448", "0.58621705", "0.585084", "0.58424133", "0.57469946", "0.5558969", "0.5515942", "0.52554744", "0.5216448", "0.5198369", "0.51841825", "0.51772374", "0.51567405", "0.51419693", "0.51099443", "0.50753707", "0.507...
0.7105459
0
Gets or sets the series to target this annotation to. If null, this annotation targets all series simultaneously.
get targetSeries() { if (this.i.m8 == null) { return null; } if (!this.i.m8.externalObject) { let e = IgxSeriesComponent._createFromInternal(this.i.m8); if (e) { e._implementation = this.i.m8; } this.i.m8.extern...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get targets() {\n return (Array.isArray(this._annotation.target)) ?\n this._annotation.target : [ this._annotation.target ];\n }", "function Series() {\n this.ys = arguments.length > 0 ? arguments[ 0 ] : new Dataset();\n this.xs = arguments.length > 1 ? arguments[ 1 ] : null;\n ...
[ "0.52130437", "0.5161853", "0.50235677", "0.47991094", "0.4649472", "0.45172414", "0.44889894", "0.44251108", "0.4387518", "0.43845847", "0.4357475", "0.43469173", "0.43411082", "0.42775813", "0.42672127", "0.42552996", "0.42508256", "0.42508256", "0.42508256", "0.42508256", ...
0.64940286
0
Gets or sets whether to use value interpolation when drawing a line through the best value for the cursor position.
get useInterpolation() { return this.i.nd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getValueFromView() {\n return (this.minValue + (this.valueWidth * this.getPercentage())).toFixed(0);\n }", "get yAxisAnnotationInterpolatedValuePrecision() {\r\n return this.i.nr;\r\n }", "getCoercedValue(value, useDrawVariables, logarithmicGauge) {\n const that = this.contex...
[ "0.56519896", "0.55115086", "0.5427741", "0.5337131", "0.5324666", "0.52559096", "0.5239642", "0.51376027", "0.5106655", "0.5092768", "0.50689834", "0.503898", "0.50300646", "0.50300646", "0.50300646", "0.49835247", "0.498023", "0.4974623", "0.49667174", "0.49605888", "0.4960...
0.58613884
0
Gets or sets whether to draw annotations over the axes where the crosshair meets with them.
get isAxisAnnotationEnabled() { return this.i.nb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateCrosshairDisplay () {\n this.axisElements['plot-marker']\n .selectAll('line.crosshair')\n .style('display', this.showDoseProfile() ? '' : 'none')\n }", "function lineLabelsVisible() {\n return axesDef.y1.length > 1 &&\n (axesDef.y1.length < 15 || chart.hasHig...
[ "0.6141292", "0.6113816", "0.5629439", "0.54129845", "0.5394648", "0.5384272", "0.5375664", "0.5343613", "0.53320783", "0.5314872", "0.5277163", "0.52445984", "0.5236326", "0.5235211", "0.5184831", "0.5146326", "0.5084054", "0.50730497", "0.49816567", "0.49808732", "0.4971970...
0.57892334
2
Gets or sets the color to use for the x axis annotation text. Leave unset for an automatic value.
get xAxisAnnotationTextColor() { return brushToString(this.i.pf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get yAxisAnnotationTextColor() {\r\n return brushToString(this.i.pi);\r\n }", "get xAxisAnnotationBackground() {\r\n return brushToString(this.i.pd);\r\n }", "get textColor() {\n return brushToString(this.i.a5);\n }", "get textColor() {\n\t\treturn new Color(this.__Internal__Don...
[ "0.66995645", "0.66320825", "0.6267268", "0.57995886", "0.57371265", "0.548277", "0.54658365", "0.5384495", "0.52829874", "0.51999766", "0.51478326", "0.5147506", "0.5138222", "0.5021462", "0.49221858", "0.49049798", "0.48974776", "0.4888051", "0.48765367", "0.4858969", "0.48...
0.7648482
0
Gets or sets the color to use for the x axis annotation backing. Leave unset for an automatic value.
get xAxisAnnotationBackground() { return brushToString(this.i.pd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get xAxisAnnotationTextColor() {\r\n return brushToString(this.i.pf);\r\n }", "get yAxisAnnotationTextColor() {\r\n return brushToString(this.i.pi);\r\n }", "get yAxisAnnotationBackground() {\r\n return brushToString(this.i.pg);\r\n }", "get color() {\n return this._color...
[ "0.6757872", "0.5698287", "0.55114037", "0.54167616", "0.5369692", "0.5281051", "0.52733344", "0.5257132", "0.52432436", "0.5230588", "0.52195716", "0.50964695", "0.5081479", "0.5065809", "0.50342005", "0.5014587", "0.49850038", "0.49393776", "0.49381742", "0.4926757", "0.492...
0.662735
1
Gets or sets the precision to use displaying values for interpolated crosshair positions.
get xAxisAnnotationInterpolatedValuePrecision() { return this.i.nq; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderCrosshairPrecisionLogic () {\n crosshairPrecisionDelta++;\n \n if (crosshairPrecisionDelta >= SI.res.ResourceLoader.getResources().game.properties.HUDCrosshairPrecisionMaxDelta) {\n crosshairPrecisionDelta = 0;\n \n var xDisplacement = Math.round(Math.random());\n var yD...
[ "0.676667", "0.6577097", "0.64570665", "0.5998579", "0.5948934", "0.58685064", "0.5790008", "0.5785188", "0.5765687", "0.5723768", "0.5651254", "0.56336886", "0.56292295", "0.56165385", "0.56165385", "0.55957675", "0.5575163", "0.5574636", "0.5574636", "0.5571979", "0.5570861...
0.65713227
2
Gets or sets the color to use for the x axis annotation outline. Leave unset for an automatic value.
get xAxisAnnotationOutline() { return brushToString(this.i.pe); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get xAxisAnnotationTextColor() {\r\n return brushToString(this.i.pf);\r\n }", "get xAxisAnnotationBackground() {\r\n return brushToString(this.i.pd);\r\n }", "get outlineColor() {\n\t\treturn new Color(this.__Internal__Dont__Modify__.outlineColor);\n\t}", "get yAxisAnnotationTextColor() {...
[ "0.6592995", "0.6351185", "0.6108836", "0.58603525", "0.577783", "0.5716527", "0.56238645", "0.5479337", "0.5461193", "0.54511064", "0.53570855", "0.5301813", "0.52892923", "0.5231168", "0.5191806", "0.5181714", "0.515045", "0.51363623", "0.5113313", "0.50202006", "0.49840748...
0.61466527
2
Gets or sets the padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins.
get xAxisAnnotationPaddingLeft() { return this.i.nh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n ...
[ "0.66889393", "0.66132", "0.6558385", "0.65042746", "0.6440962", "0.6392269", "0.6265302", "0.6247521", "0.62322146", "0.5576736", "0.5511664", "0.54513276", "0.5408759", "0.54068476", "0.5399514", "0.53672016", "0.5321487", "0.53077006", "0.53077006", "0.5258529", "0.5218797...
0.63110733
6
Gets or sets the padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins.
get xAxisAnnotationPaddingTop() { return this.i.nj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n ...
[ "0.66885257", "0.6611997", "0.655574", "0.6501825", "0.6439951", "0.630852", "0.6263465", "0.6245533", "0.6233374", "0.55741274", "0.551492", "0.54528016", "0.5407882", "0.54077893", "0.5398876", "0.53689814", "0.5323092", "0.5309472", "0.5309472", "0.5261037", "0.52196795", ...
0.63905174
5
Gets or sets the padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins.
get xAxisAnnotationPaddingRight() { return this.i.ni; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n ...
[ "0.6688809", "0.6612295", "0.65566933", "0.6439386", "0.6391168", "0.6309815", "0.6263948", "0.62460333", "0.62334275", "0.5576057", "0.55129856", "0.54523873", "0.540918", "0.5408148", "0.54000163", "0.53700155", "0.5322663", "0.5310573", "0.5310573", "0.5260124", "0.5219307...
0.65031004
3
Gets or sets the padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins.
get xAxisAnnotationPaddingBottom() { return this.i.ng; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n ...
[ "0.66886723", "0.65556407", "0.6502124", "0.64394367", "0.63908917", "0.63089985", "0.62635106", "0.6245151", "0.6233487", "0.55756634", "0.5513535", "0.5451602", "0.54079735", "0.5406626", "0.5398833", "0.53688383", "0.53211266", "0.53093064", "0.53093064", "0.5259056", "0.5...
0.66121846
1
Gets or sets the padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins.
get yAxisAnnotationPaddingLeft() { return this.i.nm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n ...
[ "0.66889393", "0.66132", "0.65042746", "0.6440962", "0.6392269", "0.63110733", "0.6265302", "0.6247521", "0.62322146", "0.5576736", "0.5511664", "0.54513276", "0.5408759", "0.54068476", "0.5399514", "0.53672016", "0.5321487", "0.53077006", "0.53077006", "0.5258529", "0.521879...
0.6558385
2
Gets or sets the padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins.
get yAxisAnnotationPaddingTop() { return this.i.no; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n ...
[ "0.66885257", "0.6611997", "0.655574", "0.6501825", "0.6439951", "0.63905174", "0.630852", "0.6245533", "0.6233374", "0.55741274", "0.551492", "0.54528016", "0.5407882", "0.54077893", "0.5398876", "0.53689814", "0.5323092", "0.5309472", "0.5309472", "0.5261037", "0.52196795",...
0.6263465
7
Gets or sets the padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins.
get yAxisAnnotationPaddingRight() { return this.i.nn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n ...
[ "0.6688809", "0.6612295", "0.65566933", "0.65031004", "0.6439386", "0.6391168", "0.6309815", "0.6263948", "0.62334275", "0.5576057", "0.55129856", "0.54523873", "0.540918", "0.5408148", "0.54000163", "0.53700155", "0.5322663", "0.5310573", "0.5310573", "0.5260124", "0.5219307...
0.62460333
8
Gets or sets the padding to use withing the axis annotation callout. Leaving this NaN will use an automatic value related to the axis label margins.
get yAxisAnnotationPaddingBottom() { return this.i.nl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n ...
[ "0.66886723", "0.66121846", "0.65556407", "0.6502124", "0.63908917", "0.63089985", "0.62635106", "0.6245151", "0.6233487", "0.55756634", "0.5513535", "0.5451602", "0.54079735", "0.5406626", "0.5398833", "0.53688383", "0.53211266", "0.53093064", "0.53093064", "0.5259056", "0.5...
0.64394367
4
Gets or sets the stroke thickness for the x axis annotation backing. Leave unset for an automatic value.
get xAxisAnnotationStrokeThickness() { return this.i.nk; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get strokeWidth() {\n return this._strokeWidth || this.diameter / 10;\n }", "function strokeWidth(thickness) {\n var maxAllowedWidth = 6, minAllowedWidth = 1;\n return Math.max(minAllowedWidth, Math.min(maxAllowedWidth, thickness));\n }", "get shapeStrokeThickness() {\r\n...
[ "0.7204544", "0.6756906", "0.66760665", "0.6474004", "0.6254473", "0.6212383", "0.60517406", "0.5982381", "0.59192324", "0.59098446", "0.5757002", "0.57354534", "0.55890733", "0.5582115", "0.5550312", "0.55259484", "0.55259484", "0.5468823", "0.54658055", "0.5462757", "0.5462...
0.72978973
0
Gets or sets the color to use for the y axis annotation text. Leave unset for an automatic value.
get yAxisAnnotationTextColor() { return brushToString(this.i.pi); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setYAxisColor(chart, color, yaxis) {\n yaxis = yaxis || 0;\n\n chart.yAxis[yaxis].update({\n title: { style: { color: color } },\n labels: { style: { color: color } }\n });\n }", "get yAxisAnnotationBackground() {\r\n return brushToString(this.i.pg);\r\n }", "get xAxisAn...
[ "0.6438552", "0.6313278", "0.5809613", "0.5799148", "0.5752554", "0.5529344", "0.55197924", "0.547442", "0.5442544", "0.5422289", "0.5406742", "0.53958577", "0.5300489", "0.5257981", "0.50716704", "0.5028737", "0.5004041", "0.49857655", "0.49857655", "0.49845403", "0.49503267...
0.7498106
0
Gets or sets the color to use for the y axis annotation backing. Leave unset for an automatic value.
get yAxisAnnotationBackground() { return brushToString(this.i.pg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setYAxisColor(chart, color, yaxis) {\n yaxis = yaxis || 0;\n\n chart.yAxis[yaxis].update({\n title: { style: { color: color } },\n labels: { style: { color: color } }\n });\n }", "get yAxisAnnotationTextColor() {\r\n return brushToString(this.i.pi);\r\n }", "get defaultA...
[ "0.6718438", "0.67161596", "0.5670361", "0.5608048", "0.55595773", "0.5468436", "0.5450804", "0.54142773", "0.53990567", "0.5312271", "0.5288048", "0.5288048", "0.52377367", "0.5185645", "0.51660967", "0.5129217", "0.5121632", "0.5102177", "0.5086032", "0.5022837", "0.5009826...
0.6267256
2
Gets or sets the precision to use displaying values for interpolated crosshair positions.
get yAxisAnnotationInterpolatedValuePrecision() { return this.i.nr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderCrosshairPrecisionLogic () {\n crosshairPrecisionDelta++;\n \n if (crosshairPrecisionDelta >= SI.res.ResourceLoader.getResources().game.properties.HUDCrosshairPrecisionMaxDelta) {\n crosshairPrecisionDelta = 0;\n \n var xDisplacement = Math.round(Math.random());\n var yD...
[ "0.6768798", "0.6571941", "0.64565235", "0.59983915", "0.59481406", "0.58686525", "0.5789963", "0.5783394", "0.57640857", "0.572272", "0.5651526", "0.5632804", "0.5628811", "0.5616658", "0.5616658", "0.55960846", "0.557482", "0.557482", "0.5574588", "0.55719286", "0.5569909",...
0.65768504
1
Gets or sets the color to use for the y axis annotation outline. Leave unset for an automatic value.
get yAxisAnnotationOutline() { return brushToString(this.i.ph); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get yAxisAnnotationTextColor() {\r\n return brushToString(this.i.pi);\r\n }", "get yAxisAnnotationBackground() {\r\n return brushToString(this.i.pg);\r\n }", "function setYAxisColor(chart, color, yaxis) {\n yaxis = yaxis || 0;\n\n chart.yAxis[yaxis].update({\n title: { style: { ...
[ "0.67105216", "0.6253671", "0.6198093", "0.5964764", "0.59589547", "0.5787419", "0.5599883", "0.5546129", "0.5418498", "0.5395121", "0.5230055", "0.520045", "0.51790273", "0.5063099", "0.5051535", "0.50457275", "0.5044573", "0.5015853", "0.50126016", "0.50011283", "0.49907625...
0.64173657
1
Gets or sets the stroke thickness for the y axis annotation backing. Leave unset for an automatic value.
get yAxisAnnotationStrokeThickness() { return this.i.np; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get shapeStrokeThickness() {\r\n return this.i.shapeStyle ? this.i.shapeStyle.strokeThickness : NaN;\r\n }", "get strokeWidth() {\n return this._strokeWidth || this.diameter / 10;\n }", "get xAxisAnnotationStrokeThickness() {\r\n return this.i.nk;\r\n }", "get yAxisAnnotationPad...
[ "0.66123056", "0.6579965", "0.61050665", "0.6075783", "0.6058357", "0.59653133", "0.5963561", "0.59183717", "0.5861677", "0.5835501", "0.5578501", "0.5563878", "0.54743034", "0.54251426", "0.54251426", "0.54251426", "0.54147893", "0.5355836", "0.53517276", "0.5349635", "0.534...
0.76659113
0
Gets or sets whether to display the vertical line.
get verticalLineVisibility() { return this.i.pm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get vertical() {\n return this._vertical;\n }", "get vertical() {\n return this._vertical;\n }", "get vertical() { return this._vertical; }", "get vertical() { return this._vertical; }", "get verticalLineStroke() {\r\n return brushToString(this.i.pc);\r\n }", "get ho...
[ "0.70902795", "0.70057726", "0.7001674", "0.7001674", "0.6604507", "0.6154205", "0.60001254", "0.5999844", "0.5960851", "0.591216", "0.5847714", "0.5670463", "0.56472284", "0.5578685", "0.556586", "0.5540425", "0.54469883", "0.54377085", "0.5424522", "0.5420119", "0.54175144"...
0.7417034
0
Gets or sets whether to display the horizontal line.
get horizontalLineVisibility() { return this.i.pl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get isHorizontal() {\n return true;\n }", "get isHorizontal() {\n return true;\n }", "get horizontalLineStroke() {\r\n return brushToString(this.i.pb);\r\n }", "_isHorizontal() {\n return this.orientation === 'horizontal';\n }", "get synchronizeHorizontally() {\n return t...
[ "0.6637785", "0.6637785", "0.657152", "0.62654936", "0.5988991", "0.595124", "0.58963186", "0.5881431", "0.57556105", "0.56135976", "0.55563414", "0.5553186", "0.5476208", "0.5471083", "0.54502237", "0.54440445", "0.5412538", "0.54049563", "0.53008544", "0.52872866", "0.52852...
0.7235312
0
Gets or sets whether to skip unknown values when searching for series values.
get skipUnknownValues() { return this.i.nc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSeriesInNonQueryState(series) {\n\t\t\t\tout = [];\n\t\t\t\tfor (var ns in series) {\n\t\t\t\t\tfor (var ms in ngModel.$modelValue.series) {\n\t\t\t\t\t\tif (equalObjects(ngModel.$modelValue.series[ms].query, series[ns].query)) {\n\t\t\t\t\t\t\tif (ngModel.$modelValue.series[ms].status === undefined ||...
[ "0.5745925", "0.5672498", "0.560764", "0.5274334", "0.52175194", "0.5195238", "0.5124529", "0.5124529", "0.5124529", "0.5096935", "0.5077152", "0.50424194", "0.50266665", "0.50266665", "0.50266665", "0.50266665", "0.5015904", "0.49869418", "0.48992878", "0.48992878", "0.48992...
0.6853659
0
Creates a new object containing the property flag set.
constructor() { super(); /** * None of the property flags. * @constant {number} bo.common.PropertyFlag#none * @default 0 */ this.none = 0; /** * The model property cannot be set. * @constant {number} bo.common.PropertyFlag#readOnly * @default 1 */ this.readOn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "makeProp(prop, value) {\n\t\tObject.defineProperty(this, prop, {\n\t\t\tvalue,\n\t\t\tenumerable: false,\n\t\t\twritable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}", "static getNewProperties() {\n return {};\n }", "function createProperty(attr) {\n\tvar name, value, isAttr;\n\n\t// using a map to...
[ "0.6379637", "0.6291363", "0.6283019", "0.61134857", "0.599678", "0.58702683", "0.5864889", "0.5752842", "0.57496715", "0.57029015", "0.56987435", "0.5693914", "0.56787455", "0.5678443", "0.5676622", "0.565923", "0.5604235", "0.55885506", "0.5569086", "0.5564407", "0.5508217"...
0.5767534
7
split using comma outside parentises
function _splitSelector(str){ var i = 0, len = str.length, c, result = [], begin = 0, count; do{ c = str[i]; if(c == ','){ result.push(str.substring(begin, i)); begin = i + 1; } else i = _escapeGroups(str, c, i); // escape [...] (...) '...' "..." /.../ }while(++i < len); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function splitComma(elem) {\n return _.split(elem, \",\");\n }", "function commaSplit(val) {\n return val.split(/,\\s*/);\n}", "function split( val )\n\t{\n\t\treturn val.split( /,\\s*/ );\n\t}", "function uusplitcomma(source) { // @param String: \",,, ,,A,,,B,C,, \"\r\n ...
[ "0.7134382", "0.7071701", "0.6995348", "0.65966654", "0.6451944", "0.636653", "0.6303026", "0.62952614", "0.627562", "0.6226207", "0.62003833", "0.61747926", "0.60785824", "0.60670215", "0.60193413", "0.601214", "0.6008383", "0.5997552", "0.5985202", "0.59810305", "0.5944719"...
0.58805066
28
get word after an index
function _nextWord(strng, index, regex){ var str = '', len = strng.length, c; // get word // if(regex) do{ c = strng[index]; if(regex.test(c)) str += c; else break; } while(++index < len); // else // do{ // c = strng[index]; // if(c < 'A' || c > 'z') /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getWordAtIndex(index) {\n return this.args[5+index];\n }", "getWordFromIndex(val = '', idx) {\n // get the most recent word break\n let start = Math.max(\n val.lastIndexOf('\\n', idx - 1),\n val.lastIndexOf(' ', idx - 1),\n );\n start += 1;\n\n // trim obvious punctuation from ...
[ "0.7563433", "0.70778406", "0.6829553", "0.678769", "0.6688389", "0.6433221", "0.6385928", "0.62557906", "0.6189817", "0.6114053", "0.6112318", "0.6090477", "0.6070436", "0.6042639", "0.60174346", "0.5985108", "0.5981529", "0.59679186", "0.5901621", "0.58939624", "0.588642", ...
0.6042863
13
next expression (delimited by next blank space)
function _nextExp(str, index){ var len = str.length; var c; do{ c = str.charAt(index); if(c == '[') index = _escapeOpenedSymb(str, index, '[', ']'); else if(c == '(') index = _escapeOpenedSymb(str, index, '(', ')'); else if(c == '"') index = _escapeStrMark(str, index + 1, '"'); else if(c == '\'') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function next() {\n index++;\n c = expression.charAt(index);\n }", "function next() {\n index++;\n c = expression.charAt(index);\n }", "next() {\n return (\n this.eos() || this.num() || this.operator() || this.brace() || this.fail()\n )\n }", "skipToNextChar() {\n this.consum...
[ "0.70520496", "0.70520496", "0.6740972", "0.6736081", "0.6666796", "0.65352756", "0.6466671", "0.6463588", "0.64588004", "0.6346906", "0.6308382", "0.62378055", "0.62275165", "0.6203241", "0.6153896", "0.6137991", "0.6119524", "0.6118787", "0.60654", "0.6014336", "0.5988166",...
0.5497892
69
ignore text between open and closed symbol (example: brackets, parentises, quotes)
function _escapeOpenedSymb(str, index, openSymb, closeSymb){ var symbCount = 0, len = str.length, c; do{ c = str[index]; if(c == openSymb) ++symbCount; else if(c == closeSymb) --symbCount; if(!symbCount) return index; }while(++index < len); throw 'incorrect format'; // incorrect format }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function skipBracket() {\n\t\twhile (thisToken && thisToken != ')') {\n\t\t\tif (getRangOperation(thisToken) == 0)\n\t\t\t\tgetToken();\n\t\t\tif (!thisToken)\n\t\t\t\treturn;\n\t\t\texecut();\n\t\t}\n\t\tremoveNewLine();\n\n\t}", "function checkSpacingInsideBraces(node) {\n // Gets braces and the fir...
[ "0.64532995", "0.60892856", "0.5658133", "0.56485856", "0.5588191", "0.558386", "0.5554289", "0.555377", "0.5535174", "0.55263597", "0.54837817", "0.5469885", "0.54601187", "0.5427967", "0.53766614", "0.5362688", "0.53123206", "0.5297485", "0.52906436", "0.52906436", "0.52906...
0.0
-1
escape string and regex mark
function _escapeStrMark(str, index, mark){ var len = str.length, c; do{ c = str[index]; if(c == '\\') ++index; // ignore next character else if(c == mark) return index; }while(++index < len); throw 'incorrect str format'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function escapeRegExp(str) {\n\t return toString(str).replace(/\\W/g,'\\\\$&');\n\t }", "function reEscape(str){\r\n\tvar specials=new RegExp(\"[.*+?|()\\\\[\\\\]{}\\\\\\\\]\",\"g\"); // .*+?|()[]{}\\\r\n\treturn str.replace(specials,\"\\\\$&\");\r\n}", "function escapeRegExp(str) {return str.replace...
[ "0.7400907", "0.7306106", "0.7288726", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", "0.72328794", ...
0.0
-1
This returns a string representation of the values a filter is set to. Depending on the type of filter, this string will take a different form.
function getFilterValues (filter) { switch (filter.filterType) { case 'categorical': return { filterType: filter.filterType, appliedValues: filter.appliedValues }; case 'range': return { filterType: filter.filterType, minValue: filter.minV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getColumnFilterString(filter, dataField) {\n\n var filterString = \"\";\n var formatString;\n\n // Only if we have at least one filter defined\n if (filter.set[0] != undefined) {\n\n // Lets go process the set\n _.each(filter.set, f...
[ "0.647305", "0.6464773", "0.6389285", "0.6266498", "0.620947", "0.620947", "0.6165295", "0.61202717", "0.5987252", "0.5957409", "0.59413767", "0.59413767", "0.59413767", "0.59413767", "0.59413767", "0.5940563", "0.59232175", "0.5912036", "0.5879924", "0.5877427", "0.5870395",...
0.5409103
57
Sends the filter state of all worksheets of the current dashboard
function sendFilterState(builder) { const dashboard = tableau.extensions.dashboardContent.dashboard; let filters = dashboard.worksheets.map(function(worksheet) { return worksheet.getFiltersAsync(); }); function collectFilterData(filtersForWorksheet) { return filtersForWorksheet.map(functio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function processFilters(worksheets) {\n getFilters(worksheets).then(allFilters => {\n filters = allFilters.flat();\n filters = removeDuplicates(filters);\n displayFilterValues(filters);\n });\n}", "function clearFilters() {\n if (viz) {\n var worksheets = viz.getWorkbook().ge...
[ "0.63307774", "0.61584944", "0.5840379", "0.5784743", "0.57441837", "0.5732868", "0.56678057", "0.5633503", "0.557914", "0.5546504", "0.55363625", "0.54963255", "0.54888797", "0.54816407", "0.5471268", "0.5444185", "0.5442318", "0.54159707", "0.5411583", "0.5405508", "0.54015...
0.6954881
0
Appends any Tableau extension settings to the posted event for passing userconfigurable metadata along
function addTableauSettings(eventData) { return Object.assign({}, eventData, { settings: tableau.extensions.settings.getAll() }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "storeCustomSetting(core, event) {\n return new Promise((resolve) => {\n // PopTemplate.buffer();\n PopLog.event(this.name, `storeCustomSetting`, event);\n const setting = event.config.metadata.setting;\n const body = {\n value: event.config.control....
[ "0.56986505", "0.56198555", "0.5372734", "0.53418314", "0.5339472", "0.5299537", "0.52607304", "0.5202108", "0.5192881", "0.51568013", "0.5105791", "0.5090167", "0.50839216", "0.5050797", "0.5048343", "0.5046034", "0.5029036", "0.5023009", "0.5015029", "0.49962527", "0.499003...
0.6764762
0
Generates a random string of letter groups. These may fool the untrained observer into thinking that these are UUIDs
function randomString(groupCount, groupLen) { let o = []; for (let i = 0; i < groupCount; ++i) { let group = []; for (let j = 0; j < groupLen; ++j) { group.push(Math.round(Math.random() * 32).toString(32)); } o.push(group.join('')); } return o.join('-'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateRandomId() {\n const alphaNum = \"abcdefghigklmnopqrstuvwxyz1234567890\";\n let str = \"\";\n for (let i = 0; i <= 6; i++) {\n str += alphaNum[random(0, 35)];\n }\n return str;\n}", "function makeid() {\n var text = \"\";\n var possibleAlpha = \"ABCDEFGHJKLMNPQRSTUVWXYZ\";\n var possi...
[ "0.7522607", "0.74755013", "0.7464328", "0.7385076", "0.736446", "0.73586655", "0.73562014", "0.73502785", "0.73379993", "0.7330291", "0.73296064", "0.73218936", "0.7320645", "0.7318305", "0.7308997", "0.73049974", "0.73002595", "0.7300109", "0.7299781", "0.7298139", "0.72973...
0.7592312
0
Validator for string attributes
function mustHaveStringAttributes(evt, attrs) { attrs.forEach(function(a) { let v = evt[a]; if (typeof v !== 'string' || v.length === 0) { throw new Error("Missing attribute: `" + a + "`"); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateAttributeString(attrStr, options) {\n //console.log(\"start:\"+attrStr+\":end\");\n\n //if(attrStr.trim().length === 0) return true; //empty string\n\n var matches = util.getAllMatches(attrStr, validAttrStrRegxp);\n var attrNames = {};\n\n for (var i = 0; i < matches.length; i++) {\n if (m...
[ "0.75488657", "0.7548042", "0.7548042", "0.7548042", "0.7548042", "0.75147116", "0.744894", "0.7440017", "0.6712174", "0.6534233", "0.6472765", "0.62498975", "0.6205209", "0.6176614", "0.61597884", "0.6138886", "0.60200655", "0.60035366", "0.5920305", "0.591936", "0.5893048",...
0.75806123
0
Throws an error if the event is invalid. Returns the event if valid.
function mustBeAValidEvent(evt) { try { mustHaveStringAttributes(evt, [ 'deploymentId', 'sourceId', 'sourceSequenceId', 'recordedAt', 'projectName', 'dashboardName', 'workbookName', 'kind' ]); } catch (e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate(event, callback) {\n if (typeof event !== \"string\" || typeof callback !== \"function\") {\n throw new Error(\"Invalid Arguments\");\n }\n this.events[event] = this.events[event] || [];\n}", "checkValidity(context, event) {\n throw new Error('Implement in subclass');\n }", "checkVa...
[ "0.57016605", "0.5551585", "0.5551585", "0.5468537", "0.53161067", "0.51874924", "0.51419455", "0.51189524", "0.50126374", "0.49842864", "0.49775276", "0.49463227", "0.49422216", "0.49280593", "0.48862994", "0.48862994", "0.484625", "0.48152292", "0.48152292", "0.48068038", "...
0.6123395
0
Returns true if the kind of event provided is a valid one
function isValidEventKind(evtKind) { return (typeof Kinds[evtKind] !== 'undefined'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eventCheck(obj, type) {\n var t;\n \n if (!obj._events) {\n return false;\n }\n \n t = obj._events[type]\n \n if (typeof t === 'function') {\n return true;\n }\n if (Array.isArray(t) && t.length) {\n return true;\n }\n return false;\n}", "function validate(eventFile) {\n\t\tlet isVa...
[ "0.7405736", "0.6771208", "0.6716819", "0.6662526", "0.6583844", "0.65797967", "0.65797967", "0.65797967", "0.65797967", "0.65797967", "0.6531123", "0.64526975", "0.64272475", "0.6405643", "0.6355494", "0.6312216", "0.631216", "0.6259609", "0.6254068", "0.62390006", "0.623478...
0.72697586
1
Creates a new event
function makeEvent(deploymentId, sourceId, sourceSequenceId, workbookName, dashboardName, projectName, eventKind, eventData) { if (!isValidEventKind(eventKind)) { throw new Error(`Not a valid event kind: ${eventKind}`); } let recordedAt = new Date().toISOString(); projectName = ((typeof ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createEvent() {\n var calendarId = 'primary';\n var start = getRelativeDate(1, 12);\n var end = getRelativeDate(1, 13);\n var event = {\n summary: 'Lunch Meeting',\n location: 'The Deli',\n description: 'To discuss our plans for the presentation next week.',\n start: {\n dateTime: sta...
[ "0.7354684", "0.7331893", "0.7248415", "0.7246196", "0.7210055", "0.7002944", "0.6953486", "0.69421643", "0.68569005", "0.6795349", "0.67028224", "0.6700255", "0.66410524", "0.6608908", "0.6498621", "0.6491451", "0.6473495", "0.6442699", "0.63937736", "0.6380318", "0.6380318"...
0.66520387
12
Creates an event builder that creates events bound to the specific deployment / project / dashboard / session
function makeEventBuilder(deploymentId, sourceId, dashboardName, projectName) { let sourceSequenceId = 0; return function(eventKind, eventData) { let deploymentId = tableau.extensions.settings.get(DEPLOYMENT_ID_KEY); let workbookName = getWorkbookName(); return makeEvent(deploymentId...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeEvent(deploymentId, sourceId, sourceSequenceId, workbookName, dashboardName, projectName, eventKind, eventData) {\n if (!isValidEventKind(eventKind)) {\n throw new Error(`Not a valid event kind: ${eventKind}`);\n }\n let recordedAt = new Date().toISOString();\n projectName =...
[ "0.6076333", "0.5540102", "0.52706856", "0.5176459", "0.5170176", "0.5060894", "0.49269992", "0.48999688", "0.48936915", "0.48762614", "0.48683122", "0.48520863", "0.48486128", "0.48392314", "0.48359242", "0.48174372", "0.48158982", "0.477929", "0.4778183", "0.4778183", "0.47...
0.6324632
0
Updates the deployment ID and status displays from the settings
function updateStatus(errorOccured) { // show the deployment id let deploymentId = tableau.extensions.settings.get(DEPLOYMENT_ID_KEY); let workbookName = getWorkbookName(); console.log("UPDATESTATUS() -- " + deploymentId + " " + workbookName); $('#deployment-id-readout').text(deploymentId); l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refreshDeploymentStatus(topoId) {\n var doc = jQuery(document.documentElement);\n doc.css('cursor', 'progress');\n\n var url = '/ajax/refreshDeploymentStatus/';\n var params = {\n 'topologyId' : topoId\n };\n var post = jQuery.post(url, params, function...
[ "0.6253345", "0.6161458", "0.60563743", "0.58749765", "0.5586632", "0.55653584", "0.54454243", "0.5441787", "0.5434937", "0.5427587", "0.5416039", "0.5395402", "0.53176785", "0.5314421", "0.53124845", "0.52511907", "0.5244378", "0.5231515", "0.5216333", "0.52136225", "0.51999...
0.6211775
1
Shows the configuration dialog
function configure(url) { url = url ? url : config.base_url let popupUrl = url + getMetaTagContentByName("config-page"); const popupOpts = { height: 650, width: 630, }; /** * This is the API call that actually displays the popup extension to the user. The * popup is always a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openConfig() {\n vm.isConfiguring = true;\n vm.dialogActive = true;\n }", "function ac_showConfigPanel() {\n\tac_switchTool(\"cfg\");\n}", "function viewConfig() {\n ngDialog.open({\n template: '<ncl-function-config-dialog data-close-dialog=\"clos...
[ "0.74459803", "0.6883992", "0.6803243", "0.6777084", "0.676084", "0.6687532", "0.6624082", "0.66207653", "0.6568287", "0.653876", "0.65214235", "0.6512879", "0.6484759", "0.64351285", "0.63738996", "0.6362706", "0.63243085", "0.63084817", "0.630586", "0.629808", "0.62585044",...
0.5398556
100
SimpleSlider v1.2 by JaL Productions
function simpleslider(ssR, ssF, ssD, ssP) { // Setup variables var ss = document.getElementById('deviantART-gallery'), ssWrapper = document.getElementById('ss__wrapper'), ssControls = document.getElementById('ss__controls'), ssPrev = document.getElementBy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initSimpleSlider() {\n\n showSlides(slideIndex);\n\n if (slides.length < 10) {\n total.textContent = `0${slides.length}`;\n } else {\n total.textContent = slides.length;\n }\n\n function showSlides(n) {\n if (n > slides.length) {\n slideIndex = 1...
[ "0.7624803", "0.6997776", "0.6970544", "0.6948129", "0.6937278", "0.6928763", "0.68662506", "0.68624383", "0.6831436", "0.6818432", "0.67800623", "0.67755556", "0.67591923", "0.6740527", "0.6695741", "0.66832876", "0.66631395", "0.66580987", "0.6649262", "0.6648831", "0.66484...
0.703784
1
Ensure each image fills the wrapper leaving no whitespace (backgroundsize:cover)
function coverImages(imgElem) { var img = new Image(); img.src = imgElem.src; var wait = setInterval(function() { if(img.width != 0 && img.height != 0) { clearInterval(wait); // Stretch to fit if((img.width / img.height) < (ssWidth /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function imgFill(){\n\t\t\t$('.teaser-card').find('.block-content-image').each(function(){\n\t\t\t\tvar $this = $(this), $img = $this.find('img');\n\n\t\t\t\tif( ! $img.hasClass('media--noResize') )\n\t\t\t\t{\n\t\t\t\t\t$this.height($this.parents('.teaser-card').height()).find('img').css('display','block');\n\n\t...
[ "0.62762016", "0.62524635", "0.60212386", "0.60074973", "0.60074973", "0.5933317", "0.5811846", "0.57727075", "0.57573193", "0.5692322", "0.5638164", "0.559733", "0.5589018", "0.55889684", "0.55877656", "0.55835485", "0.55697614", "0.5560387", "0.55478746", "0.55432016", "0.5...
0.63366103
0
Add current class to first frame
function addCurrent(n) { ssImages[n].className += ' current'; ssAllDots[n].className += ' current'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showCurrentFrame() {\n /*\n Replaces the \"current-image\" class with the \"previous-image\" one on the image.\n It calls the \"getNormalizedCurrentFrame\" method to translate the \"currentFrame\" value to the \"totalFrames\" range (1-180 by default).\n */\n fram...
[ "0.66951555", "0.66071314", "0.63701236", "0.62892187", "0.61629903", "0.61003935", "0.61003935", "0.6081507", "0.6070015", "0.60618633", "0.6048284", "0.6044975", "0.6032537", "0.6019857", "0.60031885", "0.60031885", "0.5992912", "0.5959042", "0.5924932", "0.5907801", "0.588...
0.6189766
4
Clear all current classes
function clearCurrent() { for(var i = 0; i < ssFrames; i++) { ssImages[i].className = ssImages[i].className.replace(/ current/, ''); ssAllDots[i].className = ssAllDots[i].className.replace(/ current/, ''); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearAll() {\n for (var i = 0; i < tds.length; i++) {\n tds[i].className = '';\n }\n }", "clearAll(){\n this.setState({classList: []});\n }", "function _cleanupClasses(target) {\n\t for (var i = 0; i < this._dirtyClasses.length; i++) target.classList.remove(t...
[ "0.7207221", "0.7095573", "0.6893598", "0.6809766", "0.67665535", "0.6639254", "0.6618079", "0.6615265", "0.6530016", "0.6517467", "0.6490228", "0.64810514", "0.6465549", "0.64287424", "0.6428613", "0.64260095", "0.6388583", "0.6367419", "0.63536465", "0.63263285", "0.6317615...
0.6162161
32
efecto de la trampa rodante (I)
rodacionar(){ this.sonidorodante = game.add.audio('BolaNieve.mp3'); this.sonidorodante.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getIdOrden(){\n return orden_id;\n}", "get getRaza(){\r\n return this.raza;\r\n }", "get getRaza(){\n return this.raza;\n }", "function IndicadorRangoEdad () {}", "function getRutas(next) {\n RutaModel\n .query(`select r.idRuta, r.idVehiculo, r.noEconomico, r.idRemol...
[ "0.5935901", "0.583177", "0.57856226", "0.5759843", "0.55589515", "0.55543464", "0.5508329", "0.5475663", "0.5475086", "0.5458559", "0.54396516", "0.543812", "0.5382465", "0.5367332", "0.53658867", "0.53454214", "0.5325535", "0.5306863", "0.53067034", "0.53067034", "0.5306703...
0.0
-1
efecto de la trampa de caida (O)
caidicionar(){ this.sonidocaida = game.add.audio('FreeFall.mp3'); this.sonidocaida.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cumpleaños(persona){\n return{\n ...persona,\n edad: persona.edad +1\n }\n}", "nuevoCiclo() {\n let suma = 0;\n for (let i = 0; i < this.vecinos.length; i++) {\n if (this.vecinos[i].estado === 1) {\n suma++;\n }\n }\n\n ...
[ "0.5855476", "0.58117515", "0.5703098", "0.5650566", "0.5605691", "0.55867857", "0.55730814", "0.5559", "0.552715", "0.5496304", "0.54843247", "0.54785395", "0.54782385", "0.5477837", "0.5477439", "0.5464607", "0.5455145", "0.5454444", "0.5452958", "0.5448973", "0.5437051", ...
0.0
-1
efecto de la trampa lateral o de seguimiento (P)
seguicionar(){ this.sonidoseguimiento = game.add.audio('Deslizar.mp3'); this.sonidoseguimiento.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function trajanjeFn(data) {\n trajanje = data.prijeposlije === \"PRIJE\" ? trajanjeU : trajanjeP;\n return trajanje;\n }", "async function getPion(i, j, hote, adversaire){\n try{\n var rows = await knex.raw(\"SELECT cases.pion FROM cases WHERE cases.x=? AND cases.y=? AND cases.hote= ? AND cases.advers...
[ "0.5635878", "0.5374439", "0.53247225", "0.51357824", "0.5071926", "0.5029999", "0.5010998", "0.5010155", "0.49660957", "0.49580482", "0.4948793", "0.49456456", "0.49291673", "0.49280435", "0.49224907", "0.4920748", "0.4919662", "0.49146843", "0.48940918", "0.48740217", "0.48...
0.0
-1
efecto de salirse fuera del mapa
salicionar(){ this.sonidofueramapa = game.add.audio('salirse.mp3'); this.sonidofueramapa.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function haeJoukkueId() {\n\n let tunnisteet = new Map();\n\n for (let kilpailu of data) {\n for (let sarja of kilpailu['sarjat']) {\n for (let joukkue of sarja['joukkueet']) {\n tunnisteet.set(joukkue['id'], joukkue);\n }\n }\n }\n\n return tunnisteet;\n}", "function salva(variavel)\n...
[ "0.57452935", "0.5732957", "0.57119083", "0.5674939", "0.55540967", "0.554771", "0.55294186", "0.54813784", "0.5479235", "0.547757", "0.5472844", "0.54509956", "0.5362666", "0.535397", "0.5344253", "0.53377545", "0.53304565", "0.52887094", "0.5285593", "0.5262883", "0.5259828...
0.0
-1
sonido de capturar a otro jugador
capturacionar(){ this.captura = game.add.audio('capturacionar.mp3'); this.captura.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CriarJogadores(numeroJogadores){\n\t\tp1 = null;\n\t\tp2 = null;\n\t\tp3 = null;\n\t\tp4 = null;\n\t\tif(numeroJogadores>0){\n\t\t\tp1 = InstanciaJogador(p1,Player1(),_jogador1);\n\t\t}\n\t\tif(numeroJogadores>1){\n\t\t\tp2 = InstanciaJogador(p2,Player2(),_jogador2);\n\t\t}\n\t\tif(numeroJogadores>2){\n\t...
[ "0.54373837", "0.5413397", "0.53494567", "0.532359", "0.53182083", "0.52928513", "0.52865434", "0.52513415", "0.52513367", "0.52046084", "0.51884145", "0.51569283", "0.5154996", "0.5146031", "0.5136691", "0.5121767", "0.51076615", "0.50878227", "0.5067076", "0.50596905", "0.5...
0.0
-1
Get information status of a transaction with certain order_id | transaction_id
status(transactionId) { this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/status'; return this.parent.httpClient.request({ requestUrl: this.apiUrl, httpMethod: 'get', serverKey: this.parent.apiConfig.get().serverKey, request...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async getTransactionInfo(transactionId) {\n let link = transactionApiUrl + \"/\" + transactionId;\n let response = await fetch(link);\n let transactionInfo = await response.json();\n return transactionInfo;\n }", "getOrderStatus(orderId) {\n return __awaiter(this, void 0, void 0, function* ()...
[ "0.63709944", "0.6206694", "0.61815685", "0.60321593", "0.5994898", "0.59360695", "0.59258115", "0.589711", "0.58809745", "0.58765745", "0.58451587", "0.5764823", "0.5752985", "0.5746283", "0.5742448", "0.5729419", "0.5685344", "0.56277347", "0.56121844", "0.559566", "0.55625...
0.6834427
0
Get information status of multiple B2B transactions related to certain order_id | transaction_id
statusb2b(transactionId) { this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/statusb2b'; return this.parent.httpClient.request({ requestUrl: this.apiUrl, httpMethod: 'get', serverKey: this.parent.apiConfig.get().serverKey, r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async getTransactionInfo() {\n const email = this.getEmail();\n const bills = await this.service.bills.query(['*'], { email });\n this.response(200, bills);\n }", "function Status(options, callback) {\n if (options && base) {\n var transactions = options;\n va...
[ "0.6179941", "0.61762893", "0.57579255", "0.57242095", "0.5638937", "0.5598753", "0.5572303", "0.55366033", "0.5494368", "0.54297316", "0.53949255", "0.5386892", "0.53738034", "0.53426635", "0.53319", "0.5310176", "0.53093404", "0.5280246", "0.5276692", "0.5259171", "0.524885...
0.67917025
0
Approve a transaction with certain order_id | transaction_id which gets challenge status from Fraud Detection System
approve(transactionId) { this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/approve'; return this.parent.httpClient.request({ requestUrl: this.apiUrl, httpMethod: 'post', serverKey: this.parent.apiConfig.get().serverKey, requ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async approvePayment({\n orderKey,\n }) {\n\n await this.transact({\n name: 'approvepay',\n data: {\n order_key: orderKey,\n approver: await this.getAccountName(),\n }\n });\n }", "approve(id, payload) {\n return this.re...
[ "0.73152745", "0.684108", "0.67623913", "0.67150545", "0.6534351", "0.65196055", "0.64613587", "0.6350885", "0.6171867", "0.60926443", "0.5990593", "0.58685744", "0.5846666", "0.58128", "0.5801289", "0.57929003", "0.57869875", "0.5778983", "0.5719669", "0.5713291", "0.5678824...
0.69912976
1
Deny a transaction with certain order_id | transaction_id which gets challenge status from Fraud Detection System
deny(transactionId) { this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/deny'; return this.parent.httpClient.request({ requestUrl: this.apiUrl, httpMethod: 'post', serverKey: this.parent.apiConfig.get().serverKey, requestPay...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function thridPartyDisallowance() {\n var frm = document.frmDisallow;\n if (frm.disallowTPAddress.value.length < 41) {\n $(\"#statusFormDisallow\").css(\"background-color\", \"Salmon\");\n $(\"#statusFormDisallow\").html(\"You must inform appropriate information\");\n return\n }\n ...
[ "0.60030687", "0.58936656", "0.58585", "0.563642", "0.5579173", "0.5571012", "0.54894817", "0.5478962", "0.5466106", "0.54441035", "0.54288065", "0.5427886", "0.5411617", "0.5392297", "0.5372169", "0.53708017", "0.53703386", "0.5362158", "0.53457886", "0.53324306", "0.532364"...
0.6782867
0
Cancel a transaction with certain order_id | transaction_id Cancelation can only be done before settlement process
cancel(transactionId) { this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/cancel'; return this.parent.httpClient.request({ requestUrl: this.apiUrl, httpMethod: 'post', serverKey: this.parent.apiConfig.get().serverKey, reques...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cancelOrder(symbol, orderId, OrderAPI, binanceSecret, binanceAPI) {\n //console.log(\n // \"cancelOrder\",\n // symbol,\n // orderId,\n // OrderAPI,\n // binanceSecret,\n // binanceAPI\n //);\n const params = { symbol, orderId, timestamp: new Date().getTime() };\n let res = makeSignature(p...
[ "0.65674436", "0.6437219", "0.6167457", "0.60308385", "0.60308385", "0.600814", "0.5912134", "0.5814639", "0.58097804", "0.579934", "0.5798429", "0.57289755", "0.5725409", "0.5634466", "0.5610982", "0.5591981", "0.5590621", "0.55853206", "0.5522997", "0.5481362", "0.54523474"...
0.6947201
0
Update order_id | transaction_id with pending status to be expired
expire(transactionId) { this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/expire'; return this.parent.httpClient.request({ requestUrl: this.apiUrl, httpMethod: 'post', serverKey: this.parent.apiConfig.get().serverKey, reques...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "triggerOrder(order) {\n if (!(order instanceof ExchangeOrder)) {\n throw 'Invalid order given';\n }\n\n // dont overwrite state closed order\n if (order.id in this.orders && ['done', 'canceled'].includes(this.orders[order.id].status)) {\n delete this.orders[order.id];\n return;\n }\n\...
[ "0.6380257", "0.6380257", "0.62156314", "0.6173955", "0.6151826", "0.60701066", "0.5968135", "0.59229535", "0.5790411", "0.57568896", "0.56975657", "0.56597817", "0.55787116", "0.5567724", "0.55371726", "0.5510044", "0.5450968", "0.5440038", "0.5439027", "0.54341215", "0.5421...
0.0
-1
Update order_id | transaction_id with settlement status to be refund
refund(transactionId, parameter) { this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/refund'; return this.parent.httpClient.request({ requestUrl: this.apiUrl, httpMethod: 'post', serverKey: this.parent.apiConfig.get().serverKey, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refundTransaction(params, callback) {\n // params.transaction_id = parseInt(params.transaction_id, 10);\n\n // if (!params.transaction_id) {\n // return callback(APP.ERROR.INVALID_PARAMETERS);\n // }\n\n // var qParams = [params.transaction_id, APP.PAYMENT_TRANSACTION_STATUS.SUCCESSFUL]...
[ "0.63094807", "0.60069686", "0.60069686", "0.59134066", "0.58745706", "0.58663774", "0.568174", "0.5650113", "0.5614979", "0.5582716", "0.5514477", "0.5512481", "0.5511693", "0.55039126", "0.546677", "0.54516625", "0.53816456", "0.5325129", "0.52381754", "0.517849", "0.517839...
0.5321361
18
Attempt to send refund to bank or payment provider and update the transaction status to refund if it succeeded
refundDirect(transactionId, parameter) { this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/refund/online/direct'; return this.parent.httpClient.request({ requestUrl: this.apiUrl, httpMethod: 'post', serverKey: this.parent.apiConfig.get(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refundItem() {}", "function refundTransaction(params, callback) {\n // params.transaction_id = parseInt(params.transaction_id, 10);\n\n // if (!params.transaction_id) {\n // return callback(APP.ERROR.INVALID_PARAMETERS);\n // }\n\n // var qParams = [params.transaction_id, APP.PAYMENT_...
[ "0.72159857", "0.7130449", "0.6838261", "0.6631381", "0.6422181", "0.64090914", "0.6126183", "0.5682034", "0.56532943", "0.5642917", "0.56229496", "0.5593394", "0.5553765", "0.5531065", "0.55070007", "0.5492305", "0.54634815", "0.54595816", "0.54566526", "0.54252505", "0.5400...
0.58094966
7
An additional mechanism we provide to verify the content and the origin of the notification is to challenge. This can be achieved by calling the get status API. The response is the same as the notification status.
notification(notification) { let self = this; return new Promise(function (resolve, reject) { if (typeof notification === 'string') { try { notification = JSON.parse(notification); } catch (err) { reject(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function statusVerified(err, payload){\n if (err) {\n _handle_ErrCatched(new authorizedError(\"invalid token detect at /stattus, \"+err, 32), req, res);\n } else {\n try{\n let userId = payload.user_Id;\n let userInfo = await _DB_users.findOne({\n where: {id: userId},\n...
[ "0.5996761", "0.5886946", "0.57723886", "0.5762434", "0.5704274", "0.5692342", "0.5674415", "0.5630872", "0.5620564", "0.56125474", "0.5612478", "0.5550424", "0.5547288", "0.5542998", "0.55320704", "0.5514231", "0.5508672", "0.5491818", "0.54128665", "0.5406572", "0.54056776"...
0.5438887
18
Merge existing parameters into keyspecific ones.
function _mergeParams(key, kParams, gParams) { var ret = {}; ret[key] = kParams; for (var opt in gParams) { // ignore the value parameter as it conflicts with our current one if (gParams.hasOwnProperty(opt) && opt !== 'value') { kParams[opt] = gParams[opt]; } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function merge(){\n\t\tvar result = {};\n\t\tfor(var i=0; i<arguments.length; i++)\n\t\t\tfor(var key in arguments[i])\n\t\t\t\tif(arguments[i].hasOwnProperty(key))\n\t\t\t\t\tresult[key] = arguments[i][key];\n\t\treturn result;\n\t}", "function mergeParams(a, b) {\n for (const key of Object.keys(a)) {\n ass...
[ "0.62724453", "0.6019334", "0.57956845", "0.56412536", "0.5534106", "0.55256474", "0.55016786", "0.5483688", "0.5414678", "0.5398053", "0.5398029", "0.5381588", "0.53804815", "0.53804815", "0.53804815", "0.53804815", "0.536661", "0.53386575", "0.53386575", "0.53386575", "0.53...
0.7017892
0
Initializes an instance of Mem
function Mem() { console.info('[Mem#constructor] Allocating memory...'); _super.call(this); this.__storage__ = {}; this.__length__ = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor() {\n this.length = 0;\n this._capacity = 0;\n // Sets up the pointer where the memory is allocated\n this.ptr = memory.allocate(this.length);\n }", "function Memory() {\n _classCallCheck(this, Memory);\n\n Memory.initialize(this);\n }", "function MemCache() {\n this.__wrappe...
[ "0.69353276", "0.6825153", "0.6808018", "0.6594759", "0.6594759", "0.6475787", "0.64090425", "0.6348325", "0.62735134", "0.62262857", "0.6206172", "0.61868954", "0.61694926", "0.6115513", "0.61076283", "0.5958407", "0.5822662", "0.5806772", "0.5802438", "0.5777445", "0.577646...
0.79022807
0
When the user removes a point from the polygon form 1. The programm checks whether the point that is about to be removed, contains data. If it does a confirm dialog is displayed on the screen asking the user if he really wants to delete the point 2. If the user confirms the action then The current polygon form data are...
function removePoint(){//Removal of last polygon point $("#add_f").attr("disabled", false);//Enable the add point button var point_to_remove_id = parseInt(number_of_polygon_points);//Get the id of the last point if($("#x"+point_to_remove_id).val() != "" || $("#y"+point_to_remove_id).val() != ""){//Confirm t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRemovePlotFrame() {\n if (polygonGraphic != null) {\n removeDatashopPolygon(polygonGraphic);\n if (map.graphics.graphics.length > 0) {\n var polygonCount = 0;\n for (var i = 0; i < map.graphics.graphics.length; i++) {\n if (map.graphics.graphics[i].g...
[ "0.6802941", "0.6556435", "0.65296483", "0.6264965", "0.6150776", "0.6096863", "0.60702264", "0.604403", "0.6003098", "0.6002342", "0.59827816", "0.5947738", "0.5917313", "0.5893725", "0.58774483", "0.58714014", "0.58624583", "0.5847218", "0.58414", "0.58380675", "0.5833072",...
0.7663133
0
perform a calculation based on the value of operator (case statement) firstnumber operator secondnumber assign the resulting value to result
function calculate(first, second, operator) { switch (operator) { case '+': return Number(first) + Number(second); break; case '-': return Number(first) - Number(second); break; case '*': return Number(first) * Number(second); break; case '/': return Number(fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleOperator(operator){\n\n\t// Prevent user from trying to pass '=' as first operator (e.g. 1=)\n\tif (calculation['operator'] == \"=\"){\n\t\tcalculation['operator'] = '';\t\n\t}\n\t\n\t\n\t// Triggers when there are two numbers and first operator (e.g. 1+1)\n\t// Call operate function which get resul...
[ "0.769153", "0.73792315", "0.73111945", "0.72582847", "0.72540027", "0.7250251", "0.7233391", "0.72319794", "0.7227115", "0.7224758", "0.7151334", "0.71412116", "0.7134313", "0.7133248", "0.71280795", "0.7125441", "0.70875764", "0.7084161", "0.7079333", "0.70637333", "0.70560...
0.72920394
3
save the current extent into the savedExtents array, if it is different from the "current" one. It is important to only save it if it differs from the current one, because sometimes OpenLayers fires multiple events when the extent changes, causing this function to be called multiple times with the same extent
function saveCurrentExtent () { var newExtent = formatExtent(this.map.getExtent()), newSavedExtents = [], currentSavedExtent, i; if (this.currentSavedExtentIndex >= 0) { currentSavedExtent = this.savedExtents[this.currentSavedExtentIndex]; if (extentsAreEqual(currentSave...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateExtent() {\n if (this.extent) {\n const last = this.indices[this.indices.length - 1];\n if (last) {\n this.extent.union(last.extent);\n }\n }\n }", "function save(){\r\n\t//Loop through canvas objects from end to start since main \r\n\t//shap...
[ "0.56989866", "0.56612945", "0.53452283", "0.5313108", "0.52754194", "0.5267827", "0.5032228", "0.494738", "0.4922991", "0.49067506", "0.4903637", "0.48962575", "0.487522", "0.48702568", "0.4866202", "0.4861771", "0.48585033", "0.48577598", "0.48510826", "0.48510703", "0.4848...
0.837099
0
Return a string representing a GetFeatureInfo request URL for the current map, based on the passed parameters: serviceUrl: the URL of the WMS service layer: layer to query srs: the SRS of the layer (x,y): (pixel) coordinates of query point
function createWMSGetFeatureInfoRequestURL (serviceUrl, layer, srs, x, y) { var extent = app.map.getExtent(); if (seldon.gisServerType === "ArcGIS") { extent = extent.transform(new OpenLayers.Projection("EPSG:900913"), new OpenLayers.Projection(seldon.projection)); } return M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFeatureInfo(e)\n{\n if (essc_wms != null)\n {\n $('featureInfo').innerHTML = \"Getting feature info...\";\n var url = essc_wms.getFullRequestString({\n REQUEST: \"GetFeatureInfo\",\n BBOX: essc_wms.map.getExtent().toBBOX(),\n I: e.xy.x,\n ...
[ "0.58993876", "0.5877618", "0.5865016", "0.58173", "0.5600143", "0.55972344", "0.5449033", "0.53251034", "0.53193134", "0.52794886", "0.52700055", "0.52528554", "0.52467704", "0.5236177", "0.5214633", "0.52037454", "0.5159132", "0.5075239", "0.5065278", "0.5063271", "0.502307...
0.8138183
1
Function that is exported. Creates handler for point marker functionality
function marker () { return new ClickTool(markerHandler); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pointClickHandler() {\n var kineticPoint = getClickPoint();\n\n switch (locationType) {\n case objectLocationEnum.Centered:\n case objectLocationEnum.Random:\n return;\n\n case objectLocationEnum.Point:\n setCurrentPointAsOnlyPoint(kineticPoint);\n ...
[ "0.6954629", "0.66216266", "0.6547013", "0.6476353", "0.6464428", "0.6397254", "0.6392208", "0.6359365", "0.627824", "0.623116", "0.62022984", "0.61844647", "0.61722493", "0.61349547", "0.6129268", "0.6124678", "0.60976124", "0.60801256", "0.6072735", "0.6070099", "0.60454285...
0.63868994
8
Creates and appends the html for documenting the points that have been marked
function createPointItem (coords, layer) { var itemString = ''; itemString += '<div class="marker-point-item">'; itemString += ' <div class="marker-point-label">'; itemString += ' <span class="marker-point-coords-label">Lat:</span>'; itemString += ' <span class="marker-poi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addNotesToPage() {\n // for each data_point in this team's notes_data\n for (let data_point_index in notes_data[selected_team]) {\n // data_point is new notes to add\n let data_point = notes_data[selected_team][data_point_index];\n // adds a new line\n $(\"#notes-\" + selected_team + \"-\" +...
[ "0.61281234", "0.59413767", "0.59304214", "0.58361703", "0.5816284", "0.5814805", "0.57899374", "0.57654583", "0.5748808", "0.57471436", "0.57311696", "0.56986487", "0.5661051", "0.5650488", "0.5625202", "0.56238514", "0.5618814", "0.5616207", "0.56101185", "0.5606531", "0.55...
0.0
-1
Makes point distinct when you hover over the text area for it
function handlePointHoverEnter (e) { var point = $(this).data("point"); point.style = pointStyleHover; point.redraw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mousemove(e) {\n // recover coordinate we need\n var y0 = y.invert(e[1]);\n focusText\n .html(\"Dept:\"+ d3.format('.2f')(y0))\n .attr(\"x\", e[0])\n .attr(\"y\", e[1])\n .style(\"opacity\", \"1\");\n }", "function mouseover(p) {\n tooltip.style(\"visibility\", \"vis...
[ "0.6470902", "0.64432544", "0.62334883", "0.61635756", "0.60475534", "0.60009366", "0.5966369", "0.5966369", "0.5964237", "0.5953376", "0.5934704", "0.59312814", "0.59132683", "0.5900991", "0.5846899", "0.58433324", "0.5816619", "0.58054733", "0.5801752", "0.5796318", "0.5785...
0.6278065
3
Returns point to default style when you loeave the text area for it
function handlePointHoverLeave (e) { var point = $(this).data("point"); point.style = pointStyleDefault; point.redraw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _resetStyles() {\n\t\t\t\t\tscope._oldTextareaStyles = scope.$textarea.attr('style');\n\n\t\t\t\t\tscope.$textarea.css({\n\t\t\t\t\t\tmargin: 0,\n\t\t\t\t\t\twebkitBoxSizing: \"border-box\",\n\t\t\t\t\t\tmozBoxSizing: \"border-box\",\n\t\t\t\t\t\tboxSizing: \"border-box\",\n\t\t\t\t\t\tw...
[ "0.59939694", "0.5898029", "0.5847826", "0.576791", "0.5763554", "0.5744956", "0.5724416", "0.56929773", "0.5654271", "0.5625194", "0.5547685", "0.55146396", "0.55146396", "0.5496729", "0.5496729", "0.5484163", "0.5484163", "0.5478884", "0.5473956", "0.5444215", "0.5439169", ...
0.0
-1
Creates the popup for managing points, and binds the relevant events
function createPopup () { var popup = $('<div id="' + popupId + '"><div class="marker-points"></div><div class="marker-button-wrapper"><button class="marker-button-download">Download Points</button><button class="marker-button-clear">Clear Points</button></div></div>'); $("body").append(popup); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boundMouseEventToPoints() {\n // need to preserve context.\n let resizeCircle = this.resizeCircle;\n let hidePrompt = this.hidePrompt;\n let showPrompt = this.showPrompt;\n\n this.layer\n .selectAll(\"circle\")\n .on(\"mouseenter\", function (d) {\n ...
[ "0.6337076", "0.6229013", "0.61711824", "0.61283624", "0.6112095", "0.60947996", "0.6048443", "0.60430735", "0.60233665", "0.6022172", "0.59936243", "0.59788465", "0.5967474", "0.59594053", "0.59254134", "0.5859034", "0.5855928", "0.5853086", "0.5841974", "0.5834865", "0.5798...
0.6832279
1
Creates the csv file that users can save
function exportFileHandler () { var lat, lon, url, notes; var SEP = "|"; var i; var csvContent = 'sep=' + SEP + '\n'; csvContent += 'lat' + SEP + 'long' + SEP + 'google maps link' + SEP + 'notes\n'; for (i = 0; i < points.length; i++) { lat = points[i].lonlat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exportDataToCSV () {\n let csv = getCSVData();\n let degree = getCareerName().match(/\\(([^)]+)\\)/)[1];\n\n let date = new Date();\n let month = (\"0\" + (date.getMonth() + 1)).slice(-2);\n let year = date.getFullYear();\n\n let link = document.createElement('a');\n let blob = new Bl...
[ "0.7424487", "0.7072005", "0.6976967", "0.6973393", "0.6960402", "0.6900615", "0.687659", "0.6856965", "0.68004185", "0.67420197", "0.6713731", "0.6699917", "0.6676283", "0.66663545", "0.6597735", "0.65750873", "0.6570603", "0.6554137", "0.6479625", "0.64744616", "0.6445256",...
0.6413028
24
Creates the google maps url that lets the user get directions to their selections
function makeMapUrl (lat, lon) { var ZOOM = "12z"; var degMinSec = getDegMinSec(lat, "lat") + "+" + getDegMinSec(lon, "lon"); return 'https://www.google.com/maps/place/' + degMinSec + '/@' + lat + ',' + lon + ',' + ZOOM; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function urlToNavMap(){\n\n var information = document.getElementById(\"distance\");\n try {\n var destinationCoord = getDirectionCoordinate();\n var originCoord = getCurrentPosition();\n if(destinationCoord == NULL || originCoord == NULL){\n throw \"destinationCoord or originCoord is null.\";\n ...
[ "0.72387457", "0.7170822", "0.714265", "0.69240016", "0.6871946", "0.6870998", "0.6693894", "0.6614061", "0.66138005", "0.65664357", "0.65473884", "0.65450567", "0.65409315", "0.6540268", "0.65396684", "0.6524702", "0.6507635", "0.6497732", "0.6488729", "0.64883757", "0.64500...
0.660719
10
Converts decimal lon/lat to deg/min/sec
function getDegMinSec (value, type) { var direction; if (type === "lat" && value >= 0) { direction = "N"; } else if (type === "lat" && value < 0) { direction = "S"; } else if (type === "lon" && value >= 0) { direction = "E"; } else if (type ===...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function degToDMS(latDeg, lonDeg)\n{\n\t//latitude\n\tvar ddLat = ~~(latDeg);\n\tvar mmLat = ~~((latDeg - ddLat) * 60);\n\tvar ssLat = ~~((((latDeg - ddLat) * 60) - mmLat) * 60);\n\t\n\t\n\t//formatting\n\tif(ssLat <= -0.01)\n\t{\n\t\tmmlat = mmLat - 1;\n\t\tssLat = ssLat + 60;\n\t}\n\tif( ssLat >= 60 )\n\t{\n ...
[ "0.71168035", "0.71075606", "0.6899321", "0.6882447", "0.6872515", "0.6872515", "0.6824259", "0.66741014", "0.6613731", "0.65672827", "0.6507873", "0.6507263", "0.648883", "0.64747155", "0.64738864", "0.63963693", "0.63835764", "0.63358426", "0.63192356", "0.6315382", "0.6302...
0.6912204
3
Gets the value of the notes field for a point
function getNotes (index) { if (typeof ga !== 'undefined') { var label = $(".marker-point-item").eq(index).find(".marker-point-notes").val(); ga('send', { 'hitType': 'event', // Required. 'eventCategory': 'User Generated Points', // Required. 'eventAction':...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get point() {}", "get note() {\n\t\treturn this.__note;\n\t}", "get note() {\n\t\treturn this.__note;\n\t}", "get note() {\n\t\treturn this.__note;\n\t}", "get note () {\n\t\treturn this._note;\n\t}", "get note () {\n\t\treturn this._note;\n\t}", "get note () {\n\t\treturn this._note;\n\t}", "get not...
[ "0.65169525", "0.6063381", "0.6063381", "0.6063381", "0.6048816", "0.6048816", "0.6048816", "0.6048816", "0.58511263", "0.58427495", "0.57574594", "0.57465696", "0.57465696", "0.57465696", "0.57433134", "0.57021093", "0.5702071", "0.5701841", "0.563354", "0.5579477", "0.55676...
0.6763394
1
Removes the points from the map and removes the metadata for each point
function clearPointsHandler () { var i; for (i = 0; i < points.length; i++) { removeLayer(points[i].layer); } $(".marker-point-item").off("mouseenter", handlePointHoverEnter) .off("mouseleave", handlePointHoverLeave); if (typeof ga !== 'undefined') { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CleanMap() {\n\tRemoveMarkers();\n\tRemovePolylines();\n}", "async removeMapData() {\n\n\t\tawait Utils.applyFunctoDataArray(Object.keys(this.layerIds), this.map.removeLayer);\n\n\t\tthis.layerIds = {};\n\n\t\tawait Utils.applyFunctoDataArray(Object.keys(this.sourceIds), this.map.removeSource);\n\n\t\tt...
[ "0.71521765", "0.71157", "0.69653344", "0.69626063", "0.6925466", "0.67697513", "0.67585135", "0.6673719", "0.6616144", "0.6612168", "0.6608779", "0.6566762", "0.65628856", "0.6549717", "0.6547263", "0.6547263", "0.65443194", "0.6543979", "0.6539693", "0.6527172", "0.65086484...
0.65485865
15
Helper function that removes a layer from the map
function removeLayer (layer) { app.map.removeLayer(layer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeLayer() {\n map.removeLayer(tcLayer);\n}", "removeLayer (layer, map) {\n if (layer) {\n map.removeLayer(layer)\n map.closePopup()\n }\n }", "function remMapLayer(layer) {\r\n if (map.getLayer(layer)) {\r\n map.removeLayer(layer);\r\n }\r\n if (map.getSource(layer)) {\r\n ...
[ "0.8360916", "0.80990195", "0.80173147", "0.7917768", "0.7882414", "0.78456473", "0.7800587", "0.7782454", "0.77244014", "0.76029015", "0.7484775", "0.74041224", "0.7400247", "0.7398922", "0.7396791", "0.7318902", "0.7294919", "0.7274544", "0.72683156", "0.72670174", "0.72607...
0.81948954
2
When a mask grouper is enabled this function removes any modifiers from its children. When a mask grouper is disabled the function reenables any modifiers that were disabled.
function handleMaskModifierGroup(parent, disabled) { var app = this; var children = $("[data-mask-parent='" + parent + "']"); var child; var name; var index; var i; for (i = 0; i < children.length; i++) { child = children[i]; if (disabled ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "remove() {\n // unmask all targets\n this.targets().forEach(function (el) {\n el.unmask();\n }); // remove mask from parent\n\n return super.remove();\n }", "clearGroupers() {\n const me = this,\n { groupers } = me;\n\n if (groupers.length) {\n groupers.length = 0;\n ...
[ "0.5835064", "0.5542139", "0.5419969", "0.5334452", "0.52482575", "0.5190537", "0.51796174", "0.5174852", "0.51577044", "0.5156274", "0.51540065", "0.5128103", "0.51259804", "0.5088676", "0.50262064", "0.5021623", "0.5013607", "0.5010498", "0.49357197", "0.49277794", "0.48910...
0.7157024
0
jdm: 11/2712/5/14 rewrote to use Mask object, doing things in a more object oriented fashion!
function setMaskByMask (toggle, maskName) { var Layer = require("./layer.js")($, this); var app = this; var maskParentLayers = app.maskParentLayers; var maskParentLayer, maskLayer; var i; var maskId = "#" + maskName.replace("MaskFor", ""); $(maskId).get(0).chec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static GetMask() {}", "function makeMasks(){\n/* 559 */ \t\t//se existir mascaras\n/* 560 */ \t\tif ($.fn.mask){ \n/* 561 */ \t\t\t//definicoes\n/* 562 */ \t\t\t$.mask.definitions['0']='[0]';\n/* 563 */ \t\t\t$.mask.definitions['1']='[01]';\n/* 564 */ \t\t\t$.mask.definitions['2']='[012]';\n/* 565 */ \t\t...
[ "0.75036734", "0.7307194", "0.70722526", "0.6809741", "0.6718438", "0.6711876", "0.668217", "0.65815055", "0.6543098", "0.6505159", "0.6480881", "0.64675415", "0.64675415", "0.64620227", "0.6436973", "0.64110535", "0.6408591", "0.6372476", "0.63393426", "0.63388443", "0.63300...
0.5777595
70
endregion region withMainLayout HOC
function withMainLayout() { return BaseComponent => { // #region returned Component class WithMainLayout extends Component<Props, State> { state = { appName: APP_NAME, drawerOpened: false, drawerMenus: menus, }; // #region lifecycle componentDidMount() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CreateMainLayout()\r\n{\r\n //Create main layout.\r\n layMain = app.CreateLayout( \"Linear\", \"FillXY\" );\r\n layMain.SetBackColor(\"#ff000000\");\r\n \r\n //Create horizontal layout for top bar.\r\n layHoriz = app.CreateLayout( \"Linear\", \"Horizontal,FillX,Left,VCenter\" );\r\n l...
[ "0.682875", "0.6567193", "0.65312344", "0.65312344", "0.65312344", "0.64779216", "0.64263654", "0.64246166", "0.633408", "0.62241113", "0.61677355", "0.61207455", "0.6107683", "0.6097292", "0.6058889", "0.6058889", "0.59847975", "0.59773797", "0.59117067", "0.59014136", "0.58...
0.59949213
16
Start of the game
function start(){ for (var i = 0; i < randomword.length; i ++){ answerArray[i] = "_" } // s = answerArray.join(' ') // document.getElementById('currentword').innerHTML = s }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start(){\n\t\t //Initialize this Game. \n newGame(); \n //Add mouse click event listeners. \n addListeners();\n\t\t}", "function startGame() { }", "function start()\r\n{\r\ninit();\r\ngame.start();\r\n}", "start() {\n\t\tthis.emit(\"game_start\");\n\t}", "funct...
[ "0.840874", "0.83483547", "0.83385265", "0.81848526", "0.8173178", "0.8083249", "0.8072973", "0.807009", "0.8056294", "0.7990266", "0.79834735", "0.79591787", "0.7935551", "0.7932795", "0.7890165", "0.78738344", "0.7869095", "0.78624445", "0.7853864", "0.78521156", "0.7851021...
0.0
-1
private user : TwitterUser;
constructor(options) { super(options); this.token = options.token; this.last_update_id = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor(twitterConfig) {\r\n this.tweetsArray = [];\r\n this.T = new Twit(twitterConfig);\r\n this.userid = '';\r\n }", "authorizedUser(user) { \n this.user = user;\n }", "function User(){\n\n}", "get user() {\n return this._user;\n }", "function User(username, email){\n this.user...
[ "0.6725348", "0.63141656", "0.6269702", "0.62541705", "0.62377137", "0.61856085", "0.6132228", "0.60920477", "0.6087365", "0.6052521", "0.60358644", "0.60199517", "0.59804356", "0.59605956", "0.5940903", "0.5912052", "0.5907582", "0.59028393", "0.5847882", "0.58359826", "0.58...
0.0
-1