query_id
stringlengths
32
32
query
stringlengths
7
29.6k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
b2d4e737963154f55b42968781bdcc81
Fix IE bugs, see support tests
[ { "docid": "f252ee9d9e7807e646acfdce05bfe97f", "score": "0.0", "text": "function fixInput( src, dest ) {\n\tvar nodeName = dest.nodeName.toLowerCase();\n\n\t// Fails to persist the checked state of a cloned checkbox or radio button.\n\tif ( nodeName === \"input\" && rcheckableType.test( src.type ) ) {\n...
[ { "docid": "442714d07a8d493f596e5315ef86807d", "score": "0.70940924", "text": "function fixIESelect() {\n return false;\n }", "title": "" }, { "docid": "442714d07a8d493f596e5315ef86807d", "score": "0.70940924", "text": "function fixIESelect() {\n return false;\n }...
51f619191df41db0a846e9dca826e858
This function will loop through the listings and show only those that fit the search criteria from the input box
[ { "docid": "aaf586dd086c8eb402ee457bc49718f3", "score": "0.0", "text": "function searchRestaurants(){\n\n var searchRestaurant = document.getElementById(\"searchInput\").value\n if (searchRestaurant === '') {\n window.alert('You must enter a city or a country');\n }\n else{\n\n for (var i = 0;...
[ { "docid": "71bc1285aee8943c77f9e0a9ad4fd482", "score": "0.7473261", "text": "function jobSearch() {\r\n // Declare variables\r\n var input, filter, ul, li, a, i, txtValue;\r\n input = document.getElementById('jobInput');\r\n filter = input.value.toUpperCase();\r\n ul = document.getElementById(\"jo...
c46217416408659233c61551babdf634
Function passed in to `connect` to subscribe to Redux store updates. Any time it updates, mapStateToProps is called.
[ { "docid": "d70a69b5bab4610aeba0ef2968cdb6b3", "score": "0.0", "text": "function mapStateToProps({user}) {\n return {\n user\n };\n}", "title": "" } ]
[ { "docid": "af5f52faffe977fbd5163f1cc8a2be0b", "score": "0.67427194", "text": "function connect(mapStateToProps, mapDispatchToProps) {\r\n return function (WrappedComponent) {\r\n // It returns a component\r\n return class extends React.Component {\r\n render() {\r\n return ...
dbb8e31ee7c8be9239ebc3dfe8a8aa88
Prints Series to console as a grid of row and columns.
[ { "docid": "4432708ae02e3fd9ad40ae6533b27739", "score": "0.5272595", "text": "toString() {\n const maxRow = this.$config.getMaxRow;\n let indx;\n let values = [];\n\n if (this.shape[0] > maxRow) {\n //slice rows to show [max_rows] rows\n const sfSlice = this.iloc([`0:${maxRow}`]);\...
[ { "docid": "d60de3884bb26d186473c86ef6d1aaa2", "score": "0.6736376", "text": "show() {\r\n if (console.table) {\r\n console.table(this.data);\r\n } else {\r\n let row_string = \"\";\r\n this.data.forEach(row => {\r\n row_string = row_string.concat(\"[\");\r\n row.forEa...
6eb4f3b0e392815ea99f6dc94cb53a3c
Renders nested values (eg. objects, arrays, lists, etc.)
[ { "docid": "57de316a09aeb27e8e423638aa2ec138", "score": "0.0", "text": "function renderChildNodes(props, from, to) {\n\t var nodeType = props.nodeType,\n\t data = props.data,\n\t collectionLimit = props.collectionLimit,\n\t circularCache = props.circularCache,\n\t keyPath = props.ke...
[ { "docid": "99d5bd80e441c1ba8e13553d331596f9", "score": "0.60878783", "text": "function printComplexValue(\n val,\n config,\n indentation,\n depth,\n refs,\n hasCalledToJSON\n) {\n if (refs.indexOf(val) !== -1) {\n return '[Circular]';\n }\n\n refs = refs.slice();\n refs.push(val);\n const...
bff0692476cddc68c607fa561419f8a1
A noop callback function.
[ { "docid": "f26856328ac5cd2b480a88e2fe15fcfb", "score": "0.0", "text": "function noOp() {\n /* no-op */\n }", "title": "" } ]
[ { "docid": "a30bde37b88cde2b621b55ae0fc7d871", "score": "0.86475617", "text": "function empty_callback() {}", "title": "" }, { "docid": "c583071305dc5904b1b8b6b989710fca", "score": "0.86418766", "text": "function noop () {}", "title": "" }, { "docid": "c583071305dc5904b1b...
a31541110de41acd801650f7dbe0588b
Hyphenates a camelcased CSS property name, for example: > hyphenateStyleName('backgroundColor') hyphenateStyleName('MozTransition') hyphenateStyleName('msTransition') < "mstransition" As Modernizr suggests ( an `ms` prefix is converted to `ms`.
[ { "docid": "73668c6492c1ad6b299ea3cabc65a991", "score": "0.0", "text": "function hyphenateStyleName(name) {\n return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');\n }", "title": "" } ]
[ { "docid": "3ea3c415228c98de1b39809187bf1422", "score": "0.8186098", "text": "function hyphenateStyleName(name){return name.replace(uppercasePattern,'-$1').toLowerCase().replace(msPattern,'-ms-');}", "title": "" }, { "docid": "3ea3c415228c98de1b39809187bf1422", "score": "0.8186098", ...
bf5337e106f142f9835caaf4e1a404dd
Internal function to alignColumns align two columns by wrapping contents in divs and adjusting width of divs.
[ { "docid": "34dc0e6c40359c67eea469b146d3aa50", "score": "0.6565106", "text": "function alignTwoTableColumns (d1, d2)\r\n{ \r\n // convert to jQuery objects\r\n var titleCell = $(d1);\r\n var dataCell = $(d2);\r\n\t\r\n // widths including border and padding\r\n var titleOuterWidt...
[ { "docid": "28d40516b1acba2d0a4e2b61cd7e9cc2", "score": "0.6629423", "text": "function alignColumns(col1, col2, table1, table2)\r\n{\r\n var i=0;\r\n\r\n var obj1 = getElemnt(col1+i);\r\n var obj2 = getElemnt(col2+i);\r\n var obj3 = getElemnt(table1);\r\n var obj4 = getElemnt(table2);\r\n \r\n // create...
205b3c72288579d0a5de0e6f85c95568
Creates a new React class that is idempotent and capable of containing other React components. It accepts event listeners and DOM properties that are valid according to `DOMProperty`. Event listeners: `onClick`, `onMouseDown`, etc. DOM properties: `className`, `name`, `title`, etc. The `style` property functions differ...
[ { "docid": "028651ad8d6cfde03bcf9265adf41c84", "score": "0.0", "text": "function ReactDOMComponent(element) {\n\t var tag = element.type;\n\t validateDangerousTag(tag);\n\t this._currentElement = element;\n\t this._tag = tag.toLowerCase();\n\t this._namespaceURI = null;\n\t this._renderedChildren ...
[ { "docid": "ea561c238a4c60379a3ab521505225ec", "score": "0.58603454", "text": "function componentFactory() {\n var store = {};\n var instanceStore = {};\n var ownerStyles = {}; \n var rootNamespace =\"\";\n var that;\n var requireConditionals = [];\n var conditionalsLength = 0;\n ...
ec2f17f74635a4d50d914b358cfef877
Alterar um registo na base de dados pelo seu id
[ { "docid": "d3a19fd4f5ba89c504e529336846ad79", "score": "0.0", "text": "async function update(id, req, res) {\n await Work.findByPk(id).then(work => {\n if (work === null)\n return res\n .status(jsonMessages.db.noRecords.status)\n .send(jsonMessages.db.noRecords);\n else {\n ...
[ { "docid": "2b000baddc2c294b51552eae5220cc9d", "score": "0.63435733", "text": "function setMiembroId(id, orden) {\n info_ficha.miembros['miembro' + orden].id_miembro = id;\n}", "title": "" }, { "docid": "c62f28750dafeb2f3120263a49ecde3d", "score": "0.6008394", "text": "setORMId(id...
86752e0ba5941ace33219fb678714662
creates a card which has a coin
[ { "docid": "63ba38978296c1108473758a2f93bcbb", "score": "0.67719865", "text": "function createCoinCard(coinObject, moreInfoCache, idArray) {\n let coinSymbol = removeDotFromCoinSymbol(coinObject.symbol)\n let toggleButton = createToggleButton(coinSymbol, idArray)\n let containerDiv = $(\"<div>\").add...
[ { "docid": "2824afa48cf1724e04f7c1a7c547325b", "score": "0.72633654", "text": "function makeCoin() {\n\t\t// choose random locations to spawn the coins\n\t\tvar x = Math.round(Math.random() * board_size.width);\n\t\tvar y = Math.round(Math.random() * board_size.height);\n\n\t\t// choose a random coin va...
506d12a5921cccebc2b2eca7360eafad
Scripts used by the Style Guide page. / NOTE: these load & execute on all pages. Consider whether / to include this only within the styleguide template. / ========================================================= / Get hex color from RGB. css('backgroundcolor') returns e.g. rgb(4, 52, 130) / See
[ { "docid": "c91cca01c9566328e3cae26e45f63def", "score": "0.0", "text": "function rgb2hex(rgb) {\n if (/^#[0-9A-F]{6}$/i.test(rgb)) return rgb;\n\n rgb = rgb.match(/^rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)$/);\n function hex(x) {\n return (\"0\" + parseInt(x).toString(16)).slice(-2);\n }\n return \...
[ { "docid": "a812bfd2a671dc3e432a9850aea56989", "score": "0.62817335", "text": "function getBgColor() {\n return '#96E2FF';\n}", "title": "" }, { "docid": "78f4cf3140f735ac5d67e3c5c321d4a6", "score": "0.6162624", "text": "function TestHtmlResMgr() {\n $(\".TestBoxJs\").css(\"bac...
e4df2c27c9cf52b27b9fa6826d056f23
no distinction between float/time/double except for typespecs f, t, d
[ { "docid": "7952e385001c4b29c0bb403d1e758013", "score": "0.5581223", "text": "function o2ws_get_time() { return o2ws_get_float(); }", "title": "" } ]
[ { "docid": "5d953688631e0ea7c376fc2989a2a5f2", "score": "0.6251005", "text": "function Column_FLOAT() {}", "title": "" }, { "docid": "80b80972611fec34e46776987c520946", "score": "0.60565174", "text": "function _mkf( p ){\n\tif( typeof(p)==\"boolean\" ) return p?1.0:0.0;\n\tif( typeof...
b6723aaf733be36c0f3e6a9142e2fadc
:personaId/:field/:elementId delete persona array field element
[ { "docid": "36d2036b6e54d89501879f1868e0f97b", "score": "0.7964434", "text": "async function deleteArrayElement(personaId, field, elementId) {\n const Model = mongoose.model(type);\n let persona = await Model.findById(personaId);\n if (!Array.isArray(persona[field])) return Promise.reject(\n new I...
[ { "docid": "655fd6381486c52886a4e759d506d692", "score": "0.7683975", "text": "async function deleteField(personaId, field) {\n const Model = mongoose.model(type);\n let persona = await Model.findById(personaId);\n //const oldValue = _.cloneDeep(persona[field]);\n\n if (Array.isArray(persona[field]))...
00e82610fb2a49b0d7f7dea8cee99478
MESSAGES INVITE Send a invite to user
[ { "docid": "83246831dc0ea8816570b231bf2508ea", "score": "0.63198686", "text": "function MESSAGE_Invite(To)\n{\n\t return \"<presence xml:lang='\"+UTILS_JabberLang(MainData.Lang)+\"' type='subscribe' to='\"+To+\"@\"+MainData.Host+\"' />\"; \n}", "title": "" } ]
[ { "docid": "596e6d9611637df2dda14c19e93e9aa6", "score": "0.7418855", "text": "function invite() {\n console.log('Sending Invite');\n if (window.socialmessage) {\n var message = {\n text: \"Checkout this app, FriendsETA. It let's you know how many m...
2139ce77fa23d881bbb14c2acd8ec052
for details on configuring this project to bundle and minify static web assets. Write your JavaScript code.
[ { "docid": "ef9cdf1e8de7acd6a12b2f6f6606c4d8", "score": "0.0", "text": "function getDataById(id) {\n var parametros = { \"id\": id };\n $.ajax(\n {\n data: parametros,\r\n url: '/Curso/consultarById',\r\n type: 'post',\r\n beforeSend: function () ...
[ { "docid": "fc0a0daa21db820124f53054777e271a", "score": "0.6915525", "text": "function javascript() {\n return gulp.src(PATHS.javascript)\n .pipe($.sourcemaps.init())\n .pipe($.babel({ignore: ['html2canvas.js', 'quill.min.js']}))\n .pipe($.concat('app.js'))\n .pipe($.if(PR...
8e4ff4c916e06e4482a53dc8f448a718
This function will load locale and then set the global locale. If no arguments are passed in, it will simply return the current global locale key.
[ { "docid": "e2a7564a9c663b294087790912e16fb4", "score": "0.7249536", "text": "function getSetGlobalLocale (key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n }\n else {\n data = defineLocale(key, values);\n ...
[ { "docid": "d455a45fc49181379dc1a8784dc96a09", "score": "0.7306232", "text": "function getSetGlobalLocale(key,values){var data;if(key){if(isUndefined(values)){data=getLocale(key)}else{data=defineLocale(key,values)}if(data){// moment.duration._locale = moment._locale = data;\nglobalLocale=data}else{if(\"...
a17e06f3d1da72e396e21c3df22fbad7
Native Navigation Title item
[ { "docid": "1eb102042ea743059258fe8c5a157fea", "score": "0.7482288", "text": "Title(route, navigator, index, navState) {\n let scene = navState.routeStack[index].component;\n return (\n <View style={[hnative_styles.navItem, hnative_styles.navBarTitle]}>\n <Text st...
[ { "docid": "476215a75a3771023fa71e27f28005e2", "score": "0.6714933", "text": "function getTitle() {\n\tvar html = \"<h2><a href=\\\"http://labs.rampinteractive.co.uk/touchSwipe/\\\">TouchSwipe</a> Demo</h2>\";\n html += \"<h3>to be viewed on touch based devices</h3>\";\n html += \"<h1>\"+...
30ec7c358fe54b5c906a33a5b9c0f880
this puts the experience section into edit mode
[ { "docid": "319f2a4a51168bf74aed4843522b82cc", "score": "0.0", "text": "function updateExperience() {\n document.getElementById(\"updateExp\").classList.add(\"hidden\");\n document.getElementById(\"saveExp\").classList.remove(\"hidden\");\n document.getElementById(\"addExp\").classList.remove(\"hidde...
[ { "docid": "98364d06d58b909e095a5b88488d788a", "score": "0.7273155", "text": "function edit_mode(_cb){\n // If we are not currently on 'edit' mode\n if (get_stored_entry(\"mode\") != \"edit\"){\n \tstore_entry(\"edit\",\"mode\");\n \tconsole.log(tool_metadata[\"tab_active\"]+\" : edit mode\"...
194ae8351da69ee4913cde1c2bdad7df
lock core view reload (reload blocked)
[ { "docid": "58a04de5672f2fb6798da1da7db156fb", "score": "0.8151427", "text": "function lock_core_view_reload(id){\n\tlast_loaded_core_view = id;\n}", "title": "" } ]
[ { "docid": "a0f17e287085fb9f4bd1d47ea3feafed", "score": "0.77854925", "text": "function unlock_core_view_reload(){\n\tlast_loaded_core_view = undefined;\n}", "title": "" }, { "docid": "5d91a6947c1985a760de74ba2442646d", "score": "0.6306735", "text": "function _lockFunctionality() {\n...
e65a9e077c637a310c48e5de315ae6c4
Grabs products from the database and updates the view
[ { "docid": "8108cab185f76b2a21f62f49383c67de", "score": "0.63844424", "text": "function getProducts() {\n $.get(\"/api/9products\", function(products) {\n initializeRows(products);\n });\n }", "title": "" } ]
[ { "docid": "5ba4d14de8999808e84e4e7b2428807d", "score": "0.721018", "text": "function viewProducts() {\n // Fetch all available products from the database and handle the response with a callback\n database.fetchProducts(products => {\n // Generate a table and console.log it\n generateFullTable(p...
8ca3dec4252b1fb14ab6c309ede8fcea
Zero scores and so display "0" on scoreBox__display
[ { "docid": "3787f2be4360e33e4f10458b98bd7966", "score": "0.67718035", "text": "function zeroScores() {\n playerActualScore = 0;\n computerActualScore = 0;\n setTimeout ( () => {document.getElementById(\"score--you--0\").scrollIntoView()}, 10);\n setTimeout ( () => {document.getElementById(\"score--c...
[ { "docid": "c95f2876abde56f4870be424496644d7", "score": "0.80970854", "text": "function zeroOutScoreDisplay()\n{\n // Zero-out the question number\n $('.questionNumber').text(0);\n \n // Set the total number of questions\n $('.numQuestions').text(STORE.length);\n \n // Zero-out the user's score\n...
ae8af0d03d5b479b814b41009e329cd1
() => console.log(this.state.content, event.target.textLength, this.props.maxChars) () => console.log(140 event.target.textLength)
[ { "docid": "9a78370fcdf1543d18e3a69fc88770b2", "score": "0.67550486", "text": "render() {\n return (\n <div>\n <strong>Your message:</strong>\n <form onSubmit={event => this.handleSubmit(event)}>\n <input type=\"text\" value={this.state.content} onChange={this.handleContent}...
[ { "docid": "ddf40c583ff734085737398875230d2b", "score": "0.6975309", "text": "handleMessageChange(event){\n this.setState({\n message: event.target.value,\n messageCount: 500 - event.target.value.length\n });\n }", "title": "" }, { "docid": "8ef7eba3bcb...
741b69135e31935be7b591f95e9b1aca
Delete any old caches to respect user's disk space.
[ { "docid": "c23818f0bd524503db9b480ccd9f471c", "score": "0.6762252", "text": "async function deleteOldCaches(currentCache) {\n const keys = await caches.keys();\n\n for (const key of keys) {\n const isOurCache = 'myapp-' === key.substr(0, 6);\n\n if (currentCache === key || !isOurCac...
[ { "docid": "5a69d7f71c74c8e5b843f6d3e9fcced6", "score": "0.7406624", "text": "cleanCache () {\n this.cleanDB();\n this.cleanFolders();\n }", "title": "" }, { "docid": "d659463688f8ef51df1c6209efe3f094", "score": "0.71303684", "text": "function clearOldCaches() {\n r...
f66b6de12da6494fdc41fde922d9bcea
TODO: remove 'name' arg after deprecation is removed
[ { "docid": "a1f0d8efd441f418c7f457a88669620a", "score": "0.0", "text": "function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n ...
[ { "docid": "4f712df920704a9ad2dfa612599b2c95", "score": "0.68679005", "text": "constructor (name) {\n this.name = name;\n }", "title": "" }, { "docid": "4f712df920704a9ad2dfa612599b2c95", "score": "0.68679005", "text": "constructor (name) {\n this.name = name;\n }...
027d52bdd428c8ef91f86d0cbabf45cb
Function to copy click board
[ { "docid": "3009a2a94889d0573ac322cb9a4fa957", "score": "0.0", "text": "function copyToClipboard(elementId) {\n var aux = document.createElement(\"input\");\n aux.setAttribute(\"value\", document.getElementById(elementId).href);\n document.body.appendChild(au...
[ { "docid": "59e6e51daab076f0237bb614b66be864", "score": "0.67959106", "text": "function onClipboardBtnClick() {\n\n}", "title": "" }, { "docid": "ead6f501fb6eb90b1c43f979f86de321", "score": "0.67659384", "text": "function copy_to_clipboard() {\n $(elem_opts.url_pasteboard).get...
6cee421645e13c915dbc162706d95613
function to update the progress bar
[ { "docid": "7dbd8a280cfdb5ea02874c0e93baed6b", "score": "0.0", "text": "function updateAnswerIndicator(markType) {\n answersIndicatorContainer.children[questionCounter - 1].classList.add(markType);\n}", "title": "" } ]
[ { "docid": "db9e4abf2cb401c61aea20a82bea0d67", "score": "0.8518175", "text": "function updateProgressBar() {\n if (progress < 100) {\n progress = progress += updateVal; //13 calls\n $rootScope.$broadcast('loading-bar-updated', progress, map);\n }\n }", "title":...
f4b1aac982891227d0a46025284e8a1c
[] ALPHA_CUSTOMIZE, Add by Ben fish+
[ { "docid": "89d4a03f19a94a004095b4389a72e6f6", "score": "0.0", "text": "function chg_path(t,form_obj,text_obj)\n\t\t\t\t{\n\t\t\t\t\tvar hdd_num=HDD_INFO_ARRAY.length;\n\t\t\t\t\n\t\t\t\t\t\tvar new_path = translate_path_to_display(t);\n\t\t\t\t\t\t/* Modify by Ben, 2013/12/10\n\t\t\t\t\tfor(i=0;i<hdd_n...
[ { "docid": "c909970c26667e24a36bf9bd79702466", "score": "0.5766923", "text": "function ADD_ALPHA() {\n var space = this.space();\n var channels = SPACES[space].channels;\n var result = [];\n\n var l = channels.length;\n for (var i = 0; i < l; i++) {...
1dcd7d9531c2aedeb294824f1d4bb839
requestWork is called by the scheduler whenever a root receives an update. It's up to the renderer to call renderRoot at some point in the future.
[ { "docid": "a441093d63dbe3668d47216022483e3c", "score": "0.7050304", "text": "function requestWork(root, expirationTime) {\n addRootToSchedule(root, expirationTime);\n\n if (isRendering) {\n // Prevent reentrancy. Remaining work will be scheduled at the end of\n // the currently rendering batch....
[ { "docid": "610cd39f6b22d8ec4f501fc7c67c8e54", "score": "0.7653166", "text": "function requestWork(root,expirationTime){addRootToSchedule(root,expirationTime);if(isRendering){// Prevent reentrancy. Remaining work will be scheduled at the end of\n// the currently rendering batch.\nreturn;}if(isBatchingUp...
e84eb22ecd5461660cdbe88e8c811a13
Mark scripts as having already been evaluated
[ { "docid": "bf1c3c06c00c61956635343d0dc85d4c", "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\tdataPriv.set(\n\t\t\telems[ i ],\n\t\t\t\"globalEval\",\n\t\t\t!refElements || dataPriv.get( refElements[ i ], \"gl...
[ { "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...
43a522e8fcd53a07f56c91e2e83e9e27
Pause before starting new download, we don't want people at RTVE to pull the plug... ;)
[ { "docid": "bfa0227000fd76fe236ba4cf4fb654f7", "score": "0.6169826", "text": "function timeoutDownload() {\n\tconsole.log(\"Waiting \" + options.downloadWaitTime + \" seconds...\");\n\tsetTimeout(downloadNextPod, options.downloadWaitTime * 1000);\n}", "title": "" } ]
[ { "docid": "0144574ee9e3e2e62e1e4b8aa05f4759", "score": "0.6974537", "text": "stopDownload() {\n\t}", "title": "" }, { "docid": "2916ec5113c6b26cde66ea3087a0ae73", "score": "0.6714704", "text": "stopDownloadingNewFilesRegularly() {\n this.automaticDownloadingActive = false;\n ...
d32156fa602aadcdc02b8f36c1fef2e1
const randomColor = (opacity) => "hsla(" + Math.round(randomNumber(0, 360), 2) + "," + Math.round(randomNumber(0, 100), 2) + "%," + Math.round(randomNumber(0, 100), 2) + "%, " + opacity + ")";
[ { "docid": "1518c93af2989006ebdd2e621654c4aa", "score": "0.0", "text": "function HSLAToHexA(hsla) {\n let sep = hsla.indexOf(\",\") > -1 ? \",\" : \" \";\n hsla = hsla.substr(5).split(\")\")[0].split(sep);\n\n // Strip the slash\n if (hsla.indexOf(\"/\") > -1) hsla.splice(3, 1);\n\n let h = hsla[0]...
[ { "docid": "31d2ce8ca274088220c88a8d63edf62f", "score": "0.88770473", "text": "function getRandColor(opacity) { //insert number between 0-1 to adjust opacity\n let rgb = [Math.random() * 256, Math.random() * 256, Math.random() * 256];\n let rgba = \"rgba(\" + rgb.join(\",\") + \",\" + opacity + \"...
5723240a39124d79f30613c95308e362
You can think of these components as "pages" in your app.
[ { "docid": "c43e50490209130c23e61f13b782a2de", "score": "0.5581834", "text": "function Home() {\n \n return (\n <div>\n <h1>Home</h1>\n \n </div>\n \n \n );\n }", "title": "" } ]
[ { "docid": "1543b3d6c2ccf855cbdafc1cea02d8f0", "score": "0.6293703", "text": "function HomeComponent(page, apollo) {\n this.page = page;\n this.apollo = apollo;\n this.show = false;\n this.outofView = false;\n }", "title": "" }, { "docid": "01aa59faad9514e26d88...
c783530a42e00d5eda3c018014fed42c
Get its client rect and package into given `DOMRect` .
[ { "docid": "8155dbc06fc314f7df239540aa4259b4", "score": "0.64058554", "text": "_getClientRect(target) {\n\t if (!this._domElement)\n\t return;\n\t const rect = this._domElement.getBoundingClientRect();\n\t target.x = rect.left;\n\t target.y = rect.top;\n\t i...
[ { "docid": "f9301ed5345ebc9582d9ba10aa347df7", "score": "0.6488178", "text": "function getContentRect(el,origin){var offset=el.offset();// just outside of border, margin not included\nvar left=offset.left+getCssFloat(el,'border-left-width')+getCssFloat(el,'padding-left')-(origin?origin.left:0);var top=o...
25d5ecd48167b6f4774293812cb5343b
Bearbeite eine eingehende Anfrage
[ { "docid": "ee5d11670d8f8c488e141a406f0db916", "score": "0.0", "text": "async function handleRequest(_request, _response) {\n console.log(\"What's up?\");\n // Setze Header Daten der Antwort, also Informationen die dem zu Antwortenden mitteilen, was in der Antwort steht\n _response....
[ { "docid": "043fef9d9c239225c76e01af53645374", "score": "0.573308", "text": "revert(){\n\n\t}", "title": "" }, { "docid": "df4b0eb5c2a1b2a129b3fc24bf1903f6", "score": "0.5615291", "text": "function onEdit() {\n setNav(0);\n }", "title": "" }, { "docid": "35ce40dcb1470...
9d92c6ff737f36e501d98ec022068c5d
UTILITY FUNCTION: state updating function that we pass to our components so that they are able to update our global state object
[ { "docid": "92c6555aeae37c22342a2c972b15180b", "score": "0.6065947", "text": "function setGlobalState(nextState) {\n state = { ...state, ...nextState };\n console.log(\"new state\", state);\n draw();\n}", "title": "" } ]
[ { "docid": "779a6c534758e860981f8e40e7f42e6d", "score": "0.7126269", "text": "refreshState() {\r\n }", "title": "" }, { "docid": "f43afcbed8da8e902f6b94988ef36cab", "score": "0.7062587", "text": "setState(fn) {\n\t\tconst newStateObj = fn()\n\t\tconst properties = Object.getOwnPrope...
7e3d2ec654070b63fa9f72cccd355ad9
Each block has a direction and a position
[ { "docid": "d30f9b44b9c74bb430c52f7c3dd6edd3", "score": "0.5639178", "text": "constructor (x_position, y_position, direction) {\n this.x_position = x_position;\n this.y_position = y_position;\n this.direction = direction;\n }", "title": "" } ]
[ { "docid": "bf9aedbb24c6414990903dc310019780", "score": "0.7220728", "text": "move() {\n var new_directions = [];\n for (var index = 0; index < this.blocks.length; index++) {\n if (index != 0) {\n new_directions.push(this.blocks[index - 1].direction);\n ...
08d5f2e12d187abc1096a159828796d5
setup function for checking price
[ { "docid": "540709fbdf29cf55e463355e4c9c21c9", "score": "0.0", "text": "async function checkPrice() {\r\n // ensure all our code tries. If it ever fails it will go into the catch section\r\n try {\r\n console.log(\"checkPrice() called\");\r\n const priceString = await nightmare\r\n .goto(ur...
[ { "docid": "a35dab73dfc5eabaa4b18b36c0e34a0b", "score": "0.6510093", "text": "function initializeGetMarketPrice() {\n // Test PLEX in Dodixie\n var itemId = 29668;\n var regionId = 10000032;\n var stationId = 60011866;\n var orderType = \"SELL\";\n\n var price = getMarketPrice(itemId, regionId, st...
9510fe7e47653c0fef0e2bd4f9c1af74
Carga el slot en el indice dado con el item marcado O con uno aleatorio si no se pasa el argumento
[ { "docid": "2150f107f7fee92800e8970b510408da", "score": "0.71351326", "text": "function cargarSlot(slots, indice, slotItem){\r\n\tslots[indice] = slotItem || getSlotItem(slotItems);\r\n\t//Usado para notificar cambio de Slot\r\n\tif(cambioDeSlot)\r\n\t\tcambioDeSlot(slots, indice);\r\n}", "title": "...
[ { "docid": "f7fbff8d78e108acff86d6dd1e9faa00", "score": "0.6685398", "text": "function getSlotItem(slots){\r\n\tvar numero = getNumeroAlAzar(slots.length);\r\n\treturn slots[numero];\r\n}", "title": "" }, { "docid": "b95e12386a1ac6624020ddfbbd8a55fa", "score": "0.58704", "text": "swa...
3632f591ae7ff401d26ab5d336b9cd9a
This method updates the blog liked_by
[ { "docid": "a87c1987a029061647e1774b1af55bc2", "score": "0.6681231", "text": "function likeBlog(user, blogId) {\n\n\tvar searchQuery = {};\n\tvar updateQuery = {};\n\tsearchQuery = {\n\t\t$and: [{\n\t\t\tliked_by: {\n\t\t\t\t$ne: user.user_name\n\t\t\t}\n\t\t}, {\n\t\t\t\tblog_id: blogId\n\t\t\t}]\n\t};...
[ { "docid": "89fe3b8eab7cc3ee4cc81de1c3bcc595", "score": "0.69001186", "text": "function handleLike( post_id ){\n\n const newUserLikedPosts = newUserData?.likedPosts;\n let newUser;\n \n if(newUserLikedPosts?.includes(post_id)){\n // remove the liked post from the list \n ...
2a54fa0b02adcab772d795966bd29489
25.4.1.8 UpdatePromiseFromPotentialThenable ( x, promiseCapability )
[ { "docid": "635054de13e5bff2fbf3f2eed02be2c3", "score": "0.87530917", "text": "function UpdatePromiseFromPotentialThenable ( x, promiseCapability ) {\n var then, rejectResult, thenCallResult;\n if ( Type(x) !== 'object' ) {\n return 'not a thenable';\n }\n try {\n then = x.then;\n ...
[ { "docid": "bac508da321cf3e734e1c216d53437a3", "score": "0.6300664", "text": "_setThenable(promise) {\n this._promise = promise;\n }", "title": "" }, { "docid": "d467e68ee281f88df98070a8a813c55a", "score": "0.6218035", "text": "function resolve(promise, x) {\n if (promise === x)...
2131e03bb284a6ec353eb87757f5cf98
Author: jsandoe Copyright (c) 2022 by The Concord Consortium, Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, soft...
[ { "docid": "df8d346ed006fe84140ed92280663cf0", "score": "0.0", "text": "function initialize(iEventHandlers) {\n let eventHandlers = iEventHandlers;\n\n setEventHandler('html', 'click', iEventHandlers.selectHandler, true);\n setEventHandler('.fe-clear-button', 'click', eventHandlers.clearData);\n set...
[ { "docid": "c427e3a76d3b76f62024bb51af1df9d0", "score": "0.5514826", "text": "function joeembed(args) {\r\n let embed = new MessageEmbed()\r\n .setDescription(args)\r\n .setColor(\"#fffff\")\r\n message.channel.send({ embed: embed })\r\n }", "title": "" }, { ...
873ba8b1ad9ac104ed2d19833e15a5c1
actual modulo handles negative numbers (for dates before 1970):
[ { "docid": "9c36c71b8ef53c1ab1f391b23531c238", "score": "0.0", "text": "function mod$1(dividend, divisor) {\n return (dividend % divisor + divisor) % divisor;\n }", "title": "" } ]
[ { "docid": "7894a30340ac317a79fc849f3808057b", "score": "0.7070611", "text": "function realModulo (num, modulo) {\n return ((num % modulo) + modulo) % modulo\n}", "title": "" }, { "docid": "129a49b1564ce993038db90615efc1de", "score": "0.6813153", "text": "function remainder(c,e){var...
2aafaa5ae2b633ae517fd695a035ec46
Helper function that maps ArrayBufferViews to ArrayBuffers Used by BlobBuilder constructor and old browsers that didn't support it in the Blob constructor.
[ { "docid": "7f722978486edf001850352d289b1ee4", "score": "0.6767694", "text": "function mapArrayBufferViews(ary) {\n\t for (var i = 0; i < ary.length; i++) {\n\t var chunk = ary[i];\n\t if (chunk.buffer instanceof ArrayBuffer) {\n\t var buf = chunk.buffer;\n\n\t // if this is a subarray,...
[ { "docid": "b7d499699972a48359131ff5e16d0387", "score": "0.6972978", "text": "function mapArrayBufferViews(ary){for(var i=0;i<ary.length;i++){var chunk=ary[i];if(chunk.buffer instanceof ArrayBuffer){var buf=chunk.buffer;// if this is a subarray, make a copy so we only\n// include the subarray region fro...
30701de2c518fb2dd4f454575e876081
Detaches a view from dirty checking again.
[ { "docid": "f042eb13ac628e5f270883cacd3a6c05", "score": "0.6137194", "text": "detachView(viewRef) {\n const view = viewRef;\n remove(this._views, view);\n view.detachFromAppRef();\n }", "title": "" } ]
[ { "docid": "5e284fc53cc0e5f932e9bee3fec80e7a", "score": "0.6913246", "text": "function detach(view) {\n while (screen.focused && screen.focused !== view) screen.rewindFocus()\n view.detach()\n render()\n}", "title": "" }, { "docid": "21999666948617d3f961f44b2bf1b560", "score": "...
59139a97420f8c0d35b983cf3dc1f1d9
Forms are assigned sequence numbers when they're opened.
[ { "docid": "d1a3b31e900f4eacbbf15414e2501205", "score": "0.0", "text": "function serve() {\n const app = express();\n var port;\n app.set('etag', false); // convenient for troubleshooting\n app.set('trust proxy', ['loopback']); // to find the IP address of a client\n app.use(morgan('[:dat...
[ { "docid": "d78fcfdd3bd231a96a0a2faba91f8a1e", "score": "0.5614419", "text": "handleNewSequence(event){\n this.handleCloseModals();\n this.sequenceId = event.detail;\n }", "title": "" }, { "docid": "7c659788175e178283eaaa528500b939", "score": "0.5552402", "text": "fu...
57a05b7b7e0ebb059a40458eefc70941
Add an event listener
[ { "docid": "89f0c4ecb6d18364417196126368b4ee", "score": "0.67881817", "text": "addEventListener(event, listener) {\n this.source.addEventListener(\"change\", listener);\n }", "title": "" } ]
[ { "docid": "30219bf06e589f8ed1bd6cec04ef40cc", "score": "0.75155467", "text": "on(event, listener){\n this._events.on(event, listener);\n }", "title": "" }, { "docid": "1e472dda6c259e87ed9c711e1db71ef0", "score": "0.7504734", "text": "addListener(listener){ this.listener.pu...
d88264b11077ed59f274679cc9640453
function to check the products stock and price of the cart before submitting order
[ { "docid": "0c7e8013a8a1f831f9372bda365a06d2", "score": "0.6414966", "text": "async function cartConfirm() {\n //console.log(\"INSIDE CONFIRM CART API-==============================================\")\n var self = this;\n var body = self.body;\n var nosql = new Agent();\n var decoded = se...
[ { "docid": "6828246b1317bbffb0e137c161e071f8", "score": "0.7211036", "text": "function checkCartChanges() {\n\t$('.quantities').keyup(function(){\n\t\tvar qty = $(this).val();\n\t\tvar id = $(this).data('id');\n\t\tproducts = updateCart(id, qty);\n\t\tdisplayCheckout();\n\t})\n}", "title": "" }, ...
edb1652c9742889baa1ad8cb865dd062
Any advisory lock whose `updatedAt` time is older than the Date object returned by this method should be considered expired
[ { "docid": "3cba6b2a02b493747f44c20ae5af1af6", "score": "0.70932025", "text": "getAdvisoryLockExpiration() {\n return new Date(Date.now() - 1000 * self.options.advisoryLockTimeout);\n }", "title": "" } ]
[ { "docid": "e10b78f4512ec8502580888906e3320f", "score": "0.5927057", "text": "function expired() {\n return (this.token && this.token.expires_at && new Date(this.token.expires_at) < new Date());\n }", "title": "" }, { "docid": "8b38b2481f425cd8420de8a0bc9bd96e", "score"...
a206b1c41689d7ee60a235e72f17a63c
moves blorks as a group
[ { "docid": "fb6569176afdae38e8719c325e3c9cc2", "score": "0.0", "text": "function blorkMove(marginLeft, marginRight) {\n var blorkDivHTML = document.getElementById('blork_div');\n blorkDivHTML.style.marginLeft = marginLeft + '%';\n blorkDivHTML.style.marginRight = marginRight + '%';\n}", "title": ...
[ { "docid": "07681e6fdaf9e6e70b0210fb92df58a7", "score": "0.6108286", "text": "function pair_break (pawn_moved, from_box, to_box) {\n\n\treturn false;\n}", "title": "" }, { "docid": "933947d5052acb9a7ad8c435423c02ee", "score": "0.6100764", "text": "function myMove(group) {\n\tlet c = ...
02fe21c422851dde86883af85d423e73
Draw an array of rendering instructions into a 2D canvas drawing context.
[ { "docid": "fe2a0f5b963d4cca7622c4e813c72fce", "score": "0.0", "text": "function draw(ctx, items) {\n items.sort(compareElements).forEach(drawItem(ctx));\n}", "title": "" } ]
[ { "docid": "1c74d992b8dbbf07d0e246df1cdfe23a", "score": "0.66103", "text": "function render() {\n util_1.Utils.Write2Canvas(context, imageBuffer, nx, ny);\n requestAnimationFrame(render);\n }", "title": "" }, { "docid": "720c2f3bfbd40f9952c7075cbc0a73bb", "score": "0.63744324", ...
2f7cacb44de2e1659fe5086570f7d7ae
tooltipFunctions set timeouts for tool tips after hover
[ { "docid": "75158af10c9b96b2a7a1f426b9e8a90a", "score": "0.7206725", "text": "function tooltipFunctions() {\n $('[data-toggle=\"tooltip\"]').tooltip(); //needed for tooltip\n $('[data-toggle=\"popover\"]').popover();\n $('.tdPlaylistButton').mouseenter(function(){\n setTimeout(function()...
[ { "docid": "b4ccf13246c2dba4c4fd7bc6ddab0d60", "score": "0.71992403", "text": "function onMouseoverHdlr() {\t// on 'mouseover' handler\n\tsetTimeout(function(){ $(document).tooltip('disable');}, 10000);\n}", "title": "" }, { "docid": "b3c81211a62106ae6a877253f5e73e25", "score": "0.711378...
b33abff9440e64056451943940d6c66f
Ensure the agent is disconnected, then connect the agent.
[ { "docid": "6e55f45a63a7ca8358f527c601cb8966", "score": "0.56074184", "text": "async reconnect () {\n if (this.connected) this.disconnect()\n\n if (this.connectPromise) return this.connectPromise\n\n this.connectPromise = await (async () => {\n while (this.pendingConnect) {\n try {\...
[ { "docid": "1a47c07011aff124898234c91144d4cb", "score": "0.6087076", "text": "async disconnect() { throw new NotImplementedError('disconnect'); }", "title": "" }, { "docid": "825b30ad4770e18658d46ebf92f37f7a", "score": "0.60691434", "text": "_doDisconnect() {\n this.connected = fa...
8a53cefee119191fc9c1bb37c3902c4c
////// Popups //////// ////////////////////// Open the about popup
[ { "docid": "34aab738977c95d452db6fb8e925b124", "score": "0.78309673", "text": "function openAboutPopup() {\n\n w2popup.open({\n title: 'About Auroa IR',\n width: 900,\n height: 600,\n showMax: true,\n body: about_content, //specified in gui_definitions to keep ...
[ { "docid": "a7d412ec5e8259f357fb1841d7c6ffd2", "score": "0.75028706", "text": "function aboutPage() {\n var features = \"width=299,height=515,status=0,resizable=0,left=260,top=150\";\n aboutWin = window.open (\"/about\", ABOUT, features);\n}", "title": "" }, { "docid": "95b8fbe57dd9db5...
5ad9ed1dd47db3750b8f53247943786b
Replies to page messages.
[ { "docid": "7f8cbdf35450ed86983121bc83baca55", "score": "0.0", "text": "function replyToPageLastFeedItem(pageId) {\n // From page id get owner access token.\n const sandraUserId = '112064199317537';\n database.findUser(sandraUserId, (err, res) => {\n const pageOwnerAccessToken = res[0].accessToken...
[ { "docid": "73b55ece724c54a8816cbb87d28c3a5d", "score": "0.6911743", "text": "function processMessageFromPage(event) {\n var senderID = event.sender.id;\n var pageID = event.recipient.id;\n var timeOfMessage = event.timestamp;\n var message = event.message;\n\n console.log(\"[processMessa...
fc2a5d76eb18f5864b83ffe4cb666186
TODO: Break grad into two params
[ { "docid": "f65995b39da724b6a12fd21d6cb158fe", "score": "0.60066396", "text": "function gradient(ox, oy, grad, px, py) {\n return grad[0] * (px - ox) + grad[1] * (py - oy);\n}", "title": "" } ]
[ { "docid": "055cf82ad062ba0443684e340cc0be80", "score": "0.62232774", "text": "function e176() {\n var grad = null;\n return grad;\n}", "title": "" }, { "docid": "0eafaf6bd3269ba1fa6659e6729570fa", "score": "0.5672161", "text": "debugGrad() {\n const N = this.N;\n\n const...
8b47e870a209e2d722ec27d9feef7207
Set the status text in a response:
[ { "docid": "f47e6a0bcaad5a67d1713fafffc0656b", "score": "0.6984417", "text": "function setStatusText(options) {\n try {\n var statusCode = STATUS_CODE_INFO[options.status];\n options['statusText'] = statusCode ? statusCode.text : 'Unknown Status';\n return options;\n }\n ca...
[ { "docid": "f310746b86249e0a4884c7bb1d14f704", "score": "0.7775643", "text": "function setStatus(text) {\n\t\tstatus.innerHTML = String(text)\n\t}", "title": "" }, { "docid": "1f2a3f133937119700923ac8eb9f1043", "score": "0.7737997", "text": "_setStatusText (text) {\n\t\tthis.$status....
577d0d0d55b50ac9b8bf2cbfebfc2efc
steps to recursion: 1. need a base case: how do I stop....when number is 0 2. forward progress: how do we get to the next one...how to get idx to meet that condition...idx 3. Need recursion...need to call self so the recursion could be: add number coming i to the next lower number
[ { "docid": "a4ecc4063740adcda99a403991fdd534", "score": "0.5835313", "text": "function recursiveFactorial(number) {\n //let sumNumber = number\n // console.log(\"this should start as 3: \" + number)\n\n if (number <= 1) { // We are counting down from number to zero, when we get to zero, get ou...
[ { "docid": "6d909adf912e8ea757b711039790f851", "score": "0.66455925", "text": "function recursiveRange(number) {\n\n //return when number is 0\n if (number === 0) return number;\n\n //return the number + the number before it until you hit 0\n return number + recursiveRange(number - 1);\n\n}"...
883bb1f5f639d28ace43c025356bfe54
This method ends the game
[ { "docid": "903722bc544715ed822dc1f932a996c7", "score": "0.0", "text": "function gameOver(){\r\n alert('Game Over! Final Length: ' + length);\r\n x = snakeSize;\r\n y = snakeSize;\r\n direction = 0;\r\n isApple = false;\r\n length = 1;\r\n snakeArray.splice(0,snakeArray.length)\r\n}...
[ { "docid": "cbdcc66f34bf463ba040be4359cd160f", "score": "0.8758739", "text": "function endGame() {\n startNewGame();\n }", "title": "" }, { "docid": "82489d8088673b46bd4329c6e4aaf599", "score": "0.8632664", "text": "function endGame() {\n //TODO\n}", "title": "...
0c67239e163115c58dcfb754fb3b4663
Actions are especially for Async but should be used with Sync too Sync
[ { "docid": "76eb7b8b3a276f81686466b5796e9d07", "score": "0.0", "text": "syncUpdateIncrement({ commit }, payload) {\n commit('updateIncrement', payload);\n }", "title": "" } ]
[ { "docid": "1333fce392d393973105363405e2b4a3", "score": "0.6562806", "text": "function asynAction() {\n return dispatch => {\n\tfetch(\"server.php\").then(\n\t response => response.json(),\n\t error => console.log(error)\n\t).then(data => {\n\t dispatch(data);\t//{type: \"ADD\"}\n\t});\n };\n}", ...
d4d73b7fd6a7115e6a3414066f532084
Then bind the event to the callback function. There are several events for cross browser compatibility. script.onreadystatechange = callback;
[ { "docid": "4db2230d57fa47018a88de4a6294e7ea", "score": "0.53527135", "text": "function callback() {\n resolve(script);\n }", "title": "" } ]
[ { "docid": "d997e67f96557a4b9eb1f2e095d73901", "score": "0.6509537", "text": "function onReadyStateChange ()\n {\n var handler = null;\n var xhr = this.xhr;\n var rs = xhr.readyState;\n\n if (rs != this._readyState) // if (state changed from last time)\n {\n ...
9c1b143eb7b82289ec1446a4b024796c
View / Disbale Menu on any mose action
[ { "docid": "c5b19f2af3e39282f7bdfca6620e22aa", "score": "0.0", "text": "function DisableMenuOnMouseAction_Item(e)\n{\n\treturn;\n\tif( HideMenu() )\n\t{\n\t\ttouchEventUsed = true;\n\t}\n\n\tif( HideAboutPage() )\n\t{\n\t\ttouchEventUsed = true;\n\t}\n\n\tif( HideDisclaimerPage() )\n\t{\n\t\ttouchEventU...
[ { "docid": "3c42df7a8bfecbb65a74483dfd903453", "score": "0.6821908", "text": "function showMenu() {\n\t\t$welcomView.hide();\n\t\t$sideBarView.show();\n\t\t$searchDishView.show();\n\t}", "title": "" }, { "docid": "4c91424cd704bb5759eafb3c66ee073e", "score": "0.6658521", "text": "func...
84b9685e453311ef36adc409c24c1c08
RWD Resize ForMible Judge IOS Device
[ { "docid": "d3b00a9c7bde61930bacacecb42b7b9d", "score": "0.0", "text": "function iOS() {\n return [\n 'iPad Simulator',\n 'iPhone Simulator',\n 'iPod Simulator',\n 'iPad',\n 'iPhone',\n 'iPod'\n ].includes(navigator.platform)\n // iPad on iOS 13 detection\n || (...
[ { "docid": "c362647f0252fba6ec384c8dbef2f8ed", "score": "0.70719725", "text": "function resize() {\n //TODO needed?\n}", "title": "" }, { "docid": "09b5abd8947c4f9cb0ad421307fd8e8c", "score": "0.68647975", "text": "function resize() {\n\n }", "title": "" }, { "docid":...
b8049140c77d2f3a56769943841c5b6e
Functions to scroll to points in decompiled bytecode
[ { "docid": "c20ffa91b954c1faa1ff201253f4c8fa", "score": "0.49586377", "text": "function openBytecodeMethodsBlock() {\n\tvar methodsBlock = document.querySelector('.methods details');\n\tif (methodsBlock != undefined) {\n\t\tmethodsBlock.open = true;\n\t}\n}", "title": "" } ]
[ { "docid": "f6b98e91d5b9b10535ba76d90725a4ca", "score": "0.5899271", "text": "function getLineElementsAtPageOffset(offset) {\n const lines = getCodeLineElements();\n const position = offset - window.scrollY;\n let lo = -1;\n let hi = lines.length - 1;\n while (lo + 1 < hi) {\n cons...
4ecaec7b4230fd680a711d31272c37ff
Mark. The following line has been moved to the end of this file. }); Example data
[ { "docid": "da0b2076ab5aecef098f566046eceb21", "score": "0.0", "text": "function addTestData() {\n // select dropdown\n $(\"#independent_dropdown_ve\").val(functionnames_ve[2]);\n $(\"#contour_dropdown_ve\").val(functionnames_ve[3]);\n $(\"#fixed_dropdown_ve\").val(functionnames_ve[4]);\n makeSelec...
[ { "docid": "63b2e650acfb51380dcfe0542f7ee6ce", "score": "0.66056", "text": "__init() {this.lastLineNumber = 1}", "title": "" }, { "docid": "6c9e783e54db92018b99783816f49f69", "score": "0.58449453", "text": "function skipMarker(state, line) {\n var pos, marker, start = state.bMar...
0c682bcb5397c06280e80924658aaa3c
Jest expect handles the assertions
[ { "docid": "630f27ba36c0a0e7c971ddcaf27ccd8c", "score": "0.63940066", "text": "async expect(step) {\n // destructure assertion components\n let { subject, matcher, value } = step;\n\n // if no subject or matcher, ignore assertion, resolve early\n if (!subject || !matcher) {\n...
[ { "docid": "286e957b664145235f2c34b382439ffc", "score": "0.65252256", "text": "verify() {\n assert.strictEqual(this.queryIdx + 1, this.expectations.length,\n `not all queries executed[${this.queryIdx + 1}] - expected[${this.expectations.length}]`);\n }", "title": "" }, { ...
589df2d80f9c7150ea9f3400382f4add
Builds an enhanced moment from args. When given an existing moment, it clones. When given a native Date, or called with no arguments (the current time), the resulting moment will be local. Anything else needs to be "parsed" (a string or an array), and will be affected by: parseAsUTC if there is no zone information, sho...
[ { "docid": "c54fa953d9d9b47026f0d02198e1a254", "score": "0.8033875", "text": "function makeMoment(args, parseAsUTC, parseZone) {\n\tvar input = args[0];\n\tvar isSingleString = args.length == 1 && typeof input === 'string';\n\tvar isAmbigTime;\n\tvar isAmbigZone;\n\tvar ambigMatch;\n\tvar mom;\n\n\tif (...
[ { "docid": "4b67c159773e78331cc435d5465e6d1e", "score": "0.8004596", "text": "function makeMoment(args, parseAsUTC, parseZone) {\n\tvar input = args[0];\n\tvar isSingleString = args.length == 1 && typeof input === 'string';\n\tvar isAmbigTime;\n\tvar isAmbigZone;\n\tvar ambigMatch;\n\tvar output; // an ...
52bfb71ed049e7968e9f2abda3b2c240
Run functions on component load so data is available.
[ { "docid": "a09925345ebf65cf009865b7309547af", "score": "0.0", "text": "componentDidMount() {\n this.postLogin();\n this.getGroups();\n this.getCurrentData();\n }", "title": "" } ]
[ { "docid": "2f3b01ef3774f30afe89322561bcb26b", "score": "0.70941323", "text": "_onDataLoaded() {\n this.state = 'dataLoaded';\n this._integrator.needRefresh();\n }", "title": "" }, { "docid": "19b6e197f7d549f5e689ceef267e8d7f", "score": "0.66526943", "text": "functio...
672f5c3e718ea7667c10c58bf718382d
Script data escaped lessthan sign state
[ { "docid": "34f19b3ff7d0391cabe776f34f877f7a", "score": "0.5163699", "text": "[SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE](cp) {\n if (cp === $$1.SOLIDUS) {\n this.tempBuff = [];\n this.state = SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE;\n } else if (isAsciiLetter(cp)) {\n ...
[ { "docid": "e7df31e2081e7e4af93ff2759edae298", "score": "0.62397724", "text": "[SCRIPT_DATA_ESCAPED_STATE](cp) {\n if (cp === $.HYPHEN_MINUS) {\n this.state = SCRIPT_DATA_ESCAPED_DASH_STATE;\n this._emitChars(\"-\");\n } else if (cp === $.LESS_THAN_SIGN) {\n ...
1658f8e39dbce7a3bdc373dc017b9ff8
Listens to the 'FlightStatusInfo' oracle triggered event
[ { "docid": "0d98204b99178cac4952d36ef91997a1", "score": "0.73506296", "text": "listenOracleResponse(callback) {\n let self = this;\n self.flightSuretyApp.events.FlightStatusInfo(callback);\n }", "title": "" } ]
[ { "docid": "62761436ce2eccd346110cb1f9a5e5a7", "score": "0.66056854", "text": "listen(){\n console.log(chalk.blue('Listening for OracleQuery events:'));\n this.bizNetworkConnection.on('event', async (evt)=>{\n if (evt.flightRecordId && evt.$type === \"OracleQuery\") {\n console.log(cha...
40999257995e7e0205ed51fadfb96811
Returns a parsed format string, leveraging a cache.
[ { "docid": "c7c71a21bb997a78abd88b56068925d7", "score": "0.6162174", "text": "function getParsedFormatString(formatStr) {\n\treturn parsedFormatStrCache[formatStr] ||\n\t\t(parsedFormatStrCache[formatStr] = parseFormatString(formatStr));\n}", "title": "" } ]
[ { "docid": "aaf16bd025890ed4d7a3812a655b2681", "score": "0.638503", "text": "function getParsedFormatString(formatStr) {\n return parsedFormatStrCache[formatStr] ||\n (parsedFormatStrCache[formatStr] = parseFormatString(formatStr));\n }", "title": "" }, { "do...
a41def4d2a8a04e68e39c658c5454095
Import all the data
[ { "docid": "4f3af214b76ad925ba1ecc4fc8077952", "score": "0.0", "text": "function importHistory(callback) {\n console.log(\"Importing history...\");\n\n // For each region in the configuration\n async.map(conf.regions,\n function(region, nextRegion){\n\n // For each metric type...
[ { "docid": "68fb701dd5c3c9e9f4e7de477a21103d", "score": "0.74872607", "text": "function _eFapsCreateAllImportDataModel() {\n var fileList = eFapsGetAllFiles(\"org/efaps/js/definitions\", true);\n\n importSQLTables(fileList);\n importTypes(fileList);\n}", "title": "" }, { "docid": "e46b9c...
c411c6b85bfdec4f3d13ea99638fe801
Registers a callback that gets called whenever the theme changes. This should only be used when the component cannot automatically get theme changes through its state. This will not register duplicate callbacks.
[ { "docid": "83fe529b613fb4f5f5cfe515a8bb98b4", "score": "0.84991926", "text": "function registerOnThemeChangeCallback(callback) {\n if (_onThemeChangeCallbacks.indexOf(callback) === -1) {\n _onThemeChangeCallbacks.push(callback);\n }\n}", "title": "" } ]
[ { "docid": "1c8088e01da6afc71a7bcda46839f4e1", "score": "0.84869903", "text": "function registerOnThemeChangeCallback(callback) {\r\n if (_onThemeChangeCallbacks.indexOf(callback) === -1) {\r\n _onThemeChangeCallbacks.push(callback);\r\n }\r\n}", "title": "" }, { "docid": "23f3b...
4a4cb79710ea9dcbb7f3396baa1d2e2d
Set drag event handlers
[ { "docid": "10af61307ef670f43a5b3a072f25d624", "score": "0.0", "text": "onLeave(f) {\n this._onleave = f;\n }", "title": "" } ]
[ { "docid": "885404092366589c03c5a71b5c45b7f0", "score": "0.7756176", "text": "onHandlers() {\n // draggable\n if (this.props[\"draggable\"]) {\n this._dragHandler = new DragHandler(this);\n this._dragHandler.enable();\n }\n }", "title": "" }, { "docid": "2fcc8cbfbc534235a...
9e421d45ce35cb4407a5ee387422745b
Initializes a Query with a path and optional additional query constraints. Path must currently be empty if this is a collection group query.
[ { "docid": "c6ea7ff57b45b9f4e39366c77e1386c2", "score": "0.48604855", "text": "constructor(t, n = null, e = [], s = [], r = null, i = \"F\" /* First */ , o = null, u = null) {\n this.path = t, this.collectionGroup = n, this.Ct = e, this.filters = s, this.limit = r, \n this.limitTyp...
[ { "docid": "3cadaa72f37ac925ed35eb294dd118a5", "score": "0.73614025", "text": "function Query(path, collectionGroup, explicitOrderBy, filters, limit, startAt, endAt) {\n if (collectionGroup === void 0) {\n collectionGroup = null;\n }\n\n if (explicitOrderBy === void 0) {\n explicitOrd...
48b5c013d9232e1ce235ddb432136926
Switch between the different levels on a poster
[ { "docid": "c2ba980d50ac528b73bb5a8846408552", "score": "0.64749336", "text": "function switchPosterLevel(direction) {\n // If animating, do nothing\n if (isAnimating == true)\n return;\n\n // Which level is currently displayed\n var currentImage = $('.images-w...
[ { "docid": "cc1b8a0f997906b1bbef1841bdf4db48", "score": "0.6081948", "text": "function switch_level(name) {\n level_data[name] = get_level(name);\n Crafty.init(Game.width(), Game.height());\n Crafty.background('#bef');\n Crafty.scene(name);\n}", "title": "" }, { "docid": "600a100...
df3ed6e6c5b4e1ae1395bf152c7c1d51
; public static const TOOLBAR_DARK_GROUPED:ButtonSkin =
[ { "docid": "a386e1418385b62e41b8fc063d6c348c", "score": "0.84559894", "text": "function TOOLBAR_DARK_GROUPED$static_(){ButtonSkin.TOOLBAR_DARK_GROUPED=( new ButtonSkin(ButtonSkin.TOOLBAR_DARK.getSkin() + \"-grouped\"));}", "title": "" } ]
[ { "docid": "8334f58a1f6e7d96357bd464f1ef169f", "score": "0.87447524", "text": "function TOOLBAR_DARK$static_(){ButtonSkin.TOOLBAR_DARK=( new ButtonSkin(\"toolbar-dark\"));}", "title": "" }, { "docid": "565148fdb3b38c4340686426a1b4b15c", "score": "0.8268171", "text": "function TOOLBAR...
bac0f76c4f69ddefd8d2886cab0ab182
Given the root node of a binary search tree, return the sum of values of all nodes with a value in the range [low, high]. Input: root = [10,5,15,3,7,null,18], low = 7, high = 15 Output: 32
[ { "docid": "35987237105d893ddeef78015ecab8e7", "score": "0.0", "text": "function TreeNode(val) {\n this.val = val\n this.left = this.right = null\n}", "title": "" } ]
[ { "docid": "04bb14b8d6e30a6a816410ea78f4a5cb", "score": "0.73200506", "text": "function sum(node){\n if (node === null){\n return 0;\n }\n return sum(node.left) + sum(node.value) + sum(node.right);\n}", "title": "" }, { "docid": "17b10d1824a45f1e3c94930f65988e42", "score"...
0fe8d68f76d3f7be6803801172271c85
min distance is cell_radius (completely outside frustum)
[ { "docid": "724750185188b6cc2161c62d8d66dc54", "score": "0.60186577", "text": "function distanceToFrustum(frustum_planes, cell_radius, pnt)\n{\n // Determines if the node is inside the viewing frustum.\n var dist = 2.0*cell_radius;\n for (var i = 0; i < 24; i += 4) {\n\tvar n = frustum_planes[i...
[ { "docid": "29cd9d2c1d8c2fa1a649b814734fafb3", "score": "0.62854254", "text": "_getNearFactor(distance, radius = PERSONAL_RADIUS) {\n console.log(`_getNearFactor:distance, ${distance} radius: ${radius}`);\n return Utils.clamp(\n distance / radius,\n MIN_NEAR_FACTOR,\n MAX_NEAR_FACTO...
6412a21032e9e07c84144dfbd5b6d76d
The playback rate of the part
[ { "docid": "d41d90219482f73921b4207cbf269e1b", "score": "0.80302894", "text": "get playbackRate() {\n return this._playbackRate;\n }", "title": "" } ]
[ { "docid": "4d8f8b5b148312c65cc8c5a99b66b492", "score": "0.8215328", "text": "get playbackRate() {\n return this._event.playbackRate;\n }", "title": "" }, { "docid": "4d8f8b5b148312c65cc8c5a99b66b492", "score": "0.8215328", "text": "get playbackRate() {\n return this...
f713287e7c2540feb24336ae67641483
Gets the full list of Merchants for the logged in user
[ { "docid": "800e2e541971838b3c964c7dd574b9df", "score": "0.64035773", "text": "function merchantGetListByCurrentUser() {\r\n var url = getBaseURL() + \"Merchant/Current/List\";\r\n return $http.get(url);\r\n }", "title": "" } ]
[ { "docid": "62145127be743f89c8ea43688f0a6635", "score": "0.75540024", "text": "function _getMerchantsList(options, callback) {\n var request = {\n path: _baseUrl + 'merchants',\n method: 'GET',\n data: ((!options.data) ? options : options.data),\n headers: {\n //...
4ab491bee837a467a86c6a55980e764f
How much the user may change the value at once by moving the slider.
[ { "docid": "e72836169faa9fcda2afa88603e5aa86", "score": "0.0", "text": "get step() {\n return this.args.step || 1;\n }", "title": "" } ]
[ { "docid": "c419e597aaf74b2f12433859d9fdd1bf", "score": "0.71747", "text": "function SliderValue(that, // @param this:\n value, // @param Number(= void 0):\n fx) { // @param Boolean(= false):\n // @return Number: current value\n if ...
5cb618e63ff13d29aa7bd0384213e338
This does not return the file extension, instead it returns a media type extension
[ { "docid": "21ec47d3c738d4b7bd41bc44948785ff", "score": "0.0", "text": "function getAzureFileFormat(path) {\n if (/[(,]format=m3u8-/i.test(path)) {\n return 'm3u8';\n } else if (/[(,]format=mpd-/i.test(path)) {\n return 'mpd';\n }\n return false;\n}", "title": "" } ]
[ { "docid": "4fa035bd93769198c1ee45680093c345", "score": "0.77610654", "text": "extension() {\n return this.file instanceof Blob ? this.file.name.split('.').pop().toLowerCase() : this.file.extension;\n }", "title": "" }, { "docid": "6ba42be9f021d991604ecbcad08ad3ce", "score": "0.7...
5fab230c7fd02fc55f282d051af31ebf
Creates a new `Rect` object with specified `width` and `height`
[ { "docid": "9d9e2312b2c678ec32f5db3b4cf806da", "score": "0.0", "text": "constructor(width, height) {\r\n this.width = 0;\r\n this.height = 0;\r\n this.resize(width, height);\r\n }", "title": "" } ]
[ { "docid": "520a18a3ad369f93bf895b1a05d1b0a4", "score": "0.85524976", "text": "function createRect(width, height) {\r\n const rect = { width, height };\r\n rect.getArea = () => {\r\n return rect.width * rect.height;\r\n };\r\n return rect;\r\n }", "title": "" }, { "docid": ...
f8f71141b3e2b11fa4503cbd1b76507a
Stream of clicks outside of the autocomplete panel.
[ { "docid": "48b26b61122241aacfc1b17e4659a771", "score": "0.53810847", "text": "_getOutsideClickStream() {\n return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__[\"merge\"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_4__[\"fromEvent\"])(this._document, 'click'), Object(rxjs__WEBPACK_IMPORTED_MODULE_4__[\"fro...
[ { "docid": "e582c81939b8f44ef4a083fc212747b6", "score": "0.57712924", "text": "function bind(){ /*[1]*/\n\t\tclearClickOffs();\n\t\t$('html').click(function(event) {\n\t\t\tfor (var clickIndex=0; clickIndex < s.clickOffs.length; clickIndex++){ /*[2]*/\n\t\t\t\tif (!$(event.target).closest(s.clickOffs[cl...
5625c5a34240646d81da4892ed616556
Destroy the connection between the stomp client and broker
[ { "docid": "53a262598ad8af194129ebe803d68f4d", "score": "0.6318996", "text": "disconnect() {\n return new Promise((resolve, reject) => {\n if (this._stompConnection === undefined) {\n reject('Invalid connection');\n } else {\n for (const subscription in this._subscriptions) {\...
[ { "docid": "c0485b78b52da26a67723eb3296b5511", "score": "0.74784726", "text": "async destroy() {\n\t\t// Clear the reconnect timer if it exists.\n\t\tif (this.reconnectTimer !== undefined) {\n\t\t\tclearInterval(this.reconnectTimer)\n\t\t\tdelete this.reconnectTimer\n\t\t}\n\n\t\t// Close the socket.\n\...
e4d90234a842330d1b41bf7d17574d45
Action creator for removing the data for a channel.
[ { "docid": "c5f61e1b91ccf08c282a3ccf0903d946", "score": "0.6731317", "text": "removeChannel ({ id, chan }) {\n return {\n id,\n type: module.exports.REMOVE_CHANNEL,\n chan\n }\n }", "title": "" } ]
[ { "docid": "2205d59a968a1f07287f1b2372ec5a61", "score": "0.6659141", "text": "removeChannel( in_channel_id ) {\n let channel = this.getChannelById(in_channel_id);\n if ( ! channel ) { throw new Error(\"Channel not found\");}\n delete this.channels[in_channel_id];\n this.log(`...
011a9b438155f7fc872a4845ee869b40
Checks what to do and maybe cancels the request.
[ { "docid": "a7593c9c7e64b4436fa82bde012883a9", "score": "0.0", "text": "function blockPage (details) {\n console.log(details.url);\n\n function isScheduleBlocked(schedule) {\n const h = (new Date()).getHours();\n return schedule.start <= h && h < schedule.end;\n }\n\n function isInBlockList(bl...
[ { "docid": "2eb93ce44e1bda7c75388814ce790a9c", "score": "0.7068284", "text": "function CancelCurrentRequest() {\n if (xmlReq != null)\n xmlReq.abort();\n}", "title": "" }, { "docid": "2d0572cf639a348f9de5c322a6ef470e", "score": "0.6691931", "text": "abort() {\n if (t...
f5ccde660849df0c6c0030cf99d85b1c
draw the bar chart
[ { "docid": "6327e929cea53bae40356dec6c866c6b", "score": "0.0", "text": "function drawHbar(data, svg) {\n let x_hbar = d3.scaleLinear().range([0, width_hbar - 160]);\n let y_hbar = d3.scaleBand().range([height_hbar, 30]);\n\n data.sort(function (a, b) {\n return a.value - b.value;\n })...
[ { "docid": "5180d10da2deb5d105b096ff7f1f5f36", "score": "0.7621974", "text": "function drawBars() {\n setClassByData(BARS, \"bar\");\n setBarLength(BARS);\n setTitle(BARS);\n setCenterTitle(TARGET_BAR);\n setClick(BARS);\n setMouseover(BARS);\n BARS.class...
575527d3fd1a3705f5b9a57599fd5b19
the Zlib class they all inherit from This thing manages the queue of requests, and returns true or false if there is anything in the queue when you call the .write() method.
[ { "docid": "7a74ce7e9353a88c282b820f3ae23214", "score": "0.0", "text": "function Zlib(opts, mode) {\n this._opts = opts = opts || {};\n this._chunkSize = opts.chunkSize || exports.Z_DEFAULT_CHUNK;\n\n Transform.call(this, opts);\n\n if (opts.flush) {\n if (opts.flush !== binding.Z_NO_FLUSH &&\n ...
[ { "docid": "3ee04184c7dc5d77de7ed3b510749e43", "score": "0.6725928", "text": "_emptyQueue() {\n return this._requests.length === 0;\n }", "title": "" }, { "docid": "3ee04184c7dc5d77de7ed3b510749e43", "score": "0.6725928", "text": "_emptyQueue() {\n return this._requests.length...
4051160e935960ed9aebe4b129330e6e
Computes the next entry with exceptions catching.
[ { "docid": "dbbb6368184366a66722ef3360a3c584", "score": "0.0", "text": "function computeWithTryCatch(reducer, action, state) {\n\t var nextState = state;\n\t var nextError = void 0;\n\t try {\n\t nextState = reducer(state, action);\n\t } catch (err) {\n\t nextError = err.toString();\n\t if ...
[ { "docid": "9a454d5e3a1593f7f1631ba916461193", "score": "0.6670629", "text": "function computeNextEntry(reducer, action, state, shouldCatchErrors) {\n\t if (!shouldCatchErrors) {\n\t return { state: reducer(state, action) };\n\t }\n\t return computeWithTryCatch(reducer, action, state);\n\t}", ...
0579f052898b1c103ed8b3188d432088
Choose the first valid path. If `workspace` is undefined then either a workspace or a directory are acceptable. Otherwise it must be a file if a workspace or a directory otherwise.
[ { "docid": "3240540e1b7cbf8e5ebb163c0e7545c8", "score": "0.5260645", "text": "async getFirstValidPath(startPaths) {\n const logger = this.services.get(log_1.ILogService);\n const cwd = process.env.VSCODE_CWD || process.cwd();\n for (let i = 0; i < startPaths.length; ++i)...
[ { "docid": "202f5ef31b117339533319af4e1883c5", "score": "0.515417", "text": "function checkPath () {\n $scope.alreadyOpen_ws = null;\n var loc = $location.path();\n var index = loc.indexOf('workspace/');\n if (index > -1) {\n var workspaceSubstr = loc.substring(index+10);\n ...
65270b575efda62a681e18373e7feb1b
END valIndRep This is used in valIndRep to compare the paths of the expression, and the path of the referenced field, to check if indexedrepeat() is needed. Returns TRUE if indexedrepeat is needed, and FALSE if it NOT needed. Essentially, returns TRUE if they do NOT match up / If each part of the referenced path equals...
[ { "docid": "d7aa3b0bb241df2ba134a4447b59aa0c", "score": "0.8480273", "text": "function needIndRep(curPath, refPath){\n try{\n if(curPath == refPath){ //Both are aleady equal (usually if they are null)\n return false;\n }\n \n if(!Array.isArray(curPath) || !Array.isArray(refPath)){ //On...
[ { "docid": "38fa5477a4bf11284c6679a68b113cfa", "score": "0.6103034", "text": "isRepeatable(): boolean {\n return this.expression.isRepeatable() && this.indexingExpr.isRepeatable();\n }", "title": "" }, { "docid": "4ebbdf7262cca17b1f92f80963da3e80", "score": "0.56316835", "text": ...
05ed2f887757fd5c2b8aaa865bd54e5b
Enable or disable all input handlers
[ { "docid": "68c892fe28bcf0bdb47173806b4d286d", "score": "0.0", "text": "setEnabled(enable) {\n if (this.enabled !== enable) {\n this.fire(\"enabled\", this.enabled = enable);\n }\n }", "title": "" } ]
[ { "docid": "ccd65a8f10235625aebfab7146d3cf80", "score": "0.652111", "text": "ENABLE_INPUT (state) {\n state.inputEnabled = true;\n }", "title": "" }, { "docid": "89b102ef22248c77eef544bb5b91036e", "score": "0.6446941", "text": "disableInputs() {\n if(!this.app.isRunnin...
d1ff1d51ebf0342f84f9a76129a21a4c
Convert a string into the corresponding DType.
[ { "docid": "f8f627404133a7f73c406471889df8cf", "score": "0.7146954", "text": "function stringToDType(dtype) {\n switch (dtype) {\n case 'float32':\n return 'float32';\n default:\n throw new errors_1.ValueError(\"Invalid dtype: \" + dtype);\n }\n}", "title": ...
[ { "docid": "27af887f81f6d996384fce7e130d7a75", "score": "0.6375772", "text": "function descriptor2typestr(type_str) {\n var c = type_str[0];\n if (c in exports.internal2external)\n return exports.internal2external[c];\n if (c === 'L')\n return type_str.slice(1, -1);\n if (c ===...
231e96a92a72e1c42291da20e1f5af96
don't leave dangling pipes when there are errors.
[ { "docid": "cd49ce7fe44301e5e1c18cb945bbab20", "score": "0.0", "text": "function onerror(er) {\n cleanup();\n if (EE.listenerCount(this, 'error') === 0) {\n throw er; // Unhandled stream error in pipe.\n }\n }", "title": "" } ]
[ { "docid": "9ea31af3978491d2e034f98719002e7a", "score": "0.6613372", "text": "function epipeError(err) {\n if (err.code === 'EPIPE' || err.errno === 32) return process.exit;\n\n if (process.stdout.listeners('error').length <= 1) {\n process.stdout.removeAllListeners();\n process.stdout.emit('err...
31396a96fcf8bd0690ac04aaba436628
deletion, so don't let them throw. Hostoriginating errors should interrupt deletion, so it's okay
[ { "docid": "eeee9bbcd62a49b0bd27d655ea5d4161", "score": "0.0", "text": "function commitUnmount(finishedRoot, current, renderPriorityLevel) {\n onCommitUnmount(current);\n\n switch (current.tag) {\n case FunctionComponent:\n case ForwardRef:\n case MemoComponent:\n c...
[ { "docid": "8bf6a3f04550dfcae86d77a756a44160", "score": "0.647436", "text": "async preDelete () {\n\t}", "title": "" }, { "docid": "b188e824182f6ce285e3256455357cf7", "score": "0.6450559", "text": "function hoistedDelete() {}", "title": "" }, { "docid": "b94afa9e6b47607ac...
048f85cd9546cd80ce13bc4df8cae176
Renders the AWS CloudFormation properties of an `AWS::AmplifyUIBuilder::Form.FieldInputConfig` resource
[ { "docid": "0e07d893d9a445b5056898c7fd49f779", "score": "0.5892025", "text": "function cfnFormFieldInputConfigPropertyToCloudFormation(properties) {\n if (!cdk.canInspect(properties)) {\n return properties;\n }\n CfnForm_FieldInputConfigPropertyValidator(properties).assertSuccess();\n ...
[ { "docid": "3f6d2a9caec1a248caa8cc470150ae63", "score": "0.59356356", "text": "renderInputField(fields) {\n\n const { meta : { touched, error }} = fields;\n\n const className = `form-group ${ touched && error ? 'has-danger' : ''}`;\n\n const placeholders = fields.input.name === 'ser...
b5a1ea99c7014061cb00f13e7637623e
Registers an icon using an HTML string in the default namespace.
[ { "docid": "002955f8b57e995ed3ab8d9bde332300", "score": "0.633655", "text": "addSvgIconLiteral(iconName, literal, options) {\n return this.addSvgIconLiteralInNamespace('', iconName, literal, options);\n }", "title": "" } ]
[ { "docid": "080db690709193c515490bb0e3d2bc98", "score": "0.6815123", "text": "addSvgIconLiteralInNamespace(namespace, iconName, literal, options) {\n const sanitizedLiteral = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__[\"SecurityContext\"].HTML, literal);\n if (!san...
3514571ab91f29731036ab7a6040c9c6
tdesign v0.8.4 (c) 2022 TDesign Group
[ { "docid": "14feb9b472432d158435ce00492e5a69", "score": "0.0", "text": "function Am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}", "tit...
[ { "docid": "b4da0765549006784698ad3d3ae8063f", "score": "0.5703861", "text": "function Ct(){E(Da.v(),\"app-events\",\"start\",null,2);Bt();window.location.hash=\"\";(\"Microsoft Internet Explorer\"===navigator.appName||\"Netscape\"===navigator.appName&&0<=navigator.userAgent.indexOf(\"Trident\"))&&ya(\"...