query
stringlengths
9
14.6k
document
stringlengths
8
5.39M
metadata
dict
negatives
listlengths
0
30
negative_scores
listlengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
NOTE: This function is for the checkboxes on the r_tab_players page, not the tab. Ie. either the 'Regular', 'Current', 'Fillin' or 'Retired' checkboxes. 'checkboxName' in this function is one of: 'Regular', 'Current', 'Fillin' or 'Retired'.
function onClickR_tabPlayersPageCheckbox(checkboxName) { // check validity of checkboxName switch (checkboxName) { case 'Regular': case 'Fillin': case 'Current': case 'Retired': break; // OK default: error( 'Invalid checkboxName "' + checkboxName + '" received in onClickR_tabPlayers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateR_tabPlayersCheckbox()\n{\n if (r_tabPlayersElemsAreInDefaultState())\n uncheckR_tabCheckbox('Players');\n else\n checkR_tabCheckbox('Players');\n}", "getUGFields() {\n var tempStatuses = this.state.playerNames.map((name, idx) => { return this.state.playerUGStatuses[idx]; });\n i...
[ "0.72596484", "0.6267747", "0.6219099", "0.59815985", "0.59597564", "0.58738977", "0.5813313", "0.57758594", "0.57524633", "0.5701438", "0.5671997", "0.5663974", "0.5659989", "0.5655602", "0.56459606", "0.5620927", "0.5615487", "0.5587318", "0.55824786", "0.55754167", "0.5557...
0.81432116
0
Check or uncheck the players tab checkbox depending on whether the players tab HTML elements are in their default state.
function updateR_tabPlayersCheckbox() { if (r_tabPlayersElemsAreInDefaultState()) uncheckR_tabCheckbox('Players'); else checkR_tabCheckbox('Players'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onClickR_tabPlayersPageCheckbox(checkboxName)\n{\n // check validity of checkboxName\n switch (checkboxName)\n {\n case 'Regular': case 'Fillin': case 'Current': case 'Retired': break; // OK\n default: error( 'Invalid checkboxName \"' + checkboxName\n + '\" received in onCli...
[ "0.625051", "0.62099487", "0.5978343", "0.58713865", "0.5815333", "0.5753961", "0.5725839", "0.5688433", "0.566448", "0.56492084", "0.56178874", "0.55850446", "0.55835974", "0.5567554", "0.5560825", "0.55535597", "0.55523247", "0.5533906", "0.55325294", "0.5522754", "0.551317...
0.8248713
0
resize all the "walls" on load, and on window resize
function wresize(){ $('.wall').css('height', window.innerHeight); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onresize() {\n layout.setupScreen();\n therm.resize();\n }", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n init_rect();\n init_circle();\n}", "function windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n setupCircles()\n}", "function resize() {\n ...
[ "0.7447518", "0.7375304", "0.7358392", "0.7276952", "0.71491957", "0.71138746", "0.71074563", "0.7076147", "0.7026786", "0.7016741", "0.6994642", "0.697798", "0.6966373", "0.69491434", "0.6930762", "0.69194365", "0.69041204", "0.69041204", "0.6865481", "0.68620026", "0.685687...
0.83944136
0
A utility function for rebuilding a term from the heap. It accepts a store ref which provides the first structure (should be a StructureCell). If a heap cell is encountered, it is dereferenced. This swill rturn null for unbound references, otherwise it will return a string
function rebuildTermFromHeap(reference) { console.debug("[REBUILD]\t" + reference.inspect()); var nextVariableId = 1; // ensure the referenced cell is a structure cell var cell = reference.get(); if(cell.constructor === HeapCell) { // dereference the heap cell and proceed based on its type var dereffed = re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildHeap(s, status) {\n var leafIndexBoundary = Math.floor(s.length / 2);\n for (var i = leafIndexBoundary - 1; i >= 0; i--) {\n heapify(s, i, status);\n }\n return s;\n}", "dequeue () {\n\t\tif (this.values.length <= 0) {\n\t\t\treturn 'must have more than one value in the values he...
[ "0.5217007", "0.48132712", "0.47888342", "0.475233", "0.47192615", "0.46635672", "0.457913", "0.45013833", "0.44868973", "0.44687158", "0.44185185", "0.44094294", "0.43784642", "0.43759334", "0.43547842", "0.43513286", "0.43511516", "0.43511516", "0.43424156", "0.43184623", "...
0.80173355
0
This function will set up and run a program and query given two callbacks to prepare the environment for each piece.
function BuildAndRun(DEBUG, prepareQueryCallback, prepareProgramCallback) { /** * Create the X store and HEAP. **/ var ENV = new Structures.Env(); ENV.setDebug(DEBUG); /** * Load the query and faltten (provided by callback). **/ var startingPredicate = prepareQueryCallback(ENV); /** * Compile the argu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function main() {\n\n\n // First, we validate and get the adapter settings\n initializeConfigValues(() => {\n\n const statesToProcess = buildNeededStates();\n\n // Next, we create all objects (states) which we need\n createAdapterObjects(statesToProcess, () => {\n\n // States ...
[ "0.58873564", "0.57375646", "0.54340905", "0.5416323", "0.541535", "0.5381393", "0.5381393", "0.5378422", "0.5369999", "0.5369691", "0.5364138", "0.5362921", "0.5349949", "0.5333194", "0.53297395", "0.5326282", "0.5318874", "0.53141654", "0.5310991", "0.5296064", "0.52864724"...
0.6244648
0
Must add "enablefeatures=ReportFCPOnlyOnSuccessfulCommit" with gpu_benchmarking to ensure completion event callback in addSwapCompletionEventListener is sent only on a succdessful commit.
function waitForSwapsToComplete() { if (videoFrameReady) { if (swapCount == 0) { let timestamp = performance.now() - t0Ms; logOutput(`First video overlay swap: TimeStamp:${timestamp}ms`); } swapCount++; videoFrameReady = false; } if (swapCount < totalVideoSwaps) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function waitForCompositorCommit() {\n return new Promise((resolve) => {\n // rAF twice.\n window.requestAnimationFrame(() => {\n window.requestAnimationFrame(resolve);\n });\n });\n}", "getFeatured({ commit }, type) {\n commit('SET_LOADING', true)\n generalService\n .getFeatured...
[ "0.55057037", "0.49149022", "0.4784276", "0.4777822", "0.47701988", "0.47609457", "0.47608545", "0.47608545", "0.47608545", "0.47608545", "0.47608545", "0.47608545", "0.46976468", "0.46725565", "0.4667383", "0.46665603", "0.46450615", "0.46450615", "0.46450615", "0.46450615", ...
0.5145759
1
A simple object for storing the position of a pointer.
function PointerPosition(pointer) { this.x = pointer.clientX; this.y = pointer.clientY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get position() {}", "get position() {}", "get position() {}", "addr() {\n return this.pos;\n }", "pos() {\n return this.native.pos();\n }", "pos() {\n return this.native.pos();\n }", "pos() {\n return this.native.pos();\n }", "pos() {\n return this.nativ...
[ "0.6909429", "0.6909429", "0.6909429", "0.682322", "0.66271526", "0.66271526", "0.66271526", "0.66271526", "0.66023046", "0.6596111", "0.654742", "0.6509333", "0.64893764", "0.64893764", "0.64775944", "0.6447961", "0.6434416", "0.64299077", "0.64220667", "0.64148563", "0.6403...
0.7506931
0
loads the initial PmailUI
function loadPmailUI() { // add id and spacing $("div.nH.oy8Mbf.nn.aeN").next().after('<div class="nH nn" id="pmail-inbox-spacing" style="width: 4px; height: 4px;"></div>'); //add AI dashboard var aidashboard = "\ <div class='nH nn' id='pmail-aidashboard' style='width: 400px;'>\ <div class='nH'>\ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildUI() {\n // setPageTitle();\n showMessageFormIfLoggedIn();\n fetchMessages();\n}", "function initializeUI()\r\n{\r\n}", "function loadUI ()\n\t{\n\n\t\taddDebug(1, \"Initialising UI.<br>\");\n\n\t\tvar insertWhere='head';\n\n\n\n\n\t\tif($('head').length)\n\t\t{\n\t\t\tinsertWhere='head';\n...
[ "0.64768636", "0.6376891", "0.6293173", "0.6270201", "0.62216204", "0.61876726", "0.61749023", "0.61686", "0.6152087", "0.6131739", "0.6125638", "0.6078413", "0.6065574", "0.606411", "0.60485095", "0.602526", "0.60180765", "0.60153073", "0.5988146", "0.59806335", "0.59608924"...
0.6562781
0
If a user clicks on "compose button", we modify the compose email UI and add "Assign AI"
function addAIcomposeUI(){ //assign ID to compose new message element $("div.nH.aJl.nn").next().attr("id", "pmail-compose"); //get receipient element and append AI element var aiElement = "\ <div class='aoD az6'>\ <input id='pmail-ai-field' class='aoT' tabindex='1' placeholder='Assign Action Item To'>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function compose_email() {\n\n // Show compose view and hide other views\n document.querySelector('#emails-view').style.display = 'none';\n document.querySelector('#compose-view').style.display = 'block';\n\n // Clear out composition fields\n document.querySelector('#compose-recipients').value = '';\n docume...
[ "0.69680417", "0.68013597", "0.6689967", "0.65306944", "0.6359221", "0.63347584", "0.6313671", "0.6023839", "0.5979012", "0.5960397", "0.58512455", "0.58429587", "0.5832537", "0.58278954", "0.58033097", "0.5801244", "0.5774615", "0.57491004", "0.5727774", "0.57135814", "0.570...
0.7550739
0
This function takes the last call and updates metrics in the device Currently we keep track of All Calls (all calls, and summary over all calls) Last call Last five calls Last 10 calls The data format follows that of the statistics object
function updateLastCall(device, _call, cb) { var _analytic = new Analytic(); //initialization if (!device.calls.all_calls) { device.calls.all_calls = {}; device.calls.all_calls.rollup = []; device.calls.last_five_calls = {}; device.calls.last_five_calls.rollup = []; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refreshSummaryInfo() {\n var totalInfoTable = new Table({style: { head: [], border: [] }});\n currentDeviceCache.getStats().then(function(statsResults) {\n var currentDevCount = statsResults.keys;\n totalInfoTable.push(\n {'Current Key Count': currentDevCount}\n ...
[ "0.61977905", "0.59810746", "0.58336776", "0.57275766", "0.5682862", "0.5664689", "0.56539786", "0.5598447", "0.5554978", "0.54707307", "0.54420257", "0.54370785", "0.53950727", "0.53798956", "0.53629065", "0.5321096", "0.5307947", "0.5280677", "0.52615243", "0.52605134", "0....
0.780012
0
creates a function called "dealACard" that takes two parameters: "handArray" and "elementSelector"
function dealACard(handArray, elementSelector) { //assigns an array "deck" (which uses the "pop()" method) to the variable "card" //the pop method will remove the last "img" element of the playing card from the "deck" array. card = deck.pop(); //the "handArray" object uses the "push()" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "dealCards() {\n newDeck.deal(this.cardsInHand);\n }", "function dealCard(hand, elementID) {\n var card = deck.pop();\n hand.push(card);\n var imageUrl = getCardImageUrl(card);\n //var cardHtml = '<div class=\"card\">' + card.point + \" of \" + card.suit + '</div>';\n // images/' +card.point + '_of_...
[ "0.68464226", "0.66505224", "0.66338164", "0.66031957", "0.65744674", "0.6530371", "0.63776296", "0.63233423", "0.63092375", "0.62432617", "0.6237144", "0.62322533", "0.62163407", "0.6207265", "0.6104686", "0.61027575", "0.6020933", "0.60173196", "0.60025257", "0.5992205", "0...
0.82739353
0
Unhide the modal passed in as show, and hide the one passed in as noShow
function toggleModals(show, noShow) { show.classList.remove('hidden'); noShow.classList.add('hidden'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hideOrShowModal(parm) {\n\t\tif (parm === 'show') {\n\t\t\t$('#contentData').show()\n\t\t\t$('#contentHora').show()\n\t\t\t$('#contentPessoas').show()\n\t\t\t$('#contentTelemovel').show()\n\t\t\t$('#butaonao').show()\n\t\t}\n\t\telse if (parm === 'hide') {\n\t\t\t$('#contentData').hide()\n\t\t\t$('#conten...
[ "0.73106027", "0.7008288", "0.69544953", "0.69202507", "0.6887574", "0.6885979", "0.6820513", "0.679934", "0.6798984", "0.6781973", "0.6757764", "0.67547923", "0.67394376", "0.67394376", "0.67313194", "0.67117625", "0.6679436", "0.66623414", "0.6652218", "0.664194", "0.663965...
0.7427503
0
let buah = ["Mangga","Jeruk", "Pisang"];
function ambilBuah (){ return ["Mangga","Jeruk", "Pisang","Rambutan"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function array() {\n\tlet para = [\"imran\", \"salman\", \"irfan\", \"farhan\"];\n\tconst wapa = para[0];\n\tconsole.log(wapa);\n}", "function balikKata(huruf){\n var kata =huruf;\n var hasil ='';\n var array =[];\n \n for(var i = j=kata.length; i>=0; i-- ){\n array.push( kata[i]);\n }\n...
[ "0.7076507", "0.6865626", "0.61816186", "0.611606", "0.6085686", "0.60668576", "0.6062163", "0.6051255", "0.6029319", "0.6016201", "0.5980078", "0.5947547", "0.5799232", "0.57860607", "0.5785112", "0.5755558", "0.57527655", "0.5749632", "0.5748261", "0.5741446", "0.5736174", ...
0.8132187
0
Get PICTURE and documentId to URL
function makeUrl(arrayObjectData, baseURL){ var arrayUrls = []; theLenght = arrayObjectData[0].length; for (var i=0; i < theLenght; i++ ){ urlAux = baseURL + "document/" + arrayObjectData[0][i]["documentId"] + "/resource/" + arrayObjectData[0][i]["fields"][1]["PICTU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDownloadUrlByDocumentId(document_id){\n var userProperties = PropertiesService.getUserProperties();\n var downloadUrl = userProperties.getProperty('downloadUrl');\n var obj_downloadUrl = JSON.parse(downloadUrl);\n \n if(downloadUrl !== null && obj_downloadUrl[document_id] !== undefined){...
[ "0.6138287", "0.5868906", "0.58438545", "0.56921977", "0.5651619", "0.56285006", "0.5592952", "0.559093", "0.5580306", "0.558012", "0.5536832", "0.54509324", "0.53894323", "0.53848195", "0.5377957", "0.5372207", "0.5366188", "0.53505915", "0.5329269", "0.5324828", "0.5322767"...
0.6155807
0
This method will update the contents of the Thread Object with values fresh from the Database
updateContents() { let self = this; return new Promise((resolve, reject) => { MongoClient.connect(MONGODB_URL) .then(db => { let collection = db.collection(THREADS_COLLECTION); collection.find({ threadId: self.getThreadId() }).toArray() .then(result => { this.__...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateThread(id){\n\t\t\n\t\t//var unread_data = JSON.parse( localStorage.getItem(\"ETicker_UnreadPosts\") )[id];\n\n\t\tif( !UnreadPosts[id] ){\n\t\t\tconsole.log( \"[AU-\" + threadlist_page[1] + \"] No data for thread: \" + id);\n\t\t\treturn;\n\t\t}\n\n\t\tif(!document.getElementById(\"thread_\" + id))...
[ "0.56762516", "0.5601755", "0.55789584", "0.5496392", "0.5468186", "0.5355083", "0.5355083", "0.5355083", "0.5349548", "0.5329281", "0.5327238", "0.5324154", "0.53231186", "0.53134364", "0.53134364", "0.5305547", "0.52158815", "0.52113897", "0.51902795", "0.5172835", "0.51082...
0.65284675
0
grab _props from each record object so we can get key/value pairs
function toJson(records) { return records.map(function(r) { return r['_props']; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeRecordProps(record) {\n const propsObject = {};\n // props does not exist on redirect records but we can set false directly\n const props = record.props || false;\n if ('component' in record) {\n propsObject.default = props;\n }\n else {\n // NOTE: we could also al...
[ "0.61397254", "0.6116688", "0.6052319", "0.59240466", "0.5922577", "0.58514726", "0.57442474", "0.5737673", "0.56683517", "0.5623709", "0.5612206", "0.5523227", "0.5523149", "0.55157256", "0.55097246", "0.5502876", "0.550029", "0.54537433", "0.54513884", "0.54512554", "0.5441...
0.6418662
0
Block all payments from this peer address
blockPayments(peerAddr) { if (!(peerAddr in this.blockers)) { this.blockers[peerAddr] = [ // Condition function (pa, amt, _) => { return (peerAddr === pa && amt > '0'); }, // Null callback function (a, b, c) => null ]; this.registerListener(this.bl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "allowPayments(peerAddr) {\n this.deleteListener(this.blockers[peerAddr][0], this.blockers[peerAddr][1]);\n }", "minePendingTransactions(miningRewardAddress){\n let block = new Block(Date.now(), this.pendingTransactions);\n block.mineBlock(this.difficulty);\n console.log('Block Successfully mined'...
[ "0.70718646", "0.61928993", "0.5980245", "0.58443475", "0.5825282", "0.5649424", "0.56197566", "0.560198", "0.5536112", "0.5487285", "0.54672354", "0.54414886", "0.5405706", "0.5329734", "0.5328806", "0.52881616", "0.52802175", "0.5257106", "0.5227556", "0.5210723", "0.519942...
0.7310236
0
Allow all payments from this peer address
allowPayments(peerAddr) { this.deleteListener(this.blockers[peerAddr][0], this.blockers[peerAddr][1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "blockPayments(peerAddr) {\n if (!(peerAddr in this.blockers)) {\n this.blockers[peerAddr] = [\n // Condition function\n (pa, amt, _) => {\n return (peerAddr === pa && amt > '0');\n },\n // Null callback function\n (a, b, c) => null\n ];\n this.registerL...
[ "0.6443339", "0.53414106", "0.52838725", "0.5240982", "0.5236334", "0.5218115", "0.5218115", "0.52138156", "0.521232", "0.5194768", "0.5179805", "0.51397055", "0.5095321", "0.5010857", "0.5001258", "0.500118", "0.49962264", "0.49939135", "0.4981039", "0.497722", "0.49713445",...
0.67297167
0
peerAddr: string plugin: Plugin
async registerPlugin(peerAddr, plugin) { if (plugin) { peerAccounts.addAccount(peerAddr, plugin); plugin.registerDataHandler((data) => { const parsedPacket = IlpPacket.deserializeIlpPrepare(data); return this.handleMsg(peerAddr, parsedPacket.amount, parsedPacket.data); }); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function peerInitialize() {\n\n currentPeer = new Peer({\n secure: true,\n host: 'serveur-peerjs-palazon.herokuapp.com',\n port: 443,\n });\n connexion = null;\n\n // on attends que la connexion s'ouvre entre les deux joueurs\n currentPeer.on('open', function (id) {\n ses...
[ "0.6260204", "0.6104365", "0.6033215", "0.5991355", "0.59391934", "0.58913815", "0.5840587", "0.58353746", "0.58082664", "0.5787984", "0.57632816", "0.5739548", "0.5731735", "0.5721885", "0.5721885", "0.5704499", "0.568825", "0.5686141", "0.56610453", "0.56584805", "0.5643773...
0.68409026
0
GOTCHA: plugin is not necessarily connected Send a raw buffer to a peer given a peer address rawBuf: Buffer
async sendRaw (peerAddr, amount, rawBuf) { let plugin = peerAccounts.getAccount(peerAddr); return plugin.sendData(formatDataPacket(amount, rawBuf)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "sendNextMessage() {\n if (!this.pending.length) {\n debug('spurious sendNextMessage');\n this.stop();\n return;\n }\n const buf = this.pending.shift();\n this.continue();\n if (!buf) {\n debug('undefined buf');\n return;\n ...
[ "0.6363106", "0.5941539", "0.59019065", "0.5859435", "0.56530404", "0.56464493", "0.5631909", "0.5627896", "0.55953234", "0.5582837", "0.55808634", "0.55805546", "0.5527199", "0.552529", "0.55203897", "0.5470984", "0.5465392", "0.54493725", "0.5434317", "0.54122007", "0.54072...
0.72301626
0
Queues the message for the event loop to later handle Returns a Promise that is resolved when the message is processed. peerSourceAddr: string msg: Buffer
async handleMsg (peerSourceAddr, amount, msg) { return new Promise( // Return a promise (res, rej) => { setTimeout( // Make this async call () => { let caught = false; for (let pair of Object.values(this.callbacks)) { if (pair[0](peerSourceAddr, amount, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "sendMessage(recipient, message, resolveValue) {\n // The queue key\n recipient = recipient.toString();\n // Enqueue a message for recipient\n if (!this.queue[recipient])\n this.queue[recipient] = [];\n const receiveMessagePromise = new Promise((resolve) => {\n ...
[ "0.60857093", "0.59290314", "0.58854395", "0.5746542", "0.5745657", "0.5721668", "0.5647366", "0.5637324", "0.5629899", "0.5550062", "0.5543509", "0.55379856", "0.55124396", "0.5472518", "0.5412905", "0.53644323", "0.5338614", "0.5338006", "0.53294957", "0.5323977", "0.529541...
0.667159
0
Delete all listeners associated with the condition and returns if successful cond: function
deleteListeners(cond) { return delete this.callbacks[cond.toString()]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "deleteListener (cond, cb) {\n if (this.hasCondition(cond)) {\n return this.callbacks[cond.toString()][1].delete(cb);\n }\n return false\n }", "remove (callback) {\n Object.keys(this.listeners).forEach((key) => {\n if (this.listeners[key] && this.listeners[key].size > 0) {\n this.lis...
[ "0.7588643", "0.66624796", "0.63147753", "0.6227222", "0.5958729", "0.5873642", "0.5831697", "0.581193", "0.5799744", "0.579779", "0.57750666", "0.57635885", "0.57549185", "0.5695946", "0.56711155", "0.56711155", "0.56711155", "0.56630903", "0.5647183", "0.56235206", "0.56079...
0.8170089
0
Deletes a condition's specific callback and returns if successful cond: function cb: function
deleteListener (cond, cb) { if (this.hasCondition(cond)) { return this.callbacks[cond.toString()][1].delete(cb); } return false }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "remove(condition) {\n\n }", "remove(condition) {\n\n }", "remove(condition) {\n\n }", "deleteListeners(cond) {\n return delete this.callbacks[cond.toString()];\n }", "delete() {\n // only delete the condition if it has been added and not deleted\n if (this._handle !== null) {\n ddsc99.con...
[ "0.6962625", "0.6962625", "0.6962625", "0.69523543", "0.6416102", "0.6213055", "0.5893869", "0.58430445", "0.5793269", "0.5533755", "0.5521359", "0.54634625", "0.54600894", "0.5433166", "0.52800745", "0.52609855", "0.52529573", "0.5246278", "0.5246278", "0.52421385", "0.52330...
0.80931556
0
cond: function(ilpPreparePacket) => bool, a function that returns true or false depending on the msg that is passed in. cb: function(ilpPreparePacket) => null, a function that is called if the condition is true
registerListener (cond, cb) { if (this.hasCondition(cond)) { this.callbacks[cond.toString()][1].add(cb); } else { this.callbacks[cond.toString()] = [cond, new Set([cb])]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function when(cond, fn, params) {\n async(function () {\n if (cond()) {\n fn.call(params);\n } else {\n async(arguments.callee);\n }\n });\n }", ...
[ "0.5906111", "0.5484293", "0.5484293", "0.5342424", "0.5335676", "0.5251963", "0.5205517", "0.5205517", "0.5185314", "0.515527", "0.51540077", "0.51401603", "0.5067146", "0.5053215", "0.49745628", "0.4966672", "0.4925316", "0.49121502", "0.49082446", "0.49043447", "0.48616195...
0.5858099
1
Note: Clients should not call this method, the workbench calls this method. Calling it otherwise may result in unexpected behavior. Called to create this composite on the provided parent. This method is only called once during the lifetime of the workbench. Note that DOMdependent calculations should be performed from t...
create(parent) { this.parent = parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createReactCompositeComponent(vNode, parentDom) {\n const type = vNode.type;\n const instance = vNode.children;\n const lastInput = instance._lastInput || instance;\n const dom = vNode.dom;\n return {\n getName() {\n return typeName(type);\n },\n _currentElem...
[ "0.62093556", "0.5927508", "0.5927359", "0.58890766", "0.58252335", "0.5782923", "0.57718575", "0.5727536", "0.572343", "0.56987137", "0.5577222", "0.5531629", "0.5492902", "0.53818727", "0.5376188", "0.53716004", "0.5371161", "0.53687125", "0.53497803", "0.5349124", "0.53441...
0.6206644
1
Returns an array of actions to show in the action bar of the composite.
getActions() { return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getActionList() {\n return Object.keys(this.actions);\n }", "bullkActionsList() {\n\t\tif (this.config.actions !== undefined) {\n\t\t\tthis.actions = this.config.actions;\n\t\t}\n\t\tconst actionsArray = [];\n\t\tfor (const key in this.actions) {\n\t\t\tif (this.actions[key]) {\n\t\t\t\tactionsArray.pu...
[ "0.7394004", "0.71409404", "0.69968724", "0.6961357", "0.68590987", "0.6827436", "0.6827436", "0.67887306", "0.67764646", "0.67530155", "0.6752455", "0.6720426", "0.6698695", "0.66177166", "0.6573753", "0.6536013", "0.6531814", "0.6528888", "0.6382936", "0.6348987", "0.618847...
0.730689
1
Returns an array of actions to show in the context menu of the composite
getContextMenuActions() { return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getActionList() {\n return Object.keys(this.actions);\n }", "function createContextMenu() {\n\t return new phosphor_menus_1.Menu([\n\t new phosphor_menus_1.MenuItem({\n\t text: '&Copy',\n\t icon: 'fa fa-copy',\n\t shortcut: 'Ctrl+C',\n\t handler: lo...
[ "0.66472507", "0.653597", "0.6512942", "0.6347713", "0.62224627", "0.61733663", "0.61571056", "0.5979956", "0.5968853", "0.5956206", "0.59427416", "0.59427416", "0.5924269", "0.59220886", "0.59052867", "0.5902868", "0.5901845", "0.58982927", "0.5877696", "0.58748823", "0.5843...
0.7751346
0
For any of the actions returned by this composite, provide an IActionViewItem in cases where the implementor of the composite wants to override the presentation of an action. Returns undefined to indicate that the action is not rendered through an action item.
getActionViewItem(action) { return undefined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createActionViewItem(instaService, action) {\n if (action instanceof actions_2.MenuItemAction) {\n return instaService.createInstance(MenuEntryActionViewItem, action);\n }\n else if (action instanceof actions_2.SubmenuItemAction) {\n return instaService.createIns...
[ "0.61563057", "0.5147165", "0.51288563", "0.51286936", "0.50533915", "0.5006551", "0.4994631", "0.49756044", "0.4962006", "0.4955097", "0.4955097", "0.49446586", "0.49286544", "0.4907924", "0.490741", "0.4904822", "0.48899126", "0.4888663", "0.48824525", "0.4868493", "0.48635...
0.712642
0
Returns the instance of IActionRunner to use with this composite for the composite tool bar.
getActionRunner() { if (!this.actionRunner) { this.actionRunner = new actions_1.ActionRunner(); } return this.actionRunner; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "buildCallback_() {\n this.toolbarClone_ = this.toolbarDomElement_.cloneNode(true);\n const targetId = userAssert(\n this.toolbarDomElement_.getAttribute('toolbar-target'),\n '\"toolbar-target\" is required',\n this.toolbarDomElement_\n );\n // Set the target element to the toolbar clone ...
[ "0.5115346", "0.49125046", "0.48910517", "0.4842218", "0.47837552", "0.4765812", "0.47167423", "0.4706678", "0.46888906", "0.4683974", "0.46576056", "0.46435517", "0.46413463", "0.4640763", "0.46406814", "0.45803472", "0.4576736", "0.4555253", "0.4555253", "0.4552235", "0.455...
0.77762455
0
Returns the underlying composite control or `undefined` if it is not accessible.
getControl() { return undefined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fgetControl() {\n\t\t// as with jQuery 1.4.3 and 1.4.4 there is a big problem here, we increase checks here\n\t\tif(!this || !this.nodeType || this.nodeType === 9) {\n\t\t\treturn null;\n\t\t} // in this case, we are on the HTML Document and cannot do anything\n\t\t// in IE8 'closest' might fail (e.g. whe...
[ "0.69283396", "0.60139483", "0.5825177", "0.57935065", "0.5786685", "0.57611096", "0.57611096", "0.5626283", "0.558979", "0.5554988", "0.55177146", "0.5474291", "0.5465297", "0.5399301", "0.53280264", "0.5276568", "0.5276568", "0.5276568", "0.52752525", "0.5243846", "0.522778...
0.6469505
1
Opens and returns a BroadcastChannel if it is supported by the browser.
function getBroadcastChannel() { if (!broadcastChannel && 'BroadcastChannel' in self) { broadcastChannel = new BroadcastChannel('[Firebase] FID Change'); broadcastChannel.onmessage = function (e) { callFidChangeCallbacks(e.data.key, e.data.fid); }; } return broadcastChann...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openSignalingChannel(config) {\n config.channel = config.channel || this.channel;\n var websocket = new WebSocket('wss://www.webrtc-experiment.com:8563');\n websocket.onopen = function () {\n websocket.push(JSON.stringify({\n open: true,\n channel: config.channel\n ...
[ "0.58402354", "0.57343936", "0.57343936", "0.5695814", "0.5695814", "0.55861104", "0.55548906", "0.5526968", "0.5526968", "0.5436648", "0.5436648", "0.52923775", "0.5194428", "0.5194428", "0.5170932", "0.51450574", "0.51400876", "0.51400876", "0.51346457", "0.5115377", "0.510...
0.5737316
1
Creates a new Installation Entry if one does not exist. Also clears timed out pending requests.
function updateOrCreateInstallationEntry(oldEntry) { var entry = oldEntry || { fid: generateFid(), registrationStatus: 0 /* NOT_STARTED */ }; return clearTimedOutRequest(entry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateOrCreateInstallationEntry(oldEntry) {\n var entry = oldEntry || {\n fid: generateFid(),\n registrationStatus: 0,\n /* NOT_STARTED */\n };\n return clearTimedOutRequest(entry);\n }", "function updateOrCreateInstallationEntry(oldEntr...
[ "0.7286773", "0.718842", "0.718842", "0.57820237", "0.57820237", "0.57796085", "0.57681835", "0.5733998", "0.5537526", "0.55063105", "0.55063105", "0.54625905", "0.54625905", "0.54591566", "0.5356561", "0.5356561", "0.53481495", "0.53132725", "0.53132725", "0.5302376", "0.524...
0.7190039
1
If the Firebase Installation is not registered yet, this will trigger the registration and return an InProgressInstallationEntry. If registrationPromise does not exist, the installationEntry is guaranteed to be registered.
function triggerRegistrationIfNecessary(appConfig, installationEntry) { if (installationEntry.registrationStatus === 0 /* NOT_STARTED */) { if (!navigator.onLine) { // Registration required but app is offline. var registrationPromiseWithError = Promise.reject(ERROR_FACTORY.create("ap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function triggerRegistrationIfNecessary(appConfig, installationEntry) {\n if (\n installationEntry.registrationStatus === 0\n /* NOT_STARTED */\n ) {\n if (!navigator.onLine) {\n // Registration required but app is offline.\n var registra...
[ "0.7111313", "0.7047287", "0.7047287", "0.65615964", "0.6543216", "0.6464795", "0.6464795", "0.63734275", "0.6359305", "0.63098955", "0.62343794", "0.6199043", "0.6199043", "0.5333984", "0.5293289", "0.5293289", "0.5237996", "0.5237996", "0.5106939", "0.4968486", "0.48027354"...
0.7074583
1
Returns an updated InstallationEntry with an InProgressAuthToken.
function makeAuthTokenRequestInProgressEntry(oldEntry) { var inProgressAuthToken = { requestStatus: 1 /* IN_PROGRESS */, requestTime: Date.now() }; return Object(__WEBPACK_IMPORTED_MODULE_2_tslib__["__assign"])(Object(__WEBPACK_IMPORTED_MODULE_2_tslib__["__assign"])({}, oldEntry), { authToke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeAuthTokenRequestInProgressEntry(oldEntry) {\r\n var inProgressAuthToken = {\r\n requestStatus: 1 /* IN_PROGRESS */,\r\n requestTime: Date.now()\r\n };\r\n return Object(tslib__WEBPACK_IMPORTED_MODULE_2__[\"__assign\"])(Object(tslib__WEBPACK_IMPORTED_MODULE_2__[\"__assign\"])({},...
[ "0.6608623", "0.6608623", "0.6580711", "0.6531582", "0.5925176", "0.5800063", "0.5800063", "0.5757857", "0.5757857", "0.541758", "0.541758", "0.5412309", "0.53997135", "0.53714573", "0.5371237", "0.5371237", "0.5336817", "0.5336817", "0.5280568", "0.47913527", "0.47913527", ...
0.6645423
0
encrypts the event if necessary adds the event to the queue, or sends it marks the event as sent/unsent returns a promise which resolves with the result of the send request
function _sendEvent(client, room, event, callback) { // Add an extra Promise.resolve() to turn synchronous exceptions into promise rejections, // so that we can handle synchronous and asynchronous exceptions with the // same code path. return _bluebird2.default.resolve().then(function () { var e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function relayEventWith (api, ensureUserSecret) {\n var relayEvent = bindCrypto(function (accountId, payload) {\n var crypto = this\n // `flush` is not supposed to be part of the public signature, but will only\n // be used when the function recursively calls itself\n var flush = arguments[2] || false...
[ "0.5658817", "0.5653656", "0.5515088", "0.55136675", "0.53641635", "0.53284496", "0.5321062", "0.5265305", "0.519982", "0.50908035", "0.5090053", "0.5085792", "0.5058021", "0.50001436", "0.49874672", "0.49874547", "0.4985367", "0.49810624", "0.49538842", "0.49399146", "0.4928...
0.58978474
0
Aborts a transaction with a given exception The transaction promise will be rejected with this exception.
function abortWithException(txn, e) { // We cheekily stick our exception onto the transaction object here // We could alternatively make the thing we pass back to the app // an object containing the transaction and exception. txn._mx_abortexception = e; try { txn.abort(); } catch (e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async abort() {\n transactionalGuard()\n stateMachine.transitionTo(STATES.ABORTING)\n\n const broker = await findTransactionCoordinator()\n await broker.endTxn({\n producerId,\n producerEpoch,\n transactionalId,\n transactionResult: false,\n })...
[ "0.6339985", "0.6124902", "0.6037233", "0.59403455", "0.59403455", "0.5793582", "0.5641069", "0.55743873", "0.5535015", "0.5454042", "0.5454042", "0.54318595", "0.534544", "0.5344775", "0.531847", "0.531847", "0.52812815", "0.52812815", "0.5253218", "0.5207705", "0.5203524", ...
0.7500448
0
TODO: Brad is going to add `screen_name` to GA Gold config parameter schema Set screen_name parameter for this Google Analytics ID.
function setCurrentScreen(gtagFunction, analyticsId, screenName, options) { if (options && options.global) { gtagFunction(GtagCommand.SET, { 'screen_name': screenName }); } else { gtagFunction(GtagCommand.CONFIG, analyticsId, { update: true, 'screen_name': screenName ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setCurrentScreen(gtagFunction, analyticsId, screenName, options) {\r\n if (options && options.global) {\r\n gtagFunction(GtagCommand.SET, { 'screen_name': screenName });\r\n }\r\n else {\r\n gtagFunction(GtagCommand.CONFIG, analyticsId, {\r\n update: true,\r\n ...
[ "0.692924", "0.6745801", "0.61103183", "0.57721204", "0.57306665", "0.5694669", "0.5636211", "0.5600636", "0.5581298", "0.55292237", "0.5427821", "0.54168487", "0.534186", "0.53346485", "0.5253914", "0.5205311", "0.5197599", "0.51609826", "0.5098625", "0.5092555", "0.505742",...
0.691586
1
Set whether collection is enabled for this ID.
function setAnalyticsCollectionEnabled(analyticsId, enabled) { window["ga-disable-" + analyticsId] = !enabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAnalyticsCollectionEnabled(analyticsId, enabled) {\n window[\"ga-disable-\" + analyticsId] = !enabled;\n }", "function setAnalyticsCollectionEnabled(analyticsId, enabled) {\r\n window[\"ga-disable-\" + analyticsId] = !enabled;\r\n}", "function setAnalyticsCollectionEnabled(initia...
[ "0.62899894", "0.6038193", "0.5950667", "0.5936103", "0.5869291", "0.55281585", "0.5494315", "0.5487319", "0.54555917", "0.5349857", "0.5336827", "0.5288509", "0.52734095", "0.52734095", "0.52734095", "0.52734095", "0.52734095", "0.52734095", "0.52734095", "0.52734095", "0.52...
0.60990113
1
Returns a JSON validator for a given TypeScript schema. Validation is performed by an inmemory instance of the TypeScript compiler. The specified type argument `T` must be the same type as `typeName` in the given `schema`.
function createJsonValidator(schema, typeName) { const options = { ...ts.getDefaultCompilerOptions(), strict: true, skipLibCheck: true, noLib: true, types: [] }; const rootProgram = createProgramFromModuleText(""); const validator = { schema, typeN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeValidator (schema) {\n const ajv = new Ajv({ allErrors: true, coerceTypes: true })\n\n // Add If-then-else from ajv-keywords package\n //AddIf(ajv);\n\n // Add custom keyword\n ajv.addKeyword('customKeyword', {\n validate: (aSchema, value) => customValidationFunction(value),\n errors: false...
[ "0.5950288", "0.5369978", "0.5361112", "0.52975047", "0.52308065", "0.51435024", "0.5093427", "0.5002708", "0.4966739", "0.49004573", "0.46812755", "0.45687068", "0.4562334", "0.45561785", "0.4546854", "0.45281112", "0.4519384", "0.44860396", "0.44734555", "0.44669852", "0.44...
0.6614832
0
Recursively delete properties with null values from the given object. This function assumes there are no circular references in the object.
function stripNulls(obj) { let keysToDelete; for (const k in obj) { const value = obj[k]; if (value === null) { (keysToDelete ??= []).push(k); } else { if (Array.isArray(value)) { if (value.some(x => x === null)) { obj[k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeNulls(obj) {\n if (obj === null || typeof obj !== 'object') {\n return obj;\n } // Nothing to do\n Object.keys(obj).forEach(prop => {\n const val = obj[prop];\n if (val === null) {\n delete obj[prop];\n ...
[ "0.764163", "0.73043424", "0.71144754", "0.6983978", "0.6954928", "0.69005495", "0.6803044", "0.67849845", "0.6649427", "0.6646851", "0.6549087", "0.6522094", "0.6502023", "0.64519626", "0.642196", "0.6420036", "0.6391968", "0.6388624", "0.6332479", "0.6316725", "0.6295759", ...
0.77116555
0
Resume capturing (after construction we're default in capture)
resumeCapture() { this._stopped = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "resume() {\n // Empty\n }", "resume() {\n this.active = true;\n return this;\n }", "__init4() {this.captureParensIndex = 0;}", "function setCapture (object, multi) {\n if (capture == null)\n capture = { control: object, element: null };\n}", "capture_state() {\n\t\treturn this;\...
[ "0.59013283", "0.5765343", "0.5719377", "0.5657964", "0.56200314", "0.5564106", "0.54963225", "0.5472829", "0.54601246", "0.5431354", "0.5394463", "0.5362726", "0.5338574", "0.5293389", "0.5285141", "0.52527744", "0.5247388", "0.5216016", "0.5213471", "0.51966614", "0.5179844...
0.64699507
0
Execute all commands in queue
executeAll() { this.queue.forEach((command) => { command.execute(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async _run_command_queue() {\n if (this._running) return;\n\n this._running = true;\n while (this._commandQueue.length > 0) {\n const [cmd, inline, resolve, reject] = /** @type {!QueuedCommand} */ (\n this._commandQueue.shift());\n\n if (inline) {\n this._socket.write(cmd.join(' ...
[ "0.7569356", "0.7173341", "0.7101256", "0.70677304", "0.69427365", "0.69427365", "0.69427365", "0.69427365", "0.69427365", "0.69427365", "0.69427365", "0.683318", "0.67913693", "0.6751184", "0.6751184", "0.6751184", "0.6719308", "0.6678634", "0.6678634", "0.6678634", "0.66786...
0.8860845
0
Clear all commands in queue
clearQueue() { this.queue = []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clear() {\n this.queue = [];\n }", "function clearQueue(){\n _queue.forEach(function(timeout){\n clearTimeout(timeout)\n })\n _queue = []\n }", "function clearQueue(){updateQueue.length=0;markupQueue.length=0;}", "function clearQueue() {\n updateQueue.length = 0;\n markup...
[ "0.7880111", "0.7703203", "0.76819646", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", "0.75714177", ...
0.7739032
1
patient id in appointment
function findPatient(patient) { return patient.id === entry.patient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get appointment () {\n\t\treturn this._appointment;\n\t}", "async function getAppointmentsByPatient(req, res) {\n let patientId = req.params.patientId;\n\n await patientService.getAppointmentsByPatient(res, patientId);\n}", "function nextIDforAppointment() {\n var nextID = 0;\n for (var i = 0; i < ...
[ "0.62967193", "0.62433463", "0.60326767", "0.5878908", "0.5878908", "0.584481", "0.584481", "0.58403206", "0.5805313", "0.5805313", "0.5805313", "0.57919997", "0.57530636", "0.5746543", "0.5730002", "0.5639389", "0.56380063", "0.56342685", "0.561653", "0.56164783", "0.5614446...
0.6380088
0
let RESULT_GLOBAL = new Set(); removeSelectedResults(selectStateMachine, context.selectedVariants) removeSelectedResults(RESULT_GLOBAL)
function removeSelectedResults(foundVariantsList) { console.log('remove selected result') // Object.keys(selectStateMachine.context.selectedVariants).forEach((selectedVariant, i) => { selectStateMachine.context.selectedVariants.forEach((selectedVariant, i) => { if (foundVariantsList....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _deselectAllResults() {\n vm.filteredSearchResults.forEach(result => {\n result.isSelected = false;\n });\n\n vm.isAllSelected = false;\n }", "clearSelected() {}", "function deselectAll() {\r\n\r\n // Run through the list of selected objects and restore their orig...
[ "0.6743413", "0.6665324", "0.63846725", "0.6365691", "0.62084365", "0.6178204", "0.6162796", "0.6152474", "0.6137698", "0.6129686", "0.6083862", "0.6081553", "0.60759044", "0.605948", "0.60448074", "0.60302806", "0.6028701", "0.60006773", "0.59876096", "0.5982834", "0.5982278...
0.78697723
0
Moves the piece to blank when clicked
function clickPiece(event){ thisX = this.offsetLeft; thisY = this.offsetTop; if(isMoveable(thisX, thisY)){ this.style.left = blankX + "px"; this.style.top = blankY + "px"; blankX = thisX; blankY = thisY; checkWin(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveToEmptySquare(e, elem) {\n e.preventDefault();\n // done so that a click on a piece when none are set does not execute this\n if(firstClick)\n {\n firstClick = false;\n return;\n }\n // if there are elements in the flashing array\n // meaning the user is trying to mo...
[ "0.68009907", "0.6698893", "0.665815", "0.6555859", "0.6401212", "0.62797374", "0.62516505", "0.6245854", "0.62439793", "0.62342006", "0.62170535", "0.621683", "0.62124455", "0.61902606", "0.6186305", "0.61788166", "0.613789", "0.61320186", "0.61020875", "0.61013895", "0.6062...
0.6980784
0
This class defines a complete listener for a parse tree produced by RollupParser.
function RollupListener() { antlr4.tree.ParseTreeListener.call(this); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RollupListener() {\r\n\tantlr4.tree.ParseTreeListener.call(this);\r\n\treturn this;\r\n}", "function JavaParserListener() {\n\tantlr4.tree.ParseTreeListener.call(this);\n\treturn this;\n}", "function YarnParserListener() {\n\tantlr4.tree.ParseTreeListener.call(this);\n\treturn this;\n}", "function r...
[ "0.72275025", "0.613019", "0.6088513", "0.59491545", "0.5933202", "0.5810709", "0.57976955", "0.578143", "0.57577676", "0.57409847", "0.56823677", "0.5639407", "0.5632999", "0.5631012", "0.55931085", "0.55853456", "0.5550385", "0.54722285", "0.5470481", "0.5363331", "0.533269...
0.7225377
1
Variates the color stored in currentColor by the amount stored in currentColor.variationAmount. It randomly chooses one of the Red Green or Blue color numbers to vary Updates the background color of the body and the color of the category label
function progressAndChangeColor() { var wichColorAxisToChange = 'rgb'[Math.floor(Math.random() * 3)]; currentColor[wichColorAxisToChange] += currentColor.variationAmount; currentColor[wichColorAxisToChange] %= 256; var newColorText = `rgb(${currentColor.r},${currentColor.g},${currentColor.b})`; document.body...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setRandomColor() {\n //keeping random color selection this way since it depends on color' length: 0-3 for an array with items of 4\n let colorIndex = Math.floor(Math.random() * colors.length);\n\n if (lastColorIndex > -1 && lastColorIndex === colorIndex) {\n while (lastColorIndex === colorIndex) {\n...
[ "0.6671639", "0.65708387", "0.65576774", "0.6545723", "0.6508649", "0.6484992", "0.64452535", "0.64029825", "0.6379275", "0.6357981", "0.6316459", "0.6264679", "0.6259316", "0.62550175", "0.6254718", "0.6244812", "0.62382567", "0.6235568", "0.623278", "0.6217112", "0.62161314...
0.7454679
0
Detecting languages the hard way
function detectLanguage () { /* * Tries to detect the page language using actual text * from the page (since meta data has been insufficient) */ // Default :P var lang = 'en'; var preText = '', $elems = $('p'); for ( let eli = 0; eli < $elems.length; eli++ ) { preText += $( $elems[eli] ).text(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getLanguage() {}", "function detectLanguage() {\n\t//if(sLang != \"\") {return true;}\n\tvar re = null; re = new RegExp(\"([a-zA-Z]{2,3})(\\/.*)?$\", \"i\");\n\tvar lang = re.exec(window.location.href);\n\n if(!lang) {\n _log(\"failed to detect language automatically!\", 0);\n\t\tif(sLang == \"\") ...
[ "0.71686983", "0.70493364", "0.70430404", "0.68934363", "0.67304206", "0.6727699", "0.67048454", "0.66598547", "0.6649033", "0.6545283", "0.6486235", "0.6482471", "0.6471752", "0.6411843", "0.64108807", "0.64044935", "0.63909775", "0.6370794", "0.6347245", "0.6347245", "0.631...
0.76208276
0
Event "class" Mostly a twotuple or structure of (a) A `task` (functionobject) to be run, and (b) A simulated `time` to run it at
constructor (time, task) { this.time = time; this.task = task; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CustomTask(){\n this.level = 0;\n this.time = 0;\n this.actions = [];\n this.active = false;\n this.condition = \"above\";\n this.variable = \"attention\";\n this.packetEmitter = new events.EventEmitter();\n}", "constructor(onevent/* : Function */){super();this.waiting=[];this.await...
[ "0.6184975", "0.6182799", "0.617661", "0.6104284", "0.6019734", "0.59978783", "0.5969494", "0.58864653", "0.58768404", "0.5871737", "0.57891047", "0.5784925", "0.5778507", "0.5685354", "0.5684648", "0.5677616", "0.56691146", "0.5600945", "0.5533322", "0.5500853", "0.5483999",...
0.68161625
0
A Simple SystemModel, Using the sorts of eventdriven constructs common in Verilog or VHDL, But calling `sim.add_event` instead of using special syntax.
constructor () { // This "this binding" can go away if using arrow-function-enabled Javascript this.kickStart = this.kickStart.bind(this); this.keepGoing = this.keepGoing.bind(this); // Create our Sim object. This would be "behind the scenes" in a dedicated HDL. this.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_privateSendMachineEvent(event) {\n this.machine.send(event);\n }", "AddEvent() {}", "function MoonEvent() {}", "function makeSimulator(eventType) {\n return function (domNode, eventData) {\n !!React.isValidElement(domNode) ? invariant(false, 'TestUtils.Simulate expected a DOM node as the first a...
[ "0.54945344", "0.549093", "0.543469", "0.54026437", "0.5358126", "0.53525054", "0.53525054", "0.53525054", "0.5352438", "0.5331464", "0.5331464", "0.5331464", "0.5329545", "0.5312625", "0.5303356", "0.5297307", "0.5285648", "0.52681035", "0.52614224", "0.5256962", "0.52535355...
0.5908146
0
$scope.publinotifs.push("new publication to read"); console.log($scope.publinotifs);
function resultController ($scope, notification) { //console.log(notification.getNotifResponse); var x = notification.getNotifResponse(); $scope.publinotifs.unshift(x); console.log($scope.publinotifs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pushResponse(){\n\tfor(var i=0;i< $scope.response.length;i++){\n\t\t$scope.imageList.push($scope.response[i]);\t\n\t}\n}", "push({items,owner}) { this.$publish('push', {items,owner})}", "function successAddTodo(data){\n $scope.todos.push(data.data);\n }", "push(item) {\n this.items.push...
[ "0.6148896", "0.6041513", "0.6037837", "0.5991804", "0.5898634", "0.58913", "0.5890326", "0.57874626", "0.57560194", "0.5754905", "0.57524914", "0.57283187", "0.5712586", "0.56913245", "0.56420594", "0.5587446", "0.5569805", "0.5561773", "0.55617535", "0.5553155", "0.5535025"...
0.72736466
0
$scope.publinotifs.push("new publication to read"); console.log($scope.publinotifs);
function resultController ($scope, notification) { //console.log(notification.getNotifResponse); var x = notification.getNotifResponse(); $scope.publinotifs.unshift(x); console.log($scope.publinotifs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pushResponse(){\n\tfor(var i=0;i< $scope.response.length;i++){\n\t\t$scope.imageList.push($scope.response[i]);\t\n\t}\n}", "push({items,owner}) { this.$publish('push', {items,owner})}", "function successAddTodo(data){\n $scope.todos.push(data.data);\n }", "push(item) {\n this.items.push...
[ "0.61468804", "0.6039239", "0.6036465", "0.59883475", "0.5895426", "0.58896345", "0.58869183", "0.5786238", "0.57549566", "0.5751456", "0.57500535", "0.572597", "0.57100725", "0.5688028", "0.5638206", "0.5584138", "0.5567658", "0.555918", "0.55588526", "0.5549303", "0.5531757...
0.72739947
1
Ajax for insert data from textarea prompt into DB
function submitPrompt() { bootbox.prompt({ title: "This is a prompt with a textarea!", inputType: 'textarea', callback: function (result) { //If textarea empty show alert with message if (result === '') { bootbox.alert('Texarea cen\'t be empty'); //else create ajax request ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enternewcomment(memID){\n\tvar commentTitle = $(\"#insertCommentTitle\").val();\n\tvar commentBody = $(\"#insertCommentBody\").val();\n\t$.ajax({\n \t\ttype: \"POST\",\n url: \"users/insertComment.php\",\n data: {\"memID\":memID,\"title\":commentTitle,\"body\":commentBody}\n \t...
[ "0.6555419", "0.6550197", "0.62436277", "0.614541", "0.6029178", "0.59410596", "0.5897007", "0.5893016", "0.58872104", "0.5867811", "0.5838252", "0.58268267", "0.58267456", "0.5820746", "0.5817338", "0.58147484", "0.5812533", "0.57903874", "0.5785403", "0.5782367", "0.5774877...
0.6592003
0
Renders DOM Element with given properties and attributes
function renderElement({ type, props = {}, attributes = {} }) { const element = document.createElement(type); Object.keys(props).forEach(key => element[key] = props[key]); Object.keys(attributes).forEach(key => element.setAttribute(key, attributes[key])); return element; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RenderableDOMElement(){}", "function RenderableDOMElement() {}", "function RenderableDOMElement() {}", "render(){\n /**\n * Use JavaScript expressions to include property values in\n * the element template.\n */\n return litElement.html`<p>foo</p>`;\n }", "render () ...
[ "0.7002563", "0.68271273", "0.68271273", "0.6671194", "0.6588159", "0.62659496", "0.6253586", "0.6225092", "0.6218621", "0.62030125", "0.6171512", "0.6150851", "0.6125377", "0.61054546", "0.61054546", "0.60981995", "0.60673535", "0.6055691", "0.6055691", "0.6047856", "0.60478...
0.7277814
0
This method adds an event listener to game menu and listens for mouse inputs when the game instance is over It stops the game music and records final result of the game to current player scores
endGameActions(){ let gameMenu = document.querySelector("#game-menu"); gameMenu.addEventListener("mouseup", event =>{ // Add event listener to game menu if(this.game.sendResults == true){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "menuOptions(){\n // Check for mouse event on the \n document.querySelector('#container').addEventListener('mouseup', event => {\n if(this.form.currentPlayer != null){ // Check if player is logged in\n let opt = event.target.getAttribute(\"d...
[ "0.67697483", "0.66904616", "0.6584936", "0.6489748", "0.64388424", "0.64159757", "0.63792706", "0.63444936", "0.6271583", "0.62677574", "0.62316287", "0.62257284", "0.61737645", "0.6089454", "0.608916", "0.6079471", "0.60770565", "0.607345", "0.606536", "0.60633665", "0.6061...
0.7061313
0
This method adds an event listener to the game replay button so that it starts a new instance of the game when clicked
replayGame(){ document.querySelector("#game-info-image").addEventListener('mouseup', event =>{ // Add event listener to replay button clearInterval(this.game.interval) // Stop timer for t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function replay(e){\nreplayGame.addEventListener(\"click\", function(){\n modal.style.display = \"none\";\n restart();\n });\n\n}", "function newGameListener() {\n\trestartButton.addEventListener('click', Player.prototype.restart);\n}", "function replay() {\n let playAgain = document.querySelector(\"...
[ "0.773136", "0.7485118", "0.7314826", "0.7022989", "0.6878795", "0.68470633", "0.68210566", "0.6806134", "0.6734193", "0.6714895", "0.6693917", "0.6672854", "0.6660963", "0.66344315", "0.66231406", "0.66220975", "0.66071486", "0.6575436", "0.65735024", "0.65714043", "0.657109...
0.79074293
0
This method sets application game values gathered from the settings object
setGameValues(){ this.gameVals.row = this.settings.setSize().row; // Get row value this.gameVals.column = this.settings.setSize().col; // Get column value this.gameVals.mine = this.settings.setDifficulty(t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initGameSettings() {\n player.collisionCount = 0;\n requestId = 0;\n player.goToHome();\n allEnemies.forEach(function(enemy) {\n enemy.spawn();\n });\n }", "set settings(gameSettings){\n if(gameSettings.aiIsOn !== undefined){\n this.aiOn = gameSet...
[ "0.688239", "0.6677229", "0.65874267", "0.65785563", "0.6508432", "0.6494567", "0.64805156", "0.6478703", "0.6472442", "0.6458529", "0.62493765", "0.62334687", "0.61472356", "0.6129948", "0.61246043", "0.6120041", "0.6108445", "0.6102604", "0.6069429", "0.60606503", "0.605290...
0.6977223
0
This method adds an event listener to user login/register form to start playing menu music
playerLogged(){ let modal = document.querySelector("#player-modal"); // Select login/register form modal.addEventListener("mouseup",event=>{ // Add an event listener if(this.form.currentPlayer!= ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleButtonStartEvent(){\n\tif(SOUNDS_MODE){\n\t\taudioClick.play();\t\n\t}\n\t\n\t//buttonStart.image = IMAGE_PATH+'login/play_pressed.png';\n\t\n\ttf1.value = tf1.value.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n\tif(tf1.value != ''){\n\t\t\n\t\ttf1.blur();\n\t\tsavePlayer(tf1.value, fbId,null);...
[ "0.6257692", "0.61653244", "0.6103606", "0.6046465", "0.60024685", "0.5971602", "0.59551275", "0.59388787", "0.5932699", "0.59218884", "0.58814293", "0.5864022", "0.5860343", "0.5853851", "0.58506453", "0.5847365", "0.5821535", "0.5819704", "0.5801977", "0.57968736", "0.57889...
0.7473099
0
Resets the interface when ending tracking bikes
function EndTrack() { // Clear interval of animations clearInterval(moveInterval); // Clean list of markers for (let j = 0; j < markersList.length; j++) { markersList[j].setMap(null); } markersList = [] // Clean list of locations for (let k = 0; k < markerBallonList.length; k++...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "stopTracking() {\n this._tracking && this._tracking.__detach()\n this._tracking = null\n }", "end() {\n if (this.active)\n this.app.setCursor(this.cursor);\n this.active = false;\n this.step = 1;\n if (this.arrayObjects != null)\n t...
[ "0.650938", "0.6428537", "0.6293043", "0.6255673", "0.62140846", "0.61767274", "0.6131826", "0.6117628", "0.6105805", "0.6077204", "0.60570306", "0.6038935", "0.6015608", "0.60122234", "0.5970885", "0.5970885", "0.5970885", "0.5958037", "0.59495854", "0.59295833", "0.5899937"...
0.7123613
0
a task to find one file matching the given mask returns just the first matching file
async findFiles (mask) { if (!mask) { throw new Error('Missing a file mask to search') } console.log('searching for files %s', mask) const list = await globby(mask) if (!list.length) { console.log('found no files') return null } console.log('found %...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "let exactMatch;\n for (let pattern in globMap) {\n if (this.isGlobMatch(filePath, pattern, pipeline)) {\n exactMatch = globMap[pattern];\n break;\n }\n }", "matchOne(file, pattern, partial = false) {\n const options = this.options;\n if (this.isWindows) {\n...
[ "0.58079875", "0.5800345", "0.56578046", "0.56036323", "0.5553389", "0.5412746", "0.53651386", "0.5345046", "0.5319315", "0.5303845", "0.52700704", "0.52551293", "0.52292496", "0.5223508", "0.5198161", "0.5198161", "0.5132293", "0.5119126", "0.5119126", "0.5119126", "0.511912...
0.7838766
0
Fix subscriber to check for undefined or function returned to decorate as Disposable
function fixSubscriber(subscriber) { return subscriber && isFunction(subscriber.dispose) ? subscriber : isFunction(subscriber) ? Disposable.create(subscriber) : Disposable.empty; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fixSubscriber(subscriber) {\n return subscriber && isFunction(subscriber.dispose) ? subscriber :\n isFunction(subscriber) ? disposableCreate(subscriber) : disposableEmpty;\n }", "function fixSubscriber(subscriber) {\n return subscriber && isFunction(subscriber.dispose) ? subscriber :...
[ "0.71777195", "0.71777195", "0.71777195", "0.7148464", "0.7110003", "0.7110003", "0.6730415", "0.6176367", "0.5919362", "0.590936", "0.5827119", "0.5510802", "0.5508618", "0.5480331", "0.5467672", "0.5463261", "0.5456872", "0.52666247", "0.52666247", "0.52601355", "0.52575326...
0.7254409
0
Represents a value that changes over time. Observers can subscribe to the subject to receive the last (or initial) value and all subsequent notifications.
function BehaviorSubject(value) { this.value = value; this.observers = []; this.isDisposed = false; this.isStopped = false; this.hasError = false; Observable.call(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function value (initialValue) {\n var _val = initialValue, listeners = []\n observable.set = function (val) {\n all(listeners, _val = val)\n }\n return observable\n\n function observable(val) {\n return (\n isGet(val) ? _val\n : isSet(val) ? all(listeners, _val = val)\n : (listeners.push(val)...
[ "0.62885475", "0.59907544", "0.5962049", "0.58743656", "0.58642775", "0.5862366", "0.58086026", "0.5805033", "0.57448345", "0.57448345", "0.57448345", "0.57448345", "0.57448345", "0.57448345", "0.57448345", "0.57448345", "0.57448345", "0.57448345", "0.57448345", "0.57448345", ...
0.6240973
1
funcao pega valor do campo texto
function pegaValorDoCampoTexto() { return campoTexto.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function formatarCampo(campoTexto) {\n campoTexto.value = mascaraTelefone(campoTexto.value);\n}", "function comprobarTexto(valor,texto,str){\r\n var comprobar=false;\r\n if( valor.value == null || valor.value.length == 0 || /^\\s+$/.test(valor.value) ) {\r\n comprobar=false;...
[ "0.66456145", "0.6532313", "0.64909995", "0.63385504", "0.6307206", "0.6298336", "0.62719536", "0.62449265", "0.6146376", "0.6146376", "0.6146376", "0.6146376", "0.6127234", "0.6127234", "0.6108789", "0.608852", "0.60877925", "0.6084944", "0.607393", "0.6057024", "0.60356194"...
0.7427912
0
Function:processSmartLayerSet Usage: Input:none Return:none
function processSmartLayerSet( layerSet ) { // if no layers inside, remove it if ( layerSet.artLayers.length <= 0 ) { layerSet.remove(); return; } var docRef = layerSet.parent; // Cache initial set of layers in the Smart Layer Set var layers = []; var length = layerSet.artLayers.length; for ( var i=0; i<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initWMSLayerSetting() {\n\tvar list = $(\"#ul-wms-layer-list\").find(\"li > input\");\n\t// 리스트 생성\n\tfor(var i = 0; i < list.length; i++) {\n\t\tvar value = $(list[i]).data(\"layername\");\n\t\tvar order = $(list[i]).data(\"order\");\n\t\t\n\t\tvar layer = {};\n\t\tlayer.name = value;\n\t\tlayer.isActive...
[ "0.5473178", "0.5306707", "0.5230488", "0.51994026", "0.51809955", "0.51745665", "0.5166179", "0.5152217", "0.51318383", "0.50677717", "0.5013486", "0.5010038", "0.4991863", "0.49272105", "0.48961654", "0.48864472", "0.48723134", "0.48533174", "0.48457783", "0.48263714", "0.4...
0.74108374
0
Function:groupRootLayers Usage:Put all root layers in layerSets and name them accordingly Input:none Return:none
function groupRootLayers(){ var notGroupedLayers = new Array(); // Collecting current root layers for ( i = 0; i < docRef.artLayers.length; i++ ){ var currentLayer = docRef.artLayers[i]; // make background layer to a normal one if (currentLayer.isBackgroundLayer) { currentLayer.isBackgroundLayer = false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetLayers() {\n shelterGroup.clearLayers();\n platformGroup.clearLayers();\n}", "static set AllLayers(value) {}", "function addAllLayers() {\n\t\t\n\tfor (layer in allLayers) {\n\t\tif (allLayers[layer].wimOptions.type == \"layer\") {\n\t\t\tconsole.log(layer);\n\t\t\tvar newLayer;\n\t\t\tif (...
[ "0.6602995", "0.65454525", "0.64335644", "0.6080256", "0.5973567", "0.59310526", "0.59198165", "0.5810044", "0.58053696", "0.5741808", "0.5727675", "0.56927925", "0.5667621", "0.5652312", "0.56424636", "0.56340367", "0.55926025", "0.5570379", "0.5569483", "0.5529865", "0.5519...
0.80241984
0
Function:getLayerColor Usage: Input:none Return:Colors returned "none","red","orange","yellowColor","grain","blue","violet","gray"
function getLayerColor( targetLayer ){ var actionDescriptor = Stdlib.getLayerDescriptor(docRef, targetLayer) return typeIDToStringID(actionDescriptor.getEnumerationValue(stringIDToTypeID('color'))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNewColor() {\n\n var usedColors = [],\n element;\n\n for (var i in layers) {\n if ( layers.hasOwnProperty(i) ) {\n\n element = layers[i].element();\n\n if (element && element.getAttribute(\"data-color\")) {\n usedColors.push(element.getAttribute(\"...
[ "0.7193368", "0.6340975", "0.61939526", "0.6150252", "0.60815465", "0.60590714", "0.60391605", "0.60378927", "0.6024043", "0.6006453", "0.5986868", "0.59820914", "0.59645194", "0.59624976", "0.59320724", "0.59140205", "0.59067196", "0.58942294", "0.5839391", "0.5833508", "0.5...
0.6520757
1
Function:setActiveLayerColor Usage: Input:none Return:Set active layer color
function setActiveLayerColor( color ) { switch (color){ case 'red': color = 'Rd '; break; case 'orange' : color = 'Orng'; break; case 'yellow' : color = 'Ylw '; break; case 'yellowColor' : color = 'Ylw '; break; case 'green' : color = 'Grn '; break; case 'grain' : color = 'Grn '; break; ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onLayerColor(menu,NSLayer,layerName){\nif(browser == 'ns') {var theLayer = eval(\"document.\"+menu+\".document.\"+layerName+\".document.\"+NSLayer);}\nelse if (browser == 'ie') {var theLayer = eval(\"document.all.\"+layerName+\".style\");}\nelse {theLayer = eval(\"document.getElementById(\\\"\" +layerName...
[ "0.58172685", "0.5773186", "0.5741528", "0.57052696", "0.5452827", "0.5339056", "0.53100765", "0.5302461", "0.52940774", "0.5262926", "0.5240402", "0.5207399", "0.51889676", "0.5160955", "0.51465327", "0.5096011", "0.5092436", "0.5073408", "0.5072657", "0.5065015", "0.5060152...
0.7856235
0
This Function adds groups to a team for Project Area in UCD
function ucd_paaddgrouptoteam(project_name,authorization,adminName,project_name,group,callback) { console.log("Project Groups is getting added to Project Teams"); project_name = project_name; for(var i = 0 ; i < myConstants.NO_OF_GROUPS ; i++) { if ( i === 0 ) { var role = "Application-Admi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addTeamToGroup(req, res, next) {\n const groupId = req.parms.gId\n const teamId = req.parms.tId\n\n foca.addTeamToGroup(groupId, teamId, focaCallback.bind(null, res, next))\n }", "function addTeamToGroup(req, res, next) {\n const groupId = req.params.gId\n const tea...
[ "0.70473427", "0.6636464", "0.64731115", "0.64055395", "0.62411064", "0.6228196", "0.61886835", "0.61373943", "0.6054857", "0.5967695", "0.59283745", "0.59148437", "0.59137946", "0.5912914", "0.58553165", "0.58376455", "0.58314896", "0.5809177", "0.5793659", "0.5790821", "0.5...
0.68314236
1
This Function binds the Team to the 3 environment in UCD
function ucd_paaddingteamtoenvironment(project_name,authorization,project_name,no_of_environment,callback) { console.log("Adding Environment to Team for Project Area has Started"); project_name = project_name; var var_ucd_paaddingteamtoenvironment = 0; for (var i = 0 ; i < no_of_environment ; i++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setUpGame() {\n\t// Clear teams\n\tteam1 = '';\n\tteam2 = '';\n\t\n\t// Get teams\n\tplayers.forEach(function(ele) {\n\t\tif (team1 === '') team1 = ele.team;\n\t\tif (team1 !== ele.team) {\n\t\t\tteam2 = ele.team; \n\t\t\treturn;\n\t\t}\n\t});\n}", "function SetTeams() {\n\t\tnetworkView.RPC(\"Initializ...
[ "0.58366096", "0.5588557", "0.5583402", "0.5553422", "0.5402809", "0.5367074", "0.53439575", "0.5342445", "0.532286", "0.5317645", "0.5242455", "0.52399147", "0.5220745", "0.5212538", "0.5196065", "0.5188809", "0.51794386", "0.51734656", "0.5136557", "0.5134289", "0.5129997",...
0.56396574
1
This Function Deletes an environment for Project Area in UCD
function ucd_pacdeleteenvironment(project_name,authorization,project_name,no_of_environment,callback) { console.log("Deletion of Environment for Project Area has Started"); project_name = project_name; for (var i = 0 ; i < no_of_environment ; i++) { if ( i === 0) { env_name = "Dev"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteProject(projectName) {\r\n\tvar requestData = '{'\r\n\t\t\t+ '\"command\" : \"deleteProject\",'\r\n\t\t\t+ '\"arguments\" : {'\r\n\t\t\t+ '\"project\" : \"' + projectName + '\"'\r\n\t\t\t+ '}'\r\n\t\t\t+ '}';\r\n\tmakeAsynchronousPostRequest(requestData, refresh, null);\t// Define...
[ "0.6153529", "0.60507953", "0.5682211", "0.557858", "0.55267084", "0.5500009", "0.5476448", "0.5362338", "0.5353419", "0.5345962", "0.5321836", "0.5273908", "0.5258142", "0.521763", "0.52174294", "0.5195721", "0.5172416", "0.51622874", "0.5158768", "0.51577467", "0.51534635",...
0.6941421
0
This Function creates a component process for Project Area in UCD
function ucd_pacreatecomponentprocess(project_name,authorization,project_name,no_of_environment,callback) { console.log("Creation of Component Process for Project Area has Started"); project_name = project_name; request({ headers: { 'Authorization': authoriz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ucd_pacreatecomponent(project_name,authorization,project_name,no_of_environment,callback)\r\n{\r\n console.log(\"Creation of Component for Project Area has Started\");\r\n project_name = project_name;\r\n request({\r\n headers:\r\n {\r\n 'Authorization': au...
[ "0.5808818", "0.5717341", "0.5512907", "0.5480691", "0.5418531", "0.53821397", "0.53380454", "0.5283184", "0.5282229", "0.5217194", "0.520734", "0.5159966", "0.5139089", "0.5132519", "0.50839514", "0.50767696", "0.50593257", "0.50539386", "0.50487447", "0.50409746", "0.503126...
0.6900613
0
This Function creates an application process for Project Area in UCD
function ucd_pacreateapplicationprocess(project_name,authorization,project_name,no_of_environment,callback) { console.log("Creation of Application Process for Project Area has Started"); project_name = project_name; request({ headers: { 'Authorization': auth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createApplication() {\r\n\t\t/** @type {String} */\r\n\t\tlet appid = this._app_id;\r\n\t\t/** @type {String} */\r\n\t\tlet appName = this._scope.appName;\r\n\t\tlet appVersion = \"0.1\";\r\n\t\t/** @type {String} */\r\n\t\tlet appDescr = this._scope.appDescr;\r\n\t\t/** @type {Array.<Documa.distribution....
[ "0.606955", "0.580621", "0.5721195", "0.5698765", "0.56455404", "0.55635566", "0.55582714", "0.5493964", "0.54583776", "0.53653324", "0.5343056", "0.53381246", "0.5231919", "0.5204825", "0.51929915", "0.51377106", "0.5128904", "0.5089001", "0.50871426", "0.50396526", "0.50218...
0.6238381
0
Construct proper formats and save the courses to the database
function saveCourseInformation(data) { if (data != null) { var course = {courseid: '', name: '', contents: '', studygoals: ''}; course.courseid = data.vak.cursusid; course.name = removeDiacritics(data.vak.langenaamEN); var info = data.vak.extraUnsupportedInfo.vakUnsupportedInfoVelden; info.forEach(function ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Output() {\n \n\t/**\n\t * Create table statements\n\t */\n\tthis.beforeData = function() {\n\t\treturn \"CREATE TABLE Courses (crn INTEGER(5), subject VARCHAR(10), course INTEGER(4), section VARCHAR(10), title VARCHAR(100), capacity INTEGER(3), registered INTEGER(3), instructor VARCHAR(100), location VAR...
[ "0.63369447", "0.6280031", "0.60680217", "0.6061265", "0.6035195", "0.59821725", "0.59681624", "0.5904919", "0.58945924", "0.58610696", "0.58398896", "0.582397", "0.5792875", "0.57707703", "0.5764784", "0.5750815", "0.5729109", "0.5687748", "0.5664319", "0.56587523", "0.56488...
0.6887243
0
Loops through all studies found by the TU Delft API and find the course IDs of all studies
function extractCourseIds(data) { var opleidingen = data.getOpleidingenByFacultyAndYearResponse.opleiding; opleidingen.forEach(function(opleiding) { studieprogrammaboom = opleiding.studieprogrammaboom; findStudieprogrammas(studieprogrammaboom); }); findVakken(studieprogrammas); vakken.forEach(function(c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCourseEfts(id,courses) {\n for(var i=0;i!=courses.length;++i) {\n \tvar course_id = courses[i].id;\n \tif(course_id == id) { \n \t return courses[i].expected; \n \t}\n }\n return 0;\n}", "function getCourses(indata) {\n\n var courseArray = [];\n if (!_.isUndefine...
[ "0.549323", "0.548269", "0.54817384", "0.547625", "0.539994", "0.53902245", "0.53897166", "0.5356653", "0.5336167", "0.53016543", "0.52192706", "0.51931036", "0.5184406", "0.5140033", "0.5127729", "0.51004416", "0.5086058", "0.50853515", "0.5078817", "0.50747406", "0.50741506...
0.6558839
0
Given a studieprogrammaboom, find all underlying studieprogrammas and save them in the studieprogrammas array
function findStudieprogrammas(studieprogrammaboom) { if (studieprogrammaboom != null) { if (Array.isArray(studieprogrammaboom.studieprogramma)) { studieprogrammaboom.studieprogramma.forEach(function(studieprogramma) { studieprogrammas[a] = studieprogramma; a++; if (studieprogramma.studieprogrammaboom ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findVakken(studieprogrammas) {\n\tstudieprogrammas.forEach(function(studieprogramma) {\n\t\tif (studieprogramma.vak != null) {\n\t\t\tif (Array.isArray(studieprogramma.vak)) {\n\t\t\t\tstudieprogramma.vak.forEach(function(vak) {\n\t\t\t\t\tvakken[i] = vak.kortenaamNL;\n\t\t\t\t\ti++;\n\t\t\t\t});\n\t\t\t}...
[ "0.57662386", "0.5504329", "0.53805834", "0.5289846", "0.52659893", "0.52180046", "0.5209994", "0.51518", "0.5136159", "0.5111815", "0.5093301", "0.5077683", "0.5030184", "0.5025388", "0.50123584", "0.49994218", "0.49878564", "0.49747518", "0.49685192", "0.4888012", "0.488702...
0.7997378
0
Generates a call to the API of the TU Delft and returns the buffer as an argument to the callback
function callTuAPI(spec_path, callback) { var hostname = "api.tudelft.nl"; var base_path = "/v0"; var buffer = ""; console.log("Request to TU Delft API with URL: " + hostname+base_path+spec_path); var request = https.get({hostname: hostname, path: base_path+spec_path, keepAlive: true}, function (response) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_BeginDataRequestFunction(pRequest,pResponse,fNext){return fNext();}", "unsafeGet(command: WsCommand, params: CloudVisionParams, callback: RawNotifCallback): string {\n const token: string = makeToken(command, params);\n // since this is of type request/response, we don't need\n // to listen to events a...
[ "0.5647855", "0.5613443", "0.5454032", "0.5361135", "0.5327935", "0.5246567", "0.52375895", "0.5218024", "0.5185121", "0.51690066", "0.5166408", "0.5120009", "0.50624686", "0.5052624", "0.5040501", "0.5037589", "0.5025159", "0.499135", "0.49703002", "0.49510694", "0.4939635",...
0.65467584
0
returns the number of students in the class07Students array
function getNumberOfStudents(class07Students) { const arrayLength = class07Students.length; return arrayLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNumberOfStudents() {\n return class07Students.length;\n}", "function getNumberOfStudents() {\n return class07Students.length;\n}", "function getTotalStudents(students) {\n return students.length;\n}", "function litStudents() {\n return classrooms[0].students.length + classrooms[2].students...
[ "0.86109126", "0.854054", "0.7511625", "0.72094786", "0.7026711", "0.667575", "0.6617685", "0.6504748", "0.64142036", "0.638669", "0.63739574", "0.62656546", "0.6259055", "0.62465173", "0.6185242", "0.6171251", "0.6157146", "0.6113172", "0.60736257", "0.6051775", "0.60224956"...
0.89956194
0
ConsignmentDAO is the class through which database query operations for the table 'consignment' are executing.
function ConsignmentDAO() { /** * Insert a new consignment to database * @param {array} speed - Array of fields of the new consignment. * @param {function} callback - Function will be executed after request from the database. */ this.insertConsignment = function (speed, callback) { var cons = [speed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "loadConsignmentTracking(orderCode, consignmentCode) {\r\n this.userIdService.invokeWithUserId((userId) => {\r\n this.store.dispatch(new LoadConsignmentTracking({\r\n userId,\r\n orderCode,\r\n consignmentCode,\r\n }));\r\n });\r\n ...
[ "0.4588309", "0.4519622", "0.44494668", "0.44185624", "0.43440336", "0.43242788", "0.4299061", "0.42901096", "0.4287741", "0.42639422", "0.42597365", "0.4228513", "0.42143264", "0.41571668", "0.41317225", "0.41023952", "0.40984112", "0.4079363", "0.40537393", "0.40514374", "0...
0.75166875
0
register an event handler on the document for any mousedowns. If it occurs on a menu div, we do nothing. if it is NOT on a menu div, we close all menus.
function handleMouseDownEvent(e){ if (!e) e = event; //var targetId = getTargetId(e); //if (!targetId || !divIndex[targetId]){ closeOpenMenus(); //} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onClickDocument(event) {\n\t\tthis.hideMenu();\n\t\tevent.stopPropagation();\n\t}", "function documentMouseUpHandler( event ) {\r\n\t\tmouseIsDown = false;\r\n\t}", "function closeHandler(cal) {\r\n cal.hide(); // hide the calendar\r\n\r\n // don't check mousedown on document anymore (...
[ "0.6383654", "0.6335079", "0.6296957", "0.6292616", "0.6289146", "0.6288116", "0.6284021", "0.6249325", "0.6226943", "0.6114885", "0.6075803", "0.6070739", "0.6052028", "0.6027008", "0.6011999", "0.60113025", "0.6003308", "0.59575564", "0.5932368", "0.59211695", "0.59193516",...
0.68106675
0
Promotes current node to a sibling of it's parent.
function promote_current_node(){ // check if the current node is the root or a child of the root if (is_root(get_current_node()) || is_root(get_current_node().parent().parent().parent())) { alert(CANT_MOVE_NODE_FURTHER); return -1; } $.jsonRPC.request('promote_current_no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function callback_promote_current_node() {\n // Move through <li>, <ul> to parent's <li>\n var parent_container_node = get_current_node().parent().parent().parent()\n move_current_node_to_neighbour(parent_container_node, \"after\")\n}", "function sibling(parent, index, includeWhiteSpace) {\n var siblings =...
[ "0.7068474", "0.59898067", "0.598364", "0.59737307", "0.59737307", "0.5948361", "0.5946562", "0.5926349", "0.58923244", "0.5766272", "0.57312196", "0.5726034", "0.5709832", "0.5665683", "0.56296706", "0.5582494", "0.55785114", "0.55757374", "0.5530265", "0.548164", "0.5475205...
0.6439831
1
Move node up at the same level
function move_current_node_up(){ // Check if there are any nodes before the current one on the same level if (get_current_node().parent().prev().length == 0) { alert(CANT_MOVE_NODE_FURTHER); } $.jsonRPC.request('move_current_node_up', [get_package_id()], { success: callback_move_current_node_up, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function callback_move_current_node_up() {\n var neighbour_node = get_current_node().parent().prev();\n move_current_node_to_neighbour(neighbour_node, \"before\")\n}", "moveUp(){\n\t\tlet index = this.parent.allMyChildren.findIndex(x => x.id == this.id)\n\t\tif (index !== 0){\n\t\t\tvar temp = this.parent.allM...
[ "0.81840795", "0.7533204", "0.71002674", "0.7023227", "0.7016446", "0.6952687", "0.69251215", "0.67771906", "0.67148083", "0.67118925", "0.66973174", "0.6692669", "0.66442114", "0.6631915", "0.66234285", "0.6620111", "0.6616779", "0.6593475", "0.65931565", "0.6543297", "0.654...
0.7877274
1
Move current node down at the same level
function move_current_node_down() { if (get_current_node().parent().next().length == 0) { alert(CANT_MOVE_NODE_FURTHER); return -1; } $.jsonRPC.request('move_current_node_down', [get_package_id()], { success: function(results) { if (results.result.moved != '1'){ alert(NODE_WAN_NOT_MOVED)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function callback_move_current_node_down() {\n var neighbour_node = get_current_node().parent().next();\n move_current_node_to_neighbour(neighbour_node, \"after\");\n}", "function callback_move_current_node_up() {\n var neighbour_node = get_current_node().parent().prev();\n move_current_node_to_neighbour(nei...
[ "0.82212573", "0.7555342", "0.74955684", "0.7241806", "0.7094729", "0.67378163", "0.66831154", "0.66611725", "0.6647835", "0.66443187", "0.6596507", "0.65704316", "0.65486574", "0.65194464", "0.6463908", "0.64529246", "0.6410898", "0.64095634", "0.63861954", "0.6360901", "0.6...
0.782113
1
Handles outline_pane selection event. Calls package.change_current_node via rpc.
function handle_select_node(event, data) { var node = get_current_node(); $.jsonRPC.request('change_current_node', [get_package_id(), $(node).attr("nodeId")], { success: function(results) { set_current_node(node); } }); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function select() {\n circleObj.fill(\"green\");\n circleObj.stroke(\"#003300\");\n deleteObj.visible(true);\n\n // Pass this node off to the detail panel\n leftDetailWorkspace.show(findNode(circleObj));\n }", "function zoomToSelection () {\n if(selected_nodes)\n z...
[ "0.59245604", "0.5827253", "0.5781132", "0.57272404", "0.5649873", "0.560772", "0.55871266", "0.5552903", "0.54565805", "0.54449576", "0.54441667", "0.543205", "0.54243183", "0.5415878", "0.54091156", "0.53942585", "0.5341754", "0.5323195", "0.5300932", "0.52704716", "0.52500...
0.61308753
0
handle renamed node event. Calls package.rename_node over rpc.
function handle_renamed_current_node(e, data){ var new_title = data.rslt.name; $.jsonRPC.request('rename_current_node', [get_package_id(), new_title], { success: function(results){ var server_title = "" if ("title" in results.result){ server_title = results.result.title; reload_autho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renameNode(nodeName) {\n\n\t\t\t\t\t\tif (nodeName !== deviceData.givenName.value) {\n\n\t\t\t\t\t\t\t// do something\n\t\t\t\t\t\t\tdeviceData.givenName.value = nodeName && nodeName !== '' && !!nodeName? nodeName : deviceData.givenName.value;\n\n\t\t\t\t\t\t\t// console output\n\t\t\t\t\t\t\tconsole.log(...
[ "0.74103993", "0.7032478", "0.67627144", "0.64902544", "0.63395923", "0.58868414", "0.58162194", "0.57932776", "0.57307506", "0.57193774", "0.5718807", "0.5676582", "0.56118387", "0.55833304", "0.5579792", "0.55469626", "0.55343485", "0.5522543", "0.55173016", "0.54703194", "...
0.78587735
0
Appends a child node with name and _exe_nodeid to the currently selected node
function callback_add_child_node(nodeid, title) { var current_li = get_current_node().parent(); var new_node = {'data' : {'title' : title, 'attr': {'id' : 'node' + nodeid, 'nodeid' : nodeid}}} get_outline_pane().jstree("create_node",current_li, "last", new_node); get_outline_pane().jstree("open...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_child_node() {\n \n $.jsonRPC.request('add_child_node', [get_package_id()], {\n success: function(results) {\n callback_add_child_node(results.result.id, results.result.title);\n }\n })\n}", "function createChild(e){\n scene.addChildAt(instantiate(e), i);\n scene.getChildAt(i).id...
[ "0.65095663", "0.6005913", "0.5880355", "0.58495736", "0.58495736", "0.5848089", "0.58268577", "0.57363296", "0.5735092", "0.5714346", "0.5700699", "0.56931925", "0.569129", "0.56877875", "0.5667634", "0.56571525", "0.5623608", "0.56090873", "0.5597564", "0.55895776", "0.5583...
0.6747986
0
Delete the currently selected node
function callback_delete_current_node() { var currentNode = get_current_node(); // parent ul get_outline_pane().jstree("delete_node", currentNode); updateTitle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeNode() {\n const node = this.srPointer.querySelector('.selected');\n node.firstElementChild.remove();\n\n //\n }", "function deleteNode() {\n deselectNode();\n selectedNode.removeEventListener(\"click\", selectNode.eventRef);\n selectedNode.remove();\n foodArray.splice(selected...
[ "0.72806215", "0.71444017", "0.70230794", "0.6984894", "0.6889108", "0.68725836", "0.6806362", "0.67732984", "0.6696157", "0.6663319", "0.66038805", "0.6560973", "0.65530235", "0.65321046", "0.65151495", "0.65051925", "0.64652914", "0.64449704", "0.64427173", "0.64404535", "0...
0.77193016
0
Move current node after the next
function callback_move_current_node_down() { var neighbour_node = get_current_node().parent().next(); move_current_node_to_neighbour(neighbour_node, "after"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "moveAfterLast() {\n const last = this.parent.childNodes[this.parent.childElementCount - 1];\n this.fire_(Events.LEAVE);\n this.parent.insertBefore(this.el, last.nextSibling);\n this.fire_(Events.ENTER);\n }", "advance() {\n console.log(this.currNode.next.element);\n this.currNode = thi...
[ "0.7236053", "0.711741", "0.6768017", "0.67632735", "0.67099905", "0.6659113", "0.6590122", "0.65728307", "0.65587634", "0.6556928", "0.6489272", "0.6475552", "0.6466675", "0.6428261", "0.64106876", "0.6404292", "0.6345903", "0.6339445", "0.6314092", "0.6304199", "0.62957454"...
0.7211362
1
places the current node to position relatively to neighbour
function move_current_node_to_neighbour(neighbour_node, position) { var current_node = get_current_node(); get_outline_pane().jstree("move_node", current_node, neighbour_node, position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function callback_move_current_node_up() {\n var neighbour_node = get_current_node().parent().prev();\n move_current_node_to_neighbour(neighbour_node, \"before\")\n}", "function moveCurrentNodeToCursor() {\n // If the cursor does not overlap any other node, move the current node\n // to its location.\n ...
[ "0.7025945", "0.6765187", "0.6643487", "0.6397195", "0.63611263", "0.6351295", "0.6327309", "0.6312518", "0.6274752", "0.6256783", "0.62101394", "0.6200529", "0.61677426", "0.6157319", "0.608435", "0.6065469", "0.605874", "0.59954923", "0.5994719", "0.5979249", "0.5977658", ...
0.728409
0
called to synchronize current_node attribute of outline_pane with currently selected node. Refreshes authoring
function set_current_node(node) { get_outline_pane().attr('current_node', get_current_node().attr('nodeid')); updateTitle(); reload_authoring(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sync_node_selection_view() {\n\t\t\t\tupdate_selected_aroma_text();\n\t\t\t\tsvg.selectAll(\"path\")\n\t\t\t\t\t.style(\"opacity\", function(d) {\n\t\t\t\t\t\tif (d.selected || selected_aroma_ids.length === 0) {\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn 0.2\n\t\t\t\t\t}) \n\t\t\t}", ...
[ "0.5688913", "0.55503416", "0.55499107", "0.5526997", "0.5213821", "0.5078681", "0.5018014", "0.50161946", "0.50005776", "0.49690774", "0.49024078", "0.48969814", "0.4864641", "0.48428133", "0.48298332", "0.48134583", "0.47923955", "0.47849092", "0.4765531", "0.47593942", "0....
0.68957096
0
Reloads content of authoring part. Convinience function, just calls reload from authoring iframe
function reload_authoring(){ if ("reload_authoring" in window.frames['authoringIFrame1']) { window.frames['authoringIFrame1'].reload_authoring(); } else { window.frames['authoringIFrame1'].location = 'authoring/'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "reload() {\n logger.info(`Reloading the conference using URL: ${this.originalURL}`);\n\n // Check if we are in an iframe and reload with the reload() utility\n // because replace() is not working on an iframe.\n if(window.self !== window.top) {\n reload();\n } else {\n...
[ "0.6355062", "0.6229208", "0.6229208", "0.6229208", "0.61174667", "0.6076599", "0.5983411", "0.597474", "0.59734195", "0.59538084", "0.5953075", "0.59018344", "0.5896808", "0.587231", "0.58410877", "0.58314717", "0.5813975", "0.5792163", "0.5787476", "0.5778391", "0.5776371",...
0.8220102
0
Call this to ask the server if the package is dirty 'ifDirty' will be evaled if the package is dirty
function checkDirty(ifClean, ifDirty) { $.jsonRPC('isPackageDirty', [get_package_id(),'',ifClean,ifDirty]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function respiteDirty()\n{\n\tchanged = true;\n}", "function checkModified(){\n if (configmodified || channelmodified) {\n id(\"savingmsg\").innerHTML = \"Save changes ?\";\n modalSaveYesNo = 1; // indicate modal is open \n this.toggleSaveModal = 1; // open modal dialog box\n retu...
[ "0.5897807", "0.58883893", "0.57832193", "0.5745708", "0.5743508", "0.5586874", "0.5582981", "0.5582315", "0.55109715", "0.54969907", "0.5467527", "0.5411904", "0.5405286", "0.5387918", "0.5369043", "0.53641045", "0.5316029", "0.53070045", "0.52814144", "0.5209592", "0.516924...
0.8359948
0
This is called by the server to ask the user if they want to save their package before changing filenew/fileopen 'onProceed' is a string that is evaluated after the package has been saved or the user has chosen not to save the package, but not if user cancels
function askSave(onProceed) { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") var promptClass = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] var promptService = promptClass.getService(Components.interfaces.nsIPromptService) var flags = promptService.BUTTON_TITLE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fileSave2(filename, onDone) {\n if (filename) {\n saveWorkInProgress();\n // If the package has been previously saved/loaded\n // Just save it over the old file\n if (onDone) {\n $.jsonRPC('savePackage', [get_package_id(),'','',onDone]);\n } else {\n ...
[ "0.70774823", "0.69895184", "0.656372", "0.62985", "0.62106603", "0.6126926", "0.60502386", "0.599729", "0.5916006", "0.57971877", "0.5770969", "0.57295775", "0.57204324", "0.5688081", "0.5665261", "0.5649083", "0.56324947", "0.56073135", "0.55960137", "0.55537766", "0.553429...
0.80426437
0
gets editors width in pixel and sets its width accordingly
function setEditorsWidth() { var width = prompt("Enter editor's new width. 0 or empty to set it to 100%"); $.jsonRPC('setEditorsWidth', [get_package_id(),'',width]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set pixelWidth(value) {}", "static set width(value) { this._updateDimen(\"_width\", value); }", "function set_width(){\n\t\tvar width = $(\"#canvas_holder\").width();\n\t\tcanvas.width = width;\n\t}", "setEditorSize() {\n const { isMobile } = this.props;\n let size = 250;\n\n if (process.browser) {\...
[ "0.6898924", "0.6857003", "0.6781914", "0.67690337", "0.66785526", "0.6665183", "0.6648624", "0.66272044", "0.66272044", "0.65729976", "0.65354335", "0.652137", "0.6513258", "0.65005594", "0.6499577", "0.64987516", "0.64827687", "0.64571357", "0.6436025", "0.64280075", "0.642...
0.7780475
0
Clear recent files menu
function fileRecentClear() { $.jsonRPC('clearRecent', [get_package_id(),'']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetUI () {\n\n files = [];\n\n fileLabel.innerHTML = 'No AudioMoth T.WAV files selected.';\n\n expandButton.disabled = true;\n\n ui.updateButtonText();\n updateOverviewPanel();\n\n}", "function deleteRecent ()\n\t{\n\t\t$('#bm-recent-container').html(\"\");\n\t}", "function clearFiles...
[ "0.6312381", "0.63007545", "0.6244296", "0.6172321", "0.6137562", "0.59831065", "0.59827083", "0.59448814", "0.5916192", "0.5889966", "0.58879036", "0.58200836", "0.5783536", "0.5778278", "0.5777756", "0.5766612", "0.5764692", "0.57299596", "0.572899", "0.56961024", "0.569056...
0.71415806
0
Called by the user when they want to save their package Also called by some java scripts.
function fileSave() { $.jsonRPC.request("save_data_package", [get_package_id()], undefined, undefined, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fileSave2(filename, onDone) {\n if (filename) {\n saveWorkInProgress();\n // If the package has been previously saved/loaded\n // Just save it over the old file\n if (onDone) {\n $.jsonRPC('savePackage', [get_package_id(),'','',onDone]);\n } else {\n ...
[ "0.73292774", "0.72281235", "0.7071721", "0.6509376", "0.6410709", "0.63662106", "0.6332211", "0.62526685", "0.623889", "0.621905", "0.6208969", "0.6172804", "0.61698776", "0.61535007", "0.61460733", "0.6107402", "0.61033875", "0.607111", "0.6070793", "0.6065434", "0.60562456...
0.7347192
0
Launch the iDevice Editor Window
function toolsEditor() { var features = "width=800,height=700,status=no,resizeable=yes,"+ "scrollbars=yes"; var editorWin = window.open("/editor", IDEVICE_EDITOR, features); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function launchCreatureEditor(){\n\n creatureEditorScreen.init();\n\n}//end launchCreatureEditor()", "_displayEditor() {\n this.editor.display();\n this.terminal.hide();\n }", "showEditor() {}", "function s(){Util.Open(AssetPaths.BUILDER_WINDOW,\"_blank\",{})}", "startEditorWindow () {\n ...
[ "0.65242904", "0.6241073", "0.61771584", "0.60147053", "0.59852684", "0.5872402", "0.5833048", "0.5821253", "0.5795472", "0.5784616", "0.57773924", "0.57397383", "0.5701756", "0.56748646", "0.56705713", "0.5661111", "0.5654694", "0.5654549", "0.56494415", "0.5637564", "0.5606...
0.7429826
0
launch brents crazy robot metadata editor and tag warehouse loads the metadata editor of course i don't really know what to do after here ... but you get the idea right ;) i just make em look purty!
function metadataEditor() { var features = "width=500,height=640,status=yes,resizeable=yes,scrollbars=yes"; var metadataWin = window.open ("/templates/metadata.xul", METADATA_EDITOR, features); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function metadataPage() {\n var metadataURL = \"https://deepseacoraldata.noaa.gov/library/dscrtp-database-metadata/\";\n var Win = open(metadataURL,\"MetadataMenu\",\"height=800,width=1000,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes\");\n Win.focus();\n }", "function...
[ "0.5896405", "0.58958405", "0.56616926", "0.56045854", "0.55947095", "0.55941457", "0.55902314", "0.55641735", "0.5554835", "0.55512893", "0.55312514", "0.5520315", "0.5499119", "0.54960364", "0.5489142", "0.5479951", "0.547421", "0.5462863", "0.54580927", "0.5430723", "0.543...
0.6813047
0
Appends an iDevice XH means that the func is actually called by the server over xmlhttp
function XHAddIdeviceListItem(ideviceId, ideviceTitle) { var list = document.getElementById('ideviceList'); // Create the new listitem var newListItem = document.createElement('listitem') newListItem.setAttribute("onclick", "submitLink('AddIdevice', "+ideviceId+", 1);") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function attachDevice(elm,devid)\n {\n //alert(\"attachDevice called with:\"+elm+\" and \"+devid);\n function processXml(elm, req)\n {\n if ( req instanceof Error )\r\n {\r\n msg = \"Server returned error: \"+req ;\r\n }\r\n else\r\n {\r\n ...
[ "0.63436466", "0.57522273", "0.55622596", "0.55308205", "0.5485166", "0.54339075", "0.54137623", "0.5369981", "0.5369058", "0.53657436", "0.53584415", "0.531701", "0.5276656", "0.52614033", "0.5241293", "0.522411", "0.52017784", "0.51453227", "0.5142906", "0.5117259", "0.5091...
0.5942804
1
Creates the text editor model with the provided value, optional preferred mode (can be comma separated for multiple values) and optional resource URL.
createTextEditorModel(value, resource, preferredMode) { const firstLineText = this.getFirstLineText(value); const languageSelection = this.getOrCreateMode(resource, this.modeService, preferredMode, firstLineText); return this.doCreateTextEditorModel(value, languageSelection, resource...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createModel(value, language, uri) {\n return standaloneCodeEditor_1.createTextModel(standaloneServices_1.StaticServices.modelService.get(), standaloneServices_1.StaticServices.modeService.get(), value, language, uri);\n }", "function createModel(value, language, uri) {\n value = value || ''...
[ "0.67382056", "0.613892", "0.5973033", "0.54773635", "0.5395043", "0.5384109", "0.53077435", "0.5303608", "0.5298637", "0.5298637", "0.5295355", "0.52853346", "0.5242062", "0.5228645", "0.51627743", "0.5133414", "0.50990444", "0.5067236", "0.5050864", "0.50280815", "0.5028081...
0.7861231
0