Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
socket is available as this
function initSocksConnection(middleware) { // keep log of connected clients clients.push(this); // remove from clients on disconnect this.on('end', function() { var idx = clients.indexOf(this); if (idx != -1) { clients.splice(idx, 1); } }); this.on('error', function(e) { errorLog('%j', e); }); // do...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get socket() {\n return this._socket;\n }", "connect() { socket_connect(this) }", "function Socket(socket) {\r\n _super.call(this);\r\n this.socket = socket;\r\n this.eureca = {};\r\n this.request = socket.request;\r\n ...
[ "0.7888944", "0.75262755", "0.7388038", "0.7380531", "0.72529554", "0.7134761", "0.6906705", "0.6796926", "0.6724181", "0.66994345", "0.66990304", "0.66924894", "0.6679141", "0.6630959", "0.6621258", "0.66141367", "0.66063416", "0.66063416", "0.65987194", "0.65805364", "0.656...
0.0
-1
This processes the initial results of the query
function addResult(doc) { lookup[doc._id] = doc._rev; var id = doc._id; var rev = doc._rev; if(stripId) { delete doc._id; } if(stripRev) { delete doc._rev; } return addAction(doc, id, rev); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "resolveQuery() {\n\t\tthis.resultData = this.query.run(this.collection, this.dataProvider.data());\n\t\tthis.resultValid = true;\n\t}", "function refreshResults() {\n\tif (_dataSource) {\n\t\t_pager.page(0);\n\t\t_dataSource.fetch(function(){\n\t\t // if callback is needed, place it here\n\t\t});\n\t}\t\n}", ...
[ "0.6348141", "0.63459957", "0.62307125", "0.61587846", "0.6044511", "0.59972", "0.5967712", "0.59494257", "0.58939534", "0.5851763", "0.58481544", "0.57268727", "0.57256377", "0.5667347", "0.566448", "0.5644267", "0.56430215", "0.5623369", "0.5612425", "0.5609379", "0.5608685...
0.0
-1
Applies sort, skip, and limit to a list
function formatList(list) { if(sort) { list = sortList(list); } if(skip || limit) { if(limit) { list = list.slice(skip, skip + limit); } else { list = list.slice(skip); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "list({ skip = 0, limit = 50, ...query } = {}) {\n return this.find(query)\n .sort({ created: 1 })\n .skip((+skip) * (+limit))\n .limit(+limit)\n .exec();\n }", "function Sort() {}", "function selectSort(list) {\n function sort(index) {\n if (list.length === 0 || index === list.lengt...
[ "0.60975283", "0.5782144", "0.5765536", "0.57320607", "0.5730813", "0.5723918", "0.5701858", "0.56984335", "0.5660933", "0.56513757", "0.5607435", "0.5580601", "0.5572429", "0.5564417", "0.55214506", "0.5486287", "0.54474384", "0.5433182", "0.53722435", "0.53456676", "0.53456...
0.65571564
0
public noise = 'Catmeow10.mp3';
function AppComponent(jsonp) { this.jsonp = jsonp; this.title = 'Tour of Heroes'; this.catURL = 'http://i.imgur.com/RN4ixMa.jpg'; this.keyword = "kitten"; this.testvar = 0; this.kittenKeyWords = [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "makeNoise() {\n return `${this.sound} ${this.sound}!`;\n }", "meow(sound) {\n console.log(sound);\n }", "constructor() {\n this.countdownSound = new Audio('assets/audio/countdown.mp3');\n this.turnSound = new Audio('assets/audio/turn.mp3');\n this.pairSound = new Audi...
[ "0.7353198", "0.6901362", "0.6686832", "0.6646131", "0.650865", "0.6473284", "0.6425753", "0.6423842", "0.6418461", "0.6407256", "0.632008", "0.6319528", "0.6314902", "0.63070226", "0.63070226", "0.6298214", "0.6292727", "0.62861055", "0.62758595", "0.6250697", "0.6250526", ...
0.0
-1
measure T and update history log
function measureCurrentTee() { measure = "TrusTee measure at "+ Date.now() + " - T ="+ T +" "; history.push(measure); console.log(measure); return T; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function processLog()\n{\n var log_entry;\n var log_lines;\n var date;\n\tvar time;\n\tvar query_string;\n var entry_stats;\n \n logdata.shift();\t// ignore server infos\n\t\n for (var i = 0; i < logdata.length; i++) {\n \n // load string\n log_entry = \"# Time: \" + logda...
[ "0.61512494", "0.6098038", "0.5964106", "0.5931129", "0.57735765", "0.57226866", "0.5698926", "0.5604494", "0.559374", "0.5592417", "0.55771697", "0.55771697", "0.55771697", "0.55666584", "0.5541092", "0.5498132", "0.5433142", "0.54216355", "0.54216355", "0.54216355", "0.5417...
0.63727415
0
send Alert using SMS Text message through clickaTell SMS Gateway
function sendAlert() { console.log("Sending SMS Alert message"); var xhr = new XMLHttpRequest(); var alertMessage = "TrusTee Warn ! Temperature "+T+"°C reached on TTController number "+ID+". Please check it now !"; xhr.open("GET", "https://platform.clickatell.com/messages/http/send?apiKey=1g_OYHPZQp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function OnSMSAlert()\n{\n}", "function sendSms(e)\n{\n\tif(OS_IOS)\n \t{\t\n\t\t\tvar smsModule = require('com.midhun.sms');\n\t\t\tvar smsDialog = smsModule.createMessage({\n\t\t\t receivers: [e],\n\t\t\t messageBody: 'Hi Midhun',\n\t\t\t barColor: 'black'\n\t\t\t});\n\t\t\t\n\t\t\tif(smsDialog.isSupp...
[ "0.71427137", "0.6748629", "0.67332053", "0.66884243", "0.6684515", "0.6605457", "0.66042084", "0.6411334", "0.6345083", "0.63173187", "0.6267511", "0.6228081", "0.61790717", "0.61567646", "0.6138224", "0.61139023", "0.60921013", "0.6073462", "0.60623085", "0.6056016", "0.604...
0.7051645
1
check T the actual core method for T check and alert management
function checkTee() { Tee = measureCurrentTee(); console.log("Tee checked : "+Tee+ " at " + Date.now()); if (Tee > TMax) sendAlert(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_and_report() {\n \n }", "function check() {}", "systemCheck() {\n\n }", "function checkStatus() {\n\n }", "function check(){\r\n\t// tracking disabilitato\r\n\t//requires(\"/tracking.js\");\r\n\t\r\n\t// funzione legacy\r\n\t_check();\r\n}", "async function throwAllert() {\n ...
[ "0.6723703", "0.6259131", "0.6103574", "0.5835289", "0.5803727", "0.573698", "0.5692854", "0.56328875", "0.5586069", "0.55574036", "0.55462897", "0.5484632", "0.5439836", "0.5417074", "0.5386703", "0.5380537", "0.537872", "0.5374343", "0.53325176", "0.53293353", "0.53112966",...
0.60325485
3
Method taken from Expo documents
function cacheImages(images) { return images.map(image => { if (typeof image === 'string') { return Image.prefetch(image); } else { return Asset.fromModule(image).downloadAsync(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "__getRuntime() {\n return {\n ...require('./package.json'),\n \"config\": {\n \"react-native\": {\n // XXX: Try commenting out some of the dependencies!\n View,\n Text,\n Image,\n...
[ "0.5516557", "0.5440695", "0.5402345", "0.5391989", "0.5286542", "0.51954925", "0.5133713", "0.51161903", "0.5081471", "0.5036549", "0.5029341", "0.5002746", "0.4975833", "0.4975226", "0.49310353", "0.49183613", "0.4892085", "0.48897663", "0.4887559", "0.48679075", "0.4867728...
0.0
-1
deal log sub function
function setBikeMapWithRedis(logObjectId, bikeSN, bikeID) { if(bikeSN == undefined || bikeSN.length != 16){ console.error(logObjectId + ' invalid sn : ' + bikeSN + ' , invalid bikeID : ' + bikeID); return; } if(bikeID == undefined || bikeID.length < 8 ){ console.error(logObjectId + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "log(_args) {\n\n }", "function log() {\n //log here\n }", "function LogOperator(){}", "log() {}", "function Logarithm() {\r\n}", "function Log() {}", "function _____INTERNAL_log_functions_____(){}\t\t//{", "function logSomething(log) { log.info('something'); }", "function PrintLog(a)\n{\...
[ "0.6562806", "0.64389473", "0.64220685", "0.6276328", "0.6229", "0.6213251", "0.61413085", "0.6105931", "0.60670936", "0.5945518", "0.58918244", "0.58602697", "0.5850682", "0.58350426", "0.5819776", "0.581662", "0.57929283", "0.5786756", "0.5781924", "0.5774063", "0.5715427",...
0.0
-1
Redis Key end debug code
function monitorServiceError(milliSeconds) { var debugSwitch = parseInt(process.env['debugSwitch']); if(debugSwitch > 0){ var tempDebugErrorIndex = debugErrorIndex; debugErrorIndex++; console.log('---------- began debug ' + tempDebugErrorIndex); var startTime = new Date().getTim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleRedisEnd() {\n debug(\"Redis: connection to server lost.\");\n}", "function handleRedisIdle() {\n debug(\"Redis: idle\");\n}", "function handleRedisDrain() {\n debug(\"Redis: TCP connection writable.\");\n}", "function RedisBox () {}", "function eLog(err) {\n if (err) {\n consol...
[ "0.7144888", "0.62944585", "0.61770177", "0.57095945", "0.5685897", "0.5636424", "0.5518012", "0.54950726", "0.54668003", "0.5450976", "0.5383649", "0.537882", "0.53722256", "0.52245903", "0.51919603", "0.516627", "0.51497704", "0.5143593", "0.511786", "0.51107776", "0.510815...
0.0
-1
transferencias.push(new Transferencia("1", "Santander", "1000001", "BBVA", "2000001", "1000000", "9", "100" )); / Funciones
function validarCliente(number) { var validacion = ""; for (var cliente of clientes) { if (number == cliente.numero) { validacion = true; } } return validacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nuevo(p,color,a,cap,cilin,num,zona,val,fecha,email,tel,direc){\r\n\r\n\tvar nuevo_vehiculo = {placa: p, color:color, Anyo:a,capacidad:cap,\r\n\tcilindraje:cilin,chasis:num,zona:zona,valor:val,fecha:fecha,correo:email,tele:tel,dir:direc};\r\n\tvec.push(nuevo_vehiculo);\r\n}", "function agregarDetalle(){\...
[ "0.6618387", "0.65816176", "0.6516958", "0.65137863", "0.6504983", "0.65012467", "0.6437979", "0.6414381", "0.63820547", "0.63537985", "0.6353157", "0.6229237", "0.62154907", "0.62045336", "0.6177826", "0.61728585", "0.61634564", "0.61409974", "0.6126779", "0.6112948", "0.607...
0.0
-1
POST Controller to handle validation requests
requestValidation(){ this.server.route({ method: 'POST', path: '/requestValidation', handler: async (request, h) => { //Validates payload if(!request.payload){ throw Boom.badRequest("You should provide a valid JSON re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function validatePost(req, res, next) {\n\n}", "static validate(request, response) {\n let isValid = true;\n const errors = {};\n\n if (!request.body.title) {\n errors.title = 'Add a title';\n isValid = false;\n }\n\n if (!request.body.description) {\n errors.description = 'Ad...
[ "0.6452391", "0.63379496", "0.6301057", "0.6188057", "0.6185062", "0.6099676", "0.60722554", "0.60116845", "0.59844476", "0.5982575", "0.5947054", "0.5944956", "0.5942742", "0.5932856", "0.5932046", "0.5927593", "0.5909027", "0.59064734", "0.5898651", "0.5880146", "0.58611465...
0.543353
69
POST Controller to validate signatures
validateRequestByWallet(){ this.server.route({ method: 'POST', path: '/message-signature/validate', handler: async (request, h) => { //Validates payload if(!request.payload){ throw Boom.badRequest("You should provide a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function signedRequestValidator (signature, body, path, publicKey) {\n\t// Get the signature out of the headers and check it looks ok\n\tif (!signature) {\n\t\treturn sendError(401, 'auth:signature:not provided', `No 'signature' header was supplied with the request`);\n\t}\n\n\tconst publicKeyBuf = Buffer.from(pub...
[ "0.6265303", "0.624923", "0.5999006", "0.5961734", "0.59098065", "0.5855465", "0.58236575", "0.58070266", "0.58070266", "0.58070266", "0.58070266", "0.58070266", "0.58070266", "0.5788614", "0.57805276", "0.57637846", "0.5759621", "0.5757446", "0.5756574", "0.57557595", "0.575...
0.6591134
0
POST Controller to add a new block with star data
addBlock(){ this.server.route({ method: 'POST', path: '/block', handler: async (request, h) => { //Validates payload if(!request.payload){ throw Boom.badRequest("You should provide a valid JSON request"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "postNewBlock() {\r\n this.server.route({\r\n method: 'POST',\r\n path: '/api/block',\r\n handler: async (request, h) => {\r\n if(request.payload==undefined || request.payload.length==0 || !request.payload.body){\r\n throw Boom.badRequest(\"Y...
[ "0.80889183", "0.7884289", "0.78531444", "0.7835015", "0.78234124", "0.76455015", "0.7557962", "0.7469638", "0.73591113", "0.70805156", "0.70060474", "0.6604035", "0.6554936", "0.6495483", "0.64671636", "0.6446609", "0.64449024", "0.6405355", "0.6351042", "0.6336266", "0.6259...
0.7402922
8
Read from database (R)
viewCreateDishForm(req, res) { let sql= `SELECT id_chef, chef_name, chef_last_name FROM chef`; connection.query(sql,(err, results)=>{ if (err) throw err; res.render('createDish', { results }) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "readFromDB() {\n return readFile(\"db/db.json\", \"utf8\");\n }", "function ReadDB () {\r\n const transactions = Budgetdb.transaction([\"pending\"], \"readwrite\")\r\n const stores = transactions.objectStore(\"pending\")\r\n // getAll() method for matching specified parameter OR\r\n // all...
[ "0.71607625", "0.674105", "0.67302793", "0.6675951", "0.66522235", "0.6637187", "0.663574", "0.6623583", "0.6570137", "0.6558034", "0.64654136", "0.6441908", "0.64203805", "0.6407751", "0.6405008", "0.6345963", "0.63254064", "0.6322071", "0.62936175", "0.62878454", "0.6257137...
0.0
-1
Deletes Dishes by id (D)
deleteDish(req, res) { const id = req.params.id_dish const id_chef = req.params.id_chef let sql = `DELETE FROM dish WHERE id_dish = ${id}` connection.query(sql, (error, result) => { if (error) throw error res.redirect(`/chef/id/${id_chef}`) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteDish(id) {\n console.log('dish id: ' + id);\n $.ajax({\n url: \"api/dishMaker/\" + id,\n type: \"DELETE\",\n success: function() {\n $(\"#row\" + id).remove();\n alert('Dish removed from database!');\n },\n error: function() {\n ...
[ "0.71655846", "0.69446427", "0.6874661", "0.68664825", "0.6765464", "0.67556405", "0.6739321", "0.6735822", "0.67238575", "0.670779", "0.6654925", "0.6625002", "0.6624888", "0.6615755", "0.6615149", "0.65932107", "0.6590424", "0.6573836", "0.6558652", "0.65557754", "0.6529833...
0.67238307
9
Fetch podcast data on mount
componentDidMount() { // Set media session for mobile notifications/lockscreen display this.setMediaSession() // Keyboard controls document.addEventListener('keyup', this.handleOnKeyUp, false) // Prevent spacebar scrolling document.addEventListener('keydown', this.handleOnKeyDown, false) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function loadPodcastList() {\n if (!loaded) {\n axios.get(\"/podcasts.json\")\n .then(function (result) {\n setPodcasts(result.data.podcasts);\n setLoaded(true);\n })\n }\n }", "componentDidMount() {\n\t\tthis.g...
[ "0.6330629", "0.5837663", "0.57260466", "0.5699545", "0.5695078", "0.55337256", "0.5498394", "0.5483981", "0.5482657", "0.545487", "0.54403913", "0.54262745", "0.54247785", "0.5416736", "0.5414827", "0.5381939", "0.53470254", "0.53310853", "0.53025544", "0.5289656", "0.528014...
0.0
-1
when input values change, set the state
handleInputChange (e) { const name = e.target.name const value = e.target.value this.setState({ [name]: value }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "changeInput(e, input){\n const val = e.target.value;\n this.setState(prev => { // sets the state for that input to the value\n prev.inputs[input] = val;\n return prev;\n });\n }", "function handleStateChange(event) {\n\n if (event.target.value === \"\") {\n console.log(`Empty value for ${...
[ "0.7322208", "0.70653236", "0.7062131", "0.701086", "0.7002655", "0.6984561", "0.69058084", "0.6902923", "0.6816738", "0.68079996", "0.6806046", "0.6806046", "0.6796914", "0.6777446", "0.67764807", "0.6773972", "0.67734754", "0.6773047", "0.6768248", "0.6765165", "0.6755452",...
0.0
-1
when form is submitted, call handleLoginSubmit (which was passed as props) with state as an argument
render () { return ( <div> <form onSubmit={(e) => this.props.handleLoginSubmit(e, this.state)}> <input type='text' name='username' value={this.state.username} placeholder='Username' onChange={this.handleInputChange} /> <input type='password' name='password' value={this.state.passwo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handleSubmit(event){\n\t\tevent.preventDefault()\n\t\tlet data= this.state\n\t\tthis.Login(data)\n\t}", "onSubmit(e) {\n e.preventDefault();\n this.props.login(this.state.email, this.state.password);\n }", "handleSubmitLogin(e) {\n\t\te.preventDefault();\n\t\tvar usernameInput = this.refs.logi...
[ "0.7763293", "0.76389265", "0.74870783", "0.74033064", "0.7378671", "0.7372648", "0.73248535", "0.72774875", "0.7241152", "0.72121274", "0.71939033", "0.7179091", "0.71598154", "0.7135794", "0.7135537", "0.7130929", "0.71114606", "0.7034921", "0.7031924", "0.70293427", "0.702...
0.7265956
8
Debug Menu "fill lines with test"
function fillBlanks() { var i; for (i = 0; i < boxInputsText.length; i++) { boxInputsText[i].value = (boxInputsText[i].tagName == 'TEXTAREA') ? "Test Line 1\r\nTest Line 2\r\nTest Line 3" : "Test Line"; }; for (i = 0; i < boxInputsNumeric.length; i++) { boxInputsNumeric[i].value = "101"; }; document.getElem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function debugLine(e, t, i) {\n\te === !0 && (e = \"true\"), e === !1 && (e = \"false\");var n = e;if (\"object\" == (typeof e === 'undefined' ? 'undefined' : _typeof(e))) {\n\t\tn = \"\";for (name in e) {\n\t\t\tvar r = e[name];n += \" \" + name + \": \" + r;\n\t\t}\n\t}if (1 != t || i || (n += \" \" + Math.rando...
[ "0.6388311", "0.5714309", "0.568801", "0.5652165", "0.55790293", "0.5534791", "0.5460912", "0.5395782", "0.53933054", "0.5388079", "0.5356451", "0.53348964", "0.53111416", "0.5304683", "0.52724886", "0.5256498", "0.5245332", "0.5230043", "0.52246577", "0.5212779", "0.5184477"...
0.0
-1
Check if box contains pound sign and add if not
function checkCurrencyInd(stringForChecking) { if (stringForChecking != "") { return (stringForChecking.indexOf("£") == -1) ? "£" + stringForChecking : stringForChecking; } else { return stringForChecking; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rendersPolishSigns(text) {\n var replacementChar = 65533;\n return text.indexOf(String.fromCharCode(replacementChar)) === -1 ? true : false;\n }", "function isNumeric(poin){\n\t\tif( $('#pointTB').val() != $('#pointTB').val().replace(/[^0-9]/g, '')){ // cek hanya angka \n\t\t\t$('#pointTB').val($...
[ "0.63082975", "0.59493345", "0.5833846", "0.5652127", "0.5611349", "0.5587227", "0.5562038", "0.5530981", "0.5506816", "0.5500884", "0.546154", "0.5449041", "0.54402274", "0.5402372", "0.5383039", "0.5381042", "0.5381042", "0.53717226", "0.53647375", "0.5355417", "0.53276867"...
0.5902839
2
Code for adding box contents to STR for output.
function processFlow() { // Convert checkboxes to English readable output boxInputsCheckbox[0].value = (boxInputsCheckbox[0].checked == true) ? "Yes" : "No"; boxInputsCheckbox[1].value = (boxInputsCheckbox[1].checked == true) ? "Yes" : "No"; if (boxInputsText[1].value == "Please select") { alert("Please select und...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function boxWrite(entry) {\n $('#textboxText').text(entry);\n}", "function addBoxes() {\n O('box-container').innerHTML += \"<div class='box'>More Boxes!!!!</div>\"\n}", "function constructBox(text) {\n var $newBox = document.createElement(\"div\");\n $newBox.classList.add(\"resultBox\");\n var $text...
[ "0.6562425", "0.65447646", "0.65014815", "0.63732225", "0.6369434", "0.6294808", "0.61703455", "0.6121281", "0.6120745", "0.6110812", "0.6101518", "0.6059404", "0.6043501", "0.603145", "0.602742", "0.60193366", "0.5954696", "0.5954696", "0.5954696", "0.5954696", "0.5954696", ...
0.0
-1
ES variable initialization end
function puts(error, stderr, stdout) { if(error) console.log('error: ', error); if(stdout) console.log('stdout: ', stdout) if(stderr) console.log('stderr: ', stderr) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "VariableInitializer() {\n this._eat('SIMPLE_ASSIGN');\n return this.AssignmentExpression();\n }", "function v(v) { return {type: 'var', v}}", "function TempVars() {\n}", "constructor() { // Las clases necesitan un constructor, en este asignaremos las variables DENTRO DEL SCOPE GLOBAL\n this.value...
[ "0.6153576", "0.60002756", "0.5996279", "0.59692585", "0.578275", "0.57761735", "0.5748952", "0.5724514", "0.5671675", "0.56536853", "0.5652612", "0.5642862", "0.5615984", "0.55932295", "0.55839825", "0.5526953", "0.5524356", "0.55241686", "0.5520246", "0.5520246", "0.5520246...
0.0
-1
Function for extracting out argument's name from the commands array
function extractArgumentName(argument) { var argumentName = ""; for (var ii = 2; ii < argument.length; ii++) { if (argument[ii] === '=') { return argumentName; } argumentName += argument[ii]; } return argumentName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getCommand() {\n return this.args[2];\n }", "function readCommandName(args) {\n var match = commandRxp.exec(args[0]);\n if (match) {\n args.shift();\n return match[1];\n }\n return null;\n }", "findCommand(name) {\n for (const command of this.comm...
[ "0.6759746", "0.6754712", "0.67105377", "0.63823074", "0.6357616", "0.62340754", "0.61812437", "0.61272734", "0.6061052", "0.60357547", "0.60144085", "0.59796655", "0.59550816", "0.5913836", "0.5911506", "0.5880787", "0.5864244", "0.5855317", "0.5849914", "0.5806304", "0.5773...
0.6225937
6
Function for extracting out argument's value from the commands array
function extractArgumentValue(argument) { if (!argument.includes("=")) { return true; } var argumentValue = ""; var index = argument.indexOf('='); for (var ii = index + 1; ii < argument.length; ii++) { argumentValue += argument[ii]; } return argumentValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getCommand() {\n return this.args[2];\n }", "getArgs() {return this.msg, this.command;}", "get command() {\n return this.i.command;\n }", "function getArgumentValue(key){\n\t\tvar a=this.getArgumentValues();\n\t\tif(a.length<1) return '';\n\t\tfor(i=0;i<a.length;i++){\n\t\t\tif(a[i][0]==k...
[ "0.70788276", "0.6609956", "0.6279137", "0.6268974", "0.6240205", "0.62313473", "0.61847377", "0.6176751", "0.61658794", "0.60866904", "0.6034773", "0.59696573", "0.59611136", "0.59519845", "0.58367586", "0.58093953", "0.5791749", "0.57897705", "0.5770974", "0.57538664", "0.5...
0.5331687
63
Function to check if arguments given by the user are defined
function checkIfArgumentDefined(argumentName) { for (var ii = 0; ii < parser.options.length; ii++) { if (argumentName === parser.options[ii].name) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "existAnyArguments() {\n const {supportingSituation, supportingActionGoal, notSupportingSituation, notSupportingActionGoal} = this.state;\n return (\n (supportingSituation !== undefined && supportingSituation.length > 0) ||\n (supportingActionGoal !== undefined && supportingActio...
[ "0.7564591", "0.7436292", "0.7315347", "0.72712564", "0.7262459", "0.71608", "0.7055321", "0.7033709", "0.7018755", "0.7006555", "0.69851077", "0.6861247", "0.68541276", "0.68486613", "0.6800644", "0.67877847", "0.67611516", "0.67029124", "0.6607466", "0.65455854", "0.6541751...
0.6701338
18
Function to validate the type of argument's value
function typeCheck(argumentNameToBeChecked, argumentValueToBeChecked) { var ii; for (ii = 0; ii < parser.options.length; ii++) { if (argumentNameToBeChecked === parser.options[ii].name) { argumentNameToBeChecked = parser.options[ii].name; break; } } if (parser....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check(name, value, type) {\n switch (type) {\n\n case 'object':\n case 'array':\n var stringOfValue = Object.prototype.toString.call(value).toLowerCase();\n if(value !== undefined && stringOfValue !== '[object ' + type + ']') {\n throw new Error('Expecting ' + name + ' to be an ' +...
[ "0.7156858", "0.7088197", "0.6994082", "0.69906735", "0.6990008", "0.69763696", "0.6965067", "0.6894591", "0.68857366", "0.6801507", "0.6791885", "0.67743367", "0.67743367", "0.67424977", "0.6728884", "0.6705823", "0.67049116", "0.67049116", "0.67049116", "0.6701184", "0.6689...
0.0
-1
Function to check if the mandatory arguments are present in the commands given by the user
function areRequiredArgumentsPresent(argumentNameArray) { for (var ii = 0; ii < parser.options.length; ii++) { if (parser.options[ii].isReq === true) { if (!argumentNameArray.includes(parser.options[ii].name)) { errorStatement += `Error :The argument "--${parser.options[ii].name}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function commandValid(args) {\n if (args.length < 3) {\n return false;\n }\n if (!Array.isArray(args)) {\n return false;\n }\n return true;\n}", "isCommandValid() {\n return (\n this.state.command.name === \"\" || this.state.command.queries.length < 2\n );\n }", "function checkMainArgume...
[ "0.74053663", "0.6996701", "0.6924081", "0.68395793", "0.6821333", "0.67444277", "0.6719265", "0.66913694", "0.66692555", "0.66512704", "0.66401297", "0.66401297", "0.66401297", "0.66401297", "0.6598005", "0.6525831", "0.64291793", "0.6399341", "0.6352662", "0.6351308", "0.63...
0.70623124
1
Function to check if arguments given by the user can be used together
function ifArgumentsCanBeUsedTogether(argumentNameArray) { for (var ii = 0; ii < argumentNameArray.length; ii++) { if (argumentNameArray.includes(parser.options[ii].cantBeUsedWith)) { errorStatement += `Error : The argument "--${parser.options[ii].name}" can't be used with` + ` t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkArguments() {\r\n // Check number of input arguments\r\n if (args.length !== 3) {\r\n console.log(\"[ERROR] Invalid input arguments!\");\r\n return false;\r\n }\r\n\r\n // Check the user_number data type\r\n if (isNaN(args[1])){\r\n console.log(\"[ERROR] user_numbe...
[ "0.72411376", "0.72229344", "0.71809006", "0.7139655", "0.6906904", "0.68614566", "0.6766472", "0.674782", "0.6679925", "0.66631085", "0.6663015", "0.6611871", "0.6611871", "0.6600543", "0.6594965", "0.6564233", "0.65632224", "0.65614694", "0.6552756", "0.6552756", "0.6552756...
0.7197882
2
displays the current inventory
function btn_displayInventory() { var msg = "Inventory: " + inventory; updateDisplay(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayInventory() {\n\t\t\tvar text = \"Inventory: \";\n\t\t\tif (Inventory.length > 1) {\n\t\t\t\tfor (var x = 0; x < Inventory.length; x++) {\n\t\t\t\ttext = text + Inventory[x] + \", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor (var x = 0; x < Inventory.length; x++) {\n\t\t\t\ttext = text + Inve...
[ "0.8117671", "0.8060399", "0.80385745", "0.7954067", "0.77079743", "0.7605381", "0.73888284", "0.7364953", "0.7335657", "0.7234", "0.71826243", "0.71725714", "0.7157483", "0.7119639", "0.7088291", "0.7036937", "0.70047706", "0.6925284", "0.69161755", "0.68848526", "0.68761706...
0.78114945
4
function for picking up an item and storing it in the inventory
function pickUpItem(item) { inventory.push(items[currentLocation].name); updateDisplay("Taken " + items[currentLocation].name + "."); items[currentLocation].isTaken = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function take_item() {\r\n\r\n\t\titem_ladle \t\t= new proto_item(0, \"Ladle\", \"This is a very dull wooden ladle its mostly for soup and acid, but mostly soup.\");\r\n\t\titem_silver_key = new proto_item(1, \"Silver Key\", \"This is a key, and it happens to be silver, who would have thought.\");\r\n\t\titem_lock...
[ "0.80556095", "0.75946856", "0.740388", "0.7374772", "0.73448247", "0.73243195", "0.722576", "0.7207107", "0.7111234", "0.7100658", "0.70770645", "0.7073751", "0.70012355", "0.69736004", "0.6972237", "0.6968629", "0.6968629", "0.6968629", "0.6968629", "0.6968629", "0.6968629"...
0.81180096
0
displays message and location onto textarea
function updateDisplay(message) { var message = message; var userInput = document.getElementById("taGame"); userInput.value = message + "\n\n" + userInput.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMessageArea(text, type) {\n $('#message-area > div').text(text);\n}", "function displayMessage(text) {\n $(\"gameOutputField\").innerHTML = $(\"gameOutputField\").innerHTML + text + \"<br>\";\n $(\"gameOutputField\").scrollTop = $(\"gameOutputField\").scrollHeight;\n }", "function...
[ "0.69271225", "0.6758893", "0.66150504", "0.66034025", "0.6582515", "0.6579556", "0.65741277", "0.6521074", "0.6433017", "0.64003456", "0.6350163", "0.63441664", "0.63356066", "0.63173467", "0.6277836", "0.6238092", "0.62356454", "0.6227728", "0.6215007", "0.6186801", "0.6176...
0.62102544
19
takes String input directly from command bar (what the user typed in)
function btn_go() { txtCommand.value = txtCommand.value.toLowerCase(); btn_command(txtCommand.value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUserInput(){\r\n return readlineSync.question(\"Enter a string: \");\r\n}", "function getUserInput(){\r\n return readlineSync.question(\"Enter a string: \");\r\n}", "function processInputCommand()\n {\n var inputText = my.html.input.value\n var goodChars = my.current.correctI...
[ "0.711246", "0.711246", "0.69200164", "0.6644635", "0.6616101", "0.654899", "0.6512375", "0.6509166", "0.6491103", "0.64796764", "0.6470157", "0.64694965", "0.64432263", "0.6437314", "0.63997453", "0.634234", "0.6307655", "0.6293875", "0.62568885", "0.6213435", "0.61921275", ...
0.0
-1
get at index (includes)
includes(data) { let link = this.head; while (link !== this.tail && link.data !== data) { link = link.next; } return link.data === data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get(idx) {\n\n }", "function get(list,index){\n if(list.includes(list[index])){\n return list[index];\n }else{\n throw \"El elemento no existe\";\n }\n}", "at(index) {\n return this.where.getAt(index);\n }", "get(index) {\n if (index < 0 || index >= this.length) {\n ...
[ "0.69867444", "0.69445056", "0.65439105", "0.65383065", "0.6495279", "0.6495279", "0.6495279", "0.6450885", "0.64325017", "0.6408578", "0.6401255", "0.63804775", "0.63576525", "0.63375777", "0.6335952", "0.6335086", "0.6335086", "0.6335086", "0.6335086", "0.6335086", "0.63160...
0.0
-1
sqlitesync_DB.transaction(populateDB, errorCB, successCB); sqlitesync_DB.transaction(populateDB); alert(UploadLocationPhotoInfo.clt_id + '\n' + UploadLocationPhotoInfo.objid + '\n' + UploadLocationPhotoInfo.photoTime + '\n' + syncTime);
function populateDB(tx) { try { var clt_id = UploadLocationPhotoInfo.clt_id; var objid = UploadLocationPhotoInfo.objid; var photoTime = UploadLocationPhotoInfo.photoTime; //alert(UploadLocationPhotoInfo.clt_id + '\n' + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function successCB() {\r\n alert(\"success!\");\r\n var db = window.openDatabase(\"GestionClient\", \"1.0\", \"GestionClient\", 200000); \r\n db.transaction(queryDB,errorCB);\r\n }", "function successSyncCall(tx,results) {\n\tvar len = results.rows.length;\n\t//alert(\"successSyncCall: \" + len...
[ "0.6417956", "0.627332", "0.61909515", "0.6152243", "0.5964948", "0.58766156", "0.58614546", "0.58183664", "0.58135724", "0.5797427", "0.5713186", "0.5707051", "0.5697107", "0.5697107", "0.56778926", "0.5663521", "0.5657708", "0.5641822", "0.56361455", "0.5558299", "0.5550684...
0.7835159
0
Add the background color to the navbar if the header component is outside the viewport, otherwise remove the background color from the navbar:
function backgroundColor() { if (panache.inview(header, 68)) { panache.addClass(nav, 'is-transparent'); } else { panache.removeClass(nav, 'is-transparent'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hideHeader() {\r\n let scrollPos = $(window).scrollTop();\r\n let windowWidth = $(window).width();\r\n\r\n //Check Window Location and width\r\n if (scrollPos < 50 && windowWidth > 924) {\r\n //Hide Background\r\n $(\"#navContainer\").addClass(\"clBackground\");\r\n } else {\r...
[ "0.6741845", "0.6647451", "0.65466833", "0.6479014", "0.6450123", "0.64226025", "0.64225835", "0.63995904", "0.63719743", "0.6343637", "0.6297609", "0.6185075", "0.61568135", "0.6098962", "0.6098962", "0.60890895", "0.6076494", "0.6070249", "0.605426", "0.6038376", "0.6005078...
0.701212
1
A number used to give each checkbox a unique ID Create a new li node for in a treevue
function createTreeNode(data) { var box, boxId, ulNode, liNode = $('<li></li>'); if (data.type) { liNode.attr('data-treevue-type', data.type); } // Add a checkbox and label: if (data.selectable === true || (data.selectable !== false && ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addNewLightSwitchInIndex(snapshot, lightType) {\n let snapshotVal = snapshot.val(),\n active = \"\",\n checked = \"\",\n DOMelet = \"\";\n\n if (snapshotVal.Status === \"ON\") {\n active = \"active\";\n checked = \"checked\";\n }\n if (lightType === \"interio...
[ "0.5950013", "0.5886274", "0.57733434", "0.5767731", "0.5754053", "0.57513833", "0.57402676", "0.57308435", "0.57214403", "0.57115245", "0.5697161", "0.56952095", "0.5677951", "0.56660646", "0.5658135", "0.5641807", "0.56063426", "0.559318", "0.5564039", "0.55590916", "0.5556...
0.66423404
0
Get the image from the feed based on selected index
function handleSetSelectedImage(index) { setSelectedImage({ index: index, image: props.imageFeed[index] }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCurrentPhoto(index, pos) {\n if (pos == \"fg\") {\n document.getElementById(foreImage).src = photosURL[index];\n }\n else if (pos == \"bg\") {\n document.getElementById(backImage).src = photosURL[index];\n }\n}", "function memebyindex(index){\n var url = \"\";\n if(ind...
[ "0.66288686", "0.6473584", "0.63745624", "0.61907524", "0.6169468", "0.61611795", "0.6077473", "0.6021385", "0.6007553", "0.60071814", "0.6000882", "0.59967023", "0.59957564", "0.59789175", "0.5962725", "0.59521055", "0.59450686", "0.5920446", "0.59067166", "0.58836305", "0.5...
0.6551857
1
TIMER METHODS let's see if breaking these out makes things less gnarly
checkCountDown() { if (this.state.countDown <= 0) { this.stopInterval(); this.setState({ toggleHideShow: 'show', darkClass: 'lightMon' }); } if (this.state.countDown > 0) { this.setState({ countDown: this.state.countDown - 1 }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function timerWrapper () {}", "function Timer() {}", "function Timer() {\n /* class that has a method to replace window.setTimeout */\n this.lastid = 0;\n this.functions = {};\n \n this.registerFunction = function(object, func, timeout) {\n /* register a function to be called with a timeo...
[ "0.76709646", "0.71744835", "0.6874095", "0.67569506", "0.6743925", "0.6729323", "0.6724058", "0.6715088", "0.669916", "0.66956365", "0.669324", "0.66908324", "0.66762805", "0.6675117", "0.6648966", "0.6629894", "0.6629057", "0.6628487", "0.6621628", "0.6619967", "0.6603059",...
0.0
-1
Kick off the 1 second timer.
startInterval() { this.timer = setInterval(this.checkCountDown.bind(this), 1000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetTimer() {\n app.second = 0;\n app.minute = 0;\n app.hour = 0;\n clearInterval(app.interval);\n app.timer.innerHTML = \"0:00\";\n}", "function resetTimer() {\n\tstopTimer();\n\ttimeStart = true;\n\ttime = 0;\n\tdisplayTimer();\n}", "function startTimer() {\n if (stoptime) {\n ...
[ "0.70152426", "0.6966461", "0.69638604", "0.69616234", "0.69616234", "0.69490045", "0.69220775", "0.6918055", "0.69076127", "0.687093", "0.6824865", "0.6809453", "0.68074673", "0.67906827", "0.6786555", "0.67799914", "0.6779009", "0.6772373", "0.6710789", "0.6710647", "0.6710...
0.0
-1
Build up a command for eye, from an expanded inference description
function getEyeCommand(inference){ if (config.serverOptions.verbose){ console.log(JSON.stringify(inference,null,2)); } let command = config.eyeOptions.eyePath; /** * Handle flags */ let flags = config.eyeOptions.defaultFlags.join(" "); if (inference['options']){ if (in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpret(input) {\n console.log(\"calling interpret\");\n var cmd = {},\n tokens = input.trim().toLowerCase().split(\" \");\n cmd.action = tokens.shift();\n cmd.target = tokens.join(\" \");\n return cmd;\n}", "generate() {\n const cmd = this.command;\n const flags = util.sortBy(\n Ob...
[ "0.57567203", "0.5718684", "0.56508756", "0.5342684", "0.5205449", "0.51464623", "0.50534683", "0.5026388", "0.5025606", "0.50034255", "0.4997356", "0.4974091", "0.49495602", "0.49442124", "0.4942432", "0.48861796", "0.4882349", "0.48017716", "0.4801599", "0.47955924", "0.477...
0.69975716
0
Copyright 20002002 Macromedia, Inc. All rights reserved. CLASS: RecordsetColumnMenu DESCRIPTION: PUBLIC PROPERTIES: PUBLIC FUNCTIONS: setDisabled(theValue) FUNCTION: RecordsetColumnMenu DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu(behaviorName, paramName, empty, rsParamName, bDisableWhenNoRS) { this.behaviorName = behaviorName; this.paramName = paramName; this.rsParamName = rsParamName; this.bDisableWhenNoRS = (bDisableWhenNoRS) ? bDisableWhenNoRS : false; this.recordset = ''; this.rsName = ''; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RecordsetColumnMenu_setDisabled(theValue)\r\n{\r\n if (this.listControl)\r\n {\r\n if (theValue && !this.listControl.object.getAttribute(\"disabled\"))\r\n {\r\n this.listControl.object.setAttribute(\"disabled\", true);\r\n }\r\n else if (!theValue && this.listControl.object.getAttribut...
[ "0.8114166", "0.6681591", "0.5836966", "0.57755816", "0.57122374", "0.5680989", "0.56248844", "0.55606574", "0.5537454", "0.55354995", "0.54889137", "0.5462752", "0.5462752", "0.5445058", "0.5433308", "0.5407814", "0.54043984", "0.53836566", "0.53523934", "0.5350958", "0.5350...
0.6986427
1
FUNCTION: initializeUI() DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_initializeUI() { this.recordset = window[this.rsParamName]; if (this.recordset.listControl.object.onChange) { this.recordset.listControl.object.onChange = this.paramName + ".updateUI();" + this.recordset.listControl.object.onChang...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initializeUI(){\n\n GselJumpMenus = findObject(\"JumpMenuList\");\n \n //populate the GarrJumpMenus global array\n GarrJumpMenus = getAllJumpMenus();\n \n //check validity of using behavior and give user \n //informative message if not valid\n if ( !checkValidity() ){\n GbValidConte...
[ "0.77009076", "0.76720077", "0.75337875", "0.7512311", "0.74922895", "0.73842394", "0.7220343", "0.71999776", "0.7180799", "0.7180799", "0.71754897", "0.7142594", "0.71194154", "0.7072612", "0.70621294", "0.70574063", "0.70574063", "0.70574063", "0.6987195", "0.695109", "0.69...
0.6538496
37
FUNCTION: updateUI() DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_updateUI() { this.rsName = this.recordset.listControl.get(); var colNames = this.findAllColumnNames(this.rsName); this.listControl.setAll(colNames,colNames); // If required, disable self if no returned recordsets and enable self if // returned recordsets. if (this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set001_updateUI() {\n\n} // .end of set001_updateUI", "updateUI(){\n this.GUI.updateUI();\n }", "function updateUI() {\n updatePlayerComponents(['points', 'teenagers', 'kettles', 'theaters', 'cps'])\n updatePriceComponents(['teenagers', 'kettles', 'theaters'])\n updateDoublePowerButton()\...
[ "0.815362", "0.7700811", "0.7404865", "0.72987473", "0.6993085", "0.68871707", "0.6848837", "0.6803998", "0.6783623", "0.6769084", "0.6754795", "0.6710686", "0.6685271", "0.6677061", "0.66308355", "0.6624509", "0.6623103", "0.6608313", "0.6588172", "0.65718424", "0.65496224",...
0.0
-1
FUNCTION: findServerBehaviors DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_findServerBehaviors(paramObj) { // no op }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TagMenu_findServerBehaviors(paramObj) {\r\n // no op\r\n}", "function findServerBehaviors()\n{\n sbArray = dwscripts.findSBs(MM.LABEL_TitleRedirectIfUsernameFound);\n \n for (var i=0; i<sbArray.length; i++) {\n\tsbArray[i].parameters.tableName = FieldTypes.decodeSQLReference(sbArray[i].parameters.ta...
[ "0.7720514", "0.7123211", "0.7113435", "0.6953843", "0.66531885", "0.64361954", "0.57379115", "0.5670257", "0.5565078", "0.5565078", "0.5449481", "0.53384715", "0.53159547", "0.5198645", "0.50713676", "0.49361384", "0.49182954", "0.48739576", "0.48034272", "0.451807", "0.4503...
0.79922587
0
FUNCTION: canApplyServerBehavior DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_canApplyServerBehavior(sbObj) { var retVal = true; return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function canApplyServerBehavior(sbObj)\n{\n var success = true;\n if (!sbObj) \n {\n // attempting to add the behavior - check to see if one already exists on the page\n var ourSBs = new Array();\n\tourSBs = ourSBs.concat(dwscripts.getServerBehaviorsByFileName(\"Check New Username.htm\"));\n\tourSBs = our...
[ "0.75854677", "0.7221066", "0.70030034", "0.65226346", "0.60369766", "0.5960174", "0.59337914", "0.59152746", "0.56895775", "0.557581", "0.557581", "0.5575643", "0.55718374", "0.55460775", "0.5452785", "0.5409705", "0.5354419", "0.53132904", "0.5273216", "0.5273216", "0.52204...
0.75304085
1
FUNCTION: applyServerBehavior DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_applyServerBehavior(sbObj, paramObj) { var retVal = ""; var colName = this.listControl.getValue(); if (!colName || colName.indexOf("MM_ERROR") != -1) { retVal = MM.MSG_NeedColumn; } paramObj[this.paramName] = colName; return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function canApplyServerBehavior(sbObj)\n{\n var success = true;\n if (!sbObj) \n {\n // attempting to add the behavior - check to see if one already exists on the page\n var ourSBs = new Array();\n\tourSBs = ourSBs.concat(dwscripts.getServerBehaviorsByFileName(\"Check New Username.htm\"));\n\tourSBs = our...
[ "0.69221216", "0.66685647", "0.63339907", "0.63132894", "0.6276088", "0.60538656", "0.6041742", "0.58354163", "0.5794808", "0.57212836", "0.5700035", "0.56178623", "0.55872786", "0.55033565", "0.54170436", "0.54008687", "0.5350333", "0.5312621", "0.529171", "0.527503", "0.522...
0.493494
31
FUNCTION: inspectServerBehavior DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_inspectServerBehavior(sbObj) { this.updateUI(); var colName = sbObj.parameters[this.paramName]; var retVal = this.listControl.pickValue(colName); if (!retVal) { alert(dwscripts.sprintf(MM.MSG_CouldNotFindColumnName,colName)); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RecordsetColumnMenu_findServerBehaviors(paramObj) {\r\n // no op\r\n}", "function TagMenu_findServerBehaviors(paramObj) {\r\n // no op\r\n}", "function TagMenu_analyzeServerBehavior(sbObj, allRecs) {\r\n // no op\r\n}", "function inspectServerBehavior(ssRec) {\n\n\n CALLABLE_TEXT.value = ssRec...
[ "0.69521564", "0.67096", "0.6524953", "0.65090126", "0.639416", "0.63221353", "0.6247128", "0.6225195", "0.610039", "0.6064187", "0.5876203", "0.5792446", "0.5778696", "0.5606948", "0.560119", "0.5579903", "0.5468307", "0.5380014", "0.5256413", "0.51370656", "0.502905", "0....
0.52271175
19
FUNCTION: deleteServerBehavior DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_deleteServerBehavior(sbObj) { // no op }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteServerBehavior(sbObj)\n{\n dwscripts.deleteSB(sbObj);\n return true;\n}", "function TagMenu_deleteServerBehavior(sbObj) {\r\n // no op\r\n}", "function NumRecButtons_deleteServerBehavior(sbObj) {\r\n // no op\r\n}", "function FormFieldsMenu_deleteServerBehavior(sbObj)\r\n{\r\n // nothing ...
[ "0.7630072", "0.73832387", "0.70730126", "0.65161127", "0.5674305", "0.55961794", "0.5594486", "0.559079", "0.5477553", "0.53803396", "0.5370785", "0.52928805", "0.52107567", "0.51628935", "0.5140969", "0.51406103", "0.51392186", "0.5108914", "0.5102072", "0.5066819", "0.5040...
0.73946714
1
FUNCTION: analyzeServerBehavior DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_analyzeServerBehavior(sbObj, allRecs) { if (!sbObj.incomplete && !this.colNameIsValid(sbObj.parameters[this.rsParamName], sbObj.parameters[this.paramName])) { sbObj.incomplete = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TagMenu_analyzeServerBehavior(sbObj, allRecs) {\r\n // no op\r\n}", "function analyzeServerBehavior(sbObj, allRecs)\n{\n var idxBinding;\n\n var insertSBs = new Array();\n insertSBs = insertSBs.concat(dwscripts.getServerBehaviorsByFileName(\"Insert Record.htm\"));\n insertSBs = insertSBs.concat(dws...
[ "0.7103493", "0.63706225", "0.6290428", "0.60140693", "0.5914968", "0.58973557", "0.58434874", "0.57385975", "0.5678623", "0.5582707", "0.5345819", "0.52998215", "0.52605003", "0.51597995", "0.50267947", "0.49596116", "0.49338108", "0.48484302", "0.47959286", "0.47858545", "0...
0.52530223
13
FUNCTION: getValue DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_getValue() { return this.listControl.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get value() {}", "get value() {}", "function getVal() {\n return 5;\n}", "GetValue()\n\t{\n\t\treturn this.value;\n\t}", "function value() { }", "getValue()\n {\n return this.value;\n }", "function GetValue(param)\r\n\t{\r\n\r\n\t}", "function getValue() {\n return selectedValue;\n...
[ "0.74158096", "0.74158096", "0.715494", "0.70483595", "0.69786465", "0.6905254", "0.687852", "0.68167704", "0.68110025", "0.67705166", "0.67700994", "0.6763567", "0.6763567", "0.67526686", "0.6726647", "0.6726647", "0.6726647", "0.67113984", "0.6705311", "0.6685043", "0.66407...
0.0
-1
FUNCTION: setDisabled DESCRIPTION: Disables or enables the list or menu ARGUMENTS: theValue boolean true to disable, false to enable RETURNS: nothing
function RecordsetColumnMenu_setDisabled(theValue) { if (this.listControl) { if (theValue && !this.listControl.object.getAttribute("disabled")) { this.listControl.object.setAttribute("disabled", true); } else if (!theValue && this.listControl.object.getAttribute("disabled")) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set disabled(value) {\n const isDisabled = Boolean(value);\n if (isDisabled)\n this.shadowRoot.getElementById('toggle').setAttribute('disabled', '');\n else\n this.shadowRoot.getElementById('toggle').removeAttribute('disabled');\n }", "_setDisabled(value) {\n if (...
[ "0.71683705", "0.7048848", "0.7046147", "0.7046147", "0.7046147", "0.6856513", "0.65717095", "0.6483586", "0.6483586", "0.64630497", "0.6454617", "0.64259696", "0.64259696", "0.64259696", "0.64259696", "0.6392208", "0.6392208", "0.6347659", "0.6347659", "0.6347659", "0.634765...
0.800858
0
FUNCTION: findAllColumnNames DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_findAllColumnNames(rsName) { var retVal = false; if (dwscripts && dwscripts.getFieldNames) { retVal = dwscripts.getFieldNames(rsName); } else { retVal = findAllColumnNames(rsName); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "'getColumnNames'() {\n return __range__(0, sqlite3_data_count(this.stmt), false).map((i) => sqlite3_column_name(this.stmt, i));\n }", "function getColumnNames(columns, options) {\n var columns = _.flatten([columns || 'symbol']).join(',');\n var parser = createColumnParser(options)...
[ "0.69929016", "0.65174645", "0.61148155", "0.59847766", "0.5810978", "0.58057886", "0.5759809", "0.5741414", "0.57058775", "0.5687886", "0.56766015", "0.5667563", "0.5663743", "0.5661569", "0.5657793", "0.5634571", "0.56289756", "0.56197476", "0.5608996", "0.5608996", "0.5585...
0.7237599
0
FUNCTION: colNameIsValid DESCRIPTION: ARGUMENTS: RETURNS:
function RecordsetColumnMenu_colNameIsValid(rsName, colName) { var retVal = false; if (colName) { var colNames; if (dwscripts && dwscripts.getFieldNames) { colNames = dwscripts.getFieldNames(rsName); } else { colNames = this.findAllColumnNames(rsName); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function test_name_validity(colName){\n var result_query = `REGEXP_CONTAINS(${colName}, r'^[a-zA-Z]+$')`\n return result_query\n}", "function validateOrFixColumnName(name) {\n var headers = getColumns();\n if (headers.indexOf(name) > -1) {\n var newName = generateColumnName(name);\n return ...
[ "0.6963344", "0.652134", "0.64834434", "0.6438268", "0.6408933", "0.63736266", "0.6313096", "0.62728614", "0.6005122", "0.5982026", "0.5959937", "0.59470963", "0.59123963", "0.5890739", "0.5816707", "0.5812409", "0.57985324", "0.57985324", "0.57911515", "0.57853824", "0.57807...
0.80581546
0
remove the _id from response as this is internal db id and should not be exposed.
function normalize(obj) { const {_id, ...res} = obj; return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fixID(a){\n\ta.id = a._id;\n\tdelete a._id;\n\treturn a;\n}", "async function removeOne(_query) {\n let id = _query[\"id\"];\n let objID = new Mongo.ObjectId(id);\n console.log(\"removed ID: \", id);\n return await datas.deleteOne({ \"_id\": objID });\n }", "mapResponse(...
[ "0.6445284", "0.6145824", "0.61425906", "0.6092129", "0.6069657", "0.6069657", "0.6069657", "0.6065283", "0.6054186", "0.6054186", "0.59999657", "0.5966503", "0.59588236", "0.594914", "0.59382206", "0.59382206", "0.59382206", "0.593648", "0.5920407", "0.5853971", "0.5843373",...
0.0
-1
checks if letter is correct
checkLetter(letter) { //return matching letters return this.phrase.includes(letter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function correctLetterCheck(letter) {\n if (character.indexOf(letter.key) > -1) {\n correctLetter(letter);\n } else {\n incorrectLetter(letter);\n }\n}", "function isCorrectCharacter(char) {\r\n switch (char) {\r\n case 'a':\r\n case 'e':\r\n case 'i':\r\n case 'o':\...
[ "0.809176", "0.7962934", "0.79500854", "0.7853759", "0.78513783", "0.78333306", "0.7812199", "0.77636546", "0.7757736", "0.77122444", "0.7689598", "0.7629231", "0.76264983", "0.7616826", "0.76037645", "0.7601604", "0.75757", "0.75741", "0.7563878", "0.75550544", "0.7538402", ...
0.0
-1
intially hides letters and puts show class as letters are correctly guessed
showMatchedLetter(letter) { const reference = `.hide.letter.${letter}`; const correctLetters = document.querySelectorAll(reference); for (let each of correctLetters) { each.classList.remove('hide'); each.classList.add('show'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "showMatchedLetter(correctLetter){\n correctLetter.classList.remove('hide');\n correctLetter.classList.add('show');\n }", "showMatchedLetter(guess) {\r\n\t\t// selects all the elements with the class matching the letter guessed\r\n\t\tlet classSelector = `.${guess}`;\r\n\t\t// removes the hide ...
[ "0.7656333", "0.7603952", "0.7377277", "0.7344368", "0.73170555", "0.7299955", "0.7247383", "0.72363263", "0.7219783", "0.7188072", "0.7158185", "0.71555775", "0.71403027", "0.7138339", "0.7136468", "0.71291894", "0.7114191", "0.7084303", "0.7033853", "0.6996877", "0.6994635"...
0.72535235
6
Refactored Code from JD Slack response in Unit 4 group 5/9/2019 Splits phrases from constructor and adds them to the display uses a lifted blue square to mark space
addPhraseToDisplay() { const addLi = this.phrase.split(""); let addUl = '<ul>'; for (let i = 0; i < addLi.length; i++) { if (addLi[i] !== " ") { addUl += `<li class="hide letter ${addLi[i]}">${addLi[i]}</li>`; } else { addUl += `<li class="space show"> </li>`; } } addUl += '<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initPhrase()\n{\n for(let i = 0; i < userPhrases[phraseIndex].length; i++)\n {\n if(userPhrases[phraseIndex][i].match(/ /))\n {\n phrase = phrase.concat(\" \");\n }\n else\n {\n phrase = phrase.concat(\"-\");\n }\n }\n if(debug)co...
[ "0.7204797", "0.71146667", "0.70131004", "0.6992419", "0.6963572", "0.693758", "0.6930305", "0.6914663", "0.6902333", "0.6865376", "0.68312293", "0.6816995", "0.680305", "0.67965895", "0.67907816", "0.678338", "0.67797506", "0.6731841", "0.6720257", "0.6709095", "0.66970533",...
0.6819847
11
Setup Socket.io server const io = socketIO(server);
function configureSocketIO(io) { io.use(function (socket, next) { sessionMiddleware(socket.request, {}, next); }).on("connection", socket => { let passportJSON = socket.request.session.passport; if (connectionsEnabled && passportJSON && passportJSON.user) { console.log("passp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async startServer (server) {\n // Setup Websockets\n this.socket = SocketIO(server, {\n cors: {\n origin: \"*\",\n methods: ['GET', 'POST']\n }\n })\n\n this.socket.on('connection', (client) => this._onConnection(client))\n }", "function CreateSIOServer()\n{\n \n sio = ...
[ "0.7718294", "0.7649882", "0.76439655", "0.75817686", "0.7576965", "0.7476299", "0.73836905", "0.7178386", "0.713857", "0.7115484", "0.7088509", "0.700473", "0.69872755", "0.6963811", "0.69278264", "0.68796474", "0.68758255", "0.6803989", "0.6796057", "0.67923313", "0.6689145...
0.6747474
20
Hook events to modules.
function hookFunction(event) { popebot.client.addListener(event, function () { var args = Array.prototype.slice.call(arguments); var methodName; // Prepend popebot to arguments. args.unshift(popebot); // Handle events with special characters in them. if (event === '+mode') { methodName...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "runModules (event) {\n if (event === 'init') {\n // Initializing a module should only be done if it has an init\n // function, which means it's not rendered in the template.\n for (let key in PNotify.modules) {\n if (!PNotify.modules.hasOwnProperty(key)) {\n continue;\n }\n...
[ "0.6954338", "0.67747957", "0.6629652", "0.66262335", "0.6611192", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", "0.6407935", ...
0.6131229
35
20 seconds per question
function setmaxtimelimit() { maxtimelimit = 3600; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function waitBeforeNextQuestion() {\n setTimeout(function nextQuestion() {\n \n questionIndex++;\n if (questionIndex === 4) {\n submitScore();\n } else {\n\n showQuestion();\n }\n \n \n \n }, 1000);\n}", "function nextQuestion() {\n timerInterval = 15;\n questionNum++;\n ...
[ "0.6918783", "0.68748975", "0.6849214", "0.6811471", "0.6808885", "0.6808885", "0.6808885", "0.6779459", "0.6766218", "0.6762988", "0.67578554", "0.6738362", "0.67040485", "0.66964775", "0.6677733", "0.6651219", "0.6647676", "0.66428584", "0.66258234", "0.6612571", "0.6610729...
0.0
-1
do NOT make BIGGER than number of 'questions' array
function setmaxNumberOfQuestions() { maxNumberOfQuestions = 60; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeQuestionsForQuiz(numQuestions) {\n // generate questions for quiz\n questions = generateQuestions(numQuestions || questionTemplates.length);\n // make questions-only list for quiz component\n return questions.map(q => ({\n id: q.id,\n type: q.type,\n question: q.questi...
[ "0.668415", "0.658167", "0.65169483", "0.6468931", "0.64054954", "0.6269561", "0.6266553", "0.62539333", "0.6230779", "0.6227436", "0.622703", "0.620827", "0.6190442", "0.61858505", "0.61846715", "0.6180029", "0.61724156", "0.6168642", "0.61611426", "0.61257815", "0.61255753"...
0.57095134
73
setupTimer(); // for indivisible timer for each question
function setupTimer() { timelimit = maxtimelimit; clearInterval(myVar); startTimer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function startQuiz() {\n showQuestion();\n startTimer();\n}", "function start() {\n\n setTime(); //set timer\n\n //next question function\n next();\n}", "function timingQuestion() {\n \n displayQuestionAndListenForInput();\n\n\n if (count == questionArr.length + 1) {\n ...
[ "0.8128793", "0.80137473", "0.7858266", "0.7734099", "0.7726086", "0.7716044", "0.7680675", "0.76459974", "0.76302534", "0.7601341", "0.75980383", "0.7557991", "0.7542667", "0.75321114", "0.7523036", "0.74745613", "0.7464452", "0.74256307", "0.7405327", "0.7388905", "0.738793...
0.0
-1
geo translation on mouse click in map
function click() { var latlon = projection.invert(d3.mouse(this)); console.log(latlon); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onPolyClick(e){\n clickedLatLng = e.latlng;\n}", "function click() {\n var latlon = projection.invert(d3.mouse(this));\n // console.log(latlon);\n}", "function mouseLngLatClick() {\r\n Coordinates.state = (Coordinates.state + 1) % Coordinates.states.length\r\n switch (Coordinates.states[Coo...
[ "0.7322278", "0.7088355", "0.7054844", "0.7014226", "0.6980746", "0.69045734", "0.6861167", "0.6812036", "0.66537285", "0.6626285", "0.6570229", "0.652242", "0.6502741", "0.6477616", "0.6477567", "0.6449874", "0.6369038", "0.63642365", "0.634549", "0.63394946", "0.6338621", ...
0.6882151
6
function to add points and text to the map (used in plotting capitals)
function addpoint(lat,lon,text) { var gpoint = g.append("g").attr("class", "gpoint"); var x = projection([lat,lon])[0]; var y = projection([lat,lon])[1]; gpoint.append("svg:circle") .attr("cx", x) .attr("cy", y) .attr("class","point") .attr("r", 1.5); //conditional in case a point has no assoc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "plotLetters(word, points) {\n if (word.length == points.length) {\n for (let x = 0; x < word.length; x++) {\n this.setLetterAt(word[x], points[x][0], points[x][1]);\n }\n }\n }", "function pointsText(){\n fill(255);\n textSize(12);\n textFont('Helvetica');\n\n //red\n if(num < 20) fi...
[ "0.67015254", "0.65811026", "0.6552302", "0.6514908", "0.6431953", "0.6418637", "0.6404777", "0.6379628", "0.6374783", "0.63696134", "0.6365291", "0.63647896", "0.63631827", "0.63550705", "0.6269295", "0.6227247", "0.6139824", "0.6022786", "0.59937274", "0.5989535", "0.598065...
0.64139307
6
FUNCTIONS // loadScripts() Calls the according functions to load and maintain the display.
async function loadScripts() { await getDisplayData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadScripts(){\n renderer.setIPC();\n inject.uglifyScripts();\n inject.injectScripts();\n}", "function scriptLoader()\n{\n addJavascript(\"phoneticMapper.js\", \"head\");\n addJavascript(\"vedatype.js\", \"head\");\n addJavascript(\"slp01.js\", \"head\"); \n}", "function loadScripts() {\r\n\t\t\t\t...
[ "0.7499751", "0.7282819", "0.7195395", "0.7099359", "0.69241834", "0.68932223", "0.677597", "0.6683724", "0.6616004", "0.65560746", "0.64792234", "0.64792234", "0.64792234", "0.6461082", "0.64586955", "0.64545995", "0.645411", "0.6447632", "0.64403063", "0.642296", "0.6418051...
0.7607352
0
getLocalTime() instances a 'new Date()' & sets the text content of the element with the id 'localTime' to it.
function getLocalTime() { const today = new Date(); const days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; const day = days[today.getDay()]; const month = today.getMonth(); const year = today.getFullYear(); const time = today.getHours() + ':' + today.getMinutes(); c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function localTime() {\r\n var timeNow = new Date();\r\n// when single units displayed as minutes add's '0' in front\r\n var convertingMinutes = ('0'+timeNow.getMinutes()).slice(-2);\r\n var timeDisplay = timeNow.getDate() + \"/\" + (timeNow.getMonth()+1) + \"/\" + timeNow.getFullYear() + \" \" + timeNow....
[ "0.7008622", "0.6476968", "0.6456959", "0.638855", "0.6336319", "0.6320128", "0.6253366", "0.59225464", "0.5914356", "0.5907396", "0.5907396", "0.58956784", "0.5886373", "0.5875775", "0.58739877", "0.58719975", "0.58690536", "0.5862033", "0.5816198", "0.58002275", "0.5716622"...
0.68477833
1
reloadDisplay() Reloads the display from which the function was called from.
function reloadDisplay() { location.reload(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refreshDisplay(){\n env.disp.render() ;\n env.plot.render() ;\n}", "function refreshDisplay() {\r\n\r\n if (useOfflineSync) {\r\n syncLocalTable().then(displayItems);\r\n } else {\r\n displayItems();\r\n }\r\n }", "reload() {\n\t\tthis.clearNetwork()...
[ "0.69532824", "0.65981823", "0.64846814", "0.64004654", "0.63652694", "0.62780166", "0.620206", "0.61843336", "0.61506164", "0.60370696", "0.6021102", "0.5969722", "0.5961752", "0.5954818", "0.59292114", "0.5902366", "0.58934706", "0.58722186", "0.5861692", "0.58448625", "0.5...
0.80082947
0
getDisplayData() On displays initialisation it GETS its data from the server. The data is used to set variables, properties and the refresh timer.
async function getDisplayData() { const url = '/api/displays/data'; const response = await fetch(url); const details = await response.json(); displayContents = await fetchFileAsText('/displays/' + details.file); displayName = details.name; displayFile = details.file; displayTimer = (details.timer * 60) *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_data(data) {\n this.displayData = data;\n }", "function displayData() {\n //Queue text number update\n let queueNumber = data.queue.length;\n if (queueNumber < 10) {\n queueNumber = \"0\" + queueNumber;\n }\n queueP.textContent = queueNumber;\n\n //Serving text number update\n let servingNumber = ...
[ "0.6765205", "0.66352224", "0.6632438", "0.6509557", "0.63711315", "0.63373154", "0.6324211", "0.62957406", "0.6242198", "0.6231528", "0.6229763", "0.61826074", "0.6107321", "0.6091991", "0.60705435", "0.6044056", "0.6033395", "0.6021484", "0.6018969", "0.6005987", "0.5989177...
0.7325472
0
serverCheckIn() Called on a timer. Used to fetch the newest data for the display and decide whether to refresh itself based on the results when comparing values stored in local variables to the data recieved.
async function serverCheckIn() { console.log("HUB: Checking in with the P.U.D network"); try { const currentFile = displayFile.split("/"); const url = '/api/displays/data'; // Fetch newest data for display let response = await fetch(url); const newDetails = await response.json(); if (displayFi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkServer() {\n\n // After the timer has passed, hide the initial window\n indexElements.servicePlaceholderInitial.hide();\n indexElements.serviceTableBody.hide();\n\n // Make a promise chain to get our registered services\n fetch(\"/registry/endpoints\", {\n method: \"GET\",\n ...
[ "0.68484885", "0.64971185", "0.64231396", "0.6318967", "0.62577945", "0.6252861", "0.62277293", "0.6199127", "0.6185716", "0.60770714", "0.60665625", "0.6049843", "0.60454226", "0.6018877", "0.5936957", "0.5931253", "0.589169", "0.5880909", "0.58195657", "0.58114934", "0.5788...
0.7391718
0
mostly for debugging purposes
smooth(array) { return this.savitskyGolaySmooth(array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "debug() {}", "protected internal function m252() {}", "function kp() {\n $log.debug(\"TODO\");\n }", "static private internal function m121() {}", "function dBug(s) {\n\t// uncomment out for debug\n\t//console...
[ "0.6850697", "0.6640601", "0.61837685", "0.6142714", "0.6109162", "0.6108908", "0.6026329", "0.60201234", "0.5974244", "0.5963994", "0.5902957", "0.58658683", "0.5860738", "0.5855662", "0.5821476", "0.5809775", "0.58081985", "0.58016783", "0.5752251", "0.5731572", "0.5700124"...
0.0
-1
script start async2 end
async function async1() { console.log("async1 start"); await async2(); console.log("async1 end"); // mic1-1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function async1() {\n\tawait async2();\n\tconsole.log(\"async1 end\");\n}", "async function async1() {\n console.log(\"async1 start\");\n await async2();\n console.log(\"async1 end\");\n}", "async function async1() {\n console.log(\"async1 start\"); // 2\n await async2();\n console.log(\"asyn...
[ "0.7155322", "0.6979619", "0.6801202", "0.6551005", "0.65436226", "0.65020823", "0.6390447", "0.63748986", "0.63692605", "0.6216578", "0.6156207", "0.6141702", "0.6139044", "0.61222893", "0.6101423", "0.60772693", "0.60772693", "0.60772693", "0.60772693", "0.60772693", "0.606...
0.7160976
0
Accessors Gets whether the game is continuous, which may influence behaviour.
get continuous() { return this.#runtime_.description.continuous; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getContinuous() {\n\t\treturn isContinuous;\n\t}", "isActive() {\r\n return this.gameActive;\r\n }", "SetContinuousPhysics(flag) {\n this.m_continuousPhysics = flag;\n }", "function isRunning () {\n return (character.isLeft || character.isRight) && !character.isFalling;\n}", "...
[ "0.8174045", "0.6051211", "0.59402496", "0.5900444", "0.5875383", "0.5788422", "0.5711853", "0.56363636", "0.55430955", "0.55193305", "0.55079365", "0.5487097", "0.5479958", "0.5479174", "0.5446055", "0.5444054", "0.5426836", "0.5386161", "0.53767633", "0.5345347", "0.5343167...
0.7182386
1
Gets the set of Players who are currently in the game.
get players() { return this.#runtime_.players; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getPlayers() {\n\t\treturn this.lobbyPlayers;\n\t}", "getPlayers() {\n\t\treturn this.players;\n\t}", "get activePlayers() {\n return this._activePlayers;\n }", "getPlayers () {\n return this.#players\n }", "getAllPlayers(){\n var allPlayers = [];\n for(var i = 0; i < this.teams.l...
[ "0.7360456", "0.73368406", "0.7082292", "0.69986045", "0.69131476", "0.68769896", "0.684465", "0.65789217", "0.65532094", "0.65186363", "0.65186363", "0.65005916", "0.6500266", "0.64807796", "0.6412932", "0.64115465", "0.6364788", "0.6285776", "0.6162936", "0.61415845", "0.61...
0.59613794
24
Gets the scoped entities which can be used to create objects, pickups and so on.
get scopedEntities() { return this.#scopedEntities_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get entities() {\n return this.__entities;\n }", "get entities() {\n return this[\"entityManager\"]._entities;\n }", "get entities() {\n return this.system.entities;\n }", "getScopes() {\r\n return this.builder.scopes;\r\n }", "entities() {\n if (this.connectionOptions &&...
[ "0.6435859", "0.63329077", "0.62966186", "0.5922868", "0.58689374", "0.58178306", "0.56257474", "0.5621287", "0.5621287", "0.55562127", "0.55324346", "0.5514191", "0.5477279", "0.5470418", "0.5456691", "0.5416385", "0.541245", "0.54063344", "0.5385553", "0.52867526", "0.52679...
0.82960004
0
Methods Signals that the |player| has lost. They will be removed from the game.
async playerLost(player, score) { await this.#runtime_.playerLost(player, score); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async onPlayerRemoved(player) {}", "async onPlayerDeath(player, killer, reason) {}", "onPlayerRemoved(player) {\n if (this.#teamAlpha_.has(player)) {\n this.#teamAlphaScore_ -= this.#teamAlpha_.get(player);\n this.#teamAlpha_.delete(player);\n }\n \n if (this.#...
[ "0.71101594", "0.7104181", "0.69002396", "0.66723084", "0.66723084", "0.666721", "0.6616812", "0.6609067", "0.6561979", "0.6451483", "0.6399814", "0.62890756", "0.6281327", "0.6275871", "0.62580156", "0.6257303", "0.62406963", "0.61858255", "0.61767143", "0.61486244", "0.6127...
0.7411475
0
Signals that the |player| has won. They will be removed from the game.
async playerWon(player, score) { await this.#runtime_.playerWon(player, score); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __playerWon(player) {\n var playerScores = [], winningPlayer, lostPlayers = [];\n\n for (var i = 0; i < __players.length; i++) {\n var p = __players[i],\n playerScore = p.getScore();\n\n if (p === player) {\n playerScore++;\n }\n\n playerScores.pus...
[ "0.7629183", "0.68729305", "0.6738602", "0.65629476", "0.6470315", "0.6395792", "0.62334657", "0.6184045", "0.6171815", "0.61291236", "0.61161387", "0.60651666", "0.60309947", "0.60284156", "0.6020125", "0.5999335", "0.5973672", "0.5950498", "0.5931037", "0.59288746", "0.5928...
0.7116406
1
Immediately stops the game, and removes all players.
stop() { this.#runtime_.stop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stopPlayers() {\n\tgroupPlayer.forEach(\n\t\tfunction(player) {\n\t\t\tplayer.body.velocity.x = 0;\n\t\t\tplayer.body.velocity.y = 0;\n\t\t\tplayer.body.gravity.y = 0;\n\t\t}\n\t)\n}", "function clearPlayerGame() {\n playerGame = [];\n}", "function stopGame(){\n\tgameData.paused = true;\n\tTweenMax.k...
[ "0.7407635", "0.7185953", "0.7117016", "0.70739555", "0.6985917", "0.69367707", "0.6935158", "0.68082315", "0.6786125", "0.67553455", "0.6715778", "0.6679329", "0.66701883", "0.6656641", "0.66390926", "0.6612961", "0.6612649", "0.66040087", "0.65937704", "0.65688264", "0.6545...
0.0
-1
Events Called when the Game has just been created. Enables data to be loaded from disk / the database, as well as objects to be initialized. Use the `scopedEntities` please.
async onInitialized(settings, userData) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onEvent(type){\n if(type === \"Reset\"){\n this.added = false;\n }\n if(type === \"Entity Added\" && !this.added){\n this.added = true;\n for(let playerId in this.players){\n let player = this.players[playerId];\n this.world.addEntity(player);\n }\n }\n }", "functio...
[ "0.6713037", "0.63657355", "0.6313028", "0.6259746", "0.6206834", "0.60810626", "0.60458976", "0.5990708", "0.59587556", "0.59289485", "0.5832776", "0.5801487", "0.5779676", "0.57782465", "0.5775385", "0.5774399", "0.57353693", "0.5726613", "0.5723641", "0.57101655", "0.56755...
0.0
-1
Called at a periodic interval if the game requested a tick in its options.
async onTick() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tick () {\n if (!ticking) return\n\n // Some browsers call events a little too frequently, refuse to run more than is reasonable\n if (last_tick && (now() - last_tick) < 10) {\n raf.call(window, tick)\n return\n }\n\n last_tick = now()\n position()\n\n // tick again...\n ...
[ "0.65180826", "0.64493203", "0.6330721", "0.6280362", "0.6279789", "0.6198362", "0.6176269", "0.6146288", "0.6131088", "0.61283296", "0.6124554", "0.6124426", "0.60595286", "0.60362846", "0.602637", "0.60068864", "0.6005828", "0.59918666", "0.59630746", "0.59442747", "0.59405...
0.6030148
14
Called when the game has finished, and it's time to clean up additional state.
async onFinished() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function endGame() {\n resetMainContainer();\n loadTemplate(\"result\", displayResults);\n}", "endGame() {\n this.inProgress = false;\n this.currentPlayer = null;\n this.pendingChip = null;\n this.emit('game:end');\n this.type = null;\n if (this.debug) {\n this.columnHistory.length = 0;\...
[ "0.7195633", "0.7140694", "0.70558894", "0.69933915", "0.6966859", "0.69601566", "0.6920891", "0.68985903", "0.68783474", "0.68227804", "0.6819679", "0.6806876", "0.6799985", "0.6725783", "0.6712221", "0.6709501", "0.6704419", "0.6691165", "0.6684729", "0.667125", "0.66670763...
0.0
-1
Called when the |player| has been added to the game.
async onPlayerAdded(player) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handlePlayerLoaded(player) {\n super.handlePlayerLoaded();\n game.send_command('player_ready', {});\n\n // This will make the new local player visible\n // to others connected people\n player.updateLocalPlayer();\n }", "createForPlayer(player) {\n if (this.#players_.has(player))\n ...
[ "0.7422615", "0.73508286", "0.73264337", "0.7301537", "0.7179022", "0.70411193", "0.7002944", "0.6966703", "0.6903945", "0.68472505", "0.67780197", "0.67435896", "0.67305404", "0.67123663", "0.66976166", "0.66902316", "0.6655528", "0.66471636", "0.6630836", "0.661124", "0.661...
0.8176094
0
Called when the |player| has spawned in the game. They are already in the appropriate virtual world that has been assigned to the game, but not in any particular interior. When a countdown has been configured for this game, a personalized experience will be included for the player in the |countdown| argument, which wou...
async onPlayerSpawned(player, countdown) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function spawnPlayer() {\n\t// Check that the player can spawn (has more lives)\n\t gameObject.GetComponent(GameManagerScript).numOfEnemies--;\n\n\tvar lives = gameObject.GetComponent(PlayerStats2D).lives;\n\tvar playerAlive = gameObject.GetComponent(PlayerStats2D).playerAlive;\n\tvar baseAl...
[ "0.5699496", "0.55933756", "0.5585956", "0.55515176", "0.5492756", "0.5491698", "0.5491074", "0.5398021", "0.53937954", "0.5346532", "0.53207314", "0.5309306", "0.52533346", "0.5228259", "0.5214434", "0.51846546", "0.5183214", "0.5169819", "0.5165787", "0.51623565", "0.515866...
0.76614785
0
Called when the |player| has either died, or been killed by the |killer| when that has been set. The |reason| indicates the death reason as to why they died.
async onPlayerDeath(player, killer, reason) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setPlayerDead(playerID, reason) {\n\t\tthis.stage.removePlayer(playerID, reason);\n\t}", "function playerDeath(player, cause) {\n this.player.kill();\n this.player.x = this.characterX;\n this.player.y = this.characterY;\n playerLives--;\n this.death.play();\n this.livesCounter.text = '= ' + pla...
[ "0.6744349", "0.6424237", "0.616882", "0.5805107", "0.57822585", "0.5708266", "0.5676456", "0.55478776", "0.5495698", "0.53625226", "0.5359922", "0.53292644", "0.53102034", "0.5307473", "0.53063476", "0.53055376", "0.52662724", "0.5262992", "0.5236467", "0.52296954", "0.52146...
0.7114303
0
Called when the |player| has been removed from the game.
async onPlayerRemoved(player) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onPlayerRemoved(player) {\n if (this.#teamAlpha_.has(player)) {\n this.#teamAlphaScore_ -= this.#teamAlpha_.get(player);\n this.#teamAlpha_.delete(player);\n }\n \n if (this.#teamBravo_.has(player)) {\n this.#teamBravoScore_ -= this.#teamBravo_.get(playe...
[ "0.79042166", "0.7622041", "0.74461454", "0.70330465", "0.70116866", "0.6927431", "0.6905313", "0.6846265", "0.6831715", "0.6801443", "0.6784243", "0.6765194", "0.6703555", "0.66970086", "0.66416353", "0.6555883", "0.6536205", "0.6536118", "0.653532", "0.653071", "0.653071", ...
0.7735721
1
CSS TRANSITION SUPPORT (Shoutout: ============================================================
function transitionEnd() { var el = document.createElement('bootstrap') var transEndEventNames = { WebkitTransition : 'webkitTransitionEnd', MozTransition : 'transitionend', OTransition : 'oTransitionEnd otransitionend', transition : 'transitionend' } for (var nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "turnOn() {\n this.wrapper.style[Modernizr.prefixed('transition')] = Modernizr.prefixed('transform') + ' .25s';\n return this;\n }", "function reverseTranslate(newFrom){return $animateCss(target,{to:newFrom||from,addClass:options.transitionOutClass,removeClass:options.transitionInClas...
[ "0.6392744", "0.6336694", "0.61152184", "0.603246", "0.5985097", "0.5920243", "0.589604", "0.58891743", "0.58410776", "0.5778032", "0.5748832", "0.5748832", "0.57402384", "0.57361704", "0.5695837", "0.5676943", "0.5676943", "0.5676943", "0.5670192", "0.5670192", "0.5670192", ...
0.0
-1
ALERT PLUGIN DEFINITION =======================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new Alert(this))) if (typeof option == 'string') data[option].call($this) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.alert');if(!data)$this.data('bs.alert',data=new Alert(this));if(typeof option=='string')data[option].call($this);});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.aler...
[ "0.66825145", "0.66825145", "0.652528", "0.64891756", "0.64770555", "0.6476156", "0.633078", "0.633078", "0.633078", "0.633078", "0.6320177", "0.6313426", "0.6313426", "0.6313426", "0.6313426", "0.6313426", "0.6306269", "0.62964594" ]
0.0
-1
BUTTON PLUGIN DEFINITION ========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.button') var options = typeof option == 'object' && option if (!data) $this.data('bs.button', (data = new Button(this, options))) if (option == 'toggle') data.toggle() el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.button');var options=(typeof option===\"undefined\"?\"undefined\":_typeof2(option))=='object'&&option;if(!data)$this.data('bs.button',data=new Button(this,options));if(option=='toggle')data.toggle();else if(option)data.se...
[ "0.74372506", "0.74121296", "0.6890832", "0.6850591", "0.68374854", "0.6800628", "0.6800628", "0.6800628", "0.6800628", "0.6800628", "0.67828363", "0.67828363", "0.67828363", "0.67828363", "0.67719966", "0.67319006", "0.6715987", "0.6715987", "0.6715987", "0.6715987", "0.6706...
0.0
-1
CAROUSEL PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.carousel') var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) var action = typeof option == 'string' ? option : options.slide if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option) {\n return this.each(function () {\n var $this = $(this)\n var data = $this.data('bs.carasel')\n var options = $.extend({}, Carasel.DEFAULTS, $this.data(), typeof option == 'object' && option)\n var action = typeof option == 'string' ? opti...
[ "0.6379598", "0.6264771", "0.6262725", "0.6262725", "0.6262722", "0.6258606", "0.61864763", "0.6170344", "0.61654943", "0.610548", "0.6006559", "0.59945756", "0.59945756", "0.59945756", "0.59945756", "0.5990424", "0.59875757", "0.58972824", "0.58782446", "0.58704406", "0.5851...
0.0
-1
COLLAPSE PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.collapse') var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) if (!data && options.toggle && /show|hide/.test(option)) options.toggle = f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "collapseMenu() {\r\n\t}", "function Plugin(option) {\n\t return this.each(function () {\n\t var $this = $(this)\n\t var data = $this.data('bs.collapse')\n\t var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)\n\t\n\t if (!data && options.to...
[ "0.6486069", "0.6295509", "0.6237517", "0.62355655", "0.62355655", "0.62355655", "0.6226327", "0.6226327", "0.6226327", "0.6226327", "0.6226327", "0.6119056", "0.61182743", "0.61182743", "0.61182743", "0.61182743", "0.61182743", "0.61182743", "0.61182743", "0.61182743", "0.61...
0.0
-1
DROPDOWN PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.dropdown') if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) if (typeof option == 'string') data[option].call($this) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.dropdown');if(!data)$this.data('bs.dropdown',data=new Dropdown(this));if(typeof option=='string')data[option].call($this);});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data...
[ "0.68540573", "0.68540573", "0.6542041", "0.63469607", "0.6314009", "0.6314009", "0.6314009", "0.6314009", "0.6314009", "0.629638", "0.629638", "0.629638", "0.629638", "0.629638", "0.6274084", "0.6171628", "0.6125852", "0.61163723", "0.61163723", "0.6078199", "0.6062121", "...
0.0
-1
MODAL PLUGIN DEFINITION =======================
function Plugin(option, _relatedTarget) { return this.each(function () { var $this = $(this) var data = $this.data('bs.modal') var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) if (!data) $this.data('bs.modal', (data = new Modal(this, options...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var options=$.extend({},Modal.DEFAULTS,$this.data(),(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option);if(!data)$this.data('bs.modal',data=new Modal(this,options));if(typeo...
[ "0.7613195", "0.76106924", "0.70632553", "0.6971759", "0.6971759", "0.6971759", "0.6971759", "0.6971759", "0.696315", "0.6952324", "0.6952324", "0.6952324", "0.6952324", "0.6952324", "0.6940254", "0.6925037", "0.68679523", "0.68679523", "0.68679523", "0.68679523", "0.68679523...
0.0
-1
TOOLTIP PLUGIN DEFINITION =========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.tooltip') var options = typeof option == 'object' && option if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_addTooltips() {\n $(this.el.querySelectorAll('[title]')).tooltip({\n delay: { show: 500, hide: 0 }\n });\n }", "function initInstanceInfoTooltip() {\n jQuery('#instance-tooltip').tooltip();\n}", "get tooltip() {}", "function tooltips() {\r\n\t$('.tooltip-link')...
[ "0.7193489", "0.7177543", "0.71230096", "0.7107687", "0.7008811", "0.69535863", "0.6937391", "0.6877154", "0.685422", "0.68206614", "0.6799643", "0.6799365", "0.6754513", "0.6752117", "0.6705143", "0.6687539", "0.6659539", "0.66462636", "0.6641098", "0.66409045", "0.66404915"...
0.0
-1
POPOVER PLUGIN DEFINITION =========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.popover') var options = typeof option == 'object' && option if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.popover', (data = new Popover(this, option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PopoverConfig() { }", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.popover');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data&&/destroy|hide/.test(option))return;if(!data)$this.data('bs.popover',data=new Po...
[ "0.65172714", "0.6155215", "0.614206", "0.60616994", "0.6005223", "0.59905416", "0.59692305", "0.58698756", "0.58214915", "0.58214915", "0.5795073", "0.5791303", "0.5788668", "0.57536405", "0.5745262", "0.572578", "0.5721664", "0.57004213", "0.5683987", "0.5673775", "0.564506...
0.0
-1
SCROLLSPY CLASS DEFINITION ==========================
function ScrollSpy(element, options) { this.$body = $(document.body) this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) this.options = $.extend({}, ScrollSpy.DEFAULTS, options) this.selector = (this.options.target || '') + ' .nav li > a' this.offsets ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set scrolling(scrolling) {\n this._scrolling = scrolling;\n }", "function ScrollPosition() {}", "constructor() {\n this.instance = createScrollBar();\n }", "get scrollTarget(){return this.$.scrollable}", "constructor(props){\n super(props);\n this.state = {\n ...
[ "0.6424849", "0.6409387", "0.63328534", "0.6303255", "0.62154484", "0.6214183", "0.6214183", "0.6214183", "0.6214183", "0.6203554", "0.6202512", "0.61928904", "0.61734974", "0.6135548", "0.6109564", "0.6094813", "0.6077772", "0.6066652", "0.6066099", "0.6064882", "0.6058574",...
0.0
-1
SCROLLSPY PLUGIN DEFINITION ===========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.scrollspy') var options = typeof option == 'object' && option if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) if (typeof option == 'string') data[op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.scrollspy');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data)$this.data('bs.scrollspy',data=new ScrollSpy(this,options));if(typeof option=='string')data[option]();});}", "...
[ "0.6854317", "0.6835888", "0.6574524", "0.6469166", "0.6357787", "0.6308153", "0.62861264", "0.6273556", "0.62687165", "0.6192112", "0.6192112", "0.6192112", "0.6192112", "0.6183829", "0.6172839", "0.6162308", "0.6159222", "0.6159222", "0.6159222", "0.6159222", "0.6159222", ...
0.0
-1
TAB PLUGIN DEFINITION =====================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.tab') if (!data) $this.data('bs.tab', (data = new Tab(this))) if (typeof option == 'string') data[option]() }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this.data('bs.tab',data=new Tab(this));if(typeof option=='string')data[option]();});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this...
[ "0.74222374", "0.74222374", "0.692559", "0.68413377", "0.68389773", "0.68262935", "0.667987", "0.667987", "0.667987", "0.667987", "0.66649354", "0.6643321", "0.6643321", "0.6643321", "0.6643321", "0.6643321", "0.66032135", "0.6584301", "0.65660053", "0.6557222", "0.65411276",...
0.0
-1
AFFIX PLUGIN DEFINITION =======================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.affix') var options = typeof option == 'object' && option if (!data) $this.data('bs.affix', (data = new Affix(this, options))) if (typeof option == 'string') data[option]() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.affix');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data)$this.data('bs.affix',data=new Affix(this,options));if(typeof option=='string')data[option]();});}", "function Plu...
[ "0.64124763", "0.63943565", "0.59138745", "0.59138745", "0.59138745", "0.59138745", "0.5906964", "0.58628374", "0.58628374", "0.585848", "0.58560807", "0.58560807", "0.58560807", "0.58560807", "0.58560807", "0.583064", "0.57849145", "0.57422173" ]
0.0
-1
Hsla conversions adapted from:
function hue2rgb( p, q, h ) { h = ( h + 1 ) % 1; if ( h * 6 < 1 ) { return p + ( q - p ) * h * 6; } if ( h * 2 < 1 ) { return q; } if ( h * 3 < 2 ) { return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6; } return p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "asHSL(ao) {\r\n return \"hsla(\" + this.h + \",\" + this.s + \"%,\" + this.l + \"%,\" + ((ao == undefined) ? this.a : ao) + \")\";\r\n }", "function toHsla(color) {\n return hsla.apply(void 0, _toConsumableArray(parseToHsla(color)));\n}", "get hsla() {\n let [r, g, b] = Color.RGBToHSL(this.r, thi...
[ "0.7133919", "0.6777103", "0.6756517", "0.6323499", "0.6226175", "0.61585385", "0.61223394", "0.60979325", "0.60345244", "0.6014705", "0.59953487", "0.5991524", "0.5911918", "0.59083855", "0.5854398", "0.5845574", "0.5794395", "0.57931525", "0.5763595", "0.5761861", "0.575987...
0.0
-1
Return an effect options object for the given parameters:
function _normalizeArguments( effect, options, speed, callback ) { // Allow passing all options as the first parameter if ( $.isPlainObject( effect ) ) { options = effect; effect = effect.effect; } // Convert to an object effect = { effect: effect }; // Catch (effect, null, ...) if ( options == null ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _normalizeArguments(effect,options,speed,callback){// Allow passing all options as the first parameter\nif($.isPlainObject(effect)){options=effect;effect=effect.effect;}// Convert to an object\neffect={effect:effect};// Catch (effect, null, ...)\nif(options==null){options={};}// Catch (effect, callback)\n...
[ "0.63472855", "0.63472855", "0.63472855", "0.6346786", "0.6341819", "0.6339104", "0.63372725", "0.6305787", "0.62797207", "0.6255987", "0.62537163", "0.62537163", "0.62537163", "0.62537163", "0.62537163", "0.62537163", "0.62537163", "0.62537163", "0.62537163", "0.62537163", "...
0.6282646
19