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 |
|---|---|---|---|---|---|---|
Displays line graph, disables line graph button, and reenables heat map button | function viewLineGraph() {
mapView = false;
isPlaying = false;
d3.select("#heat-map-button")
.classed("enabled-button", true)
.classed("disabled-button", false)
.attr("disabled", null);
d3.select("#line-graph-button")
.classed("enabled-button", false)
.classed("disabled-button", true)
.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function showLineGraph() {\n g.selectAll(\"g\")\n .selectAll(\".cloudword\")\n .transition()\n .duration(0)\n .delay(function (d, i) {\n return 400 * (1 / parseInt(d.value));\n })\n .style(\"opacity\", 0);\n\n g.selectAl... | [
"0.6390734",
"0.6289463",
"0.61384976",
"0.6113387",
"0.6067995",
"0.6039065",
"0.6007785",
"0.60067177",
"0.5969702",
"0.59568363",
"0.5926288",
"0.5907959",
"0.58843565",
"0.5884043",
"0.5868362",
"0.5836639",
"0.58319914",
"0.5831887",
"0.5819611",
"0.5813979",
"0.5807226"... | 0.7462548 | 0 |
Sets the title of the line graph according to the selected data set and year | function updateLineGraphTitle(data_option, year) {
var title = lineGraphTitles[data_option] + " in " + year;
d3.select("#lineGraphTitle").text(title);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function showYearTitles() {\n // Another way to do this would be to create\n // the year texts once and then just hide them.\n let yearsData = d3.keys(yearsTitleX);\n let years = svg.selectAll('.year').data(yearsData);\n\n years\n .enter()\n .append('text')\n .attr('class', 'year')\n ... | [
"0.67832226",
"0.67202765",
"0.66690964",
"0.6547108",
"0.6472457",
"0.63920873",
"0.63858825",
"0.6367011",
"0.62887657",
"0.6255392",
"0.6254971",
"0.6254971",
"0.6254971",
"0.6253984",
"0.6253984",
"0.6253984",
"0.6248769",
"0.62330264",
"0.62330264",
"0.6196947",
"0.61416... | 0.8252056 | 0 |
ENCODE_UTF8 Encode string as UTF8 only if it contains a character of 0x9D (Unicode OPERATING SYSTEM COMMAND) or a character greater than 0xFF. This permits all strings consisting exclusively of 8 bit graphic characters to be encoded as themselves. We choose 0x9D as the sentinel character as opposed to one of the more l... | function encode_utf8(s) {
var i, necessary = false;
for (i = 0; i < s.length; i++) {
if ((s.charCodeAt(i) == 0x9D) ||
(s.charCodeAt(i) > 0xFF)) {
necessary = true;
break;
}
}
if (!necessary) {
return s;
}
return String.fromCharC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function encodeUTF8( str ){\n if(!str) str = \"\";\n // use regular expressions & String.replace callback function for better efficiency\n // than procedural approaches\n str = str.replace(\n /[\\u0080-\\u07ff]/g, // U+0080 - U+07FF => 2 bytes 110yyyyy, 10zzzzzz\n function(c) {\n var cc = c.c... | [
"0.7006583",
"0.685201",
"0.68435633",
"0.6817055",
"0.6800616",
"0.67949414",
"0.6794838",
"0.677961",
"0.6743988",
"0.6731271",
"0.672756",
"0.66939425",
"0.6638227",
"0.66189206",
"0.65413916",
"0.65413916",
"0.65413916",
"0.65413916",
"0.65374476",
"0.65178746",
"0.646981... | 0.7418586 | 0 |
DECODE_UTF8 Decode a string encoded with encode_utf8 above. If the string begins with the sentinel character 0x9D (OPERATING SYSTEM COMMAND), then we decode the balance as a UTF8 stream. Otherwise, the string is output unchanged, as it's guaranteed to contain only 8 bit characters excluding 0x9D. | function decode_utf8(s) {
if ((s.length > 0) && (s.charCodeAt(0) == 0x9D)) {
return utf8_to_unicode(s.substring(1));
}
return s;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _utf8Decode(utf8str) {\n var str = new Array();\n var code,\n code2,\n code3,\n code4,\n j = 0;\n for (var i = 0; i < utf8str.length; ) {\n code = utf8str.charCodeAt(i++);\n if (code > 127) code2 = utf8str.charCodeAt(i++);\n if (code > 223) code3 = utf8str.charCodeAt(i++);\n if ... | [
"0.6835115",
"0.6760739",
"0.6756851",
"0.6680904",
"0.66641855",
"0.652176",
"0.65048885",
"0.65048885",
"0.6332757",
"0.62509525",
"0.6182441",
"0.6180497",
"0.6180497",
"0.6180497",
"0.61754084",
"0.61101115",
"0.61101115",
"0.61101115",
"0.61101115",
"0.61101115",
"0.6110... | 0.70935875 | 0 |
Output next codegroup, flushing current line if it's full | function armour_cg_outgroup() {
if (acgcl.length > maxLineLength) {
acgt += acgcl + "\n";
acgcl = "";
}
if (acgcl.length > 0) {
acgcl += " ";
}
acgcl += acgg;
acgg = "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function nextLine(){\n\t\t\treturn withResult(\n\t\t\t\tprompt(compiler_level(cmp)),\n\t\t\t\tfunction(data){\n\t\t\t\t\tif (data === false || data === null) // eof\n\t\t\t\t\t\treturn true; // exit the REPL and pass\n\t\t\t\t\treturn withResult(\n\t\t\t\t\t\tcompiler_write(cmp, js_utf8enc(data)),\n\t\t\t\t\t\tfun... | [
"0.61766523",
"0.58959925",
"0.5670494",
"0.55945385",
"0.5531353",
"0.55161756",
"0.55151653",
"0.55118245",
"0.5473933",
"0.5438052",
"0.5437575",
"0.5437575",
"0.5402094",
"0.5385078",
"0.53114647",
"0.5267657",
"0.5255223",
"0.5223866",
"0.52114",
"0.52114",
"0.5182454",
... | 0.5897591 | 1 |
Add a letter to the current codegroup, emitting it when it reaches five letters. | function armour_cg_outletter(l) {
if (acgg.length >= 5) {
armour_cg_outgroup();
}
acgg += l;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addChar() {\n //updateBtnColor();\n document.body.style.backgroundColor = \"white\";\n let code = $(\"code1\").innerText;\n if(code.length < PULL_LENGTH)\n $(\"code1\").innerText += this.innerText;\n }",
"function addLetter(char) {\n if (gameStarted && isalpha(char)) {\n gues... | [
"0.608904",
"0.6014331",
"0.58404326",
"0.56883395",
"0.567346",
"0.5654622",
"0.5606277",
"0.5523328",
"0.5476562",
"0.54757667",
"0.54535025",
"0.5438523",
"0.5383534",
"0.5369628",
"0.5362528",
"0.53197473",
"0.53194994",
"0.5298512",
"0.5292621",
"0.527588",
"0.5264253",
... | 0.67285067 | 0 |
This method circularly shifts the array left by the number of elements given in its parameter. It returns the resulting array and is used for the ShiftRow step. Note that shift() and push() could be used for a more elegant solution, but they require IE5.5+, so I chose to do it manually. | function cyclicShiftLeft(theArray, positions) {
var temp = theArray.slice(0, positions);
theArray = theArray.slice(positions).concat(temp);
return theArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function shiftLeft(arr){\n arr.push(arr.shift(0));\n return arr;\n}",
"function shiftLeft(arr) {\n var temp = 0;\n\n for (i = 0; i < arr.length; i++) {\n temp = arr[i + 1];\n arr[i] = temp\n\n }\n\n arr.pop()\n arr.push(0)\n return arr\n}",
"function ShiftArrayValsLeft(arr... | [
"0.7597138",
"0.7214471",
"0.719168",
"0.71142054",
"0.7067358",
"0.70579183",
"0.70153415",
"0.6998796",
"0.6992478",
"0.69827974",
"0.69177914",
"0.68945307",
"0.6721381",
"0.67124593",
"0.66997236",
"0.669005",
"0.66667885",
"0.66601735",
"0.6618135",
"0.65889305",
"0.6583... | 0.72179055 | 1 |
Multiplies the two elements of GF(2^8) together and returns the result. See the Rijndael spec, but should be straightforward: for each power of the indeterminant that has a 1 coefficient in x, add y times that power to the result. x and y should be bytes representing elements of GF(2^8) | function mult_GF256(x, y) {
var bit, result = 0;
for (bit = 1; bit < 256; bit *= 2, y = xtime(y)) {
if (x & bit)
result ^= y;
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function aes_mul(a, b) {\n\t\tvar res = 0;\n\t\twhile(a > 0) {\n\t\tif((a&1) != 0)\n\t\t\tres = res ^ b;\t\t// \"add\" to the result\n\t\t\ta >>>= 1;\t\t\t// shift a to get next higher-order bit\n\t\t\tb <<= 1;\t\t\t// shift multiplier also\n\t\t}\n\t\t// now reduce it modulo x**8 + x**4 + x**3 + x + 1\n\t\tvar hb... | [
"0.665375",
"0.6644511",
"0.6556873",
"0.6488515",
"0.6390679",
"0.6215695",
"0.619684",
"0.6191411",
"0.61444354",
"0.61343",
"0.60900646",
"0.60826725",
"0.602272",
"0.59041595",
"0.58853763",
"0.5879999",
"0.58798194",
"0.5794241",
"0.57535386",
"0.57535386",
"0.5679773",
... | 0.7331014 | 0 |
Performs the substitution step of the cipher. State is the 2d array of state information (see spec) and direction is string indicating whether we are performing the forward substitution ("encrypt") or inverse substitution (anything else) | function byteSub(state, direction) {
var S;
if (direction == "encrypt") // Point S to the SBox we're using
S = SBox;
else
S = SBoxInverse;
for (var i = 0; i < 4; i++) // Substitute for every byte in state
for (var j = 0; j < Nb; j++)
state[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function Ltransform() {\n decipherMove(\"L\",\"F\",\"R\",\"B\",\"L\",\"F\",\"R\",\"B\",\"L\",\"F\",\"R\",\"B\",\"L\",\"F\",\"R\",\"B\");\n}",
"ceaserCipher(boolean) {\n\n let result = '';\n for (let i = 0; i < this.state.originalText.length; i++) {\n const c = this.state.originalText.ch... | [
"0.6072199",
"0.5476182",
"0.5412321",
"0.52678895",
"0.5230224",
"0.52116036",
"0.5183642",
"0.51448333",
"0.49696502",
"0.4892209",
"0.4779146",
"0.4756937",
"0.47364485",
"0.47310764",
"0.4728437",
"0.47239333",
"0.47040185",
"0.46710712",
"0.466925",
"0.46408156",
"0.4630... | 0.6265715 | 0 |
Performs the row shifting step of the cipher. | function shiftRow(state, direction) {
for (var i = 1; i < 4; i++) // Row 0 never shifts
if (direction == "encrypt")
state[i] = cyclicShiftLeft(state[i], shiftOffsets[Nb][i]);
else
state[i] = cyclicShiftLeft(state[i], Nb - shiftOffsets[Nb][i]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"rotateRowBits( row, shift ) {\n for (var i = 0; i < shift; i++) {\n var last = this.grid[this.width-1][row]; // save last item in row\n for (var x=this.width-1; x > 0; x--) {\n this.grid[x][row] = this.grid[x-1][row];\n }\n this.grid[0][row] = last; // rotate around the corner\n ... | [
"0.718539",
"0.6809242",
"0.655887",
"0.6393117",
"0.60649294",
"0.59564245",
"0.5869015",
"0.58326924",
"0.5774134",
"0.57671785",
"0.5749937",
"0.5742629",
"0.569863",
"0.5686138",
"0.5686138",
"0.5686138",
"0.5686138",
"0.5686138",
"0.5686138",
"0.5686138",
"0.5686138",
... | 0.7213116 | 0 |
Performs the column mixing step of the cipher. Most of these steps can be combined into table lookups on 32bit values (at least for encryption) to greatly increase the speed. | function mixColumn(state, direction) {
var b = []; // Result of matrix multiplications
for (var j = 0; j < Nb; j++) { // Go through each column...
for (var i = 0; i < 4; i++) { // and for each row in the column...
if (direction == "encrypt")
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"_precompute() {\n\t\t\tconst encTable = this._tables[0];\n\t\t\tconst decTable = this._tables[1];\n\t\t\tconst sbox = encTable[4];\n\t\t\tconst sboxInv = decTable[4];\n\t\t\tconst d = [];\n\t\t\tconst th = [];\n\t\t\tlet xInv, x2, x4, x8;\n\n\t\t\t// Compute double and third tables\n\t\t\tfor (let i = 0; i < 256; ... | [
"0.6485405",
"0.6404335",
"0.5658087",
"0.5394345",
"0.53805196",
"0.5259383",
"0.5259383",
"0.52401924",
"0.52166826",
"0.52107626",
"0.52107626",
"0.52107626",
"0.52107626",
"0.52107626",
"0.51851153",
"0.5110744",
"0.50790447",
"0.500721",
"0.49903384",
"0.49695188",
"0.49... | 0.6576809 | 0 |
Adds the current round key to the state information. Straightforward. | function addRoundKey(state, roundKey) {
for (var j = 0; j < Nb; j++) { // Step through columns...
state[0][j] ^= (roundKey[j] & 0xFF); // and XOR
state[1][j] ^= ((roundKey[j] >> 8) & 0xFF);
state[2][j] ^= ((roundKey[j] >> 16) & 0xFF);
state[3][j] ^= ((rou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"pushKeyState(key) {\n for (let e of this.keyStates) {\n if (e.key == key)\n return;\n }\n this.keyStates.push(new KeyValuePair(key, State.Up));\n }",
"updateKey() {\n this.setState({key: this.state.key + 1});\n }",
"function makeStateKey(key){return k... | [
"0.643217",
"0.6285399",
"0.6054746",
"0.5923231",
"0.5799917",
"0.57217604",
"0.57217604",
"0.57217604",
"0.57217604",
"0.57217604",
"0.57217604",
"0.57217604",
"0.57217604",
"0.57217604",
"0.5692538",
"0.5692538",
"0.54873663",
"0.54857755",
"0.5480701",
"0.54597706",
"0.54... | 0.71804047 | 0 |
This function creates the expanded key from the input (128/192/256bit) key. The parameter key is an array of bytes holding the value of the key. The returned value is an array whose elements are the 32bit words that make up the expanded key. | function keyExpansion(key) {
var expandedKey = new Array();
var temp;
// in case the key size or parameters were changed...
Nk = keySizeInBits / 32;
Nb = blockSizeInBits / 32;
Nr = roundsArray[Nk][Nb];
for (var j = 0; j < Nk; j++) // Fill in input key first
expandedKe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function AES_ExpandKey(key) {\n var kl = key.length, ks, Rcon = 1;\n switch (kl) {\n case 16: ks = 16 * (10 + 1); break;\n case 24: ks = 16 * (12 + 1); break;\n case 32: ks = 16 * (14 + 1); break;\n default: \n alert(\"AES_ExpandKey: Only key lengths of 16, 24 or 32 bytes allowed!\");\n }\n fo... | [
"0.7364895",
"0.73623365",
"0.6585259",
"0.6323216",
"0.6011957",
"0.599026",
"0.5975655",
"0.5975655",
"0.5887717",
"0.5871819",
"0.5871819",
"0.5871819",
"0.5871819",
"0.5871819",
"0.5851577",
"0.5820039",
"0.56658095",
"0.56548846",
"0.56381285",
"0.56370187",
"0.5622275",... | 0.7439271 | 0 |
encrypt is the basic encryption function. It takes parameters block, an array of bytes representing a plaintext block, and expandedKey, an array of words representing the expanded key previously returned by keyExpansion(). The ciphertext block is returned as an array of bytes. | function encrypt(block, expandedKey) {
var i;
if (!block || block.length * 8 != blockSizeInBits)
return;
if (!expandedKey)
return;
block = packBytes(block);
addRoundKey(block, expandedKey);
for (i = 1; i < Nr; i++)
Round(block, expandedKey.slice(Nb * i, Nb * (i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function AesEncryptionWrapper(key, plaintext)\r\n{\r\n\tvar xorBlock = GenerateRandomArray(4);\t// generate a random 128-bit IV for the first round\r\n\tif(xorBlock === false)\t\t\t// if there is not enough entropy, abort\r\n\t\treturn false;\r\n\tvar cipher = new AES(key);\r\n\tvar ciphertext = new Array();\t\t//... | [
"0.6411985",
"0.6328135",
"0.6234784",
"0.5940697",
"0.5912183",
"0.56824696",
"0.5663952",
"0.5659431",
"0.56361455",
"0.56361455",
"0.56221163",
"0.5594098",
"0.55851126",
"0.55600303",
"0.5535711",
"0.55335766",
"0.5502312",
"0.5421194",
"0.5416889",
"0.5405461",
"0.539619... | 0.80179155 | 0 |
decrypt is the basic decryption function. It takes parameters block, an array of bytes representing a ciphertext block, and expandedKey, an array of words representing the expanded key previously returned by keyExpansion(). The decrypted block is returned as an array of bytes. | function decrypt(block, expandedKey) {
var i;
if (!block || block.length * 8 != blockSizeInBits)
return;
if (!expandedKey)
return;
block = packBytes(block);
InverseFinalRound(block, expandedKey.slice(Nb * Nr));
for (i = Nr - 1; i > 0; i--)
InverseRound(block, e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function AES_Decrypt(block, key) {\n var l = key.length;\n AES_AddRoundKey(block, key.slice(l - 16, l));\n AES_ShiftRows(block, AES_ShiftRowTab_Inv);\n AES_SubBytes(block, AES_Sbox_Inv);\n for(var i = l - 32; i >= 16; i -= 16) {\n AES_AddRoundKey(block, key.slice(i, i + 16));\n AES_MixColumns_Inv(block)... | [
"0.6679006",
"0.64486486",
"0.60328823",
"0.6029675",
"0.5991263",
"0.5918971",
"0.59183997",
"0.5890024",
"0.5713044",
"0.5676858",
"0.56616914",
"0.5658076",
"0.5657061",
"0.5652449",
"0.5643469",
"0.56174946",
"0.5607375",
"0.55951035",
"0.55834126",
"0.557692",
"0.5536018... | 0.80759466 | 0 |
This function converts a string containing hexadecimal digits to an array of bytes. The resulting byte array is filled in the order the values occur in the string, for example "10FF" > [16, 255]. This function returns an array. | function hexToByteArray(hexString) {
var byteArray = [];
if (hexString.length % 2) // must have even length
return;
if (hexString.indexOf("0x") == 0 || hexString.indexOf("0X") == 0)
hexString = hexString.substring(2);
for (var i = 0; i < hexString.length; i += 2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function hexToBytes(s)\n{\n var digits = \"0123456789abcdef\";\n function n2i(s) { return digits.indexOf(s); };\n var num = s.length / 2;\n var c = [];\n for (var i = 0; i < num; ++i) {\n c[i] = 16 * n2i(s[2*i+0]) + n2i(s[2*i+1]);\n }\n return c;\n}",
"function hex2ba(str) {\n var ba = [];\n //pad wi... | [
"0.7625231",
"0.753476",
"0.7383563",
"0.7339774",
"0.73084766",
"0.7239671",
"0.7212386",
"0.71811384",
"0.7124431",
"0.71065533",
"0.71065533",
"0.7068408",
"0.70203626",
"0.69958574",
"0.69897205",
"0.69677377",
"0.69554764",
"0.6919876",
"0.6912112",
"0.69024163",
"0.6860... | 0.75497437 | 1 |
This function packs an array of bytes into the four row form defined by Rijndael. It assumes the length of the array of bytes is divisible by four. Bytes are filled in according to the Rijndael spec (starting with column 0, row 0 to 3). This function returns a 2d array. | function packBytes(octets) {
var state = new Array();
if (!octets || octets.length % 4)
return;
state[0] = new Array(); state[1] = new Array();
state[2] = new Array(); state[3] = new Array();
for (var j = 0; j < octets.length; j += 4) {
state[0][j / 4] = octets[j];
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function unpackBytes(packed) {\r\n var result = new Array();\r\n for (var j = 0; j < packed[0].length; j++) {\r\n result[result.length] = packed[0][j];\r\n result[result.length] = packed[1][j];\r\n result[result.length] = packed[2][j];\r\n result[result.length] = packed[3][j];\r\n... | [
"0.59644866",
"0.5612778",
"0.5352486",
"0.5261295",
"0.5230397",
"0.51074255",
"0.51074255",
"0.5052165",
"0.49957973",
"0.49957973",
"0.49957973",
"0.49273953",
"0.49254358",
"0.49163184",
"0.48838124",
"0.47955734",
"0.47730768",
"0.47497535",
"0.4709823",
"0.46750984",
"0... | 0.6030851 | 0 |
This function unpacks an array of bytes from the four row format preferred by Rijndael into a single 1d array of bytes. It assumes the input "packed" is a packed array. Bytes are filled in according to the Rijndael spec. This function returns a 1d array of bytes. | function unpackBytes(packed) {
var result = new Array();
for (var j = 0; j < packed[0].length; j++) {
result[result.length] = packed[0][j];
result[result.length] = packed[1][j];
result[result.length] = packed[2][j];
result[result.length] = packed[3][j];
}
return r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static unpackTrytes(packed) {\n const allBits = Converter.bytesToBinary(packed);\n const trytes = [];\n for (let i = 0; i < allBits.length; i += 5) {\n const charBits = allBits.slice(i, i + 5);\n if (charBits.length < 5 || charBits === \"111111\") {\n break... | [
"0.5711822",
"0.56777644",
"0.56423664",
"0.5582452",
"0.55723065",
"0.5535599",
"0.5288347",
"0.5269299",
"0.51122254",
"0.51122254",
"0.5051627",
"0.50468206",
"0.5027111",
"0.5021297",
"0.4997075",
"0.4954444",
"0.4954444",
"0.4954444",
"0.4954444",
"0.49443254",
"0.491320... | 0.8112852 | 0 |
This function takes a prospective plaintext (string or array of bytes) and pads it with pseudorandom bytes if its length is not a multiple of the block size. If plaintext is a string, it is converted to an array of bytes in the process. The type checking can be made much nicer using the instanceof operator, but this op... | function formatPlaintext(plaintext) {
var bpb = blockSizeInBits / 8; // bytes per block
var i;
// if primitive string or String instance
if ((!((typeof plaintext == "object") &&
((typeof (plaintext[0])) == "number"))) &&
((typeof plaintext == "string") || plaintext.in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function AES_pad(plain)\n{\n /* length of padding; block size is 16 bytes (128 bits) */\n var pad_amt = plain.length % 16\n /* always pad */\n if(!pad_amt) {\n pad_amt = 16;\n }\n\n var pad = Array(pad_amt)\n\n /* pad it! (see RFC 5652 for details) */\n for(var i=0; i<pad_amt; ++i) ... | [
"0.5699687",
"0.56435436",
"0.56347674",
"0.5488597",
"0.5337199",
"0.5314327",
"0.52919",
"0.52919",
"0.52919",
"0.52686834",
"0.5176715",
"0.5141915",
"0.510708",
"0.5063649",
"0.50349534",
"0.49955127",
"0.49358487",
"0.48567966",
"0.48514304",
"0.4851365",
"0.48336947",
... | 0.65302604 | 0 |
Returns an array containing "howMany" random bytes. | function getRandomBytes(howMany) {
var i, bytes = new Array();
for (i = 0; i < howMany; i++) {
bytes[i] = prng.nextInt(255);
}
return bytes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function random_data(how_many_times) {\n\trandom_data_array = []\n\tfor (var i = 0; i < how_many_times; i++) {\n\t\tmin = Math.ceil(1)\n\t\tmax = Math.floor(10)\n\t\tnumber_of_letters = Math.floor(Math.random() * (max-min)) + min;\n\t\trandom_data_array.push(Math.random().toString(36).slice(number_of_letters));\n\... | [
"0.6646368",
"0.66260064",
"0.650655",
"0.6470312",
"0.6470312",
"0.6470312",
"0.6470312",
"0.6470312",
"0.6412106",
"0.63496864",
"0.63160366",
"0.62255955",
"0.6212699",
"0.62103814",
"0.61306065",
"0.60753524",
"0.60631216",
"0.6051688",
"0.60469735",
"0.6014189",
"0.59929... | 0.7944462 | 0 |
rijndaelEncrypt(plaintext, key, mode) Encrypts the plaintext using the given key and in the given mode. The parameter "plaintext" can either be a string or an array of bytes. The parameter "key" must be an array of key bytes. If you have a hex string representing the key, invoke hexToByteArray() on it to convert it to ... | function rijndaelEncrypt(plaintext, key, mode) {
var expandedKey, i, aBlock;
var bpb = blockSizeInBits / 8; // bytes per block
var ct; // ciphertext
if (!plaintext || !key)
return;
if (key.length * 8 != keySizeInBits)
return;
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function aesEncrypt(plaintext, key) {\n\tvar bytes = aes.utils.utf8.toBytes(plaintext);\n\tvar buffer = Buffer.from(key);\n\tvar iv = crypto.randomBytes(16);\n\tvar aesCTR = new aes.ModeOfOperation.ctr(buffer, iv);\n\tvar encryptedBytes = aesCTR.encrypt(bytes);\n\tvar encryptedHex = aes.utils.hex.fromBytes(encrypt... | [
"0.6399386",
"0.5655178",
"0.5627416",
"0.5426135",
"0.5383797",
"0.51980436",
"0.5135421",
"0.51326025",
"0.5089845",
"0.50508547",
"0.50439435",
"0.49039066",
"0.4888282",
"0.4841204",
"0.4830567",
"0.4826433",
"0.4808339",
"0.475851",
"0.47213113",
"0.46891958",
"0.4687798... | 0.83021176 | 0 |
rijndaelDecrypt(ciphertext, key, mode) Decrypts the using the given key and mode. The parameter "ciphertext" must be an array of bytes. The parameter "key" must be an array of key bytes. If you have a hex string representing the ciphertext or key, invoke hexToByteArray() on it to convert it to an array of bytes. The pa... | function rijndaelDecrypt(ciphertext, key, mode) {
var expandedKey;
var bpb = blockSizeInBits / 8; // bytes per block
var pt = new Array(); // plaintext array
var aBlock; // a decrypted block
var block; // curren... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function aesDecrypt(ciphertext, key, iv) {\n\tvar encryptedBytes = aes.utils.hex.toBytes(ciphertext);\n\tvar buffer = Buffer.from(key);\n\tvar aesCTR = new aes.ModeOfOperation.ctr(buffer, iv);\n\tvar decryptedBytes = aesCTR.decrypt(encryptedBytes);\n\tvar decryptedText = aes.utils.utf8.fromBytes(decryptedBytes);\n... | [
"0.69684684",
"0.6374781",
"0.6267927",
"0.6095766",
"0.59909344",
"0.59133446",
"0.5823336",
"0.5823135",
"0.5799113",
"0.57665384",
"0.57590294",
"0.5664614",
"0.56303567",
"0.5577174",
"0.5563111",
"0.55273044",
"0.5495538",
"0.54889745",
"0.5460498",
"0.5437995",
"0.54134... | 0.8603884 | 0 |
3 Appends an array of attributes on all the incidents that occured in each polygon. | function collectProperties(polygonGEOJSON, incidentGEOJSON, filterArray) {
var collectedGEOJSON = turf.collect(polygonGEOJSON, incidentGEOJSON, filterArray[0], filterArray[0]);
for (var i = 1; i < filterArray.length; i++) {
collectedGEOJSON = turf.collect(collectedGEOJSON, incidentGEOJSON, filterArray[i], filte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addIndices(polygons) {\n\tvar counter = 0;\n\tpolygons.forEach(function (points) {\n\t\tpoints.forEach(function (point) {\n\t\t\tpoint._index = counter;\n\t\t\tcounter++;\n\t\t});\n\t});\n}",
"function processRegionalData(data){\r\n //empty array to hold attributes\r\n var attributes = [];\r\n /... | [
"0.580097",
"0.53383285",
"0.5317272",
"0.529096",
"0.524272",
"0.52243906",
"0.51394784",
"0.51102984",
"0.5080897",
"0.5057666",
"0.5031559",
"0.49803773",
"0.49709237",
"0.4897392",
"0.4886203",
"0.48768258",
"0.48706383",
"0.4864151",
"0.4858432",
"0.48403078",
"0.4823173... | 0.5745291 | 1 |
fucntion to fetch Ability from the url obtained from api | async function fetchAbility(url) {
try {
const data = await fetch(url);
const detail = await data.json();
const OverAllResult = [];
const Abil = [];
detail.abilities.forEach((ele) => Abil.push(ele.ability.name));
return Abil;
//console.log(Abil);
//.then((det) => console.log(det.moves)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async function ability (ability) {\n // ** making API request using async/await **\n try {\n const url = `http://www.dnd5eapi.co/api/ability-scores/${ability}`\n const response = await axios.get(url, {\n params: {}\n })\n\n // console.log(response)\n displayAbility(response.da... | [
"0.6860654",
"0.6723983",
"0.6122122",
"0.60548514",
"0.5867099",
"0.5699921",
"0.569807",
"0.5696107",
"0.565863",
"0.5648143",
"0.5611762",
"0.5546386",
"0.55181295",
"0.5517249",
"0.5497553",
"0.549235",
"0.54633224",
"0.54633224",
"0.54316264",
"0.54195774",
"0.54122347",... | 0.73432153 | 0 |
fucntion to fetch Weight from the url obtained from api | async function fecthWeight(url) {
try {
const data = await fetch(url);
const detail = await data.json();
return detail.weight;
} catch (err) {
console.log(err);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getCurrWeight() {\n fetch(\"/API/myWeight/last/\" + this.props.idUser)\n .then((res) => {\n return (res.json());\n })\n .then((w) => {\n this.setState({weight: w});\n })\n .catch((err) => console.log(err));\n }",
"func... | [
"0.6661341",
"0.64252484",
"0.6320627",
"0.6304476",
"0.6280368",
"0.62679327",
"0.6179708",
"0.6162488",
"0.61549145",
"0.6116251",
"0.6103873",
"0.6079849",
"0.60577744",
"0.60525364",
"0.6019846",
"0.6007544",
"0.60044724",
"0.5966153",
"0.595925",
"0.58977294",
"0.5890709... | 0.82836926 | 0 |
Get the average of all rates with 2 decimals | function ratesAverage(arr) {
var allRates = arr.reduce(function(acc, elem) {
return (acc += Number(elem.rate));
}, 0);
return parseFloat((allRates / arr.length).toFixed(2));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ratesAverage(arr) {\n let temp = arr.reduce(function(cont, obj) {\n return cont + Number(obj.rate);\n }, 0);\n let result = temp / arr.length;\n let roundedResult = Number(result.toFixed(2));\n return roundedResult;\n }",
"function ratesAverage(array){\n return parseFloat((array.... | [
"0.8170635",
"0.8121628",
"0.8082819",
"0.80740464",
"0.8026046",
"0.7988826",
"0.7988759",
"0.797363",
"0.7955308",
"0.79230714",
"0.78586096",
"0.7849867",
"0.7844249",
"0.7839266",
"0.783795",
"0.7836624",
"0.7808434",
"0.77764815",
"0.77755386",
"0.77654505",
"0.77520835"... | 0.823668 | 0 |
update the block's output with the IP of the specified interface | update() {
var text = this.extractIp(os.networkInterfaces());
this.output.full_text = text;
this.output.short_text = text;
this.emit('updated', this, this.output);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"updateOutput(output) {\n this.output = output;\n }",
"update() {\n\t\tthis.output = this.tempOutput;\n\t}",
"function setIPOverride(value) {\n __params['uip'] = value;\n}",
"function networkInterfaceInformationBtnClick() {\n function printOutput(outputRecordManager) {\n var nicOutputRecords = outp... | [
"0.51884294",
"0.51609576",
"0.5114738",
"0.5025414",
"0.49861148",
"0.49228567",
"0.4829202",
"0.48078576",
"0.47770038",
"0.47691712",
"0.4756775",
"0.4730702",
"0.47186905",
"0.47158706",
"0.4708004",
"0.46703616",
"0.4649869",
"0.46467927",
"0.46026525",
"0.45815584",
"0.... | 0.7056024 | 0 |
execute query with values | execute(query,values) {
return new Promise((resolve,reject)=>{
this.pool.query(query,values,(error,res)=>{
if(error) {
reject(error);
} else {
resolve(res);
}
});
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function run_sql(sql,values = [], cb){\n pool.query(sql, values, (err, response) => {\n cb(response)\n })\n}",
"execute() {}",
"execute() {}",
"async function executeQuery(query, values) {\n return new Promise((resolve, reject) => {\n connection.query(query, values, (err, results) => {\n ... | [
"0.7174936",
"0.71199495",
"0.71199495",
"0.6940409",
"0.68993473",
"0.67417145",
"0.67141527",
"0.66798794",
"0.6634558",
"0.65863955",
"0.6543746",
"0.65155494",
"0.63694054",
"0.63349754",
"0.62824017",
"0.6243031",
"0.622221",
"0.62027425",
"0.61667657",
"0.6158252",
"0.6... | 0.7279049 | 0 |
play a midi note | function playNote(midiNote) {
var res = playMidiNote(midiNote);
myapp.ports.playedNote.send(res);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function playNote(note){\n MIDI.noteOn(0, note, velocity, delay);\n MIDI.noteOff(0, note, delay + 0.75);\n}",
"function playNote(num, note, duration) {\n console.log('Playing ', note);\n osc.freq(midiToFreq(note));\n // fade it in\n osc.fade(0.5, 0.2);\n // // fade it out\n if (duration) ... | [
"0.84795",
"0.79994065",
"0.7647904",
"0.76109254",
"0.7581416",
"0.7540343",
"0.7538147",
"0.7525812",
"0.7507087",
"0.7503494",
"0.7497886",
"0.74752355",
"0.7449392",
"0.737161",
"0.7340618",
"0.73119366",
"0.72816145",
"0.7224906",
"0.70650893",
"0.69564205",
"0.6902358",... | 0.8581224 | 0 |
play a sequence of midi notes | function playMidiNoteSequence(midiNotes) {
/* console.log("play sequence"); */
if (myapp.buffers) {
midiNotes.map(playMidiNote);
myapp.ports.playSequenceStarted.send(true);
}
else {
myapp.ports.playSequenceStarted.send(false);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function playMidiSeq(notes, time) {\n time = time || 250;\n var index = 0;\n var interval = window.setInterval(function () {\n if (notes[index] !== null) {\n playMidiAuto(notes[index], time);\n }\n if (++index >= notes.length) {\n window.clearInterval(interval);\n }\n }, time);\n}",
"fu... | [
"0.8144304",
"0.7669528",
"0.7595001",
"0.7575253",
"0.72463006",
"0.7212967",
"0.7121074",
"0.7099865",
"0.69369304",
"0.6916552",
"0.6871836",
"0.6857562",
"0.6841127",
"0.6841038",
"0.6788816",
"0.6781539",
"0.67613554",
"0.67425287",
"0.6742079",
"0.674187",
"0.67184097",... | 0.84306616 | 0 |
function to determine what we are redeeming from | function redeemingFrom(string) {
var r = {};
var decode = coinjs.addressDecode(string);
if(decode.version == coinjs.pub) { // regular address
r.addr = string;
r.from = 'address';
r.redeemscript = false;
} else if (decode.version == coinjs.priv) { // wif key
var a = coinjs.wif2address(string);
r.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function listUnspent2Give(redeem) {\n\n\t}",
"function listUnspent1x2(redeem) {\n\n\t}",
"function listUnspent2x2(redeem) {\n\n\t}",
"function listUnspent404(redeem) {\n\n\t}",
"redeemCoin({account,coin,ris}) {\n\n //When a client attempts to redeem a coin, first verify that the coin has been signed... | [
"0.6532438",
"0.5982183",
"0.5808953",
"0.5758713",
"0.57132685",
"0.5550383",
"0.5541832",
"0.5494458",
"0.5450127",
"0.5434435",
"0.53816736",
"0.5366909",
"0.526747",
"0.5258421",
"0.52582735",
"0.52533317",
"0.5237712",
"0.5231953",
"0.5173149",
"0.51182055",
"0.51072115"... | 0.610716 | 1 |
mediator payment code for when you used a public key | function mediatorPayment(redeem) {
if(redeem.from=="redeemScript") {
$('#recipients .row[rel="'+redeem.addr+'"]').parent().remove();
$.each(redeem.decodedRs.pubkeys, function(i, o) {
$.each($("#mediatorList option"), function(mi, mo) {
var ms = ($(mo).val()).split(";");
var pubkey = ms[0]; //... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getBalance(publicKey) {\n // Your code here\n\n }",
"function generateSignature(merchantTxnId, request) {\n //Need to replace the last part of URL(\"your-vanityUrlPart\") with your Testing/Live URL\n var formPostUrl = \"https://checkout.citruspay.com/ssl/checkout/\"+request.vanityUrl;\n\n ... | [
"0.61282796",
"0.5764115",
"0.573844",
"0.573741",
"0.5671602",
"0.5624983",
"0.56163436",
"0.5586786",
"0.5586786",
"0.5586786",
"0.5586786",
"0.5586786",
"0.5583743",
"0.5583743",
"0.55622137",
"0.55537426",
"0.5545408",
"0.55438745",
"0.55346566",
"0.55310297",
"0.5530364"... | 0.6247533 | 0 |
retrieve unspent data from 2x2 block explorer | function listUnspent2x2(redeem) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function listUnspentBlocknet(redeem) {\n\t\t\t$.ajax ({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: \"https://\"+ multiWalletApiDomain +\"/chainz/listunspent/block/\"+ redeem.addr,\n\t\t\t\tdataType: \"json\",\n\t\t\t\terror: function() {\n\t\t\t\t\t$(\"#redeemFromStatus\").removeClass('hidden').html('<span class=\"glyp... | [
"0.6813248",
"0.6634155",
"0.6480745",
"0.64386946",
"0.64384955",
"0.6398516",
"0.63925946",
"0.63302165",
"0.6322994",
"0.63201153",
"0.6298546",
"0.6281192",
"0.6204539",
"0.6171769",
"0.61225444",
"0.6113366",
"0.606762",
"0.60224134",
"0.5955978",
"0.59241605",
"0.586797... | 0.68198055 | 0 |
retrieve unspent data from 2Give block explorer | function listUnspent2Give(redeem) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function listUnspent2x2(redeem) {\n\n\t}",
"function listUnspent1x2(redeem) {\n\n\t}",
"function listUnspentBlocknet(redeem) {\n\t\t\t$.ajax ({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: \"https://\"+ multiWalletApiDomain +\"/chainz/listunspent/block/\"+ redeem.addr,\n\t\t\t\tdataType: \"json\",\n\t\t\t\terror: fun... | [
"0.7023712",
"0.6799395",
"0.67653835",
"0.65457875",
"0.6436189",
"0.6427293",
"0.6426748",
"0.6417455",
"0.6412106",
"0.6328501",
"0.627559",
"0.6250323",
"0.62388206",
"0.62301606",
"0.6196625",
"0.6191464",
"0.6187966",
"0.59717023",
"0.5923389",
"0.5919595",
"0.5911082",... | 0.69833446 | 1 |
retrieve unspent data from cryptoid for dash | function listUnspentDash(redeem) {
$.ajax ({
type: "GET",
url: "https://"+ multiWalletApiDomain +"/chainz/listunspent/dash/"+ redeem.addr,
dataType: "json",
error: function() {
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign"></span> Unexpecte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getFormatedUnspent(){\n // CHAINZ ID IS MESSED UP AND SPELLS tx_output_n as tx_ouput_n\n // CHAINZ also will send satoshis (1e8) rather than peertoshis (1e6)\n let result = []\n this.getUnspentPromise().then(data =>{\n data[\"unspent_outputs\"].forEach( v =>{\n ... | [
"0.6665307",
"0.62225455",
"0.6144429",
"0.6127941",
"0.6105714",
"0.60418874",
"0.6034736",
"0.6032029",
"0.6011233",
"0.5973716",
"0.5918546",
"0.5903661",
"0.5887557",
"0.5827306",
"0.5810432",
"0.57373923",
"0.57310617",
"0.57272893",
"0.5711479",
"0.5677227",
"0.55959165... | 0.638973 | 1 |
retrieve DeviantCoin unspent data from CoinExplorer | function listUnspentDeviantCoin(redeem) {
$.ajax ({
type: "GET",
url: `https://`+ multiWalletApiDomain +`/coinexplorer/listunspent/dev/${redeem.addr}`,
dataType: "json",
error: function(data) {
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign">... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function listUnspent42Coin(redeemo) {\n\n\t}",
"function listUnspentviacoin(redeem) {\n\t\t\t\t\t\t\t$.ajax ({\n\t\t\t\t\t\t\t\ttype: \"GET\",\n\t\t\t\t\t\t\t\turl: \"https://\"+ multiWalletApiDomain +\"/viacoin/listunspent/\"+redeem.addr+\"\",\n\t\t\t\t\t\t\t\tdataType: \"json\",\n\t\t\t\t\t\t\t\terror: functio... | [
"0.7009824",
"0.7009489",
"0.69301397",
"0.6894728",
"0.67404544",
"0.66882116",
"0.6668247",
"0.64587367",
"0.6456062",
"0.637033",
"0.632633",
"0.63117343",
"0.6303367",
"0.6272938",
"0.6246074",
"0.6245259",
"0.62030685",
"0.61839557",
"0.616784",
"0.60799044",
"0.6043233"... | 0.74269557 | 0 |
retrieve unspent data from cryptoid for lynx | function listUnspentLynx(redeem) {
$.ajax ({
type: "GET",
url: "https://"+ multiWalletApiDomain +"/chainz/listunspent/lynx/"+ redeem.addr,
dataType: "json",
error: function() {
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign"></span> Unexpecte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getFormatedUnspent(){\n // CHAINZ ID IS MESSED UP AND SPELLS tx_output_n as tx_ouput_n\n // CHAINZ also will send satoshis (1e8) rather than peertoshis (1e6)\n let result = []\n this.getUnspentPromise().then(data =>{\n data[\"unspent_outputs\"].forEach( v =>{\n ... | [
"0.6315331",
"0.6197757",
"0.610061",
"0.59462357",
"0.5897061",
"0.58506274",
"0.5845361",
"0.5802628",
"0.5732152",
"0.5723204",
"0.57169443",
"0.5711952",
"0.5682701",
"0.5575335",
"0.5566588",
"0.5561166",
"0.5557299",
"0.5519071",
"0.5517998",
"0.5505751",
"0.54426837",
... | 0.64613134 | 0 |
retrieve unspent data from MouseMN block explorer | function listUnspentMouseMN(redeem) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function listUnspentBlocknet(redeem) {\n\t\t\t$.ajax ({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: \"https://\"+ multiWalletApiDomain +\"/chainz/listunspent/block/\"+ redeem.addr,\n\t\t\t\tdataType: \"json\",\n\t\t\t\terror: function() {\n\t\t\t\t\t$(\"#redeemFromStatus\").removeClass('hidden').html('<span class=\"glyp... | [
"0.6719169",
"0.64162433",
"0.6380841",
"0.63593173",
"0.62566996",
"0.6242589",
"0.6241444",
"0.62384266",
"0.62029",
"0.61954206",
"0.61907554",
"0.6181588",
"0.6153183",
"0.6082442",
"0.602044",
"0.60139114",
"0.5995199",
"0.5980439",
"0.5953643",
"0.58599275",
"0.5851059"... | 0.66138023 | 1 |
retrieve unspent data from qtum block explorer | function listUnspentqtum(redeem) {
$.ajax ({
type: "GET",
url: "https://"+ multiWalletApiDomain +"/qtum/listunspent/"+redeem.addr+"",
dataType: "json",
error: function(data) {
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign">... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function listUnspentBlocknet(redeem) {\n\t\t\t$.ajax ({\n\t\t\t\ttype: \"GET\",\n\t\t\t\turl: \"https://\"+ multiWalletApiDomain +\"/chainz/listunspent/block/\"+ redeem.addr,\n\t\t\t\tdataType: \"json\",\n\t\t\t\terror: function() {\n\t\t\t\t\t$(\"#redeemFromStatus\").removeClass('hidden').html('<span class=\"glyp... | [
"0.68980575",
"0.6842165",
"0.6839529",
"0.66818225",
"0.66194624",
"0.6601457",
"0.658626",
"0.6551202",
"0.65421826",
"0.64652914",
"0.6454009",
"0.6444068",
"0.6342459",
"0.6301269",
"0.6256251",
"0.6232048",
"0.6218988",
"0.61497563",
"0.60647845",
"0.6040592",
"0.5921824... | 0.7168296 | 0 |
retrieve unspent data from cryptoid for syscoin | function listUnspentsyscoin(redeem) {
$.ajax ({
type: "GET",
url: "https://"+ multiWalletApiDomain +"/chainz/listunspent/sys/"+ redeem.addr,
dataType: "json",
error: function() {
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamati... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getFormatedUnspent(){\n // CHAINZ ID IS MESSED UP AND SPELLS tx_output_n as tx_ouput_n\n // CHAINZ also will send satoshis (1e8) rather than peertoshis (1e6)\n let result = []\n this.getUnspentPromise().then(data =>{\n data[\"unspent_outputs\"].forEach( v =>{\n ... | [
"0.6973544",
"0.68288517",
"0.6642269",
"0.662399",
"0.6551251",
"0.64713603",
"0.63826454",
"0.6372868",
"0.63322496",
"0.631888",
"0.6295972",
"0.6039123",
"0.6025772",
"0.6011011",
"0.6006379",
"0.58722514",
"0.5857845",
"0.583172",
"0.5798969",
"0.57844335",
"0.56923693",... | 0.6840259 | 1 |
retrieve unspent data from viacoin explorer | function listUnspentviacoin(redeem) {
$.ajax ({
type: "GET",
url: "https://"+ multiWalletApiDomain +"/viacoin/listunspent/"+redeem.addr+"",
dataType: "json",
error: function(data) {
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async updateUnspent () {\n this.unspent = await this.client.listUnspent()\n }",
"function get_unspent_txo(callback) {\n request({\n url: unspentTxoEndpoint+myBtcAddress,\n json: true\n }, function (error, response, body) {\n\n if (!error && response.statusCode === 200) {\n ... | [
"0.72225106",
"0.7139062",
"0.7132491",
"0.68885535",
"0.68848246",
"0.6866156",
"0.6863034",
"0.6848597",
"0.6804395",
"0.6740031",
"0.6735461",
"0.67203176",
"0.6583957",
"0.6529211",
"0.64627343",
"0.64236474",
"0.63954395",
"0.6356407",
"0.62160003",
"0.6204909",
"0.62001... | 0.7358046 | 0 |
the method is called to poll the upload status every polling_interval during max_time. | function pollingInit(enablePolling, uploadDate, maxTimeout, pollInterval){
if (enablePolling == "stealthmode"){
showButtonText(false);
var stealth_interval_instance = setTimeout(function(){showButtonText(true)}, maxTimeout);
} else if(enablePolling == "true"){
//Hide uplaod botton and show "Uplo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"watch() {\n this.timer = setInterval(() => this.upload(), (this.config.interval ? this.config.interval : 60000));\n }",
"polling() {\n // let hourInSec = 3600;\n let hourInSec = 32; // For testing purposes make an hour 16 seconds\n\n // Poll every 15 minutes in the first hour\n this.getLatestResp... | [
"0.67532253",
"0.6368376",
"0.62550694",
"0.6100162",
"0.6084867",
"0.6059114",
"0.6053112",
"0.59744626",
"0.5865323",
"0.5826926",
"0.5817753",
"0.58126384",
"0.5755453",
"0.5742184",
"0.57354736",
"0.57305646",
"0.56627667",
"0.56553346",
"0.56284827",
"0.56221485",
"0.562... | 0.6949767 | 0 |
Function to increment or decrement (toggle) product count Parameters : productId item being added or removed, toggleCount add or remove count | function shopProduct(productId,toggleCount){
//Find if this particular product has already been added in the cart
var result = shoppingCart.find(x => x.id == productId);
/*If the product has not been added to the cart before and is being added now
then push the new item to the cart else simply increase the cou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"decreaseProductCount(product) {\n\n if(+(product.productCurrentCount) >= 1) {\n product.productCurrentCount--;\n \n if(+(product.productCurrentCount) === 0) {\n this.removeProductFromCart(product.productId);\n return false; //since the element i... | [
"0.66612756",
"0.627976",
"0.62262243",
"0.6210996",
"0.6119494",
"0.6045224",
"0.60354805",
"0.60163504",
"0.5971834",
"0.59597284",
"0.59215796",
"0.5918234",
"0.5901156",
"0.58930635",
"0.5877941",
"0.58689225",
"0.58120084",
"0.5795991",
"0.5791429",
"0.5790803",
"0.57881... | 0.65384823 | 1 |
Assign color to the Like button | function assign_color() {
if (blog?.dislikedBy?.includes(userData?._id)) {
setDislikeColor("#4267B2");
setlikeColor("");
} else if (blog?.likedBy?.includes(userData?._id)) {
setlikeColor("#4267B2");
setDislikeColor("");
} else {
setDislikeColor("");
setlikeColor("");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function colorLike() {\n setLike(!like);\n }",
"clickedLike (e) {\n var numOfLikesEl = e.currentTarget.parentNode.children[1]\n var numOfLikesValue = parseInt(numOfLikesEl.textContent)+1\n numOfLikesEl.textContent = numOfLikesValue\n e.currentTarget.style.color = \"blue\"\n }",
"function... | [
"0.7635124",
"0.6498986",
"0.64756876",
"0.60917604",
"0.6086547",
"0.6083606",
"0.5865334",
"0.5857509",
"0.582239",
"0.5802928",
"0.5792035",
"0.5789674",
"0.5727678",
"0.56777906",
"0.5669158",
"0.56546164",
"0.564888",
"0.5641328",
"0.5627654",
"0.56261367",
"0.5620585",
... | 0.7146981 | 1 |
============================================== MATCH HEIGHTS ============================================== | function oceanwpInitMatchHeight() {
"use strict"
// Add match heights grid
$j( '.match-height-grid .match-height-content' ).matchHeight({ property: 'min-height' });
// Blog entries
$j( '.blog-equal-heights .blog-entry-inner' ).matchHeight({ property: 'min-height' });
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function matchHeights() {\r\n\t\t\tYOOBase.matchHeight('div.headerbox div.deepest', 20);\r\n\t\t\tYOOBase.matchHeight('div.topbox div.deepest', 20);\r\n\t\t\tYOOBase.matchHeight('div.bottombox div.deepest', 20);\r\n\t\t\tYOOBase.matchHeight('div.maintopbox div.deepest', 20);\r\n\t\t\tYOOBase.matchHeight('div.mainb... | [
"0.7337614",
"0.6736977",
"0.66926014",
"0.667844",
"0.65613455",
"0.6292966",
"0.6291585",
"0.6206163",
"0.6169118",
"0.61629575",
"0.6137685",
"0.6135006",
"0.6088701",
"0.6069589",
"0.6042035",
"0.6028078",
"0.601697",
"0.6005299",
"0.6000211",
"0.59897983",
"0.59520626",
... | 0.6806614 | 1 |
This is called by the facets when there's a change All facets must have an update() method | function updateAll() {
facetList.forEach(function (facet) {
facet.update();
});
updateResultsListing();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function update() {\r\n\r\n // Clear what's there\r\n\r\n $domNode.empty();\r\n var facetData = {};\r\n\r\n facetGroup.all().forEach(function (facet) {\r\n\r\n if ((!facet.value==0) && (/\\S/.test(facet.key))) {\r\n\r\n temp = facet.key.split(',').map(function(x) {\r\n ... | [
"0.6631813",
"0.6460681",
"0.64064974",
"0.62397665",
"0.6123473",
"0.6106031",
"0.6089444",
"0.6052216",
"0.60475177",
"0.6044801",
"0.6042796",
"0.6039233",
"0.60056466",
"0.59951395",
"0.5975284",
"0.59535354",
"0.594736",
"0.59428716",
"0.5936045",
"0.59280354",
"0.592587... | 0.71238226 | 0 |
Routine to update the listing of results TODO: turn this into a facet, like the others | function updateResultsListing() {
var listingText,
allItems = yearDimension.top(Infinity),
makeSceneLink = function (scene) {
if (scene !== '[Non-panorama history]')
return '<a target="_blank" href="' +
SCENE_URL_BASE + scene + '">' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updateAll() {\n facetList.forEach(function (facet) {\n facet.update();\n });\n updateResultsListing();\n }",
"function reloadFacet(name, results) {\n\n var id = \"#\"+name+\"s\";\n var pluralName = name+\"s\";\n var tpl = $(\"#facet-tpl\").text();\n var htm... | [
"0.70008683",
"0.6868697",
"0.6589186",
"0.6585063",
"0.6574452",
"0.65329546",
"0.650639",
"0.64925104",
"0.645761",
"0.64068115",
"0.63931507",
"0.6384352",
"0.63289577",
"0.6288499",
"0.62750185",
"0.62364376",
"0.62343544",
"0.62317723",
"0.6228085",
"0.62185776",
"0.6217... | 0.78839976 | 0 |
Set up function only runs once. In this function the colour mode is set, as well as creating the play button and initiating the FFT object | function setup(){
createCanvas(windowWidth,windowHeight);
colorMode( RGB);
button = createButton ('play');
button.mousePressed(playSong); // if mouse presses on the button, call the playSong function
song.play();
fft = new p5.FFT();// Initiates FFT object
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"constructor({audioCtx, fftSize, carFreq, modAmpl, modFreq, visualCtx}) {\n this.audioCtx = audioCtx;\n this,fftSize = fftSize;\n this.carFreq = carFreq;\n this.modAmpl = modAmpl;\n this.modFreq = modFreq;\n this.visualCtx = visualCtx;\n this.play = false;\n\n\n this.animate;\n this.analy... | [
"0.6937441",
"0.69346225",
"0.67516565",
"0.6700962",
"0.66965234",
"0.6692592",
"0.6672826",
"0.6665236",
"0.665672",
"0.6589949",
"0.6525601",
"0.65162253",
"0.65154326",
"0.65012157",
"0.6486275",
"0.6482759",
"0.64768475",
"0.6455289",
"0.63905424",
"0.63742024",
"0.63617... | 0.729327 | 0 |
Runs more than once, in this function the shapes are drawned according to the mapped sound frequencies | function draw() {
background(0);
var spectrum = fft.analyze();// run the FFT analysis
/*
Local Variable, fft.getEnergy maps the different
frequencies of the audio and returns values between 0 and 255
*/
var bass = fft.getEnergy( "bass" );
var treble = fft.getEnergy( "treble" );
var highMid = fft.getEnergy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function displayFrequency() {\n\tif (mySoundClear.isPlaying()) {\n\t\tvar waveform = fft.waveform();\n\t\tnoFill();\n\t\tbeginShape();\n\t\tstroke(0, 102, 255); // waveform is red\n\t\tstrokeWeight(3);\n\t\tfor (var i = 0; i < waveform.length; i++) {\n\t\t\tvar x = map(i, 0, waveform.length, 0, width);\n\t\t\tvar ... | [
"0.66241735",
"0.65738165",
"0.6440452",
"0.63462794",
"0.6324395",
"0.630564",
"0.6299488",
"0.62961733",
"0.62868977",
"0.6263342",
"0.62468994",
"0.624329",
"0.62181634",
"0.62086266",
"0.6205344",
"0.6203135",
"0.6200413",
"0.61964554",
"0.6173135",
"0.6152804",
"0.615236... | 0.71231 | 0 |
used for the customBuild target. This generates a custom build of CRS with the list of countries specified by the user | function getCountryList () {
var countries = grunt.option("countries");
if (!countries) {
grunt.fail.fatal("Country list not passed. Example usage: `grunt customBuild --countries=Canada,United States`");
}
// countries may contain commas in their names. Bit ugly, but simple. This swiches out thos... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function loadCountryCodes() {\n $('select[name=\"gwapi[cc]\"], #recipient_cc').gwapiMobileCc();\n }",
"function fncBuildCountryDropdowns()\r\n{\r\n\t// Build country dropdown\r\n\tdocument.write(\"<select name='cboCountries' onchange='fncChangeCountry();'>\");\r\n\tfor(i=0; i<gobjCountryArray.length; i... | [
"0.57210684",
"0.5594536",
"0.5497166",
"0.5438912",
"0.5435266",
"0.5358525",
"0.53521127",
"0.5342097",
"0.5336088",
"0.5272015",
"0.5256754",
"0.5253442",
"0.5234833",
"0.52148384",
"0.5213015",
"0.5207649",
"0.51706487",
"0.5170385",
"0.51530534",
"0.51100785",
"0.5086303... | 0.6910292 | 0 |
removes the route whose _id matches the routeId parameter | function deleteRoute(routeId) {
return $http.delete("/api/route/"+routeId)
.then(function (response) {
return response.data;
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"remove(param) {\n for (var i = 0, r; i < this.routes.length, r = this.routes[i]; i++) {\n if (r.handler === param || r.re.toString() === param.toString()) {\n this.routes.splice(i, 1);\n return this;\n }\n }\n return this;\n }",
"function removeRoute(routeName){\... | [
"0.6790732",
"0.6768145",
"0.6676449",
"0.6661101",
"0.65303814",
"0.609948",
"0.60965925",
"0.58626455",
"0.58508426",
"0.58353716",
"0.58096236",
"0.5781777",
"0.5779433",
"0.5748078",
"0.5736606",
"0.5727409",
"0.5726137",
"0.5722734",
"0.57202005",
"0.57078344",
"0.568910... | 0.6943484 | 0 |
updates the route in local routes array whose _id matches the routeId parameter | function updateRoute(routeId, newRoute) {
return $http.put("/api/route/"+routeId, newRoute)
.then(function (response) {
return response.data;
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updateRoute() {\n\n}",
"updateRoute() {\n this.props.updateRoute(this.props.index,\n this.agency, this.line, this.direction, this.time);\n }",
"function updateRoute() {\n\tlet route = window.location.hash.substr(1);\n\tSTORE.dispatch({ type: \"routing\", route });\n}",
"function route (path... | [
"0.67419463",
"0.6668094",
"0.6509663",
"0.6204493",
"0.6004097",
"0.58982164",
"0.58230436",
"0.57508844",
"0.56905836",
"0.5667356",
"0.56432015",
"0.56170213",
"0.56162554",
"0.5579743",
"0.5553234",
"0.55488485",
"0.54955035",
"0.54730713",
"0.5468358",
"0.5453785",
"0.54... | 0.7097638 | 0 |
sets current streak if last session is from yesterdays date | function currentStreak(doc) {
let lastSessionPosition = null;
let currentSessionPosition = null;
if(doc.sessions.length === 0 ) {
lastSessionPosition = doc.sessions.length ;
currentSessionPosition = doc.sessions.length;
}
else if(doc.sessions.length === 1){
lastSessionPosit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function is_yesterday(lw_date) {\n is_yesterday_bool = false;\n if (lw_date === undefined || lw_date === \"\" || typeof lw_date != \"object\") {\n console.log(\"last_workout_date not defined\")\n return is_yesterday_bool\n }\n\n let today = new Date();\n let yesterday_epoch_seconds = M... | [
"0.5764164",
"0.567545",
"0.55759776",
"0.5533101",
"0.5380019",
"0.5364841",
"0.5278",
"0.52622414",
"0.52482027",
"0.5222794",
"0.5222794",
"0.5215959",
"0.5212438",
"0.5202523",
"0.5108381",
"0.5092262",
"0.50622064",
"0.50482494",
"0.5014242",
"0.4986973",
"0.49866986",
... | 0.65098166 | 0 |
sets total sessions for user | function totalSessions(doc) {
const obj = {};
obj["currentUserStats.1.dataValue"] = doc.sessions.length;
User.findOneAndUpdate({"calmStatsId": doc.calmStatsId},
{$set :obj, "currentUserStats.1.title":"Total Sessions"},
{new: true},
function(err, doc){
console.log(doc, 't... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setTotalUsers() {\n var userCountEl = d.querySelector('#user-count');\n var count = usersElement.querySelectorAll('.user-item');\n userCountEl.innerHTML = count.length;\n }",
"async setSessionStatus (sessions) {\n\t\tthis.sessionsToUpdate = sessions;\n\t\tthis.currentSessions = t... | [
"0.6840499",
"0.66185546",
"0.63613987",
"0.6309346",
"0.6245433",
"0.62248534",
"0.6210661",
"0.6051826",
"0.60250723",
"0.595001",
"0.5905542",
"0.5889375",
"0.5808935",
"0.578054",
"0.5779468",
"0.57778895",
"0.5763886",
"0.57356346",
"0.57020646",
"0.5689859",
"0.56241155... | 0.67655396 | 1 |
calculates and sets average session statistic | function averageSessionLength(doc) {
let sessionLengths = [];
for (i = 0; i < doc.sessions.length; i++ ){
sessionLengths.push((doc.sessions[i].stopTime) - (doc.sessions[i].startTime));
}
let total = 0;
for (i = 0; i < sessionLengths.length; i++){
total += sessionLengths[i];
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function avg_wpm() {\r\n let avg = 0;\r\n let wpm_cookie = document.getElementById(\"user_avg_wpm\").innerHTML;\r\n avg = (user_wpm + wpm_cookie) / 2;\r\n document.getElementById(\"user_avg_wpm\").innerHTML = avg;\r\n store_cookie('_avg_wpm_', avg, '365');\r\n }",
"function ... | [
"0.64798635",
"0.59109104",
"0.5840647",
"0.5755089",
"0.57085925",
"0.56966335",
"0.56945443",
"0.56766796",
"0.56032425",
"0.559827",
"0.5583621",
"0.5557727",
"0.5528465",
"0.5526834",
"0.5523385",
"0.5470662",
"0.5450264",
"0.5445249",
"0.5442852",
"0.5376416",
"0.5374537... | 0.6962996 | 0 |
NaN < because `x` isn't set yet We could use callbacks to say "add x and y, but only if they're both ready": | function add(getX,getY,cb){
var x, y;
getX( function(xVal){
x = xVal;
// both are ready?
if (y != undefined) {
cb( x + y ); // send along sum
}
} );
getY( function(yVal){
y = yVal;
// both are ready?
if (x != undefined) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addTwoNumbers(x, y) {\n x = x || 0;\n y = y || 0;\n return x + y;\n}",
"function addAtLeastOne(x, y) {\n y = y || 1\n return x + y\n}",
"function incrUndef(x, y) {\n return x ? x + y : y;\n}",
"function addAtLeastOneNew(x, y = 1) {\n return x + y\n}",
"function sum (x,y) {\n added = ... | [
"0.5774219",
"0.5729168",
"0.5709828",
"0.5586866",
"0.55181175",
"0.55138177",
"0.5487702",
"0.54533017",
"0.5447999",
"0.5447999",
"0.5358125",
"0.5347664",
"0.5345986",
"0.528542",
"0.5277682",
"0.52746034",
"0.5254205",
"0.52412057",
"0.5209564",
"0.5155016",
"0.5139291",... | 0.5917309 | 0 |
liste des rgc a calculer Need to track when to end EXIF process and close DB connection emitted when change in exifProcessing or statProcessing | function evHandler() {
if (argv.debug)
console.log(`exifProcessing ${exifProcessing} `); // eslint-disable-line no-console
if (exifProcessing <= 0 && statProcessing <= 0) {
exif.end();
//console.log("TheRGC", TheRGC);
//console.log("TheRGC length", TheRGC.length);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"databaseProcessing(cnv) {\n //Images processing classes\n let h12color = new ColorHistogram(this.redColor, this.greenColor, this.blueColor);\n \n let colmoments = new ColorMoments();\n\n let img = new Picture(0, 0, 100, 100, \"Images/daniel1.jpg\", \"test\");\n\n //Creatin... | [
"0.5325871",
"0.51986885",
"0.5188273",
"0.5116446",
"0.50935185",
"0.50371575",
"0.50052595",
"0.48817194",
"0.48633707",
"0.48479912",
"0.4839236",
"0.48235697",
"0.48162803",
"0.47977865",
"0.47897074",
"0.47879225",
"0.4779973",
"0.47755706",
"0.47365728",
"0.4726591",
"0... | 0.63245124 | 0 |
prend le ficher TheRGC et lance le batch reversege geocoding | function runBatchGC() {
if (TheRGC.length == 0) {
console.log("nothing to batch geocode"); // eslint-disable-line no-console
return;
}
let url = ["https://batch.geocoder.ls.hereapi.com/6.2/jobs?",
"apiKey=", API_KEY,
"&mode=retrieveAddresses",
"&action=run... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addAddresses(gid) {\r\n plex.init();\r\n plex.scanPlacesTags();\r\n\r\n // now get result of batch geocoding\r\n let url = [\"https://batch.geocoder.ls.hereapi.com/6.2/jobs/\",\r\n gid,\r\n \"/result?\",\r\n \"apiKey=\", API_KEY\r\n ].join(\"\");\r\n\r\n // read matc... | [
"0.66698885",
"0.59400314",
"0.58042777",
"0.58021545",
"0.56582505",
"0.5626266",
"0.54937917",
"0.5493091",
"0.54560035",
"0.54524744",
"0.54480726",
"0.54462683",
"0.54440606",
"0.5437551",
"0.5375794",
"0.53658205",
"0.5342814",
"0.53138524",
"0.53079003",
"0.530731",
"0.... | 0.68614703 | 0 |
get result of batch geocoding, match to correspondance file and add EXIF | function addAddresses(gid) {
plex.init();
plex.scanPlacesTags();
// now get result of batch geocoding
let url = ["https://batch.geocoder.ls.hereapi.com/6.2/jobs/",
gid,
"/result?",
"apiKey=", API_KEY
].join("");
// read matching file
const fileOut = gid2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function matchGEOIDAsync(options, callback) {\n var polyfile = resolve(options.polyfile);\n var pointfile = resolve(options.coordinatesfile);\n fs.readFile(polyfile, {\n encoding: 'utf-8'\n }, function(err, file) {\n var polyGeoJSON = JSON.parse(file);\n fs.readFile(pointfile, {\n encoding: 'utf-... | [
"0.5820167",
"0.581163",
"0.5718285",
"0.5546053",
"0.5540435",
"0.5511302",
"0.54458827",
"0.5423951",
"0.535579",
"0.5240639",
"0.51958615",
"0.5195547",
"0.5153984",
"0.5153413",
"0.5137698",
"0.4981084",
"0.49674144",
"0.49602586",
"0.49590227",
"0.49571785",
"0.49477163"... | 0.64246225 | 0 |
check if result is available | function checkResultAvailable(gid) {
// now get result of batch geocoding
let url = ["https://batch.geocoder.ls.hereapi.com/6.2/jobs/",
gid,
"?action=status",
"&apiKey=", API_KEY
].join("");
// lit et dezippe la réponse
// une seulle entrée ou plusieurs ? not clea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"isResultAvailable() {\n return this.gl.getQueryParameter(this.handle, GL_QUERY_RESULT_AVAILABLE);\n }",
"function hasResult(result){\n return result.metadata.status == \"success\" && result.result.documents.length == 1;\t\n}",
"function resultHasData(result){\n\tif('out_of_scope' in result)\n\t\treturn fa... | [
"0.73036057",
"0.68274504",
"0.6568684",
"0.64623076",
"0.64122385",
"0.63362247",
"0.62195027",
"0.62056655",
"0.6187095",
"0.6165316",
"0.61161745",
"0.60825217",
"0.607999",
"0.60726523",
"0.6045623",
"0.60423917",
"0.59936595",
"0.5956508",
"0.59379965",
"0.5884724",
"0.5... | 0.6839926 | 1 |
This is a regression test for the race condition underlying It ensures that all messages send before a MessagePortclose() call are received. Previously, what could happen was a race condition like this: Thread 1 sends message A Thread 2 begins receiving/emitting message A Thread 1 sends message B Thread 1 closes its si... | async function test() {
const worker = new Worker(`
require('worker_threads').parentPort.on('message', ({ port }) => {
port.postMessage('firstMessage');
port.postMessage('lastMessage');
port.close();
});
`, { eval: true });
for (let i = 0; i < 10000; i++) {
const { port1, port2 } = new Messag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"doClose() {\n const close = () => {\n debug(\"writing close packet\");\n this.write([{\n type: \"close\"\n }]);\n };\n\n if (\"open\" === this.readyState) {\n debug(\"transport open - closing\");\n close();\n } else {\n // in case we're trying to close while\n ... | [
"0.56562907",
"0.565185",
"0.5600441",
"0.5588532",
"0.55823153",
"0.5554647",
"0.5518151",
"0.54784495",
"0.5453209",
"0.5438778",
"0.5438778",
"0.542699",
"0.54146403",
"0.53591835",
"0.5346086",
"0.5280983",
"0.5278508",
"0.5277908",
"0.523356",
"0.5216694",
"0.5168489",
... | 0.67334557 | 0 |
cria um novo produto | function criaProduto(dataCompraProduto, produto, marcaProduto, volumePesoProduto, estabelecimentoProduto, bairroProduto, valorProduto) {
this.dataCompraProduto = dataCompraProduto
this.produto = produto
this.marcaProduto = marcaProduto
this.volumePesoProduto = volumePesoProduto
this.estabelecimentoP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function criarProduto(nome, modelo, preco) {\n return{\n nome,\n modelo,\n preco,\n desconto: 0.1 // aqui definimos um desconto padrão de 10%\n }\n}",
"function crearProduto(req, res) {\n let body = req.body;\n let productoSucursal = new ProductoSucursal({\n nombreP... | [
"0.7174492",
"0.671553",
"0.6420405",
"0.6163989",
"0.6147631",
"0.6125931",
"0.6002013",
"0.5944488",
"0.5939919",
"0.589111",
"0.5858422",
"0.58431304",
"0.58058304",
"0.58032864",
"0.5785891",
"0.5771912",
"0.5752265",
"0.5741258",
"0.57079285",
"0.57042164",
"0.56769574",... | 0.67887306 | 1 |
Warn if there are no map types selected | function validateMaptypes() {
var maptypes = $('input[name^="maptype"]');
var help_block = $('#help-block');
var id = 'maptypes';
if (maptypes.filter(':checked').length == 0) {
maptypes.closest('.form-group').validationState('has-error');
help_block.textState('text-danger').text('No map types selected')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isAMap(map){\n\treturn (availableMaps.indexOf(map) != -1);\n}",
"function pe(t) {\n return !!t && \"mapValue\" in t;\n}",
"function isMap(value) {\n return value && !Array.isArray(value) && typeof value === 'object';\n}",
"function mapTypes(map, isMainMap) {\n const PROVIDERS = {\n ... | [
"0.60352176",
"0.57264614",
"0.57011276",
"0.5626858",
"0.561433",
"0.5522682",
"0.5488546",
"0.54516244",
"0.5401834",
"0.53751045",
"0.53698754",
"0.5337898",
"0.5337444",
"0.5315506",
"0.5312282",
"0.5301567",
"0.5301567",
"0.5299114",
"0.5298045",
"0.5298045",
"0.5283865"... | 0.5989432 | 1 |
for internal use, increments portIndex returns 0 at end of list | get _nextPort() {
return this.portList[this.portIndex++] || 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"get nextPort() {\n return this.portList[this.portIndex] || 0;\n }",
"function getPort () {\n return _port++;\n}",
"function get_port_number(port_index)\r\n{\r\n\treturn Object.keys(config_data.linksetup)[port_index].substr(3, Object.keys(config_data.linksetup)[port_index].length);\r\n}",
"function upd... | [
"0.7298256",
"0.67991734",
"0.62381744",
"0.6064679",
"0.5928284",
"0.5845996",
"0.57508767",
"0.5724557",
"0.5675263",
"0.5644159",
"0.5594027",
"0.5505404",
"0.5431168",
"0.5430883",
"0.54269725",
"0.54232764",
"0.54156435",
"0.53897303",
"0.538081",
"0.5370982",
"0.5358166... | 0.72167045 | 1 |
for external use, does not increment portIndex returns 0 at end of list | get nextPort() {
return this.portList[this.portIndex] || 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"get _nextPort() {\n return this.portList[this.portIndex++] || 0;\n }",
"function getPort () {\n return _port++;\n}",
"getAvailablePort() {\n var port = Math.floor(Math.random() * (5000 - 4000 + 1)) + 4000;\n while(this.portArray.indexOf(port)>0){\n port = Math.floor(Math.random(... | [
"0.72294235",
"0.68752927",
"0.6466939",
"0.6310575",
"0.6126474",
"0.6056506",
"0.598934",
"0.5951366",
"0.5888813",
"0.5863536",
"0.58562046",
"0.5819497",
"0.56400585",
"0.56101525",
"0.5594773",
"0.5594432",
"0.5577422",
"0.5577422",
"0.5559906",
"0.5526755",
"0.5518693",... | 0.7385389 | 0 |
clears results and resets portIndex counter and error Reresolves Scanner.hostName to allow for easily reusing instances to do the same scan on other hosts. Will emit another "ready" event | reset() {
this.portIndex = 0;
this.results = [];
this.error = null;
this.prepare(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"scan() {\n\n if (!this[CHECK_PORT_METHOD]) {\n throw new Error(`Scanner instance has no ${CHECK_PORT_METHOD} method`);\n }\n\n switch(this.state) {\n case -1: return this._pendingReady || (this._pendingReady=true,this.on('ready', this.scan.bind(this)));\n case 0: throw this.error;\n c... | [
"0.71050394",
"0.61906916",
"0.571128",
"0.5424639",
"0.54200834",
"0.5413252",
"0.53076524",
"0.5239168",
"0.51489365",
"0.50789464",
"0.50539607",
"0.4944901",
"0.4944901",
"0.49228865",
"0.49166045",
"0.48982018",
"0.48774832",
"0.48730522",
"0.48510233",
"0.4847043",
"0.4... | 0.66041225 | 1 |
Stores/emits results from checkPort and triggers next probe Confirms lengths of results and portList match before marking complete: fatal errors trigger an error state, lesser errors should be received as results | function cb(result) {
this.results.push(result);
this.emit('portFinished', result);
if (this.state !== 2) return;
const nextPort = this._nextPort;
if (nextPort) {
if (this.rateLimit) {
this.timeouts.push(setTimeout(()=>{
this[CHECK_PORT_METHOD](nextPort, cb.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"scan() {\n\n if (!this[CHECK_PORT_METHOD]) {\n throw new Error(`Scanner instance has no ${CHECK_PORT_METHOD} method`);\n }\n\n switch(this.state) {\n case -1: return this._pendingReady || (this._pendingReady=true,this.on('ready', this.scan.bind(this)));\n case 0: throw this.error;\n c... | [
"0.69025505",
"0.53290915",
"0.5301865",
"0.53013545",
"0.52272886",
"0.5119581",
"0.50483304",
"0.50476193",
"0.49926797",
"0.49655917",
"0.49429923",
"0.49262425",
"0.49003336",
"0.48999703",
"0.48954025",
"0.4894472",
"0.48816103",
"0.4875135",
"0.4813762",
"0.47922492",
"... | 0.64082915 | 1 |
GETTING METHODS Performs the necessary cleaning operations after the standard sql get query Basically just replaces splits the tags | __util__fixEntities(entities) {
entities.forEach(entity => {
entity.tags ? entity.tags = entity.tags.split(",") : entity.tags = [];
});
return entities;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getTags(){\n if (typeof reportTagsPage == \"undefined\") {\n var myCols = [\n\t\t {title: \"Tag Name\",dataField: \"name\",sort: \"r.rtag_name\",filtration: {name: \"r.rtag_name\",alias: \"Tags\"}\n\t\t},{title: \"Color\",dataField: function(o){\n return \"<div style=\\\"width: 5... | [
"0.5584136",
"0.5226439",
"0.5190488",
"0.51888955",
"0.5159355",
"0.51406884",
"0.5056225",
"0.5015759",
"0.5014608",
"0.5014116",
"0.4999892",
"0.4993059",
"0.49781278",
"0.49745172",
"0.4961773",
"0.49613756",
"0.49386537",
"0.4930056",
"0.491443",
"0.49036807",
"0.4897389... | 0.54923403 | 1 |
gives back trending entities composite of amount of comments and amount of likes, limit to 2 weeks? | getTrendingEntities(props={}, amount=10) {
// TODO: props can have the lastEntity, userId, and/or tag
// TODO: in final version, change interval to like 14 days
// TODO: figure out how to order by likes + comments
var conditions = [`entity.timePosted >= DATE_SUB(CURDATE(), INTERVAL 30 DAY)`];
if (pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calhot(d) {\n let replies = parseInt(d['replies_count'])\n let retweets = parseInt(d['retweets_count'])\n let likes = parseInt(d['likes_count'])\n return replies + retweets + likes * 0.3\n}",
"minTimeBetweenSimilarHistoryEvents() { return 400; }",
"calculateLikes() {\n let resultat = 0;... | [
"0.5935248",
"0.5463876",
"0.5444057",
"0.53906804",
"0.5312967",
"0.52705157",
"0.5156293",
"0.51556116",
"0.51335806",
"0.51046515",
"0.5103914",
"0.5089346",
"0.5046451",
"0.5038462",
"0.502536",
"0.50171334",
"0.50109226",
"0.50089866",
"0.49925926",
"0.49893898",
"0.4980... | 0.7241563 | 0 |
Gets all requests stored in db | getRequests() {
return this.query(`SELECT * FROM request`);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getRequests (req, res) {\r\n\tconsole.log ('GET /requests');\r\n\tRequest.find(null, 'name _id', function(err, requests) {\r\n\t\tif(err) {\r\n\t\t\tres.status(500).send({ message : 'Error while retrieving the requests list'});\r\n\t } else { \r\n\t \tif(!requests) { \r\n\t \t\tres.status(404).se... | [
"0.7150787",
"0.6895683",
"0.64624035",
"0.63866395",
"0.6372776",
"0.6366569",
"0.6346135",
"0.6316854",
"0.6310656",
"0.6281066",
"0.62788254",
"0.6266",
"0.62426955",
"0.62426955",
"0.62426955",
"0.62426955",
"0.62426955",
"0.62426955",
"0.62426955",
"0.62426955",
"0.62268... | 0.7279362 | 0 |
Adds requests performed by the given session | addRequests(session) {
const userId = session.userId ? `'${this.esc(session.userId)}'` : "NULL"; // figure out userId
var values = session.requests.map(request => {
request.type = this.esc(request.type); request.location = this.esc(request.location); // escape strings
return `('${session.sessionId}'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addRunning(session) {\n var running = (runningSessions.get(session.serverSettings.baseUrl) || []);\n running.push(session);\n runningSessions.set(session.serverSettings.baseUrl, running);\n }",
"add(request) {\n var exists = false;\n for(var i = 0; i< this.list.leng... | [
"0.66949755",
"0.62600374",
"0.5874402",
"0.5819967",
"0.5764368",
"0.55419827",
"0.55419827",
"0.55419827",
"0.55419827",
"0.5524567",
"0.548254",
"0.5439515",
"0.5412626",
"0.53789014",
"0.53624666",
"0.53624666",
"0.53624666",
"0.5357438",
"0.53524595",
"0.53503793",
"0.53... | 0.7231867 | 0 |
UPDATING METHODS Updates the given post's content | updatePost(entityId, newContent) {
entityId = this.esc(entityId); newContent = this.esc(newContent);
return this.query(`UPDATE post SET content = '${newContent}'
WHERE entityId = '${entityId}'`);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async updatePost(_, {\n id, title, content, published\n }, { authUser }) {\n // Make sure user is logged in\n if (!authUser) {\n throw new Error('You must log in to continue!');\n }\n // fetch the post by it ID\n const post = await db.post.findById(id);\n // Update the ... | [
"0.7395748",
"0.7097701",
"0.7076073",
"0.699291",
"0.69550264",
"0.6942467",
"0.68860996",
"0.6819073",
"0.67500037",
"0.6745187",
"0.6694927",
"0.66926813",
"0.6669098",
"0.6640651",
"0.66311705",
"0.6600562",
"0.6574318",
"0.65351737",
"0.6524672",
"0.64476186",
"0.6429356... | 0.7772271 | 0 |
Create a new DashDocsetTheme instance. | function DashDocsetTheme(renderer, basePath) {
_super.call(this, renderer, basePath);
renderer.on(output.Renderer.EVENT_BEGIN, this.onRendererBegin, this, 1024);
this.dashIndexPlugin = new DashIndexPlugin(renderer);
this.dashAssetsPlugin = new DashAssetsPl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createTheme(derivatives) {\n var derivativeArr = Array.isArray(derivatives) ? derivatives : [derivatives];\n // Create new theme if not exist\n if (!cacheThemes.has(derivativeArr)) {\n cacheThemes.set(derivativeArr, new _Theme__WEBPACK_IMPORTED_MODULE_1__[\"default\"](derivativeArr));\n }\n // Get... | [
"0.55451417",
"0.5454116",
"0.5336738",
"0.52570814",
"0.52570814",
"0.5152688",
"0.51517564",
"0.5102152",
"0.50952333",
"0.5069107",
"0.4976551",
"0.4969393",
"0.49628046",
"0.4954228",
"0.49467492",
"0.49357685",
"0.4912929",
"0.4912929",
"0.49050528",
"0.48771495",
"0.487... | 0.70705855 | 0 |
Test whether the given list of modules contains an external module. | function containsExternals(modules) {
for (var index = 0, length = modules.length; index < length; index++) {
if (modules[index].flags.isExternal)
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"containsExternals(modules) {\n for (let index = 0, length = modules.length; index < length; index++) {\n if (modules[index].flags.isExternal) {\n return true;\n }\n }\n return false;\n }",
"function isExternal(module) {\n\tvar context = module.context;... | [
"0.83417916",
"0.65813124",
"0.6211364",
"0.60109836",
"0.5951687",
"0.5929775",
"0.5914554",
"0.5878686",
"0.58632666",
"0.58632666",
"0.5830022",
"0.5675886",
"0.5594062",
"0.5585988",
"0.5555206",
"0.55258256",
"0.551077",
"0.5474962",
"0.5452695",
"0.54504204",
"0.5441462... | 0.8276232 | 1 |
Sort the given list of modules by name, groups external modules at the bottom. | function sortReflections(modules) {
modules.sort(function (a, b) {
if (a.flags.isExternal && !b.flags.isExternal)
return 1;
if (!a.flags.isExternal && b.flags.isExternal)
return -1;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"sortReflections(modules) {\n modules.sort((a, b) => {\n if (a.flags.isExternal && !b.flags.isExternal) {\n return 1;\n }\n if (!a.flags.isExternal && b.flags.isExternal) {\n return -1;\n }\n return a.getFullName() < b.getFu... | [
"0.7007935",
"0.64478034",
"0.6240002",
"0.6210579",
"0.5964607",
"0.5911648",
"0.5817341",
"0.5741712",
"0.56919324",
"0.56013787",
"0.5477442",
"0.5436642",
"0.54285896",
"0.5421105",
"0.5415375",
"0.5415375",
"0.5415375",
"0.5393147",
"0.53679895",
"0.5300158",
"0.53000104... | 0.7017547 | 0 |
Create navigation nodes for all container children of the given reflection. | function buildChildren(reflection, parent) {
var modules = reflection.getChildrenByKind(td.models.ReflectionKind.SomeModule);
modules.sort(function (a, b) {
return a.getFullName() < b.getFullName() ? -1 : 1;
});
modu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"buildChildren(reflection, parent) {\n const modules = reflection.getChildrenByKind(index_1.ReflectionKind.SomeModule);\n modules.sort((a, b) => {\n return a.getFullName() < b.getFullName() ? -1 : 1;\n });\n modules.forEach((reflection) => {\n const item = Navigatio... | [
"0.6422355",
"0.57977486",
"0.56227124",
"0.547798",
"0.5462162",
"0.5454393",
"0.5432314",
"0.5411734",
"0.53993845",
"0.5376516",
"0.5374041",
"0.5372851",
"0.53325117",
"0.5309689",
"0.5302606",
"0.53018016",
"0.5296067",
"0.52671903",
"0.52671903",
"0.52671903",
"0.523684... | 0.6299864 | 1 |
Create navigation nodes for the given list of reflections. The resulting nodes will be grouped into an "internal" and an "external" section when applicable. | function buildGroups(reflections, parent, callback) {
var state = -1;
var hasExternals = containsExternals(reflections);
sortReflections(reflections);
reflections.forEach(function (reflection) {
if (hasExternals && !... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"buildGroups(reflections, parent, buildChildren = false) {\n let state = -1;\n const hasExternals = this.containsExternals(reflections);\n this.sortReflections(reflections);\n reflections.forEach((reflection) => {\n if (hasExternals && !reflection.flags.isExternal && state !==... | [
"0.619292",
"0.55329454",
"0.55072147",
"0.5368447",
"0.5272168",
"0.5150313",
"0.50047255",
"0.49828666",
"0.49484253",
"0.49413618",
"0.48317352",
"0.4826473",
"0.47976595",
"0.47610408",
"0.4718678",
"0.4718678",
"0.4718678",
"0.47163343",
"0.47121012",
"0.47110072",
"0.47... | 0.6351298 | 0 |
Create task class using parameters | getTask(_parameters) {
// TODO: compare parameters with empty
return new Task(_parameters);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createTask(v,t){\r\n \r\n }",
"function Task() {\n var arg, args, key, opts, value, _base, _base1, _i, _len;\n args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];\n Task.__super__.constructor.apply(this, arguments);\n if (this.config == null) {\n this.con... | [
"0.7533672",
"0.7019728",
"0.7015514",
"0.6847936",
"0.68316054",
"0.67392045",
"0.6703152",
"0.66932213",
"0.668355",
"0.6673712",
"0.6521484",
"0.6520648",
"0.6481673",
"0.6424497",
"0.64094794",
"0.63919795",
"0.63548684",
"0.63525313",
"0.6342925",
"0.6314105",
"0.6290407... | 0.7309416 | 1 |
When changing type update limit select | function onChangeType(type) {
var limitBy = document.getElementById('nav_limit_by');//Ext.fly('nav_limit_by');
var html = '';
if (type == 'TIT') {
limitBy.options.length = 0;
limitBy.options[0] = new Option('Ansatz Neu', '7');
limitBy.options[1] = new Option('Ansatz Alt', '8');
limitBy.options[2] = new Opti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function onChangePageLimit(el) {\n curPageLimit = $(el).val();\n refreshTable();\n debug('Page limit changed : ' + curPageLimit);\n }",
"limit (limit) {\n this._setValue(limit);\n }",
"function changeBookingListLimit(event)\n{\n var value = $(this).val();\n ... | [
"0.6799204",
"0.6356613",
"0.6240394",
"0.61074543",
"0.59931785",
"0.5975412",
"0.58983123",
"0.5852182",
"0.5674285",
"0.56584644",
"0.56207937",
"0.5613402",
"0.5602792",
"0.55868506",
"0.55841947",
"0.55839515",
"0.55430526",
"0.55421245",
"0.5539803",
"0.55335355",
"0.55... | 0.6672859 | 1 |
Creates the sub navigation | function createSubNavigation() {
var yearSelect = g_year_html; // defined in init.js
if (g_data_type == 'hhr') {
var limitSelect = '<table><tr><td class="right">Begrenzen nach <select size="1" name="nav_limit_by"><option value="7" selected="selected">Ist-Betrag</option><option value="8">Haushaltsbetrag</option><op... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _addNavigation() {}",
"function setupPageNavs () {\n\t\t// For any nested list items, wrap the link text in a span so that we can put a border under the text on hover.\n\t\t$mobilemenu.find(\".ibm-mobilemenu-section li li a\").wrapInner(\"<span>\");\n\n\t\tIBM.common.util.a11y.makeTreeAccessible({\n\t\t... | [
"0.6791451",
"0.67479724",
"0.6745088",
"0.67149836",
"0.67065173",
"0.66697246",
"0.6579115",
"0.65787727",
"0.64686924",
"0.6444773",
"0.6400046",
"0.63839835",
"0.6349757",
"0.6337652",
"0.6305311",
"0.63019264",
"0.6290706",
"0.6269122",
"0.62364936",
"0.62333804",
"0.622... | 0.6913683 | 0 |
Creates a panel for the form | function createPanel(title, id) {
var panelHtml = '<table class="form-layout" cellspacing="0"><tr><td class="title">' + title + '</td><td class="content' + (id == 5 ? ' content-last' : '') + '"><div id="form-panel' + id + '">' + createPanelFields(id) + '</div></td></tr></table>';
var panel = new Ext.Panel({
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"addPanel(component) {\nthis\n.addInfoToComponent(component, formEditorConstants.COMPONENT_TYPE_PANEL)\n.addProperty(component, 'name', this._componentList.findComponentText(component.type, 'name', 'Panel'))\n.addProperty(component, 'zIndex', 0)\n.addProperty(component, 'width', 200)\n.addPrope... | [
"0.7099332",
"0.68756527",
"0.6817245",
"0.6803008",
"0.67484814",
"0.6698963",
"0.6654265",
"0.66236645",
"0.6483316",
"0.6482555",
"0.64665085",
"0.6419458",
"0.6396304",
"0.6392417",
"0.6361357",
"0.6325033",
"0.6324242",
"0.6283531",
"0.6255471",
"0.623193",
"0.62313443",... | 0.7046335 | 1 |
Create the dynamic input fields | function createDynamicFields(name) {
var fields = '';
for (var i = 1; i <= g_maxFormFields; i++) {
fields += '<div class="floatElement select select_' + i + '"><select size="1" id="' + name + 'Text' + i + '">' + createOptions(name) + '</select></div>';
if (i < g_maxFormFields) {
fields += '<div class="floatE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function generateForm() {\n let form = document.getElementById('dynamic-form');\n\n window.fields.forEach(field => {\n switch (field.type) {\n case 'radio':\n form.appendChild(radioInput(field));\n break;\n default:\n form.appendChild(... | [
"0.7419977",
"0.69688225",
"0.69209427",
"0.67823154",
"0.6700084",
"0.6696472",
"0.66645217",
"0.6644529",
"0.65905833",
"0.65902627",
"0.65655947",
"0.65611714",
"0.65591216",
"0.655607",
"0.6502666",
"0.64574677",
"0.64503455",
"0.6427869",
"0.6392718",
"0.637084",
"0.6370... | 0.7001237 | 1 |
Handles the select fields Show the next radio button when not empty Hide the next radio button, previous radio button and itself when empty | function handleSelect(name, index) {
var element = Ext.get(name + 'Text' + index).dom;
if (element.value != '' && index < g_maxFormFields) { // Select box not empty and not the last box
document.getElementsByName(name)[0].checked = false;
Ext.get(name + 'RadioTable' + index).dom.style.display = 'block';
Ext.ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function control (){\n if(question.val()==\"\" || answ1.val()==\"\" || answ2.val()==\"\" || answ3.val()==\"\" || answ4.val()==\"\")\n {\n answers.hide();\n addquestionbutton.hide();\n }\n else\n {\n answers.append(\"<option>\"+answ1.val()+\"</optio... | [
"0.64760834",
"0.63004255",
"0.6229671",
"0.6227461",
"0.6225193",
"0.61521655",
"0.6122401",
"0.60196984",
"0.5985375",
"0.59786534",
"0.59781814",
"0.5954474",
"0.5934779",
"0.5933555",
"0.5846509",
"0.5845809",
"0.5810524",
"0.57913935",
"0.57892776",
"0.57540154",
"0.5745... | 0.6381207 | 1 |
Handle the radio buttons Show the next select box if it is not visible yet | function handleRadio(name, index) {
var select = Ext.get(name + 'Text' + (index + 1)).dom;
if (select.style.display == 'none') {
select.style.display = 'block';
select.parentNode.style.display = 'block';
select.selectedIndex = 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function CheckIfRadioSelected() {\n for (var i = 0; i < questExercices.length; i++) {\n if (questExercices[i].checked && currentSlide == slides.length - 1) {\n nextQuestionType.style.display = \"inline-block\";\n }\n\n else if (questExercices[i].checked) {\n nextButton.style.display = \"inline-... | [
"0.6661101",
"0.6437401",
"0.63845664",
"0.6226556",
"0.6216909",
"0.62154466",
"0.6208977",
"0.61764455",
"0.61712545",
"0.6110578",
"0.610461",
"0.6082758",
"0.60782784",
"0.6071895",
"0.60536724",
"0.6021341",
"0.6010295",
"0.6006655",
"0.5997154",
"0.59710747",
"0.5922453... | 0.6578972 | 1 |
Reset all fields (called after rendering and when "Alle" is checked) Hides and unsets all select boxes and radio buttons | function resetForms(name) {
for (var i = 1; i <= g_maxFormFields; i++) {
Ext.get(name + 'Text' + i).dom.selectedIndex = 0;
}
for (var i = 1; i < g_maxFormFields; i++) {
document.getElementsByName(name + 'Radio' + i)[0].checked = false;
document.getElementsByName(name + 'Radio' + i)[1].checked = fals... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function resetFields() {\n $(\"#show-order\").hide();\n $(\"input:radio\").attr(\"checked\", false);\n $(\"input:checkbox\").attr(\"checked\", false);\n}",
"function reset_forms() {\n $(\"#fancy_unit\").hide();\n $(\"#fancy_position\").hide();\n $(\"#fancy_new_employee\").hide();\n $(\"#fancy_edit... | [
"0.7740873",
"0.7229088",
"0.7137173",
"0.7134785",
"0.7091468",
"0.70823807",
"0.70804363",
"0.70574796",
"0.7008917",
"0.6998445",
"0.6988003",
"0.6971556",
"0.69709826",
"0.6965617",
"0.694858",
"0.69443977",
"0.6927287",
"0.69241405",
"0.6907968",
"0.68935925",
"0.6891109... | 0.7299265 | 1 |
Limits chapters (Kapitel) to the selected EPs | function limitChapters() {
var selected = null;
if (document.getElementsByName('einzelplan')[0].checked == true) {
selected = 'all';
} else {
var checkboxes = document.getElementsByName('einzelplan[]');
selected = [];
for (var i = 0; i < checkboxes.length; i++) {
selected[i] = checkboxes[i].checked ? ch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async pagesForChapterCollection(chapterCollection) {}",
"function rebuildSelectBox(index, chapters) {\n\tvar element = Ext.get('kapitelText' + index).dom;\n\telement.options[element.length] = new Option('---', '', true, true);\n\n\tfor (var i = 0; i < chapters.length; i++) {\n\t\telement.options[element.length] ... | [
"0.5170058",
"0.5003158",
"0.49505267",
"0.4937564",
"0.4933612",
"0.49233165",
"0.48160315",
"0.4746047",
"0.4740455",
"0.47257352",
"0.47237864",
"0.47121346",
"0.4711824",
"0.46967345",
"0.46874914",
"0.46248037",
"0.4622358",
"0.461707",
"0.46006826",
"0.4570256",
"0.4547... | 0.75941193 | 0 |
In array check for integers | function int_in_array(value, arr) {
for (var i = 0; i < arr.length; i++) {
if (parseInt(arr[i], 10) == parseInt(value, 10)) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"contains(num, arr) {\n\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] === num) {\n return true;\n }\n }\n return false;\n }",
"function numbers (a) {\n\t return low.isArray(a) && a.every(low.number)\n\t}",
"function inArray(number) {\n\tfor (... | [
"0.7184875",
"0.70413667",
"0.6683857",
"0.6678529",
"0.6656711",
"0.66375697",
"0.6619824",
"0.66152894",
"0.6503486",
"0.65007704",
"0.6497572",
"0.64879316",
"0.6413775",
"0.63823205",
"0.6371025",
"0.6357584",
"0.63393533",
"0.6326453",
"0.6323331",
"0.63189805",
"0.63189... | 0.75317043 | 0 |
Gets the appropriate unit for a number of raw bytes in a particular base. | function getUnit(bytes, base) {
if (bytes === 0) {
return bytes;
}
var iterator = 0;
while ((bytes / Math.pow(base, iterator)) >= base) {
iterator++;
}
return iterator;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function util_frombase(input_buffer, input_base)\n {\n /// <summary>Convert number from 2^base to 2^10</summary>\n /// <param name=\"input_buffer\" type=\"Uint8Array\">Array of bytes representing the number to convert</param>\n /// <param name=\"input_base\" type=\"Number\">The base of init... | [
"0.6039361",
"0.5765818",
"0.5627783",
"0.5560423",
"0.5516497",
"0.55029887",
"0.54870075",
"0.54222775",
"0.54030645",
"0.53690857",
"0.5294619",
"0.52909434",
"0.5264366",
"0.5238187",
"0.52124393",
"0.5204402",
"0.5200017",
"0.51940686",
"0.5178122",
"0.5147674",
"0.51476... | 0.81381685 | 0 |
dot product of two matrices | static dot(m0, m1) {
if (m0.cols != m1.rows) {
throw new Error("Matrices are not \"dot\" compatible!");
}
let m = new Matrix(m0.rows, m1.cols);
for (let i = 0; i < m.rows; i++) {
for (let j = 0; j < m.cols; j++) {
let sum = 0;
for ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function dotProduct(a, b) {\n return a.reduce(function (sum, v, i) {\n return sum + (v * b[i]);\n }, 0);\n}",
"static dot(m1, m2) {\n let dim1 = m1.shape();\n let dim2 = m2.shape();\n if (dim1[1] != dim2[0]) {\n throw Matrix.dimError;\n }\n let newGrid = [];\n for (let i = 0; ... | [
"0.7633254",
"0.75850743",
"0.7467862",
"0.7455407",
"0.7405857",
"0.7346015",
"0.73055",
"0.72907674",
"0.71777815",
"0.70868045",
"0.7010643",
"0.6870855",
"0.68585634",
"0.68275666",
"0.68152136",
"0.6809507",
"0.67977744",
"0.67952096",
"0.6776137",
"0.6770381",
"0.673496... | 0.79490834 | 0 |
Creates an instance of ElasticsearchAdapter. | constructor() {
super();
let hosts = this.getHostsFromConfig();
this.client = new ElasticSearch.Client({
host: hosts,
log: SearchLogger
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"constructor() {\n this.env = nconf.get('env');\n\n // Basic ES config - no auth\n const esConfig = {\n host: this.env.ES_PROTOCOL + '://' + this.env.ES_HOST + ':' + this.env.ES_PORT,\n requestTimeout: this.env.ES_TIMEOUT || 5000,\n log: 'error'\n };\n\n // Check if user/passwd are pro... | [
"0.5992337",
"0.5891342",
"0.55891085",
"0.5534646",
"0.55025345",
"0.5430342",
"0.5115935",
"0.49430817",
"0.49276918",
"0.49070838",
"0.48912916",
"0.48874822",
"0.4862597",
"0.48430952",
"0.48195532",
"0.48195532",
"0.48195532",
"0.48195532",
"0.48195532",
"0.48195532",
"0... | 0.66541064 | 0 |
set message type and actual message | static setMessage(type, message) { //type becomes the key, message becomes the value
this._messages = this.messages || {}; //if messages is still null then we set it as an empty object otherwise we can't use it
this._messages[type] = message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function Message(type) {\n this._type = type;\n }",
"function set_message(type, message) {\n if (type == undefined || type == \"\" || message == undefined\n || message == \"\")\n return false;\n\n var in_game = false;\n switch (type) {\n case 'invisible':\n print(me... | [
"0.679753",
"0.6526298",
"0.6477506",
"0.6349093",
"0.6278768",
"0.624681",
"0.6154894",
"0.61297095",
"0.61199296",
"0.6002946",
"0.59891",
"0.595625",
"0.5953453",
"0.59332776",
"0.5932992",
"0.588561",
"0.5885096",
"0.587486",
"0.58727664",
"0.5861536",
"0.5854119",
"0.5... | 0.7410948 | 0 |
Adds Resource hint tags | function addResourceHintTags(
resourceHintType,
filter,
assetTags,
htmlWebpackPluginOptions
) {
const urls = assetTags
.map(tag => tag.attributes.src || tag.attributes.href)
.filter(url => url)
.filter(minimatch.filter(filter))
// Add a ResourceHint for every match
return urls.map(url =>
c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addHintButton (caption, datai18n) {\n datai18n = datai18n || 'button.hint'\n return addHelperButton(\n 'fa-lightbulb-o',\n caption,\n 'btn-tutorial-hint',\n datai18n\n )\n }",
"function resourceHintWebpackPluginAlterAssetTags(htmlPluginData, callback) {\n const htmlWebpack... | [
"0.6043008",
"0.60064226",
"0.5955167",
"0.5905777",
"0.5644736",
"0.56062627",
"0.5566548",
"0.552528",
"0.54908",
"0.54745185",
"0.5297156",
"0.52632684",
"0.5230881",
"0.5230881",
"0.50398296",
"0.5002273",
"0.49810022",
"0.4979803",
"0.49620578",
"0.4933607",
"0.49269944"... | 0.6691513 | 0 |
calculates the value of the inputed text if it is an aritmatic expression | function calculate(text){
var pattern=/\d+|\+|\-|\*|\/|\(|\)/g;
var tokens=text.match(pattern);
try {
var val = evaluate(tokens);
if (tokens.length>0){
throw "ill-formed expression";
}
return String(val);
}
catch (err){
return err; // error ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calc(){\n let y = document.getElementById(\"text-box\").value;\n let z = eval(y);\ndocument.getElementById(\"text-box\").value=z;\n}",
"function calculate() {\n var val = formulaInput.val();\n if(val === \"\") {\n resultDisplay.html(\"0\");\n retur... | [
"0.69481707",
"0.6643103",
"0.6598201",
"0.64678705",
"0.6415602",
"0.6399131",
"0.63900054",
"0.63659984",
"0.6301071",
"0.6300532",
"0.6250822",
"0.62195265",
"0.62184083",
"0.62115204",
"0.6171755",
"0.61420166",
"0.6138764",
"0.61336935",
"0.61326957",
"0.61010945",
"0.60... | 0.74909335 | 0 |
given an array of tokens, returns the next token if it is a number, otherwise returns NaN, also handles open parens by retuning evaluated value of the expression w/in parens deals with negative signs | function read_operand(tokens) {
var num = tokens[0];
tokens.shift();
if(num=="-"){
num=tokens.shift()*-1;
}
if(num=="("){
if (tokens.length>0)
{
num=evaluate(tokens);
console.log(tokens);
console.log(num);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function evaluate(tokens) {\r\n try {\r\n if(tokens.length<1) throw \"Missing operand.\";\r\n }\r\n catch(err) {\r\n return \"Error: \"+err;\r\n }\r\n var value = read_operand(tokens);\r\n\tif(isNaN(value)) return value;\r\n while (tokens.length>0) {\r\n var operator = tokens... | [
"0.706061",
"0.7014275",
"0.6903878",
"0.68577707",
"0.6582349",
"0.6579755",
"0.63345635",
"0.6238651",
"0.6230786",
"0.5908472",
"0.5904962",
"0.5881522",
"0.5775142",
"0.576795",
"0.57612586",
"0.5748363",
"0.5731562",
"0.5715202",
"0.56485546",
"0.56447095",
"0.56403774",... | 0.7455008 | 0 |
create a new draft entity at the focus | function createDraftEntityAtFocus(editorState) {
const {
selection,
contentState,
blockKey,
contentBlock,
} = getSelectionFocusProps(editorState);
const entityEnd = selection.getAnchorOffset();
const entityTypeString = getEntityTypeStringAtFocus(selection, contentBlock);
const entityStart = s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createNewDraft() {\n $('#existing-drafts').append(\"<div id='draft-\" + draftData.length + \"' class='draft'><input class='draft-title' id='draft-\" + draftData.length + \"-title' value='Untitled Draft'><div class='open-button action-button' onclick='openDraft(\" + draftData.length + \")'><span class='... | [
"0.6195222",
"0.6182818",
"0.5985136",
"0.5929526",
"0.57365596",
"0.56547976",
"0.5593719",
"0.5590569",
"0.5584327",
"0.556357",
"0.55444944",
"0.5507182",
"0.5408315",
"0.53683394",
"0.53683233",
"0.5348823",
"0.53482056",
"0.5344081",
"0.5343677",
"0.5340499",
"0.533676",... | 0.7296895 | 0 |
Shows an error box at the top of the $parent DOM object containing the specified message | function showError($parent, msg) {
let $self = $(`<div class="error-message"><p>${msg}</p></div>`).prependTo($parent);
$self.append('<button type="button">X</button>').click(() => { $self.remove() });
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ErrorDialog(parent){this.parent=parent;}",
"function throw_error(el,msg){\n \t$(el).addClass('error');\n \t$(el).parent().find('.error_box').html(msg).addClass('error');\n }",
"function showErrorMessages()\n{\n parent.showErrorMessages();\n}",
"function showErrorMessages()\n{\n parent.sho... | [
"0.7268756",
"0.7264782",
"0.7218985",
"0.7218985",
"0.71921945",
"0.7185886",
"0.7148472",
"0.7139727",
"0.7083647",
"0.7045756",
"0.7045756",
"0.70314395",
"0.70272416",
"0.700078",
"0.7000027",
"0.69911516",
"0.6981757",
"0.69768715",
"0.6940614",
"0.6940614",
"0.6931103",... | 0.8015107 | 0 |
Adds new articles to the currently displayed ones. If the number of articles passed to the function is lower than defaultArticlesNum the 'load more' button is replaced by the 'end list' banner. | addContent(articles) {
let $self = $('#articles');
let $loadMoreButton = $self.children('#load-more-button');
let $listEnd = $self.children('#list-end');
let $articlesContainer = $self.children('#articles-big-list');
if(this.section === 'noisiest') { // Noisiest list do not allo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function showTenMoreArticles() {\n const total = articleList.length;\n const next = (10 * pageNumber);\n const last = (10 * (pageNumber + 1));\n if (total >= last) {\n shownArticles = shownArticles.concat(articleList.slice(next, last));\n pageNumber++;\n } else if (total === 0) {\n loadJSON('../src/d... | [
"0.7147601",
"0.6997454",
"0.6831355",
"0.6740707",
"0.6675149",
"0.6669844",
"0.66429126",
"0.65326977",
"0.65280205",
"0.64836377",
"0.64447534",
"0.6428788",
"0.64153826",
"0.64112854",
"0.6369847",
"0.63521475",
"0.6338165",
"0.63118255",
"0.6198748",
"0.61904037",
"0.618... | 0.7916927 | 0 |
Deletes the currently displayed article with a specific id. | deleteArticle(articleId) {
this.articles.find(article => article.config.id === articleId).delete();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function removeArticle(articleId){\n var articleUrl = urlAdress + '/' + articleId + key;\n $.ajax(articleUrl, {\n type: 'DELETE',\n success: function(){ \n /*Set actual page to default first page, remove button for removed article. */\n $lastUse... | [
"0.72556233",
"0.7157266",
"0.7101789",
"0.7098881",
"0.66971016",
"0.662591",
"0.645301",
"0.63948286",
"0.63794094",
"0.6356285",
"0.62976664",
"0.6284154",
"0.62347347",
"0.622039",
"0.62093997",
"0.61824566",
"0.6127503",
"0.60981727",
"0.60916173",
"0.60427624",
"0.60282... | 0.7203794 | 1 |
Load articles of type newest | loadNewest(replace) {
this.loadArticles({
type: 'newest',
from: replace ? 0 : this.articles.length,
num: this.defaultNewArticlesNum
}, replace);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function loadLatestContent(data) {\n if (isEmpty(data.Data)) {\n console.log('empty data');\n return;\n }\n\n var articles = '';\n $.each(data.Data, function (index, item) {\n articles = articles + page.renderLatest(item);\n });\n\n $('#base #latest').html(articles);\n $('... | [
"0.6205886",
"0.6155131",
"0.60716957",
"0.6070946",
"0.6042044",
"0.6040449",
"0.5921853",
"0.59137064",
"0.58602476",
"0.5839456",
"0.5775656",
"0.57464945",
"0.5728388",
"0.5645538",
"0.56105536",
"0.5594008",
"0.5571138",
"0.556345",
"0.55062443",
"0.5482854",
"0.54814744... | 0.70444363 | 0 |
Load articles of type noisiest | loadNoisiest(replace) {
this.loadArticles({
type: 'noisiest',
from: replace ? 0 : this.articles.length,
num: this.defaultNewArticlesNum
}, replace);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function loadArticle() {\n // obtenemos los detalles del articulo\n var articleId = findGetParameter('id');\n var articleUrl = './data/data-' + articleId + '.json';\n retrieveData(articleUrl);\n}",
"function findArticles() {}",
"loadArticles () {\n ux.showLoadingMessage(this.element);\n ... | [
"0.6824887",
"0.6494692",
"0.61384153",
"0.6045436",
"0.5949571",
"0.59352857",
"0.5847125",
"0.5782045",
"0.574009",
"0.5716888",
"0.57136816",
"0.5712225",
"0.57064533",
"0.56969213",
"0.5674166",
"0.56439084",
"0.5606042",
"0.5597548",
"0.5582957",
"0.5557067",
"0.554351",... | 0.75802153 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.