query stringlengths 9 14.6k | document stringlengths 8 5.39M | metadata dict | negatives listlengths 0 30 | negative_scores listlengths 0 30 | document_score stringlengths 5 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|
Generate project activity for all members of an array | createActivityForAllMembers (body) {
let where = helper.Request.urlFromObject({projectId: body.projectId})
return Api.post(url + 'create_mha_from_array' + where, body).then(res => res.data)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getActivitiesMembers(activities, persons) {\n let result = [];\n for (let i = 0; i<activities.length; i+=1){\n let variab = sport(persons, activities[i])\n console.log(variab);\n result.push(variab);\n }\n return result\n}",
"function getProjectActivity(projectList, maxActivity) {\n if (... | [
"0.5764913",
"0.57013243",
"0.53353685",
"0.5302484",
"0.5212451",
"0.5202522",
"0.51358783",
"0.50996846",
"0.5069699",
"0.50450367",
"0.5039246",
"0.50256443",
"0.4960009",
"0.49303836",
"0.49229363",
"0.48761067",
"0.48662302",
"0.48585075",
"0.48570555",
"0.48399478",
"0.... | 0.6081712 | 0 |
getOverload is encapsulated, because of cldr/unresolved. If it's loaded after cldr/event (and note it overwrites .get), it can trigger this overload again. | function getOverload() {
/**
* Overload Cldr.prototype.get().
*/
superGet = Cldr.prototype.get;
Cldr.prototype.get = function(path) {
var value = superGet.apply(this, arguments);
path = pathNormalize(path, this.attributes).join("/");
globalEe.trigger("get", [path, value]);
this.ee.trigger("g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getOverload() {\n\n\t\t/**\n\t\t * Overload Cldr.prototype.get().\n\t\t */\n\t\tsuperGet = Cldr.prototype.get;\n\t\tCldr.prototype.get = function( path ) {\n\t\t\tvar value = superGet.apply( this, arguments );\n\t\t\tpath = pathNormalize( path, this.attributes ).join( \"/\" );\n\t\t\tglobalEe.trigger( \"g... | [
"0.7978179",
"0.7978179",
"0.7978179",
"0.6113539",
"0.5787677",
"0.56776416",
"0.5653535",
"0.51338273",
"0.5017334",
"0.50099117",
"0.49801072",
"0.49656457",
"0.49512815",
"0.49398646",
"0.49398646",
"0.4934554",
"0.49300164",
"0.49034756",
"0.48709232",
"0.48669088",
"0.4... | 0.8021137 | 0 |
You can loop from one end of the array to the other. For example: if arr is the array [1, 3, 4, 2] then you can choose the second element which is the number 3, and if you count 3 places to the left you'll loop around the array and end up at the number 4. Then you swap these elements and arr is then [1, 4, 3, 2]. From ... | function switchSort(arr) {
let count = 0;
while (!isSorted(arr)) {
for (let i = 1; i < arr.length; ++i) {
if (arr[i - 1] != i) {
const focusIndex = findIndex(arr, i);
if (mod(focusIndex - i, arr.length) == i - 1 || mod(focusIndex + i, arr.length) == i - 1) {
count += swapAndCount... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"step(arr) {\n this.begin = true;\n let swapped = [];\n if (this.j <= 0) {\n this.j = ++this.i;\n }\n\n // done sorting\n if (this.i == arr.length) {\n this.done = true;\n return [this.i - 1];\n }\n\n // comparing two algorithm... | [
"0.7463712",
"0.74160004",
"0.7345579",
"0.72736484",
"0.72411424",
"0.717186",
"0.70673466",
"0.70464087",
"0.683553",
"0.6813187",
"0.6810559",
"0.6745489",
"0.67354554",
"0.671855",
"0.66773564",
"0.6650501",
"0.66447794",
"0.664343",
"0.663369",
"0.6630486",
"0.6617316",
... | 0.79122204 | 0 |
Functions function for getting comparing index | function getComparingIndex(firstNum, secondNum) {
if (firstNum < secondNum) {
return -1;
} else if (firstNum > secondNum) {
return 1;
} else {
return 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function lirads_compare_index(a,b) {\n var ia = parseInt(radlibs_get_path(a,'ix','0'));\n var ib = parseInt(radlibs_get_path(b,'ix','0'));\n return ia - ib;\n} // radlibs_compare_ix",
"function compare(a, b) {\n if (a.index < b.index)\n return -1;\n else (a.index > b.index)\n ... | [
"0.74966997",
"0.6917969",
"0.6917969",
"0.6810101",
"0.65042967",
"0.6502918",
"0.6471116",
"0.637679",
"0.63368285",
"0.62788707",
"0.62582797",
"0.62576437",
"0.6252704",
"0.62219405",
"0.6220851",
"0.61952317",
"0.61935294",
"0.6172574",
"0.6161595",
"0.6155324",
"0.61242... | 0.69431126 | 1 |
check on perfect number | function checkPerfectNumber(number) {
let temp = 0;
for (let i = 1; i <= number / 2; i++) {
if (number % i === 0) {
temp += i;
}
}
if (temp === number && temp !== 0) {
return true//'It is a perfect number.';
}
else {
return false //'It is not a perfect number.';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isPerfectNumber(number){\n var sum = 0;\n for(var i = 1; i < number; i++){\n if(number % i == 0){\n sum += i;\n }\n } \n if(sum == number){\n console.log(number + ' is perfect number!');\n }else{\n console.log(number + ' is not perfect number!');\n ... | [
"0.7717296",
"0.75947464",
"0.75679",
"0.7553892",
"0.739611",
"0.7220222",
"0.6966952",
"0.69400436",
"0.68731254",
"0.6853206",
"0.68043673",
"0.6798682",
"0.6792384",
"0.678481",
"0.6560558",
"0.65277237",
"0.64771867",
"0.6469552",
"0.6445231",
"0.6425756",
"0.6425231",
... | 0.82630396 | 0 |
4) Private methods (currently NOT working) approveLoan(val) | _approveLoan(val) {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"#approveLoan(val) {\n return true;\n }",
"approve(result) { }",
"function applyLoan() {\n\n // Check Whether User Has Loan\n if (hasActiveLoan === false) {\n\n // How Much Loan Do User Want\n const amountUserWant = prompt(\"What is your name?\");\n console.log(amountUserWant)\n\n... | [
"0.8188213",
"0.68975586",
"0.6719929",
"0.6407085",
"0.63821316",
"0.6341309",
"0.6313328",
"0.6256339",
"0.6205597",
"0.60691935",
"0.60643184",
"0.6035222",
"0.60314476",
"0.6023787",
"0.5997261",
"0.59849787",
"0.5972333",
"0.59588826",
"0.5956971",
"0.59501785",
"0.59194... | 0.850207 | 0 |
Generate pipes for the game; reuses dead objects to reduce load on browser | function generatePipes(context) {
while (activePipes.length < 10) {
// bitwise 0 to get the actual integer not floating
var height = context.canvas.height - floorHeight;
var pipeOneHeight = Math.random() * (height - 250) + 100 | 0; // 350
var pipeTwoHeight = heigh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function generatePipes () {\n pipeY = game.rnd.integerInRange(-100, 100);\n pipeGroup = pipes.getFirstExists(false);\n if (!pipeGroup) {\n pipeGroup = game.add.group(pipes);\n\n topPipe = pipeGroup.create(0, 0, 'pipe');\n topPipe.frame = 0;\n\n topPipe.anchor.setTo(0.5, 0.5);\n game.physics.arcad... | [
"0.799883",
"0.7873295",
"0.7450264",
"0.7403702",
"0.7116279",
"0.67539924",
"0.6322746",
"0.6255337",
"0.62330997",
"0.6232851",
"0.6211992",
"0.62034637",
"0.61090803",
"0.60829926",
"0.6021102",
"0.60158515",
"0.5947892",
"0.5889495",
"0.5878639",
"0.5865521",
"0.5816565"... | 0.80765265 | 0 |
Function to recycle "dead" pipes | function killPipe() {
if (activePipes[0].aabb.x <= 0 - activePipes[0].aabb.w) {
// GC flag to deallocate memory
//activePipes[0] = null;
//activePipes[1] = null;
// different approach; splice the "dead" arrays and persist them
// for later... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function destoryPool (){\n myPool.drain().then(function() {\n myPool.clear();\n });\n}",
"function clearPipes(event) {\n if(event) {\n delete pipes[event];\n } else {\n pipes = {};\n }\n }",
"function cleanup(){source.removeListener('da... | [
"0.59334445",
"0.588376",
"0.56633776",
"0.56633776",
"0.56633776",
"0.56633776",
"0.5633178",
"0.54963106",
"0.5485496",
"0.5485496",
"0.5485496",
"0.5485496",
"0.54833543",
"0.5444412",
"0.5405081",
"0.5371266",
"0.536411",
"0.5358781",
"0.5358781",
"0.5295011",
"0.52687347... | 0.6334027 | 0 |
Get keyboard key by code | static key(code) {
return Object.key(Keyboard.keys, code).toLowerCase();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function mapKeyCode(code) {\n\t\tvar named = {\n\t\t\t8: 'BACKSPACE',\n\t\t\t9: 'TAB',\n\t\t\t13: 'ENTER',\n\t\t\t16: 'SHIFT',\n\t\t\t27: 'ESCAPE',\n\t\t\t32: 'SPACE',\n\t\t\t37: 'LEFT',\n\t\t\t38: 'UP',\n\t\t\t39: 'RIGHT',\n\t\t\t40: 'DOWN'\n\t\t};\n\t\treturn named[code] || (code >= 65 && code <= 90 ? String.fro... | [
"0.76641953",
"0.7124572",
"0.7093228",
"0.70182437",
"0.69682395",
"0.68339086",
"0.6832286",
"0.6828581",
"0.67924726",
"0.67790806",
"0.66859764",
"0.6667956",
"0.6597656",
"0.6567297",
"0.6561897",
"0.65297335",
"0.6486949",
"0.6467545",
"0.64509237",
"0.6436835",
"0.6401... | 0.7972189 | 0 |
add a bound column to the sheet | function bindColumn(sheet, index) {
var columnWraper = sheet._columnDefs[index];
// bind column
if (columnWraper.dataField || columnWraper.headerText) {
sheet.bindColumn(index, {
name: columnWraper.dataField... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"addColumn(column) {\n this.items.push(column);\n }",
"addColumn(val) {\n this.props.addColumn(val);\n this.setState({\n newColumn: false\n });\n }",
"function addColumn(row) {\n\n var gridSize = 0;\n for (var i = 0; i < row.cols.length; i++) {\... | [
"0.6988161",
"0.67470294",
"0.6724448",
"0.6682792",
"0.6640929",
"0.6625727",
"0.66220784",
"0.64489454",
"0.6361369",
"0.6347397",
"0.63391685",
"0.6303077",
"0.6292851",
"0.6283649",
"0.62655485",
"0.6230037",
"0.6212841",
"0.61929685",
"0.618572",
"0.61743164",
"0.6167354... | 0.7149209 | 0 |
Disable animated button by setting a class | function disableAnimatedButton($el) {
$el.data({ status: false });
$el.addClass("disabled");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"_disableAnimation() {\n this.isAnimatable = false;\n toggleClass(this.navEl, 'no-animation', !this.isAnimatable);\n }",
"function buttonOff(obj) {\n obj.disabled = true;//disable passed obj\n setTimeout(function() {\n obj.disabled = false;\n }, 8000);//wait for animation and then re-enable the obj\n... | [
"0.72898346",
"0.7073032",
"0.6860501",
"0.6773993",
"0.67141134",
"0.6709297",
"0.6650478",
"0.66305196",
"0.6597697",
"0.6587229",
"0.65805155",
"0.6554605",
"0.6532449",
"0.65259343",
"0.6521101",
"0.64950854",
"0.64753866",
"0.6464691",
"0.6426255",
"0.6418318",
"0.641718... | 0.7812101 | 0 |
unchecks checkbox with class= cb when another is checked | function cbChange(obj) {
var instate=(obj.checked);
var cbs = document.getElementsByClassName("cb");
for (var i = 0; i < cbs.length; i++) {
cbs[i].checked = false;
}
if(instate)obj.checked = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function deselectCBs() {\n d3.selectAll('.type-checkbox')\n .property('checked', false)\n update();\n d3.select('.kasiosCheckbox')\n .property('checked', false)\n kasios_update();\n}",
"function uncheck() {\n document.querySelector(\"#mcp1\").checked = false;\n document.qu... | [
"0.7562659",
"0.7039141",
"0.6816912",
"0.67496836",
"0.6710717",
"0.6691638",
"0.66240305",
"0.65958005",
"0.6566145",
"0.6476336",
"0.64731604",
"0.6462076",
"0.6453929",
"0.64441967",
"0.64279824",
"0.6414882",
"0.64092946",
"0.63912064",
"0.63450634",
"0.6277999",
"0.6268... | 0.75646764 | 0 |
2. "WeIrD StRiNg CaSe Write a function toWeirdCase (weirdcase in Ruby) that accepts a string, and returns the same string with all even indexed characters in each word upper cased, and all odd indexed characters in each word lower cased. The indexing just explained is zero based, so the zeroith index is even, therefore... | function toWeirdCase(str) {
const wordToWeirdCase = (word) => word.split('').map((element, inx) => (
inx % 2 ? element.toLowerCase() : element.toUpperCase()
)).join('')
return str.split(' ').map(wordToWeirdCase).join(' ');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function toWeirdCase(string){\n\n let strLength;\n let words, word, character, characters;\n strLength = string.length; // number of chars in the overall string\n words = string.split(' '); // split the string into words => array\n console.log(strLength);\n console.log(words);\n \n for(let i = 0; i <... | [
"0.8260401",
"0.81613743",
"0.8083232",
"0.80750126",
"0.8041323",
"0.7956904",
"0.79145104",
"0.7785803",
"0.7578882",
"0.74219614",
"0.73996425",
"0.72831684",
"0.7232528",
"0.7169134",
"0.7163882",
"0.71489716",
"0.7143984",
"0.71437514",
"0.7131262",
"0.71247476",
"0.7103... | 0.8449598 | 0 |
3. The Poet And The Pendulum Given an array/list [] of n integers , Arrange them in a way similar to the toandfro movement of a Pendulum The Smallest element of the list of integers , must come in center position of array/list. The Higher than smallest , goes to the right . The Next higher number goes to the left of mi... | function pendulum(arr) {
arr.sort((a,b) => a - b);
const result = [arr.shift()];
arr.forEach((element, inx) => {
if (inx % 2) {
result.unshift(element)
} else {
result.push(element)
}
});
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ptheorem(arr) {\n // Find the shortest gap\n const sorted = arr.sort();\n\n // for (let i = 0; i < sorted.length; i++) {\n // let a = sorted[i];\n // let b = sorted[i + 1];\n // let c = sorted[i + 2];\n\n // }\n}",
"function answerToSolution(list){\n let priorArray = []\n let solution... | [
"0.62774384",
"0.57060945",
"0.5691767",
"0.5671634",
"0.5662716",
"0.5650876",
"0.5624855",
"0.55493915",
"0.5546886",
"0.55440545",
"0.55430603",
"0.5529578",
"0.5462449",
"0.545454",
"0.5439779",
"0.5437656",
"0.54185015",
"0.5411312",
"0.5409029",
"0.540764",
"0.54069114"... | 0.65129155 | 0 |
Check if we can use power capabilities | hasPowerCapabilities() {
return this.capabilities.power && !this.viewOnly
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async canPowBeDone() {\n await this.iotaMultiNode.findPowServer();\n var powServer = this.iotaMultiNode.selectPowServers();\n if (!powServer[0]) {\n this.emitError(codes.NO_POW_SERVER_AVAILABLE)\n return false;\n }\n return true;\n }",
"supportsOutletPo... | [
"0.6322987",
"0.6131298",
"0.60854983",
"0.599133",
"0.5969836",
"0.59275377",
"0.59017164",
"0.5897696",
"0.5871475",
"0.5863284",
"0.5858417",
"0.5818752",
"0.5818752",
"0.5818752",
"0.5818752",
"0.581462",
"0.57846045",
"0.57846045",
"0.57846045",
"0.57846045",
"0.5784328"... | 0.8329921 | 0 |
///////// StatisticalAverage interface //////////// /////////////////////////////////////////////////////// With the 'number' parameter you define how many values you want For example if type is month and number is 2, you want the values of 2 months starting at the date you enter in the 'start' parameter | async function getStatisticalAverage(type, start, number) {
for (let i = 0; i < number; i++) {
let query = createQueryString(start, type, i);
let data = await executeRequest('http://server-cache/StatisticalAverage/fragment' + query);
let result = await new Promise(resolve => {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"avg() {}",
"average() {\n\n }",
"avg() {\n\t\tlet argArr = this.args;\n\t\tfunction avgSet(s,c,f) {\n\t\t\taverage: s;\n\t\t\tceiling: c;\n\t\t\tfloor: f;\n\t\t}\n\t\tlet evaluate = function() {\n\t\t\tlet sum = 0;\n\t\t\tfor(let c=0;c<argArr.length;c++) {\n\t\t\t\tsum += argArr[c];\n\t\t\t}\n\t\t\tsum /= arg... | [
"0.6478315",
"0.6410749",
"0.6178421",
"0.6127182",
"0.60919183",
"0.6050242",
"0.5981181",
"0.5970997",
"0.59099007",
"0.5902179",
"0.5858004",
"0.5847661",
"0.5842041",
"0.5818264",
"0.5801257",
"0.57704234",
"0.5715688",
"0.5711286",
"0.56727433",
"0.56663716",
"0.5665339"... | 0.6527497 | 0 |
returns the covariance of X and Y | function cov( x, y, size){
var sum=0;
for(var i=0;i<size;i++){
sum+=x[i]*y[i];
}
sum/=size;
// var avg1 = avg(x,size);
// var avg2 = avg(y,size);
// var avgMult = avg1 * avg2;
// var total = sum - avgMult;
//console.log("cov : " + (sum - avg(x,size)*avg(y,size)))
return sum - avg(x,size)*avg(y,s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function sample_covariance(x, y) {\n\n // The two datasets must have the same length which must be more than 1\n if (x.length <= 1 || x.length != y.length){\n return null;\n }\n\n // determine the mean of each dataset so that we can judge each\n // value of the dataset f... | [
"0.7466194",
"0.74561894",
"0.74561894",
"0.6513835",
"0.6031313",
"0.5790701",
"0.57707846",
"0.57707846",
"0.57707846",
"0.5548686",
"0.52742213",
"0.5263832",
"0.52053344",
"0.50771266",
"0.50699353",
"0.49976018",
"0.49296066",
"0.49053842",
"0.4896059",
"0.48721334",
"0.... | 0.75825846 | 0 |
returns the deviation between point p and the line equation of the points | function dev( p, points, size){
var l=linear_reg(points,size);
return deviation(p,l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"dev(p, points, size) {\r\n let l = this.linear_reg(points, size);\r\n return this.dev2(p, l);\r\n }",
"dev2(p, l) {\r\n return Math.abs(parseFloat(p.y) - parseFloat(l.f(parseFloat(p.x))));\r\n }",
"function d3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}",
... | [
"0.69776595",
"0.68261874",
"0.67622465",
"0.67622465",
"0.67622465",
"0.66832393",
"0.66832155",
"0.6622125",
"0.6602302",
"0.6421268",
"0.63966835",
"0.6248964",
"0.6220598",
"0.6219601",
"0.61548287",
"0.61449546",
"0.61443436",
"0.6126089",
"0.60929495",
"0.60667187",
"0.... | 0.75986195 | 0 |
API CALLS AND EXTERNAL QUERIES This is a retry function to avoid stalling out when server errors happen URL is the fetch URL and n is the number of retries that we want to do before failing it | function fetch_retry(url, n) {
return fetch(url).catch(function(error) {
console.log("Failed request. Trying again");
if (n === 1) throw error;
return fetch_retry(url, n - 1);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function fetch_retry(url, n) {\n return fetch(url).catch(function(error) {\n if (n === 1) throw error;\n return fetch_retry(url, n - 1);\n })\n}",
"function fetchRetry(url, n = 1) {\n const message = fetch(url)\n .then(response => {\n return response.json()\n })\n .catch(error ... | [
"0.82920516",
"0.811377",
"0.7508343",
"0.6527922",
"0.65000576",
"0.6460109",
"0.6450137",
"0.63797605",
"0.6294838",
"0.6294838",
"0.6260966",
"0.6260966",
"0.62164044",
"0.62093186",
"0.6181859",
"0.61010414",
"0.60968465",
"0.6015755",
"0.6005624",
"0.59950477",
"0.598567... | 0.8366744 | 0 |
Queries the top 1000 players in the game (within last 10 minutes) | function queryPlayers() {
// Admin log to ensure function is called
console.log("Querying top players...");
return fetch_retry(STORE.apiUrl + "players", 3)
.then(res => {
if(res.ok){ return res.json() }
else { // insert 3 attempt call here then throw catch
}
})
.then(playerTags => {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getTopPlayers(n){\n return client({\n method: 'GET',\n path: PLAYER_SEARCH_ROOT+\"getAllByOrderByEloDesc\",\n params: {\n page: 0,\n size: n\n }\n })\n }",
"function getTopTen () {\n var promises = [], promise;\n for (pl... | [
"0.7129661",
"0.706052",
"0.69319904",
"0.63237107",
"0.6238021",
"0.62363297",
"0.6222766",
"0.6216712",
"0.6167121",
"0.6134626",
"0.60929996",
"0.60853285",
"0.6079949",
"0.59790283",
"0.59587663",
"0.59369844",
"0.59025806",
"0.5874154",
"0.5830941",
"0.58179796",
"0.5817... | 0.73919046 | 0 |
Queries an individual player's last 25 battles | function queryPlayerData(player){
// Admin log to ensure function is called
console.log("Querying player " + player + "...");
return fetch_retry(STORE.apiUrl + "battles/" + player, 3)
.then(res => {
if(res.ok){
console.log(`Player ${player} data returned`);
return res.json()
}
else { //... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function queryPlayers() {\r\n\t// Admin log to ensure function is called\r\n\tconsole.log(\"Querying top players...\");\r\n\treturn fetch_retry(STORE.apiUrl + \"players\", 3)\r\n\t\t\r\n\t\t.then(res => { \r\n\t\t\tif(res.ok){ return res.json() }\r\n\t\t\telse { // insert 3 attempt call here then throw catch\r\n\t... | [
"0.60017234",
"0.54580104",
"0.5455575",
"0.5423763",
"0.5415644",
"0.5415644",
"0.53657573",
"0.5321705",
"0.5250854",
"0.5223461",
"0.5178056",
"0.5175738",
"0.51695985",
"0.51465565",
"0.51401824",
"0.5122338",
"0.5119105",
"0.51105034",
"0.5082068",
"0.5066299",
"0.506414... | 0.58015925 | 1 |
A slideshow component, which takes an array of slide objects and is controlled by left and right arrow buttons. | function Slider( {slides} ) {
const [currentSlide, setSlide] = useState(0);
return (
<Slide image={slides[currentSlide].image || ''}>
<Content content={(({image, ...elems}) => ({...elems}))(slides[currentSlide])} />
<LeftButton onClick={() => setSlide((currentSlide+slides.length-1)%s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function leftArrowHandle(){\n let new_val = slides[slides.length - 1].props.slideNum + slides_count -1\n if (new_val > slides_arr.length-1) new_val = new_val - slides_arr.length\n if (slides_count ===1){\n new_val = slides[0].props.slideNum -1\n if (new_val < 0) new_val =... | [
"0.7145541",
"0.6891982",
"0.6727427",
"0.6676023",
"0.6607681",
"0.6591431",
"0.6572533",
"0.65410763",
"0.6461293",
"0.64390486",
"0.64213747",
"0.64212227",
"0.6418264",
"0.6389319",
"0.6388856",
"0.63537943",
"0.63263196",
"0.6290599",
"0.6288982",
"0.6283082",
"0.6264489... | 0.72051626 | 0 |
Setup the physics body. This is part of the PhysicsSprite. | setupBody () {
let options = {
isSleeping: true,
mass: 1,
inertia: 0,
friction: 0,
restitution: 1,
frictionStatic: 0,
frictionAir: 0,
}
this.body = this.PhysicsManager.circle(this._x, this._y, this._width / 2, options)
this.body.label = Object.getPr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"setupBody () {\r\n let options = {\r\n isStatic: true,\r\n restitution: 1.5\r\n }\r\n this.body = this.PhysicsManager.rectangle(this._x, this._y, this._width, this._height, options)\r\n this.body.label = Object.getPrototypeOf(this).constructor.name\r\n this.PhysicsManager.add(this.body)\r\... | [
"0.75103456",
"0.6559855",
"0.6494963",
"0.6477398",
"0.6425267",
"0.64016044",
"0.6330774",
"0.6319012",
"0.6250509",
"0.6241906",
"0.62084013",
"0.61846924",
"0.60881597",
"0.6082942",
"0.60590976",
"0.60227627",
"0.6012951",
"0.5992457",
"0.5985621",
"0.5983769",
"0.597788... | 0.75563854 | 0 |
Ecrire une fonction testNum qui prend en param un nombre et qui retourne une promise qui teste si le param est plus grand que 10. | function TestNum(nombre) {
return new es6_promise_1.Promise(function (resolve, reject) {
if (nombre > 10) {
resolve('Il est bien supérieur à 10.');
}
else {
reject("Le nombre n'est pas supérieur à 10.");
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function testNum(num) {\n return new Promise((resolve, reject) => {\n resolve(num > 10);\n });\n}",
"function _test(testQuantity) {\n return new Promise((resolve, reject) => {\n const percentages = {\n '0': 0,\n '1': 0,\n '2': 0,\n '3': 0,\n '4': 0,\n '5': 0,\n '6': 0,... | [
"0.7339562",
"0.6001116",
"0.592777",
"0.58537775",
"0.5746932",
"0.5699983",
"0.5696148",
"0.56894237",
"0.56853664",
"0.5499612",
"0.5485814",
"0.5483062",
"0.54617506",
"0.5461329",
"0.54582036",
"0.5457684",
"0.54509604",
"0.5385003",
"0.5377562",
"0.53739905",
"0.5368343... | 0.7714011 | 0 |
plays 5 rounds and displays scoreboard | function game(){
while(rounds<5){
const playerSelection = playerPLay();
const computerSelection = computerPlay();
console.log(playRound(playerSelection, computerSelection));
console.log("Scoreboard: Won: " + won + " Lost: " + lost + " Drawn: " + drawn );
rounds++;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function game() {\n\tlet playerWin = 0;\n\tlet computerWin = 0;\n\tlet playCount = 0;\n\n\tfor (i = 0; i < 5; i++) {\n\t\tplayerMove = playerPlay();\n\t\tcomputerMove = computerPlay();\n\t\troundResult = playRound(playerChoice, computerChoice);\n\n\t\tif (roundResult === \"win\") {\n\t\t\tplayerWin++;\n\t\t\tplayC... | [
"0.7568453",
"0.7459916",
"0.7452551",
"0.73880404",
"0.73463887",
"0.7331941",
"0.7284169",
"0.72814196",
"0.72393525",
"0.7216391",
"0.7208774",
"0.7204774",
"0.72002053",
"0.71985245",
"0.71707463",
"0.7131711",
"0.71008724",
"0.70881647",
"0.70834893",
"0.70623636",
"0.70... | 0.79272145 | 0 |
Search for a jupyterlab extension. | searchExtensions(query, page = 0, pageination = 250) {
const uri = new URL('/-/v1/search', this.repoUri);
// Note: Spaces are encoded to '+' signs!
let text = `${query} keywords:"jupyterlab-extension"`;
uri.searchParams.append('text', text);
uri.searchParams.append('size', pagein... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function load_extension() {\n Jupyter.notebook.config.loaded.then(initialize); // trigger loading config parameters\n\n //$.getJSON(\"https://single-cell-codesnippets.firebaseio.com/.json\", function(data) {\n //$.getJSON(Jupyter.notebook.base_url+\"nbextensions/snippets/snippets.json\", funct... | [
"0.5589481",
"0.549779",
"0.543312",
"0.5408971",
"0.5401967",
"0.52230155",
"0.52058613",
"0.51441205",
"0.51211727",
"0.5066152",
"0.50151545",
"0.49992064",
"0.4951105",
"0.4898156",
"0.48910674",
"0.48435673",
"0.48287198",
"0.48108643",
"0.4792785",
"0.4783093",
"0.47760... | 0.68053097 | 0 |
Check whether the NPM org is a Jupyter one. | function isJupyterOrg(name) {
/**
* A list of whitelisted NPM orgs.
*/
const whitelist = ['jupyterlab', 'jupyter-widgets'];
const parts = name.split('/');
const first = parts[0];
return (parts.length > 1 && // Has a first part
first && // with a finite length
first[0] === '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isNode() {\n return typeof module !== 'undefined' &&\n module.exports &&\n typeof window === 'undefined';\n}",
"function isNodeModule() {\n // $FlowFixMe - cannot resolve browser property for process.\n return process === \"undefined\" || !process.browser;\n}",
"function isNodeEnv()... | [
"0.6242763",
"0.6222397",
"0.62097293",
"0.61902446",
"0.61902446",
"0.6157371",
"0.6157371",
"0.61439127",
"0.614093",
"0.6098795",
"0.6062593",
"0.5948773",
"0.5915068",
"0.5894015",
"0.5884276",
"0.5860433",
"0.5854987",
"0.5854032",
"0.58436245",
"0.5833174",
"0.5827315",... | 0.7825496 | 0 |
set callback function for game over | setGameOverCallback (callback) {
this._gameOverCallback = callback;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"onGameOver(callback) {\n this.once(CONNECTION_CONSTANTS.GAME_OVER, callback);\n }",
"function gameOver(){\n \tconsole.log(\"game over\");\n \t_onGameOver();\n }",
"handleGameOverEvent() {\n \n }",
"gameOverAction() {\n\n }",
"function dys_ChecGameOver(){\r\n\t\r\n}... | [
"0.7981177",
"0.782457",
"0.7690606",
"0.7167705",
"0.7125457",
"0.696529",
"0.6905201",
"0.69042873",
"0.68912214",
"0.6870904",
"0.6845186",
"0.6843298",
"0.68205625",
"0.6802399",
"0.67699564",
"0.6748292",
"0.6747642",
"0.67295766",
"0.672367",
"0.67196065",
"0.67172205",... | 0.81952125 | 0 |
Check Accept in forms | function checkAccept(form) {
const checkbox = form.querySelector(".checkbox_js");
if(!checkbox){return};
const button = form.querySelector(".send_js");
checkbox.addEventListener("change",(e) => {
if(!checkbox.checked) {
button.setAttribute("disabled", "");
} else {
button.removeAttribute("d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function formAccept() {\n\tvar $checkboxAccept = $('.form-accept-js');\n\tif($checkboxAccept.length) {\n\t\t$checkboxAccept.change(function () {\n\t\t\tvar accept = $(this).prop('checked');\n\t\t\t$(this).closest('form').find('.form-accept-submit-js').prop('disabled', !accept);\n\t\t});\n\t\t$checkboxAccept.trigge... | [
"0.71870226",
"0.66666144",
"0.6554248",
"0.6537771",
"0.6512767",
"0.6482832",
"0.6474694",
"0.6472736",
"0.64094335",
"0.6403834",
"0.64035857",
"0.6340619",
"0.633412",
"0.6331698",
"0.6330356",
"0.63272375",
"0.63120806",
"0.6300469",
"0.6281423",
"0.6255286",
"0.62224025... | 0.6921092 | 1 |
We can make member accesses repeatable by making the base expression repeatable if it isn't already. | makeRepeatable(parens: boolean, ref: ?string=null) {
if (this.isRepeatable()) {
return super.makeRepeatable(parens, ref);
} else {
let expression = this.expression.makeRepeatable(true, 'base');
return `${expression}.${this.getFullMemberName()}`;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"isRepeatable(): boolean {\n return this.expression.isRepeatable();\n }",
"_thisIsAUsedExpression(getter) {}",
"_thisIsAUsedExpression(getter) {}",
"function appendToMemberExpression(member, append, computed) {\n\t member.object = t.memberExpression(member.object, member.property, member.computed);\n\t ... | [
"0.605714",
"0.5400006",
"0.5400006",
"0.53931254",
"0.53931254",
"0.53931254",
"0.53931254",
"0.5383081",
"0.5370956",
"0.5370956",
"0.5366718",
"0.5366718",
"0.53048104",
"0.53048104",
"0.52894485",
"0.5281938",
"0.5267954",
"0.5267954",
"0.5267954",
"0.5267954",
"0.5261742... | 0.6941381 | 0 |
var sparklesTweenArray = [[],[],[]]; | function buildSparkles(star, x, y, scale){
var i = Math.floor(random(5,15));
for(var j = 0; j < i; j ++){
var xPos = x + random(50, 80);
var yPos = y + random(-5, 40);
sparklesRingArray[star].push(createSparkleRing((xPos), (yPos), scale, 20));
sparkl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ParticleTween(timeArray, valueArray)\n{\n\tthis.times = timeArray || [];\n\tthis.values = valueArray || [];\n}",
"addList(instruments) {\n for (let j = 0; j < instruments.length; j++) {\n var buttonSubArray = new Array();\n var sequencerSubArray = new Array();\n ... | [
"0.59819585",
"0.5979912",
"0.59694463",
"0.5960118",
"0.5946081",
"0.5938869",
"0.5828264",
"0.5792583",
"0.5736248",
"0.5681408",
"0.5655503",
"0.5629792",
"0.56221503",
"0.5619234",
"0.5608842",
"0.56043786",
"0.55986977",
"0.5568568",
"0.5566021",
"0.5557814",
"0.5533976"... | 0.6534548 | 0 |
end draw / The key released function is used to give b1 a value of true whenever a user releases either of the 3 keys. The b1 value essentially serves as a marker stating that one of the keys has been pressed prior to the current key being held down. This then clears the previous sketch out to give the canvas to the sk... | function keyReleased()
{
if (keyCode === LEFT_ARROW || keyCode === RIGHT_ARROW || keyCode === DOWN_ARROW)
{
b1 = true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function keyUnpressed(event)\n{\n\twhile (keyFIFO.length != 0){\n keyFIFO.shift();\n\t}\n\nif(event.keyCode == 90){\n$('#canvasUp').removeClass('pressed');\nfleche=\"false\";\nstartedFonctionKey=0;\nflag1=false;\n}\nif(event.keyCode == 81){\n$('#canvasLeft').removeClass('pressed');\nfleche=\"false\";\nstartedFo... | [
"0.7096166",
"0.6952795",
"0.6856691",
"0.66648793",
"0.6579641",
"0.6373282",
"0.6361473",
"0.6356875",
"0.634664",
"0.6296317",
"0.6281834",
"0.6243211",
"0.624117",
"0.6239734",
"0.6233702",
"0.6224804",
"0.6208041",
"0.6206286",
"0.62039196",
"0.61761105",
"0.61562645",
... | 0.76485735 | 0 |
Exercise 1.16 SICP Iterative implementation of fast_expt | function fast_expt_iter(b, n) {
function fast_expt_int(x, y, z) {
return x === 0
? y
: is_even(x)
? fast_expt_int(x / 2, y, square(z))
: fast_expt_int(x - 1, y * z, z);
}
return fast_expt_int(n, 1, b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"approximate(p) {\n if(p >= 0) {\n return 0n;\n }\n const iterations_needed = -p;\n // Claim: each intermediate term is accurate\n // to 2*2^calc_precision. Total error is\n // 2*iterations_needed*2^calc_precision\n // exclusive of error in op... | [
"0.5174555",
"0.51716787",
"0.5170551",
"0.5030349",
"0.4970155",
"0.49642143",
"0.49612778",
"0.49402326",
"0.49281633",
"0.49198994",
"0.4863768",
"0.4859343",
"0.48418564",
"0.4836589",
"0.48048586",
"0.48019847",
"0.47945118",
"0.4788291",
"0.47593382",
"0.47395962",
"0.4... | 0.6536373 | 0 |
Log to console what instance is created | function logClass(target) {
console.log("%cInstance of class %c" + target.name + "%c has been created.\n", 'font-style: italic', 'font-style: normal; font-weight: bold; color: green; font-size: 15px', 'font-style: italic');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"log() {\n\t\tconsole.log(this.toString());\n\t}",
"log() {\n console.log(JSON.stringify(self));\n }",
"function classLog() {\n console.log('x' ,x);\n console.log('y' ,y);\n console.log('z' ,z);\n console.log('a' ,a);\n console.log('arg_a' ,arg_a)... | [
"0.6606891",
"0.6580862",
"0.64710784",
"0.6439881",
"0.6345859",
"0.6211252",
"0.61688685",
"0.6146077",
"0.613579",
"0.61251086",
"0.6117633",
"0.6117633",
"0.61129886",
"0.60958683",
"0.60681546",
"0.6022993",
"0.6001208",
"0.5999143",
"0.5985345",
"0.59741056",
"0.5968069... | 0.65824723 | 1 |
Prettifies a mail string, given the amount of rows and the length of the middle column. Outer column width is automagically calculated. | function prettyMailString(mailString, rows, middleColumnSize) {
mailString = WMSParser.sanitize(mailString);
// If our mailString is 18 bytes and the middle column is 5 bytes with 2 rows, we'll have 8 bytes left for the rest.
// There'll be 2 columns for 2 rows each = 8/2/2 = 2 bytes.
// (18 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static rightAlign(s, width) {\n \tvar columnLen = width;\n \tvar stringLen = s.length;\n \tif (stringLen > columnLen)\n \t\treturn s.substr(0,columnLen-3) + '...';\n \telse\n \t\treturn ' '.repeat(columnLen+1 - stringLen) + s;\n }",
"function formatStringsAsGrid(arr) {\n // TODO: variable... | [
"0.59635293",
"0.59165794",
"0.589317",
"0.58143497",
"0.57092255",
"0.56487036",
"0.5582881",
"0.54655534",
"0.54655534",
"0.5449023",
"0.5446206",
"0.54241407",
"0.5421766",
"0.5417694",
"0.5391291",
"0.5391291",
"0.53801066",
"0.53549683",
"0.5317089",
"0.52613086",
"0.526... | 0.7912812 | 0 |
Returns the item name for a given item ID. Requires the sky_item file to be loaded. | function getItemName(itemId) {
if (WMSkyItem[itemId]) {
return WMSkyItem[itemId];
}
else {
return "Unknown Item";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getInventoryItem(id) {\n for (i = 0; i < inventoryItems.length; i++) {\n if (inventoryItems[i].inventoryItemId == id) \n return inventoryItems[i].inventoryItemName;\n \n}\n}",
"function getName(id) {\n var name = data[id].name;\n return name;\n}",
"getItem(item) {\n\t\treturn thi... | [
"0.6616043",
"0.6506086",
"0.64929414",
"0.64311093",
"0.63309634",
"0.62347376",
"0.62347376",
"0.62347376",
"0.6073857",
"0.6037215",
"0.59660167",
"0.5961114",
"0.5907487",
"0.58872074",
"0.5868246",
"0.58278894",
"0.58053386",
"0.5792176",
"0.5686553",
"0.564657",
"0.5611... | 0.76367813 | 0 |
Returns the dungeon name for a given dungeon ID. Requires the sky_dungeon file to be loaded. | function getDungeonName(dungeonId) {
// TODO: keep list of valid/invalid WMS dungeons
if (WMSkyDungeon[dungeonId]) {
return WMSkyDungeon[dungeonId];
}
else {
return "Unknown";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function findNameById(id) {\n for (var i = 0; i < buildings.length; ++i) {\n if (buildings[i].id === parseInt(id)) {\n return buildings[i].name;\n }\n }\n return \"\";\n }",
"function idToHeroName (heroes, heroId) {\n for (let i = 0; i < heroes.length; i++) {\n if (he... | [
"0.6308345",
"0.5790765",
"0.56495845",
"0.55416507",
"0.5536763",
"0.5518072",
"0.5511898",
"0.55072737",
"0.5430237",
"0.5422373",
"0.5297211",
"0.52952033",
"0.5288075",
"0.5199288",
"0.5131985",
"0.5106187",
"0.509752",
"0.5083483",
"0.5057821",
"0.5036486",
"0.5021655",
... | 0.81588066 | 0 |
Distancia entre el cliente y un punto del mapa (Las coordenadas del cliente search reciben de la API, los artgumentos son el elemento donde escribiremos el resultado y las coordenadas del lugar deseado)(KM) | function distanciaCliente(elemento,lat,lon)
{
if (!navigator.geolocation){
Console.log("Geolocalizacion no soportada por tu navegador");
elemento.html("Recarga la pagina y permite la geolocalizacion para ver la distancia");
}
var distancia;
var options = {
enableHighAccuracy: true,
maximumAge: 0
};
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function distanciaPuntos(lat1,lon1,lat2,lon2)\n{\n\tvar R = 6371e3;//Radio de la tierra\n\tvar Ang1 = lat1 * Math.PI/180;\n\tvar Ang2 = lat2 * Math.PI/180;\n\tvar A1 = (lat2-lat1) * Math.PI/180;\n\tvar A2 = (lon2-lon1) * Math.PI/180;\n\n\tvar a = Math.sin(A1/2) * Math.sin(A1/2) +\n\t\t\t Math.cos(Ang1) * Math.cos... | [
"0.69775856",
"0.67361885",
"0.6664769",
"0.6597129",
"0.65723884",
"0.6544462",
"0.65212584",
"0.6435813",
"0.64191663",
"0.64048344",
"0.6340786",
"0.63341033",
"0.63266337",
"0.62947637",
"0.62935334",
"0.62784386",
"0.62784386",
"0.62784386",
"0.62699395",
"0.62628376",
"... | 0.6866369 | 1 |
Construct the SSM parameter name for the given Windows image | imageParameterName(version) {
return '/aws/service/ami-windows-latest/' + version;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createParameterMsg(mean,range,distributionName){\n var msg = {\n type: \"parameters\",\n mean: mean,\n range: range,\n distribution: distributionName\n };\n return JSON.stringify(msg);\n}",
"function generateNameFromParams(obj) {\n\n var value, values = [];\n\n //sorting the... | [
"0.5738423",
"0.549778",
"0.52994037",
"0.5277122",
"0.5157912",
"0.5155383",
"0.51372325",
"0.50660366",
"0.5032846",
"0.497965",
"0.49796483",
"0.49784443",
"0.49660492",
"0.49356174",
"0.49268305",
"0.4897653",
"0.48782137",
"0.48647535",
"0.48316297",
"0.48288807",
"0.482... | 0.74052566 | 0 |
find photos in database | function findPhotos(req, res, next) {
connection.query('SELECT * from photos where idusers=?',[session.id], function(err, rows) {
if (!err){
console.log('The solution is: ', rows);
req.photos = rows;
return next();
}else
console.log('Error while perfor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function searchPhotos() {\n\t\t\tflickrService.searchPhotos(self.searchText()).then(\n\t\t\t\t\tfunction(response) {\n\t\t\t\t\t\t// console.log(response.photos.photo);\n\t\t\t\t\t\tif (response.photos != undefined) {\n\t\t\t\t\t\t\tif (response.photos.photo.length > 0) {\n\t\t\t\t\t\t\t\ttotalPages = response.pho... | [
"0.6870032",
"0.67655045",
"0.6678339",
"0.6597714",
"0.65781313",
"0.64650613",
"0.64589316",
"0.63823044",
"0.63816786",
"0.63108426",
"0.62883013",
"0.62628126",
"0.61693317",
"0.6168272",
"0.6161619",
"0.6161001",
"0.6145855",
"0.60829806",
"0.605455",
"0.60337836",
"0.60... | 0.69169587 | 0 |
========================== COMPANY ========================= Company: Create Queue Function | function createQueue(queueID, companyID, callback) {
const sql = "INSERT INTO companyqueue (queue_id, company_id, status) Values (UPPER($1), $2, 'INACTIVE')";
pool
.query(sql, [queueID, companyID])
.then(function (result) {
callback(null, result);
})
.catch(function (error) {
callback(ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function Queues(){}",
"createQueueItem(newQueueItem) {\n return this.perform('post', '/queue', newQueueItem);\n }",
"function add(){\n var str = base64.encode(new Date().valueOf());\n queueSvc.createMessage(\"zhf-bash-1-queue\", str, function(error, results, response){\n if(!error){\n console.log... | [
"0.72179323",
"0.66906273",
"0.6684146",
"0.66826946",
"0.65378404",
"0.64906514",
"0.6452544",
"0.64311934",
"0.63678694",
"0.6307519",
"0.6302213",
"0.6269821",
"0.623642",
"0.6218558",
"0.6218558",
"0.6218558",
"0.6167664",
"0.61625576",
"0.616066",
"0.61600685",
"0.614170... | 0.7507919 | 0 |
Company: Update Queue Function | function updateQueue(status, queue_id, callback) {
const sql_check = "SELECT 1 FROM companyqueue WHERE queue_id = UPPER($1)";
var sql = "";
if (status == 'ACTIVATE') {
sql = "UPDATE companyqueue SET status = 'ACTIVE' WHERE queue_id = UPPER($1)";
} else if (status == 'DEACTIVATE') {
sql = "UPDATE company... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function refresh_queuelist()\n{\n var req = new Request({ url: api_request_path(\"queues\", \"queues\", basepath),\n onRequest: function() {\n $('movespin').fade('in');\n },\n onSuccess: function(resp... | [
"0.6974087",
"0.6766015",
"0.6766015",
"0.6766015",
"0.67431515",
"0.67431515",
"0.67431515",
"0.6723215",
"0.66221863",
"0.6509154",
"0.6486663",
"0.6448971",
"0.6433489",
"0.6433489",
"0.64250344",
"0.64222527",
"0.64222527",
"0.64222527",
"0.6419398",
"0.64125806",
"0.6403... | 0.7203814 | 0 |
========================== CUSTOMER ========================= Customer: Join Queue Function | function joinQueue(customer_id, queue_id, callback) {
const sql_check = "SELECT status FROM companyqueue WHERE queue_id = UPPER($1)";
const sql = "INSERT INTO customerQueue (customer_id, fk_queue_id) VALUES ($1, UPPER($2))";
if (callback) {
pool
.query(sql_check, [queue_id])
.then(function (result... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function joinQueue(io, socket) {\n return (data) => {\n let queue = data[\"queue\"];\n let user = socket.user;\n\n join(user, queue).then((data) => {\n io.sockets.sockets[socket.id].emit('joined', {\n 'queue': queue\n });\n\n getQueue(queue).then((data) => {\n console.log(dat... | [
"0.5984676",
"0.5930941",
"0.5790898",
"0.5777211",
"0.5669491",
"0.5622738",
"0.56138253",
"0.55933136",
"0.5567239",
"0.55006063",
"0.54531145",
"0.54339105",
"0.54288995",
"0.53525287",
"0.5271152",
"0.5268659",
"0.5265011",
"0.52641124",
"0.5261247",
"0.5258679",
"0.52044... | 0.7577025 | 0 |
Adapted & modified from converts a promise returning function to a cancellable promise returning function. | function cancellablePromise(functionThatReturnsAPromise) {
let isCanceled = false;
if (typeof functionThatReturnsAPromise !== 'function') throw new Error('action is not a function')
return {
promise: (arg) => new Promise((resolve, reject) => {
functionThatReturnsAPromise(arg)
.then((val) => isCanceled... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function cancellablePromise(functionThatReturnsAPromise) {\n\tvar isCanceled = false;\n\n\tif (typeof functionThatReturnsAPromise !== 'function') throw new Error('action is not a function');\n\n\treturn {\n\t\tpromise: function promise(arg) {\n\t\t\treturn new Promise(function (resolve, reject) {\n\t\t\t\tfunction... | [
"0.76207674",
"0.66649354",
"0.64181006",
"0.6238272",
"0.61507636",
"0.6150526",
"0.61148685",
"0.61092913",
"0.6093699",
"0.6093699",
"0.6093699",
"0.60892946",
"0.6075607",
"0.60312986",
"0.60040087",
"0.5992837",
"0.5992246",
"0.5986723",
"0.5848783",
"0.58374584",
"0.583... | 0.7695395 | 0 |
Brings up Join Room Popup | function join_room_pop() {
join_room.css("display", "block");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function joinRoom(obj) {\r\n modal.style.display = \"block\";\r\n room = obj.id;\r\n}",
"function func_join_room_pop() {\n join_room.css(\"display\", \"block\");\n}",
"function joinedRoom( room ) {\n}",
"function viewRoom(roomTypeId) {\n // show the popup\n document.getElementById(\"roomPopup\" + roomTy... | [
"0.7462229",
"0.717524",
"0.69322747",
"0.68589497",
"0.6812814",
"0.6782194",
"0.66822064",
"0.6673912",
"0.6526032",
"0.6453457",
"0.6442961",
"0.6407164",
"0.6310999",
"0.62995327",
"0.62624246",
"0.62431866",
"0.61969066",
"0.616831",
"0.6168101",
"0.6154207",
"0.61137027... | 0.74188393 | 1 |
Update emitOptions from the given options object | function setOptions(optionsObj) {
for (const opt in optionsObj) {
// TODO: need more error checking on the validity of the option values
emitOptions[opt] = optionsObj[opt];
}
for (const srp in emitOptions.initialRates) {
currentSampleRate[srp] = emitOptions.initialRates[srp];
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"mergeOptions (options, notMerge, lazyUpdate) {\n this.delegateMethod('setOption', options, notMerge, lazyUpdate)\n }",
"function updateOptions(options)\n\t{\n\t\t_options = jQuery.extend(true, {}, _options, options);\n\t}",
"updateOptions (options) {\n this.options = _extend({}, this.options, opti... | [
"0.58722246",
"0.5866516",
"0.5834074",
"0.5753625",
"0.5703791",
"0.5703791",
"0.5703142",
"0.56379515",
"0.5632687",
"0.5578847",
"0.55568933",
"0.55507433",
"0.5520503",
"0.55029213",
"0.545841",
"0.5455026",
"0.54202324",
"0.54009646",
"0.537273",
"0.53642136",
"0.5343641... | 0.60968286 | 0 |
Do a preliminary check if the emitKind is even enabled and to do sampling. | function checkGlobalShouldEmit(emitKind, optInfo) {
// Check if the flag is enabled
if (emitKind === 'emitOnExit') {
if (emitOptions.emitOnExit === 'all') {
return true;
} else {
return (emitOptions.emitOnExit === 'error') && (optInfo !== 0);
}
} else if (emitKind === 'emitOnException' || ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function sample(samplingRate) {\n return Math.random() * 100 < samplingRate;\n}",
"function checkBinShouldEmit(fuzzyStack) {\n const entry = resolveStackEntry(fuzzyStack);\n\n // stop sampling after max sampled values -- e.g. we don't need 100 repros\n if (entry.traceCtr > emitOptions.binMaxSampled) {\n ... | [
"0.56535506",
"0.5584967",
"0.5557552",
"0.54497653",
"0.5175971",
"0.5076655",
"0.5038106",
"0.5002924",
"0.49669924",
"0.4960557",
"0.49372995",
"0.4923383",
"0.49072322",
"0.48884308",
"0.48865825",
"0.48534667",
"0.48492944",
"0.4845805",
"0.4823649",
"0.4816511",
"0.4801... | 0.688662 | 0 |
Note that we sampled for this entry and update the info as appropriate | function updateEmitInfo(sampleEntry, sampleName) {
sampleEntry.traceCtr++;
sampleEntry.samples.push(sampleName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function update(t) {\n var p, idx;\n\n if (res.length < num) {\n res.push(t);\n } else {\n idx = ~~((cnt + 1) * Math.random());\n if (idx < res.length && idx >= cap) {\n p = res[idx];\n if (map[Object(__WEBPACK_IMPORTED_MODULE_0_vega_dataflow__[\"n\" /* tupleid */])(p)]) out.r... | [
"0.6230606",
"0.6227071",
"0.6036685",
"0.6030198",
"0.5984515",
"0.59817445",
"0.5951108",
"0.59176433",
"0.5895319",
"0.5792689",
"0.5670861",
"0.56601834",
"0.5616075",
"0.55328953",
"0.5523973",
"0.54033726",
"0.5379074",
"0.5379072",
"0.53326213",
"0.528269",
"0.52812564... | 0.62684476 | 0 |
Check if 2 fuzzy stacks are equal. | function eqFuzzyStacks(s1, s2) {
if (s1.hash !== s2.hash || s1.stack.length !== s2.stack.length) {
return false;
}
for (var i = 0; i < s1.stack.length; ++i) {
if (Array.isArray(s1.stack[i]) !== Array.isArray(s2.stack[i])) {
return false;
}
if (Array.isArray(s1.stack[i])) {
if (s1.sta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function areEqual(a, b) {\n\t var aStack = aStackPool.length ? aStackPool.pop() : [];\n\t var bStack = bStackPool.length ? bStackPool.pop() : [];\n\t var result = eq(a, b, aStack, bStack);\n\t aStack.length = 0;\n\t bStack.length = 0;\n\t aStackPool.push(aStack);\n\t bStackPool.push(bStack);\n\t return res... | [
"0.70557827",
"0.70557827",
"0.70557827",
"0.7030073",
"0.67098224",
"0.66850257",
"0.6684776",
"0.66604996",
"0.66604996",
"0.66604996",
"0.66604996",
"0.66604996",
"0.66604996",
"0.66604996",
"0.66604996",
"0.66604996",
"0.66604996",
"0.6639776",
"0.65214723",
"0.6476283",
... | 0.8375091 | 0 |
Helper functions provide the different varieties of image type urls during the loop based on the counter | function imgCounter(counter) {
var imgType;
if (counter == 1 || counter == 0) {
imgType = "";
} else if (counter == 2 ){
imgType = "g/";
} else if (counter == 3 ){
imgType = "c/";
} else if (counter == 4 ){
imgType = "gif/";
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getImageUrls(imageUrl){\n // http://www.pickledbraingames.com/temp/images/0258b0_tn.jpg\n\n const fileRegEx = /^(http:\\/\\/www.pickledbraingames.com\\/temp\\/images\\/)(.*)_(lg|md|sm|tn).jpg$/;\n let matches = fileRegEx.exec(imageUrl);\n\n if(matches !== null){\n ... | [
"0.67140305",
"0.6596973",
"0.64758945",
"0.64529705",
"0.63916624",
"0.63691795",
"0.6364892",
"0.63345444",
"0.6325833",
"0.62499064",
"0.6219731",
"0.6196096",
"0.6185263",
"0.6170836",
"0.6170534",
"0.6169798",
"0.61685926",
"0.61317897",
"0.6129069",
"0.6124411",
"0.6098... | 0.6810555 | 0 |
checks whether the picture/element is very wide or tall, which helps determine whether a repeating background image will be used | function isWideOrTallRectangle (width, height, el) {
var backgroundSize;
var calc;
var height;
var width;
var magicNumber = 0.55;
// console.log('checking if tall or wide rectangle');
// check if element's width is longer than height
if ( width > height ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function checkImageDimensions(image){if(test)console.log(image.src+\" ; state:\"+image.complete+\":n w h:\"+image.naturalWidth+\" \"+image.naturalHeight+\";w h:\"+image.clientWidth+\" \"+image.clientHeight);if(image.clientWidth>0){if(image.clientWidth<minWidthOfImageForDisplayBottomOffersWrapper){if(test)console.l... | [
"0.62507594",
"0.5894287",
"0.5873905",
"0.5870313",
"0.5854358",
"0.58337426",
"0.58060986",
"0.57245785",
"0.57061416",
"0.5680977",
"0.56288636",
"0.5612856",
"0.5609778",
"0.56049305",
"0.55838895",
"0.5582203",
"0.5578708",
"0.5437438",
"0.5421121",
"0.5387769",
"0.53828... | 0.6498653 | 0 |
Specific Functions for finding and replacing certain kinds of elements Replace pseudo elements with pictures of Nick Cage | function replacePseudoElements(_this, counter, totalCounter, pseudoElement, beforeOrAfter) {
var newUrl;
var result;
var imgType;
var beforeOrAfter = beforeOrAfter;
var pseudo = pseudoElement;
var counter = counter;
var totalCounter = totalCounter;
var he... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function replaceAllElements() {\n\n // Set up object for all our counters\n var counters = {};\n counters.totalElements = 0;\n counters.backgroundImages = 0;\n counters.images = 0;\n counters.iframes = 0;\n counters.videos = 0;\n counters.svgs = 0;\n c... | [
"0.6747139",
"0.6213439",
"0.6095581",
"0.5971609",
"0.58028924",
"0.5797314",
"0.5783839",
"0.57634926",
"0.57099813",
"0.5640421",
"0.5624622",
"0.55769557",
"0.5565491",
"0.55406165",
"0.55382335",
"0.5523962",
"0.549",
"0.54774785",
"0.54738015",
"0.5444578",
"0.54306203"... | 0.67644894 | 0 |
Replace iframes with youtube video embeds of nick cage | function replaceIframesAndEmbeds(_this, counter, videoList) {
var counterResult;
var newIframe;
var counter = counter;
counter++;
counterResult = videoCounter(counter, videoList);
newIframe = counterResult.video;
counter = counterResult.counter;
// if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function youtubeLinkReplace() {\r\n (function ($) {\r\n var videoClass = '.youtubeVideoLink';\r\n var iframeTag = '<iframe width=\"100%\" height=\"100%\" src=\"{PROTOCOL}//www.youtube.com/embed/{VIDEO_ID}\" frameborder=\"0\" allowfullscreen></iframe>';\r\n\r\n videoContainers = $(videoClass... | [
"0.7227719",
"0.6921156",
"0.69164866",
"0.66415197",
"0.6568168",
"0.65633535",
"0.6512842",
"0.64597696",
"0.6459041",
"0.6457116",
"0.64488286",
"0.6427151",
"0.6424152",
"0.6411174",
"0.63712806",
"0.6364019",
"0.635566",
"0.63249856",
"0.63227975",
"0.62696934",
"0.62682... | 0.708349 | 1 |
Replace all 'video' elements with giphy videos of nick cage | function replaceVideos(_this, counter, videoList) {
var counterResult;
var newVideo;
var counter = counter;
//Cycle through different videos
counter++;
counterResult = videoCounter(counter, videoList);
newVideo = counterResult.video;
counter = counterR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function findVideos() {\n let videos = document.querySelectorAll('.video');\n\n for (let i = 0; i < videos.length; i++) {\n setupVideo(videos[i]);\n }\n}",
"function replaceAllElements() {\n\n // Set up object for all our counters\n var counters = {};\n counters.totalElements = 0;\n ... | [
"0.6386423",
"0.6312729",
"0.6236661",
"0.6145281",
"0.6053523",
"0.6036527",
"0.60047674",
"0.5995635",
"0.5986079",
"0.59800977",
"0.59220284",
"0.5920596",
"0.58975327",
"0.58591235",
"0.58280563",
"0.57761157",
"0.57756627",
"0.57734233",
"0.575572",
"0.57458377",
"0.5723... | 0.6697891 | 0 |
Replace all 'svg' elements with images of nick cage. Note this is best done with a background image. | function replaceSVGs(_this, counter) {
var imgType;
var counter = counter;
var newURL;
// get dimensions of current svg
var width = Math.floor(_this.outerWidth());
var height = Math.floor(_this.outerHeight());
var backgroundSize = 'cover';
// If the dim... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function forSVG() {\n $('.svg').each(function() {\n var $img = $(this);\n var imgID = $img.attr('id');\n var imgClass = $img.attr('class');\n var imgURL = $img.attr('src');\n\n $.get(imgURL, function(data) {\n // Get the SVG tag, ignore the rest\n var $sv... | [
"0.7137686",
"0.69850266",
"0.6816499",
"0.67765754",
"0.6608861",
"0.6584533",
"0.6481599",
"0.6173936",
"0.6145678",
"0.6087796",
"0.6013611",
"0.5987304",
"0.585852",
"0.5826405",
"0.58241224",
"0.5789657",
"0.5778846",
"0.5746165",
"0.5734182",
"0.57266825",
"0.5722278",
... | 0.70675504 | 1 |
Replace all 'object' elements with images of nick cage. Note this is best done with a background image. | function replaceObjectElements(_this, counter) {
var imgType;
var displayType;
var counter = counter;
var newURL;
// get dimensions of current svg
var width = Math.floor(_this.outerWidth());
var height = Math.floor(_this.outerHeight());
var backgroundSiz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setObjectImage(object, objectName) {\n object.dataset.objectimg = objectName;\n\n if (currentEvent == EVENT_OBSCURE) {\n object.style.backgroundImage = getObjectUrl(objectName, true);\n } else {\n object.style.backgroundImage = getObjectUrl(objectName, false);\n }\n\n}",
"refresh(wObjects) {\n... | [
"0.63704187",
"0.62294704",
"0.5924225",
"0.5921544",
"0.58464146",
"0.5762279",
"0.5731976",
"0.5731085",
"0.56806207",
"0.56480867",
"0.5644439",
"0.56435794",
"0.56391484",
"0.5610764",
"0.56046546",
"0.5592428",
"0.5586993",
"0.55850184",
"0.55595416",
"0.5551056",
"0.550... | 0.70827395 | 0 |
cycle scroll gallery init | function initCycleCarousel() {
jQuery('.cycle-gallery').scrollAbsoluteGallery({
mask: '.mask',
slider: '.slideset',
slides: '.slide',
btnPrev: '.btn-prev',
btnNext: '.btn-next',
pagerLinks: '.pagination li',
stretchSlideToMask: true,
maskAutoSize: true,
autoRotation: false,
switchTime: 3000,
anim... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function initCycleCarousel() {\r\n\tjQuery('.cycle-gallery').scrollAbsoluteGallery({\r\n\t\tmask: '.mask',\r\n\t\tslider: '.slideset',\r\n\t\tslides: '.slide',\r\n\t\tbtnPrev: '.btn-prev',\r\n\t\tbtnNext: '.btn-next',\r\n\t\tstretchSlideToMask: true\r\n\t});\r\n}",
"function initCycleCarousel() {\n\tjQuery('.cyc... | [
"0.8243598",
"0.8238054",
"0.8232321",
"0.82210296",
"0.8203692",
"0.7494992",
"0.73451793",
"0.66876674",
"0.6676823",
"0.65751517",
"0.6552732",
"0.65347487",
"0.65276986",
"0.6518227",
"0.6508586",
"0.6470788",
"0.64684373",
"0.6467333",
"0.6463202",
"0.64444596",
"0.64432... | 0.8286084 | 0 |
Insert param in query. | function insertParam(value, selectField) {
var key = encodeURI(selectField);
value = encodeURI(value);
var kvp = document.location.search.substr(1).split('&');
var i = kvp.length;
var param, perPageChanged = false;
while(i--) {
param = kvp[i].split('=');
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addParameter(param) {\n if (!param) return;\n\n var isFirst = _hashString.length === 0;\n _hashString += isFirst ? param + \"=\" : \"&\" + param + \"=\";\n }",
"function insertParam(key, value) {\n key = encodeURI(key);\n value = encodeURI(value);\n\... | [
"0.64023805",
"0.63320637",
"0.62461185",
"0.6024232",
"0.59606886",
"0.59266853",
"0.59049505",
"0.5900413",
"0.58870196",
"0.5859563",
"0.5825928",
"0.5800262",
"0.5800262",
"0.5776399",
"0.5753031",
"0.5753031",
"0.5753031",
"0.57172394",
"0.56974137",
"0.56449836",
"0.561... | 0.63408464 | 1 |
Function that generates HTML for cupcake and appends to cupcakes list | function generateAndAppendCupcakeHtml(cupcake) {
let html = `
<li>
Flavor:${cupcake.flavor},
Rating: ${cupcake.rating},
Size: ${cupcake.size}
</li>
<img src=${cupcake.image}><img>
`;
$updateCupcakeList.append(html);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function generateCupcakeHTML(cupcake) {\r\n return `\r\n <div data-cupcake-id=${cupcake.id}>\r\n <li>\r\n ${cupcake.flavor} / ${cupcake.size} / ${cupcake.rating}\r\n <button class=\"delete-button\">X</button>\r\n </li>\r\n <img class=\"Cupcake-img\"\r\n src=\"${cupcake.i... | [
"0.8227807",
"0.77048755",
"0.7483694",
"0.7232004",
"0.7192921",
"0.70951545",
"0.69233507",
"0.68297654",
"0.6678835",
"0.666754",
"0.635256",
"0.61760426",
"0.6126179",
"0.6126179",
"0.6048054",
"0.59927297",
"0.5948007",
"0.5900446",
"0.5889075",
"0.5875543",
"0.58505",
... | 0.87843263 | 0 |
Function handles form submission. Generates POST request to API to create new cupcake. Generates HTML for new cupcake and appends to cupcakes list. | async function handleCupcakeForm(evt) {
evt.preventDefault();
//CODE REVIEW: These variables don't nede the dollar sign because it's just the values and not jquery data
let $flavor = $("#cupcake-flavor").val();
let $rating = $("#cupcake-rating").val();
let $size = $("#cupcake-size").val();
let $image = $(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async function makeCupcake() {\n\t// Get values\n\tconst flavor = $('#flavor').val();\n\tconst size = $('#size').val();\n\tconst rating = $('#rating').val();\n\tconst image = $('#image').val() ? $('#image').val() : null;\n\t// API POST Request\n\tif (image !== null) {\n\t\tconst response = await axios.post(BASE_UR... | [
"0.72238976",
"0.6859833",
"0.5915593",
"0.59105384",
"0.5873392",
"0.5868591",
"0.5854143",
"0.577504",
"0.5722662",
"0.56803644",
"0.56694317",
"0.5624069",
"0.5571286",
"0.5503824",
"0.5474747",
"0.5468687",
"0.5452066",
"0.54365855",
"0.54297644",
"0.5429503",
"0.542296",... | 0.7294887 | 0 |
Event sequence for a take_call click | function AdaHeads_Take_Call_Button_Click() {
// Create a new call object, not implemented
AdaHeads.Alice.Get_Next_Call({
200 : function (data) {
$("#Current_Call").addClass("disconnected").show();
AdaHeads.Status_Console.Log("Reserved call");
},
404 : function (data) {
AdaHeads.St... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function call() {\n if(document.getElementsByClassName('call')[0] == undefined) {\n speak(\"That is not a valid action right now. Please try again.\");\n return;\n }\n document.getElementsByClassName('call')[0].click()\n speak(\"Called successfully\")\n}",
"function numberClickListener(... | [
"0.61357945",
"0.60793465",
"0.6073199",
"0.60336477",
"0.60053664",
"0.5971884",
"0.59276235",
"0.59133065",
"0.58462685",
"0.5837192",
"0.575507",
"0.57302964",
"0.5728478",
"0.5724242",
"0.57116085",
"0.57116085",
"0.5693851",
"0.5669318",
"0.56219745",
"0.5600981",
"0.557... | 0.70754886 | 0 |
defines all the members of your roster as the variable monsters redefines the div variable, checks to see if selected is already on the list, and then swaps the swappable element with a clone of the selected element or builds the div up to three | function select_member(){
var div = document.querySelector("div#selected_members");
var swap = document.querySelector("div#selected_members .swapable");
var new_div = this.cloneNode(true);
new_div.querySelector("input").checked = true;
var new_div_name = JSON.parse(new_div.querySelector("p.data").in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function playerSelectedCharacter(){\n\tgameStatus = PLAYER_TO_SELECT_DEFENDER;\n\t$(\"#characterList\").remove();\n\t\n\tvar $yourCharacter = $(\"#yourCharacter\");\n\tvar $chrDiv = $(\"<div>\");\n\t$chrDiv.addClass(\"col-xs-3 col-sm-3 col-md-2 col-lg-2 yourChrStyle\");\n\t$chrDiv.attr(\"nickname\",yourCharacter.c... | [
"0.592367",
"0.5798182",
"0.5791262",
"0.57471156",
"0.56961477",
"0.5690216",
"0.56506914",
"0.5609531",
"0.5593374",
"0.55931956",
"0.5562428",
"0.55559313",
"0.5546455",
"0.551921",
"0.5509224",
"0.55061257",
"0.5489567",
"0.5478357",
"0.54742116",
"0.54495686",
"0.5443521... | 0.6251854 | 0 |
selects a selected div and makes it swapable | function swapable_member(){
var selects = document.querySelectorAll("div#selected_members div");
for(let x=0; x < selects.length; x++){
selects[x].addEventListener("click", function(){
selects.forEach(el => el.classList.remove("swapable"));
this.classList.toggle("swapable");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function select_member(){\n var div = document.querySelector(\"div#selected_members\");\n var swap = document.querySelector(\"div#selected_members .swapable\");\n var new_div = this.cloneNode(true);\n new_div.querySelector(\"input\").checked = true;\n var new_div_name = JSON.parse(new_div.querySelec... | [
"0.6640917",
"0.64978987",
"0.62960225",
"0.6263496",
"0.6166394",
"0.6127555",
"0.6113547",
"0.6109533",
"0.6108629",
"0.6107992",
"0.6056985",
"0.6017066",
"0.6005618",
"0.59941727",
"0.5986389",
"0.5986389",
"0.59606075",
"0.5925322",
"0.5898738",
"0.58635294",
"0.5861946"... | 0.6859702 | 0 |
creates an array of current users current battle party adds select_member as a click event searches for the divs with the same name as the initial battle party | function select_initial_battle_party(){
//reads the ruby objects set battle_party and parses it into a javascript object
var initial_battle_party = JSON.parse(document.querySelector("#initial_battle_party").innerText);
var names = [];
initial_battle_party.forEach(element => {
names.push(element["name"]);
})... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function select_member(){\n var div = document.querySelector(\"div#selected_members\");\n var swap = document.querySelector(\"div#selected_members .swapable\");\n var new_div = this.cloneNode(true);\n new_div.querySelector(\"input\").checked = true;\n var new_div_name = JSON.parse(new_div.querySelec... | [
"0.6208542",
"0.61791885",
"0.5941414",
"0.58850634",
"0.586167",
"0.58600724",
"0.58513874",
"0.5781291",
"0.5749996",
"0.57303524",
"0.5694886",
"0.5669675",
"0.5657571",
"0.56507254",
"0.5626466",
"0.5602799",
"0.55981714",
"0.5584603",
"0.55396146",
"0.55286235",
"0.54995... | 0.68608785 | 0 |
Generate random wind data | function getWind(){
return JSON.stringify({
speed: Math.floor(Math.random() * 99) + 9,
direction: Math.floor(Math.random() * 359) + 0
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function makeData() {\n\tlet v0 = randBetween(0, 5)\n\tv1 = randBetween(10, 30)\n\n\t// let v0 = 100\n\t// let v1 = 100\n\tlet accSnow = 0\n\n\tareaData = calendarDate.map((date, i) => {\n\t\t// v1 = Math.min(v1 + random([-1.7, 2]), 0)\n\t\t// let newSnow = 0\n\t\tif (i === 330) {\n\t\t\taccSnow = 0\n\t\t}\n\t\tif... | [
"0.6819671",
"0.6715936",
"0.6650696",
"0.66119033",
"0.6561742",
"0.6552374",
"0.6548749",
"0.65424937",
"0.64080566",
"0.636588",
"0.63570225",
"0.63553774",
"0.6216923",
"0.62167454",
"0.6207982",
"0.6132612",
"0.61310685",
"0.61270154",
"0.60957366",
"0.60885364",
"0.6086... | 0.6887795 | 0 |
Generate random dht22 data | function getDHT22(){
return JSON.stringify({
temperature: Math.floor(Math.random() * 33) + 22,
humidity: Math.floor(Math.random() * 75) + 10
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _getRandomData() {\n if (window && window.crypto && window.crypto.getRandomValues) {\n return crypto.getRandomValues(new Uint8Array(1))[0] % 16;\n } else {\n return Math.random() * 16;\n }\n}",
"function __getRandomData() {\n if (window && window.crypto && window.crypto.getRandomValues) ... | [
"0.68019843",
"0.6676069",
"0.6652467",
"0.66415644",
"0.65504694",
"0.65207946",
"0.64670867",
"0.63405806",
"0.6332812",
"0.6314418",
"0.6301276",
"0.6297011",
"0.62852466",
"0.6245542",
"0.62227166",
"0.61966616",
"0.61764306",
"0.6126141",
"0.611547",
"0.61153084",
"0.609... | 0.70961285 | 0 |
Generate random bmp180 data | function getBMP180(){
return JSON.stringify({
'sealevel_pressure': Math.floor(Math.random() * 1000000) + 900000,
pressure: Math.floor(Math.random() * 1000000) + 900000,
altitude: Math.floor(Math.random() * 900) + 100,
temperature: Math.floor(Math.random() * 33) + 22
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _getRandomData() {\n if (window && window.crypto && window.crypto.getRandomValues) {\n return crypto.getRandomValues(new Uint8Array(1))[0] % 16;\n } else {\n return Math.random() * 16;\n }\n}",
"function random()\n {\n m_z = (36969 * (m_z & 65535) + (m_z >> 16)) & mask;\n m_w =... | [
"0.6460074",
"0.63109803",
"0.6209381",
"0.616988",
"0.61675584",
"0.6144853",
"0.61271816",
"0.61129105",
"0.6104016",
"0.60862726",
"0.6064568",
"0.6063032",
"0.60472083",
"0.60039914",
"0.59732413",
"0.596944",
"0.5967335",
"0.5955962",
"0.5947408",
"0.5933187",
"0.5927236... | 0.74597347 | 0 |
Upvote and Downvote functionality manager | function manageVote() {
if (downvote) {
setPoints(points - 1);
} else {
setPoints(points + 1);
}
data.points = points;
data.downvote = !downvote;
setDownVote(!downvote);
downvoteItem(data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addUpvoteButton(comment_id,user_id,upvotes,downvote,){\n\n}",
"function vote(el) {\n el = $(el);\n var itemID = el.parent().parent().attr('id');\n var voteValue;\n var hasVoted = el.parent().parent().attr('data-hasvoted');\n var itemType = el.parent().parent().attr('data-hastype');\n v... | [
"0.73914623",
"0.697552",
"0.68715763",
"0.6866059",
"0.6863357",
"0.6805505",
"0.67793506",
"0.67492986",
"0.66915333",
"0.6644125",
"0.6598845",
"0.6574583",
"0.6566477",
"0.6548314",
"0.6524588",
"0.6491406",
"0.6490444",
"0.64575654",
"0.6411068",
"0.6407911",
"0.640201",... | 0.75722826 | 0 |
Method to set up the SVG that holds the bracket | setUpBracketSVG(){
let bracketSVG = d3.select("#bracket-svg")
.attr("width", this.svgWidth)
.attr("height", this.svgHeight);
// Sets up groups to hold each part of the bracket
bracketSVG.append("g").attr("id", "Title")
bracketSVG.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function SVGShape() {}",
"init() {\n var me = this,\n svg = document.createElementNS(this.xmlns, 'svg');\n svg.setAttribute('id', this.id);\n svg.setAttribute('width', this.coorWidth);\n svg.setAttribute('height', this.coorHeight);\n svg.setAt... | [
"0.6796554",
"0.6748522",
"0.6659371",
"0.6613339",
"0.6503891",
"0.64930356",
"0.6348118",
"0.63275963",
"0.6326425",
"0.6302064",
"0.63003945",
"0.6237957",
"0.6237957",
"0.6237957",
"0.61959654",
"0.61833775",
"0.6163416",
"0.6131553",
"0.6125712",
"0.6123187",
"0.6117084"... | 0.7687607 | 0 |
Method to draw the lines in the bracket. Not all world cups knockout rounds have had the same number of of stages so it draws the correct number of lines for the bracket of the slected years world cup | async drawBracketLines(activeYear){
// if the year is 1950 there is no bracket to be drawn
if(activeYear == 1950)
return;
this.drawFinalLines();
// 1974 and 1978 only had a final in the knockout rounds
if(activeYear == 1974 || activeYear == 1978)
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function lines(){\n\tctx.beginPath();\n\tctx.moveTo(0,h/2);\n\tctx.lineTo(w,h/2);\n\tctx.lineWidth=\"3\";\n\tctx.strokeStyle = \"white\"\n\tctx.stroke();\n}",
"function drawlines(){\n stroke(0);\n for(var i = 0; i < 450; i = i + 45){\n line(298, 135 + i, 380, 135 + i);\n }\n}",
"function drawLines() {\n}... | [
"0.6710679",
"0.66817087",
"0.6680905",
"0.6680905",
"0.6650408",
"0.664377",
"0.65461534",
"0.6510345",
"0.64807844",
"0.64461875",
"0.6428649",
"0.6415618",
"0.6393566",
"0.63935375",
"0.6375897",
"0.6371994",
"0.62777144",
"0.6275207",
"0.6257015",
"0.62392956",
"0.6230100... | 0.7385211 | 0 |
Draws the Round of 16 bracket lines | async drawR16Lines(){
let that = this
let Roundof16Lines = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23];
let R16Lines = d3.select("#R16-Lines").selectAll('line');
let joined = R16Lines.data(Roundof16Lines).join('line')
joined.attr("x1", d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function fillBracketDom(rounds, last_round) {\n\tclearPage();\n\n\tlet bracket_span = document.getElementById(\"bracket_span\");\n\n\tlet height = getHeight('.bracket_image');\n\tlet width = getWidth('.bracket_image') * 2;\n\n\tlet vertical_offset = 0;\n\tlet num_rounds;\n\tif (rounds == -1) {\n\t\tnum_rounds = 4;... | [
"0.6657536",
"0.63822204",
"0.6370252",
"0.6322913",
"0.63030803",
"0.6244521",
"0.621472",
"0.6212557",
"0.6184045",
"0.6143721",
"0.6120964",
"0.6082176",
"0.60789067",
"0.6046036",
"0.6027998",
"0.6025874",
"0.59878016",
"0.5956033",
"0.5932259",
"0.592877",
"0.5927384",
... | 0.6495397 | 1 |
Draws the quarterfinal bracket lines | async drawQFLines(){
let that = this;
let QuarterfinalLines = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
let QFLines = d3.select("#QF-Lines").selectAll('line');
let joined = QFLines.data(QuarterfinalLines).join('line')
joined.attr("x1", d =>{
if(d < 4)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async drawBracketLines(activeYear){ \n // if the year is 1950 there is no bracket to be drawn\n if(activeYear == 1950)\n return;\n\n this.drawFinalLines();\n\n // 1974 and 1978 only had a final in the knockout rounds\n if(activeYear == 1974 || activeYear == 1978)\... | [
"0.70307535",
"0.6486271",
"0.6464003",
"0.6369812",
"0.6058755",
"0.6054825",
"0.59826046",
"0.597196",
"0.59166706",
"0.58815515",
"0.58223504",
"0.56846195",
"0.5671643",
"0.56525475",
"0.5648407",
"0.5619886",
"0.56114995",
"0.55208504",
"0.5510754",
"0.549781",
"0.548447... | 0.6630967 | 1 |
Method to add the team names and their goals to the bracket for the selected year | async addTeamNames(activeYear){
let YearData = this.cupData.filter(d => d.Year == activeYear);
this.writeWinner(YearData);
// If the year is 1950 write the message for why no bracket is drawn.
if(activeYear == 1950){
this.write1950Message();
return;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addYearOption() {\n\t\tlet currentTime = new Date();\n\t\tlet currentYear = currentTime.getFullYear();\n\n\t\tfor (let i = 0; i < 4; i++) {\n\t\t\tlet yearOption = document.createElement(\"option\");\n\t\t\tyearOption.setAttribute(\"value\", currentYear + i)\n\t\t\tyearOption.innerHTML = currentYear + i;\... | [
"0.59763646",
"0.59387594",
"0.5725181",
"0.56998324",
"0.5687554",
"0.56625557",
"0.5649473",
"0.56077826",
"0.5598512",
"0.5564229",
"0.5553842",
"0.5534359",
"0.5517943",
"0.5517943",
"0.5516903",
"0.55075234",
"0.5495671",
"0.5480623",
"0.54763216",
"0.5470096",
"0.546244... | 0.6942175 | 0 |
Writes the round of 16 matchup data to the bracket in the correct spot | async writeR16Data(Matchups){
let that = this;
let HomeNames = d3.select("#R16HomeNames").selectAll('text');
let joined = HomeNames.data(Matchups).join('text')
joined.attr("x", (d, i) => {
if (i < 4)
return that.buffer + that.lineThickness;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function set16(data) {\n view.setUint16(pos, data, true);\n pos += 2;\n }",
"write(whatToWriteOnPaper,writtenOnPaper){cov_14q771vu2z.f[1]++;// Used to figure out what letters I can write\nlet whatICanWrite=(cov_14q771vu2z.s[3]++,this.pointDegradation(whatToWriteOnPaper));// Write the letters of the ... | [
"0.5425019",
"0.533817",
"0.5176163",
"0.51391536",
"0.5092945",
"0.50278443",
"0.5018465",
"0.500585",
"0.49761152",
"0.49260363",
"0.49077767",
"0.49024874",
"0.48995018",
"0.48794013",
"0.48794013",
"0.48733202",
"0.48497346",
"0.48497346",
"0.48475435",
"0.48300365",
"0.4... | 0.56798613 | 0 |
Writes the quarterfinal matchup data to the bracket in the correct spot | async writeQFData(Matchups){
let that = this;
let HomeNames = d3.select("#QFHomeNames").selectAll('text');
let joined = HomeNames.data(Matchups).join('text')
joined.attr("x", (d, i) => {
if (i < 2)
return that.buffer + that.lineLength + that.lineThickn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"quarterAfter(quarters){\n if(! quarters) return this;\n this.addQuarters(quarters);\n return this;\n }",
"async writeFinalData(Matchup){\n let that = this;\n let HomeNames = d3.select(\"#FinalHomeNames\").selectAll('text');\n let joined = HomeNames.data(Matchup).join(... | [
"0.52866364",
"0.5278609",
"0.49542317",
"0.49533406",
"0.48930606",
"0.48897812",
"0.48076022",
"0.47727767",
"0.47622547",
"0.47019607",
"0.4661878",
"0.45607093",
"0.4555999",
"0.45128372",
"0.4509966",
"0.45022118",
"0.44758555",
"0.44594505",
"0.44590092",
"0.44576707",
... | 0.55088437 | 0 |
Writes the final matchup data to the bracket in the correct spot | async writeFinalData(Matchup){
let that = this;
let HomeNames = d3.select("#FinalHomeNames").selectAll('text');
let joined = HomeNames.data(Matchup).join('text')
joined.attr("x", (d, i) => {
return that.buffer + that.lineLength * 3 + that.lineThickness;})
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function saveMatchFile()\n{\n var fileData = header;\n \n for(var allianceIndex = 0; allianceIndex < $alliance.length; allianceIndex++)\n {\n for(var teamIndex = 0; teamIndex < $alliance[allianceIndex].length; teamIndex++)\n {\n // Team number\n fileData += $alliance... | [
"0.533639",
"0.5138407",
"0.5097933",
"0.5097933",
"0.5097933",
"0.5097933",
"0.5097933",
"0.5097933",
"0.5097933",
"0.5097933",
"0.50594264",
"0.5033872",
"0.50315",
"0.50315",
"0.50315",
"0.50315",
"0.50315",
"0.50315",
"0.50315",
"0.50315",
"0.50315",
"0.50315",
"0.503... | 0.54022634 | 0 |
Writes a message explaining to the user why the 1950 would cup does not have a knockout round bracket drawn | async write1950Message(){
let that = this;
let bracketSVG = d3.select("#bracket-svg");
let text = bracketSVG.append('text');
text.attr("x", (d, i) => {
return that.buffer + that.lineLength * 4;})
.attr("y", (d, i) => {
return that.buffer - that... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function printInputError(){\n happy.innerHTML = `<p>Positive integers only silly 😜</p>`;\n}",
"function tryAgainMessage() {\n textSize(40);\n fill(0, 102, 153);\n textStyle(BOLD);\n textAlign(LEFT);\n text(\"Sad Octocat. Click the button if you change your mind.\", octoX, octoY);\n}",
"function writeM... | [
"0.61328954",
"0.5988128",
"0.5902616",
"0.5876019",
"0.5876019",
"0.5858948",
"0.58403295",
"0.5832892",
"0.5827755",
"0.582568",
"0.5816535",
"0.5786886",
"0.57848597",
"0.5769458",
"0.57686585",
"0.5766143",
"0.5738123",
"0.57296515",
"0.5723822",
"0.56963867",
"0.56887615... | 0.6131813 | 1 |
Reset Sequence hide graphs, reset, then show graphs | function resetAll() {
hideGraphs();
myTimer = setInterval(resetHideWait, 100);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"reset_graphs() {\n d3.selectAll(\".sourcegraph-container\").remove()\n }",
"function resetGraph() {\r\n clearTimeout(barTimer);\r\n clearTimeout(graphTimers);\r\n\r\n graphTimer = setTimeout(function() {\r\n displayGraph(bars,0);\r\n }, 200);\r... | [
"0.6736251",
"0.67320186",
"0.6686899",
"0.66451925",
"0.6588757",
"0.64283",
"0.6374747",
"0.63670576",
"0.6352491",
"0.63445354",
"0.6310116",
"0.62864053",
"0.6229603",
"0.62019",
"0.61826736",
"0.617716",
"0.612956",
"0.6121558",
"0.61133873",
"0.6110205",
"0.6106094",
... | 0.7566758 | 0 |
Utility Functions load all graph data loaddone will be set to maxGraphs when all are complete don't load any graph twice | function loadGraphs() {
loaddone = 0;
loadDataFile("1","v"); // voltage
loadDataFile("2","i"); // impedance
loadDataFile("3","t"); // temp
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function loadAllCharts() {\n loadTopN(\"Sources\", 10);\n loadTopN(\"Victims\", 10);\n loadTable();\n}",
"function ani_loop2 () {\n var q = d3.queue();\n if (graph_num == head) {\n q.defer(d3.json, \"/graph/\" + userfile + \"/\" + userfile + \"_graph_\" + graph_num + \".js\");\n }\n i... | [
"0.6934604",
"0.6904853",
"0.6502701",
"0.6465873",
"0.6452025",
"0.6333491",
"0.63262594",
"0.632423",
"0.6163977",
"0.6096646",
"0.6069175",
"0.6004271",
"0.5989576",
"0.5972522",
"0.58900565",
"0.5762536",
"0.5748482",
"0.57460284",
"0.574282",
"0.5740676",
"0.57392114",
... | 0.7579808 | 0 |
slide all graphs up in order and set global done variable hidedone will be set to maxGraphs when all are complete | function hideGraphs() {
hidedone = 0;
$('#graphdiv3').slideUp(200, function() {
$('#graphdiv2').slideUp(200, function () {
$('#graphdiv1').slideUp(200, function () {
$('#charts').css('left', '20px');
setDivSize();
hidedone = maxGraphs;
});
});
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function showGraphs() {\n\t\tshowdone = 0;\n\t\tshowOneGraph(1);\n\t\tshowOneGraph(2);\n\t\tshowOneGraph(3);\n\t}",
"function resetAll() {\n\t\thideGraphs();\n\t\tmyTimer = setInterval(resetHideWait, 100);\n\t}",
"function printGraphs(i) {\n // Fade out specific graphs\n $('#geomap').fadeOut('fast');\n ... | [
"0.70269334",
"0.61203986",
"0.6075233",
"0.59173566",
"0.5911315",
"0.5875771",
"0.58417886",
"0.5830731",
"0.5792365",
"0.5781587",
"0.5768267",
"0.5741954",
"0.57059646",
"0.56957096",
"0.5684291",
"0.5675287",
"0.5665554",
"0.56382734",
"0.5624412",
"0.56018955",
"0.56013... | 0.7961842 | 0 |
Reset height of all divs based on how many graphs there are | function setDivSize() {
var wsize = getWindowSize();
var winh = wsize[0] - headerH - 80;
var winw = wsize[1] - 110;
$('#controls').css('height','80').css('width',winw);
for (var i=1; i<=maxGraphs; i++ ) {
$('#graphdiv'+i).css('height','240px').css('width',winw);
$('#chart'+i).css('height','240px').css('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function resetHeight() {\n var height = 0;\n\n for (var i = 0; i < images.length; i++) {\n var childHeight = Number.parseFloat(window.getComputedStyle(images[i]).getPropertyValue(\"height\"));\n if (childHeight > height) {\n height = childHeight;\n }\n ... | [
"0.69111985",
"0.65981543",
"0.65513784",
"0.65236694",
"0.64868057",
"0.6467923",
"0.645614",
"0.6455774",
"0.642359",
"0.6417179",
"0.63393575",
"0.63277197",
"0.63277197",
"0.63277197",
"0.63277197",
"0.6323172",
"0.6309096",
"0.63085645",
"0.6292594",
"0.6292594",
"0.6292... | 0.6849204 | 1 |
Returns a list of all avaiable move locations for any piece location is a number between 1 and 64. Number based starting in the top left corner at 1 board an array of length 64 that represents the checker board king if the piece is a king or not | function availableMovements(location, board, king = false, opponentMarker = "opponentPiece", emptyMarker = "empty") {
let movements = [];
let jump = false;
let column = location % 8;
if (location > 8) { //If at top row can't move up!
if (column != 0) {
if (boa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function marker_get_available_moves(elem){\n\tgame_state.available_moves = [];\n\tvar j = +elem.getAttribute(\"row\");\n\tvar i = +elem.getAttribute(\"square\");\n\tif (board_mirror[j][i][1][0] == 'white'){\n\t\t//Try statements ignore squares not on the board\n\t\tmarker_check_this_move(j, i, 1, -1, 'red', 'botto... | [
"0.7329212",
"0.71621126",
"0.69421506",
"0.6934262",
"0.6921376",
"0.6916959",
"0.6835722",
"0.68294865",
"0.67855567",
"0.6765127",
"0.6733383",
"0.6719245",
"0.67057526",
"0.6690694",
"0.6671335",
"0.6669493",
"0.6657745",
"0.66201156",
"0.6594139",
"0.65912604",
"0.657068... | 0.73453224 | 0 |
Clear all pieces from board | function clearBoard() {
allPieceLocations.forEach(function(x) {
document.getElementById(x).classList.remove("avaliableMove");
document.getElementById(x).classList.remove("redKing");
document.getElementById(x).classList.remove("redPiece");
document.getElementById(x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function clearPieceBoard() {\n for(var i = 0; i < 3; i++)\n for(var j = 0; j < 7; j++)\n drawPixelNext( j, i, boardColour);\n}",
"function clearBoard() {\n\tfor (i = 0; i < blockArr.length; i++) {\n\t\tfor (j = 0; j < blockArr[i].length; j++) {\n\t\t\tfor (k = 0; k < blockArr[i][j].length; k... | [
"0.8296132",
"0.79318076",
"0.7922278",
"0.79151636",
"0.7861007",
"0.77580917",
"0.7756498",
"0.77262616",
"0.77212787",
"0.76609623",
"0.76387715",
"0.7629837",
"0.7611079",
"0.7609314",
"0.7609314",
"0.7600792",
"0.7596315",
"0.7594782",
"0.75679",
"0.75649893",
"0.7557943... | 0.8087692 | 1 |
This function will unhighlight the current code in the Instruction Assembly Panel (since we move onto the next instruction) $ is abbreviated to be: document.querySelect() Find all HTML elements with id:code_numberHere Retrieve the address name from the registers object and tap into the rip property which will retrieve ... | function undoHighlightCurrentCode() {
// Change the css property by applying no highlighted background color
$("#code_" + registers["rip"]).css("background-color", "");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function clearCodeSelection() {\n\n}",
"function highlightCurrentCode() {\n // Change the css property by applying a highlighted background color of orange\n $(\"#code_\" + registers[\"rip\"]).css('background-color', '#df9857');\n}",
"function unhighlight(unareaCode) { console.log(\"unhighlight from deleting... | [
"0.60899687",
"0.6037999",
"0.5518237",
"0.5453699",
"0.5210502",
"0.5178003",
"0.50231946",
"0.500974",
"0.500828",
"0.500707",
"0.49942285",
"0.49812794",
"0.49641436",
"0.49576795",
"0.4921591",
"0.4916973",
"0.49023232",
"0.48973322",
"0.48973322",
"0.48844978",
"0.488405... | 0.6851448 | 0 |
gets table data from the blockchain and saves it into the component state: "noteTable" | getTable() {
const eos = Eos();
eos.getTableRows({
"json": true,
"code": "notechainacc", // contract who owns the table
"scope": "notechainacc", // scope of the table
"table": "notestruct", // name of the table as specified by the contract abi
"limit": 100,
}).then(result... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getTable() {\n const eos = Eos();\n eos.getTableRows({\n \"json\": true,\n \"code\": \"{{ cookiecutter.default_account }}\", // contract who owns the table\n \"scope\": \"{{ cookiecutter.default_account }}\", // scope of the table\n \"table\": \"notestruct\", // name of the table as... | [
"0.7344584",
"0.6255344",
"0.6199748",
"0.6152045",
"0.6113818",
"0.6104488",
"0.6103157",
"0.6057066",
"0.60413635",
"0.59795594",
"0.59625924",
"0.5962276",
"0.5948888",
"0.58930457",
"0.58622324",
"0.580578",
"0.58057463",
"0.5783933",
"0.57470965",
"0.5740812",
"0.5726989... | 0.7437887 | 0 |
coche et decoche input checkbox par son id=versionId | function selectInput(versionId){
var check = document.createAttribute("checked");
check.nodeValue = "checked";
if(document.getElementById(versionId).getAttribute("checked") == "checked"){
document.getElementById(versionId).removeAttributeNode(check);
}
else{
document.getElementById(versionId).setAttr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function chg_checkbox_posisi(){\n var id = \"#\"+tmp_id_posisi;\n console.log(id);\n $(id).prop('checked', true);\n}",
"function ui_setChecked(id_ckbox){\n\tvar _ckbox = ui_getObjById(id_ckbox);\n\t_ckbox.checked = true;\n}",
"function editInsuranceAccepted () {\n var vehicleClassIndependentD... | [
"0.63209087",
"0.6111157",
"0.6034692",
"0.600975",
"0.59413075",
"0.5925136",
"0.5917552",
"0.5867696",
"0.5843235",
"0.58349234",
"0.5827846",
"0.58075553",
"0.58000845",
"0.57679975",
"0.57370764",
"0.57365566",
"0.5724582",
"0.56989676",
"0.5691077",
"0.5685304",
"0.56756... | 0.6966752 | 0 |
param idTab : id du "li" onglet DOIT etre du type xxx_yyyy ou xxx est l'id du div ID qui englobe le tout a revoir, le code en dur pour l'id "boxContent" est un peu con, et empeche plusieur tab dans la page | function tabChangeUrl(idTab, urlPage, loadIn) {
var tab = document.getElementById(idTab);
// recup de l'id du div englobant
tmp = idTab.split('_');
var idDivEnglobant = tmp[0];
var divContener = document.getElementById( idDivEnglobant ); //$(tab).parent().parent();
// on sort si l'onglet e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function AjaxLoad($tabid) {\r\r\n\t\t\t\r\r\n\t\t\t// Filename Extension\r\r\n\t\t\t$ext = $(e).find('.button-holder').find(\"div[data-tabid='\"+ $tabid +\"']\").attr('data-ext');\r\r\n\t\t\t\r\r\n\t\t\tif ( $ext === undefined ) {\r\r\n\t\t\t\t$ext='php';\r\r\n\t\t\t}\r\r\n\t\t\t\r\r\n\t\t\t// New content file\r\r... | [
"0.65395314",
"0.6458467",
"0.62430733",
"0.6228535",
"0.6162067",
"0.6160005",
"0.61538756",
"0.6106428",
"0.60921675",
"0.608248",
"0.60353345",
"0.6021901",
"0.5991001",
"0.59877294",
"0.5980986",
"0.597394",
"0.59462106",
"0.5880768",
"0.58645105",
"0.5861471",
"0.5823543... | 0.6699582 | 0 |
!Calculate function TODO: Add a calculte function for calculate the health states and needs. | function calculateHealth() {
let heightType = document.querySelector("input[name='heightType']:checked").value;
let calculateItemChecked = document.querySelector("input[name='calculate']:checked").value;
let age = Number(inputAge.value);
let weight = Number(inputWeight.value);
let gender = docu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getHealth() {\n let opsTotalHealth = this.operators.reduce((acc, o) => (acc + o.getHealth()), 0);\n let tmpH = this.health + opsTotalHealth / this.operators.length;\n return tmpH < 0 ? 0 : tmpH;\n }",
"calculateShit() {\n\t\t// this state is a string, remember that\n\t\tconst arr = [\n\t\... | [
"0.69805145",
"0.6713249",
"0.6635671",
"0.6546075",
"0.63954115",
"0.63954115",
"0.63552815",
"0.6349777",
"0.6250427",
"0.6221467",
"0.6064093",
"0.60395116",
"0.603922",
"0.6036672",
"0.6010396",
"0.6000514",
"0.5996929",
"0.59575856",
"0.59319144",
"0.5906877",
"0.5895941... | 0.7037797 | 0 |
TODO: A function to showing the BMI state Table | function showBMIStateTable() {
if (BMIStateTable.style.display === "none") {
BMIStateTable.style.display = "block";
BMITableBtn.innerHTML = "Hide BMI Table"
} else {
BMIStateTable.style.display = "none";
BMITableBtn.innerHTML = "Show BMI Table"
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getBMInfo() {\n if (this.getBMIRatio() >= 25) {\n return \"Overweight\";\n } else if(this.getBMIRatio() > 18.5){\n return \"Healthy\";\n }else{\n return \"Underweight\";\n }\n }",
"func... | [
"0.65816325",
"0.6569519",
"0.62733024",
"0.626826",
"0.6263194",
"0.5886887",
"0.58703494",
"0.5867595",
"0.5838613",
"0.58283246",
"0.57892746",
"0.57795984",
"0.5773744",
"0.5765748",
"0.5728558",
"0.57162577",
"0.568875",
"0.5684014",
"0.5667493",
"0.56294495",
"0.5594345... | 0.68981177 | 0 |
This is for text that flows Left to Right | function leftToRight() {
_displaymode |= LCD_ENTRYLEFT;
command(LCD_ENTRYMODESET | _displaymode);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function jleft() {\n\treachtext.document.execCommand('justifyLeft',false,null);\n \n}",
"function jright() {\n\treachtext.document.execCommand('justifyRight',false,null);\n \n}",
"function rightToLeft() {\n _displaymode &= ~LCD_ENTRYLEFT;\n command(LCD_ENTRYMODESET | _displaymode);\n}",
"text_left()\n\t{... | [
"0.63748926",
"0.629543",
"0.61959344",
"0.61570644",
"0.6021798",
"0.6012122",
"0.6009017",
"0.5956781",
"0.5955866",
"0.59369516",
"0.5931444",
"0.5909434",
"0.5887638",
"0.5806579",
"0.5800539",
"0.57895315",
"0.5778854",
"0.5744375",
"0.57265866",
"0.57038134",
"0.5683846... | 0.63790405 | 0 |
Allows us to fill the first 8 CGRAM locations with custom characters | function createChar(location, charmap) {
location &= 0x7; // we only have 8 locations 0-7
command(LCD_SETCGRAMADDR | (location << 3));
for (var i=0; i<8; i++) {
write(charmap[i]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function add_char(ch,values) { \n var value = base64_values.indexOf(ch); \n var x = Math.floor(value / 8); \n var y = value % 8; \n values.push(x); \n values.push(y); \n }",
"function parseCFFCharstring(font, glyph, code) {\n var c1x;\n var c1y;\n var... | [
"0.62493324",
"0.61106277",
"0.6035376",
"0.598701",
"0.5948194",
"0.58059245",
"0.57782555",
"0.57693917",
"0.572634",
"0.5725206",
"0.56061906",
"0.55999655",
"0.55753773",
"0.55602163",
"0.55588853",
"0.5544357",
"0.5544276",
"0.55331737",
"0.55227053",
"0.5512764",
"0.550... | 0.6497328 | 0 |
Iterate over XML nodes and arrange them in to columns | function arrangeXMLItems(xml){
var items = [];
$(xml).find("item").each(function() {
var $this = $(this),
item = {
title: $.trim($this.find("title").text()),
link: $.trim($this.find("link").text()),
description: $.trim($this.find("description").text()),
pubDate: $.trim($this.find("pubDate").text(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function xmlParser(xml) {\n let vps = [];\n let normies = [];\n $(xml)\n .find(\"directory\")\n .find(\"employees\")\n .find(\"employee\")\n .each(function (i, element) {\n let department = element.children.department.innerHTML;\n let title = element.children.jobTitle.innerHTML;\n let... | [
"0.5321554",
"0.52413523",
"0.5200344",
"0.51711076",
"0.5157047",
"0.51125896",
"0.500059",
"0.49884674",
"0.49735603",
"0.49392003",
"0.4897367",
"0.480059",
"0.47581923",
"0.47398803",
"0.47266778",
"0.47248664",
"0.47239876",
"0.46923113",
"0.4687903",
"0.46809158",
"0.46... | 0.64242625 | 0 |
Get Items from an xml file | function getItemsFromFile(path) {
$.get(path, function(data) {
var xml = $(data);
arrangeXMLItems(xml);
},
'xml');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"get items() {\n return this.getAllElements('item');\n }",
"function getXML(file){\n reader.onload = function (file) {\n var xmlDoc = $.parseXML( file.target.result),\n $xml = $( xmlDoc );\n $xml.find( \"result\" ).each(function () {\n $title = $(this).find( \"title\" ).text();\n $url = $(... | [
"0.61151177",
"0.6056959",
"0.59193176",
"0.5797343",
"0.5782133",
"0.57724017",
"0.57599866",
"0.5715333",
"0.5706648",
"0.56697917",
"0.5588169",
"0.5577911",
"0.5577911",
"0.55307555",
"0.55102426",
"0.5491207",
"0.54840386",
"0.5482359",
"0.5409946",
"0.54094386",
"0.5358... | 0.74701184 | 0 |
helper function is used to show the task which was assigned to you by someone | task_assigned_by(){
var user_id = Session.get('mySession');
//var assign_by = Session.get('task_assign_by');
//console.log(assign_by);
//var find_table = task_assignment.find({ }).fetch();
//console.log(find_table);
Meteor.subscribe('fetch_assigned_task_by', user_id);
return task_assignment.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function TasksAssignedToUser() {\n document.getElementById('myprofile-assignedtasks').innerHTML = '<div class=\"blue profile-uppercase\">You are currently assigned to the following tasks:</div>';\n let TasksExist = false;\n for (i = 0; i < alltasks.length; i++) {\n let currenttaskusers = alltasks[i... | [
"0.7075714",
"0.6534128",
"0.6509028",
"0.6421321",
"0.6402761",
"0.6391718",
"0.6375249",
"0.61477107",
"0.61440647",
"0.61070746",
"0.6088594",
"0.60779375",
"0.6040305",
"0.6024319",
"0.6015133",
"0.59477544",
"0.5940188",
"0.59390426",
"0.5928856",
"0.59079725",
"0.587531... | 0.66739255 | 1 |
Run E2E test by Cypress. Then generate test report. | async function runTests() {
await fse.remove("cypress/report");
await cypress.run({
spec: "cypress/integration/**/*.spec.ts",
});
const jsonReport = await merge({
reportDir: "cypress/report",
});
await generator.create(jsonReport, {
reportDir: "cypress/report",
reportTitle: "Bridge-X E2E All... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function runE2e() {\n // const skipList = skipRegEx ? [skipRegEx] : [];\n // // https://github.com/dart-lang/site-webdev/issues/703\n // if (process.env.WEB_COMPILER === 'dartdevc') {\n // skipList.push('toh-[56]|lifecycle-hooks');\n // }\n // skipRegEx = skipList.join('|');\n\n var promise;... | [
"0.6208428",
"0.61462057",
"0.6038964",
"0.60313493",
"0.60298324",
"0.5755409",
"0.5660387",
"0.55095595",
"0.5435221",
"0.5392042",
"0.5391913",
"0.5391913",
"0.536819",
"0.53339297",
"0.5317653",
"0.5311928",
"0.52830255",
"0.52572894",
"0.52545846",
"0.52501756",
"0.52445... | 0.73001516 | 0 |
end of rip PostCSSPlugin constructor | function PostCSSPlugin(optionsFn) {
this.name = 'ember-cli-postcss';
this.optionsFn = optionsFn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"constructor () {\n this.cssRules = []\n this.classes = []\n }",
"constructor() {\n this.requiresNewCssExtract = false;\n }",
"insertCss() { }",
"styles() { }",
"get css() {\n\t\t\t\treturn require( './parser-postcss' ).parsers.css;\n\t\t\t}",
"function cssnano() {\n return plugins.css... | [
"0.64637774",
"0.6073271",
"0.5906919",
"0.5901504",
"0.5890922",
"0.582776",
"0.5781132",
"0.57627183",
"0.5755858",
"0.5697042",
"0.56405884",
"0.55055505",
"0.5474035",
"0.5472866",
"0.5465753",
"0.5443253",
"0.5390116",
"0.5385079",
"0.53768337",
"0.5362011",
"0.53618455"... | 0.6660521 | 0 |
Given a step, find the best librato resolution to use. Example: (s) : cubism step avail_rsts 1 60 900 3600 | (s) | | | [low_res top_res] return: low_res (60) | function find_ideal_librato_resolution(step) {
var highest_res = avail_rsts[0],
lowest_res = avail_rsts[avail_rsts.length]; // high and lowest available resolution from librato
/* If step is outside the highest or lowest librato resolution, pick them and we are done */
if (step >= lowest_res)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calculateStepAI(){\r\n\tvar cur_score = getScore(OPPONENT);\r\n\t\r\n\tvar best_score = cur_score;\r\n var best_step = null;\r\n\tfor (var i = 0; i<field_height; i++)\r\n\t\tfor (var j = 0; j<field_width; j++){\r\n\t\t\tif (game_field[i][j] == OPPONENT){\r\n\t\t\t\tvar step_res = bestStepForSpot(j, i);... | [
"0.57840675",
"0.53379786",
"0.53033686",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
"0.5216845",
... | 0.8145544 | 1 |
Wraps the specified request implementation, and shifts time by the given offset. | function cubism_metricShift(request, offset) {
return function(start, stop, step, callback) {
request(new Date(+start + offset), new Date(+stop + offset), step, callback);
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function adjustTime(time) {\n return time + 60 * (serverTimeZoneOffset + localTimeZoneOffset);\n}",
"function calcTime(offset) {\r\n // create Date object for current location\r\n d = new Date();\r\n // convert to msec\r\n // add local time zone offset \r\n // get UTC time in msec\r\n utc = ... | [
"0.54596186",
"0.52030843",
"0.5183292",
"0.5129561",
"0.5129561",
"0.5079565",
"0.5079565",
"0.49511713",
"0.4928564",
"0.49233934",
"0.4895883",
"0.4868578",
"0.4848059",
"0.4841161",
"0.47806785",
"0.4760388",
"0.47346216",
"0.47267735",
"0.4724994",
"0.47224033",
"0.47209... | 0.6437672 | 1 |
I worked on this challenge [by myself]. This challenge took me [1] hour. Pseudocode 1. Create a super_fizzbuzz method which take an array and test FizzBuzz based on that array. Solution | function super_fizzbuzz(array) {
for (var num in array) {
var output = "";
if ((array[num] % 5 === 0) && (array[num] % 3 === 0 )) {
output = "FizzBuzz";
} else if (array[num] % 5 === 0) {
output = "Buzz";
} else if (array[num] % 3 === 0) {
output = "Fizz";
}
console.log(output || array[num]);
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function superFizzBuzz(array){\n\tfizzArray = [];\n\tfor (var i = 0; i < array.length; i++) {\n\t\tif (array[i] % 15 === 0) {\n\t\t\tfizzArray.push(\"FizzBuzz\");\n\t\t}\n\t\telse if (array[i] % 3 === 0) {\n\t\t\tfizzArray.push(\"Fizz\");\n\t\t}\n\t\telse if (array[i] % 5 === 0) {\n\t\t\tfizzArray.push(\"Buzz\");\... | [
"0.83613193",
"0.770047",
"0.7610351",
"0.7583251",
"0.7551294",
"0.75274545",
"0.7514261",
"0.75124615",
"0.7495841",
"0.7461109",
"0.7414744",
"0.7408429",
"0.7359538",
"0.7347577",
"0.73149896",
"0.72977936",
"0.72625494",
"0.7221023",
"0.7199889",
"0.7194731",
"0.71943474... | 0.7911707 | 1 |
Braintree card payment using nonce | cardPayment(nonce, invoice, cb) {
console.log(invoice);
// Check of client is connected
if (!this.userId) {
throw new Meteor.Error('payment', '403: Non authorized');
}
// Check transimtted data consistency
check(nonce, String);
check(invoice, SD.Structure.InvoiceSchema);
check(cb, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static createMerchantAccount(cid, data) {\n console.log('\\n braintree create merchant data ', data, ' ***\\n\\n')\n const gateway = BraintreeHelper.getBraintreeRef();\n\n const descriptor = process.env.braintree_descriptor;\n if (!descriptor || descriptor == '') {\n des... | [
"0.6501662",
"0.64764965",
"0.6357474",
"0.61660916",
"0.606274",
"0.5953668",
"0.5831162",
"0.576727",
"0.57301474",
"0.57298726",
"0.57006556",
"0.5668911",
"0.56552565",
"0.56455564",
"0.5631688",
"0.56231606",
"0.56029147",
"0.55949616",
"0.5567432",
"0.55486053",
"0.5537... | 0.6909063 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.