query_id
stringlengths
32
32
query
stringlengths
7
29.6k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
09a1d4d7f088c10796cfea0b98d0836f
PROPIEDADES devuelve el objeto Properties del documento
[ { "docid": "55a80684045de02038ffc5314dc742cb", "score": "0.66029805", "text": "function av_GetDocumentProperties(id_visor, idDocumento){\n\tdoc=va_getDocumento(id_visor,idDocumento);\n\tif(doc==null){\n\t\tdoc=va_getDocumentoAgrupado(id_visor,idDocumento);\n\t}\n\tif(doc!=null && typeof doc.Properties !...
[ { "docid": "2cec2752cc34f2f668be2a5a02393bb9", "score": "0.654116", "text": "static get properties() {\n return {};\n }", "title": "" }, { "docid": "b4164110fc499fe8971e445de32f5171", "score": "0.6500305", "text": "static get properties() {\n return {};\n }", "title":...
951ba02eb328a2a8e7c5cb968a384cfa
Makes sure that the game is in the loop
[ { "docid": "cc416c980bd59cc86164be357421280f", "score": "0.6867026", "text": "function startGame() {\n window.setInterval(gameLoop, 10);\n }", "title": "" } ]
[ { "docid": "0c43e08141c20604bb5bed4db5f8e128", "score": "0.8007111", "text": "gameLoop(){\n do {\n this.print(); \n this.location(); \n this.winCheck(); \n } while (this.gameOn === true);\n }", "title": "" }, { "docid": "c6c9dced6dfd528f89971fc268b1d058", ...
25eb7ec25186a4ee5d58f07cc9aa1bd6
UPDATE: I change the tag hook from tagging the only property (e.g= ".deletenote"), to all the classes "mynotes", this helps me to let javaScript recognizes new posted notes.
[ { "docid": "3b6b0310072fbf74f6d921f020cb4336", "score": "0.0", "text": "events() {\n $(\"#my-notes\").on(\"click\", \".delete-note\", this.deleteNote);\n $(\"#my-notes\").on(\"click\", \".edit-note\", this.editNote.bind(this));\n $(\"#my-notes\").on(\"click\", \".update-note\", this...
[ { "docid": "fa3b29e7f184005e960e2809ddea6d39", "score": "0.6397687", "text": "function refreshNotesForTagList(notes) {\n $(\"#lblTagName\").html($(\"#pageNotesForTag\").data(\"tagName\"));\n refreshAnyNotesList($(\"#taggedNotesList\"), notes);\n}", "title": "" }, { "docid": "4a8f5cfc20...
d5396f6636b939776eaa5e7f9e9d0152
Stringify a heading. In `setext: true` mode and when `depth` is smaller than three, creates a setext header: ```markdown Foo === ``` Otherwise, an ATX header is generated: ```markdown Foo ``` In `closeAtx: true` mode, the header is closed with hashes: ```markdown Foo ```
[ { "docid": "cca74e7a1f52c182a3627f27fed9d2d1", "score": "0.7384434", "text": "function heading(node) {\n var self = this\n var depth = node.depth\n var setext = self.options.setext\n var closeAtx = self.options.closeAtx\n var content = self.all(node).join('')\n var prefix\n\n if (setext && depth ...
[ { "docid": "c9f4dc5fc9834fdff1f40d33661e0932", "score": "0.74442786", "text": "function heading(node) {\n var self = this;\n var depth = node.depth;\n var setext = self.options.setext;\n var closeAtx = self.options.closeAtx;\n var content = self.all(node).join('');\n var prefix;\n\n ...
6183912f48cc2ef90f23ef3b8afc936f
public; return: row array / null;
[ { "docid": "250fea2f803458a9350435dcf4710a0c", "score": "0.0", "text": "function TreeView_getChildRows(sCode, iLevel){\r\n if (iLevel== null) iLevel= 1;\r\n\r\n var vaoRow= new Array();\r\n var voCol= null;\r\n \r\n if (iLevel== this.MAX_LEVEL){\r\n if (this.isRoot(sCode)){\r\n vaoRow= this...
[ { "docid": "f0c093dd38af1eb3c81ce3c92a9813d5", "score": "0.7451851", "text": "rows () { return this._rows }", "title": "" }, { "docid": "54381c2cc2631093e55ac835cdb2ac40", "score": "0.7292769", "text": "row(){\n return this.__row;\n }", "title": "" }, { "docid":...
81dc5fcd7e21303aef855a5eb36a7b28
get user IP address and location
[ { "docid": "0ec0e51e9a1355a85fc9b6c17c9a5615", "score": "0.6883564", "text": "function getMyLocation() {\n\tgot(urlIp, {json: true })\n\t\t.then((res) => {\n\t\t\tconsole.log(`myPos lat: ${myPosition.latitude}, lon: ${myPosition.longitude}, ${myPosition.city}, ${myPosition.region}, ${myPosition.countryC...
[ { "docid": "2329f5e7d0ec76c69f488653a1069e71", "score": "0.73506653", "text": "function _getMyIP() {\n return ip.address();\n}", "title": "" }, { "docid": "fc98b82cc188429e7962286baa8bc49c", "score": "0.7170288", "text": "get ip() {}", "title": "" }, { "docid": "ddcdd473...
3e1200105d0d0a1c4b35c8ffdbeec581
'Filter by' event listener
[ { "docid": "261bf93b21089577440cc3e9467df36c", "score": "0.70152694", "text": "function handleFilterBy() {\n $('.js-bookmark-filter').on('change', function() {\n let selectedRating = $(this).val();\n\n STORE.setFilterBy(selectedRating);\n render();\n });\n }", "title": "" } ]
[ { "docid": "c5d83c38a266a82b70df7d017bdbce25", "score": "0.78036404", "text": "handleEventFiltering() { this.filteredEvents = this.filterByType(this.events, this.eventType); }", "title": "" }, { "docid": "5b505a4d3f113fa5708bddf6ef6daa2c", "score": "0.7208346", "text": "function load...
dedcd8156c954e094b687044d07b2bec
Differents performance values depends on if it's a mesh or a graph
[ { "docid": "819f49533aacbe3fcd93043c4d81ebc2", "score": "0.0", "text": "function setMesh(mesh) {\n isMesh = mesh;\n}", "title": "" } ]
[ { "docid": "cb4ad6a56f55061adadb7cb1c87b88c1", "score": "0.5713751", "text": "endUpdate() {\n this.dot.visibility = this.usedVertices == 0 ? 0 : 1\n let i\n i = this.vertices.length-1\n while(i>=this.usedVertices && i>0) this.vertices[i--].dispose()\n if(i+1<this.verti...
7dc834b64ebbbdbd20c06482cbcc6547
Creates the slim scroll scrollbar for the sections and slides inside them.
[ { "docid": "43fed246586665e2f7245f35497b70f1", "score": "0.71631116", "text": "function createScrollBarHandler(){\n $(SECTION_SEL).each(function(){\n var slides = $(this).find(SLIDE_SEL);\n\n if(slides.length){\n slides.each(function(){\n ...
[ { "docid": "69548ac869dfd8c99e900b5b34b9019d", "score": "0.7421033", "text": "function createSlimScrollingHandler(){\n $(SECTION_SEL).each(function(){\n var slides = $(this).find(SLIDE_SEL);\n\n if(slides.length){\n slides.each(function(){\n ...
764f319768b7569de32a2c84970b4895
Registers specific 'regular' keys
[ { "docid": "725f208407da611bb8be9aef8644494a", "score": "0.0", "text": "function keyTyped() {\n \n // When the user hits the 's' key, the blocks are drawn fresh in their current state and a .png is saved via browser.\n if (key === 's') {\n for (var i = 0; i < width/blockSize; i++) { // Loop over e...
[ { "docid": "e7baa80f2d864cbcd2b6f98883570dfb", "score": "0.72603875", "text": "function registerKeys() {\n var usedKeys = ['0', '1', '2'];\n\n usedKeys.forEach(function (keyName) {\n tizen.tvinputdevice.registerKey(keyName);\n });\n }", "title": "" }, { "do...
47fa66573d2a426a2b0f2287a51b6b72
Events at the cart page
[ { "docid": "fc3d6823865664f1fa19b9e21637773c", "score": "0.0", "text": "function listenEvents() {\n const btnPay = document.getElementById('btn-pay');\n const btnClean = document.getElementById('btn-clean');\n\n //When the btn Pay is clicked\n btnPay.addEventListener('click', () => {\n ...
[ { "docid": "e7845801ae9178a5cb06705810c4cb7f", "score": "0.77003914", "text": "_onCartCheckout() {\n this.logger.startEmpty();\n\n this.sidebarToggle( false );\n\n this.container.set( this.pages.checkout );\n\n this.pages.checkout.on( 'render:after', () => {\n cons...
200d4d3691f2608fe8df416dc8d4f7ec
Save Calls Tab 1. Appraisal Form Call. Update Form Status When Appraise open form First Time
[ { "docid": "ce6b65b8b740e275d674fc0492429dea", "score": "0.6655586", "text": "function UpdateFormStatusFormOpen() {\n var JsonObject = {\n empAppraisalSettingId: $(\"#hdnEmpAppraisalSettingId\").val()\n };\n calltoAjax(misApiUrl.changeAppraisalFormStatusToNextLevel, \"POST\", JsonObject,...
[ { "docid": "403b0201c762f6e8f97cc60ab62c2005", "score": "0.62334234", "text": "function callBackFunction() {\n\n if (g_scratchpad.clicked !== \"false\") {\n if (g_form.getValue(\"u_call_back_count\") == \"0\") {\n g_form.setValue(\"u_call_back_count\", 1);\n } else {\n ...
8d7b56bc5bc693b25c69b6497e16cc2b
! vuex v3.6.0 (c) 2020 Evan You
[ { "docid": "a03cd763f48383a489d74bafa8223f3a", "score": "0.0", "text": "function n(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){va...
[ { "docid": "1eea2fda3384eaa87fd40942fdf53f00", "score": "0.6809579", "text": "function vuexInit(){var options=this.$options; // store injection\nif(options.store){this.$store = options.store;}else if(options.parent && options.parent.$store){this.$store = options.parent.$store;}}", "title": "" }, ...
474e34cb736c4571d91db6b1533f6bb1
returns length between two coordinates
[ { "docid": "ebcda0aac365d9bfab47195a2811ed75", "score": "0.0", "text": "function hypotenuse(root, end) {\n return Math.hypot(end.x - root.x, end.y - root.y);\n }", "title": "" } ]
[ { "docid": "7475a236b74cc5a6daa784d6d59c4aae", "score": "0.8162161", "text": "function getLength(x1, y1, x2, y2) {\r\n // Use pythagorean theorem to determine length from (x1, y1) to (x2, y2)\r\n let rise = y2 - y1;\r\n let run = x2 - x1;\r\n return (rise ** 2 + run ** 2) ** 0.5\r\n}", "...
f26d0e4185d725e369cf4ff192a043d9
Define initialize map Function
[ { "docid": "43d57511f808a6b3e4a70c4bd43b1f60", "score": "0.0", "text": "function initialize_map() {\n map = new google.maps.Map(document.getElementById('map-container'), {\n center: { lat: 40.753050, lng: -74.011888 },\n zoom: 10,\n });\n\n\n // Try HTML 5 GeoLocation\n if (navigator.geolocati...
[ { "docid": "a814617bf0d8b84e099da670745395bb", "score": "0.8747728", "text": "function initMap() {}", "title": "" }, { "docid": "33b718b2edd43ef2f918f3ce91165543", "score": "0.83209974", "text": "function initMap() {\n}", "title": "" }, { "docid": "49312a0cb65dd234c5634e9...
d5f4253dc9662c71dae977854ce60ca3
Capture the next frame of the video.
[ { "docid": "2e57783c41cbfdbdea72e825306da2d1", "score": "0.6509456", "text": "function Frame() {\n width = video.clientWidth;\n height = video.clientHeight;\n canvas.width = width;\n canvas.height = height;\n if (frameTime < 50) {\n frameTime++;\n var imageData;\n ctx.drawI...
[ { "docid": "0e0280359654127e1017ff4d85ee7a3c", "score": "0.70263344", "text": "function captureFrame() {\n var begin = Date.now();\n cap.read(frame); // Read a frame from camera\n cv.cvtColor(frame, frameBGR, cv.COLOR_RGBA2BGR);\n\n var faces = detectFaces(frameBGR);\n ...
05b72302b55cedcbc9b713c44db47204
fungsi reset form seperti semula
[ { "docid": "b43ad01c91004ed1a554d1bea5f0cee4", "score": "0.75204855", "text": "function resetForm(linkTambah, judulForm) {\n console.log(\"test reset\");\n // trigger reset\n $(\"#formModal form\").trigger(\"reset\");\n // const formAction = $('#formModal form').attr('action');\n\n // ubah action d...
[ { "docid": "34982d4dba6cb709b4d9d2aba0d61ecb", "score": "0.8197325", "text": "function resetBiayaForm(){\n KodeField.setValue('');\n NamaField.setValue('');\n KeteranganField.setValue('');\n JumlahField.setValue('');\n IsSksField.setValue('');\n }", "title": "" }, { "docid": ...
9f6bfe83cfbca89ad49a158168d2cc3c
current switching index getter
[ { "docid": "a5b20025e2e54f9bf36d8d9f1844f78b", "score": "0.0", "text": "index (prm) {\n try { return this.member('index', 'number', prm, 0); } catch (e) {\n console.error(e.stack);\n throw e;\n }\n }", "title": "" } ]
[ { "docid": "8fc6fdd5ff5608720543d4f9fa16b3a9", "score": "0.76079756", "text": "get index() {\n return this._indexOf(this._current);\n }", "title": "" }, { "docid": "66e09a78c7d008f365791239c5b19e46", "score": "0.73355", "text": "getIndex() { return this.index_; }", "title": "...
72a08b08af9a3338ea93850a398a8c40
For example, "undefined" or "of type array"
[ { "docid": "d536922cdd14c9f8f22503d96c51cf27", "score": "0.0", "text": "function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n\n case 'boolean':\n case 'date':\n ca...
[ { "docid": "c3e17a8557c70f0b006517d0d31152f8", "score": "0.6669657", "text": "function typeStr(obj) {\n return isArray(obj) ? 'array' : typeof obj === 'undefined' ? 'undefined' : _typeof(obj);\n }", "title": "" }, { "docid": "f4bd951dc0b4fc843df1e27e51071d8f", "score": "0.66660213", ...
4528aed42b738516917716fb61b11a2e
0212 with flipped == 1 || 2010 with flipped == 1 / Some small helper functions / assume that x1 == 1 && x0 == 0
[ { "docid": "bf5bceabb3bf3984381e0feb38e0b83c", "score": "0.0", "text": "function interpolateX$1(y, y0, y1) {\n return (y - y0) / (y1 - y0);\n }", "title": "" } ]
[ { "docid": "499cd77286b2dafcd340f1920a9b8a9f", "score": "0.5722855", "text": "function twoFlipped(){\r\n flippedcount = 0; //(int), number of tiles flipped\r\n\r\n //Checks every tile to see if it is flipped and increments the flippedcount\r\n for (i=0; i < count; i++){\r\n if(ti...
23648b0645cce857c7071e75dbca0d09
Get articles of a category
[ { "docid": "09f00389710907d27946bf46e5d0fa65", "score": "0.75935924", "text": "function getArticles(cat) {\n\tfetch('https://api.nytimes.com/svc/archive/v1/2019/2.json?api-key=8793dBix9MPRBW5QM1noEAMn1cZRxQ8R')\n\t\t.then(res => res.json())\n\t\t.then(data => {\n\t\t\tconsole.log(data.response.docs.filt...
[ { "docid": "963e7a903381720bdb1a2a0207f3d115", "score": "0.7237355", "text": "function getPostsByCategory() {\n\tvar snippet = {\n\t\tquery: {category: \"testodd\"}\n\t}\n\trimer.post.findByCategory(snippet, function(error, value) {\n\t\tif(error) {\n\t\t\tconsole.log(error)\n\t\t}\n\t\telse {\n\t\t\tco...
032a20e4710fe889c2bb1b0394364bb7
do here whatever is necessary for creating an instance of DatabaseConnection
[ { "docid": "ec528ef3f60c06fae4cc4bbe36d8f3c4", "score": "0.0", "text": "function start() {\n\n console.log('[Database] Starting database...');\n console.log('[Database] Connecting to MySql...');\n console.log('[Database] Running migrations...');\n console.log(...
[ { "docid": "e02e9601207a8b7c910e31836d7d7fe2", "score": "0.7049246", "text": "function constructConnection () {\n return mysql.createConnection(connectionConfig);\n}", "title": "" }, { "docid": "12f9cb033febeb180111825c52c91703", "score": "0.7048139", "text": "prepareInitDB() {\n ...
08820327ad083950f860d4001979859e
RLtangent_PolyPolyC(): get the RL tangent between two convex polygons Input: m = number of vertices in polygon 1 V = array of vertices for convex polygon 1 with V[m]=V[0] n = number of vertices in polygon 2 W = array of vertices for convex polygon 2 with W[n]=W[0] Output: t1 = index of tangent point V[t1] for polygon 1...
[ { "docid": "71eaaae32f49d0b27cbb31b1c3f9075a", "score": "0.81138885", "text": "function tangent_PolyPolyC(V, W, t1, t2, cmp1, cmp2) {\n\t var ix1, ix2; // search indices for polygons 1 and 2\n\t // first get the initial vertex on each polygon\n\t ix1 = t1(W[0], V); // ri...
[ { "docid": "a957379af68f9e54c2751f806a330f63", "score": "0.8103846", "text": "function tangent_PolyPolyC(V, W, t1, t2, cmp1, cmp2) {\r\n var ix1, ix2; // search indices for polygons 1 and 2\r\n // first get the initial vertex on each polygon\r\n ix1 = t1(W[0], V); // rig...
46f568e1345804721a0878cba2eaec77
Tell users in a room to add a new player.
[ { "docid": "a50f58fdd2c9f5e5dba247381493d85b", "score": "0.6944127", "text": "function introducePlayerToRoom(username, roomname) {\n\n for(var i = 0; i < onlinePlayers.length; i++) {\n\n if(onlinePlayers[i].name === username) {\n\n var sessionID = onlinePlayers[i].session;\n\n ...
[ { "docid": "d413ccf81254f7ccd8d126eee261042d", "score": "0.7648295", "text": "function addNewPlayer() {\n socket.emit('createNewPlayer');\n }", "title": "" }, { "docid": "28662a51e4d71437908d178cdbf8dba4", "score": "0.71198255", "text": "addPlayer(player) {\n\t\tthis.waitin...
16e8188bf161f22cabc4ea3019603a46
Text nodes are stored as objects to keep things simple
[ { "docid": "b642b16f6efab6895ee4d302ad88955c", "score": "0.0", "text": "function createEmptyElement() {\n\t return {\n\t type: '#empty'\n\t };\n\t}", "title": "" } ]
[ { "docid": "57f0e2ec02902b1784227755376c4358", "score": "0.7606275", "text": "function TextNode(text) {\n this.text = text;\n}", "title": "" }, { "docid": "57f0e2ec02902b1784227755376c4358", "score": "0.7606275", "text": "function TextNode(text) {\n this.text = text;\n}", "...
34ef687e3af6057d6753ab79fc7b4cf5
Sends user input as an ajax post request to store as session data then send a get request to load the results page
[ { "docid": "961b32241f4cb183c933e2d431517247", "score": "0.6177837", "text": "function sendResults(data) {\n $.ajax({\n type: \"POST\",\n url: \"/calculated_risk_results\",\n dataType: \"json\",\n data: JSON.stringify(data),\n contentType: 'application/json',\n ...
[ { "docid": "b573cb2fc99efa58a7b114201cd39100", "score": "0.6409644", "text": "function submitSession() {\n // Get selected presenterID\n var presenterSelect = document.getElementById(\"presenter-select\");\n var presenterID =\n presenterSelect.options[presenterSelect.selectedIndex].value;\n\n // ...
0c732f0ad5017d68f92e79b6c6052675
A RPG games bread and butter
[ { "docid": "b66accf16034275feaf0f0ec40ce8c5f", "score": "0.0", "text": "function dice(min, max) {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}", "title": "" } ]
[ { "docid": "7b22173564ea2346a67ca8ab5b4f997b", "score": "0.705599", "text": "function Rpg() {\n \n \n let game = new Game(1088, 832); // taille du jeu \n \n\n\n game.fps = 15; //fps game\n\n\n //scholar, banner, quest selector, to add\n\n //chargement image and music\n game.prelo...
53948eb077f0df2288e8d1cba197509c
import PageNotFound from '../assets/images/PageNotFound';
[ { "docid": "02c99eed28c564d8554207094a389550", "score": "0.59970075", "text": "function NotFoundPage (){\n return <Jumbotron className=\"not-found-page\" style={{padding:\"150px 0\", background:\"#414F5E\"}}>\n <Row>\n <Col xs=\"12\"><h1>404</h1></Col>\n <Col ...
[ { "docid": "85eda78283d8f04b02e99315c490288b", "score": "0.6706125", "text": "function E404() {\n return (\n <ul>\n <li className=\"not-found\">\n <h1>404 someone took this page</h1>\n <img src={IMG404} alt=\"Error 404 Page Not Found\" />\n </li>\n </ul>\n );\n}", "ti...
d5d17e17987892f476d81ea0a24fb31f
Criando de forma literal:
[ { "docid": "6dfc2f0cb6af0da4b4efa9183c1bb4e7", "score": "0.0", "text": "function func1(){ // Em funções normais, não se pode omitir seus blocos, denotados por chaves. Apenas em arrow-functions.\r\n \r\n // O retorno de valor é facultativo. Caso você não ponha, ele retornará 'undefined'.\r...
[ { "docid": "b089e710f9fe7a88d3f3cdb29cb1dea1", "score": "0.7455929", "text": "function Literal( arg ) {\r\n}", "title": "" }, { "docid": "7f02a6d18df971c09f820368f277722a", "score": "0.69278026", "text": "function Bind_Oliteral() {\r\n}", "title": "" }, { "docid": "d9c361...
91f44052da4f79b2768abbdc7416d5b6
Try to parse input as a time stamp.
[ { "docid": "c7e481d9ec77ba9a181b9e790fe881c7", "score": "0.7332546", "text": "function parseTimeStamp(input) {\n\n function computeSeconds(h, m, s, f) {\n return (h | 0) * 3600 + (m | 0) * 60 + (s | 0) + (f | 0) / 1000;\n }\n\n var m = input.match(/^(\\d+):(\\d{2})(:\\d{2})?\\.(\\d{3})/);\...
[ { "docid": "05f81c9e8e7cdfa8e5a325e7a3b769dd", "score": "0.74135697", "text": "function parseTimeStamp(input) {\n\n\t function computeSeconds(h, m, s, f) {\n\t return (h | 0) * 3600 + (m | 0) * 60 + (s | 0) + (f | 0) / 1000;\n\t }\n\n\t var m = input.match(/^(\\d+):(\\d{2})(:\\d{2})?\\.(\\...
4b01665520f63126939d8a39f77ad126
TODO: make sendMessage function
[ { "docid": "729b88284e6cb4f730f043c8589ef849", "score": "0.0", "text": "function sendMessage() {\n let data = {\n // \n };\n\n $.ajax({\n type: POST,\n url: \"mail.php\",\n data: data,\n success: function () {\n console.log(\"message is sended\");\n...
[ { "docid": "8b5b53caa21ec7aedcd41396bc79e3e7", "score": "0.8614542", "text": "function sendMessage(){}", "title": "" }, { "docid": "acbb0619116bd25599f1f59970df9b01", "score": "0.81689", "text": "function sendMessage() {\n}", "title": "" }, { "docid": "35eca8a26f6eb1b2444...
8cc45d712ab72f36b41bbf0d18f12122
create element & render cafe
[ { "docid": "e2bb9c33f3b1f8019e1f7b38662ce7d5", "score": "0.0", "text": "function renderRequest(doc) {\n // li\n let li = document.createElement('li');\n li.setAttribute('data-id', doc.id);\n\n // requester\n let requester = document.createElement('span');\n requester.textContent = doc.data().reque...
[ { "docid": "2022b874dfbb0b34a411d646bb6704f4", "score": "0.7041105", "text": "function renderCafe(doc){\n let li = document.createElement('li');\n let name = document.createElement('span');\n let city = document.createElement('span');\n\n li.setAttribute('data-id', doc.id);\n name.textContent = doc...
d2c20e68257152450f5e89a64da08d78
establish a global error handler function, for handling uncaught exceptions
[ { "docid": "de62990f7c196b7144e036c6ae561f48", "score": "0.6426425", "text": "function GlobalErrorHandler (error, type) {\n\t// we'll attempt to output the message and then intentionally idea, hoping to be respawned\n\tconst message = (error instanceof Error) ?\n\t\ttype + `: ${error.message}\\n${error....
[ { "docid": "cbba33e0417e9c5be7994026cdecc8ff", "score": "0.75735134", "text": "function ErrorHandler() {\n }", "title": "" }, { "docid": "9e92456492a44f9fd2b91be926593198", "score": "0.7536138", "text": "errorHandler (error) {\n console.log('Global error handler')\n console....
a495dc84cf8fa6bb59e760fa1b52f813
Update notification to display offline error messaging
[ { "docid": "2a18ae6b739fedd92b928d89cef4b237", "score": "0.6099452", "text": "notifyOnline() {\n this.handleNotification({ message: 'notices.online', level: 'success' });\n }", "title": "" } ]
[ { "docid": "dec5d935093ad04761532bd2a7c3bd42", "score": "0.7429149", "text": "notifyOffline() {\n this.handleNotification({ message: 'notices.offline', level: 'warning' });\n }", "title": "" }, { "docid": "211d4b2e500dcf3b41a3d4f0e0fe98e8", "score": "0.6694179", "text": "_failGet...
1949dd3ac2d176b7239e7f9313b40168
Exit a parse tree produced by DE6Parserscript.
[ { "docid": "2b5e9524a07644e09b71368fd822e810", "score": "0.50488806", "text": "exitScript(ctx) {\n\t}", "title": "" } ]
[ { "docid": "e011e6bb34873c9f6c64129b0b93827a", "score": "0.6539948", "text": "exit() {\n const [testNode] = this.getChildNodes();\n\n testNode.Traces.addDefaultTrace(testNode.path);\n const testTrace = testNode.traceCfg;\n\n // this.logger.debug(`[exit] ${this.debugTag}, ${!!testTrace}, ${th...
af5262b5749c23787f91ffb981974169
description figures out the the exact move for the computer to make, having already figured out the type of play the computer will make paramaters: simplifiedMatches (object) an object created from the "simplifyMatches" method typeOfPlay (string) the type of play the computer is looking to make (see method searchForPla...
[ { "docid": "06ac2732a6951e22576fd03c1428d887", "score": "0.6264438", "text": "function determineExactPlay(simplifiedMatches, typeOfPlay)\n{\n //combines horizontal, vertical, and diagonal matches, and splits the\n //resulting string into an array\n simplifiedMatches = simplifiedMatches.horizont...
[ { "docid": "93b3b20023878c24f3e45424683070d3", "score": "0.58293504", "text": "function searchForPlay(plays)\n{\n //all possible win combinations\n let matches = getPossibleMatches(plays);\n //a dumbed down version of possible win combinations (Basically, a count\n //of numbers of x's, o's, ...
9a9ea01da357cfd6d75e1af4d5336299
Retrieve a function object by hardware id, updating the indexes on the fly if needed
[ { "docid": "014d5f91a08bf347ab662321f57d64cf", "score": "0.0", "text": "function YAPI_setFunction(str_className, str_func, obj_func)\n {\n if(this._fnByType[str_className] == undefined)\n this._fnByType[str_className] = new YFunctionType(str_className);\n return this._fnByTyp...
[ { "docid": "33f93ea4926265ad4b8b10cd513ed76b", "score": "0.6064808", "text": "function YFunction_nextFunction()\n { var resolve = YAPI.resolveFunction(this._className, this._func);\n if(resolve.errorType != YAPI_SUCCESS) return null;\n var next_hwid = YAPI.getNextHardwareId(this._clas...
7957128e6d44892200f0568222f5efb4
Creates a new Uint8Array based on two different ArrayBuffers
[ { "docid": "ec29ef640d85bc21891d47ce1f4d1521", "score": "0.6984923", "text": "function appendBuffer(buffer1, buffer2) {\n var tmp = new Uint8Array(buffer1.byteLength + buffer2.byteLength);\n tmp.set(new Uint8Array(buffer1), 0);\n tmp.set(new Uint8Array(buffer2), buffer1.byteLength);\n return...
[ { "docid": "97b1f6761e2ad256ce197f91dbcda1e0", "score": "0.77124184", "text": "function appendArrayBuffers(buffer1, buffer2) {\n let tmp = new Uint8Array(buffer1.byteLength + buffer2.byteLength);\n tmp.set(new Uint8Array(buffer1), 0);\n tmp.set(new Uint8Array(buffer2), buffer1.byteLength);\n return ...
51347e619e18f4c990d8f6b9cede72ab
Get a valid SAS for blob
[ { "docid": "3149c0de16b4ea361ba3ee751e432cb2", "score": "0.7142454", "text": "async getValidSASForBlob(blobURL) {\n if (this.sasCache[blobURL] && this.isSasStillValidInNext2Mins(this.sasCache[blobURL])) {\n return this.sasCache[blobURL];\n } else {\n return (this.sasCache[blobURL] = awai...
[ { "docid": "5d23f5bf9d3bda6ad62211c9df96f42e", "score": "0.7099312", "text": "function fetchSAS(filename) {\n return fetch('/sas', {\n method: 'POST',\n body: JSON.stringify({\n filename: filename\n }),\n headers: {\n 'Content-Type': 'application/json...
490190ef4a6ec0f96b108ce4e9f89322
const styles = require('./styles.css')
[ { "docid": "dd97251112ebb0b7e4c8f2325f17cabc", "score": "0.0", "text": "CallExpression (path, { file }) {\n const { callee: { name: calleeName }, arguments: args } = path.node\n\n if (calleeName !== 'require' || !args.length || !t.isStringLiteral(args[0])) {\n return\n }\n\...
[ { "docid": "d2d1c743a46bef28ee7199ff3f011ea9", "score": "0.6922376", "text": "get css() {\n return __webpack_require__(953).parsers.css;\n }", "title": "" }, { "docid": "2fe60b6775baea811d7809e61c7bedd1", "score": "0.6724737", "text": "function load (name) {\n styles = requi...
762e1014045bca30cb68c63c658b827a
Reset FORM validation errors
[ { "docid": "bf21c1edeee26d2261325129e40a84cf", "score": "0.0", "text": "function form_ok(myField)\n{\n\tmyField.className = myField.className.replace(/ form_error/,'');\n}", "title": "" } ]
[ { "docid": "ac7e8e1dc492d517d18f302c4b624741", "score": "0.84750265", "text": "function resetErrors() {\n hideError(firstForm);\n border(firstForm, colorGrey);\n\n hideError(lastForm);\n border(lastForm, colorGrey);\n\n hideError(emailForm);\n border(emailForm, colorGrey);\n\n hideError(birthdate...
a98827049f4ff339228c62175a8ad7de
add twitter bootstrap classes and color based on how many times tag is used
[ { "docid": "86f08279b33e734d49c4586493480c3c", "score": "0.5714418", "text": "function addTwitterBSClass (thisObj) {\n const title = jQuery(thisObj).attr('title')\n if (title) {\n const titles = title.split(' ')\n if (titles[0]) {\n const num = parseInt(titles[0], 10)\n if (num > 0) {\...
[ { "docid": "a0c1f07ea9cfa5b88d5d6bc054109245", "score": "0.6162837", "text": "tagClass(tag) {\n let className = \"tag\";\n if (this.state.tags.indexOf(tag) !== -1) {\n className += \" tag-active\";\n }\n return className;\n }", "title": "" }, { "docid": "32944d4a86b81a421ba...
8e06de82e8bacf4c5deaaf78d4c668bd
Method responsible to delete a tool
[ { "docid": "d80f6ff03a5e682453d8508f21ff8f42", "score": "0.7371454", "text": "async function deleteTool(id) {\n await api.delete(`/tools/${id}`)\n fetchData()\n }", "title": "" } ]
[ { "docid": "fa402795af2871c148ce8a3c0d5802dc", "score": "0.71555865", "text": "function DeleteTool(context, root) {\n this.context = context;\n this.root = root;\n this.pickManager = g_pickManager;\n this.selectedObject = null;\n}", "title": "" }, { "docid": "25f2e3f1e203ece8449a83aecb60...
b62b3a913fcdfbea94bba6061927f5f8
Guessing Game Functions Generate the Winning Number
[ { "docid": "6e83a895b4e4c71510fd3286d8b8f5e3", "score": "0.7552398", "text": "function generateWinningNumber(){\n\treturn Math.floor(Math.random()*100);\n}", "title": "" } ]
[ { "docid": "d1fad7f9151fda3504242e0cfd42d008", "score": "0.7871035", "text": "function generateWinningNumber(currentGame){\n\tcurrentGame.winningNumber = Math.floor((Math.random() * 100) + 1);\n}", "title": "" }, { "docid": "7c2a1f761577d9784e4a0f692f70298f", "score": "0.7706258", "t...
16e1c4d4bec82a0ecc9e9abe889b37d6
Expression parsing These nest, from the most general expression type at the top to 'atomic', nondivisible expression types at the bottom. Most of the functions will simply let the function(s) below them parse, and, if the syntactic construct they handle is present, wrap the AST node that the inner parser gave them in a...
[ { "docid": "ebc787269c963f90b6095c13c3f09fa1", "score": "0.6219504", "text": "function parseExpression(noComma, noIn) {\n var expr = parseMaybeAssign(noIn);\n if (!noComma && tokType === _comma) {\n var node = startNodeFrom(expr);\n node.expressions = [expr];\n while (eat(_comma)) n...
[ { "docid": "1c0c0adf408bda60031cdd196860593e", "score": "0.66974956", "text": "parseExpression(inst, ignore_chunks) {\n ignore_chunks = ensureArray(ignore_chunks)\n inst = removeEmptyLines(inst)\n\n if(!inst)\n return false\n\n let exp = false\n\n if(!~ignore_chunks.indexOf('assign')...
48735c13af45cb4aedf5c9d03bc6936d
fetch already authentciated user
[ { "docid": "d2f6bd32de5c74f7e3b7b5a39fcdc070", "score": "0.0", "text": "function fetchUser() {\n return function (dispatch) {\n dispatch({\n type: _types__WEBPACK_IMPORTED_MODULE_3__[/* FETCH_FIREBASE_USER_STARTED */ \"q\"]\n });\n return Promise.resolve(_firebase_firebase__WEBPACK_IMPORT...
[ { "docid": "f055454a736f73f806fa1e25f4faa850", "score": "0.69458616", "text": "function getUser () {return user;}", "title": "" }, { "docid": "bf0933110855bb9ed01042952929060b", "score": "0.6836691", "text": "fetchUser() {\n\t\tconst user = _userFromAccessToken(_accessToken);\n\t\tre...
0b3720f28920e648578f4df089b92e47
Zip the elements of the iterables passed
[ { "docid": "c3287fcd631a087e6c7c8f6a1400cb6d", "score": "0.72096235", "text": "function iterZip(...iters) {\n let arrayIters = [];\n const iterL = iters.length;\n let result = [];\n let smallestIter;\n\n // convert the iterables to arrays\n for (let i = 0; i < iterL; i++) {\n arrayIters.push([....
[ { "docid": "d5e58470487c3102d2cd33c8a295e3c6", "score": "0.6925441", "text": "function zip(arrays) {\n return arrays[0].map(function(_, i) {\n return arrays.map(function(array) {\n return array[i]\n })\n });\n}", "title": "" }, { "docid": "4bc5f0483ae08aedadc02...
9d80091d5ad84d2ec25037a43a3bdf53
Standard/simple iteration through an event's collected dispatches, but stops at the first dispatch execution returning true, and returns that id.
[ { "docid": "65a54c06a9a5bbbd7abe09ecaeb434f3", "score": "0.6410181", "text": "function executeDispatchesInOrderStopAtTrueImpl(event){var dispatchListeners=event._dispatchListeners;var dispatchIDs=event._dispatchIDs;if(\"production\"!==process.env.NODE_ENV){validateEventDispatches(event);}if(Array.isArra...
[ { "docid": "a43372f72464a3fe57df1bf7f4630fd4", "score": "0.6556344", "text": "function executeDispatchesInOrderStopAtTrueImpl(event){var dispatchListeners=event._dispatchListeners;var dispatchIDs=event._dispatchIDs;if(true){validateEventDispatches(event);}if(Array.isArray(dispatchListeners)){for(var i=0...
d7cf1946b05f720d5fad0b1dfd967209
Typedefs.Backend.Typedefs.Backend.Haskell.Haskell, HsType, True implementation of Typedefs.Backend.ASTGen, method generateTermDefs, genHaskell
[ { "docid": "00f25b2b6c0a62a70c5832cc095ff591", "score": "0.6728469", "text": "function Typedefs__Backend__Typedefs__Backend__Haskell___64_Typedefs__Backend__ASTGen_36_Haskell_58_HsType_58_True_58__33_generateTermDefs_58_0_58_genHaskell_58_0($_0_arg, $_1_arg, $_2_arg){\n \n const $cg$3 = $_1_arg.$2...
[ { "docid": "4905b88a9d985475070cc546e82b29f7", "score": "0.6306183", "text": "function Typedefs__Backend__Typedefs__Backend__Haskell___64_Typedefs__Backend__ASTGen_36_Haskell_58_HsType_58_True_58__33_generateTermDefs_58_0($_0_arg){\n return Typedefs__Backend__Utils__runMakeDefM(null, null, Typedefs__...
b24fb2ef40b9347e6412cee2bb4bc7d8
Update view using JSON
[ { "docid": "48bb627f3323e1ecbfa9ee3b8c9ecf01", "score": "0.7253162", "text": "function updateWithJson(ctx, url) {\n var xhttp = new XMLHttpRequest();\n xhttp.onreadystatechange = function() {\n if (this.readyState == 4 && this.status == 200) {\n // Update view with current json\n updateVi...
[ { "docid": "da3c09ed3833c70420d13f030095dcee", "score": "0.67852074", "text": "@action updateFromJson(json) {\n console.log('I will update myself based on JSON values');\n this.title = json.title;\n this.views = json.views;\n this.front_delta = json.front_delta;\n this...
d245ccc49315737105ab65dd7e3bbde9
helper function for prettyprinting
[ { "docid": "ae0d0453a450175d9a4acb3173fbd23b", "score": "0.0", "text": "log_matrix(m) {\n for (let r = 0; r < m.length; r++) {\n let row = '';\n for (let c = 0; c < m[r].length; c++) {\n row += `${m[r][c]}, `;\n }\n console.log(row);\n }\n console.log('\\n');\n }", ...
[ { "docid": "f9de94f2795854d7ac3df14bcbebf9d2", "score": "0.7112284", "text": "pretty(indent_str = \" \") {\r\n return this._pretty(0, indent_str).join(\"\");\r\n }", "title": "" }, { "docid": "10c4855de01f79b10e2ef90e3375a614", "score": "0.71048206", "text": "function pretty(a) ...
ff8998213b50af283b50fc3c64bd229a
Function declarations A function that will randomly return either 'Rock', 'Paper' or 'Scissors'. Using this function in the game makes the computer play
[ { "docid": "555c7b9f8ec66b72ff55c843f3678db6", "score": "0.83065844", "text": "function computerPlay () {\n \n possibleComputerChoices = [\"rock\", \"paper\", \"scissors\"];\n \n computerChoiceIndex = Math.floor(Math.random() * possibleComputerChoices.length); \n \n...
[ { "docid": "25962496169530a28765af6ac7bf7e3d", "score": "0.8781202", "text": "function computerPlay(){\n\tlet compChoice = Math.floor(Math.random()*3) + 1;\n\tif(compChoice == 1){\n\t\treturn 'Rock';\n\t} else if(compChoice == 2){\n\t\treturn 'Paper';\n\t}\n\treturn 'Scissors';\n}", "title": "" },...
82c51a48f5d81267d28abe6abadcf7bc
3) Create a function named addTax that will accept an array like your myPizzaOrder array as a parameter. The function will insert an element into the array between the 2nd and 3rd element in the array that is equal to the 2nd element multiplied by 0.0925 and rounded to the nearest penny (ie 0.95, 0.79, 0.42, etc). The ...
[ { "docid": "752de3ae75cf207266f3c64ac41ca2c4", "score": "0.7731131", "text": "function addTax(arr){\n arr.splice(2, 0, (Math.round(arr[1]*0.0925*100))/100);\n return arr;\n}", "title": "" } ]
[ { "docid": "356f8be7c13d16d184bdb0f07117e163", "score": "0.70821965", "text": "function add_tax(amount)\n{\n return Math.round(113.0 * amount) / 100.0;\n}", "title": "" }, { "docid": "91c7da5235fa08d14123a694eb6e284e", "score": "0.64592755", "text": "function calculateTotPrice(tot...
c0d1e5f54a8f9b1afc4e13181c7391a6
A replacer that deals with non hex backslashes.
[ { "docid": "9946c5a3d8fd28aba490247ec53bd228", "score": "0.6660146", "text": "function normEscs(x) {\n var out = '';\n // x could be '\\\\' in which case we return '' or it could be '\\\\\\r\\n' in\n // which case we escape both.\n // In the normal case where the length is 2 we end up turnin...
[ { "docid": "0aff7bd141b5576c8c485a267c634576", "score": "0.6630999", "text": "function replaceBackslashes(str) {\n const slash = require(\"slash\");\n return slash(str);\n}", "title": "" }, { "docid": "9ad5b1d1344088dee1840be600c7907a", "score": "0.6573348", "text": "function e...
8f162415ca042b601c3ed15d0668f61d
db query functions file default logout procedure can be used to help prevent unauthorized access
[ { "docid": "7e016b45e6f8776041272340adc348ba", "score": "0.0", "text": "function logout(req, res) {\n req.session.loggedIn = false;\n req.session.destroy(); // remove session\n res.redirect('/'); // return to login screen\n}", "title": "" } ]
[ { "docid": "da24fda40da012adc1789c2643109617", "score": "0.7447077", "text": "function logout() {\n\n }", "title": "" }, { "docid": "299a5db29df3d5a19d3c94e0b2bd0e48", "score": "0.7034995", "text": "function logoutUser() {\n logout();\n }", "title": "" }, { "docid"...
3c0e24212bc6523ea778edf066e79de8
Time: O(nm) where n is size of arr1, m size of arr2 Space: O(n) n is the larger array
[ { "docid": "092a1cfc1f587d61e5776e20cc8328dd", "score": "0.0", "text": "function intersection2(arr1, arr2) {\n const set1 = new Set()\n for (let i = 0; i < arr1.length; i++) {\n set1.add(arr1[i])\n }\n const set2 = new Set()\n for (let i = 0; i < arr2.length; i++) {\n set2.a...
[ { "docid": "3fdbd4acf076a935f9e97221f34959f2", "score": "0.7283548", "text": "function merge(arr1, arr2) {\n let i = 0, j = 0, k = 0, m = arr1.length, n = arr2.length;\n let sol = [];\n while (i < m && j < n) {\n if (arr1[i] <= arr2[j]) {\n sol.push(arr1[i]);\n i++;...
c0b049fd3e51421929211a2e04d66ef9
Computes an "ideal" category based on the absolute bar thickness or, if undefined or null, uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This mode currently always generates bars equally sized (until we introduce scriptable options?).
[ { "docid": "979a68d93ef19f4aa7316c327b590809", "score": "0.6180315", "text": "function computeFitCategoryTraits(index, ruler, options) {\n\tvar thickness = options.barThickness;\n\tvar count = ruler.stackCount;\n\tvar curr = ruler.pixels[index];\n\tvar size, ratio;\n\n\tif (helpers.isNullOrUndef(thickne...
[ { "docid": "e591baace59f20a7cd3b99026add433d", "score": "0.6311267", "text": "function computeFitCategoryTraits(index,ruler,options){var thickness=options.barThickness;var count=ruler.stackCount;var curr=ruler.pixels[index];var size,ratio;if(helpers.isNullOrUndef(thickness)){size=ruler.min*options.categ...
547289875f6562da2fa2c557cfd34f58
spin reticle to green cross to show we can shoot
[ { "docid": "d95bf13610250d939d8b9dd7aaaba02c", "score": "0.6946503", "text": "startShoot(delta){\n if(delta>1)delta = 1;\n this.cross.rotation.z = (1-delta)*Math.PI/4;\n this.elements.forEach( element => {\n element.material.color.r = (1-delta)*255;\n element.material.color.g = delta ...
[ { "docid": "30e32f07dfe89dbbbdc815825f896d0e", "score": "0.66756755", "text": "stopShoot(delta){\n if(delta>1)delta = 1;\n this.cross.rotation.z = delta*Math.PI/4;\n this.elements.forEach( element => {\n element.material.color.g = (1-delta)*255;\n element.material.color.r = delta * 25...
d8c4bccc6a7eae5d8d1a0fa815c7eb3d
additional functions for events
[ { "docid": "5d90318c07411ff2812df60bc4f53f7a", "score": "0.0", "text": "function history() {\n\t\tconst operations = [];\n\n\t\treturn function (expression, answer, historyBlock) {\n\t\t\tconst expObject = { expression: expression, answer: answer };\n\t\t\toperations.push(expObject);\n\t\t\thistoryBlock...
[ { "docid": "5f7fd974c9f35c2efe07cf88b6527044", "score": "0.75554854", "text": "_addEvents () {\n\n }", "title": "" }, { "docid": "2b3b41097d1d97322da9140e50295517", "score": "0.726781", "text": "_bindEvents()\n {\n \n }", "title": "" }, { "docid": "4a1a553b2...
015e820a9551cac930087352c41e5498
Resets the current search value
[ { "docid": "018b14c5591b2d9af1a1dd49b93a8f26", "score": "0.0", "text": "_reset(focus) {\n this._formControl.setValue('');\n if (focus) {\n this._focus();\n }\n }", "title": "" } ]
[ { "docid": "e412af38544a2ae623b4dcd37debd0c0", "score": "0.83444774", "text": "function resetSearch(){\n setSearching(false);\n }", "title": "" }, { "docid": "f3390c0b05506572be4d1846ff6c420e", "score": "0.79071116", "text": "function resetSearch(){\n setSearchField(\"all\");\...
2aef6c3e8aa2922c7ad03be975bb15e2
Resets idCounter to 0. Used for SSR.
[ { "docid": "cbb10d35288ae0cf641a4c562e722ef4", "score": "0.87036854", "text": "function resetIdCounter() {\n idCounter = 0;\n }", "title": "" } ]
[ { "docid": "a3bdcb6cfe656fbfe7d1d2694d6a93f2", "score": "0.86074674", "text": "function resetIdCounter() {\n idCounter = 0;\n}", "title": "" }, { "docid": "a3bdcb6cfe656fbfe7d1d2694d6a93f2", "score": "0.86074674", "text": "function resetIdCounter() {\n idCounter = 0;\n}", "titl...
6d391640b11e637b2e7dbf81f4ea02d0
Private static helpers treated below as private instance methods, so don't need to add these to the public API; we might use a Relator to also get rid of nonstandard public properties
[ { "docid": "9e714957b99fe997dc1a1e0782ae60fd", "score": "0.0", "text": "function appendElement (hander,node) {\n if (!hander.currentElement) {\n hander.doc.appendChild(node);\n } else {\n hander.currentElement.appendChild(node);\n }\n}//appendChild and setAttributeNS are preforman...
[ { "docid": "b5abf796641f79b86a4fe2101401e48d", "score": "0.6871182", "text": "static GetPropertyModifications() {}", "title": "" }, { "docid": "b95019876e0e9edc1d3493da7630026c", "score": "0.6220853", "text": "static get properties() {\r\n return {\r\n };\r\n }", "ti...
fc8f758e66a68c3b5604f0eb94645ab8
USEFULL FUNCTIONS// check if a raw belongs to a matrix for XYZ
[ { "docid": "d1e12df5390892cdf3fd92cbca15d757", "score": "0.0", "text": "function contains(points, onePoint) {\n for (var _i = 0, points_3 = points; _i < points_3.length; _i++) {\n var point = points_3[_i];\n if (mathis.geo.distance(point, onePoint) < ...
[ { "docid": "aa3959622f03447e7947121673b990d8", "score": "0.67715275", "text": "canBePlacedInMatrix(x, y) {\r\n if ((x > this.width || x < 0) || (y > this.height || y < 0)) { // object is not in matrix\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }...
d22ac1784172f71ebb4992832724aac6
Get data for suggestions
[ { "docid": "cfccecd5e0bdfcbe17be32abaca8827b", "score": "0.66032654", "text": "_getSuggestionsData(str) {\n\t\tconst searchText = str.trim().toLowerCase() || null;\n\t\t// If new search text is subset of previous search text use previously filtered dataset\n\t\tconst dataStore = (searchText && searchTex...
[ { "docid": "529a46d1942b407f579b87a149becdff", "score": "0.7471437", "text": "function getSuggestions() {\n let query = document.querySelector(\"input[name='search']\").value;\n if (query !== \"\") {\n fetch(LYRICS_API_BASE + \"/suggest/\" + query)\n .then(fetchSucceeded)\n .the...
09ef7192b265443432d5905a873c044b
Called by templates to decrease redundancy
[ { "docid": "78eab7c30ce2ac9e615de4a897c74d53", "score": "0.0", "text": "function getVueOptions(name) {\n\tconst opt = {\n\t\tname: name,\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tperson: yaml.load(PERSON),\n\t\t\t\tterms: terms\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\tlang() {\n\t\t\t\tconst defaultLang = ...
[ { "docid": "edda1937949a08ecc9e27249168c45cb", "score": "0.61212194", "text": "beforeParseTemplate(){}", "title": "" }, { "docid": "7f0ccb1b98928a0110c5885131ae4a2b", "score": "0.583069", "text": "function DragHelperTemplate() { }", "title": "" }, { "docid": "7f0ccb1b9892...
5cad0028925fb113f2d15ca87c1df660
This component represents a question row renderer in the Insert Survey page. It contains the buttons used to move up, move down and delete a question.
[ { "docid": "70045e675ef3c4d3c025cee9254e55c0", "score": "0.7071196", "text": "function InsertSurveyRow(props) {\n\n\tconst moveUp = () => {\n\t\tlet q = [...props.question];\n\t\tif (props.id === 0) {\n\t\t\tprops.setErrorMessage(\"The element is at the top\");\n\t\t} else {\n\t\t\t// Swap with the elem...
[ { "docid": "679528b55f09e7bf280dbf2bce3dcdbf", "score": "0.60510397", "text": "function renderRow ( questionText, questionIndex ) { \n \n var questionRow = \"\";\n\n questionRow = `<div class=\"form-group\"><div class=\"row border mt-3 bg-light\"><div class=\"col-12 col-sm-6\"> ` + \n ...
44a798f3ac4600c3b9508eb08d048dab
This function loads the Line dropdown list with values
[ { "docid": "bb51e4428e70460750e505624fb69b7f", "score": "0.775814", "text": "function loadLineDD(line){\n\n \tvar label = \"\";\n\t\n\tlineList = document.getElementById('lineList');\n\t\n\t//Add line to dropdown\n var newOption = document.createElement('option');\n\tif(line.numPoints > 1){\n\t\tlabe...
[ { "docid": "5451e6fd88a4c75cc74dc2614968f89d", "score": "0.6830904", "text": "function load_lines()\n{\n\tconsole.log('Showing all lines');\n\t\n\tvar lines_list = new UI.Menu({ sections: [{ items: [{ title: 'Loading...'}] }] });\n\tlines_list.show();\n\t\n\tvar lines = ['rd', 'or', 'yl', 'gr', 'bl', 's...
b8694bf450fda36a34398bd8e92eff88
Summary: Adds a header element to the body of the html document with the specified level and content. Parameters: content: the text content of the header level: the level of the header (can be from h1 to h5). If the value is not a valid number or the passed in parameter is too high, defaults to h3. Return: undefined (i...
[ { "docid": "a8b3087f0ef013eeaf471ac722979e61", "score": "0.5034261", "text": "function addHeader() {\r\n\r\n}", "title": "" } ]
[ { "docid": "88db059fa3cb45e5e3094b9fb3f48d3c", "score": "0.7054714", "text": "header(level, text, options) {\r\n let header = { 1: \"h1\", 2: \"h2\", 3: \"h3\", 4: \"h4\", 5: \"h5\", 6: \"h6\" }[level];\r\n if (!header)\r\n throw Error(`Unrecognized level '${level}' (expected 1,...
1421b38e658fba261f119b822f6e9c4c
Defining a function for toggling nav
[ { "docid": "ac135ba788d1969db71725a96ad4cda0", "score": "0.7160069", "text": "function toggleNav() {\n burger.classList.toggle(\"fa-bars\");\n burger.classList.toggle(\"fa-times\");\n nav.classList.toggle(\"nav-active\");\n}", "title": "" } ]
[ { "docid": "fa17041c77660928da08ceee69446841", "score": "0.84066725", "text": "function toggleNav() {\n if (nav_state === true) {\n closeNav();\n } else {\n openNav();\n }\n}", "title": "" }, { "docid": "77dc15c1d713ad1e2e4980b3ade1ffb4", "score": "0.7887025", ...
46ee0167c7e8c6657bc7c0d1a60954e6
Get all cultivation result data
[ { "docid": "07c6c2912f4fb15c4f9ef8d83054dff6", "score": "0.73452926", "text": "function getAllCultivationResultData() {\n\t\t// make Ajax call to server to get data\n\t\t$.ajax({\n\t\t\turl: \"getCultivationResultData\",\n\t\t\tdata: { \"farmId\": farmIdGlobal, \"areaId\": selectedAreaIdGlobal, \"kindId...
[ { "docid": "b16e2bae857e7d3855cf5c25f409b1d2", "score": "0.66934454", "text": "function getResults() {\n Traitify.get(\"/assessments/\" + assessmentId + \"?data=blend,types,traits\").then(function(res) {\n console.log(res);\n traitify = Traitify.ui.load(\"results\", assessme...
c99b59667d26921fe91fa776e43a6f35
Detects whether an element's content has horizontal overflow
[ { "docid": "96a8291cc2a4cfe79f0721910877f4c0", "score": "0.85750824", "text": "function hasHorizontalOverflow(element) {\n return element.clientWidth < element.scrollWidth;\n}", "title": "" } ]
[ { "docid": "02232d19a5824a2c0709accfbd79946e", "score": "0.8605328", "text": "function hasHorizontalOverflow(element) {\r\n return element.clientWidth < element.scrollWidth;\r\n}", "title": "" }, { "docid": "02232d19a5824a2c0709accfbd79946e", "score": "0.8605328", "text": "functio...
9857e0f56eb3ec5a2dfec9d8df8c3ef8
Linear Algebra Multiply two tensors and returns the result as a tensor. For 2D tensors, this is equivalent to matrix multiplication (matMul). For tensors of higher ranks, it follows the Theano behavior, (e.g. `(2, 3) (4, 3, 5) > (2, 4, 5)`). From the Theano documentation: For N dimensions it is a sum product over the l...
[ { "docid": "b0e06f8b055f4845c6db83c4f0a8ddf1", "score": "0.6725363", "text": "function dot(a, b, activation, bias) {\n if ((a.rank < 2) || (b.rank < 2)) {\n throw new errors_1.NotImplementedError(\"dot requires both inputs to be rank >= 2\" +\n (\" but got x shape = \" + a.shape + \...
[ { "docid": "f08f86e8d9cf53684e402d57f724ef49", "score": "0.6781496", "text": "function matrixMultiply(a, b) {\n var bCols = transpose(b);\n\n return a.map(function (aRow) {\n return bCols.map(function (bCol) {\n return dotProduct(aRow, bCol);\n });\n ...
1f11bb79a24bba498515d654b10199f0
STEP 2 LOAD JS Modules
[ { "docid": "5cd87939a2dee5351e7b3b8d79fee93d", "score": "0.0", "text": "function initScripts(_data){\n\t$('.C_LoaderText').text(\"Initializing scripts.\");\n\tcourseData = _data;\n\t////console.log(data);\n\n\t// Create new ieUserAgent object\n\tvar ieUserAgent = {\n\t init: function () {\n\t ...
[ { "docid": "54282166765a6160a1f7fad359b81222", "score": "0.6826816", "text": "function loadModule(a){\n\tfor(var i=0;i<a.length;i++){\n\t\tdocument.write('<script src=\"../modules/'+a[i]+'\"><\\/script>');\n\t}\n}", "title": "" }, { "docid": "a2e120573bd7a4ddd713bc31d84fab55", "score": "...
fcd9a8e0f7a6cbc83f4e13126b47e2f7
Loads loading bar and fires up loader
[ { "docid": "83134e3ae79c9ede8b9e0fbd455e27af", "score": "0.0", "text": "function Boot()\n{\n this.preload = function()\n {\n game.load.image('load_bar' , './res/assets/preloader.gif');\n }\n \n this.create = function()\n {\n game.scale.forceLandscape = true;\n ...
[ { "docid": "99079aebae2d5651163fa538fbda7ae9", "score": "0.78933316", "text": "function startLoading() {\n\tvar loadingBar = new LoadingBar();\n\tglobal.set('loadingBar', loadingBar);\n\n\tloadingBar.preloadImage(continueLoading); // have to actually preload the (go figure) loading background\n}", "...
d3a019f72ebf442a9c9c957e362fe77e
Triggered when reset icon in the dashboard is clicked. May be clicked in middle of game.
[ { "docid": "57989a6547be9c5641bce7bea79e76dd", "score": "0.6628561", "text": "function resetButtonHandler(mgo) {\n\tif (mgo.testMode) {console.log('resetButtonHandler:');}\n\n\tevent.stopPropagation();\n\n\t// REMOVE THE BLINK HERE\n\thighlightBorder('a.reset', 'reset-blink-red', false, mgo);\n\n\tmgo.t...
[ { "docid": "2bb271ab4a0155453c6e24d38b7d106b", "score": "0.8149632", "text": "function _handleResetClick() {\n game.reset();\n }", "title": "" }, { "docid": "b3894303c2305a96a2e803b932e0ebbf", "score": "0.78045887", "text": "function Reset() {\n console.log(\"Reset Click...
a1d6554ca0797885efc9159d8f65acc6
displaying, only array elements that are more than 10; filtering
[ { "docid": "7bc9517fff269a580e64b59f67077cd2", "score": "0.7526953", "text": "function great(){\n var isGrt= arr.filter(function (num){\n return num>=10;\n });\n document.getElementById(\"p2\").innerHTML= \"NUMBERS GREATER THAN 10 IN THE ARRAY: \"+isGrt;\n\n}", "title": "" } ]
[ { "docid": "5ffd7bbfeb0a2908bbb8ce31b38c8ace", "score": "0.69725424", "text": "function filterArr(array) {\n const filtered = [];\n for (let i = 0; i < array.length; i++) {\n if (array[i] >= 5) {\n filtered.push(array[i]);\n }\n }\n return filtered;\n}", "title": "" }, { "doci...
34113844754bad5b084157af37617ede
Provides: caml_raise_not_a_dir Requires: MlBytes, caml_raise_sys_error
[ { "docid": "8f69be0a1e5576fc3802e0a1e6b3f01c", "score": "0.78809327", "text": "function caml_raise_not_a_dir(name){\n name = (name instanceof MlBytes)?name.toString():name;\n caml_raise_sys_error (name + \": Not a directory\");\n}", "title": "" } ]
[ { "docid": "5313531a0ba0e6c24f648db91b2bb5c9", "score": "0.68168986", "text": "function caml_raise_no_such_file(name){\n name = (name instanceof MlBytes)?name.toString():name;\n caml_raise_sys_error (name + \": No such file or directory\");\n}", "title": "" }, { "docid": "91d2bbb291ebd762e...
595bd10ff9276ca10b4c1ac4c95d8e3e
change img alt text
[ { "docid": "d9dbd7ad24ce2cc5be34f3b67d48429a", "score": "0.5594732", "text": "function editImg(imgfile, imgdesc) {\n document.forms['newImgAlt']['imgDescription'].value = imgdesc;\n $('#imgAltEdit').css({'top':event.pageY,'left':event.pageX}); \n $('#imgAltEdit').show(); \n ...
[ { "docid": "06ad0ab8dcdc8b4b330b9ddd25fba0c5", "score": "0.77960765", "text": "function viewAltText() {\n $(\"td img\").each(function () {\n var thisImage = $(this);\n var altText = thisImage.attr(\"alt\");\n var imgP = document.createElement(\"p\");\n var imgTxt = document.createT...
ff95042c1a613712ebee3c88906d68f0
var babelify = require('babelify');
[ { "docid": "18827dd57bea398c6964b50ed03d1052", "score": "0.0", "text": "function errorHandler (err) {\n util.log(util.colors.red('Error'), err.message);\n this.end();\n}", "title": "" } ]
[ { "docid": "1d02c38b63d7add98a077c021665f449", "score": "0.7269151", "text": "function babelifyTransform() {\n var presets = SCRIPT_OPTS.babelify.presets;\n // Attempt to install presets\n presets.forEach((preset) => {\n Dependencies.requireInstall(`babel-preset-${preset}`)\n });\n return babeli...
39dd72896378edc7594a27184e89af00
Assign colors to grids when required
[ { "docid": "85659cf2785210361876ebf6470a9a0c", "score": "0.0", "text": "function assignColor()\n{\n for(var i=0;i<squares.length;i++)\n {\n squares[i].style.backgroundColor =colors[i];\n \n // add Event listner to all div squares\n squares[i].add...
[ { "docid": "bfcce261b0a6d824736951387e87fb64", "score": "0.7650118", "text": "function setGridColor2(data, row, column, color){\n \n}", "title": "" }, { "docid": "2550e6fb0509bae3a99bd40a7f187576", "score": "0.7350364", "text": "function colorGrid() {\n\t$(\"#pixel_canvas tr td\").c...
823aeae0ab64f89a89d79cb887e83afa
Loop de desenho dos frames
[ { "docid": "1c97455b71295bdfd5f913bbeea650fb", "score": "0.0", "text": "function draw() {\n ship.move(); \n controller.watchTheHour(sky);\n \n // Para entender como funciona a função forEach veja: \n // https://clovisdasilvaneto.github.io/explorando-javascript-filter-reduce-map-every-some-e-fo...
[ { "docid": "9b9a161e3bdd6e8864fc93ff054fe6d5", "score": "0.72342825", "text": "function stepFrames(e) {\n\n\tgifContainers.each(function(index){\n\t\tif ($(this).attr('data-speed') > 0) {\n\t\t\tmod = $(this).attr('data-speed');\n\t\t} else {\n\t\t\tmod = 4;\n\t\t}\n\t\tpos = ($(this).offset().top - win...
84b6eb008bbdf9b332dea21c943e1946
A table can have rows.
[ { "docid": "5a3f69a077f41643ee09542754f6b90e", "score": "0.6102319", "text": "function TableRow(props) {\n var active = props.active,\n cellAs = props.cellAs,\n cells = props.cells,\n children = props.children,\n className = props.className,\n disabled = props.disabled,\n ...
[ { "docid": "9c5a95d66bc3b68661e089f8d52c7cb2", "score": "0.6901306", "text": "function Table() {\n this.columns = null; // written with the first row\n this.rows = [];\n }", "title": "" }, { "docid": "8503582b4bd5ff929f3b22fe6a17a3fe", "score": "0.67793643", "text": "function ...
8acb4e737b3d1ee3dc276199cd1bcc03
Dynamically Add New Field article
[ { "docid": "ea21ae9d08415970f6c8589067a1c2e3", "score": "0.5840132", "text": "addarticleRow() {\n this.article = new _app_modals_premiumprofile__WEBPACK_IMPORTED_MODULE_9__[\"article\"]();\n const control = this.premiumMemberForm.controls['articleRows'];\n control.push(this.initarti...
[ { "docid": "07fc59801d5c4b47f9af5dc73ddc85db", "score": "0.6732993", "text": "function add_fields(link, association, content) {\n var new_id = new Date().getTime();\n var regexp = new RegExp(\"new_\" + association, \"g\")\n $(link).up().insert({\n before: content.replace(regexp, new_id)\n });\n}"...
e867d090d2524a570101fa596b9c7279
The Buffer constructor returns instances of `Uint8Array` that have their prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of `Uint8Array`, so the returned instances will have all the node `Buffer` methods and the `Uint8Array` methods. Square bracket notation works as expected it returns a si...
[ { "docid": "e7e70226a03d0ef9dc14e6d8fbcb7483", "score": "0.0", "text": "function Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n...
[ { "docid": "f4969cdb9157e6399717ff05cd035df6", "score": "0.7353769", "text": "function BufferToArrayBuffer () {\n return (new Buffer(this)).buffer\n}", "title": "" }, { "docid": "f4969cdb9157e6399717ff05cd035df6", "score": "0.7353769", "text": "function BufferToArrayBuffer () {\n r...
090eb4bf4d76449af9c12d67c23ef567
checks to see if missle hit or not
[ { "docid": "207d19198a7cebd80fd7611fe00b82b7", "score": "0.64121604", "text": "function missleCheck(coordCheck, checkArr) {\n var check0 = checkArr[0].position;\n var check1 = checkArr[1].position;\n var check2 = checkArr[2].position;\n var check3 = checkArr[3].position;\n var check4 = ch...
[ { "docid": "f59e47f9de4d98c03614e88ef7769b5a", "score": "0.72662807", "text": "hitNoHit() { return this.accuracy >= Math.random(); }", "title": "" }, { "docid": "82e9e6cc7766f3772f271d23212bdc19", "score": "0.6625765", "text": "function checkCrashedWalpurgis() {\n for (let i = 0; ...
40f763a9e606f00d9f81f2cd47cb2cfb
While `isCollapsed` is available on the Selection object and `collapsed` is available on the Range object, IE11 sometimes gets them wrong. If the anchor/focus nodes and offsets are the same, the range is collapsed.
[ { "docid": "75a2301c1afc1d534a498c92fd97e5b7", "score": "0.0", "text": "function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) {\n return anchorNode === focusNode && anchorOffset === focusOffset;\n}", "title": "" } ]
[ { "docid": "30e076f5dea711154ac8b724ab49d967", "score": "0.7644242", "text": "isCollapsed(range) {\n var {\n anchor,\n focus\n } = range;\n return Point.equals(anchor, focus);\n }", "title": "" }, { "docid": "d8c3fe36cef6314099f01c3277269e76", "score": "0.7555012", ...
0428b7b9c857f724dbf912ffc67e23ec
This sample demonstrates how to Updates tags of a Security Partner Provider resource.
[ { "docid": "3b7835e597287b45dbbf28c303dcb271", "score": "0.8075357", "text": "async function updateSecurityPartnerProviderTags() {\n const credential = new DefaultAzureCredential();\n const client = createNetworkManagementClient(credential);\n const subscriptionId = \"\";\n const resourceGroupName =...
[ { "docid": "3426e08c3a6c1623d9564152945687d4", "score": "0.58738506", "text": "function updateTechnologyProvider(id, body, scb, fcb) {\n request('PUT', '/technologyProviders/' + id, getHeaders(true), body, scb, fcb);\n }", "title": "" }, { "docid": "cf819e1366f471e5d142781935239339", ...
31f82f422b6eee73a29641e6f83748a0
fetches all the devices
[ { "docid": "2aff8a9827303a7e9ad3b9d7a65c5e65", "score": "0.6944296", "text": "function getAllDevices($scope) {\n\tmyCuiJs.getDevices()\n\t.then(function(response) {\n\t\t$scope.deviceList = [];\n\t\tresponse.forEach(function(fetchedDeviceFromList) {\n\t\t\tif(fetchedDeviceFromList.state.lifecycleState =...
[ { "docid": "c2713de38acf696e489ecb4d26e85aa0", "score": "0.7711439", "text": "function getDevices() {\n\t// Return early if we're already getting devices\n\tif(getting_devices)\n\t\treturn;\n\n\t// Flag that we're getting devices\n\tgetting_devices = true;\n\t_log('retrieving devices');\n\n\t// Make the...
bf14b45a74d75081ec512c1678c47ba4
=========================================================================== Save the match info and tally the frequency counts. Return true if the current block must be flushed.
[ { "docid": "745adf751257bd1075cb5cd6d7e4a7de", "score": "0.0", "text": "function _tr_tally(s, dist, lc)\n// deflate_state *s;\n// unsigned dist; /* distance of matched string */\n// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */\n{\n //var out_length, in_length, d...
[ { "docid": "0ca90ef8fb3f1efbd838cf2cc95ccf50", "score": "0.52413577", "text": "function increaseMatchCount() {\n gameData.matchCount++;\n }", "title": "" }, { "docid": "12214a13ee3db1f6f7c712fc675a2e8c", "score": "0.523929", "text": "function updateMatches(){\n checkMatc...
deb92a39f03acd7a5be1c902e429b6fe
a function to zip an array of arrays similar to zip in Python this code from stack exchange
[ { "docid": "7fb49a2f39695e483772a0a6fe251c12", "score": "0.80162704", "text": "function zip(arrays) {\n return arrays[0].map(function(_,i){\n return arrays.map(function(array){return array[i]})\n });\n}", "title": "" } ]
[ { "docid": "d56ffd027fd38c5e8347d86e22316f4f", "score": "0.80427647", "text": "function zip(arrays) {\n return arrays[0].map(function(_, i) {\n return arrays.map(function(array) { return array[i]; })\n });\n }", "title": "" }, { "docid": "2b61330afc5d9859393b6c385d7010d4", "score":...
3b2b4d27e57dbf2079b2d501aa49c4ee
Function to write tasks to screen
[ { "docid": "7a5d0efb81f5f02d34a4f4e67d67803f", "score": "0.5243783", "text": "function displayTasks(task) {\n \n if(typeof task.taskDesc == 'undefined') {\n throw 'This task has no task description!';\n }\n \n if(typeof task.completed == 'undefined') {\n throw 'This task has...
[ { "docid": "3114747be012ec92c4889f1ad35997f9", "score": "0.63786566", "text": "function printTasks(project) {\n let allProjects = JSON.parse(localStorage.getItem('projectArray'));\n let stick = findTasks(project);\n \n for (var i = 0; i < stick.length; i++) {\n let...
98cdeb23b219f1d5ddef1242e86cf5b6
Multiplies the two elements of GF(2^8) together and returns the result. See the Rijndael spec, but should be straightforward: for each power of the indeterminant that has a 1 coefficient in x, add y times that power to the result. x and y should be bytes representing elements of GF(2^8)
[ { "docid": "d2ff8d646ee41c550d5682009dadac28", "score": "0.7305053", "text": "function mult_GF256(x, y) {\n var bit, result = 0;\n \n for (bit = 1; bit < 256; bit *= 2, y = xtime(y)) {\n if (x & bit) \n result ^= y;\n }\n return result;\n}", "title": "" } ]
[ { "docid": "fcc246544038a581f9ae0a6d1b669208", "score": "0.71034324", "text": "function mult(x, y){\n let m = x.countBits();\n let n = y.countBits();\n let c = BB.makeBits(m + n);\n let carry = 0;\n let k = 0;\n for (let j = 0; j < n; j++){\n k = j;\n carry = 0;\n if (y....
15dd29c29947e97fc9fcba590dceb19d
format date using native date object
[ { "docid": "2923086ff129513837f903d316046337", "score": "0.0", "text": "function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] = formatFunctions[format] || makeFor...
[ { "docid": "6eba55e654070a28047bd4442b23aa8a", "score": "0.7389412", "text": "formatDate(date) {\n const d = new Date(date);\n let dd = d.getDate();\n if (dd < 10) dd = '0' + dd;\n\n let mm = d.getMonth() + 1;\n if (mm < 10) mm = '0' + mm;\n\n let yy = d.getFullYear();\n\n return dd...
bb000c9e04ec5068a6d4acddf5c93ba5
Validates a legend item and merges it with a default. Removes any invalid values and logs appropriate warnings.
[ { "docid": "6fe011eb2c593ac7411d18f532f593c8", "score": "0.638266", "text": "function getValidatedLegendItem(config) {\n var valid = new Validator().ofType('object').validate(config, 'Seat picker legend item');\n if (!valid || !config)\n return {};\n if ('show' in config) {\n var ...
[ { "docid": "f2d91990f59d3d8887703be9cc157eed", "score": "0.64948946", "text": "function mapLegendItemConfig(defaultConfig, config) {\n if (!config)\n return defaultConfig;\n var validatedConfig = getValidatedLegendItem(config);\n return __assign({}, defaultConfig, validatedConfig);\n}", ...
314e98cf78e0875c18e4bcf784ad3dc4
Function to display who the user is buying for
[ { "docid": "1f4217fd17fd8309cf3dda1474eb7227", "score": "0.5245261", "text": "function getWhoImBuyingFor() {\n $.getJSON('/js/snowmap.json', function(data) {\n console.log(JSON.stringify(data));\n $('#your-name').text(data[getNameCookie()]);\n });\n}", "title": "" } ]
[ { "docid": "5705f85dc9db656c6d9f1cfcb7cf6155", "score": "0.6045573", "text": "function User(arg){\n return arg.msg.channel.send('Nothing to show');\n }", "title": "" }, { "docid": "ee87be2ff729f8ccfed8450c84132561", "score": "0.586843", "text": "function showCustomerScreen(...
ddff6d4c228e76121f9d8198d107c753
Handle editing the verified email.
[ { "docid": "c1f0542ea3aa32be6f1c407ac8af80da", "score": "0.6970544", "text": "function editVerifiedEmail(results){\n var src = $('#email_item'),\n display = results.pending.data;\n\n src.find('.secondary-wrapper').show().find('.unverified').text(display);\n ...
[ { "docid": "f8bd1b2dc8932c31386535e0a119656d", "score": "0.68859565", "text": "function onEdit(e){\nsendEmail(); \n}", "title": "" }, { "docid": "094492db1681d448860885f47b9a1d57", "score": "0.68049556", "text": "function changeEmailRequestCallback(data){\n if(data.success...
d48c750dd3b099d29b88c40443a51127
Retrieve map of local references. The references are retrieved as a map of local reference name to element or directive instance.
[ { "docid": "b7bfe9ad818cc74a26198ff93a14ec4b", "score": "0.6753843", "text": "function getLocalRefs(target) {\n var context = loadLContext(target);\n if (context.localRefs === undefined) {\n context.localRefs = discoverLocalRefs(context.lView, context.nodeIndex);\n }\n ...
[ { "docid": "6bff725054c6b9c12abb3bfed7bbd036", "score": "0.69937795", "text": "function discoverLocalRefs(lViewData, nodeIndex) {\n var tNode = lViewData[TVIEW].data[nodeIndex];\n if (tNode && tNode.localNames) {\n var result = {};\n for (var i = 0; i < tNode.localNames.length; i += ...
36aa21af692349ba272291328aff6064
Removes all keyvalue entries from the list cache.
[ { "docid": "051c6c475583233022517635de972be3", "score": "0.0", "text": "function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}", "title": "" } ]
[ { "docid": "dba73f4aac72eb81c9ba057b88fe3b2d", "score": "0.7357779", "text": "function listCacheClear(){this.__data__=[];}", "title": "" }, { "docid": "dba73f4aac72eb81c9ba057b88fe3b2d", "score": "0.7357779", "text": "function listCacheClear(){this.__data__=[];}", "title": "" }...
0b56b0c53d8a97b59bb2d107bd357677
Constructs a new ParticipantResponse. The created participant.
[ { "docid": "c83e9fc4607c91a1435dbf8e156bec0e", "score": "0.7601044", "text": "constructor() { \n \n ParticipantResponse.initialize(this);\n }", "title": "" } ]
[ { "docid": "397981c86193aec555d1f028ac522c75", "score": "0.6406516", "text": "function Participant() {\n _classCallCheck(this, Participant);\n\n Participant.initialize(this);\n }", "title": "" }, { "docid": "84f4d70c73c613d50914c3bf5bc0a6cd", "score": "0.5872302", "text": "con...
6bdfd0195602d5fef4551f53023c37c6
this function starts our server and returns a Promise
[ { "docid": "464d800757292d3478a2ebcda0c41041", "score": "0.7044023", "text": "function runServer() {\n const port = process.env.PORT || 8080;\n return new Promise((resolve, reject) => {\n server = app.listen(port, () => {\n console.log(`Your app is listening on port ${port}`);\n resolve(s...
[ { "docid": "a9ed5a39639fa90f2e9b1afb4feae496", "score": "0.8446866", "text": "start() {\n return new Promise((resolve) => {\n let serverOpts = {express: this.express, config: config};\n this.server = new Server(serverOpts);\n resolve(this.server.start());\n })\n }", "title": ""...