query_id
stringlengths
32
32
query
stringlengths
7
29.6k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
fd1cbbd8d04f5a2045ba53e9cb214e40
Runtime helper for merging vbind="object" into a VNode's data.
[ { "docid": "229ff42077d1e36151cee1b4671149e2", "score": "0.0", "text": "function bindObjectProps (\n data,\n tag,\n value,\n asProp,\n isSync\n) {\n if (value) {\n if (!isObject(value)) {\n warn(\n 'v-bind without argument expects an Object or Array value',\n this\n );\n...
[ { "docid": "f47703dcb2cd282111dc47aff7f566db", "score": "0.56364155", "text": "function bindObjectProps(data,tag,value,asProp,isSync){if(value){if(!isObject(value)){ true&&warn('v-bind without argument expects an Object or Array value',this);}else{if(Array.isArray(value)){value=toObject(value);}var hash...
6e7e441ea519c665d59b2e85257e5af3
Replay any events due to single server connection switching to Mongos
[ { "docid": "558b8b01521e5dec18be0fd967b5a2f1", "score": "0.6556345", "text": "function replayEvents(mongoClient, events) {\n for (let i = 0; i < events.length; i++) {\n mongoClient.emit(events[i].event, events[i].object1, events[i].object2);\n }\n}", "title": "" } ]
[ { "docid": "018f15472a70ea1babb6842cd495c6c9", "score": "0.5840806", "text": "notifyStateChange(){\n let self = this\n mongodb.find('world',{attr:'state'},(result)=>{\n let state = result[0].value\n if (state == 'Waiting')\n self.setTime(30)\n else\n self.setTime(60)\n...
eb79405d87bb701b91c97e6881883bc5
output build logs to terminal
[ { "docid": "df2e1a7b8b1fafa4dc60fa9f0984b421", "score": "0.0", "text": "function bundle() {\n return b.bundle()\n // log errors if they happen\n .on('error', gutil.log.bind(gutil, 'Browserify Error'))\n .pipe(source('bundle.js'))\n .pipe(gulp.dest('./js'))\n .pipe(r...
[ { "docid": "d6154a03f675f25be86e1b1d179ddb3b", "score": "0.62586254", "text": "async function logBuildOutput(stream) {\n return new Promise((resolve, reject) => {\n stream.on('data', (data) => console.log(data));\n stream.on('error', (err) => reject(err));\n stream.on('end', () =...
af6b1ecc5622a993f33a9d3d2fb20ca6
Get Cliente Claro ou Terceiro
[ { "docid": "8c5da4ac9d1cf7d89787222b3069d1a5", "score": "0.0", "text": "@wire(getPicklistValues, {\n recordTypeId : '$PaymentAdjustmentMetadata.data.defaultRecordTypeId',\n fieldApiName : REFUNDACCOUNT_FIELD\n })\n wiredPickListValue3({ data, error }){\n if(data){\n ...
[ { "docid": "25456005778f546f9874501d050ecec5", "score": "0.62796336", "text": "function ObtenerDatosCliente(){\n\ttipodoc = $(\"#tipo_documento\").find('option:selected').text();\n\t// console.log(tipodoc);\n\tif(tipodoc == \"DNI\"){\n\t\tObtenerDatosDni();\n\t}else if(tipodoc == \"RUC\"){\n\t\tObtenerD...
5903c8f6a23bbf21a5b362b71719789e
Create the printWater_Request for printing
[ { "docid": "d7d57874ed377c53d92c0ecf854fcf78", "score": "0.7397034", "text": "function printWater_Request() {\n}", "title": "" } ]
[ { "docid": "544808d1fbfea72cfff7a2c81841ad75", "score": "0.655598", "text": "printData(){\n this.$.printData.url= MyAppGlobals.apiPath + \"/api/report/proposal\"\n this.$.printData.headers['authorization'] = this.storedUser.access_token;\n this.$.printData.body = {\n \"start_date\" : this...
cc5892094f59164b3c487388f777b138
Computes the upper convex hull per the monotone chain algorithm. Assumes points.length >= 3, is sorted by x, unique in y. Returns an array of indices into points in lefttoright order.
[ { "docid": "16882cfaeec9106293f9b7e496b3cb28", "score": "0.80087537", "text": "function computeUpperHullIndexes(points) {\n var n = points.length,\n indexes = [0, 1],\n size = 2;\n\n for (var i = 2; i < n; ++i) {\n while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - ...
[ { "docid": "910eb02cd8c1c0b1f817c0c19484de99", "score": "0.80435264", "text": "function computeUpperHullIndexes(points){var n=points.length,indexes=[0,1],size=2;for(var i=2;i<n;++i){while(size>1&&cross(points[indexes[size-2]],points[indexes[size-1]],points[i])<=0)--size;indexes[size++]=i}return indexes....
d8deeeb6e7112e5e0180ca04b471e2ee
Updates an existing user
[ { "docid": "c69e6bb0cdf94ff78fc8b44f0015bf11", "score": "0.0", "text": "async function updateUser(userId, firstName, lastName, \n emailAddress, userRole, apiKey, userEnabled)\n{\n try\n {\n var options = {\n headers: {\n 'x-api-key': unstore('api-key')\n }\n };\n\n stickySuc...
[ { "docid": "f70999949b95cc1f884de63cf50097af", "score": "0.8066462", "text": "function updateUser() {\n API.updateUser({\n _id: id,\n userName: user\n })\n .then(res => console.log(res.data))\n .catch(err => console.log(err));\n }", "title": "" }, { "...
64297d3c16436b10af504ec3855a00ad
handleScroll update viewport in response to scroll events
[ { "docid": "8e70380ab802bba384b419c0eefde4ea", "score": "0.71483433", "text": "handleScroll(x, y) {\n this._scroll = { x: x, y: y };\n this.viewport = svgHelpers.boxPoints(\n $(this.selector).offset().left,\n $(this.selector).offset().top,\n $(this.selector).width(),\n $(this.s...
[ { "docid": "abcdc9e094d358a8899299370f208fd2", "score": "0.771751", "text": "handleWindowScroll() {\n const sectionHTMLElement = this.sectionHTMLElement.current;\n const { top } = sectionHTMLElement.getBoundingClientRect();\n\n const shouldUpdateForScroll = Section.insideScrollRange...
e21b2f637b1d0db7a03ecca3b9997c33
checks that the file name is unique. Just intended to catch clusters with duplicate names Checking the selected upload file name's uniqueness is done in FileUploadControl
[ { "docid": "3f671326b4de6138eaa07abfbdb0b93f", "score": "0.7390051", "text": "function validateNameUniqueness(file, allFiles, validationMessages) {\n const allOtherFiles = allFiles.filter(f => f._id != file._id)\n const allOtherNames = allOtherFiles.map(f => f.name)\n // require 'isDirty' so we only ...
[ { "docid": "054f87d5347652bbda079ad0bb424237", "score": "0.71001005", "text": "function fileAlreadyExists(name) {\n name = name.toLowerCase();\n for (var n = 0, m = state.fileList.length; n < m; n++) {\n if (state.fileList[n].toLowerCase() === name) {\n return tru...
3f775627109aa4de995237c3eac5b440
function to test for prime numbers
[ { "docid": "c7e0d80d5514c4b430c98dfc6a06a451", "score": "0.0", "text": "function primeTest(testValue)\n{\n let isPrime = true;\n\n for ( let i = 2; i < testValue; i++)\n {\n if (testValue % i === 0)\n {\n isPrime = false;\n }\n }\n return isPrime;\n}", "title": "" } ]
[ { "docid": "010f7b5665a1a596dd16c1eef4567b2d", "score": "0.84667283", "text": "function isPrime() {}", "title": "" }, { "docid": "45136f1ad376bd14dc0812070a4fad05", "score": "0.83258075", "text": "function isPrime(num) {\n\n}", "title": "" }, { "docid": "77c8166c5dd34e7b7...
b5fdc8f47a9d5e55e970e0378ff178dd
add HTML for channel card to left side column
[ { "docid": "3d7e450cfabd838aea34e11ea0085d4e", "score": "0.5867846", "text": "function add_channel_card(ch_name, ch_data) {\n\n //reaplce spaces in channel name for display purposes\n ch_name_display = ch_name.replace(/_/g,\" \");\n\n //CARD ROW\n const row = document.createElement('div');\n row.cl...
[ { "docid": "a60250bdecd4543bc0382336ec3bc6d2", "score": "0.63971317", "text": "function addHTMLScoreCard(){\n html.push(`\n <div class=\"row\">\n <div class=\"col s2 center-align\">\n <span class=\"white-text flow-text truncate\">` + score +`\n </span>\n </div>\n </div>\n...
f07bb34a065e44b7a146c499ef2f466c
returns the actual value of a tile (the tile value number of bordering flags)
[ { "docid": "06ab4137678c81441733d648d11973ad", "score": "0.76375", "text": "function getValue(tile, board) {\n\tif (!board) board = getBoard();\n\treturn tile.value - getFlagNeighbors(tile, board).length;\n}", "title": "" } ]
[ { "docid": "251c65cea66678a8271b372a112d3b72", "score": "0.7147474", "text": "function valueForTile($tile) {\n var index = $tile.data('index');\n return values[index];\n}", "title": "" }, { "docid": "7b342546783894b4f31c74e0ebd4ea66", "score": "0.68396664", "text": "function Ge...
6841db47302263d18cf537a0ffb47e04
Insert one space between two chinese characters automatically.
[ { "docid": "431a15199b565b060c4e4bd12c49d026", "score": "0.0", "text": "function insertSpace(child, needInserted) {\n // Check the child if is undefined or null.\n if (child == null) {\n return;\n }\n var SPACE = needInserted ? ' ' : '';\n // strictNullChecks oops.\n if (typeof ...
[ { "docid": "9e2d4a72fabe4de83aa619aab332bccd", "score": "0.6747741", "text": "function fixChineseSpace(str) {\n return str.replace(/([^\\u4e00-\\u9fa5\\W])([\\u4e00-\\u9fa5])/g, '$1 $2');\n}", "title": "" }, { "docid": "ab089dc4d7fff2c151a1978c4f74d76a", "score": "0.63717735", "text...
bb2726e93ae636299b9986b5bb00bc9c
Fits the site to the nearest active section
[ { "docid": "b36f5804569dcd011c5ae2b52c9ebcf0", "score": "0.0", "text": "function fitToSection(){\n //checking fitToSection again in case it was set to false before the timeout delay\n if(canScroll){\n //allows to scroll to an active section and\n //if ...
[ { "docid": "49a43516854f226c5687a763c3d0c4f2", "score": "0.6805512", "text": "function activePage() {\n //for every section in sections\n for (section of allSection) {\n //Page Position\n const topValue = section.getBoundingClientRect().top;\n //when page position in the top o...
554703d38d64db73153830a64fc3f546
usages: ucSentence(string) Returns a string with the first character of each sentence of given string It takes 1 parameter of string
[ { "docid": "5601927af7052e0fbce455cb797b9128", "score": "0.8261105", "text": "function ucSentence(str) {\n return str.replace(/.+?[\\.\\?\\!](\\s|$)/g, function (txt) {\n return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();\n });\n}", "title": "" } ]
[ { "docid": "b39f6b9671ca76003e3a35d1f39d265b", "score": "0.7703924", "text": "ucWords(str) {\n if (!str) return str;\n let strToArr = str.split(' ');\n\n for (let i = 0; i < strToArr.length; i++) {\n strToArr[i] = strToArr[i][0].toUpperCase() + strToArr[i].slice(1);\n }\n\n return st...
5b25868ff28cda348f41f7d79efc0ee0
Change the size of element of the treemap to correspond to the number of genes
[ { "docid": "bee7541d76e664409093537a890c7e72", "score": "0.5355052", "text": "function sumbyCount(d) {\n\t\troot.values.forEach(function(element){\n\t\t element.value = element.nb_gene;\n\t\t element.values.forEach(function(element2){\n\t\t\telement2.value = element2.nb_gene;\n\t\t });\n\t\t});...
[ { "docid": "95bea56c2f0413b5cb0f679bc792a897", "score": "0.6474445", "text": "function zoomTreemap() {\n var current = currentDataStructured.children[0].children.sort(function (a, b) {\n return b.value - a.value;\n });\n\n if (current.length > 10) {\n current.splice(0, 10);\n roo...
5730ab7b4ffae4dd4a287aedc6913600
Set & Select given utility type in the header utility filter
[ { "docid": "fb5cd3052dd7cf107fb7248977cc082f", "score": "0.66419435", "text": "setHeaderUtilityType(utilityTypeId, disableUtilityFilter) {\n if (this.headerComponent._ismounted) {\n // Normal page need to enable the header utility type filer, So 'disableUtilityFilter' must be FALSE\n // For...
[ { "docid": "1e93fc6a76ff7f2caa70e678c9bc006e", "score": "0.65282065", "text": "setUtilityType(utilityTypeId, disableUtilityFilter) {\n ls.removeItem('userUtilityType');\n ls.setItem('userUtilityType', utilityTypeId);\n if (!_.isEmpty(this.headerComponent)) {\n this.setHeaderUtilityType(uti...
67d41d4df62c993f9601baefdd5d8f1f
Convenience function for the parse function. This pop function is basically copied from pouchCollate.parseIndexableString
[ { "docid": "107aefb25c4f1489d552d986e0425f27", "score": "0.0", "text": "function pop(obj, stack, metaStack) {\n var lastMetaElement = metaStack[metaStack.length - 1];\n if (obj === lastMetaElement.element) {\n // popping a meta-element, e.g. an object whose value is another object\n metaStack.po...
[ { "docid": "3aec16242e98f0e5a42ef7aa317e49d7", "score": "0.55868345", "text": "function parseString() {\r\n var startChar = S[pos];\r\n var startpos = ++pos;\r\n pos = S.indexOf(startChar, startpos)\r\n return S.slice(startpos, pos);\r\n }", "title": "" }, { "d...
80bab104c2c05af09278483c67563b4c
copy the original json to clipboard
[ { "docid": "b9ba390389d95b64d026086cb5142e31", "score": "0.7018779", "text": "function copyResultToClipboard() {\n var _e=$('#tOriResult');\n var _success=false;\n\n _e[0].className='showing';\n _e[0].select();\n _success=document.execCommand('copy');\n _e[0].className='hiding';\n\n if (_success=...
[ { "docid": "e07809b7801e93eb008de94b066d28bb", "score": "0.66778016", "text": "copyToClipBoard (key) {\n const val = _this.state[key]\n var textArea = document.createElement('textarea')\n textArea.value = val // copyText.textContent;\n document.body.appendChild(textArea)\n textArea.select...
3633e5167ee5566a13ab285910325e0a
If the php file writing fails show to the user how to manually add the code
[ { "docid": "9bb05b2cf0b888afed21510379e23ec2", "score": "0.0", "text": "updateInstructions() {\n this.log(\n chalk.bold.yellow('You should manually add'),\n `include_once(${this.props.definePrefix}_INCLUDE_DIR . ${this.fileRelativePath}`,\n chalk.bold.yellow('to your plugin main class ...
[ { "docid": "e7ad07ac56a54b9995c1a402bd6c6da2", "score": "0.60169464", "text": "function _fail(response, code, fileContent) {\n var textTypeHeader = { \"Content-Type\": \"text/plain\" };\n response.writeHead(code, textTypeHeader);\n response.write(fileContent, \"utf8\");\n response.en...
61fba147d4a068d83dbd7d6f9aa19296
Function to print a matched Job Seeker to panel in employer_matches view
[ { "docid": "95f5ef0c49a9c31341da524f03bb2cdb", "score": "0.64807004", "text": "function printJobSeeker(id, name, email, state, city, percentageMatch, totalMatchedSkills, totalSkills) {\n //Building the contents of the div to display a particular Job Seeker\n let display = document.getElementById(\...
[ { "docid": "c32c7075f916224ac3d8b8b147e340a8", "score": "0.56631494", "text": "function showMatch(matchId) {\n showing = true;\n\n //Check if there is an active match\n var row;\n if (active >= 0) {\n //Find the row in the table\n ...
6d8d80c9210824229a110ee772289ef9
Implements a host component that allows optionally setting the props `value` and `defaultValue`. If `multiple` is false, the prop must be a stringable. If `multiple` is true, the prop must be an array of stringables. If `value` is not supplied (or null/undefined), user actions that change the selected option will trigg...
[ { "docid": "413432959c9667ede8133f14c6aaebcb", "score": "0.0", "text": "function getHostProps$2(element, props) {\n return _assign({}, props, {\n value: undefined\n });\n}", "title": "" } ]
[ { "docid": "761ef7888d17cc546c18e90d4cd540bb", "score": "0.59435827", "text": "function MultiValue(props) {\n return (\n <Chip\n tabIndex={-1}\n //label={props.children}\n label={(props.children === 'All') ?\n props.childr...
8305a0a38c8e749ec936573525f5a349
eslint maxlen: 0 Based on the comment attachment algorithm used in espree and estraverse. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of con...
[ { "docid": "dc2334959c94290a65d66905f07d2d83", "score": "0.0", "text": "function last(stack) {\n return stack[stack.length - 1];\n}", "title": "" } ]
[ { "docid": "b1613dbd8a08c338be01a7b435e9a9eb", "score": "0.53033966", "text": "static get maxFileBufferLines() {\n return 10000;\n }", "title": "" }, { "docid": "2da51b1b84c4202fa60a24bdfbb8b49c", "score": "0.52585715", "text": "formatComment(str, maxwidth) {\n var secti...
1b4673ca512f68b9c13aa3b050f519e2
5. when the right box is clicked
[ { "docid": "d4a88facf8a952f1fe31f5f08c75a639", "score": "0.0", "text": "function isRight(){\n if(this == chosenBox){\n for(let box of boxes){\n box.style.background = chosenBox.style.background;\n document.querySelector(\"header\").style.background = chosenBox.style.backg...
[ { "docid": "2aa225bb7cfd720e33ffbdd4f282f3e6", "score": "0.7683309", "text": "function rightBoxClicked() {\r\n if (leftBoxHovered === true) {\r\n window.alert(\"OooooOo! You clicked me!\");\r\n }\r\n }", "title": "" }, { "docid": "d59956ed05e649772569955f45797f4d"...
88443fb9276c09275d01ecaf26d557b6
Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, OR the last index of `val` in `buffer` at offset <= `byteOffset`. Arguments: buffer a Buffer to search val a string, Buffer, or number byteOffset an index into `buffer`; will be clamped to an int32 encoding an optional encoding, relevant is va...
[ { "docid": "91d9b1eb716e7bad595838e98e488aaf", "score": "0.0", "text": "function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = b...
[ { "docid": "139bfb2e16a10695c3532d665ea4dec6", "score": "0.829511", "text": "function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){// Empty buffer means no match\n if(buffer.length===0)return-1;// Normalize byteOffset\n if(typeof byteOffset===\"string\"){encoding=byteOffset;byteOffset=...
eaf391bf5b4fc852f24c91593e78c12a
=> Name: Scissors => ID: 0 => Price: $10 => Stock: 8
[ { "docid": "77e4a68ad30715576003fccf02b62c3b", "score": "0.4872601", "text": "function describeProduct(product) {\n console.log('Name: ' + product.name);\n console.log('ID: ' + product.id);\n console.log('Price: $' + product.price);\n console.log('Stock: ' + product.stock);\n}", "title": "" } ...
[ { "docid": "1cd04f4f452511b432b34e9c7e99d73e", "score": "0.67090213", "text": "function stock(){\n this.name;\n this.num; //num of stocks\n this.totalPrice; \n}", "title": "" }, { "docid": "c6c1ff351bbadbeb9d15fd3f0633326a", "score": "0.59516966", "text": "functi...
cce3d6c91007e18cd9593a22705a4a4d
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Write a function "reverse" that computes the reversal of a string. Example: reverse("skoob") > "books"
[ { "docid": "7f14302fe8d70571a76cdd7388399083", "score": "0.0", "text": "function reverse (str){\n let reverseditem = \"\";\n for (let char of str){\n reverseditem = char + reverseditem;\n }\n return reverseditem;\n}", "title": "" } ]
[ { "docid": "884b7d9a43e351ceeaba5e696ac780ca", "score": "0.8634733", "text": "function reverse(string) {}", "title": "" }, { "docid": "9117b02f6e9be0bec4c91bd35b7574cd", "score": "0.854726", "text": "function reverse(str) {}", "title": "" }, { "docid": "5d799d14728283803c...
5ab1509319544811d430af7aa2b86b42
======================================================================== Major function ======================================================================== / ==== function to init this page ===
[ { "docid": "8d1348a292509bda7b5ad0d43890f498", "score": "0.0", "text": "function initialPages($) {\n\t\tnewFormSubmit();\n\t\tmodifyFormSubmit();\n\t\tclickCloseBtn();\n\t}", "title": "" } ]
[ { "docid": "185cad311b2edff6566d4238e0fe5068", "score": "0.8223301", "text": "function init() {\n // Do this when a page loads.\n }", "title": "" }, { "docid": "6aebdab364b833a9496147555b2ffaa8", "score": "0.8014793", "text": "function pageSetUp(){\r\n\t\tpage.init(...
2b13e88d5b2d5efe907933fc82bc82a2
DELETE REGULAR USER PROFILE
[ { "docid": "65b780ab0c778997e7f2c7af1c59bfa5", "score": "0.611955", "text": "function deleteAccount(email) {\n\tconsole.log(email);\n\tvar status = confirm(\"This will leads to permanently delete your profile\");\n\tif (status) {\n\t\tvar ajax;\n\t\tif (XMLHttpRequest) {\n\t\t\tajax = new XMLHttpRequest...
[ { "docid": "bb7fdd1a0fbfad9172df5698b68e2d22", "score": "0.7768167", "text": "deleteProfile() {}", "title": "" }, { "docid": "380257d7b275b158687088d78f297913", "score": "0.7130612", "text": "function deleteUser() {\n fetch(\n `https://serene-basin-92650.herokuapp.com/delet-user/...
b42f9dcd4b8855652fc25a2f39885f3e
Ajax delete one category
[ { "docid": "3036843653cb6be820c70fc504bf9b42", "score": "0.7689509", "text": "function deleteCategory(){\n if (!confirm(\"Are you sure ?\")) return false;\n var id = categoryIdFromRow($(this).parent().parent());\n var tr = $(this).parent().parent();\n $.ajax({\n type: 'post',\n ...
[ { "docid": "39493eac3b3e797b7cb04b6e85f894a3", "score": "0.8132477", "text": "function deleteCategory() {\n $.ajax({\n url: 'api/categories/' + category_id,\n type: 'DELETE',\n success: function() {\n showAlert('A category has been deleted!', 'success');\n getCategories();\n },\n ...
d824d7f359ca74480cef8be77a2b9cf8
TOOLTIP PLUGIN DEFINITION =========================
[ { "docid": "0edc3cb9fb665c9082311cdfc66f2db9", "score": "0.0", "text": "function Plugin(option) {\n return this.each(function() {\n var $this = $(this)\n , data = $this.data('wdesk.tooltip')\n , options = typeof option == 'object' && option;\n\n ...
[ { "docid": "ee663f523ecf40f6d76aaadcefc713e6", "score": "0.7335604", "text": "static set tooltip(value) {}", "title": "" }, { "docid": "a1b98d9579569ee62c16513fb5a014cc", "score": "0.7297961", "text": "function tooltip () {\n $('#uiTrigger').tooltip({template: '<div cl...
07c53ae2f363fa4df5dcd59b0ae1382c
Add selected pizzas to the cart[] and calculate the total cart price.
[ { "docid": "aedfe253dcdb1167ea475d2cdb30a745", "score": "0.59298754", "text": "function addToCart(pizzaName, pizzaPrice) {\n \"use strict\";\n\n cart.push(new Pizza(pizzaName, pizzaPrice));\n cartTotal += pizzaPrice;\n\n createCart();\n}", "title": "" } ]
[ { "docid": "6ec2cdcdcef99d5efe62d1d0b8a5ae25", "score": "0.6625972", "text": "function addSelectedItemToCart() {\n // TODO: suss out the item picked from the select list\n var selectItems = document.getElementById('items');\n var itemSelected = selectItems.options[selectItems.selectedIndex].value;\n/...
efa3f8a78cef80029df22d5ed623ac61
Check if a cookie exists, and print message into console if ok.
[ { "docid": "ce6456bcd1db9a6763900f6917e8f86c", "score": "0.7937316", "text": "function checkCookie(name, message = \"cookie found : \") {\r\n let username = getCookie(name);\r\n if (username !== \"\") {\r\n console.log(message + name + \" : \" + username);\r\n }\r\n}", "title": "" ...
[ { "docid": "a36a594d86be0d0d8aa71e06de80a1a7", "score": "0.7680181", "text": "function cookieExists() {\n return typeof $.cookie(cookie) !== 'undefined';\n }", "title": "" }, { "docid": "1baabaf213024920e01ce6d2729aae7c", "score": "0.74630094", "text": "function checkCookie() {\n...
e2a93dee8f89043557d1f82104c52ccc
Log the link or click with the server
[ { "docid": "ae62497cbe21f88ca28fe196ce452ea2", "score": "0.70270187", "text": "function logLink(url, linkType, customData) {\r\n var request;\r\n request = 'idsite=' + configTrackerSiteId +\r\n '&rec=1' +\r\n '&' + linkType + '=' + esca...
[ { "docid": "d211a22d4b4c5580e9d39da69e41efeb", "score": "0.73452103", "text": "logLink(url, linkType, customData, callback, sourceElement) {\n var linkParams = linkType + '=' + encodeURIComponent(this.purify(url))\n\n var interaction = this.getContentInteractionToRequestIfPossible(sourceElement,...
75423054121003b2e9d79e5e3ffbc9a9
function for getting gifs and adding them to the page
[ { "docid": "ae55cf3e9d9c947f66f2c0754380a293", "score": "0.736561", "text": "function getGifs(searchTerm, timesSearched) {\n // creating variables to store search parameters\n var apiKey = \"rSoMaNfOIf9g9ue5Tq9WjlOlTrJBsHRZ\";\n var limit = 10;\n var offset = limit * timesSearched;\n var ...
[ { "docid": "0806b06a4e01be45721644b0a68d70e9", "score": "0.80488545", "text": "function getGifs(str) {\n $.ajax({\n url: str,\n method: \"GET\"\n }).then(function (response) {\n for (var j = 0; j < response.data.length; j++) {\n response.data...
8a79d50cc8f41e560c5c2003db30a49d
TODO: something useful this is a stub
[ { "docid": "6206976a77cb0f271d7d3fce1e71caa4", "score": "0.0", "text": "function write_ws_bin_cell(ba, cell, R, C, opts, ws) {\n\tif(cell.v === undefined) return \"\";\n\tvar vv = \"\";\n\tswitch(cell.t) {\n\t\tcase 'b': vv = cell.v ? \"1\" : \"0\"; break;\n\t\tcase 'd': // no BrtCellDate :(\n\t\t\tcell...
[ { "docid": "1ac507c5d6aac7c114c1a979ee26340d", "score": "0.6313073", "text": "function __axO4V4GhxjCIJCmJ0hzrQQ() {}", "title": "" }, { "docid": "b1afd331f19af517e3d3303d018ab206", "score": "0.58553594", "text": "function _fn(){ /*...*/ }\t\t//Funzioni private", "title": "" }, ...
02d919b53e893e1b57e2daf202eb630e
Parse an encoding from the AcceptEncoding header.
[ { "docid": "db0ec9edc45d5ec657f202c826be892a", "score": "0.59632325", "text": "function parseEncoding(str, i) {\n\t var match = simpleEncodingRegExp.exec(str);\n\t if (!match) return null;\n\n\t var encoding = match[1];\n\t var q = 1;\n\t if (match[2]) {\n\t var params = match[2].split(';');\n\t...
[ { "docid": "c86e27f8ea4885c2a06067cba5facfd4", "score": "0.65908736", "text": "function parseAcceptEncoding(accept) {\n var accepts = accept.split(',');\n var hasIdentity = false;\n var minQuality = 1;\n\n for (var i = 0, j = 0; i < accepts.length; i++) {\n var encoding = parseEncoding(accepts[i]...
f12623c7be13289e87b7e2d8fb8fe298
This is a function for deleteV3ProjectsIdMergeRequestsSubscribableIdSubscription
[ { "docid": "dca56cdc3064af21f6f52704fc1c1580", "score": "0.6708858", "text": "deleteV3ProjectsIdMergeRequestsSubscribableIdSubscription(incomingOptions, cb) {\n const Gitlab = require('./dist');\nlet defaultClient = Gitlab.ApiClient.instance;\n// Configure API key authorization: private_token...
[ { "docid": "651229bdcc8b6ee45581b50fc92a308f", "score": "0.6647786", "text": "deleteV3ProjectsIdMergeRequestSubscribableIdSubscription(incomingOptions, cb) {\n const Gitlab = require('./dist');\nlet defaultClient = Gitlab.ApiClient.instance;\n// Configure API key authorization: private_token_...
fa8b41e9b3500ba1d2c5180946638253
AsyncMode should be deprecated
[ { "docid": "e97389e286c3cffef0b4cca503b2022a", "score": "0.0", "text": "function isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsync...
[ { "docid": "f875530dcfc8e17a6260c6612c5c142a", "score": "0.71477026", "text": "function isAsyncMode(object){{if(!hasWarnedAboutDeprecatedIsAsyncMode){hasWarnedAboutDeprecatedIsAsyncMode=true;lowPriorityWarning$1(false,'The ReactIs.isAsyncMode() alias has been deprecated, '+'and will be removed in React ...
d14e044ca386a743e0a6f91504e54a17
Retrieves the name of the opcode for this packet (if available)
[ { "docid": "fbe90d58576dc8e2a599a289072e736a", "score": "0.8034549", "text": "get opcodeName() {\n return ObjectUtil.keyByValue(GameOpcode, this.opcode);\n }", "title": "" } ]
[ { "docid": "5390f555409eb2e13a6790dd49bea1c0", "score": "0.752988", "text": "get opcodeName() {\n return ObjectUtil.keyByValue(AuthOpcode, this.opcode);\n }", "title": "" }, { "docid": "e893a28b50476d35f8a6ad8932141afc", "score": "0.61664635", "text": "function opcode(block) {\n ...
7c8ed550234d2c3fb48c2bd24ab44efd
OTHER FRUIT + DESCRIPTORS
[ { "docid": "367eecdbe4af9e08ecf76d5abc471e98", "score": "0.0", "text": "function OtherFruit() {\n console.log(\"This is: \" + (JSON.stringify(flavours.fruity.subFlavours.otherFruit.name + \" with the color \" + flavours.fruity.subFlavours.otherFruit.color + \".\")));\n}", "title": "" } ]
[ { "docid": "688a1c1cd5957ae81a03e76a3e4e53da", "score": "0.5255704", "text": "static extraProps() {}", "title": "" }, { "docid": "a2e9c5b33c6955d6329c819b945c6170", "score": "0.51053643", "text": "function Descriptor() {\n this.isDescriptor = true;\n }", "title": "" }, { ...
66b51334bcbac142b32bddee87001b5d
dynamic area handled by sbrk
[ { "docid": "456d9ceb45666e8e42dc3a04445c1e74", "score": "0.0", "text": "function abortOnCannotGrowMemory() {\n abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', (2) compile with -s ALLOW_MEMORY_GROWTH=1 which ad...
[ { "docid": "490e35ac02c4eba4c34ad6e127744566", "score": "0.54850554", "text": "function ALLOCATE_TO_RECYCLABLE() {\n for (I = 0; I < NUMBER_OF_BLOCKS; I = I + 1) {\n if ( // if block is free or recyclable,\n HEAP[I * BLOCK_SIZE + BLOCK_STATE_SLOT] === RECYCLABLE\n ) {\n // find k-sized ...
e25256a3534a559939257040c40750b1
end autocomplete function usage:
[ { "docid": "8e0fb5eb7e00d225087d3bfd37d79e40", "score": "0.0", "text": "function testKeyPress(event) {\n\t//console.log(event.keyCode);\n\t//expects the event plus a string representing the button id to trigger if true\n\t// note, this code does not prevent the enter key from triggering a submit if a fo...
[ { "docid": "5ee4a882d7238e6842453b8de0fbf654", "score": "0.7507426", "text": "function TextExtAutocomplete() {}", "title": "" }, { "docid": "cb79d7fb0310b0c97cc01457278ad0d4", "score": "0.7463659", "text": "function searchAutoComplete() {\n if(self.selectedChoice() == 'name') {\n ...
58d7c7f824eb85f425882b570281395e
Method EventListener for "clear cart" button and Bubble EventListener for buttons(increase, decrease, remove) of individual cart items currently in the cart.
[ { "docid": "cebd1b645fe55708d5ee0933266d6d3e", "score": "0.75825727", "text": "cartLogic(){\n // <<<<<<<<<<<<<< Occur on Button click (AKA Main Method) >>>>>>>>>>>>>>>\n // EventListener for \"clear cart\" button\n clearCartBtn.addEventListener(\"click\", ()=>{ ...
[ { "docid": "49bd78155920cbaa96c9905736ec9030", "score": "0.7381544", "text": "cartUpdateLogic() {\n // to clear all the items in the cart\n clearCartBtn.addEventListener(\"click\", () => {\n const cartItemIds = cart.map((item) => {\n return item.id;\n });\n cartItemIds.forEac...
a09484bd1db6e61f49ce2bf9ba1155f6
Recomputes the plugin list using the injected plugins and plugin ordering.
[ { "docid": "f07dc80d3d3a7a1936edf2e9fed1b176", "score": "0.0", "text": "function recomputePluginOrdering() {\n\t if (!eventPluginOrder) {\n\t // Wait until an `eventPluginOrder` is injected.\n\t return;\n\t }\n\t for (var pluginName in namesToPlugins) {\n\t var pluginModule = namesToPlugins[...
[ { "docid": "ba5567c34810f09c90215e1f679ca6ed", "score": "0.77578306", "text": "sort() {\r\n this.list = [];\r\n for (let plugin of PLUGIN_ORDER) {\r\n if (this.plugins[plugin]) {\r\n this.list.push(this.plugins[plugin]);\r\n }\r\n ...
3ff3231901bb61238a587715f9e0712c
(protected) r = this a
[ { "docid": "fccad5ab8ac2aa3a58ff247ebe1fb576", "score": "0.0", "text": "function bnpSubTo(a,r) {\r\n var i = 0, c = 0, m = Math.min(a.t,this.t);\r\n while(i < m) {\r\n c += this[i]-a[i];\r\n r[i++] = c&this.DM;\r\n c >>= this.DB;\r\n }\r\n if(a.t < this.t) {\r\n c -= a.s;...
[ { "docid": "5cb18eeb6df206382b4242e766f5f3f1", "score": "0.69613516", "text": "function rb(a){m.call(this,1);this.c=a}", "title": "" }, { "docid": "e9247458246b55e8db4825f2ac189262", "score": "0.69610274", "text": "function z(){r.call(this)}", "title": "" }, { "docid": "d...
454bdfa738301123693fd360f69c10b0
this is the boat attack section. for axe, rubber chicken, and pool noodle action
[ { "docid": "771e1554ca275dbfbaf0d78a064f58b6", "score": "0.652678", "text": "function boatAttack() {\n//Rubber chicken\n if (weaponRowBoat === \"rubber chicken\" && randomSevenFive <= 7.5) {\n alert(\"You grab the \" + weaponRowBoat + \", and tried to smacked the zombie with it. It was not very ef...
[ { "docid": "1af56bfca97649ac9c262f5fef4897bf", "score": "0.6791817", "text": "async _3960_eventBanditsAttack() {\r\n await this.tt.print(\"BANDITS ATTACK\");\r\n const B1_shotTime = await this._6140_shoot();\r\n this.B_ammo -= 20 * B1_shotTime;\r\n if (this.B_ammo < 0) {\r\n await this....
c97f7bcef34574799d6e8c7b59f4e54b
Reestablece los valores de los campos de texto del formulario.
[ { "docid": "4afae0566dfb1be67c65a2838ef84f5f", "score": "0.0", "text": "onReset(evt) {\n evt.preventDefault()\n\n this.show = false\n this.form.nombre = \"\";\n this.form.url = \"\";\n this.form.descripcion = \"\";\n this.form.categoria = null;\n this.enEdicion = false...
[ { "docid": "44468e2566101e55281ee1f77fbfdc58", "score": "0.62927765", "text": "text (data) {\n\t\t// let type = data.fields.inputType.value.filter(function(type) {\n\t\t// \treturn type.selected == true;\n\t\t// });\n\t\treturn `\n\t\t<div className=\"${data.fields.containerClass.value}\">\n\t\t\t<div ...
8ad03b74b7b12a6e06949201a2f4288e
Authenticate a user with Apple's GameCenter against the server.
[ { "docid": "b2a6d9ebbf827653583b8c00a4ec2987", "score": "0.55917346", "text": "authenticateGameCenter(basicAuthUsername, basicAuthPassword, body, create, username, options = {}) {\n if (body === null || body === void 0) {\n throw new Error(\"'body' is a required parameter but is null or unde...
[ { "docid": "8810fa9afbf9eeec632bcf3d59bbd704", "score": "0.64254737", "text": "authenticateApple(_0, _1, _2) {\n return __async(this, arguments, function* (token, create, username, vars = {}, options = {}) {\n const request = {\n \"token\": token,\n \"vars\": vars\n ...
90d728be8be410751b21cf81f14ebca0
Q. Replace With Alphabet Position ( You are required to, given a string, replace every letter with its position in the alphabet. If anything in the text isn't a letter, ignore it and don't return it. Example 1: "a" = 1, "b" = 2, etc. Example 2: "The sunset sets at twelve o' clock." = 20 8 5 19 21 14 19 5 20 19 5 20 19 ...
[ { "docid": "ff0673c318e9695930acaf3f00ff3979", "score": "0.6863487", "text": "function alphabetPosition(text) {\r\n var result = \"\";\r\n\r\n for (var i = 0; i < text.length; i++) {\r\n var letterNumber = text.toUpperCase().charCodeAt(i);\r\n\r\n if (letterNumber > 64 && letterNumbe...
[ { "docid": "fd7fc7686a7474593bc2785d70ff45e1", "score": "0.7565079", "text": "function alphabetPosition(text) {\n let replacePosition = \"\";\n let newPhrase = \"\";\n const phrase=text.split(\"\")\n // console.log(phrase)\n for(let i= 0; i<phrase.length ; i++){\n replacePosition = searchletter...
c66bab6aa6a2d5115a07889b934f7625
Cria uma area de insercao de comentarios no perfil da disciplina escolhida pelo usuario
[ { "docid": "436078e75639be23b669f45c906af240", "score": "0.0", "text": "function comentarioPerfilInputCreator(id) {\n const input = document.createElement(\"input\")\n\n input.type = \"text\"\n input.id = \"comentarioPerfilInp\"\n input.placeholder = \"Escreva um comentario\"\n\n input.on...
[ { "docid": "358d9eeccea56fc7af0166d6921a9572", "score": "0.57873875", "text": "function insertData(user,giorno,pasto,menu_giorno,pasto_scelto) {\n //crea un user\n user.create({\n first_name: 'Rossi',\n last_name: 'Mario'\n });\n //crea giorni\n giorno.create({\n ...
b12a410df73fdd98f7b5469c9c13f57d
Convenience getter for the individual 1,1 entry of the matrix.
[ { "docid": "a78c20e2aac3cd64d781fd1c8af36490", "score": "0.0", "text": "m11() {\n return this.entries[4];\n }", "title": "" } ]
[ { "docid": "2d2e554cf7e15a718384851976af8bfe", "score": "0.6771095", "text": "function get$1(row, column, matrix) {\r\n var columns = matrix[row];\r\n if (columns === undefined) {\r\n return undefined;\r\n }\r\n return columns[column];\r\n}", "title": "" }, { "docid": "b73...
50e3fd5019ceb51af0224fdde24a196f
Subtracts 2 complex numbers
[ { "docid": "a77e773ea2e786ebaff7096defd28231", "score": "0.66921914", "text": "function sCC(num1, num2)\n{\n\treturn new ComplexNumber(num1.real - num2.real, num1.img - num2.img);\n}", "title": "" } ]
[ { "docid": "7654799622fc2889df9db09c985569b6", "score": "0.70480686", "text": "sub (b) {\n\t\t\treturn Complex.C (this.x - b.x, this.y - b.y);\n\t\t}", "title": "" }, { "docid": "ebf0cb52b611ae23c42994216a394ca6", "score": "0.6331376", "text": "function subtract(a,b) {\n\treturn a - ...
58d70b403c17c3a3bfc44365484945c1
different options opens up some testing and extensibility scenarios
[ { "docid": "1fbf5aef2f8da23e3a0796cbcb06cf1c", "score": "0.0", "text": "function createConnect(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$connectHOC = _ref.connectHOC,\n connectHOC = _ref$connectHOC === void 0 ? connectAdvanced : _ref$connectHOC,\n _ref$mapStateToPropsF ...
[ { "docid": "c31f178f067d5892f413755a6ea9ea3a", "score": "0.64345425", "text": "function q5_test() {\r\n // todo: write a test driver\r\n // hint: be sure to test for all 3 options\r\n}", "title": "" }, { "docid": "5e82acbb8c4b871258d4ab8bdb1881fb", "score": "0.6416309", "text": "fu...
53d1e21755182b11fd82b129bda419bf
Example: Given [0,4] return [0,4] Givem [2,1] return [1,2
[ { "docid": "1ecc8664351295b35ed7f57ebdd92c6f", "score": "0.0", "text": "function _sort(edge) {\n return edge[0] < edge[1] ? edge : [edge[1], edge[0]];\n}", "title": "" } ]
[ { "docid": "f090423f0ffe365daa5b07fc587f44fa", "score": "0.6067559", "text": "function returnReverso(array) { //[1, 2, 3]\n var temp = 0;\n for (var i = 0; i < array.length / 2; i++) {\n // temp = array[0] = 1\n temp = array[i];\n // 1 = array[3-1-0]>2>3\n array[i] = ar...
db710b48dd3b039edd0c9c07f0ac1340
OPEN MODAL ADD SUBJECT
[ { "docid": "3d1e21d7cc380747461410e8646fd102", "score": "0.0", "text": "function openModalAddSubject(tableId) {\n window.currentTable = tableId;\n\n document.getElementById(\"coursenameinput\").value = \"\";\n\n document.getElementById(\"coursecodeinput\").value = \"\";\n\n document.getElementById(\...
[ { "docid": "49e0ac8a9df7c85b3a15ac2706473e5f", "score": "0.64424056", "text": "navigateAdd() {\n this.channel.trigger('show:form');\n }", "title": "" }, { "docid": "1188913493fdce5feec8ae65ea873982", "score": "0.6441771", "text": "function facyadd_pro(){\n $.fancybox.ope...
bfac44cec6298b86c8c0dc8f5ac209ad
================================================================================= Cache declaration =================================================================================
[ { "docid": "b6f45acdeaac9f391c31c0046d533db7", "score": "0.646481", "text": "function FrameworkCache() {\n\tthis.items = {};\n\tthis.count = 1;\n\tthis.interval;\n\tthis.$sync = true;\n}", "title": "" } ]
[ { "docid": "5d19204bfc2d7f71359da64e6c57e304", "score": "0.79408216", "text": "function Cache() {}", "title": "" }, { "docid": "7c7f91cf7cf9a0610c0efcb29c7c02fa", "score": "0.7507548", "text": "function Cache() {\n this.store = {};\n }", "title": "" }, { "docid"...
4567c4304631078a1197bb8ee92839f0
require('mapjs:/test/perftests.js'); / Note that for now, we cannot have more than one MapJSWidget on the same page
[ { "docid": "62d081f2d9955d56d0ff988277c9963a", "score": "0.5881944", "text": "function MapJSWidget() {\n\tvar that=this;\n\t\n\tthis.div=function() {return m_div;};\n\tthis.setSize=function(W,H) {_setSize(W,H);};\n\tthis.initialize=function() {return _initialize();};\n\tthis.setMap=function(map) {return...
[ { "docid": "aec18196b1524efa66edaa2b32cfa1a2", "score": "0.653004", "text": "function jsonLoadTestSetup() {\r\n tm = TimeMap.init({\r\n mapId: \"map\", // Id of map div element (required)\r\n timelineId: \"timeline\", // Id of timeline div element (required) \r\n ...
c761860504b03738efce26428ec3ccdb
Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding DOM node.
[ { "docid": "001996f5f3d39c544010d0be98b7ff99", "score": "0.0", "text": "function getNodeFromInstance(inst) {\n // Without this first invariant, passing a non-DOM-component triggers the next\n // invariant for a missing parent, which is super confusing.\n !(inst._hostNode !== undefined) ? process.env....
[ { "docid": "2573538442e24d1ccc09f844cef16613", "score": "0.69183946", "text": "function findDOMNode(node) {\n if (node instanceof HTMLElement) {\n return node;\n }\n if (node instanceof React__default.Component) {\n return ReactDOM.findDOMNode(node);\n }\n return null;\n}", "title": "" ...
683ee3e20dafd69d8fe8b782b8b1b5cd
Extracts the basic component parts of a date (day, month and year) to the expected format.
[ { "docid": "1e0622eba4fad2f1756370de0684917f", "score": "0.6992598", "text": "static _extractDateParts(date) {\n return {\n day: date.getDate(),\n month: date.getMonth(),\n year: date.getFullYear()\n };\n }", "title": "" } ]
[ { "docid": "8699849f1e3a47e5340da92313f5a5bf", "score": "0.68684363", "text": "function getDateParts(format, date) {\n var date = format.parse(date),\n year = date.getFullYear().toString().substr(2, 2),\n month = date.getMonth() + 1,\n day = date.getDate();\n\n ...
856fe2ca1345a9032620ab2bae08d64e
Hanko label text (can be used instead of `children`).
[ { "docid": "6a4765e434a7677ac3e55ff378db624e", "score": "0.0", "text": "familyName(props, propName) {\n\t\t\tif ((props.children === '') && (props[propName] === '')) {\n\t\t\t\treturn new Error(\n\t\t\t\t\t'Please provide either a familyName or children prop to render <Hanko />.'\n\t\t\t\t);\n\t\t\t}\n\...
[ { "docid": "c73b51e3cb5d7f9387a0c33ff6ad9416", "score": "0.7261253", "text": "getLabel() { return this.core.textContent; }", "title": "" }, { "docid": "13c5348fcd4793409c059dffb791cb90", "score": "0.7246027", "text": "function makeLabel(text) {\n return `<span class=\"inli...
53f51ddab11a7c82414cac87b361c28e
Runtime helper for rendering
[ { "docid": "40f6ab41d643efc2c75f2f6d2797f96d", "score": "0.0", "text": "function renderSlot (\n name,\n fallback,\n props,\n bindObject\n) {\n var scopedSlotFn = this.$scopedSlots[name];\n var nodes;\n if (scopedSlotFn) { // scoped slot\n props = props || {};\n if (bindObject) {\n if (...
[ { "docid": "52a3157dccc8fb8d993576cc5df0cf6d", "score": "0.797086", "text": "render() {}", "title": "" }, { "docid": "52a3157dccc8fb8d993576cc5df0cf6d", "score": "0.797086", "text": "render() {}", "title": "" }, { "docid": "52a3157dccc8fb8d993576cc5df0cf6d", "score": ...
ade950c9d20201fe397581dd54daa407
backgroundColor = backgroundcolor, convert from camelCase to dash.
[ { "docid": "321b4e2a34f29627b5db91982154ac34", "score": "0.0", "text": "function camelCaseToDash(key) {\n return key.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n }", "title": "" } ]
[ { "docid": "66ca55d0c355aaa2c66d3ae69b7bbc74", "score": "0.6462413", "text": "get backgroundColor() { return this._backgroundColor; }", "title": "" }, { "docid": "66ca55d0c355aaa2c66d3ae69b7bbc74", "score": "0.6462413", "text": "get backgroundColor() { return this._backgroundColor; }...
404f0bd10b1cf51f6d6b16a35bc9f11f
It seems a linked list but it is not there will be only 2 of these for each stream
[ { "docid": "9fac5f5b1ad82b05f14cecdb458549f0", "score": "0.0", "text": "function CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}", "title": "" } ]
[ { "docid": "a493a676eeedf58ae92bd8aac71d1d40", "score": "0.59427845", "text": "printList() {\n //1. creo un puntero auxiliar y lo apunto a head de la lista\n let aux = this.head;\n //2.la recorro con un while: condición: recórrela hasta que llegues al final (es decir, hasta que next apunte a nu...
dbe193a195def133cf6583e43548e438
Rendering Data in the DOM
[ { "docid": "b5593dd470042da478f6ff17730ff561", "score": "0.0", "text": "function renderItems(items) {\n items.forEach((item) => {\n let doc = document.createElement(\"div\");\n doc.classList.add(\"product-details\", \"my-4\")\n doc.innerHTML = `\n <div class=\"product-...
[ { "docid": "5219e545049348372d38156de8272c59", "score": "0.76472455", "text": "display(data) {\n this.prepareData(data);\n this.generateHTML();\n this.initEvents();\n }", "title": "" }, { "docid": "c398208d2e0034dc7cfc1c75279635e8", "score": "0.7590977", "text...
674395e2517418b48faa848b75097be2
changes color of addNote button when input is being given
[ { "docid": "4667904e288e265f58c9de9a1a326d9f", "score": "0.7225358", "text": "function chng()\n{\n document.getElementById(\"addingNote\").style.backgroundColor = \"black\";\n document.getElementById(\"addingNote\").style.color = \"white\";\n}", "title": "" } ]
[ { "docid": "7b971ac8a8a2872d6238285b833ffc67", "score": "0.6745056", "text": "function addNote(){\n let text=document.getElementById('formNoteText').value;\n let backgroundColor=document.getElementById(\"formColor\").value;\n\n let newNote = document.createElement(\"div\");\n newNote.classNa...
40eeb694a71e36fe69d6ff599df8d770
display the numbers and mark even numbers bold display or view function(s)
[ { "docid": "e8127fb55ffc6233864e3a691abb2da9", "score": "0.5950563", "text": "function displayNumbers(numbers){\n let templateRows= \"\";\n for (let index = 0; index < numbers.length; index++) {\n let className = \"even\";\n let number = numbers[index];\n\n if(number % 2 == 0)...
[ { "docid": "478e762736ca5ca46acc6e2051e7a7ff", "score": "0.6687964", "text": "function displayNumbers(fluffyKitty) {\n //create a string to hold a class name based on even or odd\n let className = \"even\";\n //create a string that will hold our output\n let templateRows = \"\";\n\n //go ...
0fa6b5ed531b18375ebe9791b13ea8e3
6. Create a function called celsiusToFahrenheit that takes a Celsius temperature as an argument and returns the temperature in Fahrenheit.
[ { "docid": "d7aa0002c20b71af0cdf499f09cafc3a", "score": "0.8912929", "text": "function celsiusToFahrenheit(celsiusTemp){\n let fahrenheitTemp = (celsiusTemp * (9/5)) + 32\n return fahrenheitTemp\n}", "title": "" } ]
[ { "docid": "d5820c4208f60844ba21a06ee1dd6795", "score": "0.87554634", "text": "function celsiusToFahrenheit(temperature){\r\n return (temperature * 9/5) + 32;\r\n}", "title": "" }, { "docid": "d5820c4208f60844ba21a06ee1dd6795", "score": "0.87554634", "text": "function celsiusToFah...
61c7ea805efa229cd68d378cff179e9b
Determine if the argument is shaped like a Promise
[ { "docid": "987ede70da74a67fb0de0ea4bbe0decf", "score": "0.6469936", "text": "function isPromise(obj) {\r\n // allow any Promise/A+ compliant thenable.\r\n // It's up to the caller to ensure that obj.then conforms to the spec\r\n return !!obj && typeof obj.th...
[ { "docid": "68cf69740f96177a721f35f26c41bcd4", "score": "0.70473653", "text": "function isPromise(input) {\n return (\n (\n typeof Promise !== 'undefined' &&\n input instanceof...
25297053c38d3a46d86edf3f11b7a118
=buro_slideshows > =SlideDownUpText (home jobs/news)
[ { "docid": "57b135519a0b6ed7b9a097325b2b4236", "score": "0.69893295", "text": "function slideshow_slideDownUpText($slide, $slideExtra, direction, index_this, index_on) {\n var $nextSlide = $slide.filter(\"[data-slideshow-n=\" + index_this + \"]\");\n var $prevSlide = $slide.filter(\"[data-slidesho...
[ { "docid": "c052b48719375ee2964b2142099e7aaa", "score": "0.6638219", "text": "function slideshow_slideDownUpTextOLD($slide, $slideExtra, direction, index_this, index_on) {\n var $nextSlide = $slide.filter(\"[data-slideshow-n=\" + index_this + \"]\");\n var $prevSlide = $slide.filter(\"[data-slides...
f44f71127980ea57bff70b57dd8f4f97
get the week number for a given date (
[ { "docid": "aa4db19b0bb46c026ec2d9bcbb6aeb82", "score": "0.7710254", "text": "function getWeekNumber(inputDate)\n{\n\tvar oneJan = new Date(inputDate.getFullYear(), 0, 1);\n\tvar numberOfDays = Math.floor((inputDate - oneJan) / (24 * 60 * 60 * 1000));\n\tvar result = Math.ceil((inputDate.getDay() + 1 + ...
[ { "docid": "e011e4bc15dbac1220bebabea8bfe9b6", "score": "0.8714733", "text": "w (date) {\n return getWeekOfYear(date)\n }", "title": "" }, { "docid": "5fe01f32bfe97aad96772121fec8e58d", "score": "0.8509785", "text": "function _weekNumber(date) {\n var ytd = toNumber(date.strftim...
19423e379a4e540aaee6d72dcf5add9a
Creates a new square button with the given position, backgrounds, text, actions and type. x,y Sets the position in the canvas. wh Sets the width and height of the button. bColor The background color of the button. hBColorThe hover color of the button. txtThe label of the button. action The value that gets set to the gl...
[ { "docid": "e383a1fc4c4abfdc670bf9e9942e4b9e", "score": "0.72166806", "text": "function drawButton(x,y,wh,bColor,hColor,txt,action){\n push();\n // Draw the text and try to center it(25 would be the size of a 100 wh button).\n fill(txtColor);\n var txtSize = wh*25/100;\n textSize(txtSize);\n textA...
[ { "docid": "ef8e916cada2da5da54bdbb907b79f98", "score": "0.6739085", "text": "function Button(relX,relY,w,h,text,col,type,func,func2 = undefined){\r\n\tthis.relX = relX;\r\n\tthis.relY = relY;\r\n\tthis.w = w;\r\n\tthis.h = h;\r\n\tthis.text = text;\r\n\tthis.execute = func;\r\n\tthis.col = col;\r\n\tth...
f395f70e72ede5201b573d4cc77d94a8
Get the video fom API
[ { "docid": "377377e5a1418f45ceebd64652e307ad", "score": "0.0", "text": "function getVideo() {\n $.ajax(\n {\n url: apiUrl, //địa chỉ api\n type: 'GET',\n success: function(data, status) {\n console.log(data);\n var appendHTML = '';...
[ { "docid": "2e5d7dec87657358fb9747994c709ed1", "score": "0.7349106", "text": "getInitialVideo(id) {\r\n var headers = {\r\n \"Content-Type\": \"application/x-www-form-urlencoded\"\r\n }\r\n var data = `client_id=${extensionField.config.client_id}&client_secret=${extension...
aecd73f33d74915a668c9cd9298b16bc
This convenience funnction returns an alert template, which can be used to present errors to the user.
[ { "docid": "9186a89940ea06954444d3653a0eb9f2", "score": "0.0", "text": "function createAlert(title, description = \"\") {\n let alertString = `<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n <document>\n <alertTemplate>\n <title>${title}</title>\n <description>${de...
[ { "docid": "edd2d09c590f5b0228697a9d5dee5a02", "score": "0.7120013", "text": "template() {\n return `<div>\n <h4 class=\"alert-title\"></h4>\n <h6 class=\"alert-msg\"></h6>\n <div class=\"alert-body\"></div>\n </div>`;\n }", "title": "" }, { ...
26ed8bdc54be7c036000d4d7cc224e92
Returns the style string of all the initial styles for the element. This function is designed to populate and cache all the static style values into a style string. The caching mechanism works by placing the completed style string into the initial values array into a dedicated slot. This will prevent the function from ...
[ { "docid": "1bd7377fa66100aa5cd056f0e1b9f8e6", "score": "0.69137675", "text": "function getInitialStyleStringValue(context) {\n var initialStyleValues = context[3 /* InitialStyleValuesPosition */];\n var styleString = initialStyleValues[1 /* CachedStringValuePosition */];\n if (styleString === ...
[ { "docid": "23d55352f9f3aa7ed67d8d4c03bd85d4", "score": "0.6791103", "text": "function renderInitialStyles(element, context, renderer, startIndex) {\n var initialStyles = context[3 /* InitialStyleValuesPosition */];\n var i = startIndex || 2 /* KeyValueStartPosition */;\n while (i < initialStyl...
7fa616cc8b70ba330c90932550968bda
Below function is used to delete document from local storage by document key.
[ { "docid": "35768d2fa13a5a3ba15cfad5eaf97e5e", "score": "0.73920405", "text": "function removeLocalStorageDataByKey(e) {\r\n\r\n localStorage.removeItem(documentKey);\r\n documentKey = null;\r\n}", "title": "" } ]
[ { "docid": "58cecf5ff03b118e3472bd03bc10fbb1", "score": "0.7702191", "text": "function removeDocument(key) {\n console.log(\"the key is \"+key);\n store.remove(key);\n listDocuments();\n}", "title": "" }, { "docid": "2216f4e11fd76327df09ad27cf993a6d", "score": "0.7122293", "text":...
b7f33a54a3164bf04330641c687875e0
Setting rowsPerPage to 0 shows all rows, see render below
[ { "docid": "8494947b0cf84270b86d3e0c5e245d8b", "score": "0.6265194", "text": "updateRowsPerPage(rowsPerPage) {\n this.setState({\n rowsPerPage: rowsPerPage,\n currentPage: 1\n })\n this.props.numberOfRows && rowsPerPage ? this._fetchAndSetStateExperimentDesign(this.state.currentPage, ...
[ { "docid": "cfae9cf00a29b78d4027e4987145c695", "score": "0.6607137", "text": "function handleChangeRowsPerPage(event) {\n setRowsPerPage(parseInt(event.target.value, 10));\n setPage(0);\n }", "title": "" }, { "docid": "f0d16f52b6473b76891fc97f0909c8dc", "score": "0.6343098", "...
b0cae94810923465ab3c548351d43576
don't use spEntity.toJSON in the map calls due to its additional 'hidden' args
[ { "docid": "5cd4c2c30837d45a2a329c1fc97a0821", "score": "0.67300844", "text": "function toJson(e) {\n return spEntity.toJSON(e);\n }", "title": "" } ]
[ { "docid": "14c1ca42fa6ee084cc9cfb0bc20bf12e", "score": "0.61311543", "text": "toJSON() {\n return {\n id: this.id,\n ownerId: this.ownerId,\n accessKey: this.accessKey,\n ...this[inspectCustomData]()\n };\n }", "title": "" }, { "d...
dee3a2905d8232a8630b7ea7adea90ce
handles the action after the audio player has stopped playing tasks a. update the view to countdown for 10 seconds b. send the results after 10 seconds c. Change the button to stop
[ { "docid": "f2d64a07d8cc0569e2191ea3e550a691", "score": "0.66273195", "text": "function uncleStopped() {\n changeBtn(\"timer\");\n setTimeout(function() {\n countDown(10);\n }, 1000);\n }", "title": "" } ]
[ { "docid": "87a017b56ee4e654928665f98cdc5dc0", "score": "0.6878773", "text": "function stopped() {\n divPlaybackControl.onclick = play;\n divPlaybackControl.title = \"Play\";\n divText.classList.remove(\"progressBar\");\n divText.setAttribute(\"style\", \"\");\n clearCanvas();\n }", ...
0305d298b4e12b1878e31c3c3f267987
FUNCION PARA RECARGAR LA TABLA DEL ALMACEN
[ { "docid": "bff68662b95d4dd77b639bae42d40d4a", "score": "0.0", "text": "function recargarTablaActividad() {\n var tabla = $('#lista-actividad').DataTable();\n tabla.ajax.reload();\n}", "title": "" } ]
[ { "docid": "edfd468a82be33c892733417ab176766", "score": "0.6489333", "text": "function crearListaColumnas(typeTbl) {\n var columnasTabla = new Array();\n\n if (typeTbl === 1) {//Parametros\n var col = {\n \"tituloColumna\": idiomaSelecionadoCol.messageFormatter(\"ParaConcepDeNomN...
75d3f7d2699997703b9def23c39d1bed
Return the correct CMP integration ID based on the domain name
[ { "docid": "b0307443fdf65cc4aef95164f3224b09", "score": "0.7027955", "text": "function getOtDomainId() {\n const domains = {\n 'adobe.com': '7a5eb705-95ed-4cc4-a11d-0cc5760e93db',\n 'hlx.page': '3a6a37fe-9e07-4aa9-8640-8f358a623271',\n 'project-helix.page': '45a95a10-dff7-4048-a2f3-a235b5ec049...
[ { "docid": "79a42f553d7e4537047748d07b8b5298", "score": "0.57829624", "text": "function orgNameToId(name){\n if( name.match(/human/i) ){\n return 9606;\n\n } else if( name.match(/mouse/i) ){\n return 10090;\n\n } else {\n return -1;...
41e89e32f1b687609b25c5004dac464f
We now move onto our friends in the signed number category. Unlike unsigned numbers, we're going to have to worry a bit more about how we put values into arrays. Since we are only worrying about signed 32bit values, we're in slightly better shape. Unfortunately, we really can't do our favorite binary & in this system. ...
[ { "docid": "92b0d1cbb0c74a712b72d119a4f57428", "score": "0.0", "text": "function verifsint(value, max, min) {\n assert.ok(typeof (value) == 'number',\n 'cannot write a non-number as a number');\n\n assert.ok(value <= max, 'value larger than maximum allowed value');\n\n assert.ok(value >= min, 'v...
[ { "docid": "ce9b9fb7d3a2e7f566c035cc27b9196b", "score": "0.68313843", "text": "function wgint32(val, endian, buffer, offset)\n{\n\tif (endian == 'big') {\n\t\tbuffer[offset] = (val - (val & 0x00ffffff)) / Math.pow(2, 24);\n\t\tbuffer[offset+1] = (val >>> 16) & 0xff;\n\t\tbuffer[offset+2] = (val >>> 8) &...
52ee13028d0182d338afb4c2ebfcc10f
UnionTypeExtension : extend union Name Directives[Const]? UnionMemberTypes extend union Name Directives[Const]
[ { "docid": "354b8b4ed33bf01f51cebeead8a8203f", "score": "0.7579103", "text": "function parseUnionTypeExtension(lexer) {\n var start = lexer.token;\n expectKeyword(lexer, 'extend');\n expectKeyword(lexer, 'union');\n var name = parseName(lexer);\n var directives = parseDirectives(lexer, true);\n va...
[ { "docid": "06f91e0feeae3ec5ecf9a5d18a0bde25", "score": "0.7586277", "text": "function parseUnionTypeExtension(lexer) {\n var start = lexer.token;\n expectKeyword(lexer, 'extend');\n expectKeyword(lexer, 'union');\n var name = parseName(lexer);\n var directives = parseDirectives(lexer, true);\n va...
08ff2c6888dca0beac919e22234cc147
Browser / Version detection Get correct name for fetching UI assets
[ { "docid": "44282e95230494f9dcee8279208b2ff0", "score": "0.52255416", "text": "function getBrowserName () {\n if (!browserInfo || !browserInfo.browser) return\n\n let browser = browserInfo.browser.toLowerCase()\n if (browser === 'firefox') browser = 'moz'\n\n return browser\n}", "title":...
[ { "docid": "c8b750f2075f8a43ca722d592873023c", "score": "0.6230242", "text": "get assetBundleName() {}", "title": "" }, { "docid": "95d548f4d3c989327f408f772524480b", "score": "0.6181082", "text": "get customElementName() {\n const r = /chrome\\:\\/\\/downloads\\/([a-zA-Z-_]+)\\.h...
c5676ee934fc0245083b785b6a31c862
(public) return the number of bits in "this"
[ { "docid": "0a852be76da0ff1fef4e7fe0a0e2b154", "score": "0.7164797", "text": "function bnBitLength() {\n if (this.t <= 0) return 0;\n return this.DB * (this.t - 1) + nbits(this[this.t - 1] ^ (this.s & this.DM));\n}", "title": "" } ]
[ { "docid": "ec1ab3b341da690b41707db71c366f14", "score": "0.7886142", "text": "function bitCount() : number {\n var this_array = this.array;\n var r = 0, x = this.s&BigInteger.DM;\n for(var i = 0; i < this.t; ++i) r += BigInteger.cbit(this_array[i]^x);\n return r;\n }", ...
d8a16a2ed410bd0770e826d5c708054e
envio dos inputs para tratamento
[ { "docid": "a5131c8097c568f50473a5747c9f43b2", "score": "0.0", "text": "function verificaNome(nome) {\n const regex = new RegExp('^[ 0-9a-zA-Zàèìòùáéíóúâêîôûãõ\\b]+$');\n if (nome <= 0 || !regex.test(nome)) {\n erroNome();\n return true;\n }\n }", "title": "" } ]
[ { "docid": "20b12aea3e0be07762677ffcc2adddfb", "score": "0.63873243", "text": "function input() {\n r = inputNumber(ipR, 3, true, 0.1, 10); // radio (m)\n tPer = inputNumber(ipT, 3, true, 1, 10); // // período (s) \n m = inputNumber(ipM, 3, true, 0.1, 10); // masa (kg)\n}", "title": "" },...
30308a30cf48ab25a4be48b8077b7d01
Callbacks para controlar los distintos instantes de la subida
[ { "docid": "fc8fe27071f33baf614b16f2e6d7fa05", "score": "0.0", "text": "function registrandoEstadoSubida(uploadSnapshot) {\r\n\r\n var calculoPorcentaje = (uploadSnapshot.bytesTransferred / uploadSnapshot.totalBytes) * 100;\r\n calculoPorcentaje = Math.round(calculoPorcentaje);\r\n ...
[ { "docid": "0134d30f8195ef8190313a3180444e27", "score": "0.57155687", "text": "siguienteNivel(){\n //empieza en 0 en cada uno de los niveles\n this.subnivel = 0\n this.iluminarSecuencia()\n this.agregarEventosClick()\n }", "title": "" }, { "docid": "c79e221df226843d8d4ba4ea9f7a6...
477f7e5bca990cea81347267f8a93e09
5. Write a function to find the position of the first occurrence of a character in a string. The result should be the position of character. If there are no occurrences of the character, the function should return 1.
[ { "docid": "45046c7b81b1c2ea8ff20e80115ea1a9", "score": "0.6926413", "text": "function positionA(string) {\n var a = 1;\n for (var i = 0; i < string.length; i++) {\n if (string[i] === 'a') {\n return a\n } else {\n a++;\n }\n }\n if (a > string.leng...
[ { "docid": "dfcea27624c5b32f07fff6b5d41a4de3", "score": "0.86263907", "text": "function firstOccur(string,char) {\n var position = 0;\n for (var i = 0; i < string.length; i++) {\n if (string[i] === char) { \n position = i+1; // il...
f087cebc489cb496d74f245b1722966a
Write a function that would allow you to do this. var addSix = createBase(6); addSix(10); // returns 16 addSix(21); // returns 27
[ { "docid": "2295d85f2d5f3fda020964f20afec261", "score": "0.7106029", "text": "function createBase(baseNumber) {\n return function (n) {\n return n+baseNumber\n\n }\n\n}", "title": "" } ]
[ { "docid": "fcc57ac3095b663a7934a9425fe3a40a", "score": "0.7963907", "text": "function createBase(x) {\r\n return function addSix (y) {\r\n return (x+y) };\r\n}", "title": "" }, { "docid": "ad75533b4916de1b27b368bb6f29419a", "score": "0.74145204", "text": "function createBase(i...
7552b25c70581d2c0a53ae10fdca57e1
close the s should be reset yet.
[ { "docid": "6e6fe3ad4913beba5b3e009b52ce2781", "score": "0.0", "text": "function onclose(self){\n \n var _internal = self._internal_data_;\n \n //close msg\n var close_msg = {};\n close_msg[CONST.DEFAULT_MSGID] = CONST_MSG.CLOSE;\n _internal.handler.handle(close_msg, self);\n}", ...
[ { "docid": "1d0c49e9e1a479ce44af3216f56833a2", "score": "0.7358258", "text": "function close() {\n this.forced = this.state;\n this.state = STATE.CLOSED;\n }", "title": "" }, { "docid": "21198f125224925a9638573bdd0ae72e", "score": "0.73355216", "text": "c...
05461170a890d22dd4d1c9dd63b073c7
This function is the select suggestion handler function. When a suggestion is selected, this function is called by the library. You can redirect to the page you want using the suggestion data.
[ { "docid": "4580097e2cb5afcc9dc3f70b5d3b3046", "score": "0.81900966", "text": "function handleSelectSuggestion(suggestion) {\n // TODO: jump to the specific result page based on the selected suggestion\n // \"../movieList.html\"\n location.href = \"./MovieInformation/movie.html?id=\" + suggesti...
[ { "docid": "58dd271ec71cc8caf2e1f384744cb6b0", "score": "0.83394676", "text": "function handleSelectSuggestion(suggestion) {\r\n\t// TODO: jump to the specific result page based on the selected suggestion\r\n\t\r\n\tconsole.log(\"you select \" + suggestion[\"value\"] + \" with ID \" + suggestion[\"data\...
aa708f3256412172f8f4527f00f8f9cd
this should remove the current state of divs and forms and replace it with the results
[ { "docid": "4e237e2d52d6115e2075874f04265818", "score": "0.0", "text": "function showResults() {\n $('.mainForm').toggle();\n $('#nextButton').toggle();\n if (scoreCounter >= 4) {\n $('.resultsDiv').html(`<body>\n <header id=\"headerScore\"><h1>RESULTS</h1> \n </header>\n ...
[ { "docid": "52d0730eebb99fc11a20d3f636781afb", "score": "0.66617167", "text": "function clearCurrentForm() {\n\t\t\t\n\t\t\tif ($currentForm !== null && $currentItem !== null) {\n\t\t\t\t$currentForm.appendTo($currentItem);\n\t\t\t\t$currentForm = $currentItem = null;\n\t\t\t}\n\t\t\t\n\t\t}", "titl...
e892c2437f87e314ca01d1b6583958d2
slide nav auto scroll
[ { "docid": "1694b6844389a6856cf72d28b99c33bb", "score": "0.0", "text": "function setSlideNavTimer(){\n window.clearInterval(slideNavTimer);\n var timer = window.setInterval(function(){\n var next = $(\".slide-nav li.active\").next().length ? $(\".slide-nav li.active\").next() : $(\".slide-nav...
[ { "docid": "eb07d4cce6f6bf1d6b3dc2cef109c319", "score": "0.7257197", "text": "function scrollNav() {\r\n $('.right-menu-list a').click(function() {\r\n //Animate\r\n $('html, body').stop().animate({\r\n scrollTop: $($(this).attr('href')).offset().top - 160\r\n...
f5eaa842d94df0a03379f4268b5078af
display the details of the currnt path on the dir page eg: home > docs > slides
[ { "docid": "fe58ee6038221409448d6ec9e21d05f8", "score": "0.55122304", "text": "function display_path_bar(url,$p)\n{\n segment = url.split(\"/\");\n url = \"/\" + decodeURIComponent(segment[3]);\n //$p.append('<a href=\"' + url + '\">' + segment[3] + \"</a>\");\n $p.append('<a href=\"' + url ...
[ { "docid": "89b15e5d37335371fd5991d2a317e0ca", "score": "0.62105566", "text": "function showCurrentPath() {\n currentPathLabel = document.getElementById('driveCurrentPath');\n currentPathLabel.innerText = \"\";\n for (let i = 0; i < driveManager.currentPath.length; i++) {\n item = driveM...
0adcf2d57e33706d33d91f1115bf389f
Action for back arrow on devices
[ { "docid": "535ff07f27dea60f8e3ad4ea84ca4d15", "score": "0.0", "text": "function onBackKeyDown() {\n $scope.closeModal();\n }", "title": "" } ]
[ { "docid": "4e09d23168810c3e2f2ea358fc90474a", "score": "0.7271899", "text": "handleBackAction() {\n this._triggerOnBack();\n }", "title": "" }, { "docid": "60921269714961d401a124c4ad4e3050", "score": "0.7228686", "text": "back() {\n this._platformStrategy.back();\n }", "...
430683387128fcfb6a64f13a0f20da68
endGame() handles all the ways a game can end
[ { "docid": "5cad56519bdf25256a8e51c59d7e458a", "score": "0.7877911", "text": "async endGame() {\n cooldownList[this.startingPlayer.id] = Date.now();\n if(this.messageCollector) await this.messageCollector.stop();\n if(this.reactionCollector) await this.reactionCollector.stop();\n ...
[ { "docid": "c996d738b34959198dbd39a2c40ede08", "score": "0.8353585", "text": "function endGame() {\n// This function is called when everything is solved\n}", "title": "" }, { "docid": "8709a3d5b95075183e0065d0f498a939", "score": "0.81633115", "text": "function endGame()\n\t{\n\t\tdon...
f3405d06f3764651d77850578eeeaf6d
rassocP1 x = rassocP x return x
[ { "docid": "798911e7c8bb7dd58ad6ccb3e01a89e9", "score": "0.7936509", "text": "function rassocP1(x){\r\n return parserPlus(rassocP(x), return_(x));\r\n }", "title": "" } ]
[ { "docid": "7296c6dab46c3f54bec108715235b631", "score": "0.6040893", "text": "function prs1(a){\n if (emp(a))return ef();\n if (beg(a, \"(\"))return plis(a);\n if (beg(a, \"{\"))return pobj(a);\n if (beg(a, \"[\"))return pnfn(a);\n if (beg(a, \"\\\"\"))return pstr(a);\n if (beg(a, \"|\...
659338163eca893feb51c06374c0fe0c
TX_FULL = 0, TX_HEADER = 1, TX_PREVOUTSEQ = 2, // prev out and sequence TX_SIGNATURE = 3, TX_OUTPUT = 4, TX_SHIELDEDSPEND = 5, TX_SHIELDEDOUTPUT = 6
[ { "docid": "bb391a6a26cbed81a4ab880b844ec222", "score": "0.5187389", "text": "function getPartialTransaction(proof){\n\n //foreach component hash the elVchObj then check that against the elProof\n let checkOk = true;\n let isPartial = true;\n let outTX = {};\n let txRoot = null;\n if(p...
[ { "docid": "7ad88968a3f6e2a025df9999977f0e5e", "score": "0.55105734", "text": "function Tx(a,c){this.g=[];this.v=a;this.I=c||null;this.f=this.b=!1;this.c=void 0;this.A=this.G=this.i=!1;this.j=0;this.a=null;this.l=0}", "title": "" }, { "docid": "ee4b79a6fd6f38889f2d30e59e05cdd9", "score":...
38577d54f2b7c3e7ae3690c9803578e6
(public) this / a
[ { "docid": "43c36a8e2b29b6447c79000463b409d9", "score": "0.0", "text": "function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; }", "title": "" } ]
[ { "docid": "d0e09c5cb217bb19d492c329a624ff6d", "score": "0.7761875", "text": "get a() {\n\t\treturn this._a_;\n\t}", "title": "" }, { "docid": "44c5632b6ca78adf45a6367968fd4c35", "score": "0.7710586", "text": "get a() {\n return this._a_;\n }...
3077604de2dd14d2cdfa8a826d8f6428
if a or b is colinear the correct points will already have been added to the edge by handleNewEdge segment starts/ends on edge/edge intersection
[ { "docid": "693d37726c189f215609c93d315dd9ac", "score": "0.70503515", "text": "function handleAB(a, b, face, face2, thisPlane, face2Plane, thisBrep, face2Brep, first, thisEdgePoints) {\n if (!a.colinear && a.edgeT != a.edge.aT && a.edgeT != a.edge.bT) {\n ...
[ { "docid": "749661e6fb3b106778b1eae636417d97", "score": "0.8104438", "text": "function handleEndPoint(a, b, newEdge) {\n // ends in the middle of b's face\n if (a && !b) {\n if (!a.colinear && a.edgeT != a.edge.aT && a.edgeT != a.edge.bT) {\n ...