query_id
stringlengths
32
32
query
stringlengths
7
29.6k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
72b11683e80bf58765f462ba0539a628
function when DEL button is pressed to go back one number
[ { "docid": "92000ea8b2576ccff65149ae2d6798d8", "score": "0.0", "text": "function backspace(){\n var b = a.value;\n var bLength = b.length-1;\n a.value = b.substring(0,bLength); \n}", "title": "" } ]
[ { "docid": "acbb8256adc0806ce70fcb3c66e80532", "score": "0.68252367", "text": "deleteNumber () {\n const newValue = this.data.currentValue.slice(0, -1);\n if (newValue === '') {\n this.blinkDisplay();\n this.clearCurrentValue();\n } else {\n this.data.currentValue = newValue;\n ...
00057ec89ebc9e6d1c6c06002c43e254
Submit feedback to database
[ { "docid": "1ab9d4285c6e5d26972d9cbc548f50ab", "score": "0.6419733", "text": "function submitFeedback(){\n \n var feedbackVal = document.getElementById(\"feedbackInput\").value;\n \n db.collection(\"feedback\").doc().set({\n Feedback: feedbackVal,\n CharName: character,\n ...
[ { "docid": "6a73ad9d15158ff481b0d471ba4f0b56", "score": "0.7202978", "text": "function myLoansSubmitFeedback() {\n \n // TO DO\n // submit the current feedback to the db\n \n // for now I will just go back to the menu\n clearNonMenu();\n \n}", "title": "" }, { "docid": "...
ad7187815e5462aac697b6e2d3c59f9b
! ========================================================= ordena los comentarios que nos llegan =========================================================
[ { "docid": "7b7132f78ac704c5e5702bef06406450", "score": "0.0", "text": "sortComments(array) {\n var aux = array;\n\n for (let y = 0; y <= array.length - 2; y++) {\n for (let i = 0; i <= array.length - 2; i++) {\n if (array[i].comment_created_at < array[i + 1].comment_created_at) {\n ...
[ { "docid": "c1e001e8a19ecaecf64f13136789b749", "score": "0.64724916", "text": "function preencheDados() {\n\n}", "title": "" }, { "docid": "7e49b2e18d6a39ca4b5db9af3ba2dfef", "score": "0.6465671", "text": "function continuarColas() {\n colasMultinivel = [] // vacia el array de col...
aec0a8afbbe9bbada20df5810c8558f9
Show and Hide the Menu
[ { "docid": "e8fca53d1aed5577371b5e21d1ff44cc", "score": "0.0", "text": "function showhidemenu() {\r\n let mn = document.querySelector('.navbar-nav')\r\n if (mn.style.display === 'flex') {\r\n mn.style.display = 'none';\r\n }\r\n else {\r\n mn.style.display = 'flex';\r\n }\r\...
[ { "docid": "6149c9a6de77de436e29511fae397bb7", "score": "0.78727525", "text": "function toggleMenu() {\r\n //open menu if closed\r\n if (!showMenu) {\r\n displayMenu();\r\n //close menu if open\r\n } else {\r\n closeMenu();\r\n }\r\n }", "title": "" }, { "docid": ...
cae4171d98d8271d22f8fd1249793c5d
List of all purchases from the verified receipts.
[ { "docid": "9d34ac2f30f7f82ce4b5307138c6d96f", "score": "0.72560835", "text": "get verifiedPurchases() {\n return CdvPurchase.Internal.VerifiedReceipts.getVerifiedPurchases(this.verifiedReceipts);\n }", "title": "" } ]
[ { "docid": "aa814037bfe6fc4bbdddd8ef4a888bbc", "score": "0.6236899", "text": "getPurchases() {\n return new Promise(resolve => {\n this.log.debug('getPurchases');\n const success = () => {\n this.log.debug('getPurchases success'...
8a6de32025ba44d2b64249a9214c7dee
Create the Model Class
[ { "docid": "7cf41c5e30166c65453f5c20121ceb01", "score": "0.0", "text": "function ExchangeRates(defaultValues){\n\t\tvar privateState = {};\n\t\t\tprivateState.currency = defaultValues?(defaultValues[\"currency\"]?defaultValues[\"currency\"]:null):null;\n\t\t\tprivateState.errmsg = defaultValues?(default...
[ { "docid": "51c5108f9931bfbfdf6484f70644c74d", "score": "0.7571185", "text": "function Model() {}", "title": "" }, { "docid": "109af4b465b085caa5e951ddfbb787c0", "score": "0.6950639", "text": "createModels() {\n this.Question = this.db.model('Question', require('../../schemas/ques...
336c43a9c8e53f33c2883d5fb6a6ee51
helper for all partial builder queries sets format and checks field and operator correctness
[ { "docid": "94076305f8e2b8313e8b274e85949eec", "score": "0.6488128", "text": "function buildPartialQuery(field, value, operator) {\n if (/*inObject(con.allFields, field) && */inObject(con.operators, operator)) {\n return field + '+' + operator + '+' + value;\n }\n return \"\";\n}", "...
[ { "docid": "2f6df04ac6bfd781d9e0209788be39cf", "score": "0.63107497", "text": "buildQueryStrings() {\n this.formatDefaultFileQuery();\n this.formatDefaultAnalysisQuery();\n this.formatProcessedQuery();\n this.formatSelectionsQuery();\n }", "title": "" }, { "doc...
b89fef2693790b205a90bd631841c869
flow is ready lifecycle method
[ { "docid": "e39b228c9a66d3c7e5547326c8b6c632", "score": "0.58628935", "text": "_FBPReady() {\n super._FBPReady();\n // this._FBPTraceWires()\n }", "title": "" } ]
[ { "docid": "0b9b64afbc55efee8163443235f43d22", "score": "0.69801646", "text": "whenReady() {\n //\n }", "title": "" }, { "docid": "a8c96fa4aaf9c6589ea8112b3916089a", "score": "0.69204617", "text": "ready() {\n this.performAction('ready');\n }", "title": ...
97e54c7eb59446ad546f0b6f4236b07b
function that null score boards
[ { "docid": "bd118483034277d5d0ec970690ad5d4c", "score": "0.69201183", "text": "function nullScore() {\r\n for (let i = 0; i < scorePlr.length; i++) {\r\n scorePlr[i].textContent = score[i];\r\n }\r\n}", "title": "" } ]
[ { "docid": "5ddfe90c98571e1960e47b2f60b6cfad", "score": "0.67377245", "text": "function scoreReset() {\n \t\tself.game[0].player1Score = 0;\n \t\tself.game[0].player2Score = 0;\n \t\tself.game[0].turn = 0;\n \t\tself.game[0].winner = false;\n \t\tself.game[0].message = \"\";\n \t\tself.game.$save(self.g...
183a95c6d88335bb48959d2e69927241
Maps an error Code from GRPC status code number, like 0, 1, or 14. These are not the same as HTTP status codes.
[ { "docid": "c5ff6065bfbedb1f1fd6c43909a28dbb", "score": "0.7064752", "text": "function mapCodeFromRpcCode(code) {\n if (code === undefined) {\n // This shouldn't normally happen, but in certain error cases (like trying\n // to send invalid proto messages) we may get an error with no GRP...
[ { "docid": "4474e79a126927bab3f89bd00af6d01e", "score": "0.76428276", "text": "function mapCodeFromHttpResponseErrorStatus(status) {\r\n var serverError = status.toLowerCase().replace('_', '-');\r\n return Object.values(Code).indexOf(serverError) >= 0\r\n ? serverError\r\n : Code.UNK...
8911f1d56d0e90443eaa905962a99380
COMPARE 2 TURNS AND CHECK IF THEY ARE THE SAME OR NOT
[ { "docid": "28334c971bac352110966e9599b2d75c", "score": "0.0", "text": "isPrevious(turn) {\n return JSON.stringify(JSON.stringify(Array.from(this.stateAfter))) === JSON.stringify(JSON.stringify(Array.from(turn.stateBefore)))\n }", "title": "" } ]
[ { "docid": "18f998a9f001080399e0cf8f094c834d", "score": "0.6982244", "text": "function Combat_attaquePossible (Territoire1,Territoire2) {\r\n var voisin = Combat_estVoisin(Territoire1,Territoire2) ;\r\n var assezArmees = (Territoire1.army > 1) ;\r\n var voisinsDifferents = (Territoire1.propriet...
5288e0a659edb54bab1b9b65576cbdd6
A public higherorder component to access the imperative API
[ { "docid": "ceb09c62a01165e6f6a02e9df982d5a0", "score": "0.0", "text": "function withRouter(Component) {\n var displayName = \"withRouter(\" + (Component.displayName || Component.name) + \")\";\n\n var C = function C(props) {\n var wrappedComponentRef = props.wrappedComponentRef,\n remaining...
[ { "docid": "8c9628362acb97d6a620dabd71cf277d", "score": "0.5708796", "text": "function higherOrder ( fn ) {\n fn();\n}", "title": "" }, { "docid": "f18d61c1edaca5552c088646ee5e68c2", "score": "0.5516117", "text": "*[Symbol.iterator]() {\n yield* this.layers[Symbol.iterator]();\n ...
8030f80377b8bbea9d33ec1b0958be96
Gets the name of the current station and saves it as a preset. Called when the 'Save' button is pressed.
[ { "docid": "971cafbdbdb8e1f599371cebc9788788", "score": "0.7121461", "text": "function savePreset() {\n var freq = getFrequency();\n var preset = presets.get(freq);\n var name = preset ? preset['name'] : '';\n var display = band.toDisplayName(freq, true);\n AuxWindows.savePreset(freq, dis...
[ { "docid": "e0d0025a78892bc1f30453328f00a59c", "score": "0.7114521", "text": "function saveCurrentStation() {\n if (band) {\n selectedStations['currentBand'] = band.getName();\n selectedStations['bands'][band.getName()] = getFrequency();\n chrome.storage.local.set({'currentStation': se...
c6bdf587b2287215bc045c08ba5235ca
note I assume that the folder will always be lectureNN so we search for that
[ { "docid": "885bf2f4c76e8d78d6d5f68e075d7193", "score": "0.0", "text": "function goHome()\n{\n var url=window.location.href;\n var n = url.indexOf(\"lecture\");\n var home=url.substring(0,n)\n document.location.href=home;\n}", "title": "" } ]
[ { "docid": "1022d3826a42c503e74f4c412aa11175", "score": "0.6220207", "text": "function GetSubFoldersBook(theFolder) { \n var myFileList = theFolder.getFiles(); \n for (var i = 0; i < myFileList.length; i++) { \n var myFile = myFileList[i]; \n \n if(myFile.toStri...
71d4aea78ab3d883635f8c2e4838a62b
Adds transition animations for the given element
[ { "docid": "f0bb41ea7e32591bca37bc5c1aff9634", "score": "0.69724554", "text": "function addAnimation(element){\n var transition = 'all ' + options.scrollingSpeed + 'ms ' + options.easingcss3;\n\n removeClass(element, NO_TRANSITION);\n return css(element, {\n ...
[ { "docid": "036403167108f19482309d4e79ef827a", "score": "0.7264857", "text": "function animate(el) {\n // Set transition flag to true\n transition = true;\n\n // animate item on a newly added el\n // browser needs time to make element live\n // so we need a timeout of ...
62550405a04b1fa162fda150f60499d2
/ Finds the top empty row given a board and a column to place a piece. / If there is no empty row, returns 1, otherwise returns the index of / the row.
[ { "docid": "82d703472a463292402f137736960c43", "score": "0.8239225", "text": "function findEmptyRow(board, column) {\n let emptyRow = -1;\n for (let row = 0; row < board.length; row++) {\n if (board[row][column] == \"empty\") {\n emptyRow = row;\n }\n }\n return emptyRow;\n}", "title"...
[ { "docid": "95029ad9a89527ba99512cb23be63a57", "score": "0.755627", "text": "function findEmptySpot(col) {\n for (let row = ROWS - 1; row >= 0; row--) {\n if (!board[row][col]) {\n return row;\n }\n }\n return null;\n }", "title": "" }, { "docid": "692e7ea068398b5f...
4e6c576cf31a243df1bb9842812e006a
The SET operation adds a secret to the Azure Key Vault. If the named secret already exists, Azure Key Vault creates a new version of that secret. This operation requires the secrets/set permission.
[ { "docid": "9a1a45e96487f7f50ea80f6bb0b3d4da", "score": "0.71425885", "text": "setSecret(vaultBaseUrl, secretName, value, options) {\n return this.sendOperationRequest({ vaultBaseUrl, secretName, value, options }, setSecretOperationSpec);\n }", "title": "" } ]
[ { "docid": "fe66e1a50e485d267d52a4f7464d5306", "score": "0.70756185", "text": "setSecret(secretName, value, options = {}) {\n let unflattenedOptions = {};\n if (options) {\n const { enabled, notBefore, expiresOn: expires } = options, remainingOptions = tslib.__rest(options, [\"e...
9b63bb6a315f4aed55aa8b0cf41d9a59
Function to calculate percentage
[ { "docid": "509b0cd20d324d9b07316f79eaafb78c", "score": "0.7866968", "text": "function calculatePercentage( partialValue, totalValue ) {\n return ( 100 * partialValue ) / totalValue;\n}", "title": "" } ]
[ { "docid": "75778df6c3dfcbfbcf5ced200ec32169", "score": "0.7952932", "text": "function calculatePercentage (_value, _percentage){\n let calculation = (_value *_percentage) / 100 \n return console.log('the precentage is '+calculation+ \"%\") \n}", "title": "" }, { "docid": "1281683e255b5f82...
771e25db53794e6ad997f32c680f1bdd
Chapter 9 Library Search for the "Sweet Gwendoline" magazine
[ { "docid": "7c50c318bc61f1bced2b8297eeb19f0e", "score": "0.631865", "text": "function C009_Library_Search_SearchGwendoline() {\n\tif (C009_Library_Search_MagazineConfiscated) {\n\t\tC009_Library_Search_CurrentStage = 32;\n\t\tOverridenIntroText = GetText(\"NoMoreSweetGwendoline\");\n\t}\n}", "title"...
[ { "docid": "3f7c159084c2f552332d0acfa64fab0f", "score": "0.63814634", "text": "function WordSearch () {}", "title": "" }, { "docid": "8df409919033f37361db8f27f273ffcb", "score": "0.6253952", "text": "function search() {\n // extract all search terms\n getQtermsFromUrlQuery();\n...
bfedb895f1ebbb0b3b62ee34d4a324ca
builds an html element from todo object
[ { "docid": "159c3077a529c0a177eeff1af62031c8", "score": "0.75808066", "text": "function createTodoElement(todo) {\n const container = document.createElement(\"div\");\n const todoCheck = document.createElement(\"input\");\n const todoPriority = document.createElement(\"div\");\n const timeSt...
[ { "docid": "5000fc3af25f95173cc6b6bbf46ceccc", "score": "0.823906", "text": "function buildTodo(todo) {\n var todoHtml = '<div class=\"todo\" id=\"'+ todo.title +'\" ><p>' + todo.description\n + '</p>'\n + '<button class=\"delete-todo\">Delete</button></div>';\n\n return todoHtml;\n}", "...
1d49939f40553e1d34e815ed63b0eee3
Applies the [[Fill]] effect to a sprite, changing the color channels of all nontransparent pixels to match a given color
[ { "docid": "072b2b7957d9cf87083b83c60582bfac", "score": "0.6992056", "text": "fill(color) {\n this.addEffect(new _SpriteEffects__WEBPACK_IMPORTED_MODULE_0__[\"Fill\"](color));\n }", "title": "" } ]
[ { "docid": "a6e4c4ebafcfa4be9ce8053f6a47f1fa", "score": "0.6395863", "text": "fill(color) {\n this.addEffect(new Effects.Fill(color));\n }", "title": "" }, { "docid": "0c74ebc6ae20dc6da7d7cc91fa61424c", "score": "0.6358689", "text": "function fillBG() {\n ctx.fillStyle = '...
fab1d8160b4baed92aa03fdcaded1892
====================== Enabled Cipher Table ======================
[ { "docid": "80dd0f5fb105754e7bb67a4e4e8399be", "score": "0.0", "text": "function saveInitialCiphers() {\r\n\tif (cipherListSaved.length == 0) cipherListSaved = [...cipherList] // make a copy of initial ciphers to revert changes\r\n}", "title": "" } ]
[ { "docid": "424547976649e53a33eaa195c7101e11", "score": "0.6962106", "text": "function printKey() {\n console.log(cipher.key);\n var tableHtml = '<table class =\"table mt-5 mb-5\" >';\n for (var i = 0; i < 25; i = i + 5) {\n tableHtml += \"<tr>\";\n var row = cipher.key.substring(i, i + 5);\n ...
b72cd1b7cfdd23defafce63117091164
End squirrel code Check screen orientation
[ { "docid": "2d9fdb8323852eea025b44f46fa67310", "score": "0.66998523", "text": "function readDeviceOrientation() {\n if ( win.innerWidth > win.innerHeight ) {\n AG.env.isPortrait = false; // Landscape\n } else {\n AG.env.isPortrait = true; // Portrait\n }\n ...
[ { "docid": "52647fa6440a4b2c00cebe3b160e4e09", "score": "0.72427016", "text": "function checkOrientation() {\n\t$heightCon = ($(\"div#container\").height == screen.height) || ($(\"div#container\") == screen.width / 1.5);\n\t$widthCon = $(\"div#container\").width() == screen.width;\n\n\tif ($heightCon &&...
8065685fac1cd9d3397fe7435f9cd247
supports only 2.0style add(1, 's') or add(duration)
[ { "docid": "bfb50c271c6c146f95b73990f4fa7f52", "score": "0.0", "text": "function add$1 (input, value) {\n return addSubtract$1(this, input, value, 1);\n}", "title": "" } ]
[ { "docid": "d073cb06b83a1b452c9f1836ab51a70d", "score": "0.66241705", "text": "function durationValue(value)\n{\n return value + 's';\n}", "title": "" }, { "docid": "3655050a036db8b1fae22c8b27707517", "score": "0.6571986", "text": "AddSeconds() {\n\n }", "title": "" }, ...
13a41634861f3b8fa23f52b280f97efc
transition(currentRoot); Do the zoom animation, and set each parent block to take up as much space as it can proportionately
[ { "docid": "139cc1d43337606b18554c21382cc681", "score": "0.6413601", "text": "function transition(currentRoot) {\n\t\t\t\tif (_transitioning || !currentRoot) return;\n\t\t\t\t_transitioning = true;\n\n\n\t\t\t\t//call display again to transition to the next level\n\t\t\t\tvar depthContainerChildren = di...
[ { "docid": "58dbb6a87c1f400d2c7ba5355051a810", "score": "0.70188165", "text": "function zoom(root, p) {\n\t\t if (document.documentElement.__transition__) return;\n\t\t // Rescale outside angles to match the new layout.\n\t\t var enterArc,\n\t\t exitArc,\n\t\t outsideAngle = d3.sc...
55141b768c627fd296e96b8d7cc83449
Does our fallback bestguess model think this event signifies that composition has begun?
[ { "docid": "a391b8c785d27be3dd0807d2488177b0", "score": "0.56037205", "text": "function isFallbackCompositionStart(domEventName, nativeEvent) {\n return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE;\n }", "title": "" } ]
[ { "docid": "2ad2bb4998b4695a1b0b14863c6bf338", "score": "0.7298839", "text": "function onCompositionStart(e) {\n e.target.composing = true;\n}", "title": "" }, { "docid": "5cebd985e4cc33c25ced5e9873a5deb8", "score": "0.6573186", "text": "function CompositionEventInit() {\n}", "t...
0c97578a6eca108f7fb2bc6dacc178d6
This is needed if the LanguageProvider gets languages from compendiums, since they require the game state to be ready.
[ { "docid": "c5fbf349400798079f0183404df6a12f", "score": "0.0", "text": "get requiresReady() {\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "a50ab2149340e28bd787eecb592d602e", "score": "0.6962232", "text": "async getLanguages() {\n\t\tconst replaceLanguages = game.settings.get(\"polyglot\", \"replaceLanguages\");\n\t\tif (CONFIG[game.system.id.toUpperCase()]?.languages) {\n\t\t\tif (replaceLanguages)\n\t\t\t\tCONFIG[game.system.i...
96fb56f913d22b794164829dda9e7279
These helpers produce better VM code in JS engines due to their explicitness and function inlining.
[ { "docid": "6d9326a730b674391fb133fd2fa685c5", "score": "0.0", "text": "function isUndef(v) {\n return v === undefined || v === null;\n}", "title": "" } ]
[ { "docid": "987665d3235abb1714603841cc28a8d8", "score": "0.6424415", "text": "function __f_14() {\n \"use asm\";\n function __f_15() { return 0; }\n function __f_15() { return 137; } // redeclared function\n return {};\n}", "title": "" }, { "docid": "e5700dc3467dbfb744fb4da22682c77e", ...
66e12615e88435dc4b4020db36797dc0
Convert XYZ to LUV
[ { "docid": "4f622566a5d2db40ec655abbbb2c9ab5", "score": "0.8386028", "text": "static XYZtoLUV(xyz, normalizedInput = false, normalizedOutput = false) {\n let [x, y, z] = (normalizedInput) ? xyz.$normalize(false) : xyz;\n let u = (4 * x) / (x + (15 * y) + (3 * z));\n let v = (9 * y) ...
[ { "docid": "617baa28db2e910b47bfefb176c27c4e", "score": "0.7688969", "text": "static LUVtoXYZ(luv, normalizedInput = false, normalizedOutput = false) {\n let [l, u, v] = (normalizedInput) ? luv.$normalize(false) : luv;\n let y = (l + 16) / 116;\n let cubeY = y * y * y;\n y = ...
5354847ed03caa792963cba180128262
Initialize and add the map
[ { "docid": "7d8bbe772ade7c85f4cb0a496558784e", "score": "0.0", "text": "function initMap() {\n // The location of Uluru\n var uluru = {lat: -25.344, lng: 131.036};\n // The map, centered at Uluru\n var map = new google.maps.Map(\n document.getElementById('map'), {zoom: 4, center: ulur...
[ { "docid": "d8f276e143f9b283d1382aa53cac3bfe", "score": "0.7922108", "text": "function init() {\n initMap();\n }", "title": "" }, { "docid": "2b8984f261e579663eaa66f5cdfe5dc0", "score": "0.7824918", "text": "function initMap() {\n displayMap(0, 0, 2);\n }", "title...
64c6327c5937fc5a9c8dbb371fb716df
3b. Create a function that takes in the variable and returns the array with all the words capitalized. Expected output: ["Streetlamp", "Potato", "Teeth", "Conclusion", "Nephew", "Temperature", "Database"]
[ { "docid": "43acf0db4e645c9a93ccdab60260726d", "score": "0.7384858", "text": "function capitalLetter(array){\n let arrayUppercase = []\n for (let i=0; i < array.length; i++) {\n arrayUppercase.push(array[i].charAt(0).toUpperCase() + array[i].substr(1));\n }\n return arrayUppercase;\n}", ...
[ { "docid": "d13d8fdc8b20f6389eed533b288fd8b3", "score": "0.8002197", "text": "function capitalizedWords(arr) {\n\tlet result = [];\n\tif (arr.length === 0) {\n\t\treturn result;\n\t}\n\tresult.push(arr[0].toUpperCase());\n\treturn result.concat(capitalizedWords(arr.slice(1)));\n}", "title": "" }, ...
d9ddf50ef7ffd66a0d52574ce0c98496
If case matches one of each filter, push case number and case number tooltip to list of included columns
[ { "docid": "297d53855e8ee88110678a65d88fea59", "score": "0.5204095", "text": "function listFromResolution(values)\n{\t\n\tvar list = [0,1]; //Columns 0 and 1 are always included so there will always be enough to draw a graph\n\t\n\t//Iterate over all cases in CaseInfo\n\tfor (var caseNum in CaseInfo)\n\...
[ { "docid": "35b074ce1ed968720e5fb4cc21cc4bc9", "score": "0.55139685", "text": "applyFilters(inSummaries) {\n let summaries = JSON.parse(JSON.stringify(inSummaries));\n\n let filters = this.filterValue.join(\",\");\n\n let orgFilters = this.filterOrgValue.join(\",\");\n\n for (let isummary in...
5ce3d5bf6f0e33577109560a083ddbf3
Create a new object with selected properties. Also allows property renaming and transform functions.
[ { "docid": "3697b1282aab78eb08b3bbecd58ecfe3", "score": "0.59761137", "text": "function pick(obj, properties) {\n if (_typeof(obj) !== 'object') {\n return {};\n }\n\n return properties.reduce(function (newObj, prop, i) {\n if (typeof prop === 'function') {\n return newObj;\n }\n\n v...
[ { "docid": "0c45300bdfc42dbe730f774aa46b848b", "score": "0.59893465", "text": "function _transform(props, deprecated) {\n var shape = props.shape,\n container = props.container,\n multiple = props.multiple,\n filterBy = props.filterBy,\n overlay = props.overlay,\n s...
022422020b05ca854b3310bc135a5260
Sets selection bar width to be all visible elements + 20px on load and resize.
[ { "docid": "17e2f959b1f044e7d12f78bce38faa3a", "score": "0.0", "text": "function fixHeaderWidth() {\r\n var width;\r\n var slide = $('.selection-nav .scroll-fix');\r\n if (slide.length) {\r\n width = 20;\r\n $(slide[0]).children().not('.nav-hidden, .nav-unpublished').each(function...
[ { "docid": "97e24ba5047e121509076b4741630bc0", "score": "0.63265127", "text": "function setOptionsElementWidth() {\n optionsElement.style.width = getScreenSizeDelta() > 1.0000001 ? '150.4px' : '165px';\n}", "title": "" }, { "docid": "c7f50100c6463e54993bed78e4feb614", "score": "0.631263...
c5fc2f38243bf52d743214d7c29c016f
Config the localStorage backend, using options set in the config.
[ { "docid": "2870fcd48058da553a8d4c17991fd5e2", "score": "0.58252937", "text": "function _initStorage$2(options) {\n var self = this;\n var dbInfo = {};\n if (options) {\n for (var i in options) {\n dbInfo[i] = options[i];\n }\n }\n\n dbInfo.keyPrefix = dbInfo.name...
[ { "docid": "2e6b506bcde4d357b68bd0b733f61e5c", "score": "0.6889927", "text": "saveConfig() {\n localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(this.config));\n }", "title": "" }, { "docid": "a543de5f7ecc34a0b4dab213a6511dc3", "score": "0.66031283", "text": "loadConfig() {\...
9724625a49dbc72a6b38cdf99ab803e4
Gets the initial question and answer
[ { "docid": "7741f8f6d3f812cedd1f1254bfd4678f", "score": "0.0", "text": "function userInput(){\ninquirer.prompt([\n {\n name: \"question\",\n message: \"Please enter the full question with the answer: \"\n },\n {\n name: \"answer\",\n message: \"Please enter the answer(case s...
[ { "docid": "603a8bd5e77de98c7c132f3a6f6de644", "score": "0.6727693", "text": "function init() {\n return inquirer.prompt(questions);\n}", "title": "" }, { "docid": "c26fecf0542bb948d889bb8da1f43eba", "score": "0.6661947", "text": "getQuestion(){\n\t\treturn String(this.QA.q1) + \"...
227d9cb355a03229b633557550c5a74d
saveDiff(pcID, releaseID, diff, userID, connection, callback) saves the diff to the layout specified by (pcID, releaseID) and stores the ID of the user currently editing the pathway. Returns a promise unless a callback is provided to be executed
[ { "docid": "43df2d100a0ebe29419f0bbc82caf52d", "score": "0.8401892", "text": "function saveDiff(pcID, releaseID, diff, userID, connection, callback) {\n // Check if this is a new user submitting a layout and act accordingly.\n return handleUserInfo(pcID, releaseID, userID, connection).then(() => {\n ...
[ { "docid": "1d3a39bafa8c89e209f2576c1cd67db1", "score": "0.70302016", "text": "function submitDiff(pcID, releaseID, diff, userID) {\n return db.connect().then((connection) => {\n return diffSaver.saveDiff(pcID, releaseID, diff, userID, connection);\n }).catch((e) => {\n logger.error(e);\n });\n...
f6fa83ccaeeca5d74c695865d5d31049
1 2 3 4 5 6 7 8 9 10 11
[ { "docid": "0f08a4daafa8c5c4289cc3d2455f8f94", "score": "0.0", "text": "function jsonStringToDate(string) {\n var match;\n if (match = string.match(R_ISO8601_STR)) {\n var date = new Date(0),\n tzHour = 0,\n tzMin = 0,\n dateSetter = match[8] ? date.setUTCFullYear ...
[ { "docid": "a4b18405e3b042fdc56ca149d3f11975", "score": "0.64278847", "text": "function range(n) { \n var L=[]\n for (var i=0;i<n;i++) {\n L[i]=i+1\n }\n return L\n}", "title": "" }, { "docid": "2c48505fe5408d9437191b9bfb9a6a43", "score": "0.6419433", "text": "function range(i...
bc0770f2bed08df1335b23e616b68851
this is used for updating the progress bar
[ { "docid": "56850902c948927315488c58677b51f5", "score": "0.71564376", "text": "function updateProgIndicator(n) {\n var percentprogress = Math.round(n/($(\".tab\").length) * 100); \n var style = \"width: \" + percentprogress.toString() + \"%\"; \n $(\".progress-bar\").attr({\n \"style\": ...
[ { "docid": "db9e4abf2cb401c61aea20a82bea0d67", "score": "0.8411498", "text": "function updateProgressBar() {\n if (progress < 100) {\n progress = progress += updateVal; //13 calls\n $rootScope.$broadcast('loading-bar-updated', progress, map);\n }\n }", "title":...
d7408b3380e2761b070629a63207a854
changes value of lives on screen, when lives is equal to zero end game
[ { "docid": "af35e75bbd53081f5e132e05e86aa35f", "score": "0.7539447", "text": "function lose_life() {\n var lives_element = get_lives() - 1\n $(\".lives_value\").text(lives_element)\n\n if (lives_element === 0) {\n end_game()\n }\n}", "title": "" } ]
[ { "docid": "bcdeb31e7cf42d567c0a05baca279c9d", "score": "0.7597096", "text": "function livesCont(){\n document.getElementById('lives').innerHTML = lives; // displaying the lives to the canvas\n \n if(ball.y > canvas.height - ball.r){\n lives -= 1;\n console.log(\"Lives left:...
21bafb109cf4af13011bfdfde6f861a0
ajax function which makes api call to randomfamousquoteapi
[ { "docid": "9d3c79023c9be417127a751e72e0cd4d", "score": "0.6808332", "text": "function getRandomQuote(){\n let color = ['#F64747','#663399','#4183D7','#22313F','#9A12B3','#03A678'];\n let index=color[Math.floor(Math.random()*color.length)];\n /* Make ajax call here */\n $.ajax({\n url...
[ { "docid": "77ea05b7249af78cde0908e8b7ec55bb", "score": "0.7886693", "text": "function randomQuote() {\r\n $.ajax({\r\n url: \"http://api.forismatic.com/api/1.0/\",\r\n jsonp: \"jsonp\",\r\n dataType: \"jsonp\",\r\n data: {\r\n method: \"getQuote\",\...
a896806497ddf519c20763494f28aea0
Return the date in browser's local time zone. Without year.
[ { "docid": "27cf425a14f4dca90b988dfec895356e", "score": "0.6231553", "text": "function getDateString(d) {\n // The other option is to use d.toLocaleDateString()\n var localDate = d.toDateString();\n // Strip the last 4 digits of the year\n localDate = localDate.substr(0, localDate.length - 4);\n re...
[ { "docid": "da94ee48ee3a107753fbdc29176a251a", "score": "0.6837515", "text": "function getDate() { // 9210\n\t\treturn t.applyTimezone(date); // infuse the calendar's timezone ...
0333cf920475e107e3b3312e53346da4
Prepare the root picker element with all bindings.
[ { "docid": "fbb85ceebc827e690b3d0b73c5a0600e", "score": "0.76417446", "text": "function prepareElementRoot() {\n\n P.$root.\n\n on({\n\n // For iOS8.\n keydown: handleKeydownEvent,\n\n // When something within the root is focused, stop from ...
[ { "docid": "7ed6bb2f1490c1fa264b38c5f01420ae", "score": "0.7634063", "text": "function prepareElementRoot() {\n\n P.$root.on({\n\n // For iOS8.\n keydown: handleKeydownEvent,\n\n // When something within the root is focused, stop from bubbling\n // to the doc and remove ...
f03303c2d8505dcc75392bffdd55b86d
Merge a list of walmart products with this.products
[ { "docid": "2520aa171c8ff0a999758b80f5bc316f", "score": "0.68735516", "text": "addProducts(otherProducts) {\n this.products = this.products.concat(otherProducts);\n }", "title": "" } ]
[ { "docid": "834e685fddf3ae35db5c19b93d7ac1a8", "score": "0.69013935", "text": "function mergeProductData(products) {\n\n for (var i=0; i<products.length; i++) {\n var guid = products[i].productId;\n /*jshint -W083 */\n Object.keys(itemMapping[guid]).forEach(functi...
b2625aa83da73351e374ab108ba16905
Load image to browser and reload the maze
[ { "docid": "fbafe81650afc028aaf23da51d9548b8", "score": "0.71844655", "text": "function _loadImg(img) {\n let temp = new Image();\n temp.onload = function () {\n document.getElementById('img').src = img;\n doMaze();\n };\n temp.src = img;\n}", "title": "" } ]
[ { "docid": "59f7ba55a597e0c977cbe4a22c0860a9", "score": "0.7032885", "text": "function reload() {\n stop();\n\n // Place the image\n img = new Image();\n img.onload = imageReady;\n img.src = src;\n }", "title": "" }, { "docid": "a10f0daa6f94f54d37d2e78c94ece2b1", "score":...
89979e1f1833571614d5618f6f865f99
return a keyvalue argument passed tothe commandline (does not return singlevalue arguments) example: "myKey=myValue" will return, but "someValue" will not. if you need single value args, access process.argv directly.
[ { "docid": "f1fc5d6bf4122d9a32f72ae082fab7a3", "score": "0.7421369", "text": "function getCommandlineArg(key, valueIfNullOrEmpty) {\n let parsedArgs = exports.getCommandlineArgs();\n let result = parsedArgs[key];\n if (valueIfNullOrEmpty != null) {\n if (result == null || result.length =...
[ { "docid": "7dfc58959a5ed172754db4142e2d496c", "score": "0.78912294", "text": "function _getArgValue(key) {\n for (let i = 0; i < process.argv.length ; i++) {\n if (process.argv[i].startsWith(`--${key}=`)) {\n return process.argv[i].split('=')[1];\n }\n if (process.argv[i] === `--${key}`)...
8b3a9328c36fe20d739d4ce71934d8cb
oldstyle streams. Note that the pipe method (the only relevant part of this class) is overridden in the Readable class.
[ { "docid": "2a82c7e3776ade5fd6bc03092b9f50db", "score": "0.0", "text": "function Stream() {\n EE.call(this);\n}", "title": "" } ]
[ { "docid": "4c3037f28292871d9cef403b5ea78126", "score": "0.67981195", "text": "function PlainStream() {}", "title": "" }, { "docid": "09825a6dd47785f212e9a6cdcb54e23b", "score": "0.65313095", "text": "function createStream (data) {\n var rs = new Readable({ objectMode: true });\n r...
b94395a150d01dbf1f3e5ccec40b7231
Simple 2D JavaScript Vector Class Hacked from evanw's lightgl.js
[ { "docid": "979189473d4ca80efb03ae06bd5962f6", "score": "0.6315542", "text": "function Vector(x, y) {\n\tthis.x = x || 0;\n\tthis.y = y || 0;\n\tthis.limit = undefined;\n}", "title": "" } ]
[ { "docid": "6141569c1283a67e77c038dc1fae6b0e", "score": "0.7210479", "text": "create_vector() { return {x:0,y:0} }", "title": "" }, { "docid": "4d90e0cc3556aebd0c1a67eb290944de", "score": "0.7126741", "text": "function vec4() \r\n{\r\n this.v = [ 0, 0, 0, 1 ]\r\n}", "title": "...
6e6f2ee409f2d8034d22437fe8ac9eff
Initialize the TView (e.g. static data) for the active embedded view. Each embedded view block must create or retrieve its own TView. Otherwise, the embedded view's static data for a particular node would overwrite the static data for a node in the view above it with the same index (since it's in the same template).
[ { "docid": "caa79d9eb99196e4a8fced05c059c377", "score": "0.5436596", "text": "function getOrCreateEmbeddedTView(viewIndex, consts, vars, parent) {\n ngDevMode && assertNodeType(parent, 0 /* Container */);\n var containerTViews = parent.tViews;\n ngDevMode && assertDefined(containerTViews, 'TVie...
[ { "docid": "38a71e2e4bf967c25ec22e091853722d", "score": "0.63132197", "text": "_initializeViews()\n {\n this._layoutViewMaster = new LayoutViewMaster();\n }", "title": "" }, { "docid": "b4f258280481c0cf88196ebaf07abf34", "score": "0.6176723", "text": "initViews(){\n ...
eb1bda24efabe050237523b1c40512ca
Checks if a section (sect) takes place in the given semester (sem)
[ { "docid": "0932d1bafdd48959c180a7b0aceaef6d", "score": "0.86627704", "text": "function sectionIsInSemester(sect, sem) {\n return (sem.year == String(sect.year) &&\n sem.semester.toLowerCase() === sect.semester.toLowerCase());\n }", "title": "" } ]
[ { "docid": "0be84f039bc17260217262cef9fba6ca", "score": "0.59301907", "text": "function is_section_news(section){\r\n var list = ['rugby_espnnews', 'rugby_foxnews'];\r\n for(var i=0; i < list.length; ++i){\r\n if (list[i] == section){\r\n return true;\r\n }\r\n }\r\n ...
f60f0d50fbf9a2bd1c09165865b70aa2
(public) return + if this > a, if this < a, 0 if equal
[ { "docid": "2e54aa650df82fc9a442108796a55a3e", "score": "0.0", "text": "function bnCompareTo(a) {\n var r = this.s-a.s;\n if(r != 0) return r;\n var i = this.t;\n r = i-a.t;\n if(r != 0) return (this.s<0)?-r:r;\n while(--i >= 0) if((r=this.data[i]-a.data[i]) != 0) return r;\n return 0;\n}", "...
[ { "docid": "8a843129ee07f48b36f924c6fdfaccb8", "score": "0.67695665", "text": "ascend(a, b) {\n return a < b ? -1 : a > b ? 1 : 0;\n }", "title": "" }, { "docid": "408e7d2c814bc19821441221b6c70fea", "score": "0.67426413", "text": "function compare(a,b) {\n\t\treturn a > b ? 1 :\n...
6a624cc585632c1151eed760b918b05f
initializes the launch sequence
[ { "docid": "c92defa4f5617d29a971c61193763912", "score": "0.0", "text": "function init_launch_button() {\n //create launch button\n stage.removeChild(launch_button);\n launch_button = buttonGenerator(275, 40, 220, 60, 0xCC0000, 5, 0.3, 'images/launch.png', launch_activate);\n ...
[ { "docid": "4a44a36997d3ec4c4845d6c1689af78a", "score": "0.6483805", "text": "function init() {\n start()\n lastTime = Date.now();\n main();\n }", "title": "" }, { "docid": "73522a6526e69b6d0a01e7225f20cc64", "score": "0.6391165", "text": "function launch() {}", "title"...
337c93ff95ba05608cadf257e86e2af3
Currently: The order that these are listed in the transaction is critical: Suppresses events. Restores selection range. Future: Restore document/overflow scroll positions that were unintentionally modified via DOM insertions above the top viewport boundary. Implement/integrate with customized constraint based layout sy...
[ { "docid": "4d36b1c701d7c7c062e8cbd0ba9c2553", "score": "0.0", "text": "function ReactReconcileTransaction(forceHTML) {\n\t this.reinitializeTransaction();\n\t // Only server-side rendering really needs this option (see\n\t // `ReactServerRendering`), but server-side uses\n\t // `ReactServerRenderin...
[ { "docid": "c9c30b36c91f5d4831a0a3b2cdfb2300", "score": "0.63406384", "text": "function updateSize() { // 427\n\t\tmarkSizesDirty(); ...
e1b8609f1fe78c60d47ab433c0a18b40
`ReactInstanceMap` maintains a mapping from a public facing stateful instance (key) and the internal representation (value). This allows public methods to accept the user facing instance as an argument and map them back to internal methods. Note that this module is currently shared and assumed to be stateless. If this ...
[ { "docid": "aaadca4aa069312573b8dfa8e7428dc7", "score": "0.0", "text": "function get(key) {\n return key._reactInternalFiber;\n}", "title": "" } ]
[ { "docid": "b31253f4de3711aa2a879fe27580c8cc", "score": "0.5442913", "text": "function FMap() {\n _classCallCheck$3(this, FMap);\n }", "title": "" }, { "docid": "78c16fe227008aa9ed64dc43e87bba4a", "score": "0.52910364", "text": "function InvokeDefinitionMap() {\n this.ma...
f358076db3823ae48fa52a568edcbe6c
Constructor of the LevelButton class that inherits from GameObjectList and its task is to define the behaviour of the buttons representing each of the levels in the levelMenuState. Each of the buttons will have different states represented by different sprites (locked, unlocked, solved or unsolved) The constructor tale...
[ { "docid": "bad9f7b31424e7a8f922aa73a538e1db", "score": "0.8805515", "text": "function LevelButton(levelIndex, layer, id) {\r\n myLibrary.GameObjectList.call(this, layer, id);\r\n\r\n this.pressed = false;\r\n this.levelIndex = levelIndex;\r\n\r\n /* Assigning the sprites a button will acqui...
[ { "docid": "59b845c76d6ba3dfb0956db56a028ac4", "score": "0.6307699", "text": "function Button(sprite, layer, id) {\r\n myLibrary.SpriteGameObject.call(this, sprite, layer, id);\r\n this.pressed = false;\r\n this.down = false;\r\n }", "title": "" }, { "docid": "f3bd09c...
c74cbfcd3a5c74367c793ad49db21960
p : geolocation object
[ { "docid": "0c5229e8cd933bf140fa93bd8158f2eb", "score": "0.60992354", "text": "function success_callback(p){\n // p.latitude : latitude value\n // p.longitude : longitude value\n \n //alert(\"Found you at latitude \" + p.coords....
[ { "docid": "f85606c8f09b8bedfdbe73851c669742", "score": "0.72297704", "text": "function locationToGeoCode() {\n\n }", "title": "" }, { "docid": "70534c1ccfc1ff58b5df1abc918e8fb1", "score": "0.6874542", "text": "function getGeoLocation(data){\n if(data.length < 1){\n ...
0d712d4854ef3ad14b89665f0ff9f772
navigate to register screen
[ { "docid": "8317695f6b4942d2ba62c132ff7e4f9c", "score": "0.69895613", "text": "_onNewUserPress() {\n\t\tthis.props.navigation.navigate('Register');\n\t}", "title": "" } ]
[ { "docid": "1d64399c61f65fb93424cd4826f42c85", "score": "0.7973815", "text": "function handleRegister() {\n navigation.navigate('SignUp');\n }", "title": "" }, { "docid": "cebc855653e12cfc953c78149255c7f0", "score": "0.77600497", "text": "function openRegistrationPage() {\n...
e0712ece2dbe3f6ed3cc9668b4b58a4c
Clean up the dom of this component
[ { "docid": "da737493d47fe4e0e26926a2fc5c034b", "score": "0.0", "text": "ngOnDestroy() {\n super.ngOnDestroy();\n }", "title": "" } ]
[ { "docid": "707737b9f67fcdf0530514895f7c1609", "score": "0.8358208", "text": "_clean() {\n for (let i = 0; i < this.domElements.length; i++) {\n this.wrapper.removeChild(this.domElements[i]);\n }\n\n if (this.wrapper !== undefined) {\n this.container.removeChild(this.wrapper...
c6141f033552180788a2f90b7e758e91
Display the card's symbol (put this functionality in another function that you call from this one)
[ { "docid": "6cb51b03531d77783e72ca2c279c9a62", "score": "0.0", "text": "function toggleCard(clickTarget) {\n clickTarget.classList.toggle('open');\n clickTarget.classList.toggle('show');\n}", "title": "" } ]
[ { "docid": "a2b6888bfa9fdcab75946c6964fd8908", "score": "0.8227161", "text": "function displaySymbol(card){\n card.className = \"card open show\";\n card.style.pointerEvents = \"none\"; // make it non-clickable\n matchOrNoMatch(card);\n}", "title": "" }, { "docid": "9af4b4b3653ba94befcf1f...
109c529996977f7f8eb79cf4fa886907
This handles more types than `getPropType`. Only used for error messages. See `createPrimitiveTypeChecker`.
[ { "docid": "95ce5af6631cbc450f5ed0f00b4725e3", "score": "0.0", "text": "function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (pr...
[ { "docid": "8c0b14d2801e8ce4149b70875da26280", "score": "0.7179153", "text": "function getPropType(propValue) { // 392\n var propType = typeof propValue; ...
f6e92ec6ea5aae7a171e1b7f06c40f41
functions to handle button clicks.
[ { "docid": "be36233247ea415eb3f1a4c0c3c69eba", "score": "0.0", "text": "function clickOn1(){if(goodAnswer == 1){ correctAnswerClick(1); }else{ badAnswerClick(1); }}", "title": "" } ]
[ { "docid": "89f0b366c60e0a2b51a1d6f90df622da", "score": "0.77276444", "text": "handleButton() {}", "title": "" }, { "docid": "5e12254edf7de1452b94dfe219ff3795", "score": "0.7657491", "text": "_buttonClickHandler() { }", "title": "" }, { "docid": "635a0c0e93398600323fe3086...
0bd5b1788672411f50661da6a28acf8d
Shortcut function for checking if an object has a given property directly on itself (in other words, not on a prototype). Unlike the internal `has` function, this public version can also traverse nested properties.
[ { "docid": "97608b870fe9ad097ff1f9408886f7bf", "score": "0.0", "text": "function has$1(obj, path) {\n path = toPath$1(path);\n var length = path.length;\n for (var i = 0; i < length; i++) {\n var key = path[i];\n if (!has(obj, key)) return false;\n obj = obj[key];\n }\n ret...
[ { "docid": "e466ae8c8070b824e7a348e4bc38490d", "score": "0.7480185", "text": "function has(obj, property) {\n if (property === null || property === undefined) {\n return false;\n }\n return getImpl(obj, property) !== undefined;\n}", "title": "" }, { "docid": "5e74ce4aea50bdbf1a6d652acf...
1d82c733247d13fcea890d8549f94772
Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID.
[ { "docid": "9a84d91ce7acf5e07a9479cbd6c7d434", "score": "0.72540075", "text": "function accumulateTwoPhaseDispatchesSingleSkipTarget(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n var targetInst = event._targetInst;\n var parentInst = targetInst ? ReactTreeTraversal.get...
[ { "docid": "122b6d82274ba0527e86f5ae2b4cdcc6", "score": "0.75169235", "text": "function accumulateTwoPhaseDispatchesSingleSkipTarget(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n var targetInst = event._targetInst;\n var parentInst =...
c3c6d05e5ada155924db634e8e5932ca
scopeExists(validators.Subscription, 'default') > true scopeExists(validators.Subscription, 'update') > false
[ { "docid": "587157f9719ff1fca99123937ee88e04", "score": "0.62262374", "text": "function scopeExists(validator, scope) {\n return Object.keys(validator.scopes).find(key => key === scope) !== undefined\n}", "title": "" } ]
[ { "docid": "67fcdad15f31ed48ba1cb648051d6635", "score": "0.59661514", "text": "static existsFilter() {\n return new SubscriptionFilter([{ exists: true }]);\n }", "title": "" }, { "docid": "67fcdad15f31ed48ba1cb648051d6635", "score": "0.59661514", "text": "static existsFilte...
e46463672edd27d0053103b9016e5da1
get formatted actual date and time if secs=true resultion up to seconds
[ { "docid": "c0ef53a2bdea9c630a839b7dcbae05b7", "score": "0.66524917", "text": "function getNow(secs) {\n\tvar now = new Date();\n\tvar yyyy = now.getFullYear().toString();\n\tvar m = now.getMonth() + 1;\n\tvar mm = m.toString();\n\tif (mm.length == 1) mm = '0' + mm;\n\tvar dd = now.getDate().toString();...
[ { "docid": "9447a50d5b545682432b18b0ad92c46a", "score": "0.7238327", "text": "formatTime(secs) {\n var minutes = Math.floor(secs / 60) || 0;\n var seconds = Math.floor(secs - minutes * 60) || 0;\n return minutes + \":\" + (seconds < 10 ? \"0\" : \"\") + seconds;\n }", "title": "" ...
c9bcbf42fca201bb3642bcb355e43782
Processes the info received from the ACNH API and displays it in the DOM based on time and weather
[ { "docid": "ae2722b599d7ccbfabd2716a75763864", "score": "0.0", "text": "function processAudioData(time, bgmData, weatherDesc) {\n\tlet keys = Object.keys(bgmData)\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tif (bgmData[keys[i]].hour == time.getHours()) {\n\t\t\tlet weatherBGM = determineWeather(weat...
[ { "docid": "a3144ff5413f3ede42f39622470239be", "score": "0.720972", "text": "function showWeather (response) {\n console.log(response.data)\n let currentTemp = Math.round(response.data.main.temp);\n let currentFeelsLike = Math.round(response.data.main.feels_like);\n let currentHumidity = response.da...
72f69c5e444fe99cec5cf63cf3836c49
Whether selection is limited to one or multiple items (default multiple).
[ { "docid": "9e77ec49483227d71f7b746ce702f7f9", "score": "0.62664866", "text": "get multiple() { return this._multiple; }", "title": "" } ]
[ { "docid": "1f935673a06e8515d5277f2f1ea36f40", "score": "0.73653823", "text": "isMultipleSelection() {\n return this._multiple;\n }", "title": "" }, { "docid": "1f935673a06e8515d5277f2f1ea36f40", "score": "0.73653823", "text": "isMultipleSelection() {\n return this._...
9721c46f5a75578ca45ac817aabe57be
! vuex v3.6.2 (c) 2021 Evan You
[ { "docid": "622b80c8fc58e3ff4633891488c829da", "score": "0.0", "text": "function r(t){var n=Number(t.version.split(\".\")[0]);if(n>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){va...
[ { "docid": "f5323caff0f3a89aefc4aa395f11a983", "score": "0.681243", "text": "function vuexInit(){var options=this.$options;// store injection\nif(options.store){this.$store=typeof options.store==='function'?options.store():options.store;}else if(options.parent&&options.parent.$store){this.$store=options...
8c76376f819d7b03cd22b7c85e1fab1e
Return an array, where the first element is the count of positives numbers and the second element is sum of negative numbers.
[ { "docid": "c07ca05b65e3663fd9b09997227965f8", "score": "0.7851167", "text": "function countPositivesSumNegatives(arr) {\r\n let posCount = 0;\r\n let res = [];\r\n let sumNeg = 0;\r\n for (let i in arr) {\r\n if (arr[i] >= 1) {\r\n posCount++;\r\n } else {\r\n sumNeg += arr[i];\r\n ...
[ { "docid": "a692d7492c7403026129bd3e75994090", "score": "0.8323341", "text": "function countPositivesSumNegatives(array) {\n\n // if array is empty, return empty\n if (array == [] || array == null || array == undefined || array == \"\") {\n return [];\n }\n\n var negSum = 0;\n var posCounter = 0...
53174ff8df166ee7cd4880a2618d1b9e
Factory method to create a commitment object
[ { "docid": "6b9dd4682bc93d5530a07d59acca9f8d", "score": "0.775632", "text": "static createInstance(committer, randomString, commitDateTime) {\n return new Commitment({ committer, randomString, commitDateTime});\n }", "title": "" } ]
[ { "docid": "73b748c3fcd8ab0413a30d0f7f1259ff", "score": "0.6468229", "text": "function Commitment(id) {\r\n\tthis.id = id;\r\n\tthis.player = null;\r\n\tthis.format = null;\r\n\tthis.value = null;\r\n\tthis.encodedValue = null;\r\n\tthis.isResolved = false;\r\n}", "title": "" }, { "docid": "...
cb528f24d1c2279e0565276ba85c67ea
this will return the details of the object into HTML drawdetails(deets)
[ { "docid": "c5f1de6e7feb4a1c7271ded41afebe73", "score": "0.6918392", "text": "drawdetails(deets) {\n let detailsTemplate = `\n <div class=\"pokedeets d-flex justify-content-center col-12\">\n <img src=\"${deets.sprites.front_default}\"/>\n `\n document.getElementById(\"stat\").innerHT...
[ { "docid": "00970c7d8cad11fb7f823fc93dd1f8ff", "score": "0.70966786", "text": "function drawDetails(j) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Draw details\n\t\t\tlet s;\n\t\t\tvar shivaNode=$.parseJSON(j.shivanode_json.und[0].value);\t\t\t\t\t\t\t// Get shiva data\n\t\t\tvar wid=shivaNode.width ? shivaNode...
6b879c40d05ea09e732f0c81b4f153da
Drill down (through composites and empty components) until we get a host or host text component. This is pretty polymorphic but unavoidable with the current structure we have for `_renderedChildren`.
[ { "docid": "7288686885da6b3213f2de87cefee5bc", "score": "0.0", "text": "function getRenderedHostOrTextFromComponent(component) {\n var rendered;\n while (rendered = component._renderedComponent) {\n component = rendered;\n }\n return component;\n}", "title": "" } ]
[ { "docid": "231f826f37c7412881ba102f78f1344b", "score": "0.5791907", "text": "GetComponentsInChildren() {}", "title": "" }, { "docid": "231f826f37c7412881ba102f78f1344b", "score": "0.5791907", "text": "GetComponentsInChildren() {}", "title": "" }, { "docid": "231f826f37c7...
37f8dec815d39847443759b110ad56f0
Convert string of `baseIn` to an array of numbers of `baseOut`. Eg. convertBase('255', 10, 16) returns [15, 15]. Eg. convertBase('ff', 16, 10) returns [2, 5, 5].
[ { "docid": "a6c4edc664be5d68889edf4b8b98dca4", "score": "0.75315374", "text": "function convertBase(str, baseIn, baseOut) {\n var j,\n arr = [0],\n arrL,\n i = 0,\n strL = str.length;\n\n for (; i < strL;) {\n for (arrL = arr.length; arrL--;) arr[arrL] *= baseIn;\n ar...
[ { "docid": "7e652e631ac7b465df58eb024be93ae1", "score": "0.7510832", "text": "function convertBase(str, baseIn, baseOut) {\r\n var j,\r\n arr = [0],\r\n arrL,\r\n i = 0,\r\n strL = str.length;\r\n\r\n for (; i < strL;) {\r\n for (arrL = arr.length; arrL--;) arr[arrL] *= ba...
f50f435935eddefc1a61bc162e342630
This is cheating. Really only suited to demos and other situations where we're guaranteed to be using the local fs
[ { "docid": "f1d90044153cd0866d4325cef0796bc0", "score": "0.0", "text": "async function hardlinkAttachments() {\n const fs = require('fs');\n const root = to.attachments.uploadfs.options.uploadsPath;\n const original = `${root}/${piece.copyOfId}`;\n const copy = `${roo...
[ { "docid": "fa6f0ad57b6aedf6d379dc88afc71d41", "score": "0.6855153", "text": "function NodeFileSystem() {\n\n}", "title": "" }, { "docid": "834a3387d03739b140085ddc6fe93329", "score": "0.6777337", "text": "function initFS() {\n window.requestFileSystem(window.TEMPORARY, 1024*1024, f...
bb828b83e4bc0c3b8e2a59089a36915e
The name of the object.
[ { "docid": "8ca7c9f943115d694b0955effe94b57e", "score": "0.0", "text": "set name(value) {}", "title": "" } ]
[ { "docid": "fe7e0ddba64df27a9bf6d05c287aca12", "score": "0.75015396", "text": "getName () {\n\t\t\treturn this.__name;\n\t\t}", "title": "" }, { "docid": "1a6d019043739b79f135e5a13b63b0b6", "score": "0.7432958", "text": "function getName() { return name; }", "title": "" }, { ...
1578d99a0bc71a3a7a65b5bfa0dd092d
Provide roundingaccurate toFixed method. Borrowed:
[ { "docid": "77b6169bcfdb9f09748d584bb4349690", "score": "0.6486519", "text": "function toFixed ( value, exp ) {\n value = value.toString().split('e');\n value = Math.round(+(value[0] + 'e' + (value[1] ? (+value[1] + exp) : exp)));\n value = value.toString().split('e');\n return (+(value[0] +...
[ { "docid": "17f57c32b589acff70df70729c536d36", "score": "0.76098883", "text": "function toFixed (value, precision, roundingFunction, optionals) {\n var power = Math.pow(10, precision),\n optionalsRegExp,\n output;\n \n //roundingFunction = (roundi...
ed9b8f6d4f29bec263adb54d52a8286b
For HTML5 Geolocation API see: Start tracking position
[ { "docid": "f54b03e111ec9257da4a2e3a0c680d94", "score": "0.7206435", "text": "function startTracking(){\r\n\tif(navigator.geolocation){\r\n\t\tdocument.getElementById('startBtn').style.display = 'none';\r\n\t\tdocument.getElementById('stopBtn').style.display = 'inline';\r\n\t\t//Get Position\r\n\t\tnavi...
[ { "docid": "2e185511ac6e20e0410295507fc4dd3e", "score": "0.73871624", "text": "startLocationTracking() {\n\t\tPushwooshGeozonesModule.startLocationTracking();\n\t}", "title": "" }, { "docid": "3cf158dd89d360d84729eec9e8554217", "score": "0.7314427", "text": "function startGeolocation...
f2646157e4e034d20bebbda3e947afa2
End Global Variables Start Helper Functions End Helper Functions Begin Main Functions build the nav
[ { "docid": "4a5a5b8bbcc97d001db76fb2aa38e5fa", "score": "0.0", "text": "function createListItems (){\n for (const section of sections) {\n //getting section name\n sectionName = section.getAttribute('data-nav');\n //getting section id\n sectionId = section.getAttribute('id');\n //creatin...
[ { "docid": "8b7841e09d07463b3d73be2542311e2f", "score": "0.75089335", "text": "function build_nav() {\n\n if (settings.show_first)\n navigation_container.append($('<span class=\"page_link first\"><a href=\"#\">' + settings.first_label + '</a></span>').data('page', 1));\...
a06b656c7bec0106bf01cd727278fbe5
Number of vertices in the billboard mesh.
[ { "docid": "af94d8127cb166732ebef38f605142ba", "score": "0.72908217", "text": "get vertexCount() {}", "title": "" } ]
[ { "docid": "7b31916c4c90854c94ad20ea1bcd0b25", "score": "0.7356949", "text": "countVertices() {\n return this.vert.count;\n }", "title": "" }, { "docid": "d0994b622ed7cfe8cfa3e24be4277fed", "score": "0.7355524", "text": "verticesCount() {\n return this.vertices().len...
833323901d6ab57539a8c4b241d74faa
/// FUNCTION CALL FOR NORMALIZATION /////
[ { "docid": "f8b059b14c72d959690345c61f35adb1", "score": "0.0", "text": "function normalizeTables() {\n $.when(setJSON()).then(\n $.ajax({\n type: 'post',\n url: \"http://localhost:5000/api/normalize/\",\n contentType: \"application/json\",\n async: false,\n data: s,\n s...
[ { "docid": "0eb53ca5aabf60d4285fdbad327de367", "score": "0.7206527", "text": "normalize()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "ff84a21e0bc366a34999d33cb1d00119", "score": "0.6768713", "text": "function Normalizer() {\n}", "title": "" }, { "docid": "ca220ce18fe7b0b...
c867ccd400e175b7dadd47b2d12ca209
send data collected to database
[ { "docid": "bae89dc457c6a33809de97c4091ec8de", "score": "0.0", "text": "function createPost(newData) {\n $.ajax({\n url: 'http://localhost:3000/posts',\n method: 'POST',\n data: newData,\n success: function(newPost) {\n $('#table-body').append($(`<tr data-id='${newPost.id}'...
[ { "docid": "1a84e2aeb1d04ee0ca2c351d372d3350", "score": "0.6420019", "text": "function recordData() {\n\n\n //Skip the rest of the request if there aren't any matches that need to be updated.\n if (matchesData.length == 0) {\n completeData();\n return;\n }\n\n console.l...
511c82a614804c2092954270c721ea53
answer = prompt('Are you sure you want to sell your wooden sword?', 'Yes, No').toUpperCase()
[ { "docid": "58c247ca15bf77966905b02abe4c9647", "score": "0.0", "text": "function determineAnswer2() {\n switch (answer) {\n case 'Yes':\n totalGold += .9 * wsCost\n woodenSword = 0\n kixleyNCo[1].attackPow /= (1 + (0.05 * (3 - diffSett...
[ { "docid": "ba067557df4732dfde15117c57d1db1c", "score": "0.8200297", "text": "function food(){\n var tacos = prompt('Do you know what is great on Tuesdays?');\n if(tacos.toLowerCase() === 'yes'){\n alert('Oh yes, Tacos!');\n } else if(tacos.toLowerCase() === 'no'){\n alert('That is unacceptable...
99ce2491d5b67e1ebdae1333754cc708
change date from UI to number only such as Oct 18 2018 to 18102018
[ { "docid": "68dd5f582b718c218b4549154d37fb6b", "score": "0.60425645", "text": "setDate(newDate) {\n var str = newDate.toString().substr(4, 4);\n var intDate;\n\n if (str.match(\"Jan\")) {\n intDate =\n newDate.toString().substring(7, 10) +\n \"01\" +\n newDate.toString...
[ { "docid": "11bb9da3daba37a5da9da3c97362c3db", "score": "0.6801067", "text": "function dateToDateNum( date ) {\n date = date.trim();\n var arr = date.split(\" \");\n \n var yearNum = 0;\n var monthNum = 0;\n var dayNum = 0;\n \n if( arr[1] === \"Jan\" ) { monthNum = 1; }\n else if( arr[1] === \...
4ba252a612deb87fea14e2048bf97db3
Description: Adds a message to the msg bar Parameters: message the message to be displayed
[ { "docid": "472ffaa9692f472a38c2e6af41b38d1b", "score": "0.68171984", "text": "function addMsg(message) {\n msg.empty();\n msg.append(message);\n}", "title": "" } ]
[ { "docid": "88efbd404a414b61aaf152aada3ef944", "score": "0.7586631", "text": "function set_message( msg ) {\n set_text( '.lbl_message', msg );\n}", "title": "" }, { "docid": "fde99203bc0ec89ee9e61683824b667a", "score": "0.74126244", "text": "function addMessage(msg) {\n appendMe...
8eed56f642199ebb9f36738c2387fe43
[UNDOCUMENTED]: mutation is an array (to deprecate)
[ { "docid": "31b053cf31041251e4ce7148a9507095", "score": "0.58560616", "text": "function generateMutatorFromArray(mutagen,mutationArray) {\n var rawAction = mutationArray[0];\n if ( (!rawAction) || (!rawAction.apply) )\n return error ('Invalid mutation: the first element in an async mutation shall b...
[ { "docid": "127dc06296c402e187fa4194a372eff9", "score": "0.8023303", "text": "function mutation(arr) {\n return arr;\n}", "title": "" }, { "docid": "2fab8374d5726b0b60e924e33eb133da", "score": "0.69181484", "text": "function arrMutationValueTypes(arr) {\n arr[0] = 100;\n}", "...
ce0204f22253710ffbf6136be239db49
Sorted Array FizzBazz if number share without remainder to 15 , console (FizzBazz), if number share without remainder to 5 , console (Bazz), and if number share without remainder to 3 , console (Fizz).
[ { "docid": "64289114dc6f689cff2624729ab78cb9", "score": "0.67904294", "text": "function FizzBazz(num) {\n for (var i = 1; i <= num ;i++){\n if (i % 15 == 0){\n console.log('FizzBazz');\n }else if (i % 5 == 0){\n console.log('Bazz');\n }else if (i % 3 == 0){\n console.log('Fizz')...
[ { "docid": "a516ff1b8f76c187991cc1639b050dc7", "score": "0.7280992", "text": "function fizzBuzz(array) {\n let result = []; // Fizz, Buzz, FizzBuzz, Buzz, Fizz, 7\n\n for (let i = 0; i < array.length; i++) {\n let num = array[i];\n console.log(num); // 3, 5, 15....\n\n if (num % 3 === 0 && nu...
f155cfe81808b3bb0436383fbc2ee48a
Scrape a parsed HTML document for links.
[ { "docid": "0d9ed1e94986b4570bf22e1a78a1af4d", "score": "0.60419893", "text": "function scrapeTree(document)\n{\n\tvar base,link,links,rootNode;\n\t\n\tlinks = [];\n\trootNode = findRootNode(document);\n\t\n\tif (rootNode != null)\n\t{\n\t\tbase = findBase(rootNode);\n\t\t\n\t\tfindLinks(rootNode, funct...
[ { "docid": "ce81930b090c220a0e34ed6b35f7fdab", "score": "0.6585213", "text": "function parsePageSourceAndFetchLinks($) {\r\n var links = $('a');\r\n links.each(function() {\r\n var ref = $(this).attr('href');\r\n if(ref) {\r\n //Skipping relative URLS for now.\r\n ...
8e09441187e336e5ceeec65f0bce5c5b
Compile sass into CSS
[ { "docid": "b9fabc7a48713df86bbfac718bfb2d42", "score": "0.7740708", "text": "function compileSass() {\n return gulp.src(src.scss)\n .pipe(sourcemaps.init())\n .pipe(sass({\n includePaths: ['src/assets/stylesheets'],\n outputStyle: 'compressed'\n }))\n .pipe(autoprefix...
[ { "docid": "c71a05fea8c3394f8225b4d4f5d783d5", "score": "0.8100709", "text": "function sass(){\n return src('sass/**/*.scss')\n .pipe(CompSass())\n .pipe(dest('css/'))\n}", "title": "" }, { "docid": "dd6c0a4b759b2c23404c5f2b5ae42860", "score": "0.79992604", "text": "...
db17ebc9c8383974f205629834986187
Shows the gameover screen after the user has answered all the questions.
[ { "docid": "73fa5f51e76b3e33a56c064d44ccea77", "score": "0.0", "text": "function showEndScreen() {\n clearInterval(countDown);\n $(\"#game-area\").hide()\n $(\"#end-row\").show();\n\n $(\"#corrects\").text(\"Correct Answers: \" + correctAnswers);\n $(\"#incorrects\").text(\"Incorrect Answ...
[ { "docid": "795483b4579b5f6ab4928ff807cd5145", "score": "0.8", "text": "function gameOver() {\n if (Object.keys(questions).length === 0) {\n questionTimer.stopTimer();\n $('.game').hide();\n $('.results').show();\n $('.correct').html('Number Correct: ' + correct);\n $('.wrong...
190939b360d20b2f40988295619c1884
to toggle buttons for rear calls TODO: if rear call called, there should be a visual ticker that says there is a rear call even when REAR view is toggled off COMPLETED TODO: disable locked out hall and car buttons based on the position of the Rear Switch toggle COMPLETED
[ { "docid": "67fa55095e335cad32301f062b0df0e1", "score": "0.6724619", "text": "function tglRear(car, flr) {\r\n //all the 'car' vars are for identifying the button groups for specific cars\r\n //variables for toggling car buttons\r\n let cab = flr.carMask[car];\r\n let rear = cab[\"R\"];\r\n let fro...
[ { "docid": "68c7684a2759c4ae212fc8e9f1dcbb07", "score": "0.6779203", "text": "toggleButtons() {\n\n }", "title": "" }, { "docid": "adc65982ffca0547d69c3078cf01ebdb", "score": "0.65221024", "text": "function toggleButtons(){\n plus().disabled = true ? plus().disabled = false : p...
588fe473ddc0af17d3eef8a311512844
O union "|" serve para dizer a uma var que ela pode ser de outros tipos. No exemplo abaixo temos o "uid" podendo ser number e string
[ { "docid": "8a99fd66f1dd42c7087eb6cef54468af", "score": "0.0", "text": "function logDetails(uid, item) {\n console.log(\"A product with \" + uid + \" has a title as \" + item);\n}", "title": "" } ]
[ { "docid": "c424eea3000b69cba33c4d239941f5e4", "score": "0.65215856", "text": "function unionTypeFunction(user) {\n console.log(user);\n}", "title": "" }, { "docid": "7a320d3121295d751ef75db46bb99237", "score": "0.5614392", "text": "union(p, q) {\n const pId = this.id[p];\n...
8d9de6cee7731aba15c49e916b93e43b
Return the set of all the keys that changed (either added, removed or modified).
[ { "docid": "be2d88321fcff9eb8a3b184a6b868ba2", "score": "0.0", "text": "function objectDiff(obj1, obj2) {\n var diff, update = {}, enter = {}, exit = {}, all = {},\n name,\n obj1 = obj1 || {};\n\n for (name in obj1) {\n if (!(name in obj2))\n exit[name] = all[name] = true;\n else ...
[ { "docid": "23d46577ee89aadb0ef9937af24f8688", "score": "0.6588285", "text": "keys() {\n const ret = [];\n for (let i = 0; i < this.hashTable.length; ++i)\n for (let slot = this.hashTable[i]; slot; slot = slot.next)\n if (!slot.deleted)\n ret.pu...
c8665cca11ecdcf019ad53eed2f3bf04
draw a colored line between two points
[ { "docid": "a22a56cb6789412af2e730a2584c0f61", "score": "0.7392002", "text": "function drawLine(posA, posB, thickness=.1, color)\n{\n const halfDelta = vec2((posB.x - posA.x)*.5, (posB.y - posA.y)*.5);\n const size = vec2(thickness, halfDelta.length()*2);\n drawRect(posA.add(halfDelta), size, c...
[ { "docid": "6330ace867f9d3e38ebffcab92acde18", "score": "0.78484887", "text": "function drawLine(cxt, x1, y1, x2, y2, color) {\n cxt.beginPath();\n cxt.strokeStyle = \"rgba(\" + color[0] + \",\" + color[1] + \",\" + color[2] + \",\" + 255 + \")\";\n cxt.lineWidth = 2;\n cxt.moveTo(x1, y1);\n...
f982ee395159d9245d7093fae8a62db8
Implement the identical functionality for filter and not
[ { "docid": "aeb0b2dbf7d4c75384098647984dfd4b", "score": "0.0", "text": "function winnow( elements, qualifier, keep ) {\n\n\t// Can't pass null or undefined to indexOf in Firefox 4\n\t// Set to 0 to skip string check\n\tqualifier = qualifier || 0;\n\n\tif ( jQuery.isFunction( qualifier ) ) {\n\t\treturn ...
[ { "docid": "566c510496e30dcfdbcc8dc4af77742f", "score": "0.7675597", "text": "filter() {}", "title": "" }, { "docid": "f98f0c02d654f745960b19063da7da6a", "score": "0.736163", "text": "function notFilter(func) {\n return function () {\n return !func.apply(this, argum...
fe1ac6a90d85c1ad04213d570a975843
================================================================================================================================== Get the intrinsic/internal properties of a member property, function, etc.
[ { "docid": "c8c97ad999a713bdf6e3052151784ede", "score": "0.0", "text": "function getPropertyValue(obj, property) {\r\n return obj[property];\r\n}", "title": "" } ]
[ { "docid": "19c3d840059c7c9ef69e4c1409064e36", "score": "0.6834491", "text": "function prop_access() {\n \n}", "title": "" }, { "docid": "682875cafec2073487cdddf5c978d681", "score": "0.6592331", "text": "get accessor_prop() { /* function body here */ }", "title": "" }, { ...
49de884009f64a2fae354bbb64039d87
mobile framework Show/hide loading page show: true/false
[ { "docid": "f9144ab60e268c01b06a25a12a4b538b", "score": "0.0", "text": "function mofAlert(message, title) {\n //$.mobile.loading('show');\n //$.mobile.loading('hide');\n if (title == undefined) title = 'Live Chat';\n myApp.alert(message, title); \n }", "t...
[ { "docid": "d6bef8d4ca074e7c782660c5b123255f", "score": "0.79404116", "text": "function mofLoading(show) {\n //$.mobile.loading('show');\n //$.mobile.loading('hide');\n console.log('loading '+show); \n if (show) myApp.showPreloader();\n else myApp.hidePreloader(); ...
84c9865c0395f41fca2e2c04e04b4a2e
Run the standard initializer
[ { "docid": "cb1e3efec9a8999fc9ae514e227dc382", "score": "0.0", "text": "function initialize ( target, originalOptions ) {\n\n\t\tif ( !target || !target.nodeName ) {\n\t\t\tthrow new Error(\"noUiSlider (\" + VERSION + \"): create requires a single element, got: \" + target);\n\t\t}\n\n\t\t// Throw an er...
[ { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7152034", "text": "function init() {}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2", "score": "0.7152034", "text": "function init() {}", "title": "" }, { "docid": "4213fce23ce5b47c64fb6e401758bed2...
4f9a1b0109a0eff30885cc0fb9ae814e
to add all the countries from the database to the html page
[ { "docid": "3469504f403f25326ea7a73db05f47bf", "score": "0.6912309", "text": "function setAllCountriesInPage(countries) {\n // to create a col for 6 countries\n let columns = 0;\n\n // loop through all countries to make html tags for it\n Object.values(countries).forEach((country) => {\n\n ...
[ { "docid": "ff756a81c4c88fecc37b10059a6a1a7c", "score": "0.7060303", "text": "function showCountriesList(resp){\n countriesList.empty();\n var population = ''; \n resp.forEach(function(item) { \n population = item.population.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \" \")...
9cac8542e9973386d5c72c99f7d3f6b7
Class representing a collection of tweets. Empty when instantiated.
[ { "docid": "09aaa38f44e68a3dd5681f0340b78727", "score": "0.82981604", "text": "function TweetCollection () {\n\tthis.tc = new Array();\n}", "title": "" } ]
[ { "docid": "3f1b1899bffcab1ef6b89a8b07a29910", "score": "0.62667435", "text": "function parseTweets() {\n if (tweetList == 0) {\n tweetsContainer.html('<h1 id=\"no-tweets-msg\">No Tweets currently found</h1>')\n } else {\n $.each(tweetList, (key, value) => {\n const tweetKey = key...
28fbf5933fbbb411ef915a6c4d4d812e
(For IE <=9) Starts tracking propertychange events on the passedin element and override the value property so that we can distinguish user events from value changes in JS.
[ { "docid": "5ee72ef1443ba2903af8f9998dc5bb0f", "score": "0.69349015", "text": "function startWatchingForValueChange(target, targetInst) {\n\t activeElement = target;\n\t activeElementInst = targetInst;\n\t activeElement.attachEvent('onpropertychange', handlePropertyChange);\n\t}", "title": "" }...
[ { "docid": "0f819d762fedd86c38416247bf67694a", "score": "0.749861", "text": "function startWatchingForValueChange(target,targetInst){activeElement=target;activeElementInst=targetInst;activeElement.attachEvent('onpropertychange',handlePropertyChange);}", "title": "" }, { "docid": "0f819d762fe...