query_id stringlengths 32 32 | query stringlengths 7 29.6k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
e172de7fa6738b1ea0b608cb740e65f2 | Follow accessibility specifications to remove visibility hidden style over the document | [
{
"docid": "4744a2ebc83ccaad0071bc1b54883f8c",
"score": "0.0",
"text": "function showDomElements() {\n headerWrapper.classList.remove('is-hidden')\n footerWrapper.classList.remove('is-hidden')\n heroWrapper.classList.remove(\"is-hidden\")\n hero.classList.remove('is-hidden')\n}",
"title": ""
}... | [
{
"docid": "a1698f719bfefeb4778961963c9a11c4",
"score": "0.69204307",
"text": "function a11y_hide(element) {\n\t element.attr({\n\t role: 'presentation',\n\t 'aria-hidden': 'true'\n\t });\n\t }",
"title": ""
},
{
"docid": "264a1e0ef8107cb210612128f5327e... |
9657fc31455332209b6119da92b6471c | Main methods/////////////////////////////////////////////////////////////////// gets file from aws storage s3 | [
{
"docid": "f79a9b4b01fbf7d2eb3150b618f7672a",
"score": "0.0",
"text": "async function getJSON(fileName) {\r\n try {\r\n let http_promise = getPromise(fileName);\r\n let response_body = await http_promise;\r\n\r\n // holds response from server that is passed when Promise is resol... | [
{
"docid": "630760d43fe5ac2193d47f9569e08481",
"score": "0.7343171",
"text": "function getFile(filekey){\n const downloadParams = {\n Key: filekey,\n Bucket:bucketName\n }\n\n return s3.getObject(downloadParams).createReadStream()\n}",
"title": ""
},
{
"docid": "94ec63d7f89b406852f4... |
5a49c45b0792a9d0cafb802ba38a878f | Hall cancel button click | [
{
"docid": "bde40fae169956ade9014610743b0ca9",
"score": "0.0",
"text": "handleCancel() {\n this.setState({\n selectedHallStandartPrice: null,\n selectedHallVipPrice: null,\n });\n }",
"title": ""
}
] | [
{
"docid": "03b83e897c1214d2ef5020b40b9eab6c",
"score": "0.7649614",
"text": "_onCancelClicked() {\n this._resetToDefault();\n this.dispatchEvent(new Event('Cancel'));\n }",
"title": ""
},
{
"docid": "1e9fa2c21c7c1de87d2da6b870292ef6",
"score": "0.75249165",
"text": "fun... |
bed61a5a2d5d99571a3c47f85b314a39 | at this point, the user has presumably seen the 'readable' event, and called read() to consume some data. that may have triggered in turn another _read(n) call, in which case reading = true if it's in progress. However, if we're not ended, or reading, and the length < hwm, then go ahead and try to read some more preemp... | [
{
"docid": "67779ecf4e40aa3fffbd2a69bdff2d9e",
"score": "0.0",
"text": "function maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n }",
"titl... | [
{
"docid": "a2fd87ef2c5ac346e3c946af2793352b",
"score": "0.6972088",
"text": "_read() {\n if (!this._emittedReadable && !this._isPushing) {\n this.once('readable', this._startPushing.bind(this));\n } else if (!this._isPushing) {\n this._startPushing();\n }\n }",
"title": ""
},
... |
8f550ce117488c919d190ccf608ac3af | Destroy this instance, returning the element to its previous state | [
{
"docid": "ec5171e5954257275c429ea4b270e816",
"score": "0.6602406",
"text": "destroy() {\n // Detach the event handlers\n this.detachEventHandlers();\n\n // Remove the bounded class from the element\n this.$element.removeClass('bounded');\n }",
"title": ""
}
] | [
{
"docid": "be30ef972a66757c14bf6d4692b641f6",
"score": "0.7902183",
"text": "destroy() {\r\n\t\tthis.element.remove();\r\n\t}",
"title": ""
},
{
"docid": "1dc0217323d1e938887ce28f76859f19",
"score": "0.78763896",
"text": "destroy() {\n\t\tthis.element.remove();\n\t}",
"title": "... |
a075fb36588eae0c684b37563c6bcd56 | set buffer room (take into account largest size var) | [
{
"docid": "0c8d8583806778a5520eb002e518c6c3",
"score": "0.54533964",
"text": "function set_buffer(axis) {\r\n \r\n var scale = vars[axis+\"_scale\"]\r\n var inverse_scale = d3.scale[vars[axis+\"axis_scale\"]]()\r\n .domain(scale.range())\r\n .range(scale.domain())\r\n \r\n va... | [
{
"docid": "2d61899abc0f281794e4dbd064bd1b07",
"score": "0.66188025",
"text": "function setInternalBufferSize(size) {\n // Resize the internal serialization buffer if needed\n if (buffer$1.length < size) {\n buffer$1 = buffer__WEBPACK_IMPORTED_MODULE_0___default.a.Buffer.alloc(size);\n }... |
c7155ab143ec35dd2709f43df781144a | FUNCTION changed and CODED BY llucbrell_Lucas C_Hobbes // | [
{
"docid": "c89232ad31c1cd4ee5dd4504e02ec5ea",
"score": "0.0",
"text": "function midiBemoles(file, lugar, i) {\n\n loadRemote(file, function(data) {\n midiFile = MidiFile(data);\n almacenb= almacenBemoles(midiFile);\n //control del tamaño del vex/vex stave size control ... | [
{
"docid": "db7e1b0668c63f3244d920e58b041970",
"score": "0.6810627",
"text": "function qgAzysV_bHje7HMBqh73wBw(){}",
"title": ""
},
{
"docid": "760ff52ce45bed29a18d8ba08b18fb9d",
"score": "0.64520246",
"text": "function FVc59gKagj6aTcQUH_blEFg(){}",
"title": ""
},
{
"doci... |
1a14ceb4477b37a24fac807567541cb9 | This function recursively calls the API to get detailed information on meals stored in the list named meals. The meal information is stored in mealplan and passed to callback after all meals have been processed. | [
{
"docid": "9ee2fe1cad71cc1558f3ca53f5351562",
"score": "0.7531696",
"text": "function getMealsInformation(meals, current, connection, unirest, mealplan, callback)\n {\n if (meals === null || typeof meals === \"undefined\" || meals.length === 0 || current >= meals.length)\n {\n return callba... | [
{
"docid": "b49c185d21e7b8429dc3ba006bcd6f87",
"score": "0.6232834",
"text": "function getMeal() {\n\t\tvar mealLocation = $rootScope.locations[$rootScope.mealStats.loaded][1];\n\t\t$http(packagePost('restaurants', mealLocation))\n\t\t.success(getNextMeal)\n\t\t.error(showError);\n\t}",
"title": ""
... |
4e8d8232245241913af7030391047df0 | This runs after animation to land on the final plot clipping. | [
{
"docid": "e3d78abd7dd0c95db2e19a1fddbabed4",
"score": "0.67107123",
"text": "afterAnimate() {\n this.setClip();\n // Destroy temporary clip rectangles that are no longer in use\n objectEach(this.chart.sharedClips, (clip, key, sharedClips) => {\n ... | [
{
"docid": "4e1627f083fdba5571d55d27b1abd0a6",
"score": "0.65754807",
"text": "setClip() {\n const { chart, group, markerGroup } = this, sharedClips = chart.sharedClips, renderer = chart.renderer, clipBox = this.getClipBox(), sharedClipKey = this.getSharedClipKey(); // #4526\n ... |
c4238421b83edadaaf558ba9d00c1d9d | Separation Method checks for nearby boids and steers away | [
{
"docid": "a10ec3572790cc6ec670b354064013d1",
"score": "0.75283754",
"text": "separate (boids) {\n const { position } = this;\n\n const desiredseparation = 25.0;\n let steer = new Vector(0, 0, 0);\n let count = 0;\n // For every boid in the system, check if it's too close\n boids.forE... | [
{
"docid": "0cf13894ddec4c5ebdcd41f6baa7f12a",
"score": "0.7796884",
"text": "separate(boids) {\n var desiredseparation = 25.0;\n var steer = createVector(0, 0, 0);\n var count = 0;\n // For every boid in the system, check if it's too close\n boids.forEach((other) => {\n var d = p5.V... |
76ac61a6d3650b6b605aa89a1bb6513a | Check if a string starts with $ or _ | [
{
"docid": "594f5ff9dec6fc75a881276c681c41f6",
"score": "0.0",
"text": "function isReserved (str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5F\n}",
"title": ""
}
] | [
{
"docid": "fd6d628e3d23a6fe0d02840714e0b552",
"score": "0.6486106",
"text": "function spaceCheck(string) {\n if (string.match(\"_\") == null){\n return false;\n } else { return true; }\n }",
"title": ""
},
{
"docid": "f58537285afbf01a0e... |
a38f4c88f03025f33c44134be4c16155 | next: add handleChange() function | [
{
"docid": "eb5d5f776223c2458711022632c226fa",
"score": "0.0",
"text": "handleChange(e) {\n var message = e.target.value;\n this.setState({\n message: message,\n });\n }",
"title": ""
}
] | [
{
"docid": "7e17881da7fe8f767e8a8938535d5377",
"score": "0.8489219",
"text": "handleChange() {\n }",
"title": ""
},
{
"docid": "7c0a8cc5f12a850dff8196d7145d490e",
"score": "0.82967573",
"text": "handleChange(e) {\n }",
"title": ""
},
{
"docid": "d5498f669bf6c3dd1171f1... |
a4855816adc7cdb7767257f23802d14f | Returns true if compared function is first in ordered array of compared functions. | [
{
"docid": "102766d127bab395ba867d1d6ba9d8e8",
"score": "0.6416459",
"text": "isFirstCompFun(compFunName) {\n return this.getCompFuns()[0] === compFunName;\n }",
"title": ""
}
] | [
{
"docid": "c10dc932c0039172aa7da9846f0b645d",
"score": "0.64456534",
"text": "isFirstDiffFunForComp(compFunName, diffFunName) {\n const firstDiffFunName = this.getDiffFuns(compFunName)[0];\n return diffFunName === firstDiffFunName;\n }",
"title": ""
},
{
"docid": "abc88a2cc474c1ae721... |
1212b1dfff38fbecefd927e0b80f8dd8 | Moves the page to the given section and slide with no animation. Anchors or index positions can be used as params. | [
{
"docid": "6063fb0253efc0bfd24651938355d7fe",
"score": "0.6552369",
"text": "function silentMoveTo(sectionAnchor, slideAnchor){\r\n setScrollingSpeed (0, 'internal');\r\n moveTo(sectionAnchor, slideAnchor);\r\n setScrollingSpeed (originals.scrollingSpeed, 'internal');\r... | [
{
"docid": "c8bbfd4f91c888a3e662bdd3c215390f",
"score": "0.8042382",
"text": "function moveTo(sectionAnchor,slideAnchor){var destiny=getSectionByAnchor(sectionAnchor);if(typeof slideAnchor!=='undefined'){scrollPageAndSlide(sectionAnchor,slideAnchor);}else if(destiny!=null){scrollPage(destiny);}}",
"... |
0d901767eaed776e083e83e229f48cbc | Go through unresolved queue and move tasks who's dependencies have been completed to ready queue or fail them | [
{
"docid": "13ed757f5728ca6551afbfc4aad967f0",
"score": "0.76939833",
"text": "resolveTasks() {\n const queueUnresolved = this.queueUnresolved;\n\n let i = 0, l = queueUnresolved.length;\n for (; i < l; i++) {\n const unresolvedTask = queueUnresolved[i];\n cons... | [
{
"docid": "3f6a37bd5aa278dda46ea9073205f440",
"score": "0.6839722",
"text": "_processQueue() {\n // eslint-disable-next-line no-empty\n while (this._tryToStartAnother()) {}\n }",
"title": ""
},
{
"docid": "2a620ed415156fe0f0701e0e398703d5",
"score": "0.6741149",
"text": "_que... |
20d8a2c61ebdab93fa1522904dc9d4dd | Create a dropdown to replace the tabs if the tabs overflow the wrapper | [
{
"docid": "fe45e1c6ff318bb2897f83dda6d2cc56",
"score": "0.53559273",
"text": "function tertiarynavCheck(){\n if($('.tertiary-nav ul').size() > 0){\n\n var $tabs = $('.tertiary-nav ul.tabbed'),\n $dropdown = $('.tertiary-nav ul.dropdown'),\n $parent = $('.tertiary-nav .g12'),\n... | [
{
"docid": "7d477c555c3e2f8a2c970cdcf13aba82",
"score": "0.6656492",
"text": "function dropdownShape(el) {\n var tabNav = $(el);\n\n // puts div dropdown around the tab navigation and adds class amending style links used by dropdown toggle\n tabNav.addClass('in-dropdown ft-dropdown-... |
9f1021e96d93fb65b4ad9b83048e864c | Extracts the first syllable. (?=) is a lookahead operation. See | [
{
"docid": "066f44ca146188cdcfe324c67b95959f",
"score": "0.8063408",
"text": "function extractFirstSyllable(text){\n\t\t\t\treturn text.toLowerCase().match(/[kptnmsjwl]?[aeiou](n(?=([^aeiou]|$)))?/gi);\n\t\t\t}",
"title": ""
}
] | [
{
"docid": "6a345dd9d787cc4e4fbbe019590dcf85",
"score": "0.6063209",
"text": "function boldedFirstSyllable(match) {\n\t\tvar bolded_regexp = new RegExp(/(\\b)([bcdfghjklmnpqrstvwxz]*[aeiou]+[bcdfghjklmnpqrstvwxz]*)/);\n\t\tmatch = match.replace(bolded_regexp, \"$1<span style=\\\"background: #FF0\\\">$2<... |
8209348c00ebbf39616bab68c0d7afb1 | Initialize the bundle with the application | [
{
"docid": "f2f152fad9a163ac4565caab7eb48d71",
"score": "0.0",
"text": "function oNew(pRouter, pPict)\n\t\t{\n\t\t\tvar _Pict = pPict;\n\t\t\tvar _Router = pRouter;\n/*\n\t\t\t// Authenticate the user\n\t\t\t_Pict.session.behaviors.Authenticate = function(pUserName, pPassword, fCallback)\n\t\t\t{\n\t\t\... | [
{
"docid": "101fff771950b3831821a1ad03bf29c0",
"score": "0.68685466",
"text": "initialize() {\n console.log('app initialize');\n AppView.initialize();\n this.runApplication();\n }",
"title": ""
},
{
"docid": "26431b695bb4703be0d6d576632c0ec5",
"score": "0.67601705",
"text":... |
c0109f821e5b9cedf04d553b57ef77b4 | Initializes the model viewer | [
{
"docid": "7dc638b15965b53264e6bb5f9f66e8f9",
"score": "0.5967506",
"text": "function init() \n{\n /**\n * Setting Up the scene: \n * Grabs the model-container div from template into a variable\n * named container, and sets up the scene \n */\n container = document.getElementById(... | [
{
"docid": "0c4d555524335661d3035462f3295bed",
"score": "0.6976872",
"text": "function init() {\n if ($scope.data.generation.selectedModelEntitys == null) {\n if ($scope.data.models.tree) {\n if ($scope.data.models.tree[0]) {\n $scope.data.generation.selec... |
43470333a84d5cb0326b8f1bb0f3c0a9 | Convert an Arraylike object to a real Array. | [
{
"docid": "e67d69eccb833f5717a57ea2d29c66ed",
"score": "0.0",
"text": "function toArray (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret\n}",
"title": ""
}
] | [
{
"docid": "c16ca201c0622a129968a1eb12a606db",
"score": "0.730102",
"text": "function makeArray(obj) {\n if (Array.isArray(obj)) {\n // use object if already an array\n return obj;\n }\n\n var isArrayLike = (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) == 'object' && typeo... |
8b63c4a10a2a657fa728725d0f9c6df5 | Recursively add folder contents to zip. | [
{
"docid": "79709ceb3d4674f26e8f4ec606938f49",
"score": "0.6008304",
"text": "function AddFolderWithScan( zip, name, fldr, appName, minify, isTop, noSwap )\n{\n\tvar list = app.ListFolder( fldr,\"\");\n\tfor( var i=0; i<list.length; i++ )\n\t{\n\t\tvar title = list[i];\n\t\tif( !app.IsFolder( fldr+\"/\"... | [
{
"docid": "0d8608b2aba8a4522cb49ba90f26566b",
"score": "0.6691969",
"text": "function AddFolder( zip, name, fldr )\n{\n\tvar list = app.ListFolder( fldr,\"\");\n\tfor( var i=0; i<list.length; i++ )\n\t{\n\t\tvar title = list[i];\n\t\tif( !app.IsFolder( fldr+\"/\"+title ) )\n\t\t\tzip.AddFile( name+\"/\... |
16e1fab8d93a1807b46fae3651684638 | to generate blocks with numbers and check if its need to be win combination or random | [
{
"docid": "222413307ebb52f1c78c59f2d30c312e",
"score": "0.73563325",
"text": "function generate(winComb = 'false') {\n let arrNums = [];\n let index = 0;\n \n stepCount(0);\n $('#blocks').html('');\n backgroundBlocks();\n\n arrNums = arr.map(function(el)... | [
{
"docid": "035f46ab921afccc19d8a1333761e84e",
"score": "0.69135505",
"text": "function randomBlocks(blocks) {\n for(blocks; blocks > 0; blocks--) {\n var row = randomNum(2, App.rows - 5); // Nothing on the top row or bottom 5.\n var col = randomNum(1, App.columns);\n\n var box = $('.row' + ro... |
8880fe546b36b9294175e40e784bfc2c | Removes all occurences of elements whose XPath is provided from the document. Example: Remove all tables which use the CSS class 'toto': | [
{
"docid": "d01728066e4d6e516c790b0015c8fa8e",
"score": "0.6347531",
"text": "function removeElement(ElementXpath)\r\n {\r\n var alltags = document.evaluate(ElementXpath,document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);\r\n for (i=0; i<alltags.snapshotLength; i++)\r\n ... | [
{
"docid": "3da75b50a6ec02312bb50b82d7b0039f",
"score": "0.75516844",
"text": "function removeElements (xPath) {\n\tvar thisElement, allElements = document.evaluate(xPath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);\n\tfor (f = 0; f < allElements.snapshotLength; f++) {\n thisElem... |
f997eaa041ddf11dd7d2c79d17ca6e45 | Collision Detection bullets Detection | [
{
"docid": "1035acc6d602f9c29e1d94e5e9b1589f",
"score": "0.7695894",
"text": "function bulletDetection() {\n for (let i = 0; i < playerBullets.length; i++) {\n if (playerBullets[i].isPlayer) {\n let pBullet = playerBullets[i];\n for (let j = 0; j < Enemies.length; j++) {\... | [
{
"docid": "6a8a96f2601918822034a7a9942eca24",
"score": "0.8142081",
"text": "checkBulletCollide() {\r\n for(let b of bullets) {\r\n if(p.collideCircleCircle( this.x, this.y, this.r, b.getX(), b.getY(), b.getR() )) {\r\n this.isHit = true;\r\n\r\n }\r\n }\r\n }",
"title": "... |
ee722a593fd606f0712a5f58ce14bc41 | Identify Polynomial Power (n) If it is a symbol x returns its degree 1, if it is a power of integer returns its exponent otherwise returns null | [
{
"docid": "2ddb63a182b3db219298eca6edb6ea76",
"score": "0.8908409",
"text": "function identify_polynomial_power(n)\n{\n if(kind(n) == OP_POW && is_symbol(n.children[0], \"x\"))\n {\n if(kind(n.children[1]) == NODE_INT && n.children[1].value >= 0)\n {\n return n.children[1].value;\n ... | [
{
"docid": "b80ddab962b071587f56f6e6c468759a",
"score": "0.77396065",
"text": "function identify_polynomial_mul(n)\n{\n if(free_of_symbol(n, \"x\"))\n {\n return 0; // 0 degree\n }\n else if(kind(n) == OP_MUL)\n {\n var d;\n for(var i=0; i<n.children.length; i++)\n {\n d = identify... |
12193370b1667ad2ba84416dd307bfa5 | Click on an individual canvas box. IF you're not recording it'll allow you to edit a certain measure. | [
{
"docid": "2e4ded046a1a8084f243d61b17e9f73a",
"score": "0.66755784",
"text": "function clickToEdit() {\n jQuery(\"#sheet\").on('click', \".notesCanvas\", function() {\n console.log(\"ID\", this.id);\n if (playOption === \"stop\") editMeasure(this.id);\n })\n}",
"title": ""
}
] | [
{
"docid": "75fa221ba3bd2340153f6a27cd586646",
"score": "0.64693123",
"text": "function clickCanvas(e){\n let p = getEventPosition(e);\n emitter.emit('canvasClick', {\n x: p.x/1100,\n y: p.y/750,\n });\n}",
"title": ""
},
{
"docid": "f7cec862406f1ffb8d3e2de340443bd3",
... |
1acbf34689961f51f2688a7a0140ca42 | Method to get activity weight data | [
{
"docid": "e25f18a48b391645ce5ed04001edf403",
"score": "0.5944373",
"text": "async getWeightData(){\n return axios.get(`${SpringHostURL}/api/activities/weight`,{\n headers: {\n //Set the post content as application/json (Spring will not recognise text for this auth endp... | [
{
"docid": "820a26dae220339892aecd2bba39a577",
"score": "0.6876137",
"text": "async getUserActivity(){\n //Get Activity Data\n const activityDataRes = await this.getActivityData()\n\n //Filter just results by this user\n const userActivityRes = activityDataRes.filter(function... |
8af2578fd522c58849acac46f1ae2c5e | Base inspection function for prefilters and transports | [
{
"docid": "ef8dc33ce532e008e91565884108dbd4",
"score": "0.0",
"text": "function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\n\n\tvar inspected = {},\n\t\tseekingTransport = ( structure === transports );\n\n\tfunction inspect( dataType ) {\n\t\tvar selected;\n\t\tinspec... | [
{
"docid": "0f9d4b6c9f33771d848ab8d4258e8e54",
"score": "0.61725205",
"text": "function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\n \n \tvar inspected = {},\n \t\tseekingTransport = ( structure === transports );\n \n \tfunction inspect( dataType ) {\n ... |
e84eb22ecd5461660cdbe88e8c811a13 | Mark scripts as having already been evaluated | [
{
"docid": "1e114daa41c1be96898a002af8bc7154",
"score": "0.0",
"text": "function setGlobalEval( elems, refElements ) {\n\tvar i = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\tdata_priv.set(\n\t\t\telems[ i ], \"globalEval\", !refElements || data_priv.get( refElements[ i ], \"globalEval\" )... | [
{
"docid": "79eb670af6f0f121280764f0632994a8",
"score": "0.5987435",
"text": "globalEval() {\n // phase one, if we have head inserts, we build up those before going into the script eval phase\n let insertHeadElems = new ExtDomQuery_1.ExtDomQuery(...this.internalContext.getIf(Const_1.DEFER... |
52df0f0c63e29f61159776805a751cdc | Function to fetch the cast detail | [
{
"docid": "83c7e86d1299766aba0b6f4e236efe52",
"score": "0.44290847",
"text": "function getInfo(url){\n fetch(url).then(res => res.json()).then(data => {\n console.log(data.results)\n \n const movieId = data.results[0].id\n getMovieInfo(movieId)\n console.log(movieId... | [
{
"docid": "22b2c91bf7bfe90ad44d1e4ff8e90396",
"score": "0.66533273",
"text": "function getCast(cast) {\n let castArr = [];\n for(let i=0; i<4;i++){\n castArr.push(cast.cast[i].name)\n }\n return castArr.join('<br>')\n}",
"title": ""
},
{
"docid": "7c360512a7e45d2a0e7e7513... |
81b5d315e77acf53c6f1d9c8ac3d9594 | If correct answer is chosen.. | [
{
"docid": "1f78ba8a11a77ff4ae63bd9539b9ec7a",
"score": "0.0",
"text": "function correctAns(){\n \n document.querySelector(\"hr\").style.display = \"flex\";\n var newP = document.createElement(\"p\");\n var correct = document.createTextNode(\"Correct!\");\n newP.appendChild(correct);\n ... | [
{
"docid": "51d792b40f8e78b5225e66420ffcae04",
"score": "0.7887142",
"text": "function isCorrect(choice, answer) {\n\n if ((parseInt(choice)) === answer) {\n\n score++;\n\n displayCorrect();\n\n\n } else {\n wrong++;\n displayWrong();\n }\... |
df5dbd738bbb8ed410e66240feabac8f | build a simple object with a toString function attached | [
{
"docid": "b49ff98dd2b212d6d13cc22cf752ba67",
"score": "0.0",
"text": "function Test () {}",
"title": ""
}
] | [
{
"docid": "c3bac65ecd0518460965354c7ffcc52c",
"score": "0.75454944",
"text": "toString() {}",
"title": ""
},
{
"docid": "438aeeb497f68136147d249ff08ebf3a",
"score": "0.7176436",
"text": "ToString() {}",
"title": ""
},
{
"docid": "438aeeb497f68136147d249ff08ebf3a",
"s... |
6945b4d00f799193537c7e1e9df56213 | add tags are line breaker | [
{
"docid": "5264f17c14b966f6f8415df6b5e24745",
"score": "0.0",
"text": "render() {\n if (this.props.entry === null) {\n return (<div></div>);\n } else {\n //confirm modal \"x\" button\n const closeBtnConfirm = <button className=\"close\" onClick={this.toggl... | [
{
"docid": "92c48bdc184a8977e0ec2ec007d2ece4",
"score": "0.64242077",
"text": "function vchat_newLine(vdata, vxml) { var createNewLines = (vxml || typeof vxml === 'undefined') ? '<br ' + '/>' : '<br>'; return (vdata + '').replace(/([^>\\r\\n]?)(\\r\\n|\\n\\r|\\r|\\n)/g, '$1' + createNewLines + '$2'); }"... |
f3af984e3d2153dac07882acab1d6c98 | Save the configuration to the file. | [
{
"docid": "3158c132e4071297456452a61a8d465b",
"score": "0.68493587",
"text": "function save(configData) {\n\t\n\t// update the file\n\tvar str = JSON.stringify(configData);\n\tfs.writeFile(path.join(__dirname, CONFIG_DIR, _cfgFile), str, function() {\n\t\t//\n\t});\n}",
"title": ""
}
] | [
{
"docid": "3c8dc73f65e3214817a3edffd17480a2",
"score": "0.8244713",
"text": "saveConfig() {\n fs.writeFile(this.configPath, JSON.stringify(this.config), e => {});\n }",
"title": ""
},
{
"docid": "92cdac66f1ed2e3e12aea68b8226cae7",
"score": "0.78192604",
"text": "function s... |
8f384e69bceabd9e1d2012bafb64a4b8 | [END welcomeIntent] [START futureJobIntent] | [
{
"docid": "cb7623c287b5f51f0a1cd690fe63c18f",
"score": "0.670807",
"text": "function futureJobIntent(agent) {\n const futureJob = agent.parameters['FutureJob_theme'];\n const gotFutureJob = futureJob.length > 0;\n\n if (gotFutureJob) {\n agent.add(` ${futureJob} 분야의 미래 직업 정보는 다음과 같습니다.`);... | [
{
"docid": "330e140ee5ab7261a28afa7f98986df5",
"score": "0.6028583",
"text": "function scheduleJob() {\n from_cl = document.getElementById('from_cl');\n\n parseCommand(from_cl.value, data => {\n getProjectId(projectId => {\n getApiKey(apiKey => {\n data.append('project', projectId);\n\n... |
5ccd234cbba843f93352bb8c23d93693 | eliminate colinear or duplicate points | [
{
"docid": "59003afafa890cb8613bcd5abd235be1",
"score": "0.0",
"text": "function filterPoints( start, end ) {\n\n\tif ( ! start ) return start;\n\tif ( ! end ) end = start;\n\n\tlet p = start,\n\t\tagain;\n\tdo {\n\n\t\tagain = false;\n\n\t\tif ( ! p.steiner && ( equals( p, p.next ) || area( p.prev, p, ... | [
{
"docid": "619b7ca6b8d9ebd5869755a8d3f9ed86",
"score": "0.66145957",
"text": "function removeDuplicates() {\n // Split array of coordinates into x- & y- coordinate arrays\n let xCoords = adjList.map(coord => coord[0]);\n let yCoords = adjList.map(coord => coord[1]);\n\n // Used to m... |