query_id
stringlengths
32
32
query
stringlengths
7
29.6k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
eb7b028bc113c0ca4caf2aec453b7700
zorder of a point given coords and inverse of the longer side of data bbox
[ { "docid": "0b7e787d26c4e13b1cd2dacf274a2750", "score": "0.6661566", "text": "function zOrder( x, y, minX, minY, invSize ) {\n\n\t// coords are transformed into non-negative 15-bit integer range\n\n\tx = 32767 * ( x - minX ) * invSize;\n\ty = 32767 * ( y - minY ) * invSize;\n\n\tx = ( x | ( x << 8 ) ) &...
[ { "docid": "eee51a0972e08c068b55af537e93a109", "score": "0.6767461", "text": "function zOrder(x, y, minX, minY, size) {\n\t // coords are transformed into non-negative 15-bit integer range\n\t x = 32767 * (x - minX) / size;\n\t y = 32767 * (y - minY) / size;\n\t\n\t x = (x | (x << 8)) & 0x00...
747f007503b86a70e035736924581eac
Cache timeout in 1 day Common utility for getAll functions return all the requested data in json format.
[ { "docid": "34356ee3ff84a52a134fb95cef693640", "score": "0.0", "text": "function getAllFromCacheOrDB(tableName,cacheKey,whereClause,keyName,callback) {\n var data = cache.get(cacheKey);\n //First get the data from cache,\n //if there's no data in cache, query from DB and then put it into cache....
[ { "docid": "5196cbe02c20e8c7515398e8fe3c6409", "score": "0.63187885", "text": "async getAll() {\n try {\n const response = await fetch(baseUrl + this.entity);\n const dataJson = await response.json(); \n return dataJson;\n\n } catch (err) {\n ...
4c0b739065a3059d014a8e4721452ee2
creates subscreen for when they START the actual game
[ { "docid": "3cf7940e9b6e8b70d142f87fd3daecf4", "score": "0.0", "text": "function createCardSubScreen(){\n let cardSubScreen = document.createElement(\"div\");\n cardSubScreen.id = \"cardSubScreen\";\n //left side\n let leftScreen = document.createElement(\"div\");\n leftScreen.innerHTML =...
[ { "docid": "be6bc7f4728e7ad80641c4fc4c12f09e", "score": "0.7511931", "text": "function handleStartGame() {\n destroyIntroScreen();\n buildGameScreen();\n }", "title": "" }, { "docid": "b83f338624fff8417d894025f810cebd", "score": "0.73209053", "text": "function startScreen(){\n...
c40fd7f40e8b3a720a2eeb0158c74691
create function to randomise mines each cell.isMine has a 25% chance of being a mine
[ { "docid": "b959aba3b8d4d388eaf3a244d4484e19", "score": "0.6999251", "text": "function randomMine() {\n if (Math.random() < 0.25) {\n return true\n } else {\n return false\n }\n}", "title": "" } ]
[ { "docid": "9e5fb76847315cb1ed79a696ebc58600", "score": "0.754482", "text": "function mineCheck(numOfMines, numOfCells) {\n\tlet mineCheck = Math.floor(Math.random(numOfMines) * numOfCells);\n\tlet rtnValue = 1;\n\tif (mineCheck == 0){\n\t\trtnValue = 1;\n\t}\n\telse {\n\t\trtnValue = 0;\n\t}\n\treturn ...
cebb260a6c3028c8379e27516448e438
picking a simple representative of that type.
[ { "docid": "1e3e2653a8a0012c8965102efd1244c5", "score": "0.0", "text": "function Format() {\r\n\t\r\n}", "title": "" } ]
[ { "docid": "85cc9afd6e00f7fc85137ca744c374c7", "score": "0.60236275", "text": "get type() {}", "title": "" }, { "docid": "969725b9c0c399ddefae5d18720e3ea4", "score": "0.57500386", "text": "function Typeon () {}", "title": "" }, { "docid": "204cb7e4a3c040f63c1d17c343d563f4...
7199bdff2e574879089bb949c2e38594
window.rpcprovider = new ethers.providers.JsonRpcProvider( " " " ); window.rpcprovider1 = new ethers.providers.JsonRpcProvider( " " " ); const selectedAddress = provider.provider.selectedAddress; /////Get function
[ { "docid": "da62ca99053240c44da858c17556f93b", "score": "0.0", "text": "async function syncCollections(collectionAddess) {\n var latest = await axios.get(\"/transfers?collection=\" + collectionAddess);\n var startBlock = latest.data.length == 0 ? 7090600 : latest.data.block + 1;\n var endBlock ...
[ { "docid": "f7e6dc81fb61ea816ac5033cd5271a8e", "score": "0.65132153", "text": "initializeProvider() {\n const providerOptions = {\n static: {\n eth_syncing: false,\n web3_clientVersion: `Torus/v${version}`,\n },\n version,\n // account mgmt\n getAccounts: async ...
12074b3d3d27a54baae4838d29759990
Load the icon by URL using HTTP.
[ { "docid": "1fa65a0599e131d1b1aed24616ec977d", "score": "0.6618617", "text": "function loadByHttpUrl(url) {\n return $q(function(resolve, reject) {\n // Catch HTTP or generic errors not related to incorrect icon IDs.\n var announceAndReject = function(err) {\n var msg = ang...
[ { "docid": "1030e0da003f533009dd36b6f9f0899c", "score": "0.7592534", "text": "function loadByURL(url){/* Load the icon from embedded data URL. */function loadByDataUrl(url){var results=dataUrlRegex.exec(url);var isBase64=/base64/i.test(url);var data=isBase64?window.atob(results[2]):results[2];return $q....
eca0e139954ce2681a9a51c342b27b4a
Goal of the optimizer: walk the generated template AST tree and detect subtrees that are purely static, i.e. parts of the DOM that never needs to change. Once we detect these subtrees, we can: 1. Hoist them into constants, so that we no longer need to create fresh nodes for them on each rerender; 2. Completely skip the...
[ { "docid": "0a13378d2d8f8ca9793d161120f2bb72", "score": "0.0", "text": "function optimize(root, options) {\n if (!root) {\n return;\n }\n\n isStaticKey = genStaticKeysCached(options.staticKeys || '');\n isPlatformReservedTag = options.isReservedTag || no; // first pass: mark all non-static nodes....
[ { "docid": "5e5ee8b5205bd5b729eb3ed1f3c008d7", "score": "0.5835733", "text": "function renderStatic(index, isInFor) {\n\t var tree = this._staticTrees[index];\n\t // if has already-rendered static tree and not inside v-for,\n\t // we can reuse the same tree by doing a shallow clone.\n\t if (tree && ...
6b9cf8557ea12009523e564c0b6f8ed4
For a new search
[ { "docid": "c68ffea56fd23010a286dacf696a1b74", "score": "0.0", "text": "function getSearchItem(event){\n event.preventDefault();\n if (searchText.val().trim() !== \"\") {\n meal = searchText.val().trim();\n searchMeal(meal);\n }\n}", "title": "" } ]
[ { "docid": "e45ee630ac042610be43dcb6b41ebb98", "score": "0.7042414", "text": "function newSearch(userInput) {\n hideResults();\n displayMessage();\n\tgetVidsResult(userInput);\n}", "title": "" }, { "docid": "953e73a355d6ff61b6020403e206e72f", "score": "0.6907353", "text": "func...
e03bf1d06e9179a46dd1574f22ceada5
Removes a given DOM Node from its parent.
[ { "docid": "850182ac8f2fad850473a1710800f14a", "score": "0.7153911", "text": "function removeNode(node) {\n\tvar p = node.parentNode;\n\tif (p) { p.removeChild(node); }\n}", "title": "" } ]
[ { "docid": "3d1ad842014c49e1fef160bbaa5acd65", "score": "0.75438946", "text": "function removeNode() {\n var parent = document.getElementsByTagName(\"div\")[19];\n parent.removeChild(parent.childNodes[0]);\n}", "title": "" }, { "docid": "2e171312f155dc07995fab6901d30e53", "score": ...
80cec8dd65d18e4d4b02a7de55d6cd14
set / get number of rows and columns
[ { "docid": "f387180b522876ddfb5ce471ca51257a", "score": "0.58673614", "text": "function dimensions() {\r\n let rows = 0;\r\n let cols = 0;\r\n return {\r\n setDimensions(r, c) {\r\n rows = r;\r\n cols = c;\r\n },\r\n getDimensions() {\r\n re...
[ { "docid": "8f2c053e6c9cffcb4438b46b8866c7de", "score": "0.686214", "text": "getSize() {\n return {r: this.rows, c: this.cols};\n }", "title": "" }, { "docid": "c7b473e4cb54eb9f813e37388d8b7b24", "score": "0.6611343", "text": "function gridSize()\r\n{\r\n return (countColumns() ...
84dc41ecf9d4ea9365566d61113bb19b
force refresh embeddings file but first rename existing embeddings file to .smartconnections/embeddingsYYYYMMDD.json
[ { "docid": "39b710d85e78c5651ff130edc6e7809e", "score": "0.85343575", "text": "async force_refresh_embeddings_file() {\n // get current datetime as unix timestamp\n let current_datetime = Math.floor(Date.now() / 1000);\n // rename existing embeddings file to .smart-connections/embeddings-YYYY-M...
[ { "docid": "e270e746523c9db55946d0dd3dd90342", "score": "0.70330834", "text": "async reload_embeddings_file() {\n await this.view.load_embeddings_file();\n await this.view.render_connections();\n }", "title": "" }, { "docid": "978bb7d9b2cebe1147e1d50d5f4e4a60", "score": "0.6560771...
e63c2149e557720199409d05035ed7d3
==================== Working w/ Files ====================
[ { "docid": "df397d32eee0a07f5852aaeefb56db68", "score": "0.0", "text": "function SaveFile() {\n\n\t\tvar currentState = Windows.UI.ViewManagement.ApplicationView.value;\n\t\tif (currentState === Windows.UI.ViewManagement.ApplicationViewState.snapped &&\n\t\t\t!Windows.UI.ViewManagement.ApplicationView.t...
[ { "docid": "f99c96895d4cc519dff1e3b0dace2047", "score": "0.6602904", "text": "function mainFun(files){\r\n\tstartTime()\r\n\thandle_file(files[0]);\r\n}", "title": "" }, { "docid": "2d9b6e5b4b15c52c7f7940287b5a344e", "score": "0.65635854", "text": "function handleFiles(files) {\r\n\r...
4ccf6421d9d911ef016d92b215a4ed4d
register new renderer and corresponding context
[ { "docid": "4add730594499a373b9287be6463091b", "score": "0.58893406", "text": "function addFrameRenderer(frameRender, renderContext) {\r\n if (frameRender && typeof (frameRender) === \"function\") {\r\n frameRenderersCollection.push(frameRender);\r\n renderContextesCol...
[ { "docid": "6e8eea307bdffc8e5d70ad692b228c13", "score": "0.614745", "text": "function registerRenderer(info, force) {\n if (!info || !info.name || !info.renderer) return;\n var name = info.name;\n var pattern = info.pattern;\n var registry = exports.rendererRegistry;\n if (name in registr...
6bfa4db69d74a1f60df99a16f4d5cc41
Callback for when tweet is sent.
[ { "docid": "a5ec866d9ed08d1b65327cd6c85ddeda", "score": "0.67821485", "text": "function tweeted(err, data, response) {\n\t\t\tif (err) {\n\t\t\t\tconsole.log(err);\n\t\t\t} else {\n\t\t\t\tconsole.log( 'Sent custom gradient back.' );\n\t\t\t}\n\t\t}", "title": "" } ]
[ { "docid": "e1aa30ba3e3faae92d404cc80b95962f", "score": "0.79726344", "text": "function tweeted(err, data, response) {//this is a call back function work after tweet has posted.\n if(err){\n console.log(err); \n }\n else{\n console.log(\"Bo...
36a93fac3295439031d6fcb94876635e
Returns the 'hasDirectText' status of all PageNodes managed by PageElementGroup as a result structure after executing the initial waiting condition of each PageNode. A PageElement's 'hasDirectText' status is set to true if its actual direct text equals the expected direct text. A direct text is a text that resides on t...
[ { "docid": "8bd9d18c743da2a5ae694976973698f8", "score": "0.75014174", "text": "getHasDirectText(directTexts) {\n return this.eachCompare(isIElementNode, ({ node, expected }) => node.getHasDirectText(expected), directTexts);\n }", "title": "" } ]
[ { "docid": "696b15628cf4cdca347e187b7b6aa94a", "score": "0.7559167", "text": "getHasDirectText(directTexts) {\n return this._node.eachCompare(isIElementNode, ({ node, expected }) => node.currently.getHasDirectText(expected), directTexts);\n }", "title": "" }, { "docid": "174b3947db...
579a1e5254184828fde68d3d037e4636
Range of concurrent lobbies (min range is 0, max range is 7).
[ { "docid": "e190b575541da6956722debf5a8e6a0d", "score": "0.0", "text": "function init() {\n // After loading, ChannelServer\n}", "title": "" } ]
[ { "docid": "273aeed8bd292ed0d1d20f010fc26071", "score": "0.5801684", "text": "function rangeCompany(n) {\n return new Array(n);\n }", "title": "" }, { "docid": "11ad35e5e4709df1fe0d714f4fb9f31b", "score": "0.56165564", "text": "__range(min, max) {\n let results =...
a39f8b86f0acac66a953076f3675f57c
Helper function used to load a file from the server
[ { "docid": "99b21795bb77d3b5363231b00d625b17", "score": "0.7023334", "text": "function loadFileFromServer(filename) {\r\n return new Promise((resolve, reject) => {\r\n let xmlHttp = new XMLHttpRequest();\r\n\r\n xmlHttp.onreadystatechange = function() {\r\n if (xmlHttp.readyState === XMLHttp...
[ { "docid": "3120e2c77cc2a870afa9221a17f10897", "score": "0.7064723", "text": "function loadFile(filePath) {\r\n var result = null;\r\n var xmlhttp = new XMLHttpRequest();\r\n xmlhttp.open(\"GET\", filePath, false);\r\n xmlhttp.send();\r\n if (xmlhttp.status === 200) {\r\n result = ...
7e6f3b2d29942f43de34e301df3f3dd5
Create filter function for a query string
[ { "docid": "82c3a2fe46f32bf97aba0e549e6fd61c", "score": "0.64341956", "text": "function createFilterFor(query) {\n return function filterFn(product) {\n return (product.productCode.toLowerCase().indexOf(query.toLowerCase()) !== -1);\n };\n }", ...
[ { "docid": "cd2d4946a32bd51ac6f11c4bf54c3694", "score": "0.7114037", "text": "function queryStringFilter($exceptionHandler, $log, locationSearch, qs) {\n\n\treturn function(input, params) {\n\n\t\tvar paramsType = angular.isArray(params) ? 'array' : typeof params, out = '';\n\n\t\tif (!input) {\n\t\t\t$...
9f879c5d2df1550ad626e2b15616f75b
if you assign the string later also it take type as any let valueEndWithE = (assertionsExample2).endsWith("E"); //as type is any you will not get intellisense , so you need to append string assertions to get intellisense let alternateway = (assertionsExample2 as string).endsWith("E"); Arrow functions
[ { "docid": "9e354391100a3712632e1e6229657624", "score": "0.0", "text": "function normalFunction(normalFunctionparameters) {\n console.log(normalFunctionparameters);\n}", "title": "" } ]
[ { "docid": "2957454fb86a54d2aac1fba4f4713144", "score": "0.62662536", "text": "function createEndsWithFilter(endsWith) {\n // YOUR CODE BELOW HERE //\n //I-character\n //O-test function to compare ending value\n //C-\n //E-\n //I'm going to return a function that converts both values t...
61d08282ebcd245fd9b76720c988952f
ver 2.0 starts here
[ { "docid": "28d2fac6316b79011d6d2a18e6ad43d0", "score": "0.0", "text": "function restrictDelimeter(address)\n\t\t{\n\t\t var str = trimAll(document.getElementById(address).value);\n\t\t\tfor(var i=0;i<str.length;i++)\n\t\t\t { \n\t\t\t if(str.charAt(i)== '~')\n\t\t\t {\n\t\t\t ...
[ { "docid": "04db2bf4378e221bf34f73a324e7938e", "score": "0.70173025", "text": "get __version__(){return __version__;}", "title": "" }, { "docid": "b36870915304629d2c44ca9b0c395e24", "score": "0.6873635", "text": "static getVersion() { return 1; }", "title": "" }, { "docid...
fef843f6179f34e7963d2796fa589f83
Attempts to deserialize a value to a valid date object. This is different from parsing in that deserialize should only accept nonambiguous, localeindependent formats (e.g. a ISO 8601 string). The default implementation does not allow any deserialization, it simply checks that the given value is already a valid date obj...
[ { "docid": "3d1a5f3f430bb1dda24507050a700da7", "score": "0.7723661", "text": "deserialize(value) {\n if (value == null || this.isDateInstance(value) && this.isValid(value)) {\n return value;\n }\n return this.invalid();\n }", "title": "" } ]
[ { "docid": "f4a8293e2556ac8c1c1c7824ef2689dc", "score": "0.82582587", "text": "deserialize(value) {\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n // The `Date` constructor accepts formats other than ISO 8601, so we need to ...
9203f8254cc342a4833053eda9d7ec72
Use the double // to create a new comment Build a Bear Declaring new function named 'buildABear' with the paramaters (name, age, fur, clothes, specialPower)
[ { "docid": "803f47e3b50f667486ef79d153c17e9b", "score": "0.74811053", "text": "function buildABear(name, age, fur, clothes, specialPower) {\n//Declaring a variable named greeting with a string data type containing interpolation\n var greeting = `Hey partner! My name is ${name} - will you be my friend?!...
[ { "docid": "2d73de519a90df8809204919f20de122", "score": "0.790561", "text": "function buildABear(name, age, fur, clothes, specialPower) {\n // create function called buildABear with arguments name, age, fur, clothes, and SpecialPower\n var greeting = `Hey partner! My name is ${name} - will you be my f...
c699ae9eded9c3d48c2f8b66ddb1dedb
create book object and add to array
[ { "docid": "7999c2ba9f260a86ab4e4c1be85383f5", "score": "0.6213644", "text": "function addBookToShelf(bookTitle, bookAuthor, bookDescr, bookImg, bookIsbn) {\n const newBook = new Book(bookTitle, bookAuthor, bookDescr, bookImg, bookIsbn);\n tempShelf.unshift(newBook);\n }", "title": ...
[ { "docid": "8374ef7add1bc05825f4c9a6cc2115c3", "score": "0.7691684", "text": "function createBook() {\n let newTitle = document.getElementById(\"title\").value;\n let newAuthor = document.getElementById(\"author\").value;\n let newPages = document.getElementById(\"pages\").value;\n let newRe...
4edb7299bf95298a98796b0993034aa7
Handler for onload event
[ { "docid": "0371eacbee837aac9ef89f095ff886c4", "score": "0.0", "text": "function loadHandler() {\n var i;\n\n if (!mutSnowplowState.hasLoaded) {\n mutSnowplowState.hasLoaded = true;\n for (i = 0; i < mutSnowplowState.registeredOnLoadHandlers.length; i++) {\n mutSnowplowState.regis...
[ { "docid": "32f907c6397f73b67804deb2ec153c1a", "score": "0.8040154", "text": "set onload(_onload) {\n\t\t\tonload = _onload;\n\t\t}", "title": "" }, { "docid": "182ccd8b264493bba5c8646c4b3127d5", "score": "0.76339215", "text": "function onloadhandler(e) {\n \t \tconsole.log(e)...
c54ff8842d2e19670fa01e190f4fab5e
! moment.js locale configuration
[ { "docid": "a9e847f7e922ce912a01aa0cff06ddd2", "score": "0.0", "text": "function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } e...
[ { "docid": "99ccb5862776433d2ec74e9576fe0564", "score": "0.80545896", "text": "function ni(e,t,n){var a={ss:t?\"секунда_секунди_секунд\":\"секунду_секунди_секунд\",mm:t?\"хвилина_хвилини_хвилин\":\"хвилину_хвилини_хвилин\",hh:t?\"година_години_годин\":\"годину_години_годин\",dd:\"день_дні_днів\",MM:\"мі...
8cd8310a3738cf3cd9c3512e0fb1d30d
Saving Form Settings into variables
[ { "docid": "80a14f1c7c6d3549fa593775b58d9eba", "score": "0.0", "text": "function saveSet() {\n setVaucherID = document.getElementById('setVaucherID').value;\n setDate = document.getElementById('setDate').value;\n setInvoiceNumber = document.getElementById('setInvoiceNumber').value;\n setVend...
[ { "docid": "d853851c77e12e03965a906d2ecf0c5c", "score": "0.6998297", "text": "function doSettings() {\n\n $(\"#name-setting\").val(parseSettings(\"name\"));\n $(\"#grass-target\").val(parseSettings(\"target\"));\n}", "title": "" }, { "docid": "2b44cc4d058b27fc83d731b37a75d5ee", "score"...
fc9681e19860b1d5d824929b1f448930
the consrucer is over here
[ { "docid": "9d293e3a95846ccb6c0e0f22d6dd64be", "score": "0.0", "text": "function BodyComponent(http) {\n this.http = http;\n // get the club id\n // add some videos\n this.equialslideconfigNumber = 1; // Change here for front end control variable\n this.slideConfig = {...
[ { "docid": "532a66db437937b1c5e25179b89b3dcb", "score": "0.58032525", "text": "function _beeswarm() {}", "title": "" }, { "docid": "10d5627078b78749ec09d72a3aae1520", "score": "0.5799039", "text": "function() {\n\t\t//...\n\t}", "title": "" }, { "docid": "a3a03b5748291f69...
e068f41785dc9f0ce09761f4240bfcab
Copy the default endpoint definition file
[ { "docid": "3639f9f3138464e0cc81815cbc872bbc", "score": "0.8065645", "text": "async function copyEndpointDefinitionFile() {\r\n const sourceFilePath = path.join(\r\n __dirname,\r\n defaultConfig.endpointDefinitionPath);\r\n const targetFilePath = path.join(\r\n process.cwd(),\...
[ { "docid": "89555a6da6035dba3af3455753fb61ad", "score": "0.5564811", "text": "function main() {\n const input = readFile(process.argv[2]);\n const output = BASE_SWAGGER_DEFINITION;\n\n _.forOwn(input, (val, endpoint) => {\n console.log(`Creating '${endpoint}'...`.blue);\n output.paths[endpoint....
3b4fee4365c0f119be5a4e89596efc1f
Stops playing the UFO sound.
[ { "docid": "5ba7b2f0b1e04e01b3a0b70f6f33ccce", "score": "0.79874957", "text": "stopUFOSpawnSound() {\n // Right now there's no way of knowing which track is playing so just stop all of them.\n this.aggressiveUfoAudio.stop();\n this.passiveUfoAudio.stop();\n }", "title": "" } ]
[ { "docid": "a4625c8e07481c1e53b80ba2527f9696", "score": "0.767148", "text": "function stopSound() {\n if (source) {\n source.noteOff(0);\n }\n}", "title": "" }, { "docid": "313964aafc91a1c8317d6e6562205f87", "score": "0.73728466", "text": "function stopAudio() {\n if (isBusy(...
eb19b2c0ab956980e570ca9efd9235f0
Resets all schedules, used during testing
[ { "docid": "42b8d7dce480aca36e864f199af5be77", "score": "0.86935276", "text": "resetSchedule() {\n for (let schedule of this.schedules)\n schedule.resetSchedule();\n }", "title": "" } ]
[ { "docid": "61c293776138d2cfad6548fcf9585670", "score": "0.79682034", "text": "function reset_schedule() {\r\n for (var trainee of trainees) {\r\n trainee.set_empty_schedule_blocks();\r\n }\r\n}", "title": "" }, { "docid": "3233daf0ad5c811a26c78751b920abab", "score": "0.7359...
22624b792405c3d256f4ea642d77f44e
if piece of argument is match in the board, return true, else return false
[ { "docid": "325c10416c748132605e107d2a99c947", "score": "0.6984932", "text": "matchPiece(piece) {\n const isUndefined = typeof this.findPiece(piece) === 'undefined';\n const isEqualPiece = this.findPiece(piece).is(\n Piece.create({\n x: piece.x,\n y: piece.y,\n type: piec...
[ { "docid": "718ff3a138ee1fb37922ce1a2c98fc7d", "score": "0.71389955", "text": "function isWinningLine(board){\n for (let i = 0; i < 7; i++){\n for (let j = 1; j < 7; j++){\n const pattern = `${board[j][i]}${board[j][i + 1]}${board[j][i + 2]}${board[j][i + 3]}`;\n if (pattern === \"XXXX\" |...
f158d6797ddb9828476f0f69b5a870e0
Spawns a munchie at a random position on the grid
[ { "docid": "84e4e3b34fe43dbe0cd11f3b7a3a87a2", "score": "0.7509095", "text": "spawnMunchie() {\n let munchX = Math.round(Math.random() * 37) ;\n let munchY = Math.round(Math.random() * 24) ;\n\n this.munchies.push({ x: munchX, y: munchY });\n }", "title": "" } ]
[ { "docid": "741e36e5b4b294ce0f403f7217d1cfa7", "score": "0.7421819", "text": "function spawnLocation() {\n //Breaking the entire canvas into a grid of tiles\n let rows = width / tileSize;\n let cols = height / tileSize;\n\n let xPos, yPos;\n\n xPos = Math.floor(Math.random() * rows) * til...
7c32d6b2c3ed615ec3c9509f1fc7bd81
helper method that is sends a message
[ { "docid": "d7708f1fc9c2bb77b7f88cb4c2a0bfc0", "score": "0.0", "text": "function handleSend(newMessage = []) {\n setMessages(GiftedChat.append(messages, newMessage));\n }", "title": "" } ]
[ { "docid": "8b5b53caa21ec7aedcd41396bc79e3e7", "score": "0.8078407", "text": "function sendMessage(){}", "title": "" }, { "docid": "baa55503427fa00d578d4cf6a4ac3482", "score": "0.751243", "text": "function sendMessage () {\n var message = $inputMessage.val();\n // Preve...
33c10512802daed1fe05d6aae98f205b
MOVE OUT THE CAPTIONS //
[ { "docid": "6c5eb9a040b3e3fe2133a108aa4e98c4", "score": "0.0", "text": "function endMoveCaption(nextcaption,opt) {\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (nextcaption.hasClass(\"randomrotate\") && (opt.ie || opt.ie9)) nextcaption.removeClass(\"randomrotate\").addClass(\"sfb\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\...
[ { "docid": "e4be36fd907d33224e2c9381f2166a2a", "score": "0.5943378", "text": "function deSelectCapsules() {\n\t\t// Revert grind details to original styles\n\t\tgrind.style.pointerEvents = \"revert\";\n\t\tgrind.removeAttribute(\"tabindex\");\n\t\tgrind.style.color = \"revert\";\n\t\tmethod.textContent ...
e19e2f273865daca336086f1df3de284
Subcommand 0x03: Set input report mode
[ { "docid": "6b01ebaf28569963f375a5792ae058d3", "score": "0.6721675", "text": "function setInputReportMode(hid, manageHandler, mode) {\n const outputReportID = 0x01;\n const subcommand = mode === 'standard-full-mode'\n ? [0x03, 0x30]\n : [0x03, 0x3f];\n hid.write([outputReportID, 0...
[ { "docid": "c3cf85fe08e91557edc864751fa0e833", "score": "0.49952546", "text": "addInput(command) {\n const { loop, delay } = this.conf;\n\n if (loop) {\n const num = isNumber(loop) ? isNumber(loop) : -1;\n command.addInput(this.getPath()).inputOption('-stream_loop', `${num}`);\n } els...
3e708322529be4c317c56dd8f7e40464
========== All Request List End Here======== /========== Detail Start Here========
[ { "docid": "e9f34af2534d68f3453d565d4857a346", "score": "0.0", "text": "viewDetail(request_id) {\n console.log(\"id--\", request_id);\n this.service.getRequestDetail(request_id).subscribe(res => {\n if (res['status'] == 1) {\n this.view_obj = res['data'][0];\n ...
[ { "docid": "124f67107e4a0997106a663b87e5d1ff", "score": "0.6405833", "text": "function RequestList(query){\n console.info(query)\n return $http({\n url: baseUrlRe + '/listpro',\n headers:{Authorization: $cookies.get('token'), user: storage.get('usernam...
ac2f05b27bd80e75328ba39b513d9b44
helper method, returns true if a given case node is supported, false otherwise
[ { "docid": "5aea7c430e79152fa011d612470f258f", "score": "0.73559105", "text": "function isSupported(caseNode) {\n\n var ns = caseNode.attributes[\"required-namespace\"];\n if(!ns) {\n // the namespace was not specified, that should\n // never happen, we don't support ...
[ { "docid": "74b0f65b8982e72ba1b53ad3c1a0088c", "score": "0.5767195", "text": "function isSwitchCaseEnder(stmt) {\n\t return n.BreakStatement.check(stmt)\n\t || n.ContinueStatement.check(stmt)\n\t || n.ReturnStatement.check(stmt)\n\t || n.ThrowStatement.check(stmt);\n\t}", "title": ""...
30d168f3739f0144de8cd8709a804c86
para uniformizar las medidas utilizadas en las condiciones de choque
[ { "docid": "388b398e1f3f4632ad7bd9db002ee692", "score": "0.0", "text": "setBorders(object) {\n let upperLimit, lowerLimit, leftLimit, rightLimit;\n\n // if( object instanceof Shots || object instanceof EnemyShots){\n if (object instanceof SuperShots) {\n upperLimit = object.pos.y - object....
[ { "docid": "e7f0b2f79b491713973439017eb3d876", "score": "0.61242914", "text": "function generarMeses() {\n // Generar listado de meses (1-48) \n let result = []; \n for (let mes = 1; mes < 49; mes++) {\n result.push(\n <option value={mes} key={mes}>{mes}</option>\n ...
7bc6c42bb68579d40ee15024d6e1702c
Implements the parsing rules in the Directives section. Directives[Const] : Directive[?Const]+
[ { "docid": "98730907925b96a095b0d2a3746fb207", "score": "0.725667", "text": "function parseDirectives(lexer$$1, isConst) {\n var directives = [];\n while (peek(lexer$$1, lexer.TokenKind.AT)) {\n directives.push(parseDirective(lexer$$1, isConst));\n }\n return directives;\n}", "title": "" } ...
[ { "docid": "e04166f3564bce30349543a27b853f23", "score": "0.72365206", "text": "function parseDirectives(lexer, isConst) {\n\t var directives = [];\n\t while (peek(lexer, _lexer.TokenKind.AT)) {\n\t directives.push(parseDirective(lexer, isConst));\n\t }\n\t return directives;\n\t}", "title": "...
42b7f9735715aea2264e6522a48b5298
=== enumeration test forin plain forin object forin plain myEnumerable forin object myEnumerable Object.keys plain Object.keys object Object.keys plain Object.keys object Object.getOwnPropertyNames plain 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 length byteLength byteOffset BYTES_PER_ELEMENT Object.getOwnPropertyNames obje...
[ { "docid": "abdea70389e8a4ce7ce1e98b9e056752", "score": "0.77191347", "text": "function enumerationTest() {\n var pb = createPlain();\n var ab = createArrayBuffer();\n var k;\n\n // No enumerable properties by default.\n\n print('for-in plain');\n for (k in pb) {\n print(k);\n ...
[ { "docid": "8acec1e48c41c381dc9bda0b61c164be", "score": "0.66904056", "text": "function testIterator() {\n called++;\n assertEquals(obj, this);\n return arr[Symbol.iterator]();\n }", "title": "" }, { "docid": "ffda9a84eb5795f2ac145017a8236972", "score": "0.66797835", "text"...
8636b0c67b03318858165b41fbb8b7f5
a function that takes in the unicode code point of a character, and returns the emoji at the corresponding emojiArr index if it's within bounds (az). If not within bounds, it returns 1.
[ { "docid": "9e6d68dc1382e585e1ea296bc8e749b5", "score": "0.62264556", "text": "function textToEmoji(currentCode) {\n //a-z\n if ((currentCode - 97) >= 0 && (currentCode - 97) <= 26) {\n return emojiArr[currentCode - 97];\n } else {\n return -1;\n }\n}", "title": "" } ]
[ { "docid": "b1f99242ba87cd470192aa73e67b3657", "score": "0.6214119", "text": "function indexOfSelectedEmoji(coords) {\n\n for (var i = 0; i < drawEvents.length; i++) {\n\n var evt = drawEvents[i];\n\n if (typeof evt.text === 'undefined') {\n continue;\n }\n\n // Presume it's centred ar...
bc0f29ddf66f799ce224017b3f73db57
Fonction mimant le fadeOut de jQuery
[ { "docid": "b855758441f35652d213fd91455ea7de", "score": "0.6804329", "text": "function fadeOut(el) {\n var opacity = 1,\n timer = setInterval(function() {\n opacity -= 50 / 400;\n\n if( opacity <= 0 ) {\n clearInterval(timer);\n opacity = 0;\n el.style.display = \"n...
[ { "docid": "9459a90da50fdf7b0112d0b437a0d6ad", "score": "0.8046436", "text": "function fuera() {\r\n $('.caja').fadeOut(1500);\r\n}", "title": "" }, { "docid": "46eadb3e97ae02bac2c69ed3f2de688f", "score": "0.796147", "text": "function fadeOut() {\n $(\"#fade\").fadeOut(); \n...
d09c1b1595bb228a0357e32d7f92bf03
a function to capitalise the first letter of every word in a sentence
[ { "docid": "6037555cf9499d9cf36e42a161231c8e", "score": "0.0", "text": "function JadenCase (str) {\n strArray = str.split(\" \");\n var newStr = \"\";\n for(var i = 0;i<strArray.length;i++){\n var FirstLetter = strArray[i].charAt(0);\n var UCFirstLetter = FirstLetter.toUpperCase()...
[ { "docid": "d213b95d6ff7d9d795fa6479e9eeebdc", "score": "0.83076245", "text": "function capitalizeAll(sentence){\n var wordArray = sentence.split(' ')\n wordArray.forEach( (val, ind) => {\n wordArray[ind] = val.charAt(0).toUpperCase() + val.substring(1)\n }) \n\n return wordArray.join...
7274eda15a6c0e454f4e4be45f74fb7f
Used to schedule change detection on the whole application. Unlike `tick`, `scheduleTick` coalesces multiple calls into one change detection run. It is usually called indirectly by calling `markDirty` when the view needs to be rerendered. Typically `scheduleTick` uses `requestAnimationFrame` to coalesce multiple `sched...
[ { "docid": "67ce28157b147e83a8b9d0e24ded127d", "score": "0.57327443", "text": "function scheduleTick(rootContext, flags) {\n var nothingScheduled = rootContext.flags === 0 /* Empty */;\n rootContext.flags |= flags;\n if (nothingScheduled && rootContext.clean == _CLEAN_PROMISE) {\n var re...
[ { "docid": "5d0a6a8efce6f80b49acf98f2fed0505", "score": "0.6753339", "text": "schedule() {\n const now = this.context.getOutputTimestamp().contextTime\n\n // This is how far ahead things are currently scheduled\n const ahead = this.position - this.currentPosition\n\n // Number of ms needed t...
ef76a47417905e80503bd41ccfa335d6
Called when the extension is deactivated (maybe multiple times)
[ { "docid": "f8d54a32065a066c3934d5923f1c1ea5", "score": "0.0", "text": "function disable() {\n statusArea_entry.destroy();\n timer.stop();\n}", "title": "" } ]
[ { "docid": "2ef16cb1c2c5d34765f6703da6bfa6f5", "score": "0.82104814", "text": "function deactivate() {\n console.log(\"Extension Deactivated\");\n}", "title": "" }, { "docid": "4a3c143c21cc55de0f914528e7a97335", "score": "0.77663386", "text": "function deactivate() {\r\n export...
3d352781f51fc8982f331541ff81b30a
Registers a loaded module. Should only be called from generated NgModuleFactory code.
[ { "docid": "15da34f4673f47759d8c3e15a121ba83", "score": "0.561538", "text": "function registerModuleFactory(id, factory) {\n var existing = moduleFactories.get(id);\n if (existing) {\n throw new Error(\"Duplicate module registered for \" + id + \" - \" + existing.moduleType.name + \" vs \" ...
[ { "docid": "cad135f6f40c44dc6ef47009bb791539", "score": "0.64505196", "text": "register(name, moduleClass, params = {}) {\n if (!params.hasOwnProperty('name')) {\n params.name = name\n }\n const module = new moduleClass(params)\n this._registry.set('modules', name, module)\n }", "t...
b6ab60c8e363cfedd250cf9e0298bdf6
Standard/simple iteration through an event's collected dispatches.
[ { "docid": "1dacf68fe770830006edacaf46f94ae5", "score": "0.0", "text": "function executeDispatchesInOrder(event, executeDispatch) {\n forEachEventDispatch(event, executeDispatch);\n event._dispatchListeners = null;\n event._dispatchIDs = null;\n}", "title": "" } ]
[ { "docid": "20e982752013c6da4a6c777135227be8", "score": "0.6318283", "text": "function forEachEventDispatch(event,cb){var dispatchListeners=event._dispatchListeners;var dispatchIDs=event._dispatchIDs;if(true){validateEventDispatches(event);}if(Array.isArray(dispatchListeners)){for(var i=0;i < dispatchLi...
23e2d9f5b8848d58a99dfe961b2e41ec
! my solve clunky and brute forcey, with slice i think the method is O(n^2) but at least i didn't go deeper!!
[ { "docid": "d602bb64cf3cff5db43f3dfc66b6eaeb", "score": "0.0", "text": "function needler(haystack, needle) {\n if (needle.length === 0) return 0;\n if (needle.length > haystack.length) return -1;\n\n let savedIndex = -1;\n let tempString = '';\n let window = needle.length;\n\n // first loop to gra...
[ { "docid": "cefa2851f778d539bcb759fd566fad87", "score": "0.65172046", "text": "function part2(input) {\n let data = input.split('').map(el => parseInt(el));\n const max = lodash.max(data);\n data = lodash.concat(data, lodash.range(max+1, 1000000+1));\n const sortedAllData = [...data].sort((a...
5c39e24c3e0babdc2500ca2d71d46647
Crossplatform codegen helper for generating vmodel value assignment code.
[ { "docid": "22bc3f2368551cfcdbdc3911c83d59ef", "score": "0.6200408", "text": "function genAssignmentCode (\n value,\n assignment\n) {\n var modelRs = parseModel(value);\n if (modelRs.idx === null) {\n return (value + \"=\" + assignment)\n } else {\n return \"var $$exp = \" + (modelRs.exp) + \...
[ { "docid": "a03f5c289902a3b579fdccb1de5c6979", "score": "0.6501747", "text": "function genAssignmentCode(value, assignment) {\n const res = parseModel(value);\n if (res.key === null) {\n return `${value}=${assignment}`;\n }\n else {\n return `$set(${res.exp}, ${res.key}, ${assi...
c54ff8842d2e19670fa01e190f4fab5e
! moment.js locale configuration
[ { "docid": "6e75ee611baed6ba5387a3f56dcc1551", "score": "0.0", "text": "function t(e,t,n,r){var a={s:[\"mõne sekundi\",\"mõni sekund\",\"paar sekundit\"],ss:[e+\"sekundi\",e+\"sekundit\"],m:[\"ühe minuti\",\"üks minut\"],mm:[e+\" minuti\",e+\" minutit\"],h:[\"ühe tunni\",\"tund aega\",\"üks tund\"],hh:[...
[ { "docid": "178433e4b11f9ddcb88c4b6e193a2995", "score": "0.82470614", "text": "function Wr(e,t,a){return\"m\"===a?t?\"хвилина\":\"хвилину\":\"h\"===a?t?\"година\":\"годину\":e+\" \"+\n//! moment.js locale configuration\nfunction(e,t){var a=e.split(\"_\");return t%10==1&&t%100!=11?a[0]:t%10>=2&&t%10<=4&&...
3469afd188e050d02f801b8105f9000e
(Op I32, Op I32) > Op I32 Conversion
[ { "docid": "0f65dd17e34d79b1c3217328fbd7232c", "score": "0.0", "text": "wrap_i64 (a) { return new instr_pre1(0xa7, this, a) }", "title": "" } ]
[ { "docid": "0a6462e92b42970b0240fb79bd26262b", "score": "0.58276683", "text": "_op(a, o, b) {\n const rtl = this.settings.rtl;\n switch (o) {\n case '<':\n return rtl ? a > b : a < b;\n case '>':\n return rtl ? a < b : a > b;\n ...
2fe613651b92276f299f1e7032f71ba1
this method is called when your extension is deactivated
[ { "docid": "378fa3812b7b2ac968d88b3a86b5bf49", "score": "0.0", "text": "function deactivate() {\n}", "title": "" } ]
[ { "docid": "d41e1849162de582fe4153544eb6db92", "score": "0.84461457", "text": "function deactivate() {\n // TODO: add extension cleanup code, if needed\n}", "title": "" }, { "docid": "99f2233a100e2a8f1c295039a0b4372f", "score": "0.786724", "text": "function deactivate() {\n con...
453fa1cbcf9933d5ea5cbec2b81fb8ed
document.getElementById("home").addEventListener("click", ChangeContent('home')); document.getElementById("cameras").addEventListener("click", ChangeContent('cameras')); document.getElementById("detected").addEventListener("click", ChangeContent('detected')); document.getElementById("login").addEventListener("click", C...
[ { "docid": "552f914eb0c068daae36a2ed87081f95", "score": "0.6098641", "text": "function ChangeContent(pageName) {\n switch (pageName) {\n case \"home\":\n document.getElementById(\"content\").src = \"resources/home.html\";\n break;\n case \"cameras\":\n d...
[ { "docid": "b734369e2a8eb3e5106c29c0d127028e", "score": "0.7223605", "text": "function loadEvents() {\n document.getElementById('home').addEventListener('click', loadHomeContent);\n document.getElementById('menu').addEventListener('click', loadMenuContent);\n document.getElementById('contact').addEve...
f9e3fcaf908aea0d5de620400020d161
Handles the reply of the relationships transaction and is called once the transaction is complete.
[ { "docid": "c0f8ff85ba19f95cbbf4d1caf28b51a8", "score": "0.70194405", "text": "function processRelationships(reply) {\n\tTimers.stop(\"ENG:CareCompass.loadRelationships.ExecuteTransaction\");\n\tTimers.start(\"ENG:CareCompass.loadRelationships.ProcessTransaction\");\n\tvar jsonReply = parseReply(reply);...
[ { "docid": "f203dec5947fe8953513d7156b9f3fc4", "score": "0.686589", "text": "function processEstablishRelationship(reply) {\n\tTimers.stop(\"ENG:CareCompass.establishRelationships.ExecuteTransaction\");\n\tTimers.start(\"ENG:CareCompass.establishRelationships.ProcessTransaction\");\n\tvar jsonReply = pa...
3094f51d6cb1515f6e10adb9d3228a1d
print out the total cost of the items in the cart
[ { "docid": "beb957f1d7942aa5ded9504b844fa087", "score": "0.0", "text": "function totalPrice() {\n let totalSum = 0;\n\n if (NewItem.quantity > 1) {\n\n }\n}", "title": "" } ]
[ { "docid": "624969e7ed9903bc6e1c9b165c4b22f7", "score": "0.8124159", "text": "function totalCost() {\n let totalPrice = 0;\n for (let i in itemsInCart) {\n let price = itemsInCart[i].Price;\n let removeSymbols = parseFloat(price);\n let quantityPrice = removeSymbols * itemsInC...
23cdf8d675e3f4eefb3c5a850aaf84f6
This processes a JS string into a Cline array of numbers, 0terminated. For LLVMoriginating strings, see parser.js:parseLLVMString function
[ { "docid": "5f27649f1fefa8eefc532966c820694b", "score": "0.0", "text": "function intArrayFromString(stringy, dontAddNull) {\n var ret = [];\n var t;\n var i = 0;\n while (i < stringy.length) {\n var chr = stringy.charCodeAt(i);\n if (chr > 0xFF) {\n chr &= 0xFF;\n }\n ret.push(chr);...
[ { "docid": "6ad0f154c95d5d32d5dae2462d431a9c", "score": "0.5853943", "text": "function intArrayFromString(stringy, dontAddNull, length /* optional */) {\n var ret = (new Runtime.UTF8Processor()).processJSString(stringy);\n if (length) {\n ret.length = length;\n }\n if (!dontAddNull) {\n...
91673deb0a2077eeeb87bcacb7781fb9
handle the messages read from the WebSocket
[ { "docid": "f357a48515f83fd090da9b03b67edec8", "score": "0.0", "text": "function handleMessage(message) {\n const chrome = this;\n // command response\n if (message.id) {\n const callback = chrome._callbacks[message.id];\n if (!callback) {\n return;\n }\n ...
[ { "docid": "ab728da601844a259a179fa4dfd75c53", "score": "0.84527373", "text": "_handleWebSocketMessages() {\n this._ws.on('message', data => {\n const { type, payload } = JSON.parse(data)\n\n switch (type) {\n case 'RELOADED':\n if (this._isConnected) {\n this._on...
17ab47ee40c54d531234e618aabb718d
runs a single function in the async queue
[ { "docid": "6d558ebc716a96dbd856447bb1549343", "score": "0.0", "text": "function runSingle(task, domain) {\n\t try {\n\t task();\n\t\n\t } catch (e) {\n\t if (isNodeJS) {\n\t // In node, uncaught exceptions are considered fatal errors.\n\t ...
[ { "docid": "97d4f953ca167209d78134898601561f", "score": "0.6996469", "text": "anticipate(fAsynchronousFunction){this.operationQueue.push(fAsynchronousFunction);this.checkQueue();}", "title": "" }, { "docid": "31520ae57d02b84d479861834ac9d7c9", "score": "0.6863436", "text": "function ...
4d534397fe6ca2a385f078900b069f18
[MSXLS] 2.5.198.27 ; [MSXLSB] 2.5.97.18
[ { "docid": "c1cbec0d37755ccbccff6f1020bf0c11", "score": "0.0", "text": "function parse_PtgArea(blob, length, opts) {\n\tvar type = (blob[blob.l++] & 0x60) >> 5;\n\tvar area = parse_RgceArea(blob, opts.biff >= 2 && opts.biff <= 5 ? 6 : 8, opts);\n\treturn [type, area];\n}", "title": "" } ]
[ { "docid": "18c9f3a8a45febf5393a356e3bc14173", "score": "0.5704791", "text": "function check_get_mver(blob) {\n\tif(blob[blob.l] == 0x50 && blob[blob.l + 1] == 0x4b) return [0, 0];\n\t// header signature 8\n\tblob.chk(HEADER_SIGNATURE, 'Header Signature: ');\n\n\t// clsid 16\n\tblob.chk(HEADER_CLSID, 'C...
8a981f91749bbf32c1c2d679bafbe92a
Changes direction of snake (Map represents fourth quadrant in a cartesian plane)
[ { "docid": "651ffd8f2577d380d8b909d9b430080a", "score": "0.0", "text": "function newDir(event) {\n\t\tif (!cycleActive && gameInterval) {\n\t\t\tcycleActive = true;\n\t\t\tswitch (event.keyCode) {\n\t\t\t\tcase leftArrow:\n\t\t\t\t\tif (lastDir !== rightArrow) { // conditionals prevent doubling back\n\t...
[ { "docid": "cc1e637c8d5736299f71775ac4d9a1a3", "score": "0.75843674", "text": "function changeDir(e) {\n if(e.key == \"ArrowLeft\"){\n snake.direction = \"left\";\n }\n else if(e.key == \"ArrowRight\"){\n snake.direction = \"right\";\n }\n else if...
07e3b92f7d2272339f0d353e337d310f
Draw a 'target bar'. name string to label the graph with unknown is this value unknown? value numeric value units units for value targets array of objects with "label" and "value" keys, to display on the graph
[ { "docid": "166dc45ad1261c3fc9339144cb34d5dc", "score": "0.7413192", "text": "function targetbarSVG({ width, name, unknown, value, units, targets }) {\n const height = 40\n\n // Always 25% larger than max target or value\n const targetValues = targets.map(t => t.value)\n const maxval = Math....
[ { "docid": "5720c3779bcaaa92e1d980c0cb3d62a1", "score": "0.64408284", "text": "createValueLabels(data) {\n\n if (data == null) return;\n\n // The labels\n let labels = [];\n\n // For each point, create a bar\n for (var i = 0; i < data.length; i++) {\n\n if (data[i].y == null) continu...
6dee1d5f302cd1cff7415d6cb22fc41d
Cat Show Show only the selected cat
[ { "docid": "0baa6583f731de8cc18a5c094bfa837b", "score": "0.75817597", "text": "function catShow(catChoice){\n catSelected = catChoice;\n\n $('div .cat-unit').each(function(){\n if($(this).attr('id') == catSelected.catID){\n $(this).show();\n }else{\n $(this).hide();\n }\n });\n}", ...
[ { "docid": "47a82ef0b6a5a7630eb961fbffc18c91", "score": "0.7401451", "text": "function selectCat(cat) {\n self.selected = angular.isNumber(cat) ? $scope.cats[cat] : cat;\n self.toggleList();\n }", "title": "" }, { "docid": "a94e4bde8417634a61c74e5898cc900b", "score": "0.6898...
1b8af00b278595130b119631fc13a29c
surfaceAreaCylinder(3,7); 131.94689145077132 Perimeter formulas
[ { "docid": "7edbd0eacdb376845ade7af24368a25b", "score": "0.0", "text": "function perimeterSquare(side){\n let answer = 4*side\n return answer;\n}", "title": "" } ]
[ { "docid": "99eabcc621ca75c5b92aea274164beff", "score": "0.78997546", "text": "function rightCircleCylinderSurfaceArea(r, h){\n\treturn ((2 * Math.PI) * (r * h)) + ((2 * Math.PI) * Math.pow(r, 2)); \n}", "title": "" }, { "docid": "d2399975f375761f10bb2eab54908360", "score": "0.6805864", ...
bb87166d4664cb9ca1222df32acb2cfe
make sure everything is okay after delete check if entityManager contains all entities in ids except the ones at indices idxs
[ { "docid": "7887aa8af632fe2c416abaf779a72db2", "score": "0.62716264", "text": "function containsEverythingExcept(ids, idxs) {\n /* jshint shadow: true */\n /* ^ allow for (var i =) and another (for var i =) */\n \n for (var i = 0; i < idxs.length; i++) {\n expect(e...
[ { "docid": "c8d662b7604fd86b437cfb46650aaa14", "score": "0.65115356", "text": "deleteAllEntities() {\n // Consider switch to this[entityIds].forEach(id => this.deleteEntity());\n this[entityIds] = []\n this[componentRegistry].clear()\n }", "title": "" }, { "docid": "3...
54a48a31c1243bc6f0ae0eb03f7398da
For the private fuctions below.
[ { "docid": "045b97cea47e8b8d1372bdbc6aa76a83", "score": "0.0", "text": "function findValidLink(links) {\r\n if (typeof that.isValidLink == \"undefined\") { return links.iterateNext(); }\r\n while (link = links.iterateNext()) {\r\n if (that.isValidLink(link)) { return...
[ { "docid": "4f1b399154edaf560218b25a2834fdc3", "score": "0.71358085", "text": "function __b_aPxD_aAgzT_aoP7hbI6qzoA(){}", "title": "" }, { "docid": "a91589e45fdcfec6caa9f5350e11949b", "score": "0.63920593", "text": "function internalPrivateThing() {}", "title": "" }, { "d...
88a7c2fd0f617433ae51bbe91bc9e05d
Sets a value in memory in a dynamic way at runtime. Uses the type data. This is the same as makeSetValue, except that makeSetValue is done at compiletime and generates the needed code then, whereas this function picks the right code at runtime. Note that setValue and getValue only do aligned writes and reads! Note that...
[ { "docid": "0f73a1dd9d2c2a9af7b342f4697a7d8a", "score": "0.687866", "text": "function setValue(ptr, value, type, noSafe) {\n type = type || 'i8';\n if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit\n switch(type) {\n case 'i1': HEAP8[(ptr)]=value; break;\n case ...
[ { "docid": "51ad9887ca1a985cdfbd36c871f25508", "score": "0.6991242", "text": "function setValue(ptr, value, type, noSafe) {\n type = type || 'i8';\n if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit\n switch(type) {\n case 'i1': HEAP8[(ptr)]=value; break;\n case...
1eef3983bd2bd55d5a8a5267f5459b78
This method is just like `format` except that the `justifyWidth` is inferred from the `stave`.
[ { "docid": "2fb8b106f0742bd9c81f01ba76f5791a", "score": "0.63912976", "text": "formatToStave(voices, stave, options) {\n options = {\n padding: 10,\n ...options\n };\n\n const justifyWidth = stave.getNoteEndX() - stave.getNoteStartX() - options.padding;\n L('Formatting voices to wi...
[ { "docid": "6a5d270e812ff408035e6dd7429b4625", "score": "0.63362086", "text": "formatWithPadding(n, width, z){\n z = z || '0';\n n = n + '';\n return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;\n }", "title": "" }, { "docid": "cc9b5821c8782c31...
675122c6be970ed5b2a770b021f5b2c4
checks if a bolt reaches the circuit
[ { "docid": "51f2593dd9072ea7983ad0bf791b7499", "score": "0.0", "text": "function circuitCollisionHandler(circuit, bolt){\n\t\t\tthis.game.time.events.remove(this.timer);\n\t\t\tgame.state.start('menu');\n\t\t}", "title": "" } ]
[ { "docid": "aec60b097aef1f219b738b55f105a51b", "score": "0.59870034", "text": "pass(bird) {\n if (bird.x > this.x && !this.passed) {\n this.passed = true;\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "ab4d392d6b7d38b7ff6ed28a2629adf9", "score":...
c95f2a5a31432c0012b84576e304f3b3
show retrieve agency information with table
[ { "docid": "66cbab5e3f69dc5d1c1f1c55a712fcdf", "score": "0.5789893", "text": "function retrieveAgency() {\n if (!lessOneNotNullInRetrievePage())\n return;\n var object = $('#agency-property')[0];\n var retrieveAgencyForm = new FormData(object);\n $.ajax({\n type: 'post',\n ...
[ { "docid": "127500039ca712be8b009e63d4a1c401", "score": "0.6377421", "text": "function viewAgency(agency_id) {\n console.log('view details clicked ', agency_id);\n $http.get('/agencies/' + agency_id).then(function(response) {\n agency.selected = response.data;\n console.log('Agency recor...
ef78b8eb4295bdcea7a669067bd95235
handle when there is database error. Try to reconnect
[ { "docid": "a5a79d9d3974ee8aa71489d79a292145", "score": "0.7263679", "text": "function handleDbError(mongoError) {\n // If there is error in database connection, try re-connect\n console.error(`Mongoose connection has occured ${mongoError} error`);\n console.log('Trying to re-connect to mongo, after ...
[ { "docid": "a2232a92039d212ec6a8226a1e3426cc", "score": "0.6994297", "text": "handleConnectionError() {\n this.heartbeat.stop();\n this.reconnector.triggerReconnection();\n }", "title": "" }, { "docid": "a2232a92039d212ec6a8226a1e3426cc", "score": "0.6994297"...
71286dd18b2bf4b3549ba9e430012424
unlike navButtons icons, action icons in rows seem to be hardcoded you can change them like this in here if you want
[ { "docid": "fdbf5291bc6bb86496b4135330d10755", "score": "0.6689606", "text": "function updateActionIcons(table) {\n\n /*\tvar replacement =\n {\n 'ui-icon-pencil' : 'icon-pencil blue',\n 'ui-icon-trash' : 'icon-trash red',\n 'ui-icon-disk' : 'icon-ok green',\n 'ui-ico...
[ { "docid": "f56ca9a5f17764c0fa72d45f97e3e74b", "score": "0.6911716", "text": "function updateActionIcons(table) {\n\n }", "title": "" }, { "docid": "23db6d6a1f607527e2be98128316f158", "score": "0.6840789", "text": "function updateActionIcons(table) {\r\n\r\n\t}", "title": ...
b57f3a8ad58adf2f9f6c7d9835ff8bcc
All handle___Press() functions are tested and working Allergens are stored/removed in this.state.Allergens upon user selection
[ { "docid": "161455a079331c6530249d0405ae39f5", "score": "0.69134665", "text": "handleCornPress() {\n this.setState({cornChecked: (this.state.cornChecked == true) ? false : true});\n this.state.Allergens.includes('Corn') ? this.remove(this.state.Allergens, 'Corn') : this.state.Allergens.pus...
[ { "docid": "d7b069b58ff02d2fba1dc636077eb1d0", "score": "0.6319207", "text": "async onpressDosing() {\n console.log('onpressDosing()');\n store.setState({\n desired_info: {\n ...store.getState().desired_info,\n label: 'Dosing',\n linkkey: 'dosing'\n }\n });\n t...
4683e76c7c1a6174fcffc385c5334072
remove given trello from the list
[ { "docid": "4818ed808a092c3415fe6e79731754ea", "score": "0.7563", "text": "removetrello (trello) {\n this.trellos.splice(this.trellos.indexOf(trello), 1);\n }", "title": "" } ]
[ { "docid": "801dd93bcca8743acf3291cb1bf23693", "score": "0.65744936", "text": "function removeFromPlaylist(p, s) {\n var pref = cloudPlaylists.doc(p);\n console.log(\"REMOVING FROM PLAYLIST:\", p, s.id);\n pref.update({\n tracks: firebase.firestore.FieldValue.arrayRemove(...
fdf16b50fd5ea74c181d4ce9a1ca3476
FUNCION ENCARGADA DE CREAR NUEVO RESULTAD DE PRODUCCION
[ { "docid": "64897e5954d7395e6059dd96c4569551", "score": "0.53387797", "text": "function nuevoResultadoProduccion(){\n var finca = $(\"#finca\").val();\n var unidad_agricola = $(\"#unidad_agricola\").val();\n var fechaCosecha = $(\"#fechaCosecha\").val();\n var fechaInicio = $(\"#fechaInicio\").val()...
[ { "docid": "1a6245a0de5678b7cd642b1fc8f9f88e", "score": "0.6941942", "text": "static createResult () {\n return new Result()\n }", "title": "" }, { "docid": "3c3ca3007e215c7268afc12e0ab31c43", "score": "0.6533808", "text": "function createResultObject(title) {\n var re...
946c2be70b00a075b85117d36733fee6
Load configuration from congin.json file
[ { "docid": "96d40f4b2c10f7f96895d060df3fdc83", "score": "0.6347866", "text": "function loadConfig() {\n\t\t\t\t\t\t\t\n\tnconf.file({\n\t\tfile:configFile\n\t});\n\tnconf.defaults({\n\t\tbase_dir: __dirname,\n\t\tviews_dir: path.join(__dirname, 'build'),\n\t\tversion: pkg.version\n\t});\n}", "title"...
[ { "docid": "e85332fb3c1f1530e59b81c866c9dba2", "score": "0.7439537", "text": "function loadConfig() {\n\treturn JSON.parse(fs.readFileSync('config.json'));\n}", "title": "" }, { "docid": "e74478edab0aff6f0be397c3cb170b4c", "score": "0.7429934", "text": "function loadConfig() {\n r...
a181f20d4069236d97a36788c3651a63
Find the max in array (context : personalitiesWeight)
[ { "docid": "1f6d1f9e5a96c85d61c641cb248df896", "score": "0.7170311", "text": "function wpvq_getMax(myArray, randomIfEgal)\n\t\t{\n\t\t\tvar maxPersonalityId = 0, \n\t\t\t\tmaxPersonalityWeight = 0,\n\t\t\t\tforceReplacement = false;\n\n\t\t\t$.each(myArray, function(index, elem) \n\t\t\t{\n\t\t\t\tif (e...
[ { "docid": "ae9c279d8fa246a787fc647ce1d9bc75", "score": "0.72133017", "text": "function findMaxSalary(data) {\n // data.data[0] is the entry for (var i = 0; i < array.length; i++) {\n array[i]\n }", "title": "" }, { "docid": "06b5f2f798ca65afdfc944ca0582face", "score": "0.69555473",...
227941d2dcf866664180b5e0045620a1
Move an element in an array from one index to another.
[ { "docid": "763a61595bbf03e413ac0354c9b2aea4", "score": "0.7522845", "text": "function arrayMove(arr, old_index, new_index) {\n while (old_index < 0) {\n old_index += arr.length;\n }\n while (new_index < 0) {\n new_index += arr.length;\n }\n if (new_index >= ar...
[ { "docid": "8a1dd8986544513cff0739da713e3767", "score": "0.79713464", "text": "function arrayMove(arr, from, to) {\n var element = arr.splice(from, 1);\n arr.splice(to, 0, element[0]);\n }", "title": "" }, { "docid": "a416361b2405c1b8f96f333023d43dba", "score": "0.7861958", "t...
e43376dbe2f302eeefef67a5cbc91f8e
Opens the document at the given urls
[ { "docid": "cdfd4d7037d64a6dee452548d7ac6d7e", "score": "0.0", "text": "function aa(t,e,o,a){null==a&&(\"function\"==typeof e?(a=e,e=null):\"function\"==typeof o&&(a=o,o=null));var n=0,i=!1,l={},r=Eo(e,ya.annotations),s=Eo(o||t,ya.forms);Ma.annotationsurl=r?r.url:Ma.annotationsurl,Ma.formsurl=s?s.url:Ma...
[ { "docid": "489d7a6d1a95eb3daf740c359c55c8e8", "score": "0.69052976", "text": "function openDocument(location){\nvar fileRef = new File(location);\nvar docRef = app.open(fileRef);\n}", "title": "" }, { "docid": "7eca4db282ccf16a70764838f0019394", "score": "0.6432828", "text": "functi...
5576eaeaa07ce4afc90d3e1fb9796d98
This is try catch function for testing the Exceptions in the Contract tests
[ { "docid": "813d087fa200a29f65c9fcdcd8f831e5", "score": "0.57376546", "text": "async function tryCatch(promise, message) {\n // const PREFIX = \"VM Exception while processing transaction: \";\n try {\n await promise;\n throw null;\n }\n catch (error) {\n assert(error, \"...
[ { "docid": "106556d16aee4c281f5a5bb7ee34cf41", "score": "0.6506542", "text": "function test_catch_region(x,y,z) {\n try { } catch (e) { }\n}", "title": "" }, { "docid": "8d594b783a8a1bd661b637f7c6f5488b", "score": "0.6261769", "text": "function ExpectedError() {}", "title": "" ...
27be6a7dee6fea1a175d1dd29169b91e
find if a job exists in jobs array ( for duplication validations) jobsArray array of jobs searchedJobName job name that we search
[ { "docid": "a0f6e02dbcf4eee16cfdf2ead97ed445", "score": "0.8065971", "text": "function checkJobExistInDB(jobsArray,searchedJobName){\n jobsArray.forEach(function(job){\n if(job.name == searchedJobName){\n return false;\n }\n });\n return true;\n ...
[ { "docid": "cc7ff130fa031e86243f045202c0810c", "score": "0.692029", "text": "doesJobExist(jobID) {\n return jobID in this._jobs;\n }", "title": "" }, { "docid": "eab7e45caaccb643275075f6aedeb9b9", "score": "0.6186163", "text": "function getJobRoleByJobType(jobs){\n\n var jobRo...
0dcb938add3709cd000ac1ffe6f60649
Get complete current html. Including doctype and original header.
[ { "docid": "5a3c48e8d88a4570479a9440fb9d7e3b", "score": "0.51009077", "text": "static getEditorHtmlContent(editor) {\n if (!editor) {\n throw new Error('Editor is required.');\n }\n\n const contentDocument = ContentService.getCanvasAsHtmlDocument(editor);\n\n if (!contentDocument || !co...
[ { "docid": "faaef94a7c84e717c56b926fb5eb1873", "score": "0.6704808", "text": "static getOriginalContentHtml() {\n // Parse HTML theme/template\n const parser = new DOMParser();\n const textareaHtml = mQuery('textarea.builder-html');\n const doc = parser.parseFromString(textareaHtml.val(), 't...
d739b3dc2add48de2fedd4c767fe8bc9
function to be called whenever the window is scrolled or resized
[ { "docid": "53560b1062756a83ae9a8222613723ba", "score": "0.0", "text": "function move(pos, height) {\n $this.css({'backgroundPosition': newPos(xpos, height, pos, adjuster, inertia)});\n }", "title": "" } ]
[ { "docid": "1d1eba9efac33a99027502a40cf3889e", "score": "0.7673486", "text": "function qodefOnWindowScroll() {\n\n }", "title": "" }, { "docid": "4bfbfdfb546d3a1d070aa922697fc4aa", "score": "0.7586129", "text": "function windowResizeHandler() {\n // Check for the ex...
c4a586f571405d7f0d08ef2361b136b8
Import config from file
[ { "docid": "9987949e716cf1b098a17590651be722", "score": "0.6451158", "text": "function importConfig() {\n return inquirer.prompt([{ type: \"input\", name: \"path\", message: \"Please enter the path of your config: \" }]).then((answers) => {\n const configObject = JSON.parse(fs.readFileSync(ans...
[ { "docid": "18512bf1a001595548a06a8720deffa7", "score": "0.6543635", "text": "__loadConfigs() {\n\t\tvar configs = this.readFromFile(this.configFile, null);\n\n\t\tif (configs == null) {\n\t\t\tthrow new Error(\"Error in loading configuratons.\");\n\t\t}\n\n\t\tthis.configs = JSON.parse(configs);\n\t}",...
398e6d031a94298c4117253b02b1b88b
Handles sitewide signup logs in user and sets currentUser in persisted Redux Store
[ { "docid": "65a6087aa5105ad5881794f7da8e6a55", "score": "0.0", "text": "async function signup(signupData) {\n try {\n let token = await backendAPI.signup(signupData);\n addUserToReduxStore(token)\n return { success: true };\n } catch (errors) {\n console.error(\"sig...
[ { "docid": "3532577ae4e18442e076afc05f464759", "score": "0.7258109", "text": "function handleSignUpOrLogin(){\n setAdmin(adminService.getUser()) // getting the user from localstorage decoding the jwt\n }", "title": "" }, { "docid": "afeaf6bc279dd8f17e9b6d0d143d58c7", "score": "0.7039...
38cd877780c823d3f7cadae6d0b1892c
Returns a promise that fulfills iff this user id is valid.
[ { "docid": "da5873dfa1088666bf10ec3c408a5c45", "score": "0.49034187", "text": "function validateAuthData(authData) {\n return request('member/self', authData.access_token).then(data => {\n if (data && data.id == authData.id) {\n return;\n }\n throw new Parse.Error(Parse.Error.OBJECT_NOT_F...
[ { "docid": "25f458378d033d0d9c8f999394872be3", "score": "0.6276901", "text": "validateUser(ctx) {\n return new Promise(function(resolve) {\n\n firebase.auth()\n .signInWithEmailAndPassword(ctx.params.username, ctx.params.password)\n .then((...
16d32b18f7138a69986022ab56578514
function to store the state of the game, move the postions of the player
[ { "docid": "57d2d02dd877f9266ecf436e5fa0fcdb", "score": "0.66401803", "text": "function move(playerNo) {\n let dice;\n toggleTurn(playerNo);\n dice = rollDice();\n\tdocument.querySelector(\".player\"+playerNo).innerHTML = dice;\n players[playerNo].position += dice;\n postionCheck(playerNo...
[ { "docid": "b8a22a9d441629bb58cf8804633076e6", "score": "0.66398376", "text": "SavePosition() {\n saveGame({ currentMap: this.scene.key, playerX: this.player.x, playerY: this.player.y, readyToEnter: this.readyToEnter });\n }", "title": "" }, { "docid": "d15326584d288c7869fae957ce35...
f59845fa9a712d15b71e489482c4d8e0
Function that generate tickets from the amount given
[ { "docid": "9bda443ffd7c75f8b2998c34c276ddae", "score": "0.6142404", "text": "generateTickets() {\n var wrappers = [];\n var startPoint = parseInt(this.state.inputStartNo) || 1;\n var endPoint = startPoint + this.state.quantity - 1;\n var counter = startPoint;\n\n cons...
[ { "docid": "d84aad68517c04b96c44ab28b0d69bf7", "score": "0.66024417", "text": "function createRandomTickets() {\n var ticket_array = [];\n //Randomize number of tickets (assuming a max of 50 tickets per event)\n var random_numberof_tickets = Math.floor(Math.random() * 50);\n for (var n = 0; ...
862b90487ebf78896ceb94f743035d62
deletes `key` from a clone of object and returns the new object
[ { "docid": "e88ead72e225c8449ee740ee53dd5836", "score": "0.7283593", "text": "function destructivelyDeleteFromObjectByKey(object, key) {\n delete object[key]\n return object\n}", "title": "" } ]
[ { "docid": "d6500ca3becced8b9627ac666d0139da", "score": "0.7405711", "text": "function removeKey(obj, key) {\n\n const outNewObj = { ...obj };\n delete outNewObj[key];\n return outNewObj;\n\n}", "title": "" }, { "docid": "0ddbe96c1bee3f779a2c282706b7c70b", "score": "0.73843974",...
0b48df00149f51fc369e7e1e413fad5d
Emit event on text selection
[ { "docid": "48eccecd8c12b411cca5b620728037c1", "score": "0.65333486", "text": "triggerSelectedEvent(selection) {\n var range, cfirange;\n\n if (selection && selection.rangeCount > 0) {\n range = selection.getRangeAt(0);\n\n if (!range.collapsed) {\n // cfirange = this.section.cfiF...
[ { "docid": "d9dccd0a5c944931bf36cd142e96574a", "score": "0.75745535", "text": "function selectionEventAction() {\r\n var selectedText = window.getSelection().toString().trim();\r\n\r\n if (selectedText) {\r\n var msg = new SpeechSynthesisUtterance(selectedText);\r\n window.speechSynt...
d4288a88e10a7a1e50ef5838c38abd85
helpers // extend objects
[ { "docid": "80e9c8041bdaf8843dc08bfa6435300c", "score": "0.5733281", "text": "function extend( a, b ) {\n for ( var prop in b ) {\n a[ prop ] = b[ prop ];\n }\n return a;\n }", "title": "" } ]
[ { "docid": "0707e2276203dfe049e92d77ca4d36f7", "score": "0.65491366", "text": "extend() {}", "title": "" }, { "docid": "2466272139f6d5184d75ba10549eb575", "score": "0.65439206", "text": "extend() { }", "title": "" }, { "docid": "d4d3e456f7021a90ea5a9f24b2defc33", "sco...
fb418066d0dc0691a7de7fbc3105e531
funzione che cerca in un array
[ { "docid": "200827e3e3482f47172e02ef9e74c1ad", "score": "0.0", "text": "function presenteInArray(array, indice) {\r\n var i = 0;\r\n var trovato = false;\r\n while (i < array.length && trovato == false) {\r\n if (array[i] == indice) {\r\n trovato = true;\r\n }\r\n i++;\r\n...
[ { "docid": "db1dffd9e733f014bcbd896c05b6bd3d", "score": "0.6451125", "text": "function SeaArray() {}", "title": "" }, { "docid": "db1dffd9e733f014bcbd896c05b6bd3d", "score": "0.6451125", "text": "function SeaArray() {}", "title": "" }, { "docid": "281c3ccbf59fd3f611ac4a2c...
b21bd4c16ef8e4e59bad8b62194f949f
property to set Raduis
[ { "docid": "cbe8892b9fbe2f9a88ae8d720475b834", "score": "0.79256773", "text": "set Raduis(raduis){\n this.raduis = raduis;\n }", "title": "" } ]
[ { "docid": "38fbfacb7e99394896cb70679c505fbe", "score": "0.698436", "text": "get Raduis(){\n return this.raduis;\n }", "title": "" }, { "docid": "eb9f2cf91b0d0922d72b7ab7b71b5b04", "score": "0.66769737", "text": "setRut(rut){this.rut=rut;}", "title": "" }, { "do...
036407ed0935aa148814b55973cb27b6
render the view of the App compoent and the state has binded in the view
[ { "docid": "892d15c64d6554bcff545ade9bb2c583", "score": "0.0", "text": "render() {\n return (\n <div id=\"chart\">Graph</div>\n )\n }", "title": "" } ]
[ { "docid": "a901e0e18ff1f5c32eea62909e1a2a79", "score": "0.72318715", "text": "function renderApp() {\n document.body.innerText = store.getState();\n}", "title": "" }, { "docid": "4b66b8e0e289e2af01817bfeba3c05b9", "score": "0.71636117", "text": "render(app) { }", "title": "" ...
8ed9755afd9e46a2e3eb2a4cba3e6a5b
============== PUBLIC METHODS ==============
[ { "docid": "dc7364a253361db83358096ea28ecd69", "score": "0.0", "text": "async connect() {\n await this.mongoClient.connect();\n await this.refreshCache();\n }", "title": "" } ]
[ { "docid": "acffe366305a123ddf65c9f97713c0bb", "score": "0.68909925", "text": "function ___PRIVATE___(){}", "title": "" }, { "docid": "59d3beeaa84f482085e491e2542c80f9", "score": "0.6375406", "text": "constructor() {\n\t\t//\n\t}", "title": "" }, { "docid": "450415ee6ba66...
fe80c10e1952ce215c52a0fec745d701
If these variables are changed we need to adjust the stepSize
[ { "docid": "7b58c56b664c9b9d62bd9e826cae55bf", "score": "0.0", "text": "set shrinkTime(t) {\n this._shrinkTime = t; // how many milliseconds we want to take to shrink the canvas\n }", "title": "" } ]
[ { "docid": "b6acc33d38da945f5568eb9d87d51b2e", "score": "0.7179594", "text": "function updateStep(){\n\n //sets the step value to equal the scalerange value\n step = Number(window.scalerange.value);\n}", "title": "" }, { "docid": "deb94b35a811eb760458aceda13523d6", "score": "0.67844003...
6554cfb56f6460d04efc89cd4678ccd6
Copies the mafskins.xml file from the application location ([appRoot]/ApplicationController/src/METAINF) to a deployment folder for inclusion in the native application.
[ { "docid": "f8841b8e0f7fda46a2dd9c8627406bd4", "score": "0.7183376", "text": "function _copyAdfmfSkinsXml() {\n\tvar copyTask = createCopyTask(self.getProject(), self.getOwningTarget());\n\n\tvar appControllerProjectName = self.getProject().getProperty(\n\t\t\t\"oepe.adfmf.assembly.appControllerFolder\"...
[ { "docid": "9f6e6250586d627311e7db1cd636b037", "score": "0.6027618", "text": "function _copyAdfmfConfigXml() {\n\tvar copyTask = createCopyTask(self.getProject(), self.getOwningTarget());\n\n\tvar dotAdfDir = self.getProject().getProperty(\n\t\t\t\"oepe.adfmf.assembly.dotadf.dir.path\");\n\tvar appAdfmf...
afe4e24499fb0c3982974a435b6ce35e
Logs a warning in dev mode when a component switches from controlled to uncontrolled, or vice versa A single prop should typically be used to determine whether or not a component is controlled or not.
[ { "docid": "915161cf6ba0c1455dec7732b34cb1cf", "score": "0.65272814", "text": "function useControlledSwitchWarning(controlledValue, controlledPropName, componentName) {\n if (false) { var nameCache, controlledRef; }\n}", "title": "" } ]
[ { "docid": "acb86ce8d43207d70118e41abcb4fb9a", "score": "0.70384586", "text": "function useControlledSwitchWarning(controlledValue, controlledPropName, componentName) {\n if (process.env.NODE_ENV !== \"production\") {\n var controlledRef = React.useRef(controlledValue != null);\n var nameCache = ...
eb52fb8738eeac3c175cbb7b04e59a7e
Main function to start the Autorefresh process
[ { "docid": "ca369b4a4dc341df153501babbf5a9bb", "score": "0.0", "text": "function preloadAJAXRL() {\n var ajaxRLCookie = (getCookie(\"ajaxload-\" + wgPageName) == \"on\") ? true : false;\n var appTo = ($('#WikiaPageHeader').length ) ? $('#WikiaPageHeader > h1') : $('.firstHeading');\n \n appTo.appe...
[ { "docid": "68ad63d7f0a665ee465cb99a666827a6", "score": "0.6909747", "text": "function start() {\n interval = setInterval(refresh, 20);\n }", "title": "" }, { "docid": "973ef3416440086b608714dfd2831523", "score": "0.6631957", "text": "startUpdater() {\n }", "title": "" }...
727a10a946d8e23f04d8aac9762db3ac
es la clase de todas las celdas Declaracion de funciones
[ { "docid": "73cc7e0c2d064758ea3a1b6fcaf26482", "score": "0.0", "text": "function ganaJugador(){\n\n}", "title": "" } ]
[ { "docid": "62a1192cad355ea810d8407179e99d96", "score": "0.6479644", "text": "function Fc(){}", "title": "" }, { "docid": "35dc35c3d0cc30416e297013b49409b1", "score": "0.64480954", "text": "initalizing() {}", "title": "" }, { "docid": "595b0ec0e12e03e3803735abc4d9c721", ...