Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
pega o valor do genero selecionado
function genderSelected() { const genders = document.querySelectorAll('.genders'); let result = ''; for (let index = 0; index < genders.length; index += 1) { if (genders[index].checked) { result = genders[index].value; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tipoTamano() {\n miPizza.seleccionarTamano(this.value);\n}", "convertSelected(value) {\n var options = this.get('options');\n\n // If it is plain object.\n if (typeOf(options) === 'object') {\n value = this.get('inputOptions').findBy('id', value);\n }\n\n return value;\n }", "f...
[ "0.6196985", "0.6157473", "0.6050519", "0.5988135", "0.58771765", "0.58570707", "0.5820338", "0.5788238", "0.57425076", "0.570755", "0.56745577", "0.56645554", "0.5657267", "0.5645496", "0.5629252", "0.5622404", "0.5609772", "0.56079906", "0.5578935", "0.55771697", "0.5567065...
0.0
-1
apaga o form e cria a msg de final de cadastro
function messenger() { const rightContent = document.querySelector('.right-content'); const gender = genderSelected(); rightContent.className = 'right-content finalMessenger'; rightContent.innerHTML = `<p> Olá, ${fristName.value} ${lastName.value}<br> email: ${emailOrPhone.value}<br> data de nascimento...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Validacion_Create(e){\n //Esta linea detiene el envio al POST para validarlo\n e.preventDefault();\n try{\n console.log('Validando formulario Insumos!');\n if(this.querySelector('[name=Descripcion]').value == '') { \n console.log('La Descripcion esta vacía');\n ejecutaAlerta...
[ "0.6828644", "0.6782978", "0.66321075", "0.65958804", "0.6525171", "0.6508835", "0.6483694", "0.64814234", "0.6474385", "0.6469389", "0.6454231", "0.6429079", "0.64131045", "0.63996375", "0.6397568", "0.6386864", "0.6381184", "0.6376726", "0.6371601", "0.6347491", "0.6335764"...
0.0
-1
Add Legends, Save sequence, tokens to player object Add Leave / Join capabilities, Add Pots during AllIn Add Money Sharing
function validPlayer(player) { return player && player.name && players[player.id] && players[player.id].name && players[player.id].name.toUpperCase() == player.name.toUpperCase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addEndorsement(identifier) {\n // A user is endorsing a skill! Do some things about it..\n var skill_guid = $(identifier).data('guid');\n\n elgg.action('b_extended_profile/add_endorsement', {\n guid: elgg.get_logged_in_user_guid(),\n skill: skill_guid\n });\n\n\n var targetSki...
[ "0.558751", "0.55411184", "0.55261505", "0.551449", "0.5512348", "0.5486153", "0.5476354", "0.5476354", "0.5417372", "0.54132694", "0.5401783", "0.5386453", "0.538077", "0.53701276", "0.53448516", "0.53298306", "0.5324451", "0.53077245", "0.53051317", "0.52943534", "0.5283727...
0.0
-1
identifyDocsNeeded looks at a caseSet.docRIDs and identifies all the doc records we need to retrieve for those cases
function identifyDocsNeeded(caseSet){ //caseSet is an array, for each case record object, in_filedIn is an array of strings with the recordID of an Edge leading to a document var uniqueEdges = new Map(); //used to collect unique doc IDs in it's keys var docEdges = new Array(); //the array of unique edges we will ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function identifyPeopleNeeded(caseSet){\n\t//caseSet is an array, for each case record object, in_filedIn is an array of strings with the recordID of an Edge leading to a document\n\tvar uniqueEdges = new Map(); //used to collect unique doc IDs in it's keys\n\tvar personEdges = new Array(); //the array of unique e...
[ "0.6020423", "0.58318675", "0.5281438", "0.51864", "0.51294804", "0.50736463", "0.50022477", "0.4829226", "0.4762355", "0.47515666", "0.47247827", "0.46916178", "0.4662915", "0.4662915", "0.46616265", "0.46449578", "0.46176177", "0.4591536", "0.45913866", "0.4590474", "0.4590...
0.74312127
0
identifyPeopleNeeded looks at a caseSet.personRIDs and identifies all the person records we need to retrieve for those cases people can be clients or parties or maybe something else
function identifyPeopleNeeded(caseSet){ //caseSet is an array, for each case record object, in_filedIn is an array of strings with the recordID of an Edge leading to a document var uniqueEdges = new Map(); //used to collect unique doc IDs in it's keys var personEdges = new Array(); //the array of unique edges we wil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function identifyInfoNeeded(caseSet){\n\t//caseSet is an array, for each case record object, in_filedIn is an array of strings with the recordID of an Edge leading to a document\n\tvar uniqueEdges = new Map(); //used to collect unique doc IDs in it's keys\n\tvar infoEdges = new Array(); //the array of unique edges...
[ "0.588076", "0.5643386", "0.5421783", "0.513616", "0.5102728", "0.5102175", "0.5086298", "0.49843818", "0.48716542", "0.48438668", "0.4843657", "0.48394325", "0.48320168", "0.48104087", "0.47926083", "0.47778392", "0.47379062", "0.4712454", "0.46534333", "0.46369967", "0.4633...
0.75765175
0
identifyInfoNeeded looks at a caseSet.infoRIDs and identifies all the info records we need to retrieve for those cases
function identifyInfoNeeded(caseSet){ //caseSet is an array, for each case record object, in_filedIn is an array of strings with the recordID of an Edge leading to a document var uniqueEdges = new Map(); //used to collect unique doc IDs in it's keys var infoEdges = new Array(); //the array of unique edges we will re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function identifyPeopleNeeded(caseSet){\n\t//caseSet is an array, for each case record object, in_filedIn is an array of strings with the recordID of an Edge leading to a document\n\tvar uniqueEdges = new Map(); //used to collect unique doc IDs in it's keys\n\tvar personEdges = new Array(); //the array of unique e...
[ "0.577221", "0.55630004", "0.48815146", "0.48377064", "0.48307228", "0.46786672", "0.46460897", "0.4593422", "0.450049", "0.44973364", "0.44616687", "0.44129622", "0.43867463", "0.43678096", "0.43646765", "0.43539563", "0.43141878", "0.4278343", "0.42002538", "0.41860735", "0...
0.7060823
0
base64 is 4/3 + up to two characters of the original data
function byteLength (b64) { var lens = getLens(b64) var validLen = lens[0] var placeHoldersLen = lens[1] return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getBase64() {\n var s = this.getDump();\n\n var ch =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n var c1, c2, c3, e1, e2, e3, e4;\n var l = s.length;\n var i = 0;\n var r = \"\";\n\n do {\n c1 = s.charCodeAt(i);\n e1 = c1 >> 2;\n c2 = s.charCod...
[ "0.7706494", "0.73247707", "0.7285839", "0.72313976", "0.7184183", "0.7122958", "0.7106424", "0.7089871", "0.70621145", "0.6977749", "0.6975697", "0.6933473", "0.690084", "0.690084", "0.6893637", "0.6878043", "0.6873469", "0.6873469", "0.6855648", "0.68356186", "0.68149954", ...
0.0
-1
The Buffer constructor returns instances of `Uint8Array` that have their prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of `Uint8Array`, so the returned instances will have all the node `Buffer` methods and the `Uint8Array` methods. Square bracket notation works as expected it returns a si...
function Buffer (arg, encodingOrOffset, length) { if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) { return new Buffer(arg, encodingOrOffset, length) } // Common case. if (typeof arg === 'number') { if (typeof encodingOrOffset === 'string') { throw new Error( 'If encoding is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function BufferToArrayBuffer () {\n return (new Buffer(this)).buffer\n}", "function BufferToArrayBuffer () {\n return (new Buffer(this)).buffer\n}", "function BufferToArrayBuffer () {\n return (new Buffer(this)).buffer\n}", "function BufferToArrayBuffer () {\n return (new Buffer(this)).buffer\n}", "toB...
[ "0.7353703", "0.7353703", "0.7353703", "0.7353703", "0.6973153", "0.68942523", "0.68942523", "0.684805", "0.684805", "0.684805", "0.684805", "0.684805", "0.684805", "0.684805", "0.68378556", "0.68378556", "0.68378556", "0.68378556", "0.68378556", "0.68378556", "0.68378556", ...
0.0
-1
Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, OR the last index of `val` in `buffer` at offset <= `byteOffset`. Arguments: buffer a Buffer to search val a string, Buffer, or number byteOffset an index into `buffer`; will be clamped to an int32 encoding an optional encoding, relevant is va...
function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { // Empty buffer means no match if (buffer.length === 0) return -1 // Normalize byteOffset if (typeof byteOffset === 'string') { encoding = byteOffset byteOffset = 0 } else if (byteOffset > 0x7fffffff) { byteOffset = 0x7fffff...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){// Empty buffer means no match\n if(buffer.length===0)return -1;// Normalize byteOffset\n if(typeof byteOffset==='string'){encoding=byteOffset;byteOffset=0;}else if(byteOffset>0x7fffffff){byteOffset=0x7fffffff;}else if(byteOffset<-0x80000000){byte...
[ "0.8282834", "0.82551074", "0.82551074", "0.82537997", "0.82537997", "0.82537997", "0.82537997", "0.82537997", "0.82537997", "0.82537997", "0.82537997", "0.8248577", "0.8246569", "0.8244688", "0.8244688", "0.8228573", "0.82204956", "0.82191277", "0.82191277", "0.82191277", "0...
0.0
-1
Need to make sure that buffer isn't trying to write out of bounds.
function checkOffset (offset, ext, length) { if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeBuffer(buffer, pos, src) {\n src.copy(buffer, pos)\n return src.length\n}", "function writeBuffer(buffer, pos, src) {\n src.copy(buffer, pos)\n return src.length\n}", "ensure(n) {\n let minsize = this.pos + n;\n if (minsize > this.capacity) {\n let cap = this.capacity * 2;\n w...
[ "0.66703993", "0.66703993", "0.663156", "0.651951", "0.63836694", "0.6273749", "0.62542915", "0.6233329", "0.6233329", "0.6106786", "0.60362303", "0.60171753", "0.5981015", "0.5958668", "0.5950117", "0.5950117", "0.5950117", "0.5950117", "0.5950117", "0.5950117", "0.5950117",...
0.0
-1
v8 likes predictible objects
function Item(fun, array) { this.fun = fun; this.array = array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function compareLike(a,b){\n var al = a.idLikesProp.length;\n var bl = b.idLikesProp.length;\n if(al > bl) return -1;\n if(bl > al) return 1;\n return 0;\n}", "function lookAround() {\n var objectDescription = \"\"\n tj.see().then(function(objects) {\n objects.forEach(function(each) {\n ...
[ "0.5275308", "0.5259251", "0.51914096", "0.51837224", "0.51258314", "0.5044666", "0.4894481", "0.4861732", "0.48405245", "0.48326182", "0.48245227", "0.48138928", "0.48060125", "0.4786252", "0.4785142", "0.47594094", "0.47513723", "0.47400674", "0.47274345", "0.4706265", "0.4...
0.0
-1
vuex v3.1.0 (c) 2019 Evan You
function i(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,n.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.pare...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getFieldVuex() {\n return store.getters.dataField;\n }", "function vuexInit(){var options=this.$options;// store injection\n\tif(options.store){this.$store=options.store;}else if(options.parent&&options.parent.$store){this.$store=options.parent.$store;}}", "function U(He){Le&&(He._devtoolHook=Le,Le.emit('v...
[ "0.70982295", "0.69934386", "0.6736843", "0.6719735", "0.6622219", "0.6615567", "0.6615567", "0.6615567", "0.65844995", "0.6482659", "0.6352973", "0.63454497", "0.6338566", "0.6338566", "0.6338566", "0.6338566", "0.6338566", "0.6327704", "0.630139", "0.6295614", "0.6281967", ...
0.0
-1
! vuerouter v3.0.2 (c) 2018 Evan You
function i(t,e){0}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "private internal function m248() {}", "function jj(t,e,n,r,i,o,a,s){var l=(\"function\"===typeof n?n.options:n)||{};return l.__file=\"source.vue\",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=r,l}", "func...
[ "0.60400224", "0.5917185", "0.5844851", "0.5757395", "0.57137334", "0.56615", "0.5656919", "0.5576674", "0.5551065", "0.5536239", "0.55301046", "0.5528277", "0.552687", "0.55261946", "0.5488381", "0.5460428", "0.5448044", "0.5441195", "0.54371935", "0.5416185", "0.54022676", ...
0.0
-1
This sample demonstrates how to Creates or updates an Endpoint resource, which represents a data transfer source or destination.
async function endpointsCreateOrUpdateAzureStorageBlobContainer() { const subscriptionId = process.env["STORAGEMOVER_SUBSCRIPTION_ID"] || "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; const resourceGroupName = process.env["STORAGEMOVER_RESOURCE_GROUP"] || "examples-rg"; const storageMoverName = "examples-storageMov...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _registerRESTEndpoint(resource, endpoint, address) {\n if ( endpoint && typeof endpoint == 'object') {\n bus.publish('restapi.register', {\n \"resource\": resource,\n endpoint: endpoint.path,\n method: endpoint.method.toUpperCase(),\n ...
[ "0.593006", "0.5805054", "0.5788508", "0.56313217", "0.5613535", "0.53128064", "0.52460015", "0.5178574", "0.51216847", "0.5091192", "0.50895983", "0.5086011", "0.5067529", "0.5060737", "0.5050709", "0.4989303", "0.4977567", "0.4974807", "0.49635962", "0.49513704", "0.4948039...
0.5520156
5
This sample demonstrates how to Creates or updates an Endpoint resource, which represents a data transfer source or destination.
async function endpointsCreateOrUpdateAzureStorageSmbFileShare() { const subscriptionId = process.env["STORAGEMOVER_SUBSCRIPTION_ID"] || "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; const resourceGroupName = process.env["STORAGEMOVER_RESOURCE_GROUP"] || "examples-rg"; const storageMoverName = "examples-storageMove...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _registerRESTEndpoint(resource, endpoint, address) {\n if ( endpoint && typeof endpoint == 'object') {\n bus.publish('restapi.register', {\n \"resource\": resource,\n endpoint: endpoint.path,\n method: endpoint.method.toUpperCase(),\n ...
[ "0.59304565", "0.5805028", "0.57891315", "0.56328243", "0.5613406", "0.5521608", "0.531308", "0.5246924", "0.5122954", "0.5092355", "0.50900215", "0.508651", "0.5067937", "0.5060419", "0.50527036", "0.49895898", "0.4978207", "0.49750942", "0.4964857", "0.49521607", "0.4948142...
0.51793057
8
This sample demonstrates how to Creates or updates an Endpoint resource, which represents a data transfer source or destination.
async function endpointsCreateOrUpdateNfsMount() { const subscriptionId = process.env["STORAGEMOVER_SUBSCRIPTION_ID"] || "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; const resourceGroupName = process.env["STORAGEMOVER_RESOURCE_GROUP"] || "examples-rg"; const storageMoverName = "examples-storageMoverName"; const ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _registerRESTEndpoint(resource, endpoint, address) {\n if ( endpoint && typeof endpoint == 'object') {\n bus.publish('restapi.register', {\n \"resource\": resource,\n endpoint: endpoint.path,\n method: endpoint.method.toUpperCase(),\n ...
[ "0.5928974", "0.58042574", "0.57895684", "0.5630715", "0.5613964", "0.55202615", "0.5244278", "0.5179395", "0.51214033", "0.5090975", "0.50890875", "0.50860196", "0.5066204", "0.50609", "0.505132", "0.49878284", "0.49755612", "0.4974012", "0.49655914", "0.49514556", "0.494675...
0.53122026
6
This sample demonstrates how to Creates or updates an Endpoint resource, which represents a data transfer source or destination.
async function endpointsCreateOrUpdateSmbMount() { const subscriptionId = process.env["STORAGEMOVER_SUBSCRIPTION_ID"] || "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; const resourceGroupName = process.env["STORAGEMOVER_RESOURCE_GROUP"] || "examples-rg"; const storageMoverName = "examples-storageMoverName"; const ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _registerRESTEndpoint(resource, endpoint, address) {\n if ( endpoint && typeof endpoint == 'object') {\n bus.publish('restapi.register', {\n \"resource\": resource,\n endpoint: endpoint.path,\n method: endpoint.method.toUpperCase(),\n ...
[ "0.5930143", "0.58036256", "0.57874244", "0.5630434", "0.5612998", "0.55206496", "0.5312226", "0.52442473", "0.5178274", "0.5120783", "0.5091692", "0.5087863", "0.50853807", "0.5066231", "0.50610185", "0.50503504", "0.49890876", "0.49756026", "0.49741897", "0.49638167", "0.49...
0.48887038
27
Handles the server response for the delete action. If response.success is false, the entry could not be deleted for some reason
onDeleteSuccess(response) { if (response && response.success) { this.$target.data('is-deleted', true) } else { this.onDeleteError() } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleResponseDelete() {\n var currentResponse = $(this)\n .parent()\n .parent()\n .data(\"response\");\n deleteResponse(currentResponse.id);\n }", "function postDelete(response) {\n\tif (response == \"OK\") {\n\t\t$(\"h3#h\" + $(\"#expiddel\").val()).remove();\n\t\t$(\"div#h\" + $...
[ "0.75003415", "0.7087582", "0.68746734", "0.68647385", "0.6782482", "0.6758882", "0.67200404", "0.6690688", "0.6551194", "0.6547536", "0.6489923", "0.64531964", "0.6448645", "0.6448144", "0.64207864", "0.64193535", "0.64183784", "0.63963705", "0.6371144", "0.6356803", "0.6350...
0.69448465
2
Loads dynamic vars into this page
function loadPage() { // Load title document.title = this.title; // Load H1 $('#load-h1').html('<h1>' + this.h1 + '</h1>'); // Add pageview to Google Analytics CS.GoogleAnalytics.trackPageview('/app/createSend/' + this.name + '.aspx'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadPageVariables() {\n var tmp = JSON.parse(localStorage.getItem('autoTrimpSettings'));\n if (tmp !== null) {\n autoTrimpSettings = tmp;\n }\n}", "loadValueProposition() {\n $(jqId(VALUE_PROPOSITION_PANEL)).load(\"valueproposition/dynamic_routing_gateway.html\");\n }", "func...
[ "0.63834655", "0.637406", "0.62603873", "0.62351185", "0.6126883", "0.60268146", "0.59922427", "0.5987213", "0.5963549", "0.5875611", "0.587475", "0.5848285", "0.5778516", "0.56881213", "0.5609221", "0.55685234", "0.5547255", "0.5537301", "0.55231637", "0.5455612", "0.5424455...
0.5230476
47
Re Order Popup function
function re_order_popup(id) { //Ajax Load data from ajax $.ajax({ url : "sections/getEventGroupsList/" + id, type: "GET", /*dataType: "JSON",*/ success: function(data) { $('.loadEventGroups').html(data); $('#modal-re-order-category').modal('show'); // show ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makePopupSolicitud(){ \n\n}", "function createPopUp() {\n\n}", "function popup(windowname) {\n\twindow_pos(windowname);\n\ttoggle(windowname);\t\t\n}", "function showPopupOrder(tittle, content, nameButton){\n\tvar d = new Date;\n\tcheckin_time = [d.getFullYear(), d.getMonth()+1, d.getDate()].join('...
[ "0.73539853", "0.6933928", "0.68225545", "0.67721736", "0.6713069", "0.66835123", "0.66119105", "0.654339", "0.6508487", "0.6499578", "0.64836246", "0.6451292", "0.6442179", "0.6431267", "0.6431267", "0.6431267", "0.6431267", "0.6426765", "0.64101416", "0.6407413", "0.6397859...
0.0
-1
Function: loop Description: Publish new wheel position value
loop() { this.client.publish(this.pubTopic, this.position.toString()) this.logger.info("[" + this.name + "] Publishing Wheel Position: " + this.position + " to topic: " + this.pubTopic) if (this.simulator) this.position = this.simulator.update() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "loop() {\n let elapsedTime = 0;\n let now = performance.now();\n if (this.lastIteration !== null) {\n elapsedTime = now - this.lastIteration;\n }\n this.updatePosition(elapsedTime);\n //Update sensors for test\n this.sensors.forEach((sensor) => {\n ...
[ "0.68387353", "0.64207643", "0.633536", "0.61551076", "0.6084269", "0.60091674", "0.60084987", "0.5929084", "0.5876285", "0.58127314", "0.57926464", "0.57505536", "0.5720498", "0.5715519", "0.567551", "0.56410885", "0.5581119", "0.55775696", "0.5567374", "0.55612254", "0.5545...
0.73860765
0
Function: handleTopic description: Handle message received
handleTopic(topic, msg) { this.logger.debug("[" + this.name + "] wheel position sensor handleTopic: topic = " + topic + ", msg = " + msg) if (topic === this.subTopic) { var wheel_position = parseInt(msg) var valid = true if (this.simulator) valid = this.simulator.valid(wheel_position) if (isNaN(wheel_po...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OnMessage(Topic, Payload){\n switch (Topic) {\n case this._TopicConfigRes:\n // Save Config\n this._DeviceConfig = Payload\n break;\n \n case this._TopicConfigUpdateRes:\n // Save Config\n this._Devic...
[ "0.6870821", "0.6868217", "0.6711218", "0.6649298", "0.6641958", "0.6488979", "0.64842224", "0.6460775", "0.6449182", "0.6356852", "0.63448226", "0.6315967", "0.6315754", "0.62591285", "0.61284304", "0.6080756", "0.60664254", "0.60363656", "0.6018204", "0.59920436", "0.597155...
0.68795043
0
Checked Able Submit Activition and Color
function enableSubmit(myval) { //Submit Disable Activition and Color if(myval.checked == true) { document.getElementById('submit').disabled = false;//Submit Disable Activition document.getElementById('submit').style.color = '#000';//Submit Disable Activition Color } //Submit Able Activition and Color if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ColorCheckBox(e) {\n guiData.colorActivated = !guiData.colorActivated;\n p.getBubbleDrawer().useColor(guiData.colorActivated);\n if (guiData.colorActivated)\n {\n $(\"#selectColorValue\").next(\"input\").autocomplete(\"enable\");\n }\n else\n {\n $(\"#selectColorValue...
[ "0.6737139", "0.65670633", "0.64695525", "0.62038934", "0.6150516", "0.61020917", "0.6077303", "0.6076921", "0.60544497", "0.605215", "0.6041908", "0.5986513", "0.59734005", "0.59726477", "0.5967711", "0.5967702", "0.5966269", "0.5949425", "0.5916451", "0.5904296", "0.5898621...
0.70299816
0
return the first element that matches a condition get first element that matches a condition first()get the first element first(ele => true|false) get the first element that matches this condition first('div.cc')get the first element that matches this selector
first(condition){ var len = this.length; var result = $$(); if(len > 0){ if(arguments.length === 0) result.push(this[ this._op('rtl') === true ? len - 1 : 0]); else this.each(ele => { if(elementMatch(ele, condition) === true){ result.push(ele); return false; } }); } ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function first(selector, context) {return (context || document).querySelector(selector);}", "firstParent(selector) {\n let parent = this.parent();\n while (parent.isPresent()) {\n if (parent.matchesSelector(selector)) {\n return parent;\n }\n parent =...
[ "0.6668327", "0.6258383", "0.6258383", "0.6117288", "0.5923602", "0.575997", "0.5694085", "0.56478596", "0.5641545", "0.563798", "0.557877", "0.557877", "0.5577503", "0.55417264", "0.5512469", "0.5508494", "0.54781574", "0.5401948", "0.5401948", "0.5401948", "0.5401948", "0...
0.65341175
1
get the last element that matches a condition last()get the last element last(ele => true|false) get the last element that matches this condition last('div.cc')get the last element that matches this selector
last(condition){ return this.rtl.first(condition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function any()\n {\n return popup.querySelector(\"div:last-child\");\n }", "getLastActive(direction) {\n let last_active = this.control.querySelector('.last-active');\n\n if (last_active) {\n return last_active;\n }\n\n var result = th...
[ "0.61513066", "0.61219776", "0.60484636", "0.6022161", "0.6015236", "0.5985633", "0.5901222", "0.5833449", "0.5791615", "0.5711461", "0.57021207", "0.5688864", "0.5688173", "0.5672643", "0.5654803", "0.56540555", "0.5560911", "0.553732", "0.549979", "0.54327196", "0.53909796"...
0.67639166
0
filter to get only visible items (with style.display != none && style.visibility!= hidden) visible// filter visible items not.visible// filter hidden items
get visible(){ return this.filter(_elementIsVisible); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get visibleItems() {\n return this.items.filter(e => !e._target.hidden);\n }", "function filterVisible(els) {\n return (els || []).filter(__WEBPACK_IMPORTED_MODULE_6__utils_dom__[\"m\" /* isVisible */]);\n}", "function filterVisible(els) {\n return (els || []).filter(__WEBPACK_IMPORTED_MODULE_6__utils_do...
[ "0.7433648", "0.73181623", "0.73181623", "0.72967726", "0.72967726", "0.7294525", "0.6920407", "0.69083685", "0.69083685", "0.69083685", "0.6740807", "0.66601944", "0.66324466", "0.6623721", "0.6599684", "0.6585721", "0.6422662", "0.6336693", "0.6326764", "0.6300448", "0.6295...
0.6908048
10
"not" is implemented inside "filter" function filter to get only visible items in the view port (visible to the user) get only elements that we see in viewport visible// filter visible items not.visible// filter hidden items
get userVisible(){ return this.filter(_elementIsUserVisible); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get visibleItems() {\n return this.items.filter(e => !e._target.hidden);\n }", "get visible(){ return this.filter(_elementIsVisible); }", "function filterVisible(els) {\n return (els || []).filter(__WEBPACK_IMPORTED_MODULE_6__utils_dom__[\"m\" /* isVisible */]);\n}", "function filterVisible(els) {\n re...
[ "0.7516955", "0.72099966", "0.70839715", "0.70839715", "0.70617795", "0.68459404", "0.68459404", "0.6730818", "0.66400456", "0.63973325", "0.62296057", "0.6210444", "0.6186411", "0.60897195", "0.6086482", "0.60649425", "0.6024878", "0.6022448", "0.5988387", "0.5988387", "0.59...
0.69742894
5
.attachedget only elements attached to DOM .not.attachedget only elements not attached to DOM
get attached(){ return this.filter(_elementIsAttached); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static get __attachedInstances() {\n return Array.from(document.body.children).filter(el => el instanceof OverlayElement);\n }", "static get __attachedInstances(){return Array.from(document.body.children).filter(el=>el instanceof OverlayElement)}", "concat(toAttach, filterDoubles = true) {\n let dom...
[ "0.6722056", "0.6631349", "0.61300576", "0.61300576", "0.60664135", "0.60339874", "0.60339874", "0.60339874", "0.60339874", "0.60339874", "0.60339874", "0.60339874", "0.5998557", "0.58762217", "0.5875934", "0.5875934", "0.5875934", "0.5875934", "0.5875934", "0.5875934", "0.58...
0.72967315
0
Creates a new View Object
constructor() { this.app = this.getElement("#root") this.title = this.createElement("h1") this.title.textContent = "Texas Holdem" this.title.classList.add("text-center") this.form = this.createElement("form") this.form.classList.add("text-center") this.main = this.createElement("div") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TView() {}", "function TView() {}", "function TView() {}", "function TView(){}", "function View() {}", "function View() {}", "function View() {}", "function View() {}", "function View(){}", "function TView() { }", "function TView() { }", "newView(type, name, id, tags) {\n let view...
[ "0.78656226", "0.78656226", "0.78656226", "0.77475494", "0.76810867", "0.76810867", "0.76810867", "0.76810867", "0.76617056", "0.76104724", "0.76104724", "0.72580135", "0.7195441", "0.70887345", "0.70887345", "0.70887345", "0.7083584", "0.70642453", "0.70337033", "0.70125663", ...
0.0
-1
var fs = require('fs'); per le email con attachments var nodeMailer = require('nodemailer'); var Excel = require('exceljs'); // LF 16/07/2018 per creare export Excel per le email con attachments / post getAnagraficaPartecipanti. / prende i dati dei partecipanti filtrandoli eventualmente per nickname
function getAnagraficaPartecipanti(request) { var nickname = ' '; if(request.body.nickname){ nickname = request.body.nickname; } var queryText = 'SELECT ' + 'id, nickname, email_address, password_value ' + 'FROM pronolegaforum.anagrafica_partecipanti '; if(nickname !== ' '){ queryText = queryTex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function main() {\n // Generate test SMTP service account from ethereal.email\n // Only needed if you don't have a real mail account for testing\n let testAccount = await nodemailer.createTestAccount();\n\n // create reusable transporter object using the default SMTP transport\n let transporter = nodema...
[ "0.67724866", "0.66202277", "0.6457678", "0.63676274", "0.629405", "0.613459", "0.61178064", "0.606831", "0.60312647", "0.60120463", "0.59893864", "0.5984346", "0.5901893", "0.58843", "0.5827229", "0.5771405", "0.5694643", "0.56769174", "0.5675027", "0.564709", "0.56375074", ...
0.0
-1
.append("text") .attr("transofrm", "rotate(90)") .style("textanchor", "middle") .text("Retail Price (USD/LBS)");
function halo(text) { text.select(function () { return this.parentNode.insertBefore(this.cloneNode(true), this); }) .attr("fill", "none") .attr("stroke", "white") .attr("stroke-width", 5) .attr("stroke-linejoin", "round"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addText() {\n svg.append(\"text\")\n .attr(\"class\", \"xtext\")\n .attr(\"x\", w - margins.right)\n .attr(\"y\", h - 5)\n .attr(\"text-anchor\", \"middle\")\n .text(\"Consumer confidence\");\n\n svg.append(\"text\")\n .attr(\"class\", \"ytext\")\n .attr(\"x\", -23...
[ "0.7246443", "0.7070116", "0.70221543", "0.6770776", "0.67106724", "0.6701964", "0.6696719", "0.6673572", "0.6632092", "0.6573233", "0.6541401", "0.6500119", "0.64210993", "0.63920623", "0.6391542", "0.63773584", "0.63689244", "0.63444275", "0.6343708", "0.63246745", "0.62568...
0.0
-1
Hacemos una funcion para activarla cuando el usuario le da click
function ordenar (){ var dataNombre = preguntaNombre.value; var dataTelefono = preguntaTelefono.value; var dataPizza = preguntaPizza.value; var dataDireccion = preguntaDireccion.value; var dataPizzaReal = dataPizza.toLowerCase(); nombre.innerHTML = dataNombre; telefono.innerHTML = dataTelef...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clickAssess() {\n\t$.trigger(\"clickAssess\");\n}", "function handleClick() {\n setShowUserProfile((!showUserProfile))\n }", "clickHandler() {\n // Activate if not active\n if (this.active === false) {\n // Button view press effect\n this.changeToActive();...
[ "0.67634934", "0.6477763", "0.64526886", "0.64013016", "0.63976645", "0.63462126", "0.63085026", "0.6303365", "0.6281772", "0.61918265", "0.61852527", "0.6170305", "0.61539155", "0.61396784", "0.6136324", "0.61145973", "0.61012125", "0.60994536", "0.609231", "0.60806787", "0....
0.0
-1
copy contents of folder should be published as user accessing the app more info see
function doGet(e) { if (!e.parameter || !e.parameter.sourceid || !e.parameter.target) { throw 'supply parameters sourceid (the id of the source folder) and target (the path of the target folder)'; } return HtmlService .createTemplateFromFile('index') .evaluate() .append('<script>function getParamet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function copy() {\n // Copy these folders and contents as is\n gulp.src([\n 'src/background/**',\n 'src/content/**',\n 'src/popup/**',\n 'src/styles/**',\n 'src/vendor/**'], {base: 'src'})\n .pipe(gulp.dest(OUTPUT_DIR_WEB_EXTENSION));\n\n // Compile less into css\n gulp.src('src/**/*.less', {...
[ "0.66433054", "0.6464242", "0.6448345", "0.64106977", "0.6339104", "0.6332248", "0.6317914", "0.6293207", "0.6270974", "0.61997074", "0.6181387", "0.6170344", "0.61453354", "0.61021215", "0.59871626", "0.59407216", "0.5930406", "0.5927507", "0.59235644", "0.5897718", "0.58967...
0.0
-1
useless tragic there shoe screen picture wreck milk own journey east funny
function App() { const [web3, setWeb3 ] = useState(null); const [account, setAccount ] = useState(null); const [contractYakaDAI, setContractYakaDAI] = useState(null); const [contractDAIStorer, setContractDAIStorer] = useState(null); const [contractDAI, setContractDAI] = useState(null); const [amountDAI, se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function chucky($s,$t) {\r\n\t\ti=1;\r\n\t\t$s.find('img').each(function() {\r\n\t\t\ti++;\r\n\t\t\tvar $img = $(this);\r\n\t\t\tif($t[0] == $img[0]) {\r\n\t\t\t\t$img.attr(\"src\",chrome.extension.getURL(\"emoticons/chucknorris.jpg\")).css('width','64px').css('height','64px');\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t...
[ "0.5942652", "0.5825926", "0.5818436", "0.58080596", "0.5777835", "0.57445914", "0.57208335", "0.5692486", "0.5668574", "0.56590515", "0.56539637", "0.56516486", "0.5626834", "0.5586815", "0.5550631", "0.55439353", "0.5538765", "0.5533664", "0.5530336", "0.5528573", "0.552775...
0.0
-1
Box object to hold data for all drawn rects
function Box() { this.x = 0; this.y = 0; this.w = 1; // default width and height? this.h = 1; this.fill = '#444444'; this.sector = '0'; this.pricenum = '0'; this.state= 0; this.place= 0; this.line = 0; this.cell = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createBox()\n\t{\n\t\tbox = that.add('rect', {\n\t\t\tcolor: style.boxColor,\n\t\t\tborderWidth: style.borderWidth,\n\t\t\tborderColor: style.borderColor,\n\t\t\tdepth: that.depth\n\t\t}, fw.dockTo(that));\n\t}", "function BoundingBox(rects) {\n this.rects = rects;\n}", "function BoxRenderer() {}",...
[ "0.7039612", "0.7022429", "0.7010872", "0.69671226", "0.6878717", "0.6875338", "0.6772076", "0.6766113", "0.67643523", "0.6751181", "0.67442566", "0.66858816", "0.6683342", "0.66777897", "0.66770977", "0.66710395", "0.6654254", "0.6637562", "0.66213757", "0.661716", "0.660983...
0.7156706
0
Initialize a new Box, add it, and invalidate the canvas
function addRect(x, y, w, h, fill,sector,place, line,cell,pricenum) { var rect = new Box; rect.x = x; rect.y = y; rect.w = w rect.h = h; rect.fill = fill; rect.sector = sector; rect.pricenum = pricenum; rect.state = '1'; rect.line= line; rect.cell= cell; rect.place=place; primer[line][cell]=r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createBox()\n\t{\n\t\tbox = that.add('rect', {\n\t\t\tcolor: style.boxColor,\n\t\t\tborderWidth: style.borderWidth,\n\t\t\tborderColor: style.borderColor,\n\t\t\tdepth: that.depth\n\t\t}, fw.dockTo(that));\n\t}", "constructor(canvas, x, y, w, h)\r\n\t{\r\n\t\tthis.x = x; //x of the box\r\n\t\tthis.y = y...
[ "0.7200278", "0.70177835", "0.66714185", "0.66663724", "0.6458246", "0.6295103", "0.6290277", "0.6265413", "0.62159157", "0.6211402", "0.6149039", "0.61028475", "0.60676765", "0.6060007", "0.6031637", "0.60239667", "0.6017793", "0.6012181", "0.60002", "0.5927492", "0.5910222"...
0.6218646
8
Draws a single shape to a single context draw() will call this with the normal canvas myDown will call this with the ghost canvas
function drawshape(context, shape, fill) { context.fillStyle = fill; ctx.strokeStyle = mySelColorLine; ctx.lineWidth = mySelWidth; // We can skip the drawing of elements that have moved off the screen: /* if (shape.x > WIDTH || shape.y > HEIGHT) return; if (shape.x + shape.w < 0 || shape.y + shape.h < 0) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "draw() {\n // Don't draw if shape has have moved off the canvas\n if (this.x > this.canvas.width || this.y > this.canvas.height ||\n this.x + this.width < 0 || this.y + this.height < 0) {\n return;\n }\n this.canvas.context.fillStyle = this.fill;\n this.canvas.context.fillRect(this.x, th...
[ "0.74436986", "0.74059755", "0.7302468", "0.7180431", "0.7091565", "0.7078853", "0.6792585", "0.6789615", "0.6787988", "0.678416", "0.6774297", "0.67617416", "0.6757414", "0.6741734", "0.6741734", "0.67306775", "0.67293125", "0.67227024", "0.67100644", "0.670374", "0.6695704"...
0.64566875
60
While draw is called as often as the INTERVAL variable demands, It only ever does something if the canvas gets invalidated by our code
function clear(c) { c.clearRect(0, 0, WIDTH, HEIGHT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function load_canvas() {\n setInterval(function() {draw()}, 1);\n}", "function queueDraw() {\n if (drawTimeout) clearTimeout(drawTimeout);\n drawTimeout = setTimeout(function() {\n drawTimeout = undefined;\n draw();\n }, 60000 - (Date.now() % 60000));\n}", "function redrawTimeout() {\n setTimeou...
[ "0.68506765", "0.6757152", "0.67294526", "0.6648847", "0.6630184", "0.66184884", "0.6614984", "0.6614984", "0.6614984", "0.6575369", "0.6553923", "0.6550077", "0.65449905", "0.64772564", "0.6475055", "0.64314425", "0.64244217", "0.64151114", "0.64002776", "0.63997114", "0.634...
0.0
-1
Happens when the mouse is clicked in the canvas
function myClick(e) { getMouse(e); clear(gctx); for(i=0;i<=primer.length-1;i++){ for (var j = 0; j < primer[i].length; j++) { drawshape(gctx, primer[i][j], '#000000'); var imageData = gctx.getImageData(mx, my, 1, 1); var inde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function canvasClick(e) {\n\tblockus.mouseClicked();\n}", "function mouseClickedOnCanvas() {\n game.click = true;\n}", "function canvasClicked() {\r\n setTimeout(canvasClicked, fps / drawParams.two);\r\n n++\r\n\r\n a = n * nltLIB.dtr(divergence);\r\n r = c * Math.sqrt(n);\r\n\r\n ...
[ "0.8337909", "0.8010849", "0.78415054", "0.77742755", "0.77127963", "0.7517944", "0.74977654", "0.7479041", "0.7466959", "0.74610674", "0.74390423", "0.7428148", "0.7423219", "0.7403289", "0.73986626", "0.7352336", "0.73436165", "0.7330944", "0.7324554", "0.7314445", "0.72999...
0.0
-1
Happens when the mouse is moving inside the canvas
function myMove(e){ if (isDrag){ getMouse(e); mySel.x = mx - offsetx; mySel.y = my - offsety; //console.log(mySel.x+' '+mySel.y); // something is changing position so we better invalidate the canvas! invalidate(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handlemouseMove(e) {\n const rect = this.canvas.getBoundingClientRect();\n if (this.flag) {\n this.prevX = this.currX;\n this.prevY = this.currY;\n this.currX = e.clientX - rect.left;\n this.currY = e.clientY - rect.top;\n this.draw(this.template, this.ctx);\n }\...
[ "0.75755376", "0.7561669", "0.7521298", "0.74329084", "0.73963124", "0.729495", "0.7283336", "0.72760063", "0.71941966", "0.71929324", "0.716005", "0.7141798", "0.7079992", "0.7069305", "0.70620227", "0.706038", "0.7050847", "0.70502746", "0.7024385", "0.7024252", "0.7021768"...
0.6656719
65
Sets mx,my to the mouse position relative to the canvas unfortunately this can be tricky, we have to worry about padding and borders
function getMouse(e) { var element = canvas, offsetX = 0, offsetY = 0; if (element.offsetParent) { do { offsetX += element.offsetLeft; offsetY += element.offsetTop; } while ((element = element.offsetParent)); } // Add padding and border style widths to offse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMousePosition(e) {\n mouseX = e.clientX - canvasPos.x;\n mouseY = e.clientY - canvasPos.y;\n }", "function setMousePos(event, game, canvas) {\n\tvar rect = canvas.getBoundingClientRect();\n\n game.mouse_x = event.clientX - rect.left;\n game.mouse_y = event.clientY - rect.top;\n...
[ "0.7446406", "0.73936474", "0.73544896", "0.72775817", "0.70708644", "0.6961231", "0.68219876", "0.6801758", "0.6765419", "0.6762413", "0.6723104", "0.6721107", "0.66890824", "0.6653943", "0.66511524", "0.66258585", "0.662269", "0.66181594", "0.6611774", "0.65892184", "0.6574...
0.63339883
47
FUNKCJE Wczytanie pliku do obiektutabeli
function readFile(uploader) { let reader = new FileReader(uploader); reader.readAsText(uploader.files[0], 'UTF-8'); reader.onprogress = function() { console.log('Postęp wczytywania'); console.log(uploader.files); }; reader.onload = function() { let tekst=reader.result; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function file(key) {\n // Path finale\n let path_finale = path_progetto + key;\n // Aggiorno il codice\n codice += \"<li class=\\\"file\\\"><a href=\" + path_finale + \"> \" + key + \" </a></li>\"\n }", "handler(request, reply) {\n return reply.file(path.join('public', a, re...
[ "0.6433943", "0.626078", "0.593721", "0.5773937", "0.57659894", "0.5737734", "0.57361746", "0.572134", "0.57140297", "0.57127297", "0.56498206", "0.555864", "0.55277616", "0.55138254", "0.54992795", "0.5482051", "0.54749364", "0.54669064", "0.5442622", "0.5434102", "0.5433819...
0.0
-1
zamiana nieznanych liczb na 0 w transform()
function autNan(a) { if(isNaN(a)) {return 0 ;} else {return a ;} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function zero(){ return 0;}", "static get Zero() {\n return new Transform2D(\n Vector2.Zero,\n 0,\n Vector2.Zero,\n Vector2.Zero,\n Vector2.Zero,\n 0\n );\n }", "set transform(value) {}", "set transform(value) {}", "set transform(value) {}", "set transform(value) {}",...
[ "0.6464845", "0.6179722", "0.6087334", "0.6087334", "0.6087334", "0.6087334", "0.6014707", "0.6014707", "0.6014707", "0.6014707", "0.6014707", "0.60007197", "0.59965295", "0.596269", "0.59181887", "0.5882925", "0.58742654", "0.5858019", "0.58519167", "0.58391744", "0.5820912"...
0.0
-1
stwarzanie wiersza kolumn zmiennej globalnej
function makeArrayColumn(aStrName) { for (let item in aStrName) { arrayColumn[item] = new Column(); if (aStrName[item].trim() != "") { arrayColumn[item].name = aStrName[item]; arrayColumn[item].id = parseInt(item); } else { if(item==0) arrayColumn[item]....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function definirAlumnos(){\n var _carreraAlumno = \"\";\n // uso de la variable alumno \n}", "function setGlobalVar() {\n\n gActiveSheet = SpreadsheetApp.getActiveSheet();\n gMaxRow = gActiveSheet.getLastRow();\n gValuesOfRange = gActiveSheet.getRange(10, 1, gMaxRow, 50).getValues();\n gIndexOf...
[ "0.6111216", "0.56294125", "0.5555191", "0.5447862", "0.5434881", "0.53927207", "0.5293295", "0.5271713", "0.5259253", "0.524734", "0.52435035", "0.52013934", "0.5150885", "0.5112289", "0.510246", "0.5095171", "0.5092026", "0.5083343", "0.50785875", "0.5059541", "0.5050827", ...
0.0
-1
suma w wierszu bez pierwszej kolumny
function addSumRow(n) { let result=0; for(let i=1; i<arrayColumn.length;i++) { result += arrayRow[n].arrayCell[i]; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sumValues() {\n return data.reduce((temp, currValue) => temp + currValue.cost, 0);\n }", "function sumar()\n{\n\tvar total = $('#tbllistado').DataTable();\n \ttotal.column( 8 ).data().sum();\n\t\t\tconsole.log(total[8]);\n\t\t\t$(\"#total\").html(total);\n}", "function total(index) {\n\n var t...
[ "0.69328576", "0.6630734", "0.6612213", "0.64961636", "0.6483854", "0.64661103", "0.64610046", "0.64495033", "0.64495033", "0.6415963", "0.6402036", "0.6362622", "0.63414687", "0.6333644", "0.6316012", "0.63091385", "0.6305631", "0.6271204", "0.6234241", "0.6228948", "0.61779...
0.6242598
18
All the best functions after this line!//
function jsonDataTable(param,url,postObj,dataTableOpts) { var tableId= ""; if(typeof param === 'object') { if('id' in param && 'url' in param) { tableId=param.id; url=param.url; postObj=('postObj' in param ? param.postObj : {} ); dataTableOpts=('dataTableOpts' in param ? param.dataTableOpts : {} );...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "protected internal function m252() {}", "private public function m246() {}", "transient protected internal function m189() {}", "transient private protected internal function m182() {}", "function _____SHARED_functions_____(){}", "static private internal function ...
[ "0.7062583", "0.6827832", "0.67631215", "0.6566862", "0.6537549", "0.65301174", "0.6495048", "0.64814305", "0.63587207", "0.6312386", "0.62336457", "0.62149906", "0.60561556", "0.60390973", "0.5985695", "0.5981103", "0.59728223", "0.594772", "0.5882343", "0.5858535", "0.58240...
0.0
-1
All PHP style functions after this line!//
function json_encode(mixed_val) { var retVal, json = this.window.JSON; try { if (typeof json === 'object' && typeof json.stringify === 'function') { retVal = json.stringify(mixed_val); // Errors will not be caught here if our own equivalent to resource // (an instance of PHPJS_Resource) is used ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fos6_c() {\n ;\n }", "function __func(){}", "protected internal function m252() {}", "function TMP(){return;}", "function TMP(){return;}", "function vB_PHP_Emulator()\n{\n}", "function StupidBug() {}", "static final private internal function m106() {}", "function blabla() {\n\n}", ...
[ "0.6582403", "0.62911344", "0.6181616", "0.6122238", "0.6122238", "0.6113293", "0.6095599", "0.6055024", "0.595759", "0.59473526", "0.5900718", "0.5900718", "0.5900718", "0.58324397", "0.58159256", "0.58159256", "0.58159256", "0.58159256", "0.58159256", "0.578477", "0.5781516...
0.0
-1
All Force functions after this line!//
function showError(text, title, minWidth) { if(!isset(title)) title= 'Welcome to the Error Dialog!'; $('#errorDialog').dialog('option','title',title); if (!isset(minWidth) || minWidth.length > 0) var minWidth = 800; $('#errorDialog').dialog('option','minWidth', minWidth); $('#errorDialog').html(text).dialog('o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Force() {}", "set Force(value) {}", "get force() {\n\t\t\t\tif (this._force) {return this._force;}\n\t\t\t\tthis.createForce();\n\t\t\t\treturn this._force;}", "get force() { return this._force; }", "transient private protected internal function m182() {}", "function forceAny() {\r\n forceXYZ();\r\n...
[ "0.66200846", "0.65256757", "0.6488311", "0.63806957", "0.62415975", "0.62249386", "0.62013346", "0.6185899", "0.6157924", "0.61166626", "0.61071354", "0.60951096", "0.59990287", "0.5989189", "0.59772235", "0.59772235", "0.5938828", "0.5926463", "0.5922805", "0.5888609", "0.5...
0.0
-1
======================================== Public Methods ========================================
function sharePost() { console.log(vm.addstoryService.sharedPost); if(vm.addstoryService.sharedPost.image == undefined || vm.addstoryService.sharedPost.image == null) { vm.addstoryService.sharedPost.image = ""; } var tempObj = { title: vm....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "private internal function m248() {}", "transient private protected internal function m182() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient protected internal function m189() {}", "transient final protected i...
[ "0.702153", "0.68343014", "0.67157954", "0.66898483", "0.6675589", "0.6601132", "0.6350276", "0.6130014", "0.6059784", "0.60376585", "0.60310394", "0.59397745", "0.5853265", "0.58524215", "0.5837175", "0.58318096", "0.5806869", "0.58047926", "0.5801891", "0.5787729", "0.57764...
0.0
-1
======================================== Private Methods ========================================
function init() { angular.copy(addstoryService.sharedPost, vm.post); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "private internal function m248() {}", "transient private protected internal function m182() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient protected internal function m189() {}", "transient final protected i...
[ "0.7095245", "0.7033931", "0.6939065", "0.68937564", "0.67695355", "0.66924316", "0.6504699", "0.622175", "0.6212445", "0.6208138", "0.6018833", "0.6015024", "0.59910583", "0.59501725", "0.59496564", "0.59367144", "0.5909014", "0.5897547", "0.5890155", "0.5840826", "0.5823497...
0.0
-1
TODO: alternately: focus hack, blocking overlay, jquery.blockui function to close popup and unbind itself
function closePopup( event ){ $( document ).off( 'click.close_popup' ); if( window.parent !== window ){ try { $( window.parent.document ).off( "click.close_popup" ); } catch( err ){} } else { try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function closePopup(e) {\n $('#OverlayPopup').hide();\n return false;\n}", "function closePopup() {\n\t\t$('.overlay-bg, .overlay-content').hide(); // hide the overlay\n\t}", "function closeDPEntryPopup(){\r\n\t// remove overlay div to enable the parent page\r\n\t$(\"div\").removeClass(\"modalOverlay\");...
[ "0.69724536", "0.69270337", "0.69192874", "0.69065595", "0.6892799", "0.68871343", "0.6823439", "0.6813664", "0.6811943", "0.67968804", "0.6777214", "0.6759465", "0.67582583", "0.67189306", "0.67173934", "0.6645922", "0.66362953", "0.6628895", "0.66155857", "0.66045815", "0.6...
0.63579476
40
.................................................................... input rendering and events visually clear the search, trigger an event, and call the callback
function clearSearchInput( event ){ var $input = $( this ).parent().children( 'input' ); //console.debug( this, 'clear', $input ); $input.focus().val( '' ).trigger( 'clear:searchInput' ); options.onclear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_handleChange(e){let root=this;root._getSearchText(root.$.input.value);root.resultCount=0;root.resultPointer=0;root.dispatchEvent(new CustomEvent(\"simple-search\",{detail:{search:root,content:e}}))}", "searchinputClickCallback(event) {\n event.target.select();\n this.searchinputCallback(event);\n ...
[ "0.7436583", "0.6961371", "0.6917153", "0.6853095", "0.68506753", "0.6747828", "0.673794", "0.6730163", "0.666958", "0.6630465", "0.6627737", "0.6618722", "0.661217", "0.661171", "0.6577518", "0.65440214", "0.652693", "0.6510972", "0.6504632", "0.64988554", "0.64899236", "0...
0.66807485
8
search for searchTerms, trigger an event, call the appropo callback (based on whether this is the first)
function search( event, searchTerms ){ //console.debug( this, 'searching', searchTerms ); $( this ).trigger( 'search:searchInput', searchTerms ); if( typeof options.onfirstsearch === 'function' && firstSearch ){ firstSearch = false; options.onfirstsear...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function search(event, searchTerms) {\n if (!searchTerms) {\n return clearSearchInput();\n }\n $(this).trigger(\"search.search\", searchTerms);\n if (typeof options.onfirstsearch === \"function\" && firstSearch) {\n firstSearch = false;\n ...
[ "0.71723086", "0.6831495", "0.65894204", "0.64790195", "0.64231193", "0.6340258", "0.6321308", "0.62807834", "0.6194766", "0.6148103", "0.61423284", "0.61190826", "0.61049914", "0.6052135", "0.60500467", "0.60492826", "0.60382485", "0.60004467", "0.59968454", "0.5994175", "0....
0.7334606
1
.................................................................... input rendering and events
function inputTemplate(){ // class search-query is bootstrap 2.3 style that now lives in base.less return [ '<input type="text" name="', options.name, '" placeholder="', options.placeholder, '" ', 'class="search-query ', options.classes, '" ', '/>' ].join( '' ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RenderEvent() {}", "update() {\r\n this.draw();\r\n inputChange();\r\n }", "onInput(e) {\n this.updateFilledState();\n }", "renderEventInput() {\n eventContainer.innerHTML = \"\";\n eventContainer.innerHTML = eventHtml.makeNewEventHtml();\n }", "function onInput(e) {\r\n ...
[ "0.693288", "0.6673167", "0.66162884", "0.654896", "0.65160286", "0.6506462", "0.63692254", "0.63643134", "0.6354414", "0.63477063", "0.6347543", "0.63347334", "0.6288497", "0.6282444", "0.6255799", "0.6251056", "0.6247614", "0.6214009", "0.62123984", "0.62038124", "0.6171453...
0.0
-1
the search input that responds to keyboard events and displays the search value
function $input(){ return $( inputTemplate() ) // select all text on a focus .focus( function( event ){ $( this ).select(); }) // attach behaviors to esc, return if desired, search on some min len string .key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getInput() {\n\t\t\tsearchBtn.addEventListener('click', () => {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tsearchTerm = searchValue.value.toLowerCase();\n\t\t\t\tconsole.log(searchTerm);\n\t\t\t\tresults.innerHTML = ''; // clear page for new results\n\t\t\t\tgetData(searchTerm); // run w/ searchTerm\n\t\t\...
[ "0.7771916", "0.7641088", "0.7417092", "0.7379547", "0.7242134", "0.7239153", "0.7227444", "0.72263867", "0.7222262", "0.7174967", "0.71299726", "0.70485747", "0.70377535", "0.70095044", "0.6989245", "0.6987183", "0.6977168", "0.69564366", "0.69532186", "0.69449204", "0.69242...
0.0
-1
.................................................................... clear button rendering and events a button for clearing the search bar, placed on the right hand side
function $clearBtn(){ return $([ '<span class="search-clear fa fa-times-circle" ', 'title="', _l( 'clear search (esc)' ), '"></span>' ].join('') ) .tooltip({ placement: 'bottom' }) .click( function( event ){ clearSearchInput.call( this, ev...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onClearSearch() {\n $('#search').val('');\n $('#types .btn-primary').removeClass('btn-primary').addClass('btn-light');\n $('#clear-filter').fadeOut();\n $('#items').children().fadeIn();\n $('#items').unmark();\n }", "function $clearBtn() {\n return $(\n [\n ...
[ "0.76430273", "0.7362459", "0.7359959", "0.72583365", "0.7201938", "0.7167102", "0.71303886", "0.71028525", "0.7092199", "0.7080059", "0.70610225", "0.7036717", "0.6985463", "0.6985132", "0.6979161", "0.696806", "0.695786", "0.6881838", "0.6816915", "0.6787984", "0.6785824", ...
0.73615175
3
.................................................................... loadingIndicator rendering a button for clearing the search bar, placed on the right hand side
function $loadingIndicator(){ return $([ '<span class="search-loading fa fa-spinner fa-spin" ', 'title="', _l( 'loading...' ), '"></span>' ].join('') ) .hide().tooltip({ placement: 'bottom' }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggleLoadingIndicator() {\n $parentNode.find(\".search-loading\").toggle();\n $parentNode.find(\".search-clear\").toggle();\n }", "function toggleLoadingIndicator(){\n $parentNode.find( '.search-loading' ).toggle();\n $parentNode.find( '.search-clear' ...
[ "0.7431219", "0.7389826", "0.7389826", "0.7140912", "0.6993293", "0.6977896", "0.6834428", "0.6713314", "0.6587774", "0.653604", "0.6485851", "0.6467726", "0.64651835", "0.64483273", "0.6424068", "0.6423418", "0.63975513", "0.6380306", "0.6370953", "0.6355708", "0.6329313", ...
0.6405314
17
.................................................................... commands visually swap the load, clear buttons
function toggleLoadingIndicator(){ $parentNode.find( '.search-loading' ).toggle(); $parentNode.find( '.search-clear' ).toggle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadButtons() {\n\tgetNumbers();\n getOperators();\n getExecuteOperationButton();\n\tgetClearButton();\n\tgetclearEverythingButton();\n\tgetRemoveLastButton();\n\tgetOpenParenthesesButton();\n\tgetCloseParenthesesButton();\n\tgetSquareButton();\n\tgetSquareRootButton();\n\tgetAnsButton();\n}", "fu...
[ "0.6749243", "0.64501286", "0.6304115", "0.621421", "0.61602575", "0.6105791", "0.60845226", "0.6082833", "0.60698116", "0.6023103", "0.6016559", "0.6012551", "0.59950787", "0.5985786", "0.5983902", "0.59714586", "0.5970018", "0.5967735", "0.59673035", "0.59422094", "0.593903...
0.0
-1
============================================================================== Template function that produces a bootstrap dropdown to replace the vanilla HTML select input. Pass in an array of options and an initial selection: $( '.mydiv' ).append( dropDownSelect( [ 'option1', 'option2' ], 'option2' ); When the user c...
function dropDownSelect( options, selected ){ // replacement for vanilla select element using bootstrap dropdowns instead selected = selected || (( !_.isEmpty( options ) )?( options[0] ):( '' )); var $select = $([ '<div class="dropdown-select btn-group">', '<button type="button" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wsLib_convertBootstrapDropdownToSelect($whichContainer, whichFunction) {\n var $bootstrapSelect;\n \n if($whichContainer !== undefined) { // if a container exists, focus only on the container\n $bootstrapSelect = $whichContainer.find('div.js-bootstrap-select'); // Dropdown to convert to \"...
[ "0.685375", "0.6340551", "0.615259", "0.61299056", "0.60607284", "0.6022236", "0.58982", "0.58732206", "0.58732206", "0.581538", "0.5809767", "0.57854384", "0.57740873", "0.5747295", "0.5727325", "0.5715977", "0.5702114", "0.5688954", "0.56861913", "0.56493026", "0.5641533", ...
0.74679285
1
trigger 'change.dropdownselect' when a new selection is made using the dropdown
function selectThis( event ){ var $this = $( this ), $select = $this.parents( '.dropdown-select' ), newSelection = $this.text(); $select.find( '.dropdown-select-selected' ).text( newSelection ); $select.trigger( 'change.dropdown-select', newSelection ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeSelect() {\n\t\t\ttrail_select.value = this._leaflet_id;\n\t\t\tvar event = new Event(\"change\");\n\t\t\ttrail_select.dispatchEvent(event);\n\t\t}", "function select(fc) {\r\n document.getElementById('dropdown').value = fc;\r\n change();\r\n}", "function doAfterSelectOptionChangedForHospitalE...
[ "0.7314626", "0.6912388", "0.6848193", "0.6731816", "0.6722071", "0.6680717", "0.665512", "0.66060644", "0.6592287", "0.6591257", "0.65782654", "0.6561584", "0.6561584", "0.654992", "0.65473807", "0.65170234", "0.6481564", "0.6474551", "0.6470898", "0.6469007", "0.6469007", ...
0.65401685
16
Builds (twitter bootstrap styled) pagination controls. If the totalDataSize is not null, a horizontal list of page buttons is displayed. If totalDataSize is null, two links ('Prev' and 'Next) are displayed. When pages are changed, a 'pagination.pagechange' event is fired sending the event and the (0based) page requeste...
function Pagination( element, options ){ /** the total number of pages */ this.numPages = null; /** the current, active page */ this.currPage = 0; return this.init( element, options ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function paginationBuilder() {\n //reset paginator\n $(\".paginationHolder\").empty()\n //prev button\n $(\".paginationHolder\").append(\"<li><a id='pgPrev' aria-label='Previous'><span aria-hidden='true'>&laquo;</span></a></li>\");\n totalPages = 0;\n do {\n tot...
[ "0.6769759", "0.641034", "0.6362116", "0.6270669", "0.60757434", "0.60273474", "0.5993108", "0.599271", "0.5956729", "0.5934016", "0.59114057", "0.586051", "0.58287984", "0.58251846", "0.57839346", "0.5768544", "0.57506615", "0.5746272", "0.57262266", "0.572528", "0.57251936"...
0.0
-1
helper to create a simple li + a combo
function _make$Li( contents ){ return $([ '<li><a href="javascript:void(0);">', contents, '</a></li>' ].join( '' )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _sub_render(ul, item){\n\tvar li = jQuery('<li>');\n\tli.append('<a alt=\"'+ item.name +'\" title=\"'+ item.name +'\">' +\n\t\t '<span class=\"autocomplete-main-item\">' +\n\t\t item.label +\n\t\t '</span>' + \n\t\t '&nbsp;' + \n\t\t '<span class=\"autocomplete-tag-item\">' +\n\t\t item.tag +\n\t\t ...
[ "0.700777", "0.6717131", "0.6593583", "0.6516602", "0.6516602", "0.6516602", "0.6450243", "0.63461447", "0.6311248", "0.6282048", "0.62356967", "0.6209346", "0.6190841", "0.6189553", "0.61532414", "0.61514044", "0.61366993", "0.61197245", "0.60938305", "0.6052998", "0.6030751...
0.0
-1
TODO: not happy with pure functional here rows should polymorph (multi, single, etc.) TODO: needs clean up, move handlers to outer scope ........................................................................ validate the control data sent in for each row
function validateControl( control ){ if( control.disabled && jQuery.type( control.disabled ) !== 'array' ){ throw new Error( '"disabled" must be defined as an array of indeces: ' + JSON.stringify( control ) ); } if( control.multiselect && control.selected && jQuery.type( control.sele...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "emptyLineValidate(ev) {\n var controller = this\n // caminha pelas linhas da tabela fora a linha \n // dos headers, por isso o index parte do 1\n for (var r = 1; r < this.tableLinesLength; r++) {\n\n // utiliza do tamanho do array global tableHeadersLength para caminhar pelas celulas \n for (...
[ "0.6256518", "0.6082973", "0.60178816", "0.5997158", "0.59034395", "0.5891434", "0.58727735", "0.5787116", "0.57627845", "0.5761453", "0.57515067", "0.57308745", "0.5721563", "0.5716498", "0.5665664", "0.5664448", "0.566143", "0.5659144", "0.5657064", "0.56548536", "0.5633535...
0.5858004
7
build the inner control surface (i.e. buttonlike)
function buildButton( control, columnIndex ){ return $( '<div/>' ).addClass( BUTTON_CLASS ).text( control.label ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildUI (thisObj ) {\n var H = 25; // the height\n var W = 30; // the width\n var G = 5; // the gutter\n var x = G;\n var y = G;\n var rownum = 1;\n var columnnum = 3;\n var gutternum = 2;\n var win = (thisObj instanceof Panel) ? thisObj : ...
[ "0.66237587", "0.661264", "0.6533399", "0.6498464", "0.64036524", "0.63926476", "0.6315741", "0.62963843", "0.6240329", "0.6181735", "0.6177071", "0.6174601", "0.61561793", "0.6131441", "0.6129796", "0.6033976", "0.6031768", "0.60006446", "0.5980518", "0.59691244", "0.5968323...
0.572939
40
build the basic (shared) cell structure
function buildControlCell( control, columnIndex ){ var $td = $( '<td/>' ) .html( buildButton( control, columnIndex ) ) .attr( 'data-' + COLUMN_INDEX_DATA_KEY, columnIndex ); // disable if index in disabled array if( control.disabled && control.disabled.indexOf( columnInd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function constructCell() {\n this.isBomb = false; // Is the cell a bomb?\n this.isExposed = false; // Is it open?\n this.isFlagged = false; // Does it have a bomb flag on it?\n this.isQuestion = false; // Question mark (if its used)\n this.isMarked = false; // Used for recursi...
[ "0.64877653", "0.64870405", "0.6405189", "0.6379261", "0.62414813", "0.6238408", "0.61715305", "0.6064465", "0.6041646", "0.6021604", "0.6009293", "0.5943246", "0.59403", "0.58641547", "0.58361894", "0.5808297", "0.5800351", "0.579373", "0.57867754", "0.5759969", "0.575609", ...
0.0
-1
set the text of the control based on selected/un
function setSelectedText( $cell, control, columnIndex ){ var $button = $cell.children( '.' + BUTTON_CLASS ); if( $cell.hasClass( SELECTED_CLASS ) ){ $button.html( ( control.selectedText !== undefined )?( control.selectedText ):( control.label ) ); } else { $button.html( (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSelected(value)\n{\n\tif(value){\n\t\t$.label.color = Alloy.Globals.Colors.TEXT_PRIMARY;\n\t\t$.label.text = value;\n\t}\n\telse{\n\t\t$.label.color = Alloy.Globals.Colors.TEXT_HINT;\n\t\t$.label.text = L('ch_kolonko_hashtagmagic_hint_favorites').toUpperCase();\n\t}\n}", "select() { this.selected = t...
[ "0.66543263", "0.65457124", "0.63543904", "0.62704116", "0.62014914", "0.6183167", "0.61590755", "0.6153512", "0.61352396", "0.6128312", "0.6110978", "0.60895836", "0.60876375", "0.60815024", "0.6079259", "0.6077771", "0.60398394", "0.60286987", "0.60248166", "0.6021975", "0....
0.714392
0
build a cell for a row that only allows one selection
function buildSingleSelectCell( control, columnIndex ){ // only one selection - selected is single index var $cell = buildControlCell( control, columnIndex ); if( control.selected === columnIndex ){ $cell.addClass( SELECTED_CLASS ); } setSelectedText( $cell, control, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "selectCell() {\n if (!this.owner.enableSelection) {\n return;\n }\n this.selectTableCell();\n }", "onCellClick(args) {\n\n let ezid = this.state.mainTableData[args.index].EZID,\n selectedRow = this.state.selectedRow.concat([]),\n selection = this.st...
[ "0.6353822", "0.63001907", "0.60797244", "0.6039176", "0.60375977", "0.6011715", "0.599644", "0.5937471", "0.59361655", "0.59064204", "0.58921254", "0.58436584", "0.5822561", "0.5822453", "0.5820809", "0.58072096", "0.57706535", "0.57416147", "0.57416147", "0.5727401", "0.572...
0.6567604
0
build a cell for a row that allows multiple selections
function buildMultiSelectCell( control, columnIndex ){ var $cell = buildControlCell( control, columnIndex ); // multiple selection - selected is an array if( control.selected && control.selected.indexOf( columnIndex ) !== -1 ){ $cell.addClass( SELECTED_CLASS ); } setS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onCellClick(args) {\n\n let ezid = this.state.mainTableData[args.index].EZID,\n selectedRow = this.state.selectedRow.concat([]),\n selection = this.state.selection.concat([]);\n\n let newSelection = {\n \"EZID\": this.state.mainTableData[args.index].EZID,\n ...
[ "0.6672713", "0.646338", "0.6212138", "0.61575764", "0.6152044", "0.60783124", "0.5937723", "0.5928335", "0.5911899", "0.5892483", "0.587837", "0.5871155", "0.58696973", "0.5866057", "0.5863952", "0.5857163", "0.5851395", "0.58501685", "0.57973975", "0.57349914", "0.5709953",...
0.69394255
0
iterate over columns in peek and create a control for each
function buildControlCells( count, control ){ var $cells = []; // build a control for each column - using a build fn based on control for( var columnIndex=0; columnIndex<count; columnIndex+=1 ){ $cells.push( control.multiselect? buildMultiSelectCell( control, columnIndex ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawColumnButtons(rows) {\r\n const controlPanel = $('.controls').css({\r\n 'width': 77 * rows\r\n })\r\n const controlButton = $('.controls button')\r\n for (let x = 0; x < controlButton.length; x++){\r\n controlButton.remove()\r\n }\r\n for(let x = 1; x <= rows; x++) {\r\n const button = ...
[ "0.5772957", "0.54699993", "0.53335005", "0.531841", "0.515855", "0.5146402", "0.51280993", "0.5106803", "0.5103075", "0.5094705", "0.500101", "0.500101", "0.499182", "0.4990439", "0.4985531", "0.49299717", "0.49299717", "0.4918387", "0.4903032", "0.48982129", "0.4872518", ...
0.5588233
1
build a row of controls for the peek
function buildControlRow( cellCount, control, includePrompts ){ var $controlRow = $( '<tr/>' ).attr( 'id', control.id ).addClass( ROW_CLASS ); if( includePrompts ){ var $promptCell = $( '<td/>' ).addClass( PROMPT_CLASS ).text( control.label + ':' ); $controlRow.append( $promptCel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_buildUI(parent) {\n var row, elem;\n var table = document.createElement('table');\n table.classList.add('controlPad');\n\n this._makerow(table,\n [null, null,\n ['keyboard_arrow_up', 'offsetY', 1],\n null,\n ...
[ "0.6177504", "0.5935208", "0.57954043", "0.5714858", "0.5714788", "0.5607687", "0.5597977", "0.55679464", "0.5511598", "0.54816556", "0.5477018", "0.543927", "0.5407086", "0.5376063", "0.5348182", "0.53147185", "0.5313939", "0.5313694", "0.53037155", "0.52954715", "0.52867573...
0.6138763
1
........................................................................ add to the peek, using options for configuration, return the peek
function peekControl( options ){ options = jQuery.extend( true, {}, defaults, options ); var $peek = $( this ).addClass( PEEKCONTROL_CLASS ), $peektable = $peek.find( 'table' ), // get the size of the tables - width and height, number of comment rows columnCount = $p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "peek() {\n }", "peek() { }", "insert (options) {\n options.control= this;\n return this.root.insert(options);\n }", "peek() {\n console.log(\"peek:\", this.top);\n return this.top;\n }", "peek(){ return this.top; }", "peek(){ return this.top; }", "peek() {\n return this.head;\n }", ...
[ "0.5476167", "0.5473913", "0.51328236", "0.50551486", "0.49974632", "0.49974632", "0.49668193", "0.49668193", "0.49209198", "0.4907817", "0.4865374", "0.48592815", "0.48592815", "0.48592815", "0.48325935", "0.48165146", "0.4798803", "0.4787866", "0.4775601", "0.477221", "0.47...
0.49352843
8
I assume that key and secret API are in the "Config" spreadsheet. The key is in cell B14 and the secret in cell B15
function Binance(){ var Full_Binance_Balance = []; Full_Binance_Balance=AddBalance(Full_Binance_Balance, BinanceSpot()); Full_Binance_Balance=AddBalance(Full_Binance_Balance, BinanceEarn()); Full_Binance_Balance=AddBalance(Full_Binance_Balance, BinanceCrossMargin()); Full_Binance_Balance=AddBalance(Full_Binan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static apiKey(key) {\n return new Credentials('api-key', 'api-key', { key });\n }", "function LoadAPIKeyFromConfigStrategy () {\n}", "function getAPIKey(){\n\n}", "function getAPIKey() {\n return ss.getRange(API_KEY).getValue();\n}", "function getSecret(lines) {\n\t return lines[secretKey];\n\t}", ...
[ "0.6242521", "0.61943173", "0.6188816", "0.6131203", "0.61230683", "0.61230683", "0.6011377", "0.5949436", "0.58814883", "0.5859587", "0.5850633", "0.58267796", "0.58260715", "0.58020186", "0.5791971", "0.5785627", "0.5776877", "0.57271236", "0.5715506", "0.5706288", "0.56636...
0.0
-1
! Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT...
function __spreadArrays() { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function WSAPI() {\n }", "private internal function m248() {}", "private public function m246() {}", "createObjectContext2() {\n console.log('deprecated')\n return C.extension\n }", "supportsPlatform() {\n return true;\n }", "function T7(){return typeof window>\"u\"&&(self.window=self),functio...
[ "0.5718999", "0.5127648", "0.50340307", "0.4986635", "0.4893337", "0.48703453", "0.48676834", "0.48674643", "0.4854622", "0.48420036", "0.48402965", "0.48402965", "0.48220244", "0.47662336", "0.4719181", "0.4710195", "0.4675956", "0.4675956", "0.46712086", "0.46453077", "0.46...
0.0
-1
ignore above this line
function parseHeights(heightArr) { let index = -1; const length = heightArr.length; const map = new Map(); while (++index < length) { let current = heightArr[index]; if (map.has(heightArr[index])) { map.set(current, map.get(current) + 1); } else { map.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ignore() { }", "function IGNORE() {\r\n //Do not delete.\r\n }", "doNotDisplayLineText() {\r\n this._ignoredLine = true;\r\n }", "function ignore() {\n return null\n }", "function remove_ignore_lines_DocGenerator() {\n\t//----Debugging-----------------------------------...
[ "0.7002511", "0.6313994", "0.62586504", "0.61209166", "0.60574675", "0.6047923", "0.59494466", "0.5940073", "0.59276366", "0.59249926", "0.5907571", "0.59008515", "0.58524996", "0.5824406", "0.58213234", "0.58134085", "0.5805963", "0.5723673", "0.5688489", "0.56424433", "0.56...
0.0
-1
radius of the drawing cursor
function canvasApp() { if (!canvasSupport()) { return; } else { theCanvas = document.getElementById('canvas'); context = theCanvas.getContext('2d'); var redButton = document.getElementById("Red"); var orangeButton = document.getElementById("Orange"); var yellowButton = document.getElementById("Yellow"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getCircleRadius() {\n return (this.diameter - BASE_STROKE_WIDTH) / 2;\n }", "get radius(){ return Math.sqrt(this.area / Math.PI);}", "function getRadius() {\n\n\t\treturn this.radius;\n\n\t}", "getRadius() {\n return this.r;\n }", "_getStrokeCircumference() {\n return 2 * Math.P...
[ "0.6868988", "0.64398867", "0.6362769", "0.63510954", "0.63100076", "0.62910175", "0.62877655", "0.62644714", "0.6264391", "0.62593514", "0.62560636", "0.6227718", "0.6221749", "0.6198885", "0.6197297", "0.61874783", "0.61871684", "0.6176333", "0.6159933", "0.61455697", "0.61...
0.0
-1
Function for drawing a nice grid in the background
function drawGrid() { context.strokeStyle = '#000000'; for ( var x = 0; x < theCanvas.width; x = x + gridSize) { for ( var y = 0; y < theCanvas.height; y = y + gridSize) { context.strokeRect(x, y, gridSize, gridSize); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function backgroundGrid (width, height, space) {\n\tvar rows = height/space;\n\tvar cols = width/space;\n\tcontext.lineWidth = 1;\n\tcontext.beginPath();\n\tfor (i = 0; i < rows; i++) {\n\t\tcontext.moveTo(0, i*space);\n\t\tcontext.lineTo(width,i*space);\n\t}\n\tfor (j = 0; j < cols; j++) {\n\t\tcontext.moveTo(j*s...
[ "0.82869637", "0.8225684", "0.79009575", "0.7858842", "0.770899", "0.7667374", "0.76435155", "0.7638507", "0.7573442", "0.75521237", "0.7549899", "0.75172085", "0.7498579", "0.74783266", "0.74460113", "0.74261767", "0.7425454", "0.7422785", "0.7388079", "0.73765796", "0.73612...
0.7825729
4
determines more accurately if a grid cell (x,y) is within cursor radius
function intersectRadius(x, y, mouseX, mouseY) { var minX = x * gridSize; var maxX = (x + 1) * gridSize; var minY = y * gridSize; var maxY = (y + 1) * gridSize; // case distinction to determine the closest corner of the grid cell to // the mouse cursor /* * 1 | 2 | 3 * ---|-----|--- * 8 |Mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "checkHit(givenX, givenY){\n\n let xcoor = givenX - this.getX(); //move to center\n let ycoor = givenY - this.getY();\n let out = false;\n\n //simple square hit detection\n if(xcoor < VERT_RAD/2.0 && xcoor > -VERT_RAD/2.0 \n && ycoor < VERT_RAD/2.0 && ycoor > -VERT_RAD/...
[ "0.6887635", "0.68333745", "0.6819388", "0.67022604", "0.66999656", "0.66404855", "0.6633029", "0.66079414", "0.65010846", "0.64860386", "0.64548117", "0.6453769", "0.6419746", "0.6407713", "0.64038527", "0.6392585", "0.63872933", "0.63823014", "0.6377526", "0.63603264", "0.6...
0.745467
0
when initially loading the page, fetch the requested product
componentDidMount(){ this.fetchProduct(this.props); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async loadProducts() {\n const url = window.location.href;\n const prod_id = getParameterByName('id',url);\n const productsResponse = await fetch('/products');\n const products = (await productsResponse.json()).data;\n products.forEach(product => {\n if(product.id === prod_id){\n this.pr...
[ "0.750752", "0.7470552", "0.7445906", "0.73583204", "0.71989745", "0.7186796", "0.71736443", "0.7010161", "0.70092183", "0.70014554", "0.6990517", "0.692209", "0.69192433", "0.6890585", "0.6875048", "0.6851227", "0.6850245", "0.68409663", "0.68066394", "0.67847127", "0.672191...
0.6326035
71
fetch a product from the blockchain by productId (optionally, a "versionId" of that product can be specified)
fetchProduct(props){ // get the requested product (at the requested version if specified, otherwise it gets the latest version) this.props.passageInstance.getProductById(String(props.match.params.productId).valueOf(), props.match.params.versionId ? String(props.match.params.versionId).valueOf() : "latest") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static async fetchProductById(productId) {\n\n // fetch a single product\n const product = storage\n .get(\"products\")\n .find({ id: Number(productId) })\n .value();\n return product;\n }", "function getProductById(productId){\n return{\n type: 'GET_P...
[ "0.7724341", "0.71469986", "0.69202775", "0.6891456", "0.6865224", "0.6865103", "0.67911273", "0.6729978", "0.6717733", "0.65630794", "0.6557841", "0.6556651", "0.6545616", "0.650855", "0.6459825", "0.64560276", "0.64369345", "0.64345723", "0.6422768", "0.64204276", "0.641723...
0.6268055
33
inject ajax as a service
async init() { this._super(...arguments); const data = await this.get('ajax').request(BASE_URL + POSTS_URL, { method: 'GET' }); this.set('totalPosts', data.length); this.set('numPages', Math.ceil(this.totalPosts / this.numPostsPerPage)); this.set('allPosts', data); this.loadSubSetOfPosts()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "useAjax( ajax ) {\n this._ajax = ajax;\n }", "useAjax( ajax ) {\n this._ajax = ajax;\n }", "function IAjaxHttpHook() { }", "function __ajax(url, data){\nvar ajax= $.ajax({\n \"method\":\"POST\",\n \"url\":url,\n \"data\":data\n })\n return ajax\n}", "function serviceManager() {\n this...
[ "0.75222224", "0.75222224", "0.66924626", "0.60564196", "0.6044193", "0.5969489", "0.588304", "0.588304", "0.5874059", "0.5861893", "0.5845323", "0.5840884", "0.58408695", "0.5792587", "0.5781129", "0.57443595", "0.57146615", "0.5700258", "0.56787795", "0.56714624", "0.567128...
0.0
-1
changes if user paginates; starts at 1 Helper function to load a 'page' of posts from allPosts into somePosts. somePosts gets passed down to child components.
loadSubSetOfPosts () { let start = ((this.pageToShow - 1) * this.numPostsPerPage); let numLastPage = Math.min(this.totalPosts-start, this.numPostsPerPage); let end = start + numLastPage; let subSet = this.allPosts.slice(start, end); this.set('somePosts', subSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getNextPage() {\n\t\t// don't try to fetch posts if there are no more\n\t\tif (this.state.morePosts === false) {\n\t\t\treturn;\n\t\t}\n\n\t\t// set state to trigger loading icon\n\t\tthis.setState({\n\t\t\tnextPageLoaded : false,\n\t\t})\n\n\t\tlet currentPostCount = this.state.posts.length;\n\t\tlet url = \"/api...
[ "0.71253663", "0.708048", "0.6790816", "0.6690082", "0.6541424", "0.6536034", "0.653104", "0.65104324", "0.6422797", "0.63894653", "0.6388442", "0.6376551", "0.6335787", "0.6266192", "0.6230941", "0.62195826", "0.62128836", "0.61771786", "0.6175259", "0.6155313", "0.61353385"...
0.70013535
2
This function fires if the user clicks on a post title or post id. It will show a slideout window that holds specific data on that post.
async showDetailWindow (id) { // Get the post for the id passed in. const onePost = this.somePosts.find((item) => { return item.id === id; }); // Query the detailed user data from the server. const data = await this.get('ajax').request(BASE_URL + USERS_URL + onePost.userId...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showSinglePost(e) {\n const name = e.target.parentElement.dataset.index;\n\n const current_post = posts.filter(post => post.data.name === name)[0];\n setCurrentPost(current_post);\n }", "function display_post(postid)\n{\n\tif (AJAX_Compatible)\n\t{\n\t\tvB_PostLoader[postid] = ne...
[ "0.64809954", "0.6206346", "0.6121559", "0.6067682", "0.60592824", "0.6016967", "0.585065", "0.579419", "0.5775362", "0.57729816", "0.57409763", "0.5736211", "0.5736044", "0.5718889", "0.57182467", "0.5703935", "0.57023877", "0.56898427", "0.5688111", "0.56700695", "0.5669069...
0.54659635
44
Get rid of the slideout window.
hideDetailWindow () { this.set('selectedPostId', 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function closeSlideOut(){\n\t\t\t\t//$(jqe(lpChatID_lpChatSlideOutContainer)).remove();\n\t\t\t\tsendPostMessage({\"lpEmbChatWiz\": \"LPNVPF\", \"CMD\" : \"CONTROL\", \"value\" : \"UPDATE_DRAG_AREA_HIDE_PCI\"}); //notify parent to increase drag area\n\t\t\t\t$(jqe(lpChatID_lpChatSlideOutContainer)).remove();\n\t\t...
[ "0.75069374", "0.7214349", "0.7198547", "0.6981064", "0.6684429", "0.66724324", "0.6640005", "0.65375245", "0.65200335", "0.64895076", "0.647504", "0.64483875", "0.6401059", "0.63962346", "0.63805574", "0.6343986", "0.6339747", "0.6339475", "0.63074744", "0.629959", "0.629953...
0.6015103
82
\ Public Methods \
login () { return new Promise((resolve, reject) => { let user = JSON.parse(localStorage.getItem('user')) if (user) { this.set({ loggedIn: true, loggingIn: false, password: '' }) return resolve() } $.ajax({ email: this.get('emai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "private internal function m248() {}", "transient protected internal function m189() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient private protected internal function m182() {}", "transient final protected i...
[ "0.7180208", "0.69538987", "0.6783449", "0.67740154", "0.673077", "0.6699239", "0.6373817", "0.6142192", "0.61143494", "0.60943544", "0.60571456", "0.60039514", "0.60029745", "0.59770066", "0.59385705", "0.5937118", "0.59113616", "0.5872835", "0.5850301", "0.58444524", "0.580...
0.0
-1
open socket connection of single/multiple cubes
function openCubeConnection(){ if(settings.is_multiple_collectors){ var no_of_cubes = settings.cube.length; for( i=0;i<no_of_cubes;i++){ cube_url = settings.cube[i].protocol+"://"+settings.cube[i].domain+":"+settings.cube[i].port; settings.cube[i].client = cube.emitter(cube_url); } }else{ cube_url = se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openCubeConnection() {\n if (settings.is_multiple_collectors) {\n revlogger.log('info', \"Open socket connection for multiple cubes\");\n var no_of_cubes = settings.cube.length;\n for (i = 0; i < no_of_cubes; i++) {\n cube_url = settings.cube[i].protocol + \"://\" + settings.cube[i].domain ...
[ "0.84448624", "0.6029864", "0.6017193", "0.59886396", "0.5955292", "0.5953593", "0.5885619", "0.5830307", "0.58039236", "0.5795346", "0.577669", "0.5762008", "0.573731", "0.57106704", "0.56922394", "0.5691179", "0.56901044", "0.5627395", "0.5613737", "0.5609978", "0.5605991",...
0.7965557
1
Validating the Input request
function validate_pl_info_Request(params){ var flag = true; if(params.hasOwnProperty("nt_dns_end") && params.hasOwnProperty("nt_dns_st") && params.hasOwnProperty("nt_red_end") && params.hasOwnProperty("nt_red_st") && params.hasOwnProperty("nt_con_end") && ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateInput() {\n\tvar i; var j;\n\t// Check content-type is application/json\n\tcontentType = $.request.contentType;\n\tif ( contentType === null || contentType.startsWith(\"application/json\") === false){\n\t\t $.response.status = $.net.http.INTERNAL_SERVER_ERROR;\n\t\t $.response.setBody(\"Wrong cont...
[ "0.7731765", "0.7674772", "0.75288844", "0.7317622", "0.7098241", "0.6938801", "0.6906394", "0.68702006", "0.6827891", "0.67796403", "0.67735505", "0.67652947", "0.66968036", "0.66879505", "0.66593015", "0.6623464", "0.66069245", "0.6595139", "0.65413874", "0.65372145", "0.65...
0.0
-1
Returns all the attribute identifiers that starts with 'dataattr'. These attributes are normally passed down to the final element.
getAllDataAttrKeys() { return Object.keys(this.attributesObject).filter(field => field.startsWith('data-attr')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extract_data_attr(el) {\n\t\tvar data = {};\n\n\t\tfor (var i=0; i < el.attributes.length; i++) {\n\t\t\tvar attr = el.attributes.item(i);\n\n\t\t\tif ( attr.specified && 0 == attr.name.indexOf('data-') ) {\n\t\t\t\tvar value = attr.value;\n\n\t\t\t\ttry {\n\t\t\t\t\tvalue = jQuery.parseJSON(value);\n\t\t...
[ "0.66610754", "0.66584593", "0.6511569", "0.6511569", "0.6417566", "0.6398419", "0.63859427", "0.62770915", "0.6248127", "0.6170417", "0.60839957", "0.60839957", "0.60839957", "0.60839957", "0.60839957", "0.60839957", "0.60839957", "0.60839957", "0.60722977", "0.60185593", "0...
0.77632034
0
Returns the media content extension when available.
getExtension() { return this.extension; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "extension(mimeType) {\n const type = mimeType.match(/^\\s*([^;\\s]*)(?:;|\\s|$)/)[1].toLowerCase();\n return this.extensions[type];\n }", "function getMedia() {\n\tvar results = [];\n\n\tif (extensions && extensions.hasOwnProperty('media')) {\n\t\tvar sourceArray = extensions.media;\n\n\t\tfor (index = 0;...
[ "0.66712904", "0.65975434", "0.6493349", "0.63031775", "0.63031775", "0.6209867", "0.6192006", "0.61890507", "0.6092912", "0.60408944", "0.60044366", "0.5958828", "0.58331937", "0.5824757", "0.5823349", "0.57753", "0.57696164", "0.5756005", "0.57200795", "0.57200795", "0.5681...
0.6381221
3
Returns the media content mime type when available.
getMimeType() { return this.mime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get contentType() {\n let conType = String(mime_types_1.lookup(this.fullPath));\n if (!conType) {\n conType = `application/octet-stream`;\n }\n return conType;\n }", "getContentType() {\n return (\n this.event.headers[\"Content-Type\"] ||\n t...
[ "0.7828903", "0.7176992", "0.71352524", "0.71322167", "0.7042625", "0.69685555", "0.67834675", "0.677273", "0.6765362", "0.67550045", "0.67550045", "0.67550045", "0.6751585", "0.67442137", "0.6731837", "0.6724509", "0.6702537", "0.66638184", "0.66637", "0.6654954", "0.6643584...
0.7324342
1
Return the datatype attribute value.
getType() { return this.type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get datatype() {\n return new NamedNode(this.datatypeString);\n }", "get datatype() {\n return new NamedNode(this.datatypeString);\n }", "function att(typeNumOrGUID) {\n var returnTypeNum = null;\n try {\n returnTypeNum = ArisData.getActiveDatabase().ActiveFilter().UserDefinedAttributeType...
[ "0.7048627", "0.7048627", "0.6324719", "0.61127573", "0.61127573", "0.61127573", "0.61127573", "0.6039789", "0.6015883", "0.59729266", "0.5959323", "0.5925285", "0.58365905", "0.58074653", "0.5798029", "0.5776286", "0.5775436", "0.5769838", "0.5752563", "0.569762", "0.5669103...
0.51456034
70
Cleans up the mediaTag element.
clearContents() { while (this.hookedFns.hasChildNodes()) { this.hookedFns.removeChild(this.hookedFns.getLastChild()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mediaTestCleanup(callback) {\n var V = document.getElementsByTagName(\"video\");\n for (i=0; i<V.length; i++) {\n removeNodeAndSource(V[i]);\n V[i] = null;\n }\n var A = document.getElementsByTagName(\"audio\");\n for (i=0; i<A.length; i++) {\n removeNodeAndSource(A[i]);\n ...
[ "0.6596014", "0.6520162", "0.6114662", "0.61136955", "0.59439135", "0.59439135", "0.59276664", "0.59176147", "0.59028137", "0.5856799", "0.57991266", "0.5793232", "0.5793232", "0.5787768", "0.57859385", "0.5780845", "0.57716656", "0.57514983", "0.5748809", "0.57421637", "0.57...
0.0
-1
Celsius to Fahrenheit program
function toCelsius(f) { let celsius = ((f-32)/9)*5; console.log(celsius); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function celsiusToFahrenheit(temp){\n return ((9/5) * temp) + 32;\n}", "function farenheitCelsius() {\n const fah = 10;\n const cel = ((fah - 32) * (5/9));\n console.log(cel);\n }", "function celsiusToFahrenheit(temperature){\n return (temperature*9/5)+32;\n}", ...
[ "0.8318989", "0.8281555", "0.82735896", "0.8258172", "0.8244273", "0.82413465", "0.82410496", "0.8229247", "0.819619", "0.81953883", "0.81901526", "0.8172484", "0.8172484", "0.8153366", "0.81502444", "0.81235105", "0.8086095", "0.8083325", "0.80788267", "0.8063641", "0.803484...
0.83142096
1
Create a variable using a userdefined name
function userFName(x = document.getElementById("userFName").value, y = document.getElementById("value").value) { x = y; document.getElementById("answer").innerHTML = "Your function is named " + x + " and has a value of " + y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createVariable() {\n var id = nextVariableId++;\n var name = '$V';\n\n do {\n name += variableTokens[id % variableTokensLength];\n id = ~~(id / variableTokensLength);\n } while (id !== 0);\n\n return name;\n}", "function createVariable() {\n var id = nextVariableId++;\n ...
[ "0.75474316", "0.75445193", "0.709664", "0.6896918", "0.68686503", "0.6497019", "0.63951427", "0.6394196", "0.63664466", "0.63509417", "0.6306947", "0.627782", "0.6272553", "0.62404114", "0.62404114", "0.6211645", "0.61865175", "0.6185654", "0.6182378", "0.6138088", "0.612764...
0.0
-1
Check two given numbers and return true if one of the number is 50 or if their sum is 50
function fiftyCents(num1,num2) { return ((num1 == 50 || num2 == 50) || (num1 + num2 == 50)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check(a, b) {\n if (a == 50 || b == 50 || (a + b) == 50) {\n console.log(true)\n } else {\n console.log(false)\n }\n}", "function find50(x, y) \n{\n var sum = x + y;\n return ((x == 50 || y == 50) ||sum == 50)? alert(\"One of numbers or their sum is = 50\"):\n alert(\"N...
[ "0.80219096", "0.7795204", "0.774489", "0.7581735", "0.75775355", "0.7506296", "0.71439797", "0.7130918", "0.7057996", "0.70552725", "0.70414704", "0.7039389", "0.6908038", "0.6865477", "0.68212605", "0.6814836", "0.6760511", "0.6760119", "0.6756616", "0.67030406", "0.6691849...
0.68747705
13
Write a JavaScript program to check a given integer is within 20 of 100 or 400.
function PositiveOrNegative(num1,num2) { if (num1 < 0 && num2 < 0) { console.log("Both are negative"); } else if (num1 < 0 || num2 < 0) { console.log("One is negative"); } else if (num1 > 0 && num2 > 0) { console.log("Both are positive"); } else if (num1 > 0 || num2 > 0) { console.log("One is po...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function numberIn20(x) {\n return ((Math.abs(100 - x) <= 20) ||\n (Math.abs(400 - x) <= 20));\n}", "function isInRange(num) {\n if (num>20 && num<50) {return true;}\n else {return false;}\n}", "function areYouWithinTwentyDigitsOf(integer) {\n if ((100 - integer) <= 20 || (120 - integer) <= 20) {\n ...
[ "0.8043999", "0.74368614", "0.7362285", "0.7185816", "0.7012686", "0.69986194", "0.6964861", "0.68708396", "0.684739", "0.6843758", "0.683534", "0.6821654", "0.6819325", "0.6776673", "0.67454284", "0.67371476", "0.66801006", "0.66722304", "0.6664081", "0.6653754", "0.66091233...
0.0
-1
create a new string adding "Py" in front of a given string. If the given string begins with "Py" then return the original string.
function pyMyString(str) { if (str.substring(0,2) === "Py") { console.log(str); } else { let newString = "Py" + str; console.log(newString); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pyString(string1) {\n var firstTwo = string1.slice(0,2)\n if (firstTwo.toUpperCase() !== \"PY\") {\n string1 = \"Py\" + string1\n } else {\n string1 = string1\n }\n console.log(string1)\n}", "function stringModifier(string){\n var isPy = string.startsWith(\"Py\");\n if (i...
[ "0.7479926", "0.7079406", "0.67778635", "0.67088467", "0.58165", "0.5620549", "0.5521673", "0.5497788", "0.5450923", "0.54204404", "0.53647226", "0.5339583", "0.5335722", "0.5333396", "0.53021497", "0.5301444", "0.52858233", "0.5249707", "0.52459663", "0.52364385", "0.523264"...
0.7381807
1
create a new string from a given string changing the position of first and last characters.
function mutatedStr(str) { let firstChar = (str.slice(0,1)); firstChar.toLowerCase(); let lastChar = (str.slice(-1)); lastChar.toUpperCase(); let newString = lastChar + str.slice(1,-1) + firstChar; console.log(newString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "swapString(str, first, last) {\n var as = '';\n var ch = [];\n ch = str.split('');\n var temp = ch[first];\n ch[first] = ch[last];\n ch[last] = temp;\n for (let index = 0; index < str.length; index++) {\n as = as + ch[index];\n }\n return as...
[ "0.710891", "0.69504726", "0.65275705", "0.64515364", "0.6405496", "0.63097006", "0.6289289", "0.62851584", "0.6194188", "0.6187891", "0.61651933", "0.6109302", "0.6095076", "0.60207206", "0.60113704", "0.59769344", "0.5974732", "0.59707564", "0.5964378", "0.5938466", "0.5922...
0.6880976
2
program to check if two given integer values are in the range 50..99 (inclusive). Return true if either of them are in the said range
function myRange(start, end) { let range = []; for (var i = start; i < end; i++) { range.push(i); } range.push(end); console.log(range); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function in_range(num1, num2) {\n if ((50 <= num1 && num1 <= 99) && (50 <= num2 && num2 <= 99)) return true;\n return false;\n\n}", "function between50And99(a, b) {\n return (a >= 50 && a <= 99) || (b >= 50 && b <= 99);\n}", "function inRange(num1,num2){\n // If these two numbers aren't greater than ...
[ "0.8370688", "0.81936544", "0.80183065", "0.77805346", "0.757375", "0.756412", "0.74670535", "0.7424776", "0.7232571", "0.72003984", "0.7045668", "0.7016621", "0.69758517", "0.6918847", "0.6888848", "0.6884518", "0.6884518", "0.6849882", "0.68410546", "0.68260914", "0.6825824...
0.0
-1
Helper method for defining associations. This method is not a part of Sequelize lifecycle. The `models/index` file will call this method automatically.
static associate(models) { grades.belongsTo(models.evaluations, { foreignKey: 'evaluations_id' }) grades.belongsTo(models.people, { foreignKey: 'people_id' }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static associate(models) {\n // define association here\n // This is how Sequelize knows to create \"magic methods\"\n // These are functions that can automatically pull\n // related data.\n // For example: If I have a User object\n // I can call `await user.getContacts()` to get an\n...
[ "0.76420766", "0.75076616", "0.73127514", "0.730645", "0.730645", "0.730645", "0.7294379", "0.7285259", "0.7277621", "0.72589964", "0.72589964", "0.72589964", "0.72589964", "0.72589964", "0.72589964", "0.72589964", "0.72589964", "0.72589964", "0.72589964", "0.72589964", "0.72...
0.0
-1
Bulk write to all given collections
function doBulkWrite(db) { const data = request.body.data; const bulkPromises = []; for (var collectionName in data) { var promise = getBulkWritePromise(db, collectionName, data); bulkPromises.push(promise); } return Promise.all(bulkPromises); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function doBulkWriteCollection(collection, data) {\n return new Promise(function (resolve, reject) {\n const batch = collection.initializeOrderedBulkOp();\n\n addInserts(batch, data);\n addUpdates(batch, data);\n addDeletes(batch, data);\n\n batch.execu...
[ "0.71668875", "0.67301387", "0.6422704", "0.63572806", "0.62488323", "0.6211683", "0.6117565", "0.6114442", "0.61001587", "0.6022381", "0.59055346", "0.59055346", "0.5897238", "0.58536965", "0.58389175", "0.5811457", "0.5808813", "0.5805585", "0.580218", "0.5799177", "0.57898...
0.74401766
0