query
stringlengths
9
34k
document
stringlengths
8
5.39M
negatives
listlengths
19
20
metadata
dict
on change role user click
function onChangeRoleUserClick() { $('#modal-change-role').modal('show'); let vSelectedRow = $(this).parents('tr'); let vSelectedData = gCustomerTable.row(vSelectedRow).data(); gCustomerId = vSelectedData.id; }
[ "function ChangeUserRole(){\n\t\n\tCURRENT_ROLE = $('#' + USER_ROLE).val();\n\t\n\tAuthentificate();\n\t\n}", "function roleClick(el) {\n //console.log(el.val());\n updateUserRole(el);\n}", "function updateRole() {\n\n}", "function selectRole(role) {\n vm.role = role;\n vm.user.role_id = role.id;\n }", "function selectRole($event) {\n\t\t\t$event.preventDefault();\n\t\t\tModalSelect.show({\n\t\t\t\titems: RotaRole.$find({orderBy: 'title'}),\n\t\t\t\tselected: vm.rota.role,\n\t\t\t\ttitle: 'Select Role',\n\t\t\t\tnameKey: 'title',\n\t\t\t\tcallback: function (value) {\n\t\t\t\t\tvm.rota.role = value;\n\t\t\t\t\t_getRel('role');\n\t\t\t\t}\n\t\t\t}, this);\n\t\t}", "callbackRoleChange(projectNo, userNo, roleNo) {\n this.props.callbackProjectSetting.changeRole(projectNo, userNo, roleNo);\n }", "changeRole(newrole, Auth) {\n \n\n if (newrole) {\n Auth.changeRole(newrole)\n .then(() => {\n // var message = 'Added your safety video score successfully.';\n console.log('Success! changed role to coord', $scope.person);\n\n })\n .catch(() => {\n \n console.log('error!!!!!! hmm... didnt change role from admin.controller.js');\n \n // message = '';\n });\n } // closing of newrole if statement\n }", "function changeRole(){\n\trole = $(\"#role\").val();\n\n\tif (role==\"Host Site Coordinator\"){\n\t\tdocument.getElementById(\"associated-hostsite-area\").style.display = 'block';\n\t}\n\telse{\n\t\t$(\"#associated-site\").val(\"--Select--\")\n\t\tdocument.getElementById(\"associated-hostsite-area\").style.display = 'none';\n\t}\n}", "function adminRolesChangedHandler() {\n\tlogger('TODO implement Start button disabling based on role checks');\n}", "userRole() {\n let ur = getQueryParams('ur');\n if (ur) {\n switch (ur) {\n case '1':\n // Session.set('userRole', 'Developer');\n localStorage['userRole'] = 'Developer';\n break;\n case '2':\n // Session.set('userRole', 'Product Owner');\n localStorage['userRole'] = 'Product Owner';\n break;\n case '5':\n // Session.set('userRole', 'CTO');\n localStorage['userRole'] = 'CTO';\n break;\n }\n }\n let role = 'Select a role'\n // if (Session.get('userRole')) {\n // role = Session.get('userRole')\n // $('.dropdown-menu li').find(role).parent().addClass('active')\n // } else {\n // Session.set('userRole', role);\n // }\n if (localStorage.userRole) {\n role = localStorage.userRole\n $('.dropdown-menu li').find(role).parent().addClass('active')\n } else {\n localStorage['userRole'] = role;\n }\n return role;\n }", "function saveUserRole() {\n\t\t\tdailyMailScanDataService.getUserRole()\n\t\t\t\t.then(function (response) {\n\t\t\t\t\t//self.userRole=\"LexviasuperAdmin\";\n\t\t\t\t\tself.userRole = response.data.role;\n\t\t\t\t});\n\n\t\t}", "function chooseRole(rle) {\n\trole = rle;\n\tdocument.getElementById(\"roledropdown\").classList.toggle(\"show\");\n\tdocument.getElementById(\"role\").innerHTML = role;\n}", "chooseRole(role) {\n this.props.dispatch({type: \"NEW_REACTION_ROLE_SELECT\", data: role});\n }", "function toggleUserRoleVisibility() {\n\tif (currentUserRole == null) {return;}\n\tif (dx_admin_roles.includes(currentUserRole.toLowerCase())) {\n\t\t$('.administrator-visible').removeClass(\"user-role-visible\");\n\t} else {\n\t\t$('.'+currentUserRole.toLowerCase()+'-visible').removeClass(\"user-role-visible\");\n\t}\n}", "function handleProviderRole(e) {\n setProviderRole(e.target.value);\n }", "toggleRole() {\n if(this.role == 'Manager') {\n this.role = 'Employee';\n this.employee = this.tempEmployee;\n this.editEmployee = this.employee;\n } else {\n this.role = 'Manager';\n }\n }", "function setListenerOnChangeRoleButton() {\n $(\".buttonChangeRole\").on('click', function() {\n // changing modal title\n $(\"#titleModalRole\").html(\"Changing role for <b>\" + $(this).attr(\"player_username\") + \"</b>\");\n\n // setting player id\n $(\"#selectRole\").attr(\"player_id\", $(this).attr(\"player_id\"));\n });\n}", "function editSelectedRole() {\n if(selectedRole == null || state == STATE_ADDING_NEW_ROLE) {\n view.alertDialog(I18N.message(\"perc.ui.role.controller@Select Role to Edit\"), I18N.message(\"perc.ui.role.controller@Select Role to Edit\"));\n return;\n }\n state = STATE_EDITING_CURRENT_ROLE;\n view.showSelectedRoleEditor();\n }", "function onConfirmChangeRoleClick() {\n let vRoleId = $('#select-change-role').val();\n if (vRoleId == 0) {\n $('#modal-error').modal('show');\n $('#error').text(`Chọn quyền để thay đổi cho user`);\n } else {\n $.ajax({\n url: `${G_BASE_URL}/roles/${vRoleId}/customers-set-role/${gCustomerId}`,\n method: `PUT`,\n headers: { Authorization: `Token ${gUserToken}` },\n contentType: 'application/json; charset=utf-8',\n dataType: `json`,\n success: (res) => {\n $('#modal-change-role').modal('hide');\n $('#select-change-role').val(0);\n $('#modal-success').modal('show');\n $('#success').text('Bạn đã thay đổi thành công quyền của user');\n getCustomerData(vRoleId);\n },\n error: (e) => {\n $('#modal-error').modal('show');\n $('#error').text(`Bạn không có quyền thực hiện thao tác này`);\n },\n });\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates nodes for this html value
function createNodesFromHtml(value) { if (!value || value === '') return [ document.createTextNode('') ]; var nodes = []; var childNodes = []; var el = $('<div/>'); el.html(value); childNodes = el[0].childNodes; for (var i = 0; i < childNodes.length; i++) { nodes.push(childNodes[i].cloneNode(true)); } return nodes; }
[ "function build_node(tag_name, val) {\n\t\t\tvar\n\t\t\ttag_name = tag_name.replace(/[^\\w\\-_]/g, '-').replace(/-{2,}/g, '-').replace(/^[^a-z]/, function($0) { return 'node-'+$0; }),\n\t\t\tpadder = new Array(depth + 2).join('\\t'),\n\t\t\tnode = '\\n'+padder+'<'+tag_name+'>\\n'+padder+'\\t';\n\t\t\tnode += typeof val != 'object' ? val : json_to_xml(val, null, depth + 1);\n\t\t\treturn node + '\\n'+padder+'</'+tag_name+'>\\n';\n\t\t}", "function build_node(tag_name, val, link) {\r\n\t\ttag_name = tag_name.toString().replace(/[^\\w\\-_]/g, '-').replace(/-{2,}/g, '-').replace(/^[^a-z]/, () => 'item');\r\n\t\tlet node = '<'+tag_name+(link ? ' link=\"'+link+'\"' : '')+'>';\r\n\t\tif (val) node += !['Object', 'Array'].includes(val.constructor.name) ? val : jpath.obj_to_xml(val, depth + 1, addLinks, map);\r\n\t\treturn node + '</'+tag_name+'>';\r\n\t}", "function createNode(val) {\n var divNode = document.createElement(\"div\");\n divNode.innerHTML = val;\n return divNode;\n}", "function WrappedParsedTreeNodes(value) {\n this.value = value;\n }", "function createNode(value){\n this.value = value;\n this.right = null;\n this.left = null;\n this.parent = null;\n return this;\n}", "function createNodeForPivotArray(newNodeValue) {\n\tnodeID = \"node\" + numberOfNodes.toString() + \"_pivot\";\n\tnode_html_main_div = '<div name=\"node\" onclick=\"selectNode(\\'' + nodeID + '\\')\" class=\"w-16 text-2xl py-4 my-2 mx-2 text-center bg-green-200 border-solid border-2 border-green-400\" id=\"' + nodeID + '\">';\n\tnode_html_closing_tags = \"</div>\"\n\treturn htmlToElement(node_html_main_div + newNodeValue.toString() + node_html_closing_tags);\n}", "function ValueNode(nodeType, value) {\n return {\n nodeType: nodeType,\n value: value,\n toString: function() { return fmt('{}({!r})', this.nodeType, this.value); }\n };\n }", "putNodeValue() {\n this.node.createSpecificNode(this.keys, this.eventKeyup);\n }", "function getColumnValueNode()\n{\n return new ASPNetColumnValueNode();\n}", "function createNodesFromDOM(){\n\t\n\t// initialise with values\n\tvar elements = $('.element');\n\tvar listOfNodes = [];\n\tvar elementID = '';\n\tvar row = 0, col = 0, node = null;\n\n\t// go to each graph element in the dom and make a node list\n\tfor(var nodeValue=0; nodeValue<elements.length; nodeValue++){\n\t\t\n\t\telementID = elements[nodeValue].id;\n\t\t[row, col] = getNodePositionFromID(elementID);\n\t\t\n\t\tnode = new Node(row, col, nodeValue, elements[nodeValue]);\n\t\tlistOfNodes.push(node);\n\t}\n\treturn listOfNodes;\n}", "function createNode(name, labels, values) {\n var node = document.createElement(name);\n for(var i = 1; i < values.length; i++) {\n var e = document.createElement(labels[i-1]);\n e.appendChild(document.createTextNode(values[i]));\n node.appendChild(e);\n }\n return node;\n}", "function DomParser() {\n\n /**\n * Parses items from tico-v text nodes.\n */\n let textParser = new TextParser();\n let attributeRegexes = [\"tv-foreach\", \"tv-true\", \"tv-not-true\", \"(tv-value)-([a-z0-9_\\-]+)\", \"(tv-).*\"].map(regex => new RegExp(regex, 'i'));\n let parentId = Math.random();\n\n /**\n * Add a variable extracted from a node to the variables object\n * \n * @param {Map} variables \n * @param {string} variable \n * @param {object} nodeDetails \n */\n function addNodeToVariable(variables, variable, nodeDetails) {\n if (!variables.has(variable)) {\n variables.set(variable, []);\n }\n variables.get(variable).push(nodeDetails);\n }\n\n /**\n * Merge one set of variables into another\n * \n * @param {Map} variables \n * @param {Map} mergedVariables \n */\n function mergeVariables(variables, mergedVariables) {\n mergedVariables.forEach((details, variable) => {\n if(variables.has(variable)) {\n variables.get(variable).concat(details);\n } else {\n variables.set(variable, details)\n }\n });\n }\n\n /**\n * Parse a given node for variables in its attributes.\n * Extract these nodes for later use\n * \n * @param {Node} node \n * @param {Map} variables \n */\n function parseAttributes(node, variables, bindingDetails, path) {\n let parentDetected = false;\n let attributeVariables = new Map();\n\n for (let i in node.attributes) {\n let attribute = node.attributes[i];\n for (let regex of attributeRegexes) {\n let match = regex.exec(attribute.name);\n if (!match) continue;\n if (match[1] === 'tv-value') {\n parsed = textParser.parse(attribute.value);\n attributeNode = document.createAttribute(match[2]);\n node.setAttributeNode(attributeNode);\n parsed.variables.forEach(variable => {\n addNodeToVariable(attributeVariables, variable, { node: attributeNode, type: 'attribute', name: match[2], structure: parsed.structure, path: path })\n })\n } else if (match[0] === 'tv-true') {\n addNodeToVariable(attributeVariables, attribute.value, { node: node, type: 'truth', name: attribute.value, display: node.style.display, path: path })\n } else if (match[0] === 'tv-not-true') {\n addNodeToVariable(attributeVariables, attribute.value, { node: node, type: 'not-truth', name: attribute.value, display: node.style.display, path: path })\n } else if (match[0] == 'tv-foreach') {\n parentDetected = { \n template: node, \n type: 'foreach', \n parent: node.parentNode, \n name: attribute.value, \n variables: attributeVariables, \n callback: bindingDetails.onCreate && typeof bindingDetails.onCreate[attribute.value] === 'function' ? \n bindingDetails.onCreate[attribute.value] : false\n };\n \n addNodeToVariable(variables, attribute.value, parentDetected)\n }\n break;\n }\n }\n\n if(!parentDetected) {\n mergeVariables(variables, attributeVariables);\n }\n\n return parentDetected;\n }\n\n /**\n * Parse an element node and its children to find any text nodes or attributes that contain variables.\n * \n * @param {Node} node \n * @param {Map} variables \n */\n function parseNode(node, variables, bindingDetails, path) {\n let parentDetected = parseAttributes(node, variables, bindingDetails, path);\n \n if (parentDetected) {\n variables = parentDetected.variables;\n }\n\n let n = 1;\n node.childNodes.forEach((child, index) => {\n let parsed = [];\n\n if (child.nodeType == Node.TEXT_NODE) {\n parsed = textParser.parse(child.textContent);\n parsed.variables.forEach(variable => {\n addNodeToVariable(variables, variable, \n { \n node: child, \n type: 'text', \n structure: parsed.structure,\n path: path,\n index: index\n });\n });\n } else if (child.nodeType == Node.ELEMENT_NODE) {\n parseNode(child, variables, bindingDetails, `${path}${path == \"\" ? \"\" : \">\"}${child.nodeName}:nth-child(${n})`);\n n++;\n }\n });\n }\n\n /**\n * Parse a dom node and return a collection of variables their associated list of observers\n * and related dom manipulators.\n * @param {Node} node \n */\n this.parse = function (bindingDetails) {\n let variables = new Map();\n parseNode(bindingDetails.templateNode, variables, bindingDetails, \"\");\n return variables;\n }\n}", "function PHPColumnValueNode()\r\n{\r\n this.initialize();\r\n}", "function insert(value, nodes) {\n\t\tvar uid;\n\t\t\n\t\tif (value.nodeType && typeof (value.nodeName === 'string')) {\n\t\t\tnodes[uid = (+new Date()) + '' + Math.random()] = value;\n\t\t\t\n\t\t\treturn '<!--' + uid + '-->';\n\t\t\t\n\t\t} else {\n\t\t\treturn ('' + value).replace(/[<>\"']/g, function(chr) {\n\t\t\t\treturn '&#' + chr.charCodeAt(0) + ';';\n\t\t\t});\n\t\t}\n\t}", "function PHPColumnValueNode()\n{\n this.initialize();\n}", "function hc_nodevalue04() {\n var success;\n var doc;\n var newNode;\n var newValue;\n doc = load(\"hc_staff\");\n newNode = doc.doctype;\n\n \tassertTrue(\"docTypeNotNullOrDocIsHTML\",\n \n\t(\n\t(newNode != null)\n || \n\t(builder.contentType == \"text/html\")\n)\n);\n\n\tif(\n\t\n\t(newNode != null)\n\n\t) {\n\tassertNotNull(\"docTypeNotNull\",newNode);\nnewValue = newNode.nodeValue;\n\n assertNull(\"initiallyNull\",newValue);\n newNode.nodeValue = \"This should have no effect\";\n\n newValue = newNode.nodeValue;\n\n assertNull(\"nullAfterAttemptedChange\",newValue);\n \n\t}\n\t\n}", "function createElements(){\t\n\treturn{\n\t\t/*create diiferent elements required in slider*/\n\t\theading:document.createElement('h2'),\n\t\tdocfrag:document.createDocumentFragment(),\n\t\tfig:document.createElement('figure'),\n\t\timage:document.createElement('img'),\n\t\tfigcaption:document.createElement('figcaption'),\n\t\tnextbtn:document.createElement('button'),\n\t\tprevbtn:document.createElement('button')\n\t};\n}", "function createNodeHtml(html) {\t\t\t\r\n\tvar parser = new DOMParser();\r\n\tvar xmlDoc = parser.parseFromString(html, \"text/html\");\r\n\treturn xmlDoc.children[0].children[1].children[0]; // html/[head, body]\r\n}", "function Node(ndata, ndataKey, key, appendToEl, ndataValue, originalEl) {\n ndataKey = String(ndataKey)\n this.key = key || ''\n\n var genNode = (ndata, updateDom) => {\n if (isPrimitive(ndata) || Array.isArray(ndata) || ndata == null) {\n if (!this.el) {\n // first time create\n this.tag = ndataKey.slice(0, 2) == '$_' ? 'span' : 'div'\n this.el = document.createElement(this.tag)\n if (originalEl && originalEl.parentNode) {\n originalEl.parentNode.insertBefore(this.el, originalEl)\n safeRemove(originalEl)\n } else appendToEl && appendToEl.appendChild(this.el)\n originalEl = this.el\n key && this.el.classList.add(key)\n this.texts = {}\n this.childArr = []\n this.el.VNode = this\n if (isPrimitive(ndata)) {\n domUpdaters.createTexts(this, '$$', ndata)\n } else if (Array.isArray(ndata)) {\n this.arrStart = new Comment('arr start')\n this.arrEnd = new Comment('arr end')\n this.el.appendChild(this.arrStart)\n this.el.appendChild(this.arrEnd)\n this.arrUpdate = updateDom\n domUpdaters.$$arr(this)(this.el, ndata)\n }\n } else {\n // update\n if (isPrimitive(ndata)) {\n domUpdaters.texts('$$')(this.el, ndata)\n } else if (Array.isArray(ndata)) {\n domUpdaters.$$arr(this)(this.el, ndata)\n }\n }\n return\n }\n this.tag = (ndata && ndata.$tag) || (ndataKey.slice(0, 2) == '$_' ? 'span' : 'div')\n this.el = document.createElement(this.tag)\n if (originalEl && originalEl.parentNode) {\n originalEl.parentNode.insertBefore(this.el, originalEl)\n safeRemove(originalEl)\n } else appendToEl && appendToEl.appendChild(this.el)\n originalEl = this.el\n key && this.el.classList.add(key)\n this.texts = {}\n this.childArr = []\n this.el.VNode = this\n for (var i in ndata) {\n let o = ndata[i]\n // skip handle null and undefined, but for boolean properties, treat them falsy\n if (i != '$if' && i != '$checked' && o == null) continue\n if (i[0] == '$') {\n //lightue directives\n if (i.slice(0, 2) == '$$') {\n var _depStashed = _dep\n _dep = null // avoid gather deps when getting oValue\n var oValue = typeof o == 'function' ? o() : o\n _dep = _depStashed\n if (i == '$$' && Array.isArray(oValue)) {\n this.arrStart = new Comment('arr start')\n this.arrEnd = new Comment('arr end')\n this.el.appendChild(this.arrStart)\n this.el.appendChild(this.arrEnd)\n this.arrUpdate = mapDom(o, this.el, domUpdaters.$$arr(this))\n } else if (isObj(oValue)) {\n this._addChild(o, i)\n } else if (isPrimitive(oValue)) {\n domUpdaters.createTexts(this, i, oValue)\n mapDom(o, this.el, domUpdaters.texts(i))\n }\n } else if (i.slice(0, 2) == '$_') {\n //span element shortcut\n this._addChild(o, i, hyphenate(i.slice(2)))\n } else if (i == '$if') {\n // conditionally switch between elem and its placeholder\n let bo = typeof o == 'function' ? () => Boolean(o()) : Boolean(o)\n mapDom(bo, this.el, domUpdaters.$if(key))\n } else if (i == '$class') {\n Object.keys(o).forEach((j) => {\n mapDom(o[j], this.el, domUpdaters.$class(hyphenate(j)))\n })\n } else if (i == '$value' && ['input', 'textarea', 'select'].indexOf(this.tag) > -1) mapDom(o, this.el, 'value')\n else if (i == '$checked' && this.tag == 'input') mapDom(o, this.el, 'checked')\n else if (i == '$cleanup') this.cleanup = o\n } else if (i[0] == '_') {\n mapDom(o, this.el, domUpdaters._(hyphenate(i.slice(1))))\n } else if (i.slice(0, 2) == 'on') this.el.addEventListener(i.slice(2), o)\n else this._addChild(o, i, hyphenate(i))\n }\n }\n\n if (typeof ndata == 'function') {\n mapDom(ndata, null, (el, v, updateDom) => {\n genNode(v, updateDom)\n })\n } else genNode(ndata)\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates database scheme and populates 'unis' table with the api response from
async function createDb() { const db = knex({ client: 'sqlite3', connection: () => ({ filename: './uni.db', }), useNullAsDefault: true }) const createUniTableCall = db.schema.createTable('unis', (table) => { table.increments('id') table.string('name') table.string('country') table.string('url') }) const createUserTableCall = db.schema.createTable('users', (table) => { table.increments('id') table.string('userId') table.string('email') table.string('password') }) const createFavoriteTableCall = db.schema.createTable( 'favorites', (table) => { table.increments('id') table.integer('uniId').references('id').inTable('unis') table.string('userId').references('userId').inTable('users') } ) const response = await axios.get('http://universities.hipolabs.com/search') const unis = response.data.map((row) => ({ country: row.country, name: row.name, url: row.web_pages[0], // assume we want the first webpage for now })) const dbCalls = [ createUniTableCall, createUserTableCall, createFavoriteTableCall, ] // https://stackoverflow.com/questions/25257754/sqlitetoo-many-terms-in-compound-select let i let j let temporary const chunk = 450 for (i = 0, j = unis.length; i < j; i += chunk) { temporary = unis.slice(i, i + chunk) dbCalls.push(db('unis').insert(temporary)) } try { // make db calls sequentially for (let idx = 0; idx < dbCalls.length; idx += 1) { await dbCalls[idx] } console.log('db tables created and unis populated') process.exit() } catch (err) { console.error(err) process.exit(1) } }
[ "function populateDB(){\n populateTableDocs();\n populateTableInvInd();\n populateTableTerms();\n }", "function createUserTable(){\n knex.select('*').from('userdetail')\n .then((data)=>{\n for(var i of data){\n userTable(i.email.split('@')[0]+i.password)\n // console.log(i.fullname+i.id)\n\n }\n })\n }", "_createTables() {\n const createShopsTablesSql = `\n CREATE TABLE shops(\n shop_id UUID NOT NULL PRIMARY KEY, \n shop_name TEXT UNIQUE NOT NULL, \n api_token UUID NOT NULL UNIQUE,\n phone TEXT NOT NULL, \n address TEXT NOT NULL\n );`;\n const createOrdersTableSql = `\n CREATE TABLE orders(\n order_id UUID NOT NULL PRIMARY KEY, \n shop_name TEXT NOT NULL,\n order_detail TEXT NOT NULL,\n customer_name TEXT NOT NULL,\n customer_phone TEXT NOT NULL, \n pickup_time DATETIME NOT NULL,\n status TEXT NOT NULL,\n FOREIGN KEY (\n shop_name\n )\n REFERENCES shops (shop_name)\n );`;\n this._db.serialize(() => {\n this._db.run(createShopsTablesSql);\n this._db.run(createOrdersTableSql);\n });\n }", "function createTables( mysql_conn )\n{\n\n\t//The following variables are SQL statements for creating the tables\n\t//for our database. \n\tlet microbilitesTbl = {\n\t\tname: 'microbialites', \n\t\tquery: SQL`CREATE TABLE microbialites( \n\t\t\tNorthing FLOAT, \n\t\t\tEasting FLOAT, \n\t\t\tSampleID varchar(20), \n\t\t\tMacrostructureType INT, \n MesostructureDesc INT, \n LaminaShape INT, \n LaminaInheritance INT);` \n\t}\n\n\tlet macrostructureDataTbl = {\n\t\tname: 'macrostructureData', \n\t\tquery: SQL`CREATE TABLE macrostructureData(\n\t\t\tMacrostructureID INT, \n\t\t\tMacrostructureType INT, \n\t\t\tComments varchar(100), \n\t\t\tWaypointID INT, \n SectionHeight INT, \n\t\t\tMegastructureType INT );` \n\t}\n\n\tlet macrostructureLocationsTbl = {\n\t\tname: 'macrostructureLocations', \n\t\tquery: SQL`CREATE TABLE macrostructureLocations(\n\t\t\tWaypointName INT, \n\t\t\tNorthing FLOAT, \n\t\t\tEasting FLOAT, \n\t\t\tDatum varchar(10), \n\t\t\tMacrostructureType INT, \n MacrostructureID INT,\n MegastructureType INT); ` \n\t}\n\n\t//TODO: Check datatypes of D,M,N,O,P,Q,R \n\tlet mesostructureDataTbl = {\n\t\tname: 'mesostructureData', \n\t\tquery: SQL`CREATE TABLE mesostructureData(\n\t\t\tSampleIDKey INT, \n\t\t\tSampleID varchar(20), \n\t\t\tSampleSize varchar(20),\n\t\t\tFieldDescription varchar(50), \n\t\t\tRockDescription varchar(2000),\n\t\t\tMesostructureDesc INT, \n LaminaShape INT, \n\t\t\tLaminaThickness FLOAT, \n MacrostructureID FLOAT, \n\t\t\tSynopticRelief FLOAT, \n Wavelength FLOAT, \n\t\t\tAmplitudeOrHeight INT, \n\t\t\tMesostructureTexture INT, \n MesostructureGrains INT, \n MesostructureTexture2 INT, \n Analyst1 INT, \n LaminaInheritance INT, \n MesoClotShape INT,\n MesoClotSize INT);`\n\t}\n\n\tlet photoLinksDataTbl = {\n\t\tname: 'photoLinksData', \n\t\tquery: SQL`CREATE TABLE photoLinksData(\n\t\t\tPhotoIDKey INT, \n SampleIDKey INT, \n PhotoLinkRelative2 varchar(300), \n OutcropPhoto BOOLEAN, \n Photomicrograph BOOLEAN, \n TSOverview BOOLEAN, \n\t\t\tCLImage BOOLEAN, \n OtherImage BOOLEAN, \n OtherDocument BOOLEAN, \n MacrostructureID INT, \n TSDescID INT, \n\t\t\tWaypointIDKey INT, \n SampleID varchar(20));` \n\t}\n\n\t//TODO: The date format in the CSV is backwards. \n\t//\t\tDatetime needs to be in the format of YYYYMMDD HH:MM:SS\n\tlet samplesForARCTbl = { \n\t\tname: 'samplesForARC',\n\t\tquery: SQL`CREATE TABLE samplesForARC(\n\t\t\tSampleID VARCHAR(20), \n Datum VARCHAR(20), \n\t\t\tUTMZone1 INT, \n UTMZone2 varchar(10), \n\t\t\tEasting FLOAT, \n Northing FLOAT, \n\t\t\tDateCollected DATETIME,\n\t\t\tMacrostructureType INT, \n MacrostructureDesc INT ); ` \n\t}\n\n\t//check datatype of C, .\n\tlet thinSectionDataTbl = { \n\t\tname: 'thinSectionData', \n\t\tquery: SQL`CREATE TABLE thinSectionData(\n\t\t\tTSDescID INT, \n\t\t\tSampleID VARCHAR(20),\n\t\t\tSubsample VARCHAR(10), \n SampleIDKey INT, \n\t\t\tTSDescription TEXT, \n\t\t\tPrimaryTexture INT, \n SecondaryTexture INT, \n Cement1 INT, \n Porosity1 INT, \n\t\t\tCement2 INT, \n Porosity2 INT, \n PorosityPercentEst INT, \n CementFill BOOLEAN, \n Mineralogy1 INT,\n Mineralogy2 INT,\n ClasticGrains1 INT,\n ClasticGrains2 INT\n ); `\n\t}\n\n\tlet thrombolitesOnlyTbl = {\n\t\tname: 'thrombolitesOnly', \n\t\tquery: SQL`CREATE TABLE thrombolitesOnly(\n\t\t\tNorthing FLOAT, \n Easting FLOAT, \n\t\t\tSampleID VARCHAR(20), \n\t\t\tMesostructureDesc INT ); `\n\t}\n\n\tvar tables = [microbilitesTbl, macrostructureDataTbl, macrostructureLocationsTbl, \n\t\tmesostructureDataTbl, photoLinksDataTbl, \n\t\tsamplesForARCTbl, thinSectionDataTbl, thrombolitesOnlyTbl];\n\n\n\t//where the queries are made. \n\tfor( let table of tables )\n\t{\n\t\t//console.log(table.query.sql); \n\t\tlet queryPromise = sendQuery(mysql_conn, table.query.sql ); \n\t\tqueryPromise.then( () => { console.log(\"Added table \" + table.name); }, queryPromiseReject ); \n\t}\n\n}", "initTables() {\n if (this.db) throw new Error('database already created');\n this.db = new SQL.Database();\n this.db.handleError = this.handleError;\n\n if (DEBUG_DATABASE) debugLog('making tables...');\n\n this.db.exec('CREATE TABLE IF NOT EXISTS PROJECTS (ID INTEGER PRIMARY KEY AUTOINCREMENT, CTIME DATETIME DEFAULT CURRENT_TIMESTAMP, MTIME DATETIME, ALTMD5 TEXT, POS INTEGER, NAME TEXT, JSON TEXT, THUMBNAIL TEXT, OWNER TEXT, GALLERY TEXT, DELETED TEXT, VERSION TEXT)\\n');\n this.db.exec('CREATE TABLE IF NOT EXISTS USERSHAPES (ID INTEGER PRIMARY KEY AUTOINCREMENT, CTIME DATETIME DEFAULT CURRENT_TIMESTAMP, MD5 TEXT, ALTMD5 TEXT, WIDTH TEXT, HEIGHT TEXT, EXT TEXT, NAME TEXT, OWNER TEXT, SCALE TEXT, VERSION TEXT)\\n');\n this.db.exec('CREATE TABLE IF NOT EXISTS USERBKGS (ID INTEGER PRIMARY KEY AUTOINCREMENT, CTIME DATETIME DEFAULT CURRENT_TIMESTAMP, MD5 TEXT, ALTMD5 TEXT, WIDTH TEXT, HEIGHT TEXT, EXT TEXT, OWNER TEXT, VERSION TEXT)\\n');\n\n\n this.db.exec('CREATE TABLE IF NOT EXISTS PROJECTFILES (MD5 TEXT PRIMARY KEY, CONTENTS TEXT)\\n');\n }", "async function fillDatabaseSilently() {\n logger.logger.info(\n \"Database is empty, loading incidents w/o posting to webhook\"\n );\n try {\n const json = await node_fetch\n .default(`${constants.API_BASE}/incidents.json`)\n .then((r) => r.json());\n const { incidents } = json;\n for (const incident of incidents.reverse()) {\n logger.logger.log(\"new\", `new incident: ${incident.id}`);\n await incidentData.set(incident.id, {\n incidentID: incident.id,\n lastUpdate: luxon.DateTime.now().toISO(),\n resolved:\n incident.status === \"resolved\" || incident.status === \"postmortem\",\n });\n }\n } catch (error) {\n logger.logger.error(`error during fetch and update routine:\\n`, error);\n }\n}", "function initializeData(){\n\t// Retrieving database schema to insert into data array\n\tdb.query(\"show tables\", function (err, result, fields) { // Retrieve the name of the tables in the database\n\t\t//if (err) throw err;\n\t\tresult.forEach(function(element) {\n\t\t\tvar tables = []; // 1 array corresponds to 1 table inside the database\n\t\t\tdb.query(\"describe \" + element.Tables_in_zoo, function (err, result, fields) { // Retrieve the name of the columns in said table\n\t\t\t\tif (err) throw err;\n\t\t\t\ttables.push(element.Tables_in_zoo); // Pushing the name of the table \n\t\t\t\tresult.forEach(function(element) {\n\t\t\t\t\ttables.push(element.Field);\t// Pushing the name of the columns\n\t\t\t\t});\n\t\t\t\tdata.push(tables); // Pushing the table into data array\n\t\t\t});\t\n\t\t\t\n\t\t});\n\t\tconsole.log('Retrieving database schema: success !');\n\t});\n}", "function createNBATeamsTable() {\n //Check to see if table exist, if it does not, run the script, if it does, do not run script.\n connection.query(\"SELECT 1 FROM nba_teams LIMIT 1\", function (err, result, fields) {\n if (err) {\n //If there is an error, it means that the table does not exist yet.\n console.log(\"Warning: Did not find nba_teams table in database.\\nCreating new table....\"); //Nest 1: API Connection\n //Now that we know that no table exist, connect to the API.\n\n _axios.default.get(\"http://localhost:8181/teams\").then(function (teams) {\n //If we get a 200 status connection, proceed.\n if (teams.status === 200) {\n //Populate our previously declared nbaTeams variable with an array of teams.\n nbaTeams = teams.data; //Create a variable that will give us the column names for our prepared query statement.\n //Object.keys will return the column names for our nba teams data gathered by our API get call.\n\n var teamColumnNames = Object.keys(nbaTeams[0]); //We need to know what is the name of the last column in our NBA teams Table\n //We use the teamColumnNames variable from before\n //Gets the last index of the teamColumnNames and returns the name of the last element in the array\n //We will use this for our query to know when to not add a comma \",\" to our query or mysql will return an error\n\n var nbaTeamsTableLastColumnName = teamColumnNames[teamColumnNames.lastIndexOf(teamColumnNames[teamColumnNames.length - 1])]; //Start the query to populate and insert all 30 standard NBA teams\n\n var nbaTeamsPopulateQuery = \"\";\n\n _lodash.default.each(nbaTeams, function (team) {\n nbaTeamsPopulateQuery += \"INSERT INTO nba_teams (\";\n\n _lodash.default.each(teamColumnNames, function (columnName) {\n if (columnName === nbaTeamsTableLastColumnName) {\n nbaTeamsPopulateQuery += \"\".concat(columnName);\n nbaTeamsPopulateQuery += \") VALUES (\";\n } else {\n nbaTeamsPopulateQuery += \"\".concat(columnName, \", \");\n }\n });\n\n nbaTeamsPopulateQuery += \"\".concat(team.isNBAFranchise, \", \");\n nbaTeamsPopulateQuery += \"\".concat(team.isAllStar, \", \");\n nbaTeamsPopulateQuery += \"'\".concat(team.city, \"', \");\n nbaTeamsPopulateQuery += \"'\".concat(team.altCityName, \"', \");\n nbaTeamsPopulateQuery += \"'\".concat(team.fullName, \"', \");\n nbaTeamsPopulateQuery += \"'\".concat(team.tricode, \"', \");\n nbaTeamsPopulateQuery += \"\".concat(team.teamId, \", \");\n nbaTeamsPopulateQuery += \"'\".concat(team.nickname, \"', \");\n nbaTeamsPopulateQuery += \"'\".concat(team.urlName, \"', \");\n nbaTeamsPopulateQuery += \"'\".concat(team.confName, \"', \");\n nbaTeamsPopulateQuery += \"'\".concat(team.divName, \"'\");\n nbaTeamsPopulateQuery += \"); \";\n });\n\n console.log(nbaTeamsPopulateQuery); //Create a prepared query, \"??\" will be populated by an array full of column names.\n\n var nbaTeamsTableQuery = \"CREATE TABLE nba_teams\\n (\\n ?? BOOL,\\n ?? BOOL,\\n ?? VARCHAR(60),\\n ?? VARCHAR(20),\\n ?? VARCHAR(60),\\n ?? VARCHAR(4),\\n ?? INT,\\n ?? VARCHAR(20),\\n ?? VARCHAR(20),\\n ?? VARCHAR(12),\\n ?? VARCHAR(20),\\n KEY(teamId)\\n );\";\n connection.query(nbaTeamsTableQuery, teamColumnNames, function (error, result, fields) {\n if (error) {\n console.error(\"There was an error creating the nba_teams table.\\n\".concat(error));\n connection.end();\n } else {\n console.log(\"Created nba_teams table in mysql DB.\");\n connection.query(nbaTeamsPopulateQuery, function (error, result, fields) {\n if (error) {\n console.log(\"There was an error populating the nba_teams table.\\n\".concat(error));\n connection.end();\n } else {\n console.log(\"nba_teams table has been added and populated!\");\n connection.end();\n }\n });\n }\n });\n } //If we get an error connecting to API, output error.\n else {\n console.error(\"Error connecting to the NBA teams api route.\\n\".concat(teams.statusText));\n connection.end();\n }\n });\n } else {\n console.log(\"Found nba_teams table in database.\\nPlease remove nba_teams table and rerun script.\");\n connection.end();\n }\n });\n} //populateTeamsTable()", "async function main() {\n console.info(`Initializing database on ${connectionString}`);\n\n const check = await query(`SELECT EXISTS (\n SELECT 1 \n FROM pg_catalog.pg_class c\n JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace\n WHERE c.relname = '${DB_CONSTANTS.EVENTS_DB}' \n );`)\n \n if (check.rows[0].exists) {\n const res = await query(`SELECT * FROM ${DB_CONSTANTS.EVENTS_DB}`)\n let tables\n for(i = 0; i< res.rows.length; i++){\n tables+=res.rows[i].ticketstablename\n if(i < res.rows.length -1){\n tables += ','\n }\n }\n \n await query(`DROP TABLE IF EXISTS ${tables}`)\n }\n\n await query(`DROP VIEW IF EXISTS ${DB_CONSTANTS.EVENTS_INFO_VIEW}`)\n // drop tables if exists\n await query(`DROP TABLE IF EXISTS ${DB_CONSTANTS.SEARCH_EVENTS_DB}, ${DB_CONSTANTS.SPEAKERS_CONNECT_DB}, ${DB_CONSTANTS.SPEAKERS_DB}, ${DB_CONSTANTS.TICKETS_TYPE_DB}, \n ${DB_CONSTANTS.EVENTS_DB},${DB_CONSTANTS.CITIES_DB}, ${DB_CONSTANTS.COUNTRIES_DB}, ${DB_CONSTANTS.TAGS_DB}, ${DB_CONSTANTS.TAGS_CONNECT_DB}, ${DB_CONSTANTS.ORGANIZATIONS_DB}, ${DB_CONSTANTS.CATEGORIES_DB}`);\n console.info('Tables deleted');\n\n // create tables from schemas\n try {\n const categories = await readFileAsync('./sql/categories.sql');\n const countries = await readFileAsync('./sql/countries.sql');\n const cities = await readFileAsync('./sql/cities.sql');\n const events = await readFileAsync('./sql/events.sql');\n const ticketTypes = await readFileAsync('./sql/ticketType.sql')\n const tags = await readFileAsync('./sql/tags.sql')\n const tagsConnect = await readFileAsync('./sql/tagsConnect.sql')\n const speakers = await readFileAsync('./sql/speakers.sql');\n const speakersConnect = await readFileAsync('./sql/speakersConnect.sql');\n const organizations = await readFileAsync('./sql/organizations.sql');\n const searchEvents = await readFileAsync('./sql/searchEvents.sql')\n const eventsInfoView = await readFileAsync('./sql/eventsInfoView.sql')\n \n\n\n await query(categories.toString('utf8'));\n await query(organizations.toString('utf8'));\n await query(countries.toString('utf8'));\n await query(cities.toString('utf8'));\n await query(events.toString('utf8'));\n await query(ticketTypes.toString('utf8'));\n await query(tags.toString('utf8'));\n await query(tagsConnect.toString('utf8'));\n await query(speakers.toString('utf8'));\n await query(speakersConnect.toString('utf8'));\n await query(searchEvents.toString('utf8'))\n await query(eventsInfoView.toString('utf8'))\n\n await query(`CREATE INDEX textsearch_idx ON ${DB_CONSTANTS.SEARCH_EVENTS_DB} USING GIN (textsearchable_index_col);`)\n\n\n console.info('Tables created');\n } catch (e) {\n console.error('Error creating tables:', e.message);\n return;\n }\n\n // insert data into tables\n try {\n const insert = await readFileAsync('./sql/insert.sql');\n await query(insert.toString('utf8'))\n\n console.info('Data inserted');\n } catch (e) {\n console.error('Error inserting data:', e.message);\n }\n}", "_initDatabase() {\n // the alasql database name should be globally unique, otherwise,\n // the database data will interfere across rule engines\n const r = new alasql.Database(this._name /*, { cache: false }*/ );\n this._logger.debug('rule database is created');\n\n r.exec('create table request');\n this._logger.debug('request table is is created');\n\n return r;\n }", "data2db() {\n\t\tlet tables = ['modules', 'terms']\n\t\treturn this.db.transaction('rw', this.db.tables, () => {\n\t\t\treturn Promise.all(tables.map(t => \n\t\t\t\tthis.db.table(t).clear().then(()=>\n\t\t\t\t\tthis.db.table(t).bulkAdd(this.data[t]))))\n\t\t})\n\t}", "function addTables() {\n\n model.cities = {\n fields: {\n name: dataTypes.string\n }\n }\n\n model.restaurants = {\n fields: {\n name: dataTypes.string,\n citiesId: dataTypes.int,\n address: dataTypes.string,\n cuisines: dataTypes.string,\n spiciness: dataTypes.smallDouble,\n overallQuality: dataTypes.smallDouble,\n reviews: dataTypes.int,\n website: dataTypes.string,\n phoneNumber: dataTypes.string,\n acceptsReservations: dataTypes.string\n }\n }\n\n model.cuisines = {\n fields: {\n name: dataTypes.shortString\n },\n primaryKey: \"name\"\n }\n\n model.restaurants_x_cuisines = {\n fields: {\n restaurantsId: dataTypes.int,\n cuisinesName: dataTypes.shortString\n },\n unique: [\"restaurantsId\", \"cuisinesName\"]\n }\n\n model.reviews = {\n fields: {\n restaurantsId: dataTypes.int,\n usersId: dataTypes.string,\n dishesEaten: dataTypes.string,\n spiciness: dataTypes.int,\n overallQuality: dataTypes.int,\n description: dataTypes.longString\n }\n }\n\n model.photos = {\n fields: {\n reviewsId: dataTypes.int,\n forumPostsId: dataTypes.int,\n caption: dataTypes.string,\n photo: dataTypes.image\n }\n }\n\n model.users = {\n fields: {\n username: dataTypes.shortString,\n salt: dataTypes.string,\n password: dataTypes.string,\n name: dataTypes.string,\n email: dataTypes.string,\n photo: dataTypes.image,\n location: dataTypes.string,\n age: dataTypes.int,\n favoriteCuisines: dataTypes.string,\n about: dataTypes.longString,\n reviews: dataTypes.int,\n forumPosts: dataTypes.int\n },\n primaryKey: \"username\"\n }\n\n model.forumPosts = {\n fields: {\n usersId: dataTypes.string,\n parent: dataTypes.int,\n root: dataTypes.int,\n title: dataTypes.string,\n description: dataTypes.string,\n likes: dataTypes.int,\n replies: dataTypes.int\n }\n }\n}", "function startUp() {\n mysqlConnection.query(\"DROP TABLE IF EXISTS `dataAppMindmap`\");\n mysqlConnection.query(\"DROP TABLE IF EXISTS `userData`\");\n mysqlConnection.query(\"DROP TABLE IF EXISTS `dataAppDraw`\");\n}", "function prepareTables() {\n markets.forEach(function(market) {\n var tableName = market.replace(/_/g, \"\");\n tableService.createTableIfNotExists(tableName, function(error, result, response) {\n if (error) {\n console.log(error);\n } else if (response.statusCode == 204) {\n console.log(\"Created new table: \" + tableName);\n } else if (response.statusCode == 200) {\n console.log(\"Table already exists: \" + tableName);\n }\n else {\n console.log(response);\n }\n });\n });\n}", "function populateDB(tx) {\n\t\t\n tx.executeSql('CREATE TABLE IF NOT EXISTS offers (id unique, code text, offer text)');\n tx.executeSql('CREATE TABLE IF NOT EXISTS codes (id unique, code text)');\n\t\t\n }", "function createNBATeamsTable() {\n //Check to see if table exist, if it does not, run the script, if it does, do not run script.\n connection.query(`SELECT 1 FROM nba_teams LIMIT 1`, (err, result, fields) => {\n if (err) { //If there is an error, it means that the table does not exist yet.\n console.log(`Warning: Did not find nba_teams table in database.\\nCreating new table....`);\n\n //Nest 1: API Connection\n //Now that we know that no table exist, connect to the API.\n axios.get(\"http://localhost:8181/teams\")\n .then((teams) => {\n //If we get a 200 status connection, proceed.\n if (teams.status === 200) {\n //Populate our previously declared nbaTeams variable with an array of teams.\n nbaTeams = teams.data;\n\n //Create a variable that will give us the column names for our prepared query statement.\n //Object.keys will return the column names for our nba teams data gathered by our API get call.\n var teamColumnNames = Object.keys(nbaTeams[0]);\n\n //We need to know what is the name of the last column in our NBA teams Table\n //We use the teamColumnNames variable from before\n //Gets the last index of the teamColumnNames and returns the name of the last element in the array\n //We will use this for our query to know when to not add a comma \",\" to our query or mysql will return an error\n var nbaTeamsTableLastColumnName = teamColumnNames[\n teamColumnNames.lastIndexOf(\n teamColumnNames[\n teamColumnNames.length - 1\n ]\n )\n ];\n\n //Start the query to populate and insert all 30 standard NBA teams\n var nbaTeamsPopulateQuery = \"\";\n\n _.each(nbaTeams, (team) => {\n nbaTeamsPopulateQuery += `INSERT INTO nba_teams (`\n\n _.each(teamColumnNames, (columnName) => {\n if (columnName === nbaTeamsTableLastColumnName) {\n nbaTeamsPopulateQuery += `${columnName}`;\n nbaTeamsPopulateQuery += `) VALUES (`;\n }\n else {\n nbaTeamsPopulateQuery += `${columnName}, `;\n }\n });\n\n nbaTeamsPopulateQuery += `${team.isNBAFranchise}, `;\n nbaTeamsPopulateQuery += `${team.isAllStar}, `;\n nbaTeamsPopulateQuery += `'${team.city}', `;\n nbaTeamsPopulateQuery += `'${team.altCityName}', `;\n nbaTeamsPopulateQuery += `'${team.fullName}', `;\n nbaTeamsPopulateQuery += `'${team.tricode}', `;\n nbaTeamsPopulateQuery += `${team.teamId}, `;\n nbaTeamsPopulateQuery += `'${team.nickname}', `;\n nbaTeamsPopulateQuery += `'${team.urlName}', `;\n nbaTeamsPopulateQuery += `'${team.confName}', `;\n nbaTeamsPopulateQuery += `'${team.divName}'`;\n nbaTeamsPopulateQuery += `); `;\n });\n console.log(nbaTeamsPopulateQuery)\n //Create a prepared query, \"??\" will be populated by an array full of column names.\n var nbaTeamsTableQuery = `CREATE TABLE nba_teams\n (\n ?? BOOL,\n ?? BOOL,\n ?? VARCHAR(60),\n ?? VARCHAR(20),\n ?? VARCHAR(60),\n ?? VARCHAR(4),\n ?? INT,\n ?? VARCHAR(20),\n ?? VARCHAR(20),\n ?? VARCHAR(12),\n ?? VARCHAR(20),\n KEY(teamId)\n );`;\n\n connection.query(nbaTeamsTableQuery, teamColumnNames, (error, result, fields) => {\n if (error) {\n console.error(`There was an error creating the nba_teams table.\\n${error}`);\n connection.end();\n }\n else {\n console.log(`Created nba_teams table in mysql DB.`);\n connection.query(nbaTeamsPopulateQuery, (error, result, fields) => {\n if (error) {\n console.log(`There was an error populating the nba_teams table.\\n${error}`);\n connection.end();\n }\n else {\n console.log(`nba_teams table has been added and populated!`);\n connection.end();\n }\n });\n }\n });\n }\n //If we get an error connecting to API, output error.\n else {\n console.error(`Error connecting to the NBA teams api route.\\n${teams.statusText}`);\n connection.end();\n }\n }\n )\n }\n else {\n console.log(`Found nba_teams table in database.\\nPlease remove nba_teams table and rerun script.`);\n connection.end();\n }\n });\n}", "async function buildTables() {\n try {\n console.log('Starting to construct tables...');\n\n await client.query(`\n CREATE TABLE reports(\n id SERIAL PRIMARY KEY,\n title varchar(255) NOT NULL,\n location VARCHAR(255) NOT NULL,\n description TEXT NOT NULL,\n password VARCHAR(255) NOT NULL,\n \"isOpen\" BOOLEAN DEFAULT true,\n \"expirationDate\" TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP + interval '1 day'\n );\n\n CREATE TABLE comments(\n id SERIAL PRIMARY KEY,\n \"reportId\" INTEGER REFERENCES reports(id),\n content TEXT NOT NULL\n )\n `);\n\n console.log('Finished constructing tables!');\n } catch (error) {\n console.error('Error constructing tables!');\n\n throw error;\n }\n}", "function initialise() {\n // connect to a database named restaurants.sqlite\n const db = new sqlite3.Database('./restaurants.sqlite');\n try {\n db.serialize(function () { // serialize means execute one statement at a time\n console.log('starting table creation');\n // delete tables if they already exist\n db.run(\"select * from Restaurants WHERE name = \\\"Pizza Express\\\";\"); \n // TODO - do the same for the other tables\n });\n } finally {\n // very important to always close database connections\n // else could lead to memory leaks\n db.close();\n console.log('table creation complete - connection closed');\n }\n}", "function init_db() {\n\tdb = dblite(db_path);\n\tconsole.log(\" |---[ Creating new database ]---|\");\n\tdb.query('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, username TEXT, password TEXT, \\\n\t\tsalt TEXT, email TEXT)');\n\tconsole.log(\" |--------- Table users added ---------|\");\n\tdb.query('CREATE TABLE IF NOT EXISTS system (id INTEGER PRIMARY KEY, hostname TEXT, description TEXT, \\\n\t\ttemp_mode TEXT, setup INTEGER, ap_mode INTEGER, eth0_data TEXT, wlan0_data TEXT)');\n\tconsole.log(\" |--------- Table system added ---------|\");\n\tdb.query('CREATE TABLE IF NOT EXISTS schedule (id INTEGER PRIMARY KEY, description TEXT, \\\n\t\tstart_data TEXT, stop_data TEXT, interupt TEXT)');\n\tconsole.log(\" |--------- Table schedule added ---------|\");\t\n\tdb.query('CREATE TABLE IF NOT EXISTS remotes (hex_id TEXT PRIMARY KEY, type TEXT, description TEXT, alias TEXT)');\n\tconsole.log(\" |--------- Table remotes added ---------|\");\n\tdb.query('CREATE TABLE IF NOT EXISTS sensors (id INTEGER PRIMARY KEY, name TEXT, alias TEXT, description TEXT, icon TEXT, location TEXT, pin TEXT)');\n\tconsole.log(\" |--------- Table sensors added ---------|\");\n\tdb.query('CREATE TABLE IF NOT EXISTS actuators (id INTEGER PRIMARY KEY, name TEXT, alias TEXT, description TEXT, icon TEXT, location TEXT, pin TEXT, status INTEGER)');\n\tconsole.log(\" |--------- Table actuators added ---------|\");\n\n\t// insert default user admin, first create password ('') and salt\n\thash('', function(err, salties, hashies) {\n\t\tdb.query('INSERT INTO users VALUES (?, ?, ?, ?, ?)', [null, 'admin', hashies, salties, null]);\n\t\tconsole.log(\" |--------- Inserted user admin ---------|\");\n\t});\n\n\t// insert default controller module data into system table\n\t// ***** MAKE MORE DYNAMIC LATERS ******\n\tdb.query('INSERT INTO system VALUES (?, ?, ?, ?, ?, ?, ?, ?)', [\n\t\tnull, 'node', 'sprinkler controller', 'F', 0, 0, \n\t\t{mode: 'dynamic', ip: '0.0.0.0', subnet: '0.0.0.0', gw:'0.0.0.0', dns1:'0.0.0.0', dns2:'0.0.0.0'},\n\t\t{ssid: '', bssid: '', security_type: '', username: '', password: '', mode: 'dynamic', ip: '0.0.0.0', subnet: '0.0.0.0', gw:'0.0.0.0', dns1:'0.0.0.0', dns2:'0.0.0.0'}]);\n\t\tconsole.log(\" |--------- Defaults loaded ---------|\");\n\n\t// remotes should be added as discovered...\n\n\t// if sensors/actuators exist add them to the sensor table and create separate table per input\n\t// adding two sensors for temperature and humidity for testing\n\n\taddSensor('temp0', 'temp0', 'onboard temperature sensor', '/images/icons/sensors/temperature.png', 'local', '/dev/i2c-1');\n\taddSensor('hum0', 'hum0', 'onboard humidity sensor', '/images/icons/sensors/humidity.png', 'local', '/dev/i2c-1');\n\n\t// adding zones...\n\taddActuator('zone1', 'zone1', 'sprinkler solenoid', '/images/icons/actuators/zone1.png', 'local', 'P8_08', 0);\n\taddActuator('zone2', 'zone2', 'sprinkler solenoid', '/images/icons/actuators/zone2.png', 'local', 'P8_10', 0);\n\taddActuator('zone3', 'zone3', 'sprinkler solenoid', '/images/icons/actuators/zone3.png', 'local', 'P8_26', 0);\n\taddActuator('zone4', 'zone4', 'sprinkler solenoid', '/images/icons/actuators/zone4.png', 'local', 'P8_28', 0);\n\taddActuator('zone5', 'zone5', 'sprinkler solenoid', '/images/icons/actuators/zone5.png', 'local', 'P8_30', 0);\n\taddActuator('zone6', 'zone6', 'sprinkler solenoid', '/images/icons/actuators/zone6.png', 'local', 'P8_32', 0);\n\taddActuator('zone7', 'zone7', 'sprinkler solenoid', '/images/icons/actuators/zone7.png', 'local', 'P8_34', 0);\n\taddActuator('zone8', 'zone8', 'sprinkler solenoid', '/images/icons/actuators/zone8.png', 'local', 'P8_36', 0);\n\taddActuator('zone9', 'zone9', 'sprinkler solenoid', '/images/icons/actuators/zone9.png', 'local', 'P9_11', 0);\n\taddActuator('zone10', 'zone10', 'sprinkler solenoid', '/images/icons/actuators/zone10.png', 'local', 'P9_15', 0);\n\taddActuator('zone11', 'zone11', 'sprinkler solenoid', '/images/icons/actuators/zone11.png', 'local', 'P9_13', 0);\n\taddActuator('zone12', 'zone12', 'sprinkler solenoid', '/images/icons/actuators/zone12.png', 'local', 'P9_16', 0);\n\taddActuator('zone13', 'zone13', 'sprinkler solenoid', '/images/icons/actuators/zone13.png', 'local', 'P9_23', 0);\n\taddActuator('zone14', 'zone14', 'sprinkler solenoid', '/images/icons/actuators/zone14.png', 'local', 'P9_27', 0);\n\taddActuator('zone15', 'zone15', 'sprinkler solenoid', '/images/icons/actuators/zone15.png', 'local', 'P9_41B', 0);\n\taddActuator('zone16', 'zone16', 'sprinkler solenoid', '/images/icons/actuators/zone16.png', 'local', 'P9_42B', 0);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add the images to an already created poi
function addImagesToPoi(poi_oid) { // add images for (var img of poi_img_list) { var img2poi_params = "?oid=" + poi_oid + "&new_img_oid=" + img.data.$id + "&display_name=" + img.name; jQuery.ajax({ url: updatePoi_url + img2poi_params, data: null, type: "POST", async: true, contentType: "application/json;charset=utf-8", success: function(data) { }, error: function(xhr, status, err) { alert("Image " + img.data.$id + " couldn't be added to POI " + poi_oid + "."); } }); } // refresh poi pois.clearLayers(); getPois(m.map); // clear lists img_list = new Array(); jQuery("#poi_img_table").html(""); jQuery("#poi_img_table_header").html(""); jQuery("#poi_img_upload_status").html(""); }
[ "function addImagesToPG ()\n {\n try\n {\n const selectedImages = images.filter(image => image.selected);\n images.map(img=>{img.selected = false});\n setPGData([...storeData, ...selectedImages]);\n setSelectedImagesCount(0); setSelectionMode(false);\n }catch (e){\n processError(e, 'Error during add images to Prints and Gifts');\n }\n }", "function createAllImages() {\n for (var i = 0; i < filepathArray.length; i++) {\n allImages.push(new BusImg(filepathArray[i], i));\n }\n}", "function insertImages(images) {\r\n const margin = 3;\r\n const imageWidth = 200;\r\n let imageOrigin = 50;\r\n let imageLeft = 50;\r\n let imageTop = 50;\r\n for (let x = 0; x < images.length; x++) {\r\n const image = images[x];\r\n imageLeft = margin + imageOrigin + imageWidth * x;\r\n _insertImagesOfficeApi(image, imageLeft, imageTop, imageWidth);\r\n }\r\n}", "addImage() {\n }", "function create_Images(){\n\n\n}", "function createPNGFiles(data){\n for(i = 0; i < data.length ; i++){\n var name = data[i].name;\n var description = data[i].description;\n updateText(name, description);\n var docName = name.replace(/\\s/g,'');\n exportPNG(docName);\n }\n // close the photoshop file without saving it to leave the template as it was\n app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);\n // quit the photoshop application - comment out if you don't want PS to quit\n executeAction(app.charIDToTypeID('quit'), undefined, DialogModes.NO);\n}", "function createImageCollections() {\n trace('adding image collection ...');\n// wwt.loadImageCollection('csc2.wtml');\n trace('... added image collection');\n }", "newImage(path) {\n\t\tlet idx = this.children.length;\n\t\tthis.addImage(this.generateId('image-' + idx), path, this.parent.left, this.parent.top, 'image ' + idx);\n\t}", "function addImagePaneRow() {\n\n\t\t\tif (vm.apiDomain.imagePaneAssocs == undefined) {\n\t\t\t\tvm.apiDomain.imagePaneAssocs = [];\n\t\t\t}\n\n\t\t\tvar i = vm.apiDomain.imagePaneAssocs.length;\n\n vm.apiDomain.imagePaneAssocs[i] = {\n \"processStatus\": \"c\",\n \t\t\t\t\"assocKey\": \"\",\n \t\t\t\t\"imagePaneKey\": \"\",\n \t\t\t\t\"mgiTypeKey\": \"11\",\n \t\t\t\t\"objectKey\": vm.apiDomain.alleleKey,\n \t\t\t\t\"isPrimary\": \"\",\n \t\t\t\t\"figureLabel\": \"\",\n \t\t\t\t\"imageClass\": \"\",\n \t\t\t\t\"mgiID\": \"\",\n \t\t\t\t\"pixID\": \"\"\n \t\t\t}\n\t\t}", "imageProcessed(img, eventname) {\n console.log(img.hist);\n this.allpictures.insert(img);\n console.log(\"image processed \" + this.allpictures.stuff.length + eventname);\n if (this.allpictures.stuff.length === (this.num_Images * this.categories.length)) {\n this.createXMLColordatabaseLS();\n //this.createXMLIExampledatabaseLS();\n }\n }", "setImage(path, row, col, style = {}) {\n let image = this.book.addImage({\n buffer: fs.readFileSync(path),\n extension: 'jpeg',\n });\n this.list.addImage(image, {\n tl: {\n row,\n col: col -1\n },\n br: {\n row: row + 1,\n col\n },\n editAs: 'oneCell'\n });\n }", "function addImagePaneRow() {\n\n\t\t\tif (vm.apiDomain.imagePaneAssocs == undefined) {\n\t\t\t\tvm.apiDomain.imagePaneAssocs = [];\n\t\t\t}\n\n\t\t\tvar i = vm.apiDomain.imagePaneAssocs.length;\n\n vm.apiDomain.imagePaneAssocs[i] = {\n \"processStatus\": \"c\",\n \t\t\t\t\"assocKey\": \"\",\n \t\t\t\t\"imagePaneKey\": \"\",\n \t\t\t\t\"mgiTypeKey\": \"12\",\n \t\t\t\t\"objectKey\": vm.apiDomain.genotypeKey,\n \t\t\t\t\"isPrimary\": \"\",\n \t\t\t\t\"figureLabel\": \"\",\n \t\t\t\t\"imageClass\": \"\",\n \t\t\t\t\"mgiID\": \"\",\n \t\t\t\t\"pixID\": \"\"\n \t\t\t}\n\t\t}", "function addImageToCell(imagesRow, file) {\n var numberQueue = fileCount % 4;\n var img = document.createElement('img');\n switch (numberQueue) {\n case 1:\n //first image A1\n imagesRow.find('div.dialogueFileImageA1')\n .html(img);\n break;\n case 2:\n //second image B1\n imagesRow.find('div.dialogueFileImageB1')\n .html(img);\n break;\n case 3:\n //3rd image C1\n imagesRow.find('div.dialogueFileImageC1')\n .html(img);\n break;\n case 0:\n //4th image D1\n imagesRow.find('div.dialogueFileImageD1')\n .html(img);\n break;\n }\n img.file = file;\n var reader = new FileReader();\n reader.onload = function(event) {\n img.src = event.target.result;\n };\n reader.readAsDataURL(file);\n imagesRow.attr('title', file.name);\n }", "imageProcessed(img, eventname) {\n\t\tthis.allpictures.insert(img);\n\t\tconsole.log('image processed ' + this.allpictures.stuff.length + eventname);\n\t\tif (this.allpictures.stuff.length === this.num_Images * this.categories.length) {\n\t\t\talert('fim do processamento');\n\t\t\tthis.createXMLColordatabaseLS();\n\t\t\tthis.createXMLIExampledatabaseLS();\n\t\t}\n\t}", "function createImages(){\n var startingLocation=-25;\n var images = node.append(\"svg:image\")\n .attr(\"xlink:href\", function(d) { return d.img;})\n .attr(\"height\", function(d) { return d.height;})\n .attr(\"width\", function(d) { return d.width;});\n return images\n }", "registerPoi(poiInfo) {\n const { imageItem, imageTexture, imageTextureName } = poiInfo;\n if (imageItem === undefined ||\n imageTextureName === undefined ||\n imageTexture === undefined) {\n // No image -> invisible -> ignore\n return INVALID_RENDER_BATCH;\n }\n const renderOrder = poiInfo.renderOrder;\n // There is a batch for every ImageDefinition, which could be a texture atlas with many\n // ImageTextures in it.\n const batchKey = imageTexture.image;\n let batchSet = this.m_batchMap.get(batchKey);\n let mappedIndex;\n let bufferBatch;\n if (batchSet === undefined) {\n batchSet = new Map();\n this.m_batchMap.set(batchKey, batchSet);\n }\n mappedIndex = batchSet.get(renderOrder);\n if (mappedIndex !== undefined) {\n return mappedIndex;\n }\n mappedIndex = this.batches.length;\n let layer = this.textCanvas.getLayer(renderOrder);\n if (layer === undefined) {\n this.textCanvas.addText(\"\", tempPos, { layer: renderOrder });\n layer = this.textCanvas.getLayer(renderOrder);\n }\n bufferBatch = new PoiRenderBufferBatch(this.mapView, layer.storage.scene, imageItem, renderOrder);\n bufferBatch.init();\n batchSet.set(renderOrder, mappedIndex);\n this.batches.push(bufferBatch);\n return mappedIndex;\n }", "function addPart(parts){\r\n \r\n if(parts.label != null){\r\n var labelX = parseInt(parts.xPos);\r\n\r\n if(parts.labelPos == 0) var labelY = parseInt(parts.yPos - 25); //label top\r\n else var labelY = parseInt(parts.yPos + 96); //label bottom\r\n\r\n var textWidth = measureMyText(parts.fontObj, parts.label);\r\n var textDiff = 94 - textWidth;\r\n var centredTxt = Math.floor( textDiff / 2 );\r\n labelX += centredTxt - 2;\r\n parts.image.print( parts.fontObj, labelX, labelY, parts.label );\r\n }\r\n var saveFile = \"set\\\\\" + parts.saveAs;\r\n parts.image.composite( parts.asset, parts.xPos, parts.yPos )\r\n updateConsole(\" [\" + currentWorking + \" | \" + totalResults + \"] \" + parts.saveAs + \" \");\r\n const writeImage = (saveFile) => new Promise((resolve, reject) => {\r\n parts.image.write(saveFile, resolve()); // save\r\n });\r\n return writeImage(saveFile);\r\n\r\n //parts.image.write(saveFile); // save\r\n}", "function getImage(FilePath,ImageFolderPath,ImageFilePath1,ImageFilePath2,ImageFilePath3,ImageFilePath4,exestatus)\n{\nif (equal(exestatus,true)) \n \n{\n var docObj = loadDocument(FilePath);\n textStripperObj = JavaClasses.org_apache_pdfbox_util.PDFTextStripper.newInstance();\n \nvar pageObj1,pageObj2,pageObj3,imgMap1,imgMap2,imgMap3,imgArray1,imgArray2,imgArray3,imageObj1,imageObj2,imageObj3,imageObj4;\n pageObj1 = getPage(docObj, 1);\n pageObj2 = getPage(docObj, 2);\n pageObj2 = getPage(docObj, 2);\n pageObj3 = getPage(docObj, 3);\n \n// Obtain HashMap of the images from the specified page\nimgMap1 = pageObj1.getResources().getXObjects();\nimgMap2 = pageObj2.getResources().getXObjects();\nimgMap2 = pageObj2.getResources().getXObjects();\nimgMap3 = pageObj3.getResources().getXObjects();\n\n// Get an array of the images\nimgArray1 = imgMap1.values().toArray();\nimgArray2 = imgMap2.values().toArray();\nimgArray2 = imgMap2.values().toArray();\nimgArray3 = imgMap3.values().toArray();\n\n// Get all the images by its index\nimageObj1 = imgArray1.items(0);\nimageObj2 = imgArray2.items(0);\nimageObj3 = imgArray2.items(1);\nimageObj4 = imgArray3.items(0);\nif (aqFileSystem.Exists(ImageFolderPath))\n{\naqFileSystem.DeleteFolder(ImageFolderPath,true)\naqFileSystem.CreateFolder(ImageFolderPath)\n//Saving all the Images\nimageObj1.write2file_2(ImageFilePath1);\nimageObj2.write2file_2(ImageFilePath2);\nimageObj3.write2file_2(ImageFilePath3);\nimageObj4.write2file_2(ImageFilePath4);\n\n}\nelse (aqFileSystem.CreateFolder(ImageFolderPath))\n{\n\n//Saving all the Images\nimageObj1.write2file_2(ImageFilePath1);\nimageObj2.write2file_2(ImageFilePath2);\nimageObj3.write2file_2(ImageFilePath3);\nimageObj4.write2file_2(ImageFilePath4);\n}\n // Log the total number of pages to the log\nLog.Message(\"Total number Pages in pdf: \" + docObj.getNumberOfPages());\n\n}\n \nelse{\n Log.Message(\"Getting all eHOC Images\",\"The action is skipped since the execution status is set as '\"+exestatus+\"'\");\n \n } \n return exestatus ; \n}", "function putPics(){\n var $boxes = $('.box')\n $('.box').empty()\n $boxes.each(function(index, box){\n console.log(index, box)\n var $b = $(box)\n $b.append('<img src=\"./imgs/fart2.png\" class=\"fart\" width=\"150\" height=\"150\"></img>')\n })\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get popup content for a district. Shows state, district, image & name of representative
function getDistrictInfoByGeoid(attributes) { if (isDefined(attributes)) { var geoid = attributes.GEOID for (var i = 0; i < members.length; i++) { if (members[i].GEOID === geoid) { return ` <div class="borderedRow"> <div class="col6"> <p>State: ${members[i].StateCode}</p> <p>District: ${members[i].StateDistrict}</p> <p>Representative: ${members[i].Member}</p> </div> <div class="col6"> <a href="${memberLink + members[i].Id}" target="_blank"> <img src="https://clerkpreview.house.gov/content/assets/img/members/${members[i].Id}.jpg"/> </a> </div> </div> `; } } } return ""; }
[ "function popupContent(name,adr){\n\tname = name_format(name)\n\tif (typeof adr != \"undefined\"){\n\t\tadr = adr.trim()\n\t}\n\tcontent = \"<p><strong>Name: </strong>\" + name + \"<br /><strong>Address: </strong>\" + adr + \"</p>\"\n\n return content;\n}", "function getPopupContent(incident) {\n var weather = parcel = \"\";\n\n var details = \"<div>\" +\n \"<h3>Incident</h3>\" +\n \"<hr />\" +\n \"<p>Address: \" + incident.address.address_line1 + \"</p>\" +\n \"<p>City: \" + incident.address.city + \"</p>\" +\n \"<p>State: \" + incident.address.state + \"</p>\" +\n \"<p>Opened: \" + incident.description.event_opened + \"</p>\" +\n \"<p>Closed: \" + incident.description.event_closed + \"</p>\" +\n \"</div>\";\n\n if (incident.weather) {\n weather = \"<div>\" +\n \"<h3>Weather</h3>\" +\n \"<hr />\" +\n \"<p>Low: \" + incident.weather.mintempF + \"&#8457;</p>\" +\n \"<p>High: \" + incident.weather.mintempF + \"&#8457;</p>\" +\n \"<p>UV Index: \" + incident.weather.uvIndex + \"</p>\";\n \"</div>\";\n }\n if (incident.parcel.attributes) {\n parcel = \"<div>\" +\n \"<h3>Parcel</h3>\" +\n \"<hr />\" +\n \"<p>Land Sqft: \" + incident.parcel.attributes.LandSqFt + \"</p>\" +\n \"<p>Land Value: \" + incident.parcel.attributes.LandValue + \"</p>\" +\n \"<p>Land Value: \" + incident.parcel.attributes.LandValue + \"</p>\" +\n \"<p>Owner Name: \" + incident.parcel.attributes.OwnerName + \"</p>\" +\n \"</div>\";\n }\n return \"<div>\" + details + weather + parcel + \"</div>\";\n }", "function showDistrict(div){\n\tslideSidebar();\n\t$('.loader').show();\n\n\t//div is the class name of the active member\n\tdivmap = {\"mnhouse active\":0, \"mnsenate active\":1, \"ushouse active\":2};\n\n\t//remove preveious district layers.\n\tif (typeof mapDistrictsLayer !== \"undefined\" ){ \n\t\tmap.removeLayer(mapDistrictsLayer);\t\t\t\n\t}\n \n //polygon overlay styling\n\tvar myStyle = {\n \t\"color\": \"#991a36\",\n \t\"weight\": 2,\n \t\"opacity\": 0.65\n\t};\n\t// panes for ordering layers - turns out i don't need\n\t// map.createPane('myDistrict');\n var thismember = div + ' ' + geojson.features[divmap[div]].properties.district;\n ga('send', 'event', 'member', 'showmapdistrict', thismember);\n\n mapDistrictsLayer = L.geoJson(geojson.features[divmap[div]], {\n \t// pane:\"myDistrict\",\n\t\tstyle:myStyle,\n\t\tonEachFeature: function (feature, layer) {\n\t\t\tvar html = \"\";\n\t\t\tfor (prop in feature.properties){\n\t\t\t\tif (prop != 'memid'){\n\t\t\t\t html += prop+\": \"+feature.properties[prop]+\"<br>\";\n\t\t\t\t} else {}\n\t\t\t};\n\t layer.bindPopup(html);\n\t }\n\t}).addTo(map);\n\t//zoom to selection\n\t// map.getPane('myDistrict').style.zIndex = 650;\n\tmap.fitBounds(mapDistrictsLayer.getBounds());\n\t$('.loader').hide();\n}", "function selectDefaultDistrict() {\n usStatelayer.queryFeatures({\n where: propertyNames.StateLayer.Name + \"='\" + selectedMemberLocation.state + \"'\",\n returnGeometry: true,\n outFields: [propertyNames.StateLayer.Id]\n }).then(function (response) {\n var features = response.features;\n var stateFp = features[0].attributes[propertyNames.StateLayer.Id];\n stateSelected(stateFp);\n goTo(features[0].geometry, true);\n usdistrictlayer.queryFeatures({\n where: propertyNames.DistrictLayer.DistrictNumber + \"=\" + selectedMemberLocation.districtNum + \" and \" +\n propertyNames.DistrictLayer.StateId + \"=\" + stateFp,\n returnGeometry: true,\n outFields: [\"*\"]\n }).then(function (districtResponse) {\n usdistrictlayer.popupEnabled = true;\n var features = districtResponse.features;\n mapview.popup.content = (isDefined(features) && isDefined(features[0]) && isDefined(features[0].attributes)) ? getDistrictInfoByGeoid(features[0].attributes) : \"\";\n mapview.popup.open();\n });\n });\n }", "function getInfoDivPageWithContent(controller, view, facility, saleHighlights){\n //var cleanSaleHighlights = removeCopartSingleQuote(saleHighlights);\n //cleanSaleHighlights = createPoundSignEntity(cleanSaleHighlights);\n var params = \"facility=\" + facility + \"&saleHighlights=\" + encodeURIComponent(saleHighlights);\n createInfoDivPopup(controller, view, params, false);\n}", "function getPopupContent(feature) {\n //unit = Units.findOne({_id : feature.get('name')}); // what unit is the\n unit = Units.findById(feature.get('name')); //lookup this unit and typecast it\n return unit.popupContent();\n}", "function createPopupContent(properties, attribute, attribute2){\n //add city to popup content string\n var popupContent = \"<p style='font-size: 20px'><b>\" + properties.State + \"</b></p>\";\n\n //add formatted attribute to panel content string\n var year = attribute.split(\" \")[0];\n popupContent += \"<p><b>\" + properties[attribute] + \"</b>: Acres Burned in <b>\" + year + \"</b></p>\";\n popupContent += \"<p><b>\" + properties[attribute2] + \"</b>: Number of Fires</p>\";\n\n return popupContent;\n}", "function getPopoverContent() {\n var wide_img = $(this).data('bs-wide');\n var html = '<img src=\"' + wide_img + '\" width:\"350\" height=\"197\" />';\n return html; \n }", "function dbpediaPopupHandler() {\n var currentElem = this;\n // The callback function here populates the popup\n getDBpediaData($(this).data('dbpedia'), function (res) {\n var title = '';\n var abstract = '';\n var img_url = '';\n var wiki_url = '';\n\n // Isolating image URL\n try { var img_url = res.thumbnail.value; } catch (err) {};\n\n // Isolating Wikipedia URL\n try { var wiki_url = res.wikipedia_res.value; } catch (err) {};\n\n // Isolating abstract\n try { var abstract = res.abstract.value; } catch (err) {};\n\n // Isolating title\n try { var title = res.name.value; } catch (err) {};\n\n var template = `\n <div class=\"popover\" role=\"tooltip\">\n <div class=\"arrow\"></div>\n <h3 class=\"text-center popover-header\"></h3>\n <div class=\"text-center\" popover-img\">\n <img width=\"200\" src=\"${img_url}\">\n </div>\n <div class=\"popover-body\"></div>\n <br />\n <div class=\"text-center popover-url\">\n <i>Data from DBpedia</i>\n <a href=\"${wiki_url}\">(URL)</a>\n </div>\n </div>\n `\n\n // Format this shit\n var trimmedAbstract = abstract.substring(0, abstract_len) + '...';\n\n // The following code handles intelligently displaying and tearing down\n // popovers, including continuing to display them while the user's mouse\n // is over said popover. This enables interactivity with the popover by\n // the user.\n $(currentElem).popover({\n html: true,\n trigger: 'manual',\n placement: 'auto',\n content: trimmedAbstract,\n title: title,\n template: template\n }).on('mouseenter', function () {\n $(currentElem).popover('show');\n $('.popover').on('mouseleave', function () {\n $(currentElem).popover('hide');\n });\n }).on('mouseleave', function () {\n setTimeout(function () {\n if (!$('.popover:hover').length) {\n $(currentElem).popover('hide');\n };\n }, 10);\n });\n });\n}", "function getPopupHTML(countryData){\n var date = new Date();\n var currentFY = \"\";\n if (date.getMonth() < 3)\n currentFY = \"FY\" + (date.getFullYear() - 1) + \"/\" + date.getFullYear();\n else \n currentFY = \"FY\" + date.getFullYear() + \"/\" + (date.getFullYear() + 1);\n return \"\" +\n \"<div class='popup' style='min-width:350px;'>\" +\n \" <h1><img class='flag' alt='Country Flag' src='\" + countryData.flag + \"' /> \" + countryData.country + \"</h1>\" +\n \" <div class='row'>\" +\n \" <div class='six columns'>\" +\n \" <div class='stat'>\" +\n \" <h3>Country budget \" + currentFY + \"</h3>\" +\n \" </div>\" +\n \" </div>\" +\n \" <div class='six columns'>\" +\n \" <div class='stat'>\" +\n \" <h3>Number of Active Project(s)</h3>\" +\n \" </div>\" +\n \" </div>\" +\n \" </div>\" +\n \" <div class='row'>\" +\n \" <div class='six columns'>\" +\n \" <div class='stat'>\" +\n \" <p>\\u00A3\" + addCommas(countryData.budget) + \"</p>\" +\n \" </div>\" +\n \" </div>\" +\n \" <div class='six columns'>\" +\n \" <div class='stat'>\" +\n \" <p>\" + countryData.projects + \"</p>\" +\n \" </div>\" +\n \" </div>\" +\n \" </div>\" +\n \" <div class='row'>\" +\n \" <div class='six columns'>\" +\n \" <div class='stat'><a href='/countries/\" + countryData.id + \"'>View country info</a></div>\" +\n \" </div>\" +\n \" <div class='six columns'> \" +\n \" <div class='stat'><a href='/countries/\" + countryData.id + \"/projects'>View projects list</a></div>\" +\n \" </div>\" +\n \" </div>\" +\n \"</div>\";\n }", "function fetchDistrict(districtUrl){\n\n\t\t// district_url\n\t\tfetch(districtUrl)\n\t\t.then(checkStatus)\n\t\t.then(function(responseText) {\n\t\t\t// success: do something with the responseText\n\t\t\tlet data = JSON.parse(responseText);\n\t\t\tlet h2 = document.createElement('h2');\n\t\t\th2.innerHTML = data.state;\n\t\t\tdocument.getElementById(\"statename\").appendChild(h2);\n\n\t\t\t// this is an array\n\t\t\tlet districts = data.districts;\n\t\t\tlet totalDem = 0;\n\t\t\tlet totalGop = 0;\n\t\t\tlet totalWastedDem = 0;\n\t\t\tlet totalWastedGop = 0;\n\n\t\t\t// iterate each district of the chosen state\n\t\t\tlet i;\n\t\t\tfor (i = 0; i < districts.length; i++) {\n\t\t\t\t// if district row had no value, not count\n\t\t\t\tif(districts[i][0] == null && districts[i][1] == null){continue;}\n\t\t\t\tlet result = calculation(districts[i]);\n\t\t\t\ttotalDem = totalDem + result.dem;\n\t\t\t\ttotalGop = totalGop + result.gop;\n\t\t\t\ttotalWastedDem = totalWastedDem + result.wastedDem;\n\t\t\t\ttotalWastedGop = totalWastedGop + result.wastedGop;\n\n\t\t\t\tlet dem = document.createElement('div');\n\t\t\t\tdem.className = 'dem';\n\t\t\t\tdem.style.width = result.width;\n\n\t\t\t\tlet gop = document.createElement('div');\n\t\t\t\tgop.className = 'gop';\n\t\t\t\tgop.appendChild(dem);\n\n\t\t\t\tdocument.getElementById(\"statedata\").appendChild(gop);\n\t\t\t}\n\n\t\t\t// determine if it is gerrymandering\n\t\t\tlet percent = Math.floor([Math.abs(totalWastedDem - totalWastedGop) /\n\t\t\t\t(totalWastedDem + totalWastedGop)] * 100);\n\t\t\tlet gerrymandering;\n\n\t\t\tif(percent == 0){\n\t\t\t\tgerrymandering = 'Tie';\n\t\t\t}\n\t\t\telse if(percent >= 7 && (totalDem > totalGop)){\n\t\t\t\tgerrymandering = 'Gerrymandered to favor the Democratic Party';\n\t\t\t}\n\t\t\telse if(percent >= 7 && (totalDem < totalGop)){\n\t\t\t\tgerrymandering = 'Gerrymandered to favor the Republican Party';\n\t\t\t}\n\t\t\telse{\n\t\t\t\tgerrymandering = 'Not gerrymandered';\n\t\t\t}\n\n\t\t\t// insert as first child\n\t\t\tlet h3 = document.createElement('h3');\n\t\t\th3.innerHTML = gerrymandering;\n\t\t\tdocument.getElementById(\"statedata\").prepend(h3);\n\t\t})\n\t\t.catch(function(error) {\n\t\t\t// error: do something with error\n\t\t\tshowError(error,' while fetching districts');\n\t\t});\n\t}", "function createPopupContent(properties, attribute) {\n //build popup content string\n var popupContent = \"<p><b>City:</b> \" + properties.CountryName + \"</p>\"\n + \"<p><b>Year:</b> \" + attribute + \"</p>\";\n //add formatted attribute to popup content string\n popupContent += \"<p><b>Rural population growth (annual %):</b> \" + properties[attribute].toFixed(2) + \"</p>\";\n\n return popupContent;\n\n}", "function popupHTMLfromDATA(d){\r\n\r\n //console.log(d)\r\n html = \"ID: \" + d.deviceId;\r\n html+= \"<br>Zone:\" + d.zone;\r\n if (d.name){ html+= \"<br>Name:\" + d.name; }\r\n if (d.hardware.type && d.hardware.type != \"unknown\" ){ html+= \"<br>HW type : \" + d.hardware.type; }\r\n if (d.hardware.model){ html+= \"<br>HW model : \" + d.hardware.model; } \r\n if (d.hardware.vendor){ html+= \"<br>HW vendor: \" + d.hardware.vendor; } \r\n html+= \"<br>(close me by clicking)\"\r\n\r\n return html;\r\n}", "function getPopupContent(feature) {\n // Get the list of images for the popup gallery from the .json file\n var imageArray = feature.properties.images;\n var popupTitle = feature.properties.name;\n\n // Populate the popup gallery with the images from the imageArray\n createGallery(popupTitle, imageArray);\n\n // Select the first image in the array to be injected into HTML when the popup opens\n selectImage(imageArray[MAIN_IMAGE].imgURL, imageArray[MAIN_IMAGE].tombstone, imageArray[MAIN_IMAGE].description);\n\n // Add an event listener to all the images in the gallery so that they'll call selectImage() on click\n activateImageSelection(galleryImages, imageArray);\n}", "function getData( address ) {\n\tvar foundAt=0;\n\n\tgapiCivicsURL = `https://civicinfo.googleapis.com/civicinfo/v2/representatives?includeOffices=true&key=${API_KEY}&address=${address}`;\n\n\tfetch( gapiCivicsURL )\n\t\t.then( function ( response ) {\n\t\t\tif( response.ok ) {\n\t\t\t\treturn response.json();\n\t\t\t} else {\n\t\t\t\tconsole.log( 'error with data fetch' );\n\t\t\t}\n\t\t} )\n\t\t.then( function ( data ) {\n\t\t\t// due to changing object keys, must convert keys to array\n\t\t\tkeysArr = Object.keys( data.divisions );\n\n\t\t\tfor( var i=0; i < keysArr.length; i++ ) {\n\t\t\t\tmyString = keysArr[i];\n\t\t\t\t// due to changing data, must search each value to find district key\n\t\t\t\tif( myString.search( '/cd:' ) !== -1 ) {\n\t\t\t\t\tfoundAt = i;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// must convert to actual string object\n\t\t\tmyString = keysArr[foundAt];\n\n\t\t\t// get district by splitting resulting string at 'cd:'\n\t\t\tdistrict = myString.split( '/cd:' )[1];\n\t\t\tconsole.log( district );\n\t\t} );\n}", "function getInfoMN(PrecinctID) {\n var myData = precinctData[PrecinctID];\n var toReturn = '';\n var statNames = Object.keys(stateSyntax);\n // console.log(statNames);\n // console.log(myData);\n for (var i = 0; i < statNames.length; i++) {\n var statName = statNames[i];\n toReturn += \"<br>\";\n toReturn += \"<b>\" + statName + \"</b>: \";\n toReturn += myData[stateSyntax[statName]];\n }\n toReturn += \"<br><b>District</b>: \" + precinctDistricts[myData[stateSyntax[precinctID_NAME]]];\n return toReturn;\n}", "function getIncidentInfo(evt)\n{\n\n var feature = map.forEachFeatureAtPixel(evt.pixel,\n function(feature, markerLayer) {\n return feature;\n });\n\n if (feature) {\n\n var element = popup.getElement();\n validation_status = feature.get(\"is_validated\") ? \"Validated\" : \"Not validated\"\n var incident_content = \"<div>Name: \"+feature.get(\"name\")+\n \"<br>Disaster Type: \"+feature.get(\"disaster\")+\n \"<br>Reported Date: \"+feature.get(\"date\")+\n \"<br>Validation status: \"+validation_status+\n \"<br>District: \"+feature.get(\"district\")+\n \"</div>\";\n console.log(incident_content);\n\n popup.setPosition(evt.coordinate);\n $(element).attr(\"data-placement\", \"top\");\n $(element).attr(\"data-html\", true);\n $(element).attr(\"data-content\", incident_content)\n\n $(element).popover(\"show\");\n } else {\n $(element).popover(\"destroy\");\n popup.setPosition(undefined);\n }\n}", "function popupDivAmenity(feature) {\n var lat = feature.geometry.coordinates[1];\n var lng = feature.geometry.coordinates[0];\n var html = `\n <div class='popup'>\n <h1>${feature.properties['name']}</h1>\n <div class='row'><strong>lat:&nbsp;</strong>${lat}</div>\n <div class='row'><strong>lng:&nbsp;</strong>${lng}</div>\n <div class='row'><strong>type:&nbsp;</strong> ${feature.properties['amenity']}</div>\n </div>\n `;\n return html;\n}", "function showDistrict(state, name) {\n let stateBtn = document.querySelector('.stateBtn');\n stateBtn.innerHTML = name;\n // fetch districts list of selected state using fetch API from API setu \n let url = `https://cdn-api.co-vin.in/api/v2/admin/location/districts/${state}`\n fetch(url).then(response => response.json()).then((data) => {\n // console.log(data) //District list respective to selected state\n let Districts = data.districts;\n districts.innerHTML += ``;\n var html = '';\n Districts.forEach((key) => {\n // console.log(key['district_id']) //check selected district id \n // console.log(key['district_name']) //check selected district name\n html += `<li class=\"List\" onclick=\"showCentres(${key['district_id']}, '${key['district_name']}')\">${key['district_name']}</li>`\n let districts = document.getElementById('districts')\n districts.innerHTML = html\n })\n\n })\n // console.log('clicked') //check showDistrict() is fired successfully\n dropdownState.style.display = \"none\"\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When an annotation started to be hovered.
function handleAnnotationHoverIn (annotation) { if (_getSelectedAnnotations().length === 0) { core.enable({ uuid : annotation.uuid, text : annotation.text, disable : true }) } }
[ "handleHoverInEvent (e) {\n console.log('handleHoverInEvent')\n this.highlight()\n this.emit('hoverin')\n dispatchWindowEvent('annotationHoverIn', this)\n }", "handleHoverInEvent (e) {\n console.log('handleHoverInEvent')\n this.highlight()\n this.emit('hoverin')\n dispatchWindowEvent('annotationHoverIn', this)\n }", "_hoverCallback() {\n this._hovered = true;\n }", "startHover(obj) {\n this.onHoverStart(obj);\n }", "_onPointerOver() {\n this.addState(\"hovered\");\n }", "_hoverCallback() {\n this.hovered = true;\n }", "function onMouseOverAnnotationFoo(target) {\n var item=target;\n var json=annoJSON(item);\n if(saveCurrentHighlightAnnotation == item) {\n // do nothing\n return;\n }\n saveCurrentHighlightAnnotation=item;\n enableBorderState(item);\n updateAnnotationList('onHighlighted', json);\n}", "function activateHoverInfo() {\n mapImplementation.ActivateHoverInfo();\n }", "function onMouseEnter() {\n LxNotificationService.success('Mouse enter callback');\n }", "beginAnnotate() {\n this.annotating = true;\n }", "function handleAnnotationHoverOut (annotation) {\n if (_getSelectedAnnotations().length === 0) {\n core.disable()\n }\n}", "mouseEnter(event) {\n this.setHover();\n }", "mouseover() {\n this.hoverActive = true;\n }", "_onClassMouseEnter() {\n for (const attribute of Object.values(this.attributes.class.hover)) {\n this._CLASSTriggerNewState(attribute);\n }\n }", "function pointerEnteredMap() {\n\t\tmap.addEventListener('pointerenter', function (evt) {\n\t\t\t/* simpen ipen didieu wa */\n\t\t}, false);\n\t}", "onhover() {\n this.hover = true;\n }", "function startAnnotation(x, y) {\n videoPlayer.pause();\n currentAnnotation = new Annotation();\n currentAnnotation.start = videoPlayer.currentTime;\n\tdocument.getElementById(\"start-time\").value = currentAnnotation.start;\n currentAnnotation.x = x;\n currentAnnotation.y = y;\n //redraw();\n // if there isn't a rect yet\n if (currentAnnotation.w === undefined) {\n currentAnnotation.x = mouseX;\n currentAnnotation.y = mouseY;\n\t\tcurrentAnnotation.w = 1;\n\t\tcurrentAnnotation.h = 1;\n dragBR = true;\n }\n\n redraw(); \n\tshowInputField();\n}", "function startAnnotation(x, y) {\n\n currentAnnotation = new Annotation();\n currentAnnotation.start = video.currentTime;\n //document.getElementById(\"start-time\").value = currentAnnotation.start;\n currentAnnotation.x = x;\n currentAnnotation.y = y;\n //redraw();\n // if there isn't a rect yet\n if (currentAnnotation.w === undefined) {\n currentAnnotation.x = mouseX;\n currentAnnotation.y = mouseY;\n currentAnnotation.w = 1;\n currentAnnotation.h = 1;\n dragBR = true;\n }\n\n //Clears then draws anno\n redraw();\n showInputField();\n}", "function mouseEntered() {\n //must delay this because the mouseenter event fires before the :hover styles are added.\n delayAddClass( el, hoverClass );\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a focus style which can be used to define an :after focus border.
function getFocusStyle(theme, inset, color, position) { if (inset === void 0) { inset = '0'; } if (color === void 0) { color = theme.palette.neutralSecondary; } if (position === void 0) { position = 'relative'; } return index_1.mergeStyles({ outline: 'transparent', position: position }, glamorExports_1.parent('.ms-Fabric.is-focusVisible', { ':focus:after': { content: '""', position: 'absolute', left: inset, top: inset, bottom: inset, right: inset, border: '1px solid ' + color } })); }
[ "get borderTypeFocusUnderlineColor() {\n return brushToString(this.i.o3);\n }", "function getFocusStyle(theme, inset, position, highContrastStyle, borderColor, outlineColor) {\n if (inset === void 0) { inset = 0; }\n if (position === void 0) { position = 'relative'; }\n if (highContrastStyle === void 0) { highContrastStyle = undefined; }\n if (borderColor === void 0) { borderColor = theme.palette.white; }\n if (outlineColor === void 0) { outlineColor = theme.palette.neutralSecondary; }\n return {\n outline: 'transparent',\n position: position,\n selectors: (_a = {\n '::-moz-focus-inner': {\n border: '0'\n }\n },\n _a[\".\" + __WEBPACK_IMPORTED_MODULE_1__uifabric_utilities__[\"l\" /* IsFocusVisibleClassName */] + \" &:focus:after\"] = {\n content: '\"\"',\n position: 'absolute',\n left: inset + 1,\n top: inset + 1,\n bottom: inset + 1,\n right: inset + 1,\n border: '1px solid ' + borderColor,\n outline: '1px solid ' + outlineColor,\n zIndex: __WEBPACK_IMPORTED_MODULE_2__zIndexes__[\"a\" /* ZIndexes */].FocusStyle,\n selectors: (_b = {},\n _b[__WEBPACK_IMPORTED_MODULE_0__CommonStyles__[\"a\" /* HighContrastSelector */]] = highContrastStyle,\n _b)\n },\n _a)\n };\n var _a, _b;\n}", "function getFocusStyle(theme, inset, color, position) {\n if (inset === void 0) { inset = '0'; }\n if (color === void 0) { color = theme.palette.neutralSecondary; }\n if (position === void 0) { position = 'relative'; }\n return mergeStyles_1.mergeStyles({\n outline: 'transparent',\n '::-moz-focus-inner': { border: 0 },\n position: position\n }, glamorExports_1.parent('.ms-Fabric.is-focusVisible', {\n ':focus:after': {\n content: '\"\"',\n position: 'absolute',\n left: inset,\n top: inset,\n bottom: inset,\n right: inset,\n border: '1px solid ' + color\n }\n }));\n}", "function getFocusStyle(theme, inset, position) {\n if (inset === void 0) { inset = 0; }\n if (position === void 0) { position = 'relative'; }\n return {\n outline: 'transparent',\n position: position,\n selectors: {\n '::-moz-focus-inner': {\n border: '0'\n },\n '.ms-Fabric.is-focusVisible &:focus:after': {\n content: '\"\"',\n position: 'absolute',\n left: inset + 1,\n top: inset + 1,\n bottom: inset + 1,\n right: inset + 1,\n border: '1px solid ' + theme.palette.white,\n outline: '1px solid ' + theme.palette.neutralSecondary,\n zIndex: 1\n }\n }\n };\n}", "get borderTypeFocusBorderColor() {\n return brushToString(this.i.o2);\n }", "get boxTypeFocusUnderlineColor() {\n return brushToString(this.i.pa);\n }", "function applyFocus() {\n\t\tvar textColor = window.getComputedStyle(document.body, null).getPropertyValue('color');\n\t // Assumption: color is returned as rgb(a) -> will fail if not\n\t\tvar rgb = textColor.match(/^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*(\\d+))?\\)$/);\n\t\tvar red = rgb[1];\n\t\tvar green = rgb[2];\n\t\tvar blue = rgb[3];\n\t\tdynStyle.textContent = '.switchMarks .mark { font-weight: bold; color: rgba(' + red + ',' + green + ',' + blue + ',1) !important; } .switchMarks > :not(.mark):not(button) { color: rgba(' + red + ',' + green + ',' + blue + ',0.35)!important;}';\n\t\tdocument.head.appendChild(dynStyle);\n\t}", "get boxTypeFocusBorderColor() {\n return brushToString(this.i.o9);\n }", "get lineTypeFocusBorderColor() {\n return brushToString(this.i.sv);\n }", "function getFocusStyle(theme, inset, position, highContrastStyle) {\n\t if (inset === void 0) { inset = 0; }\n\t if (position === void 0) { position = 'relative'; }\n\t if (highContrastStyle === void 0) { highContrastStyle = undefined; }\n\t return {\n\t outline: 'transparent',\n\t position: position,\n\t selectors: {\n\t '::-moz-focus-inner': {\n\t border: '0'\n\t },\n\t '.ms-Fabric.is-focusVisible &:focus:after': {\n\t content: '\"\"',\n\t position: 'absolute',\n\t left: inset + 1,\n\t top: inset + 1,\n\t bottom: inset + 1,\n\t right: inset + 1,\n\t border: '1px solid ' + theme.palette.white,\n\t outline: '1px solid ' + theme.palette.neutralSecondary,\n\t zIndex: 1,\n\t selectors: (_a = {},\n\t _a[CommonStyles_1.HighContrastSelector] = highContrastStyle,\n\t _a)\n\t }\n\t }\n\t };\n\t var _a;\n\t}", "get lineTypeFocusUnderlineColor() {\n return brushToString(this.i.sw);\n }", "get borderTypeFocusBorderWidth() {\n return this.i.cl;\n }", "get searchTypeFocusBorderColor() {\n return brushToString(this.i.s2);\n }", "get actualFocusUnderlineColor() {\n return brushToString(this.i.ou);\n }", "function focusOn() {\n let target = this.parentNode;\n let label = this.labels;\n\n let newColor = colorRandom();\n\n target.style.setProperty('border' , `3px dashed ${newColor}`)\n label[0].style.setProperty('color' , `${newColor}`)\n}", "get searchTypeFocusUnderlineColor() {\n return brushToString(this.i.s3);\n }", "function createBorder(shape, displacement) {\n\n var highlight = shape.clone(false);\n highlight.fillColor = viewProperties.highlightColor;\n var highlightSubtract = highlight.clone(false);\n highlightSubtract.position += displacement;\n var highlightClipper = highlight.clone(false);\n highlightClipper.position -= new Point(0.5, 0.5);\n highlightClipper.clipMask = true;\n var upper = new Group([highlightClipper, highlight, highlightSubtract]);\n upper.opacity = 0.5;\n\n var shadowSubtract = shape;\n shadowSubtract.fillColor = viewProperties.shadowColor;\n var shadow = shadowSubtract.clone(false);\n shadow.position += displacement;\n var shadowClipper = shadow.clone(false);\n shadowClipper.position += new Point(0.5, 0.5);\n shadowClipper.clipMask = true;\n var lower = new Group([shadowClipper,shadow, shadowSubtract]);\n lower.opacity = 0.5;\n\n var border = new Group([lower, upper]);\n border.setName(\"border\");\n return border;\n}", "function azureOutlineColor() {\r\n if (brand === \"AZURE\") {\r\n var azureStyles = document.createElement('style');\r\n azureStyles.type = 'text/css';\r\n azureStyles.innerHTML = '.form-wrapper .form-body form input:focus, .form-wrapper .form-body form select:focus, .form-wrapper .form-body form textarea:focus {outline: 2px solid black !important;}';\r\n document.body.appendChild(azureStyles);\r\n }\r\n }", "static processBorderColor(element,valueNew){return TcHmi.System.Services.styleManager.processBorderColor(element,valueNew)}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Flush channel members table Find channel that the bot belongs to, get the members and save to local db
function refreshChannelMembers(isFirstTime) { membersService.flushMembers(); let deferred = Q.defer(); const resp = {}; web.users.list().then(success => { const usersList = success; if (usersList !== undefined) { resp.ok = true; resp.members = usersList.members; } else { resp.ok = false; resp.members = []; } let persons = resp.members.map(person => ({user_id: person.id, profile: person.profile})); //Only save users who are not bots So we filter the array to only contain non bot users let reduced = persons.reduce(function (filtered, person) { if (person.profile.bot_id === undefined && person.user_id !== "USLACKBOT") { let someNewValue = {user_id: person.user_id, profile: person.profile}; filtered.push(someNewValue); } return filtered; }, []); reduced.map(newPerson => { membersService.saveMember(newPerson); if (isFirstTime === true) { usersService.checkUser(newPerson.user_id).then((user) => { if (user === undefined) { usersService.saveUser(newPerson.user_id); } }); } }); deferred.resolve(persons); } ).catch(error => { if (error.code === ErrorCode.PlatformError) { console.log(error.message); console.log(error.data); } deferred.reject(error); }); return deferred.promise }
[ "getChannelMembers() {\n const resp = {};\n return web.channels\n .list()\n .then(res => {\n const channel = res.channels.find(c => c.is_member);\n if (channel) {\n resp.ok = true;\n resp.members = channel.members;\n } else {\n resp.ok = false;\n resp.members = [];\n }\n return Promise.resolve(resp);\n })\n .catch(error => {\n if (error.code === ErrorCode.PlatformError) {\n console.log(error.message);\n console.log(error.data);\n } else {\n console.error;\n }\n return Promise.reject(error);\n });\n }", "function getStoredChannelMembers() {\n let deferred = Q.defer();\n repos.memberRepository.getAllChannelMembers().then(success => {\n deferred.resolve(success.map(it => it.user_id));\n }).catch(error => {\n deferred.reject(error);\n });\n return deferred.promise\n}", "function GetMemberList()\n{\n\t/* client.getMembers().then(function(members){\n\t\t\t\t\t\t\t\t\t console.log(members)\n // this.addMember(members);\n } ); */\n\tclient.getUserChannelDescriptors().then(function(paginator) {\n\t\t\t\t for (i = 0; i < paginator.items.length; i++) {\n\t\t\t\t\tconst channel = paginator.items[i];\n\t\t\t\t\tconsole.log('Channel: ' + channel.friendlyName);\n\t\t\t\t }\n\t\t\t});\n}", "function showMembersCount() {\n let memberCount = guild.members.cache.filter(members => members.user).size;\n let memberCountChannel = guild.channels.cache.find(channels => channels.id === \"694243041472544869\");\n\n // Delete the number of members of bots\n let botCount = guild.members.cache.filter(members => members.user.bot).size;\n let allMemberCount = memberCount - botCount;\n\n if (!memberCountChannel) {\n return;\n } else {\n memberCountChannel.setName(client.lang.event_client_ready_memberCountChannel + allMemberCount);\n }\n setTimeout(showMembersCount, 10000);\n }", "async function fetchUsers()\r\n{\r\n //membersPrimaryChannel = [];\r\n \r\n var loopOne = 0;\r\n var isBotUser = false;\r\n var isMuted = false;\r\n \r\n try {\r\n \r\n const resultOne = await app.client.conversations.members({\r\n token: process.env.SLACK_BOT_TOKEN,\r\n channel: primaryChannel\r\n });\r\n \r\n for ( loopOne = 0; loopOne < resultOne.members.length; loopOne++ )\r\n { \r\n isBotUser = await userIsBot( resultOne.members[loopOne] );\r\n isMuted = await isOnMuteList( resultOne.members[loopOne] );\r\n \r\n if ( ( isBotUser == false ) && ( isMuted == false ) )\r\n {\r\n membersPrimaryChannel.push(resultOne.members[loopOne]);\r\n }\r\n else\r\n {\r\n \r\n if ( isBotUser == true )\r\n {\r\n //console.log('bot: ' + resultOne.members[loopOne]);\r\n };\r\n \r\n if ( isMuted == true )\r\n {\r\n console.log('muted: ' + resultOne.members[loopOne]);\r\n };\r\n }\r\n }\r\n }\r\n catch (error) {\r\n console.error(error);\r\n };\r\n console.log('fetchUsers = ' + membersPrimaryChannel.length);\r\n}", "function updateGMRoomMembers() {\n getRoomMembers(members => {\n for (let member of members) {\n // Find the GM\n if (member.userType === 'gm') {\n // Send them the members\n io.to(member.id).emit('room_members', members)\n return\n }\n }\n })\n }", "fetchAllMembers(guilds) {\r\n return this.send({ op: 8, d: {\r\n guild_id: guilds,\r\n query: \"\",\r\n limit: 0\r\n }\r\n });\r\n }", "function sendMembersUpdate() {\n io.emit('members_update', clients_pool.getClients());\n}", "async updateTelegramChannels() {\n\t\ttry {\n\t\t\tthis.log.info('Reconciliation (Telegram) Channel membership to Poracle users starting...')\n\t\t\tconst channelsToCheck = await this.query.selectAllQuery('humans', { type: 'telegram:channel', admin_disable: 0 })\n\t\t\tconst groupsToCheck = await this.query.selectAllQuery('humans', { type: 'telegram:group', admin_disable: 0 })\n\n\t\t\tfor (const user of [...channelsToCheck, ...groupsToCheck]) {\n\t\t\t\tthis.log.verbose(`Reconciliation (Telegram) Check channel ${user.id} ${user.name}`)\n\n\t\t\t\tconst updates = { }\n\n\t\t\t\t// If there is currently an area restriction for a channel, ensure the location restrictions are correct\n\t\t\t\tif (user.area_restriction && user.community_membership) {\n\t\t\t\t\tconst areaRestriction = communityLogic.calculateLocationRestrictions(this.config, JSON.parse(user.community_membership))\n\t\t\t\t\tif (!haveSameContents(areaRestriction, JSON.parse(user.area_restriction))) {\n\t\t\t\t\t\tupdates.area_restriction = JSON.stringify(areaRestriction)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (Object.keys(updates).length) {\n\t\t\t\t\tawait this.query.updateQuery('humans', updates, { id: user.id })\n\t\t\t\t\tthis.log.info(`Reconciliation (Telegram) Update channel ${user.id} ${user.name}`)\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.log.verbose('Reconciliation (Telegram) Channel membership to Poracle users complete...')\n\t\t} catch (err) {\n\t\t\tthis.log.error('Verification of Poracle channels failed with', err)\n\t\t}\n\t}", "function syncDB(callback) {\n pool.getConnection((err, conn) => {\n if (err) {\n console.log(err);\n conn.destroy();\n return\n }\n var guilds = client.guilds.array();\n for (var i = 0; i < guilds.length; i++) {\n (function(guild) {\n conn.query(\"SELECT id FROM guild WHERE id = ?\", [guild.id], (error, results, fields) => {\n if (error) {\n console.log(error);\n conn.destroy();\n return\n }\n if (!results[0]) {\n conn.query(\"INSERT INTO guild(id, name) VALUES (?, ?)\", [guild.id, guild.name], (error, results, fields) => {\n if (error) {\n console.log(error);\n conn.destroy();\n return\n }\n addMembers(guild);\n });\n } else {\n addMembers(guild);\n }\n function addMembers(guild) {\n var members = guild.members.array();\n for (var i = 0; i < members.length; i++) {\n // use anonymous function to handle with the asynchronous stuff with a for loop\n (function(member, guild) {\n // use ? and [] to remove drop database stuff\n conn.query(\"SELECT id FROM user WHERE id = ?\", [member.id], (error, results, fields) => {\n if (error) {\n console.log(error);\n conn.destroy();\n return\n }\n if (!results[0]) {\n // de user niet gevonden dus maak hem aan\n conn.query(\"INSERT INTO user(id, name) VALUES (?, ?)\", [member.id, member.user.username], (error, results, fields) => {\n if (error) {\n console.log(error);\n conn.destroy();\n return\n }\n conn.query(\"INSERT INTO guild_has_user(user_id, guild_id) VALUES(?, ?)\", [member.id, guild.id], (error, results, fields) => {\n if (error) {\n console.log(error);\n conn.destroy();\n return\n }\n // if its at the last user and the last guild\n if(member.id === members[members.length-1].id && guild.id === guilds[guilds.length-1].id) {\n // destroy connection to DB\n conn.destroy();\n if (callback) {\n callback(); // call the callback\n }\n }\n });\n });\n } else {\n // if its at the last user and the last guild\n if(member.id === members[members.length-1].id && guild.id === guilds[guilds.length-1].id) {\n // destroy connection to DB\n conn.destroy();\n if (callback) {\n callback(); // call the callback\n }\n }\n }\n });\n }(members[i], guild));\n }\n }\n });\n }(guilds[i]));\n }\n });\n}", "async function loadPrivateChannels() {\n const loadChannels = new Promise((resolve, reject) => {\n const { uid } = firebase.auth().currentUser;\n \n firebase.firestore().collection('channels')\n .where('recipients', 'array-contains', uid)\n .where('type', '==', 'DM').limit(50).onSnapshot(snapshot => {\n if (snapshot.empty) {\n addPrivateChannelPlaceholder();\n resolve();\n }\n \n snapshot.docChanges().forEach(async change => {\n const { type, doc: channel } = change;\n \n if (type === 'added') {\n hidePrivateChannelPlaceholder();\n\n const { recipients } = channel.data();\n\n CACHED_RECIPIENTS[channel.id] = recipients;\n\n // Remove current user from recipients list\n recipients.splice(recipients.indexOf(uid), 1);\n const friend_uid = recipients[0];\n\n // If user is already in the cache it most likely means the \n // channel was closed and is being reopened.\n addPrivateChannel(channel.id, friend_uid);\n addChat(channel.id, friend_uid);\n\n if (CACHED_RECIPIENTS[friend_uid]) {\n setRealtimeUserInfo(uid);\n } else {\n await addUserToCache(friend_uid);\n }\n \n resolve();\n }\n\n if (type === 'removed') {\n removePrivateChannel(channel.id);\n removeChat(channel.id);\n loadChannelFromId('friends');\n }\n });\n });\n });\n\n await loadChannels;\n}", "addChannelMember(){\n if(this.member != \"\" && (typeof this.member!='undefined'))\n this.channelJSON.members.push(this.member);\n this.member =\"\";\n }", "function queryChannelMembers(db, channelID) {\n return new Promise((resolve, reject) => {\n db.query(Constant.SQL_SELECT_CHANNEL_MEMBERS, [channelID], (err, rows) => {\n if (err) {\n reject(err);\n }\n if (!rows || rows.length === 0) {\n return resolve(false)\n }\n let members = [];\n let creator = {};\n rows.forEach((row) => {\n let member = {id: row.id, userName: row.username, firstName: row.firstName,\n lastName: row.lastName, photoURL: row.photoURL};\n members.push(member);\n if (row.channelCreatorUserID === row.id) {\n creator = {id: row.id, userName: row.username, firstName: row.firstName,\n lastName: row.lastName, photoURL: row.photoURL};\n }\n });\n if (!rows[0].channelPrivate) {\n members = [];\n }\n let channel = new Channel(rows[0].channelID, rows[0].channelName, rows[0].channelDescription,\n rows[0].channelPrivate, members, rows[0].channelCreatedAt, creator, rows[0].channelEditedAt);\n return resolve(channel);\n });\n });\n}", "get members() {\n const members = Modules.GuildMemberStore.getMembers(this.id);\n return List.from(members, m => new GuildMember(m, this.id));\n }", "async getUsers () {\n\t\tif (this.members) {\n\t\t\treturn;\n\t\t}\n\t\tthis.members = await this.data.users.getByIds(\n\t\t\tthis.stream.get('memberIds') || [],\n\t\t\t{\n\t\t\t\t// only need these fields\n\t\t\t\tfields: ['isRegistered', 'accessToken', 'accessTokens', 'broadcasterToken']\n\t\t\t}\n\t\t);\n\t}", "function redrawChannelMembers() {\n\tremoveChildren(memberListElem);\n\tvar profile = activeWindow[0], party = activeWindow[1];\n\tif (profile in connectionData && party in connectionData[profile].channels) {\n\t\tvar members = connectionData[profile].channels[party].members;\n\t\tmembers.sort(function(s, t) { // Safe mutation; case-insensitive ordering\n\t\t\treturn s.toLowerCase().localeCompare(t.toLowerCase());\n\t\t});\n\t\tmembers.forEach(function(name) {\n\t\t\tvar li = document.createElement(\"li\");\n\t\t\tsetElementText(li, name);\n\t\t\tli.oncontextmenu = makeContextMenuOpener([[\"Open PM window\", function() { openPrivateMessagingWindow(name, null); }]]);\n\t\t\tmemberListElem.appendChild(li);\n\t\t});\n\t\tmemberListContainerElem.style.removeProperty(\"display\");\n\t} else\n\t\tmemberListContainerElem.style.display = \"none\";\n}", "updateMembers() {\n this.elements.me.innerHTML = '';\n this.elements.me.appendChild(this.createMemberElement(me));\n this.elements.membersList.innerHTML = '';\n members.filter(m => m !== me).forEach(member =>\n this.elements.membersList.appendChild(this.createMemberElement(member))\n );\n }", "function setupChannel() {\r\n try {\r\n // Join the general channel\r\n currentChannel.join().then(function (channel) {\r\n //When chat is ready\r\n });\r\n\r\n //for (var memberId in options.chatMembers) {\r\n // if (options.chatMembers.hasOwnProperty(memberId)) {\r\n // currentChannel.add(memberId);\r\n // }\r\n //}\r\n\r\n //set up the listener for the typing started Channel event\r\n currentChannel.on('typingStarted', function (member) {\r\n //process the member to show typing\r\n updateTypingIndicator(member, true);\r\n });\r\n\r\n //set the listener for the typing ended Channel event\r\n currentChannel.on('typingEnded', function (member) {\r\n //process the member to stop showing typing\r\n updateTypingIndicator(member, false);\r\n });\r\n\r\n // Listen for new messages sent to the channel\r\n currentChannel.on('messageAdded', function (message) {\r\n printMessage(message, true);\r\n\r\n if (message.author === options.identity) {\r\n updateLastConsumptionIndex();\r\n }\r\n });\r\n\r\n currentChannel.on('memberJoined', function (member) {\r\n member.getUser().then(user => {\r\n if (options.chatMembers && options.chatMembers.hasOwnProperty(user.identity) && options.chatMembers[user.identity]) {\r\n if (user.online) {\r\n $(options.chatMembers[user.identity]).removeClass('offline').addClass('online');\r\n }\r\n else {\r\n $(options.chatMembers[user.identity]).removeClass('online').addClass('offline');\r\n }\r\n }\r\n user.on('updated', (evnt) => {\r\n if (options.chatMembers && options.chatMembers.hasOwnProperty(user.identity) && options.chatMembers[user.identity]) {\r\n if (user.online) {\r\n $(options.chatMembers[user.identity]).removeClass('offline').addClass('online');\r\n }\r\n else {\r\n $(options.chatMembers[user.identity]).removeClass('online').addClass('offline');\r\n }\r\n }\r\n });\r\n });\r\n });\r\n\r\n currentChannel.getMembers().then(members => {\r\n members.forEach(member => {\r\n member.getUser().then(user => {\r\n if (options.chatMembers && options.chatMembers.hasOwnProperty(user.identity) && options.chatMembers[user.identity]) {\r\n if (user.online) {\r\n $(options.chatMembers[user.identity]).removeClass('offline').addClass('online');\r\n }\r\n else {\r\n $(options.chatMembers[user.identity]).removeClass('online').addClass('offline');\r\n }\r\n }\r\n user.on('updated', (evnt) => {\r\n if (options.chatMembers && options.chatMembers.hasOwnProperty(user.identity) && options.chatMembers[user.identity]) {\r\n if (user.online) {\r\n $(options.chatMembers[user.identity]).removeClass('offline').addClass('online');\r\n }\r\n else {\r\n $(options.chatMembers[user.identity]).removeClass('online').addClass('offline');\r\n }\r\n }\r\n });\r\n });\r\n });\r\n });\r\n\r\n currentChannel.on('memberUpdated', function (member) {\r\n //note this method would use the provided information\r\n //to render this to the user in some way\r\n options.onMemberUpdated && options.onMemberUpdated();\r\n });\r\n }\r\n catch (ex) {\r\n console.log('setupChannel error:' + ex);\r\n }\r\n }", "async getAllMembers () {\n\t\tlet currentMemberIds;\n\t\tif (this.message.isReminder && this.review) {\n\t\t\t// special case for review reminders ... in this case the \"members\" are the reviewers\n\t\t\tcurrentMemberIds = this.review.reviewers || [];\n\t\t} else if (this.codeError || this.parentCodeError) {\n\t\t\t// members for a code error are the followers of the code error\n\t\t\tconst codeError = this.codeError || this.parentCodeError;\n\t\t\tcurrentMemberIds = codeError.followerIds || [];\n\t\t} else if (this.team) {\n\t\t\tcurrentMemberIds = this.team.memberIds;\n\t\t} else {\n\t\t\tthrow new Error('no team found');\n\t\t}\n\t\tif (this.team) {\n\t\t\tcurrentMemberIds = ArrayUtilities.difference(\n\t\t\t\tArrayUtilities.difference(currentMemberIds, this.team.removedMemberIds || []),\n\t\t\t\tthis.team.foreignMemberIds || []\n\t\t\t);\n\t\t}\n\n\t\t// always get the creator, even if removed from the team\n\t\tif (!currentMemberIds.includes(this.post.creatorId)) {\n\t\t\tcurrentMemberIds.push(this.post.creatorId);\n\t\t}\n\n\t\tthis.teamMembers = await this.data.users.getByIds(currentMemberIds);\n\t\tif (\n\t\t\tthis.stream.type === 'file' ||\n\t\t\tthis.stream.isTeamStream ||\n\t\t\tthis.stream.type === 'object'\n\t\t) {\n\t\t\tthis.streamMembers = this.teamMembers;\n\t\t} else {\n\t\t\tthis.streamMembers = this.teamMembers.filter(member => {\n\t\t\t\treturn this.stream.memberIds.indexOf(member.id) !== -1;\n\t\t\t});\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
= Description Default endDrag event responder method. Sets internal flags by default. This is the preferred method to extend if you want to do something when a drag event ends. If you extend, remember to call +this.base();+ = Parameters +x+:: The horizontal coordinate units (px) of the mouse cursor position. +y+:: The vertical coordinate units (px) of the mouse cursor position.
endDrag(x, y) {}
[ "function dragend(d) {\n\t\n}", "function onDragEnd() {\n gCurrLineDrag = -1;\n gIsMouseDown = false;\n if (!getMeme()) return;\n renderInputField();\n gCanvas.style = ('cursor:;')\n}", "function DIF_enddrag(e) {\r\n\tDIF_dragging=false;\r\n//\tDIF_objectDragging.style.cursor=\"auto\";\r\n\tDIF_iframeBeingDragged=\"\";\r\n}", "dragend(){\r\n if ( this.removable ){\r\n this.visibleBin = false;\r\n this.draggedIdx = -1;\r\n }\r\n }", "handleDragEnd() {\n this.stopDragging();\n\n this.isDragging = false;\n }", "function dragEnd (e) {\n self.draggy.position = self.position;\n classes(self.draggy.ele).remove('activeDrag');\n self.dispatchEvent(onDrop);\n d.removeEventListener(events.move, dragMove);\n d.removeEventListener(events.end, dragEnd);\n }", "dragEndHandler() {\n const box = this.bbox();\n this.move(box.x - (box.x % this.widthFactor), box.y - (box.y % this.widthFactor));\n this.snaped = false;\n }", "function endDrag () {\n $element.parents().off( \"mousemove\", handleDrag );\n $element.parents().off( \"mouseup\", endDrag );\n $element[0].dispatchEvent( new CustomEvent(\n ( $element[0].dragType == 4 ) ? 'moved' : 'resized',\n { bubbles : true } ) );\n }", "dragEnd() {\n this.sendAction('dragging');\n }", "function endDrag(e){\n\t\t\t\t$(this).css(\"cursor\", open_hand).unbind(\"mousemove\",doDrag);\n\t\t\t\tclearInterval(capInterval);\n\t\t\t\tif(capTime) applySlide(this, e);\n\t\t\t\treturn true;\n\t\t\t}", "function Form_Drag_OnEnd(event)\n{\n\t//trigger final move\n\t__DRAG_DATA.OnMove(event);\n}", "dragend() {\n\t\tconst $$ = this;\n\t\tconst config = $$.config;\n\n\t\tif ($$.hasArcType() || !config.data_selection_enabled) { // do nothing if not selectable\n\t\t\treturn;\n\t\t}\n\n\t\t$$.main.select(`.${CLASS.dragarea}`)\n\t\t\t.transition()\n\t\t\t.duration(100)\n\t\t\t.style(\"opacity\", \"0\")\n\t\t\t.remove();\n\n\t\t$$.main.selectAll(`.${CLASS.shape}`)\n\t\t\t.classed(CLASS.INCLUDED, false);\n\n\t\t$$.setDragStatus(false);\n\t}", "dragEnd() {\n document.body.style.cursor = 'grab';\n\n this.className = 'fill';\n }", "dragEnd() {\n this.draggingNonFile = false;\n }", "_dragEndHandler() {\n if (!this._dragStartCoords || !this._gotDragged) {\n this._dragStartCoords = null;\n this._gotDragged = false;\n this._resetDrag();\n return;\n }\n const item1 = this._findItemForX(this._dragStartCoords[0]),\n item2 = this._findItemForX(this._dragCurrentCoords[0])\n this._fitSection(item1, item2);\n this._dragStartCoords = null;\n this._gotDragged = false;\n }", "onMouseEnd(event) {\n // the mouse button has been released\n // For some reason, mouseup events don't always get here, so\n // whether the button is still pressed is checked before taking action\n // in other methods. This is called if it is not still pressed.\n window.removeEventListener(\"mousemove\",this.mouseMoveListener);\n this.mouseMode = \"none\";\n this.xResizeVec = 0;\n this.yResizeVec = 0;\n }", "handleDragEnd() {\n\t\tconst { value, drag } = this.state;\n\n\t\tif (drag) {\n\t\t\tthis.setState({ drag: false });\n\t\t\tthis.handleChangeEvent(value, SLIDER.DRAG_END);\n\t\t}\n\t}", "function dragEnd(e) {\n if (activeItem !== null) {\n activeItem.initialX = activeItem.currentX;\n activeItem.initialY = activeItem.currentY;\n }\n active = false;\n activeItem = null;\n}", "function UltraGrid_Sizer_Drag_OnEnd(event)\n{\n\t//trigger final move\n\t__DRAG_DATA.OnMove(event);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reseller.set_reverse [PRODUCTION] [See on api.ovh.com](
SetNewReverseToIp(reverse, serviceName) { let url = `/hosting/reseller/${serviceName}/reverse`; return this.client.request('POST', url, { reverse }); }
[ "async setReverseName(_name, _registrantAccount, _gasPrice) {\n try {\n var _tx = await this.reverseRegistrarSigner.setName(_name, {\n gasPrice: _gasPrice,\n from: _registrantAccount\n });\n return {\n tx: _tx\n };\n } catch (e) {\n console.log(`Error setReverseName for ReverseRegistrar`, e);\n return {\n tx: null\n };\n }\n }", "rewriteReverseResponse(response) {\n return response;\n }", "reverseNavigability(){\n \t\t this.reversed = !this.reversed;\n }", "_revSwitcherURL(rev) {\n\t\treturn `${urlWithRev(this.state.routes, this.state.routeParams, rev)}${window.location.hash}`;\n\t}", "yoyoReverse() {\n this.reverse(true);\n this.yoyo();\n }", "function processAuthorizationReversal() {\n try {\n var apiClient = new CybersourceRestApi.ApiClient();\n var instance = new CybersourceRestApi.ReversalApi(apiClient);\n\n var clientReferenceInformation = new CybersourceRestApi.V2paymentsClientReferenceInformation();\n clientReferenceInformation.code = \"TC50171_3\";\n\n var reversalInformation = new CybersourceRestApi.V2paymentsidreversalsReversalInformation();\n var reversalInformationAmountDetails = new CybersourceRestApi.V2paymentsidreversalsReversalInformationAmountDetails();\n reversalInformationAmountDetails.totalAmount = \"102.21\";\n reversalInformation.reason = \"testing\";\n reversalInformation.amountDetails = reversalInformationAmountDetails;\n\n var request = new CybersourceRestApi.AuthReversalRequest();\n request.clientReferenceInformation = clientReferenceInformation;\n request.reversalInformation = reversalInformation;\n\n instance.authReversal(\"5335624925716231904107\", request, function (error, data, response) {\n if (error) {\n console.log(\"Error : \" + error);\n console.log(\"Error : \" + error.stack);\n console.log(\"Error status code : \" + error.statusCode);\n }\n else if (data) {\n console.log(\"Data : \" + JSON.stringify(data));\n }\n console.log(\"Response : \" + JSON.stringify(response));\n\n });\n } catch (error) {\n console.log(error);\n }\n}", "getSeller() {\n return makeSearchURL({ seller: this.data.seller })\n }", "reverseRoute() {\n this.places = this.places.reverse()\n this.updateAppRoute()\n }", "#reBuildUrl() {\n this.#request.url = this.#configs.uri || this.#model.uri;\n }", "get reverse() {\n return this.#reverse\n }", "reverse() {// TODO: Fix flight plan indexes after reversal\n // this._waypoints.reverse();\n }", "constructor() { \n \n ComAdobeCqSocialUgcbaseImplAysncReverseReplicatorImplProperties.initialize(this);\n }", "function reverse(s){\n s = s.split(\"\").reverse().join(\"\");\n var url = 'http://challenge.code2040.org/api/reverse/validate';\n var data =JSON.stringify({\"token\":apikey, \"string\": s});\n request(url, data, response);\n}", "function reverse(chainContext) {\n chainContext.links.reverse();\n chainContext.links.forEach(function (link) { return link.reversed = !link.reversed; });\n return chainContext;\n }", "urlForRedemption() {\n return this.billingUser ? '/settings/payment-method/coupon' : `/settings/${Spark.pluralTeamString}/${this.team.id}/payment-method/coupon`;\n }", "function processAuthReversal() {\n\n try {\n var apiClient = new CybersourceRestApi.ApiClient();\n var instance = new CybersourceRestApi.ReversalApi(apiClient);\n\n var clientReferenceInformation = new CybersourceRestApi.V2paymentsClientReferenceInformation();\n clientReferenceInformation.code = \"TC50171_1\";\n\n var amountDetails = new CybersourceRestApi.V2paymentsOrderInformationAmountDetails();\n amountDetails.totalAmount = \"3000.00\";\n\n var orderInformation = new CybersourceRestApi.V2paymentsOrderInformation();\n orderInformation.amountDetails = amountDetails;\n\n var reversalInformation = new CybersourceRestApi.V2paymentsidreversalsReversalInformation();\n var amountDetailsReversal = new CybersourceRestApi.V2paymentsidreversalsReversalInformationAmountDetails();\n amountDetailsReversal.totalAmount = \"3000.00\";\n\n var request = new CybersourceRestApi.AuthReversalRequest();\n request.clientReferenceInformation = clientReferenceInformation;\n request.orderInformation = orderInformation;\n request.reversalInformation = reversalInformation;\n\n var id = \"5350191701826303503005\";\n\n instance.authReversal(id, request, function (error, data, response) {\n if (error) {\n console.log(\"Error : \" + error);\n console.log(\"Error : \" + error.stack);\n console.log(\"Error status code : \" + error.statusCode);\n }\n else if (data) {\n console.log(\"Data : \" + JSON.stringify(data));\n }\n console.log(\"Response : \" + JSON.stringify(response));\n\n });\n } catch (error) {\n console.log(error);\n }\n}", "urlForUpdate() {\n return this.billingUser ? '/settings/payment-method' : `/settings/${Spark.pluralTeamString}/${this.team.id}/payment-method`;\n }", "reverse() {\n return this._sequenceFromGenerator(reverse);\n }", "function set_motor_reverse(index)\r\n{\r\n\tmotor_states[index] = 'r';\r\n\tsend_motor_noreply(\"m \" + index + \" r\");\r\n\tif (global_parameters['log_motor'])\r\n\t\tconsole.log(\"Reverse motor \" + index);\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function for filling the second data table with the medians of the selected school(s) total scores
function showMedianTotalScoreGrid() { var htmlList = ""; var ctrl = "satMedianGrid"; //Build a HTML table on the fly dynamically and initialize it as a jQuery data table htmlList += "<table width= 100% style= 'margin-top:12px:width:100%' class='row-border table-striped table-hover' id = 'table-" + ctrl + "'>"; htmlList += "<thead>"; htmlList += "<tr>"; htmlList += "<th class = 'dt-head-center'>School</th>"; htmlList += "<th class = 'dt-head-center'>Year</th>"; htmlList += "<th class = 'dt-head-center'>Median Score</th>"; htmlList += "</tr>"; htmlList += "</thead>"; htmlList += "<tbody>"; var satObject; var currentYear = ""; var nextYear = ""; var currentSchool = ""; var nextSchool = ""; var median = 0.0; if (filteredSatArray.length > 0) { satObject = filteredSatArray[0]; currentYear = satObject.Year; currentSchool = satObject.School; } scoresArray = []; for (var i = 0; i < filteredSatArray.length; i++) { satObject = filteredSatArray[i]; nextYear = satObject.Year; nextSchool = satObject.School; scoresArray if (currentSchool == nextSchool) { if (currentYear == nextYear) { scoresArray.push(satObject.Total_Score); } else { median = math.median(scoresArray); median = math.round(median, 0); htmlList += "<tr>"; htmlList += "<td>" + currentSchool + "</td>"; htmlList += "<td style='text-align:right'>" + currentYear + "</td>"; htmlList += "<td style='text-align:right'>" + median + "</td>"; htmlList += "</tr>"; currentYear = nextYear; scoresArray = []; scoresArray.push(satObject.Total_Score); } } else { median = math.median(scoresArray); median = math.round(median, 0); htmlList += "<tr>"; htmlList += "<td>" + currentSchool + "</td>"; htmlList += "<td style='text-align:right'>" + currentYear + "</td>"; htmlList += "<td style='text-align:right'>" + median + "</td>"; htmlList += "</tr>"; currentYear = nextYear; currentSchool = nextSchool; scoresArray = []; scoresArray.push(satObject.Total_Score); } } median = math.median(scoresArray); median = math.round(median, 0); htmlList += "<tr>"; htmlList += "<td>" + nextSchool + "</td>"; htmlList += "<td style='text-align:right'>" + nextYear + "</td>"; htmlList += "<td style='text-align:right'>" + median + "</td>"; htmlList += "</tr>"; htmlList += "</tbody>"; htmlList += "</table>"; //Write back to the page $("#" + ctrl).html(htmlList); var table = $("#table-" + ctrl).DataTable( { paging: true, ordering: true, info: true, displayLength: 10, order: [[0, 'asc'], [1, 'asc']], responsive: true }); }
[ "function showMeanMathScoreGrid() {\n var htmlList = \"\";\n var ctrl = \"satMeanGridMath\";\n\n //Build a HTML table on the fly dynamically and initialize it as a jQuery data table\n htmlList += \"<table width= 100% style= 'margin-top:12px:width:100%' class='row-border table-striped table-hover' id = 'table-\" + ctrl + \"'>\";\n htmlList += \"<thead>\";\n htmlList += \"<tr>\";\n htmlList += \"<th class = 'dt-head-center'>School</th>\";\n htmlList += \"<th class = 'dt-head-center'>Year</th>\";\n htmlList += \"<th class = 'dt-head-center'>Average Score</th>\";\n htmlList += \"</tr>\";\n htmlList += \"</thead>\";\n htmlList += \"<tbody>\";\n\n var satObject;\n var currentYear = \"\";\n var nextYear = \"\";\n var currentSchool = \"\";\n var nextSchool = \"\";\n\n var average = 0.0;\n\n if (filteredSatArray.length > 0) {\n satObject = filteredSatArray[0];\n currentYear = satObject.Year;\n currentSchool = satObject.School;\n }\n\n scoresArray = [];\n\n for (var i = 0; i < filteredSatArray.length; i++) {\n satObject = filteredSatArray[i];\n\n nextYear = satObject.Year;\n nextSchool = satObject.School; scoresArray\n\n if (currentSchool == nextSchool) {\n\n if (currentYear == nextYear) {\n\n scoresArray.push(satObject.Math_Total_Score);\n\n } else {\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + currentSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + currentYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n htmlList += \"</tr>\";\n\n currentYear = nextYear;\n scoresArray = [];\n scoresArray.push(satObject.Math_Total_Score);\n }\n\n }\n else {\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + currentSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + currentYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n htmlList += \"</tr>\";\n\n currentYear = nextYear;\n currentSchool = nextSchool;\n scoresArray = [];\n scoresArray.push(satObject.Math_Total_Score);\n }\n\n }\n\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + nextSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + nextYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n\n htmlList += \"</tr>\";\n\n htmlList += \"</tbody>\";\n htmlList += \"</table>\";\n\n //Write back to the page\n $(\"#\" + ctrl).html(htmlList);\n var table = $(\"#table-\" + ctrl).DataTable(\n {\n paging: true,\n ordering: true,\n info: true,\n displayLength: 10,\n order: [[0, 'asc'], [1, 'asc']],\n responsive: true\n });\n}", "function showMeanEngScoreGrid() {\n var htmlList = \"\";\n var ctrl = \"satMeanGridEng\";\n\n //Build a HTML table on the fly dynamically and initialize it as a jQuery data table\n htmlList += \"<table width= 100% style= 'margin-top:12px:width:100%' class='row-border table-striped table-hover' id = 'table-\" + ctrl + \"'>\";\n htmlList += \"<thead>\";\n htmlList += \"<tr>\";\n htmlList += \"<th class = 'dt-head-center'>School</th>\";\n htmlList += \"<th class = 'dt-head-center'>Year</th>\";\n htmlList += \"<th class = 'dt-head-center'>Average Score</th>\";\n htmlList += \"</tr>\";\n htmlList += \"</thead>\";\n htmlList += \"<tbody>\";\n\n var satObject;\n var currentYear = \"\";\n var nextYear = \"\";\n var currentSchool = \"\";\n var nextSchool = \"\";\n\n var average = 0.0;\n\n if (filteredSatArray.length > 0) {\n satObject = filteredSatArray[0];\n currentYear = satObject.Year;\n currentSchool = satObject.School;\n }\n\n scoresArray = [];\n\n for (var i = 0; i < filteredSatArray.length; i++) {\n satObject = filteredSatArray[i];\n\n nextYear = satObject.Year;\n nextSchool = satObject.School; scoresArray\n\n if (currentSchool == nextSchool) {\n\n if (currentYear == nextYear) {\n\n scoresArray.push(satObject.Reading_and_Writing_Total_Score);\n\n } else {\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + currentSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + currentYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n htmlList += \"</tr>\";\n\n currentYear = nextYear;\n scoresArray = [];\n scoresArray.push(satObject.Reading_and_Writing_Total_Score);\n }\n\n }\n else {\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + currentSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + currentYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n htmlList += \"</tr>\";\n\n currentYear = nextYear;\n currentSchool = nextSchool;\n scoresArray = [];\n scoresArray.push(satObject.Reading_and_Writing_Total_Score);\n }\n\n }\n\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + nextSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + nextYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n\n htmlList += \"</tr>\";\n\n htmlList += \"</tbody>\";\n htmlList += \"</table>\";\n\n //Write back to the page\n $(\"#\" + ctrl).html(htmlList);\n var table = $(\"#table-\" + ctrl).DataTable(\n {\n paging: true,\n ordering: true,\n info: true,\n displayLength: 10,\n order: [[0, 'asc'], [1, 'asc']],\n responsive: true\n });\n}", "function showMeanTotalScoreGrid() {\n var htmlList = \"\";\n var ctrl = \"satMeanGrid\";\n\n //Build a HTML table on the fly dynamically and initialize it as a jQuery data table\n htmlList += \"<table width= 100% style= 'margin-top:12px:width:100%' class='row-border table-striped table-hover' id = 'table-\" + ctrl + \"'>\";\n htmlList += \"<thead>\";\n htmlList += \"<tr>\";\n htmlList += \"<th class = 'dt-head-center'>School</th>\";\n htmlList += \"<th class = 'dt-head-center'>Year</th>\";\n htmlList += \"<th class = 'dt-head-center'>Average Score</th>\"; \n htmlList += \"</tr>\";\n htmlList += \"</thead>\";\n htmlList += \"<tbody>\";\n\n var satObject; \n var currentYear = \"\";\n var nextYear = \"\";\n var currentSchool = \"\";\n var nextSchool = \"\";\n \n var average = 0.0;\n\n if (filteredSatArray.length > 0) {\n satObject = filteredSatArray[0];\n currentYear = satObject.Year;\n currentSchool = satObject.School;\n }\n \n scoresArray = [];\n\n for (var i = 0; i < filteredSatArray.length; i++) {\n satObject = filteredSatArray[i];\n\n nextYear = satObject.Year;\n nextSchool = satObject.School;scoresArray\n\n if (currentSchool == nextSchool) {\n\n if (currentYear == nextYear) {\n\n scoresArray.push(satObject.Total_Score);\n\n } else {\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + currentSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + currentYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n htmlList += \"</tr>\";\n\n currentYear = nextYear;\n scoresArray = [];\n scoresArray.push(satObject.Total_Score);\n }\n\n }\n else {\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + currentSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + currentYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n htmlList += \"</tr>\";\n\n currentYear = nextYear;\n currentSchool = nextSchool;\n scoresArray = [];\n scoresArray.push(satObject.Total_Score);\n }\n \n }\n average = math.mean(scoresArray);\n average = math.round(average, 0);\n\n htmlList += \"<tr>\";\n htmlList += \"<td>\" + nextSchool + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + nextYear + \"</td>\";\n htmlList += \"<td style='text-align:right'>\" + average + \"</td>\";\n\n htmlList += \"</tr>\";\n\n htmlList += \"</tbody>\";\n htmlList += \"</table>\";\n\n //Write back to the page\n $(\"#\" + ctrl).html(htmlList);\n var table = $(\"#table-\" + ctrl).DataTable(\n {\n paging: true,\n ordering: true,\n info: true,\n displayLength: 10,\n order: [[0, 'asc'], [1, 'asc']],\n responsive: true\n });\n}", "function update_student_scores(test_scores) {\n test_scores.sort((a, b) => a - b);\n const sum = test_scores.reduce((a, b) => a + b, 0);\n const mean = (sum / test_scores.length).toFixed(1);\n const max = test_scores[test_scores.length - 1];\n const min = test_scores[0];\n\n var median = 0;\n if (test_scores.length % 2 == 0) {\n median = (test_scores[Math.floor(test_scores.length / 2)] +\n test_scores[Math.floor(test_scores.length / 2) + 1]) / 2;\n } else {\n median = test_scores[Math.floor(test_scores.length / 2)];\n }\n\n const mean_perc = (mean / max * 100).toFixed(1);\n const median_perc = (median / max * 100).toFixed(1);\n const min_perc = (min / max * 100).toFixed(1);\n\n $(\"#marmostats-score-mean\").html(mean + ' (' + mean_perc + '%)');\n $(\"#marmostats-score-median\").html(median + ' (' + median_perc + '%)');\n $(\"#marmostats-score-min\").html(min + ' (' + min_perc + '%)');\n $(\"#marmostats-score-max\").html(max);\n}", "updateMedals(scores, buttonData) {\n var index_best_score = 0;\n var index_best_score_on_one_turn = 0;\n var index_best_last_score = 0;\n for (var i = 0; i < scores.length; ++i) {\n if (scores[i].score > scores[index_best_score].score) {\n index_best_score = i;\n }\n if (buttonData[i].topScore > buttonData[index_best_score_on_one_turn].topScore) {\n index_best_score_on_one_turn = i;\n }\n if (buttonData[i].lastScore > buttonData[index_best_last_score].lastScore) {\n index_best_last_score = i;\n }\n }\n scores[index_best_score].medals.push({ label: \"Meilleur Score\" });\n scores[index_best_score_on_one_turn].medals.push({ label: \"Meilleur coup\" });\n scores[index_best_last_score].medals.push({ label: \"Meilleur dernier coup\" });\n return (scores);\n }", "function updateStats() {\n\n var num_rows = array_LP.length;\n\n var cells1 = tab2.rows[1].getElementsByTagName('td');\n var cells2 = tab2.rows[2].getElementsByTagName('td');\n\n // Store the averages in the table of statistics\n cells1[1].innerHTML = (sum_LP / num_rows).toFixed(2);\n cells1[2].innerHTML = (sum_DP / num_rows).toFixed(2);\n cells1[3].innerHTML = (sum_EL / num_rows).toFixed(2);\n cells1[4].innerHTML = (sum_PR1 / num_rows).toFixed(2);\n cells1[5].innerHTML = (sum_PR2 / num_rows).toFixed(2);\n cells1[6].innerHTML = (sum_CLE / num_rows).toFixed(2);\n cells1[7].innerHTML = (sum_DUR / num_rows).toFixed(2);\n cells1[8].innerHTML = (sum_INT / num_rows).toFixed(2);\n cells1[9].innerHTML = (sum_NL / num_rows).toFixed(2);\n cells1[10].innerHTML = (sum_HL / num_rows).toFixed(2);\n\n // Store the standard deviations in the table of statistics\n cells2[1].innerHTML = \n (calculateStdDev(sum_LP / num_rows, array_LP)).toFixed(2);\n cells2[2].innerHTML = \n (calculateStdDev(sum_DP / num_rows, array_DP)).toFixed(2);\n cells2[3].innerHTML = \n (calculateStdDev(sum_EL / num_rows, array_EL)).toFixed(2);\n cells2[4].innerHTML = \n (calculateStdDev(sum_PR1 / num_rows, array_PR1)).toFixed(2);\n cells2[5].innerHTML = \n (calculateStdDev(sum_PR2 / num_rows, array_PR2)).toFixed(2);\n cells2[6].innerHTML = \"-\";\n cells2[7].innerHTML = \n (calculateStdDev(sum_DUR / num_rows, array_DUR)).toFixed(2);\n cells2[8].innerHTML = \n (calculateStdDev(sum_INT / num_rows, array_INT)).toFixed(2);\n cells2[9].innerHTML = \n (calculateStdDev(sum_NL / num_rows, array_NL)).toFixed(2);\n cells2[10].innerHTML = \n (calculateStdDev(sum_HL / num_rows, array_HL)).toFixed(2);\n}", "function update_total_students(subject, catalog) {\n var tables = document.getElementsByTagName('table');\n var result_table = document.getElementById('marmostats-project-table');\n var no_submit_table = tables[tables.length - 1];\n var total_submissions = result_table.getElementsByTagName('tr').length - 1;\n var total_no_submit = no_submit_table.getElementsByTagName('tr').length - 1;\n var total_students = total_submissions + total_no_submit;\n\n $(\"#marmostats-total-students\").html(total_students);\n $(\"#marmostats-total-submissions\").html(total_submissions);\n update_submission_rate(total_students, total_submissions);\n}", "function generateTableDataInsideScores(){\n\t// Save to allow in function referencte\n\tvar table = this;\n\tvar columns = table.columns*1;\n\n\t/*\n\t\tCreate data table\n\t*/\n\tvar scores = table.scores;\n\n\t// Just warn (DEBUG mode...)\n\tif(!scores)\n\t\tconsole.log('Table is empty!');\n\n\t// Get evaluation method ('min', 'max', custom...)\n\tvar evalMethod = getMethodFor(table.evaluateMethod);\n\n\t// List of all the keys to sort\n\tvar keysToSort = ['final'];\n\n\t// Go through all scores, creating a unique row\n\t_(scores).forEach(function(score){\n\t\t/*\n\t\t\tNotice score structure:\n\n\t\t\t{\n\t\t\t\ttableId: [this table id]\n\t\t\t\tteamId: xxx,\n\t\t\t\tscores: {\n\t\t\t\t\t 0: {value: xxx, data: {}},\n\t\t\t\t\t'1': {value: xxx, data: {}},\n\t\t\t\t\t 2: {value: xxx, data: {}}\n\t\t\t\t\t [...],\n\t\t\t\t}\n\t\t\t}\n\t\t*/\n\n\t\t// This will be the object inserted in the table's data array\n\t\t// var scoreData = {};\n\n\t\t// Add simple attributes\n\t\t// scoreData['id'] = score.id || null;\n\t\t// scoreData['teamId'] = score.teamId || null;\n\t\t// scoreData['tableId'] = score.tableId || null;\n\t\t// scoreData['team'] = score.teamId || null;\n\t\t// scoreData.team: score.team.name\n\t\t// scoreData.country: score.team.country\n\n\t\t// Add scores data\n\t\tvar scoreValues = [];\n\t\tfor(var i = 0; i < columns; i++){\n\n\t\t\t// Get value and add to scoreValues\n\t\t\tvar value = null;\n\t\t\tif(score.scores[i])\n\t\t\t\tvalue = score.scores[i].value;\n\n\t\t\tscoreValues.push(value);\n\n\t\t\t// Generate field key and saves\n\t\t\t// var field = 'score.'+(i+1);\n\t\t\t// score[field] = score.scores.value || null;\n\t\t}\n\n\t\t// Compute final score and adds to scoreData\n\t\tvar finalScores = evalMethod(scoreValues) || 0;\n\t\tvar showScore = finalScores;\n\n\t\tif(_.isArray(finalScores)){\n\t\t\tshowScore = finalScores[0];\n\n\t\t\tfor(var i = 1; i < finalScores.length; i++){\n\t\t\t\tvar fieldKey = 'final'+(i+1); // Like: final2, final3, ...\n\t\t\t\tscore[fieldKey] = finalScores[i];\n\n\t\t\t\tif(keysToSort.length <= i)\n\t\t\t\t\tkeysToSort.push(fieldKey);\n\t\t\t}\n\t\t}\n\n\t\tscore['final'] = showScore;\n\n\t\t// Add to table data\n\t\t// tableRows.push(score)\n\t});\n\n\t// Sort by 'final' field and reverse if needed\n\tvar finalData = _.sortBy(scores, keysToSort);\n\n\tif(table.sort == 'desc')\n\t\tfinalData = finalData.reverse();\n\n\t// Rank Table\n\tvar pos = 0;\n\tvar lastRow = null;\n\n\t_.forEach(finalData, function(row){\n\t\tpos++;\n\n\t\tvar sameRanking = (lastRow ? true : false);\n\t\tfor(var k in keysToSort){\n\t\t\tvar key = keysToSort[k];\n\t\t\tif(lastRow && lastRow[key] != row[key]){\n\t\t\t\tsameRanking = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(sameRanking){\n\t\t\t// Keeps the same ranking if scores are the same\n\t\t\treturn row.rank = lastRow.rank;\n\t\t}else{\n\t\t\t// Set rank as current position\n\t\t\trow.rank = pos;\n\t\t\t\n\t\t}\n\t\t// Save current row as last one\n\t\tlastRow = row;\n\t});\n\n\t// Self assign the table\n\tthis.scores = finalData;\n\n\t// Return the table\n\treturn this.scores;\n}", "function scoresTable() {\n\tlet row;\n\tlet data;\n\n\tlet topFive = results.sort(function(x,y){\n\t\treturn x[2] < y [2] ? -1 : 1;\n\t}).slice(0, 5);\n\n\ttopFive.forEach(function(result){\n\t\trow = document.createElement('tr');\n\t\trow.classList.add('result');\n\t\tresult.forEach(function (element){\n\t\t\tdata = document.createElement('td');\n\t\t\tdata.textContent = element;\n\t\t\trow.appendChild(data)\n\t\t});\n\t\ttable.appendChild(row);\n\t});\n}", "function updateSummMetrics() {\n\n var rows = document.getElementById('summMetrics-tbl_body').rows;\n\n rows[0].cells[2].innerHTML = sample.n; // n\n rows[2].cells[2].innerHTML = sample.min.toFixed(DEC_DIGITS); // Min\n rows[3].cells[2].innerHTML = sample.max.toFixed(DEC_DIGITS); // Max\n rows[4].cells[2].innerHTML = sample.range.toFixed(DEC_DIGITS); // Range\n rows[5].cells[2].innerHTML = sample.std.toFixed(DEC_DIGITS); // Standard Deviation\n rows[6].cells[2].innerHTML = sample.var.toFixed(DEC_DIGITS); // Variance\n rows[8].cells[2].innerHTML = sample.mean.toFixed(DEC_DIGITS); // Mean\n rows[9].cells[2].innerHTML = sample.median.toFixed(DEC_DIGITS); // Median\n //rows[10].cells[2].innerHTML = sample.mode.join('; '); // Mode\n rows[12].cells[2].innerHTML = sample.q1.toFixed(DEC_DIGITS); // Cuartile 1\n rows[13].cells[2].innerHTML = sample.q2.toFixed(DEC_DIGITS); // Cuartile 2\n rows[14].cells[2].innerHTML = sample.q3.toFixed(DEC_DIGITS); // Cuartile 3\n \n // Shows table\n document.getElementById('summMetrics').classList.remove('d-none');\n}", "layTableScore(table) {\n for (let row = 0; row < table.length; row++) {\n for (let column = 0; column < table[0].length; column++) {\n if (!table[row][column].isMine) {\n table[row][column].squareScore = this.getSquareScore(table, row, column)\n }\n }\n }\n return table\n }", "function showMedianTotalScoreChart() {\n var dataValues = [];\n var dataSet = [];\n var dataSeries = [];\n\n var satObject;\n var currentYear = \"\";\n var nextYear = \"\";\n var currentSchool = \"\";\n var nextSchool = \"\";\n var seriesCount = 0;\n\n var median = 0.0;\n\n if (filteredSatArray.length > 0) {\n satObject = filteredSatArray[0];\n currentYear = satObject.Year;\n currentSchool = satObject.School;\n }\n\n scoresArray = [];\n\n for (var i = 0; i < filteredSatArray.length; i++) {\n satObject = filteredSatArray[i];\n\n nextYear = satObject.Year;\n nextSchool = satObject.School;\n\n if (currentSchool == nextSchool) {\n\n if (currentYear == nextYear) {\n\n scoresArray.push(satObject.Total_Score);\n\n } else {\n median = math.median(scoresArray);\n median = math.round(median, 0);\n\n dataValues.push([currentYear, median])\n\n currentYear = nextYear;\n scoresArray = [];\n scoresArray.push(satObject.Total_Score);\n }\n\n }\n else {\n median = math.median(scoresArray);\n median = math.round(median, 0);\n\n \n dataValues.push([currentYear, median])\n dataSeries = {\n label: currentSchool,\n data: dataValues,\n //bars: { show: true, barWidth: 0.1, order: seriesCount, fill: 1, align: \"center\"},\n };\n \n dataSet.push(dataSeries);\n\n seriesCount += 1;\n \n currentYear = nextYear;\n currentSchool = nextSchool;\n scoresArray = [];\n dataValues = [];\n scoresArray.push(satObject.Total_Score);\n }\n\n }\n\n median = math.median(scoresArray);\n median = math.round(median, 0);\n\n \n dataValues.push([currentYear, median])\n dataSeries = {\n label: currentSchool,\n data: dataValues,\n //bars: { show: true, barWidth: 0.1, order: seriesCount, fill: 1, align: \"center\"},\n };\n dataSet.push(dataSeries);\n\n\n // chart options\n var optionsChart = { \n\n series: {\n stack: true,\n bars: {\n show: true,\n \n }\n },\n bars: {\n barWidth: 0.1, \n align: \"center\",\n fill: 1,\n order: 3\n },\n\n xaxis: { \n tickSize: 1,\n tickDecimals: 0,\n tickLength: 0,\n axisLabel: \"Years\",\n axisLabelUseCanvas: true,\n axisLabelFontSizePixels: 12,\n axisLabelFontFamily: 'Verdana, Arial',\n axisLabelPadding: 10 \n },\n\n yaxis: { \n axisLabel: \"Total SAT Score Median\",\n axisLabelUseCanvas: true,\n axisLabelFontSizePixels: 12,\n axisLabelFontFamily: 'Verdana, Arial',\n axisLabelPadding: 3,\n tickFormatter: function (v, axis) {\n return math.round(v, 0);\n }\n },\n\n legend: {\n show: true,\n noColumns: 5,\n position: 'ne',\n margin: -20,\n labelBoxBorderColor: false,\n labelBoxWidth: 14,\n labelBoxHeight: 10,\n labelBoxMargin: 50,\n backgroundColor: null,\n backgroundOpacity: 0.85,\n sorted: true,\n },\n\n grid: {\n hoverable: true,\n borderColor: \"transparent\",\n backgroundColor: { colors: [\"#ffffff\", \"#EDF5FF\"] },\n markings: [\n { color: '#000', lineWidth: 1, yaxis: { from: 0, to: 0 } },\n ]\n },\n //colors: chartColors,\n\n };\n\n var previousPoint = null, previousLabel = null;\n $.fn.UseTooltip = function () {\n\n $(this).bind(\"plothover\", function (event, pos, item) {\n if (item) {\n if ((previousLabel != item.series.label) || (previousPoint != item.dataIndex)) {\n previousPoint = item.dataIndex;\n previousLabel = item.series.label;\n $(\"#tooltip\").remove();\n\n var x = item.datapoint[0];\n var y = item.datapoint[1];\n\n var color = item.series.color;\n var month = new Date(x).getMonth();\n\n if (item.seriesIndex == 0) {\n showTooltip(item.pageX,\n item.pageY,\n color,\n item.series.label + \" | \" + math.round(x, 0) + \" | <strong>\" + math.round(y, 0) + \"</strong>\");\n\n } else {\n showTooltip(item.pageX,\n item.pageY,\n color,\n item.series.label + \" | \" + math.round(x, 0) + \" | <strong>\" + math.round(y, 0) + \"</strong>\");\n }\n }\n } else {\n $(\"#tooltip\").remove();\n previousPoint = null;\n }\n });\n };\n\n\n //Initialize the charts\n $.plot($(\"#satMedianChart\"), dataSet, optionsChart);\n $(\"#satMedianChart\").UseTooltip();\n\n $(window).resize(function () {\n $.plot($(\"#satMedianChart\"), dataSet, optionsChart);\n });\n\n}", "function table_maker(datasets) {\n reset_table();\n for (var i = 0; i < datasets.length; i++) {\n $('#summary').append('<tr style=\"text-align: center\">' + data(datasets[i]) + '</tr>');\n }\n totals_row_maker(datasets);\n $('#table-div').slideDown();\n }", "function assignScoresByAcceptanceRateNeighbor(schools, getter, setter) {\n var sbar = [];\n var schoolsWithout = [];\n _.each(schools, function(school) {\n var percent = school.generalAdmissionsData.acceptanceRate.percent;\n var type = school.schoolType;\n var military = school.military;\n var historicallyBlack = school.historicallyBlack;\n if (percent) {\n var val = getter(school);\n if (val) {\n sbar.push([percent, school, type, military, historicallyBlack]);\n } else {\n schoolsWithout.push([percent, school, type, military, historicallyBlack]);\n }\n }\n });\n sbar = _.sortBy(sbar, function(s) { return s[0]; });\n schoolsWithout.forEach(function(percentSchool) {\n // limit list of potential neighbors if the schools have similar gender, type, military and HBC values\n newBar = _.filter(sbar, function(s) {\n return s[2] === percentSchool[2] && s[3] === percentSchool[3] && s[4] === percentSchool[4];\n });\n var pos = _.sortedIndex(newBar, percentSchool, function(s) { return s[0]; });\n var chosen;\n if (pos === 0) {\n chosen = newBar[0];\n } else if (pos === newBar.length - 1) {\n chosen = newBar[newBar.length - 1];\n } else if (pos === newBar.length) {\n chosen = newBar[newBar.length - 1];\n } else if (Math.abs(newBar[pos][0] - percentSchool[0]) <\n Math.abs(newBar[pos + 1][0] - percentSchool[0])) {\n chosen = newBar[pos];\n } else {\n chosen = newBar[pos + 1];\n }\n if (chosen) { \n var chosenPercent = chosen[0];\n var chosenSchool = chosen[1];\n percentSchool[1].calculatedAdmissionsData = percentSchool[1].calculatedAdmissionsData || {};\n setter(percentSchool[1], chosenSchool, chosenPercent);\n }\n });\n}", "function populateStatsTable() {\n\tdocument.getElementById('CMN_club').innerHTML = '<strong>'+ Math.round(clubs[clubRow][1]) +'</strong>';\n\tdocument.getElementById('CMN_min').innerHTML = Math.round(clubs[clubRow][4]);\n\tdocument.getElementById('CMN_avg').innerHTML = '<strong>'+ Math.round(clubs[clubRow][3]) +'</strong>';\n\tdocument.getElementById('CMN_max').innerHTML = Math.round(clubs[clubRow][5]);\n\tdocument.getElementById('CMN_num').innerHTML = Math.round(clubs[clubRow][6]);\n}", "function updateGrade(summary)\n{\n var total = 0;\n var totalWeight = 0;\n for(var i = 0;i<summary.categories.length;i++)\n {\n var category = summary.categories[i];\n if(category.maxScore != 0)\n {\n total += category.weight * (category.currentScore)/(category.maxScore)\n totalWeight += category.weight;\n }\n }\n var numericalGrade = total/totalWeight;\n summary.finalGradeRow.getElementsByTagName(\"td\")[1].innerHTML = \"\";\n summary.finalGradeRow.getElementsByTagName(\"td\")[1].appendChild(createEditableNumberAnchor(Math.round(numericalGrade * 10000)/100, finalGradeClick));\n summary.finalGradeRow.getElementsByTagName(\"td\")[2].innerHTML = letterGrade(numericalGrade);\n summary.finalGradeRow.getElementsByTagName(\"td\")[1].setAttribute(\"align\",\"center\");\n summary.numericalGrade = numericalGrade;\n}", "function populateHighScores() {\n tableBodyEl.innerHTML = \"\";\n highScores.forEach(function (score) {\n var tRow = document.createElement(\"tr\");\n var tContent = `<td>${score.userInitials}</td><td>${score.userScore}</td>`;\n tRow.innerHTML = tContent;\n tableBodyEl.appendChild(tRow);\n });\n}", "function showStatistics(statistics) {\n var tableRef = document.getElementById(\"sTable2019\");\n var tableRef2 = document.getElementById(\"sTable2018\");\n var rows = statistics.length;\n\n // display 2019 statistics\n for (var i = 0; i < rows; i += 2) {\n // insert a row\n var newRow = tableRef.insertRow();\n\n // insert a cell in the row\n var newCell = newRow.insertCell(0);\n // append a text node to the cell\n var newText = document.createTextNode(statistics[i].name);\n newCell.appendChild(newText);\n\n // number of applications column\n newCell = newRow.insertCell(1);\n newText = document.createTextNode(statistics[i].numOfApplications);\n newCell.appendChild(newText);\n\n // number of recipients column\n newCell = newRow.insertCell(2);\n newText = document.createTextNode(statistics[i].numOfRecipients);\n newCell.appendChild(newText);\n\n // acceptance ratio column\n newCell = newRow.insertCell(3);\n newText = document.createTextNode(statistics[i].acceptanceRatio);\n newCell.appendChild(newText);\n\n }\n\n // display 2018 statistics\n for (var j = 1; j < rows; j += 2) {\n // insert a row\n var newRow = tableRef2.insertRow();\n\n // insert a cell in the row\n var newCell = newRow.insertCell(0);\n // append a text node to the cell\n var newText = document.createTextNode(statistics[j].name);\n newCell.appendChild(newText);\n\n // number of applications column\n newCell = newRow.insertCell(1);\n newText = document.createTextNode(statistics[j].numOfApplications);\n newCell.appendChild(newText);\n\n // number of recipients column\n newCell = newRow.insertCell(2);\n newText = document.createTextNode(statistics[j].numOfRecipients);\n newCell.appendChild(newText);\n\n // acceptance ratio column\n newCell = newRow.insertCell(3);\n newText = document.createTextNode(statistics[j].acceptanceRatio);\n newCell.appendChild(newText);\n\n }\n\n}", "function updateSummary(oldSummary, newAssignment, oldAssignment)\n{\n for(var i = 0;i<oldSummary.categories.length;i++)\n {\n if(oldSummary.categories[i].name == newAssignment.category)\n {\n oldSummary.categories[i].currentScore += parseGrade(newAssignment.points);\n \n if(!newAssignment.unknown)\n oldSummary.categories[i].maxScore += newAssignment.outOf; \n }\n if(oldSummary.categories[i].name == oldAssignment.category)\n {\n oldSummary.categories[i].currentScore -= parseGrade(oldAssignment.points);\n if(!oldAssignment.unknown)\n oldSummary.categories[i].maxScore -= oldAssignment.outOf;\n }\n oldSummary.categories[i].tableRow.getElementsByTagName(\"td\")[2].innerHTML =\n oldSummary.categories[i].currentScore + '/' + oldSummary.categories[i].maxScore;\n var newGrade = (oldSummary.categories[i].currentScore/oldSummary.categories[i].maxScore)\n if(oldSummary.categories[i].maxScore != 0)\n {\n oldSummary.categories[i].tableRow.getElementsByTagName(\"td\")[3].innerHTML =\n Math.round(newGrade*10000)/100;\n }\n else\n {\n oldSummary.categories[i].tableRow.getElementsByTagName(\"td\")[3].innerHTML = \"\"; \n }\n }\n return oldSummary;\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get specific country border data from geojson file
function getGeoJson() { console.log({ iso3: 'it', country: country }); console.log(`http://api.geonames.org/countryInfoJSON?formatted=true&lang=it&country=${country}&username=Romancevic&style=full`) console.log('Hello') $.ajax({ url: "libs/php/getCountryPolygon.php", type: 'POST', dataType: 'json', data: { iso3: 'it', country: country }, success: function(result){ console.log(result.data.border); if(result){ if (result.data.countryInfo.geonames.length > 0) { if(bounds != undefined){ map.removeLayer(bounds); } bounds = L.geoJSON(result.data.border, {style: polyStyle}).addTo(map); map.flyToBounds(bounds.getBounds(), { animate: true, duration: 2.5 }); locationMarker.bindPopup(`Capital: ${capital}`).openPopup(); } else { alert('Данные для данного места не найдены!') } } }, error: function(jqXHR, textStatus, errorThrown){ alert(`Error in geojson: ${textStatus} ${errorThrown} ${jqXHR}`); } }); }
[ "function displayBorders(json, map, flagColors, inp, func, country, citiesWithIds, markerGroup, hlMarker, getWiki, getPhoto, getWeather) {\n var c = L.geoJson(json, {\n onEachFeature: onEachFeature,\n style: style\n }).addTo(map);\n\n var selCountry;\n\n // Add style to each country border polygon\n function style(feature) {\n return {\n fillColor: getColor(feature.properties.ISO2),\n opacity: 0,\n color: getColor(feature.properties.ISO2),\n fillOpacity: 0\n };\n }\n\n // Find color from flagColors variable for each country code\n function getColor(iso2) {\n if (!flagColors[iso2]) {\n return \"white\";\n } else {\n return flagColors[iso2];\n }\n }\n\n // Add listeners to each country polygon feature\n function onEachFeature(feature, layer) {\n layer.on({\n click: onCountryClick,\n mouseover: onCountryHighLight,\n mouseout: onCountryMouseOut\n });\n layer._leaflet_id = layer.feature.properties.ISO2;\n }\n\n // Event handler when mouse leaves country\n function onCountryMouseOut(e) {\n var layer = e.target;\n var countryCode = layer.feature.properties.ISO2;\n if (selCountry != null) {\n var selCountryCode = selCountry.feature.properties.ISO2;\n } else {\n var selCountryCode = null;\n }\n if (countryCode != selCountryCode) {\n c.resetStyle(layer);\n } else {\n layer.setStyle({\n weight: 2,\n opacity: 0.7,\n dashArray: '',\n fillOpacity: 0.3\n });\n }\n }\n\n // Event handler when a country is clicked\n function onCountryClick(e) {\n\n hlMarker = null;\n // Remove previous markers\n var layer = e.target;\n if (selCountry != null && selCountry != layer) {\n map.removeLayer(locationMarker);\n var selCountryCode = selCountry.feature.properties.ISO2;\n } else {\n selCountryCode = null;\n }\n var countryCode = layer.feature.properties.ISO2;\n var countryName = country[countryCode];\n inp.value = countryName;\n\n if (selCountryCode != null) {\n c.resetStyle(selCountry);\n }\n layer.setStyle({\n weight: 2,\n opacity: 0.7,\n dashArray: '',\n fillOpacity: 0.3\n });\n\n // Check currentCard before animation\n checkCurrentCard('#country-card');\n\n currentCard.id = '#country-card';\n\n if (layer != selCountry) {\n selCountry = layer;\n markerGroup.clearLayers();\n updateMap(layer, map, flagColors, countryCode);\n func();\n } else {\n if (cardFlip.getFlip() != true) {\n setTimeout(function() {\n showCountry();\n }, 1000);\n } else {\n cardFlip.setFlip();\n }\n }\n }\n\n\n // Event handler when mouse hovers over a country\n function onCountryHighLight(e) {\n var layer = e.target;\n var countryCode = layer.feature.properties.ISO2;\n var isoCodes = document.getElementById('isoCodes').innerHTML;\n var iso2 = isoCodes.slice(0, 2);\n if (countryCode != iso2) {\n layer.setStyle({\n weight: 1,\n opacity: 0.3,\n dashArray: '',\n fillOpacity: 0.1\n });\n }\n\n if (!L.Browser.ie && !L.Browser.opera) {\n layer.bringToFront();\n }\n }\n\n // Event handler on popup open\n map.on('popupopen', function(e) {\n // identify marker that triggered popup\n var mark = e.popup._source;\n // remove highlight of previous marker\n if (typeof(hlMarker) != 'undefined' && hlMarker != null) {\n map.removeLayer(hlMarker.popup.highlight);\n }\n // add highlight to selected marker\n e.popup.highlight = L.circleMarker(e.popup.getLatLng(), {\n radius: 9.5,\n opacity: 0,\n fillColor: '#6a6a6a',\n fillOpacity: 1\n }).addTo(markerGroup);\n // record selected marker\n hlMarker = e;\n\n checkCurrentCard('#city-card');\n\n // Display city info\n var data = citiesWithIds[mark._leaflet_id];\n var cityName = data['name'];\n var region = data['adminName1'];\n var cityRegion = cityName + \" | \" + region;\n var cityPopulation = numberWithCommas(data['population']) + ' people';\n var geonameId = data['geonameId'];\n var lat = data['lat'].slice(0, -2) + ' | ';\n var lng = data['lng'].slice(0, -2);\n\n var cityEncoded = encodeURIComponent(cityName);\n\n getPhoto(cityEncoded);\n getWeather(data['lat'], data['lng']);\n getWiki(cityEncoded, geonameId);\n\n currentCard.id = '#city-card';\n\n if (cardFlip.getFlip() == true) {\n cardFlip.setFlip();\n $('#cityName').html(cityRegion);\n $('#cityPopulation').html(cityPopulation);\n $('#cityCoord').html(lat + lng);\n } else {\n setTimeout(function() {\n $('#cityName').html(cityRegion);\n $('#cityPopulation').html(cityPopulation);\n $('#cityCoord').html(lat + lng);\n showCity();\n }, 1000);\n }\n\n });\n\n map.on('popupclose', function(e) {\n\n // remove highlight of previous marker\n if (typeof(hlMarker) != 'undefined' && hlMarker != null) {\n map.removeLayer(hlMarker.popup.highlight);\n }\n })\n}", "function getCountryByAlpha(border) {\n border.forEach(b => {\n fetch('https://restcountries.eu/rest/v2/alpha/' + b)\n .then(function (response) {\n return response.json();\n })\n .then(function (data) {\n const Countryname = data.name;\n appendBorders(Countryname);\n });\n });\n}", "function getCountryBorders(country) {\n $.ajax({\n url: \"libs/php/getCountryBorders.php\",\n type: 'POST',\n dataType: 'json',\n data: {\n countryName: country\n },\n success: function(result) {\n if (result.status.name == \"ok\") {\n let borders= result.borders;\n var geoJsonLayer= L.geoJson(borders, {color:'#c1cd32'}).addTo(mymap);\n mymap.fitBounds(geoJsonLayer.getBounds());\n \n (countryDropdown.change(function(){\n if (geoJsonLayer){\n geoJsonLayer.remove(mymap)\n };\n geoJsonLayer= L.geoJson(borders, {stroke: false, color:'#151305', opacity:0.01}).addTo(mymap);\n })\n ); \n } \n },\n error: function(jqXHR, textStatus, errorThrown) {\n console.log(jqXHR + textStatus + errorThrown)\n }\n }); \n}", "function loadRegionalView() {\n\t$(\".loading-indicator-container\").show();\n\tif (!neighborhoodPolygonLayer) {\n var data = {\n \"type\": \"FeatureCollection\",\n \"features\": [{\n \"type\": \"Feature\",\n \"id\": \"01\",\n \"properties\": {\n \"name\": \"North DC\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.01083, 38.95414],\n [-77.02785, 38.95349],\n [-77.02755, 38.95144],\n [-77.02435, 38.93527],\n [-77.0261, 38.93511],\n [-77.0312, 38.9365],\n [-77.034364, 38.937773],\n [-77.03644, 38.93808],\n [-77.047778, 38.935849],\n [-77.049662, 38.941217],\n [-77.078806, 38.941161],\n [-77.0792, 38.9459],\n [-77.08034, 38.94849],\n [-77.088753, 38.954617],\n [-77.091264, 38.956455],\n [-77.085736, 38.960809],\n [-77.071878, 38.97171],\n [-77.050779, 38.987883],\n [-77.041, 38.995109],\n [-77.0373, 38.992909],\n [-77.026609, 38.984691],\n [-76.9926, 38.95761],\n [-77.0027, 38.95571],\n [-77.01083, 38.95414]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"02\",\n \"properties\": {\n \"name\": \"West DC\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.091264, 38.956455],\n [-77.08034, 38.94849],\n [-77.0792, 38.9459],\n [-77.078806, 38.941161],\n [-77.079548, 38.935735],\n [-77.080176, 38.931909],\n [-77.083778, 38.925911],\n [-77.08442, 38.922104],\n [-77.08229, 38.918342],\n [-77.080766, 38.91448],\n [-77.078676, 38.909562],\n [-77.0789, 38.90591],\n [-77.078578, 38.904134],\n [-77.0826, 38.904409],\n [-77.0932, 38.907609],\n [-77.0999, 38.911909],\n [-77.1017, 38.913409],\n [-77.102773, 38.9192],\n [-77.117236, 38.936473],\n [-77.110302, 38.941893],\n [-77.091264, 38.956455]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"03\",\n \"properties\": {\n \"name\": \"Friendship Heights\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.065229, 38.917401],\n [-77.06755, 38.91699],\n [-77.06852, 38.91644],\n [-77.07115, 38.91623],\n [-77.0728, 38.91651],\n [-77.075028, 38.918561],\n [-77.08229, 38.918342],\n [-77.08442, 38.922104],\n [-77.083778, 38.925911],\n [-77.080176, 38.931909],\n [-77.079548, 38.935735],\n [-77.078806, 38.941161],\n [-77.049662, 38.941217],\n [-77.047778, 38.935849],\n [-77.048749, 38.932868],\n [-77.04904, 38.926755],\n [-77.04921, 38.9232],\n [-77.050062, 38.921087],\n [-77.04875, 38.91863],\n [-77.04789, 38.9184],\n [-77.0464, 38.91631],\n [-77.04588, 38.91422],\n [-77.04684, 38.91325],\n [-77.04826, 38.91162],\n [-77.048914, 38.910778],\n [-77.050819, 38.910732],\n [-77.059542, 38.916747],\n [-77.061084, 38.915947],\n [-77.065229, 38.917401]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"04\",\n \"properties\": {\n \"name\": \"Adams Morgan\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.0396, 38.91801],\n [-77.040879, 38.916766],\n [-77.04588, 38.91422],\n [-77.0464, 38.91631],\n [-77.04789, 38.9184],\n [-77.04875, 38.91863],\n [-77.050062, 38.921087],\n [-77.04921, 38.9232],\n [-77.04904, 38.926755],\n [-77.048749, 38.932868],\n [-77.047778, 38.935849],\n [-77.03644, 38.93808],\n [-77.036358, 38.926897],\n [-77.03636, 38.91901],\n [-77.0396, 38.91801]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"05\",\n \"properties\": {\n \"name\": \"East DC\"\n },\n \"geometry\": {\n \"type\": \"MultiPolygon\",\n \"coordinates\": [\n [\n [\n [-77.02325, 38.92808],\n [-77.02435, 38.93527],\n [-77.02755, 38.95144],\n [-77.02785, 38.95349],\n [-77.01083, 38.95414],\n [-77.0027, 38.95571],\n [-76.9926, 38.95761],\n [-76.9633, 38.93511],\n [-76.9423, 38.91871],\n [-76.945474, 38.91587],\n [-76.94701, 38.915422],\n [-76.952066, 38.915422],\n [-76.952961, 38.915358],\n [-76.953665, 38.914526],\n [-76.953793, 38.91363],\n [-76.954305, 38.912606],\n [-76.95553, 38.910658],\n [-76.957697, 38.907679],\n [-76.959297, 38.90819],\n [-76.960705, 38.907999],\n [-76.961793, 38.907423],\n [-76.962753, 38.906207],\n [-76.963553, 38.904669],\n [-76.964545, 38.904159],\n [-76.96596016102319, 38.902043012313044],\n [-76.967452826663774, 38.902054185649284],\n [-76.970084501539134, 38.9021267025797],\n [-76.97535399692174, 38.902241702579701],\n [-76.978413996921731, 38.902234377455059],\n [-77.005868656405809, 38.902499863602898],\n [-77.004673, 38.908827],\n [-77.00904, 38.91072],\n [-77.01414, 38.91287],\n [-77.01677, 38.914],\n [-77.02203, 38.91616],\n [-77.02325, 38.92808]\n ]\n ],\n [\n [\n [-77.00904, 38.91072],\n [-77.008957695266261, 38.91064963017751],\n [-77.008973695266263, 38.910516479289939],\n [-77.00904, 38.91072]\n ]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"06\",\n \"properties\": {\n \"name\": \"Shaw\"\n },\n \"geometry\": {\n \"type\": \"MultiPolygon\",\n \"coordinates\": [\n [\n [\n [-77.02698, 38.90375],\n [-77.0271, 38.90567],\n [-77.02707, 38.91398],\n [-77.02402, 38.914],\n [-77.024, 38.91681],\n [-77.02203, 38.91616],\n [-77.01677, 38.914],\n [-77.01414, 38.91287],\n [-77.00904, 38.91072],\n [-77.004673, 38.908827],\n [-77.00526048583518, 38.905671796928843],\n [-77.0059049054437, 38.902521335355701],\n [-77.007812574787962, 38.8970854930351],\n [-77.0127, 38.89891],\n [-77.022, 38.90201],\n [-77.0241, 38.90201],\n [-77.02703, 38.90087],\n [-77.02698, 38.90375]\n ]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"07\",\n \"properties\": {\n \"name\": \"Capitol Hill\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.007687623933748, 38.898030893475841],\n [-76.966000551366747, 38.897387920989338],\n [-76.966016, 38.897439],\n [-76.966464, 38.895903],\n [-76.967104, 38.895008],\n [-76.967808, 38.894432],\n [-76.96832, 38.893792],\n [-76.968704, 38.893152],\n [-76.968576, 38.892384],\n [-76.967936, 38.89136],\n [-76.967424, 38.890656],\n [-76.96736, 38.889696],\n [-76.968256, 38.887584],\n [-76.973376, 38.879265],\n [-76.974943, 38.878183],\n [-76.983715, 38.875571],\n [-76.989960190870306, 38.872655975937704],\n [-76.990453017968363, 38.872425942480085],\n [-76.990456413680832, 38.872424357487127],\n [-76.991065940112989, 38.877232843785315],\n [-76.991388003389829, 38.877957486158195],\n [-76.99372296214689, 38.878038001977401],\n [-76.997265658192092, 38.878843160169495],\n [-77.000325259322025, 38.879487286723169],\n [-77.002579702259879, 38.880453476553676],\n [-77.006524977401128, 38.881017087288136],\n [-77.009034405265652, 38.881518972861045],\n [-77.009034114349845, 38.881561344890194],\n [-77.009034, 38.881578],\n [-77.01091, 38.88193],\n [-77.01284, 38.88581],\n [-77.013505752404313, 38.888520530949464],\n [-77.014263716646226, 38.891987876202165],\n [-77.0132, 38.89191],\n [-77.007309, 38.896018],\n [-77.007755, 38.897064],\n [-77.007812574787962, 38.8970854930351],\n [-77.007687623933748, 38.898030893475841]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"08\",\n \"properties\": {\n \"name\": \"Downtown\"\n },\n \"geometry\": {\n \"type\": \"MultiPolygon\",\n \"coordinates\": [\n [\n [\n [-77.010940927215373, 38.881992174920022],\n [-77.010998771219988, 38.881969168781822],\n [-77.011758248981735, 38.882222328035738],\n [-77.014289841520863, 38.882538777103129],\n [-77.028719918993943, 38.882538777103129],\n [-77.029514529735792, 38.881894498123245],\n [-77.033530492631584, 38.883526044210527],\n [-77.038912365966112, 38.886902541166265],\n [-77.038867591587945, 38.891949579940771],\n [-77.038789587685883, 38.89195],\n [-77.0391, 38.89871],\n [-77.0391, 38.90231],\n [-77.04089, 38.90537],\n [-77.0361, 38.90721],\n [-77.032113, 38.905535],\n [-77.02698, 38.90375],\n [-77.02703, 38.90087],\n [-77.0241, 38.90201],\n [-77.022, 38.90201],\n [-77.0127, 38.89891],\n [-77.007755, 38.897064],\n [-77.007309, 38.896018],\n [-77.0132, 38.89191],\n [-77.014260196384512, 38.892020243749457],\n [-77.014276003287549, 38.892016987414124],\n [-77.01284, 38.88581],\n [-77.010940927215373, 38.881992174920022]\n ]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"09\",\n \"properties\": {\n \"name\": \"Columbia Heights\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.036358, 38.926897],\n [-77.03644, 38.93808],\n [-77.034364, 38.937773],\n [-77.0312, 38.9365],\n [-77.0261, 38.93511],\n [-77.02435, 38.93527],\n [-77.02325, 38.92808],\n [-77.02203, 38.91616],\n [-77.024, 38.91681],\n [-77.02408, 38.91761],\n [-77.026, 38.92031],\n [-77.02724, 38.92069],\n [-77.03357, 38.91971],\n [-77.03458, 38.91903],\n [-77.03636, 38.91901],\n [-77.036358, 38.926897]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"10\",\n \"properties\": {\n \"name\": \"Dupont Circle\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.03822, 38.91393],\n [-77.03633, 38.91394],\n [-77.0361, 38.90721],\n [-77.04089, 38.90537],\n [-77.04694, 38.90531],\n [-77.04729, 38.90491],\n [-77.04857, 38.90489],\n [-77.050185, 38.908444],\n [-77.0499, 38.90951],\n [-77.050819, 38.910732],\n [-77.048914, 38.910778],\n [-77.04826, 38.91162],\n [-77.04684, 38.91325],\n [-77.04588, 38.91422],\n [-77.040879, 38.916766],\n [-77.0396, 38.91801],\n [-77.0383, 38.91841],\n [-77.03822, 38.91393]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"11\",\n \"properties\": {\n \"name\": \"Foggy Bottom\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.038760075171751, 38.886851887324006],\n [-77.051498293151724, 38.887021887323996],\n [-77.056164, 38.893081],\n [-77.057395, 38.899664],\n [-77.05749, 38.901329],\n [-77.055991, 38.902828],\n [-77.055705, 38.904399],\n [-77.054468, 38.90685],\n [-77.053873, 38.908063],\n [-77.052564, 38.908753],\n [-77.050185, 38.908444],\n [-77.04857, 38.90489],\n [-77.04729, 38.90491],\n [-77.04694, 38.90531],\n [-77.04089, 38.90537],\n [-77.0391, 38.90231],\n [-77.0391, 38.89871],\n [-77.038760075171751, 38.886851887324006]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"12\",\n \"properties\": {\n \"name\": \"Georgetown\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.08229, 38.918342],\n [-77.075028, 38.918561],\n [-77.0728, 38.91651],\n [-77.07115, 38.91623],\n [-77.06852, 38.91644],\n [-77.06755, 38.91699],\n [-77.065229, 38.917401],\n [-77.061084, 38.915947],\n [-77.059542, 38.916747],\n [-77.050819, 38.910732],\n [-77.0499, 38.90951],\n [-77.050185, 38.908444],\n [-77.052564, 38.908753],\n [-77.053873, 38.908063],\n [-77.055705, 38.904399],\n [-77.055991, 38.902828],\n [-77.05749, 38.901329],\n [-77.057395, 38.899664],\n [-77.0624, 38.901609],\n [-77.0692, 38.90361],\n [-77.078578, 38.904134],\n [-77.0789, 38.90591],\n [-77.078676, 38.909562],\n [-77.080766, 38.91448],\n [-77.08229, 38.918342]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"13\",\n \"properties\": {\n \"name\": \"Logan Circle\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.03633, 38.91394],\n [-77.02707, 38.91398],\n [-77.0271, 38.90567],\n [-77.02698, 38.90375],\n [-77.032113, 38.905535],\n [-77.0361, 38.90721],\n [-77.03633, 38.91394]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"14\",\n \"properties\": {\n \"name\": \"U Street\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.03633, 38.91394],\n [-77.03822, 38.91393],\n [-77.0383, 38.91841],\n [-77.03636, 38.91901],\n [-77.03458, 38.91903],\n [-77.03357, 38.91971],\n [-77.02724, 38.92069],\n [-77.026, 38.92031],\n [-77.02408, 38.91761],\n [-77.024, 38.91681],\n [-77.02402, 38.914],\n [-77.02707, 38.91398],\n [-77.03633, 38.91394]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"15\",\n \"properties\": {\n \"name\": \"Waterfront\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-77.009034405265652, 38.881518972861045],\n [-77.006524977401128, 38.881017087288136],\n [-77.002579702259879, 38.880453476553676],\n [-77.000325259322025, 38.879487286723169],\n [-76.997265658192092, 38.878843160169495],\n [-76.99372296214689, 38.878038001977401],\n [-76.991388003389829, 38.877957486158195],\n [-76.991065940112989, 38.877232843785315],\n [-76.990456413680832, 38.872424357487127],\n [-76.991327, 38.872018],\n [-76.991932289508526, 38.871699472778459],\n [-76.993349604252899, 38.871118086767098],\n [-76.998718, 38.872691],\n [-77.006, 38.8713],\n [-77.009137, 38.866576],\n [-77.010041, 38.864839],\n [-77.01164, 38.86324],\n [-77.0135, 38.863409],\n [-77.014667, 38.863297],\n [-77.015124, 38.86107],\n [-77.01758, 38.859985],\n [-77.019179, 38.860728],\n [-77.019978, 38.871692],\n [-77.022377, 38.875975],\n [-77.029405, 38.88185],\n [-77.029514529735792, 38.881894498123245],\n [-77.028719918993943, 38.882538777103129],\n [-77.014289841520863, 38.882538777103129],\n [-77.011758248981735, 38.882222328035738],\n [-77.010998771219988, 38.881969168781822],\n [-77.010940927215373, 38.881992174920022],\n [-77.01091, 38.88193],\n [-77.009034, 38.881578],\n [-77.009034405265652, 38.881518972861045]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"16\",\n \"properties\": {\n \"name\": \"East of The River\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-76.962464, 38.889691],\n [-76.960918, 38.897075],\n [-76.96158, 38.899107],\n [-76.960495, 38.900991],\n [-76.958913, 38.902815],\n [-76.957121, 38.905823],\n [-76.956225, 38.908254],\n [-76.955649, 38.909022],\n [-76.953985, 38.911006],\n [-76.953537, 38.912606],\n [-76.953217, 38.913822],\n [-76.952642, 38.914654],\n [-76.951618, 38.91491],\n [-76.946306, 38.914846],\n [-76.94445, 38.915806],\n [-76.942658, 38.917406],\n [-76.9423, 38.918709],\n [-76.937055, 38.914818],\n [-76.909334, 38.892809],\n [-76.913234, 38.889809],\n [-76.913291175276015, 38.889808862955867],\n [-77.015609, 38.809809],\n [-77.0216, 38.810109],\n [-77.02536, 38.810752],\n [-77.027859, 38.815987],\n [-77.027145, 38.820745],\n [-77.026026907894732, 38.828599184210532],\n [-77.024049763157905, 38.837358210526318],\n [-77.020123868421067, 38.850454986842109],\n [-77.016445907894749, 38.856460644736842],\n [-77.008209289473697, 38.86288017105263],\n [-77.00515884210526, 38.866414605263152],\n [-77.004456, 38.868024],\n [-77.001898, 38.870188],\n [-76.995216, 38.868817],\n [-76.99396, 38.86876],\n [-76.989963, 38.871044],\n [-76.983738, 38.873957],\n [-76.97323, 38.877555],\n [-76.971403, 38.879439],\n [-76.969975, 38.881438],\n [-76.964321, 38.886178],\n [-76.962464, 38.889691]\n ]\n ]\n }\n }, {\n \"type\": \"Feature\",\n \"id\": \"17\",\n \"properties\": {\n \"name\": \"H Street\"\n },\n \"geometry\": {\n \"type\": \"MultiPolygon\",\n \"coordinates\": [\n [\n [\n [-77.005927537037664, 38.902635881966553],\n [-76.965820694325387, 38.902057020319162],\n [-76.96608, 38.901343],\n [-76.966336, 38.899487],\n [-76.966060291669393, 38.897387920989331],\n [-77.007627883631088, 38.897971153173195],\n [-77.005927537037664, 38.902635881966553]\n ]\n ]\n ]\n }\n }]\n };\n \n neighborhoodPolygonLayer = L.geoJson(data, {\n style: getNeighborhoodFeatureStyle,\n onEachFeature: displayNeighborhoodFeature\n }).addTo(map);\n populateLocationCountsByNeighborhood();\n\t}\n}", "function getCountry(location) {\n for(var i = 0; i < Object.keys(geojson).length-1; i++) {\n if(geojson[i].properties.name == location) {\n return geojson[i];\n }\n }\n}", "function returnBoundingBoxFromCountryName(countryName) {\n\n let countriesInfo = countriesInfoFunctions.returnCountriesInfo();\n\n let features = countriesInfo['countryBorders']['features'];\n\n let countryBoundary;\n\n for (let i = 0; i < features.length; i++) {\n\n if (features[i]['properties']['name'] == countryName) {\n\n countryBoundary = coordinatesToMultipolylineArray(features[i]['geometry']['coordinates']);\n break;\n\n }\n\n }\n\n if (!(countryBoundary)) {\n\n console.error(\"returnBoundingBoxFromCountryName: Country not in countryBoundaries\");\n return;\n\n }\n\n let maxNorth;\n let maxSouth;\n let maxEast;\n let maxWest;\n\n for (let i = 0; i < countryBoundary.length; i++) {\n\n let currentNorth = countryBoundary[i][0][0]; // lat = y\n let currentSouth = countryBoundary[i][0][0]; // lat = y\n let currentEast = countryBoundary[i][0][1]; // lon = x\n let currentWest = countryBoundary[i][0][1]; // lon = x\n\n for (let j = 1; j < countryBoundary[i].length; j++) {\n\n let currentX = countryBoundary[i][j][1];\n let currentY = countryBoundary[i][j][0];\n\n // North and South\n if (currentY > currentNorth) {\n\n currentNorth = currentY;\n\n } else if (currentY < currentSouth) {\n\n currentSouth = currentY;\n\n }\n\n // East and West\n if (currentX > currentEast) {\n\n currentEast = currentX;\n\n } else if (currentX < currentWest) {\n\n currentWest = currentX;\n\n }\n\n }\n\n if (i == 0) {\n\n maxNorth = currentNorth;\n maxSouth = currentSouth;\n maxEast = currentEast;\n maxWest = currentWest;\n\n } else {\n\n if (currentNorth > maxNorth) {\n\n maxNorth = currentNorth;\n\n }\n\n if (currentSouth < maxSouth) {\n\n maxSouth = currentSouth;\n\n }\n\n if (currentEast > maxEast) {\n\n maxEast = currentEast;\n\n }\n\n if (currentWest < maxWest) {\n\n maxWest = currentWest;\n\n }\n\n }\n\n }\n\n return {\n\n north: maxNorth,\n east: maxEast,\n south: maxSouth,\n west: maxWest\n\n }\n\n}", "function addCountry(name){\n\tfor(var i = 0; i < borderData.features.length; i++){\n\t\tif(borderData.features[i].properties.name == name){\t\t\t\t\t\n\t\t\tcountries.push(L.geoJson(borderData.features[i], {\n\t\t\t\tonEachFeature: OnEachCountry,\n\t\t\t\tstyle : normalStyle\n\t\t\t}).addTo(map));\n\t\t\tcountries[countries.length-1].options.name = borderData.features[i].properties.name;\n\t\t}\n\t}\n}", "function getGeoJson() {\n\t\n\t// Loop through the geoJson layer variable created from the paris_arrons geoJSON data. \n\tfor (id in geoJsonLayer._layers){\n\t\t\n\t\t// If the feature properties match what has been selected. \n\t\tif (geoJsonLayer._layers[id].feature.properties.C_AR + \": \" + geoJsonLayer._layers[id].feature.properties.L_AROFF === selectedLayer){ \n\t\t\n\t\t\t// Returns the selected Arrondissement layer. \n\t\t\treturn geoJsonLayer._layers[id]; \n\n\t\t}\t\n\t}\n}", "parseGeoJSON() {\n\t\tfor (const country in this.countries) {\n\t\t\ttry {\n\t\t\t\tthis.geojson.push({\n\t\t\t\t\ttype: \"Feature\",\n\t\t\t\t\tgeometry: {\n\t\t\t\t\t\ttype: \"Point\",\n\t\t\t\t\t\tcoordinates: this.countries[country].coordinates\n\t\t\t\t\t},\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\ttitle: this.countries[country].name,\n\t\t\t\t\t\ticon: \"basketball\",\n\t\t\t\t\t\tcases: this.countries[country].cases,\n\t\t\t\t\t\tdeaths: this.countries[country].deaths,\n\t\t\t\t\t\trecovered: this.countries[country].recovered\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (e) {\n\t\t\t\tconsole.error(`Error: Failed to parse country to generate Geojson`);\n\t\t\t\tconsole.error(`Country Object:\\n ${this.countries[country]}`);\n\t\t\t}\n\t\t}\n\t}", "function loadCountriesList() {\n // First converts the shapefile file is GeoJSON and gets the data.\n shp(jsRoutes.controllers.Assets.versioned('data/geodata/TM_WORLD_BORDERS-0.3').url).then(function(geojson) {\n // Then alphabetically sorts the GeoJSON data by the countries' names.\n geojson.features.sort(function(a, b) {\n var nameA = a.properties.NAME;\n var nameB = b.properties.NAME\n\n if (nameA < nameB) return -1;\n else if (nameA > nameB) return 1;\n else return 0;\n });\n\n // Finally adds each country in the select list.\n geojson.features.forEach(function(obj) {\n $('#streamingDefaultArea').append($('<option>', {\n value: obj.properties.NAME,\n text: obj.properties.NAME\n }));\n })\n })\n}", "function selectCountryOnMap(countryName, map) {\n // Resets the drawing's toolbar in the dynamic map if it is the given map.\n if (map === searchMaps.dynamicMap && rectangleManuallyDrawn) {\n drawControlEditOnly.dynamicMap.removeFrom(searchMaps.dynamicMap);\n drawControlFull.dynamicMap.addTo(searchMaps.dynamicMap);\n }\n // Erases each potential other drawn polygons on the map before drawing the\n // selected country's borders.\n erasePolygons(map);\n\n // Deals world's borders data to display a polygon on the selected country.\n // First converts the shapefile file is GeoJSON and gets the data.\n shp(jsRoutes.controllers.Assets.versioned('data/geodata/TM_WORLD_BORDERS-0.3').url).then(function(geojson) {\n // Then searchs for the right selected country.\n geojson.features.forEach(function(obj) {\n if (obj.properties.NAME == countryName) {\n // Will contain the temporary coordinates of the current territory.\n var tmp = new Array();\n // This array will contain the maximum northeast and minimum southwest coordinates\n // of a rectangle polygon bounding all the selected country's territories (since\n // the current country can have several different zones.), in order to properly\n // zoom and fit the map on it and also to give the server this rectangle area.\n var maxMinCoordinates = [];\n\n // Once the country has been found, there are two cases:\n // 1. the country owns only one territory (like Switzerland): Polygon type.\n // 2. the country owns multiple territories (like France => France and Corsica): MultiPolygon type.\n // We have to differenciate both types, because of the structures, which are not the same.\n if (obj.geometry.type == \"Polygon\") {\n // Initializes the coordinates of the country's rectangle.\n maxMinCoordinates = [\n [obj.geometry.coordinates[0][0][1], obj.geometry.coordinates[0][0][0]],\n [obj.geometry.coordinates[0][0][1], obj.geometry.coordinates[0][0][0]]\n ]\n\n // Puts each polygon-country's coordinates in the temporary array.\n // Since latitude and longitude are inverted in Leaflet, we have to invert them here.\n obj.geometry.coordinates[0].forEach(function(coord) {\n // Checks if the current coordinates are smaller/bigger than the maximum/minimum\n // current coordinates.\n if (coord[0] < maxMinCoordinates[0][1]) {\n maxMinCoordinates[0][1] = coord[0];\n } else if (coord[0] > maxMinCoordinates[1][1]) {\n maxMinCoordinates[1][1] = coord[0];\n }\n\n if (coord[1] < maxMinCoordinates[0][0]) {\n maxMinCoordinates[0][0] = coord[1];\n } else if (coord[1] > maxMinCoordinates[1][0]) {\n maxMinCoordinates[1][0] = coord[1];\n }\n\n tmp.push([coord[1], coord[0]]);\n })\n\n // Draws the polygon on the map and zooms on it.\n L.polygon(tmp).addTo(map);\n map.fitBounds(tmp);\n // Add the country's coordinates in the saved global variable.\n selectedCountryCoordinates.push(tmp);\n } else if (obj.geometry.type == \"MultiPolygon\") {\n // Initializes the coordinates of the country's rectangle.\n maxMinCoordinates = [\n [obj.geometry.coordinates[0][0][0][1], obj.geometry.coordinates[0][0][0][0]],\n [obj.geometry.coordinates[0][0][0][1], obj.geometry.coordinates[0][0][0][0]]\n ];\n\n // Iterates over each country's territories.\n for (var i = 0; i < obj.geometry.coordinates.length; ++i) {\n // Adds each territory one by one on the temporary array.\n for (var j = 0; j < obj.geometry.coordinates[i][0].length; ++j) {\n // Checks if the current coordinates are smaller/bigger than the maximum/minimum\n // current coordinates.\n if (obj.geometry.coordinates[i][0][j][0] < maxMinCoordinates[0][1]) {\n maxMinCoordinates[0][1] = obj.geometry.coordinates[i][0][j][0];\n } else if (obj.geometry.coordinates[i][0][j][0] > maxMinCoordinates[1][1]) {\n maxMinCoordinates[1][1] = obj.geometry.coordinates[i][0][j][0];\n }\n\n if (obj.geometry.coordinates[i][0][j][1] < maxMinCoordinates[0][0]) {\n maxMinCoordinates[0][0] = obj.geometry.coordinates[i][0][j][1];\n } else if (obj.geometry.coordinates[i][0][j][1] > maxMinCoordinates[1][0]) {\n maxMinCoordinates[1][0] = obj.geometry.coordinates[i][0][j][1];\n }\n\n tmp.push([obj.geometry.coordinates[i][0][j][1], obj.geometry.coordinates[i][0][j][0]]);\n }\n\n // Adds each territory as a polygon to the map.\n L.polygon(tmp).addTo(map);\n // Add the coordinates of the current country's territory in the saved global variable.\n selectedCountryCoordinates.push(tmp);\n tmp = [];\n }\n\n // Zooms and fits the map on the maximum got northeast and minumum got southwest coordinates.\n map.fitBounds(maxMinCoordinates);\n }\n\n // Set the selected country's coordinates as the coordinates of the bounding rectangle.\n boundingRectangleLatLngs = [\n maxMinCoordinates[0],\n [maxMinCoordinates[1][0], maxMinCoordinates[0][1]],\n maxMinCoordinates[1],\n [maxMinCoordinates[0][0], maxMinCoordinates[1][1]]\n ];\n\n return;\n }\n })\n })\n}", "function returnCountryBorder(type, countryName) {\n\n // ===== Input Validation =====\n // Validate 'type'\n if (!((type == 'home') || (type == 'current'))) {\n\n console.error('updateCountryBorder: Incorrect type specified');\n return false;\n\n }\n\n let countriesInfo = returnCountriesInfo();\n\n let features = countriesInfo['countryBorders']['features'];\n\n for (let i=0; i < features.length; i++) {\n\n if (features[i]['properties']['name'] == countryName) {\n\n let countryBorder = features[i];\n\n let timeOfCreation = moment().unix();\n\n let countryBorderObject = {\n data: {\n content: countryBorder,\n timeOfCreation: timeOfCreation \n }\n }\n\n return countryBorderObject;\n\n }\n\n }\n\n console.error('returnCountryBorder: Country not found in countryBorders object');\n return false;\n\n }", "function pickcountry(data){\t\r\n\tvar props = data.properties; //json properties\r\n\tvar region = d3.select(\"#\"+ (\"props.COUNTYCO\")); //select the current region\r\n\tmapclickedcountry = region;\r\n\tregion = \"\";\r\n}", "function countryBorders(){\n // Define layer to map\n var layer = ui.Map.Layer({\n eeObject: country_borders.style(s.countryborders),\n visParams: {},\n name: 'Country Borders',\n opacity: 0.5\n });\n // Add layer to map\n c.map.layers().set(2, layer); // Define nth layer\n}", "function regionFeatures(json,region){\n var obj = {type: \"FeatureCollection\",features:[]}\n obj.features = \n json.features.filter(function(d) { \n return d.properties.continent == region })\n return obj\n }", "function addCountries() {\n d3.json(\"world-110m.json\", function(error, world) {\n svg.append(\"path\")\n .datum(topojson.object(world, world.objects.land))\n .attr(\"class\", \"land\")\n .attr(\"d\", path);\n addStates();\n });\n }", "function fetchGeoJson(){\n\tif(map.hasLayer(countries)) { // Only pull data if the country layer is visible\n\t\tvar geoJsonUrl =\"http://demo.opengeo.org/geoserver/ows\";\n\t\tvar defaultParameters = {\n\t\t\tservice: \"WFS\",\n\t\t\tversion: \"1.1.0\",\n\t\t\trequest: \"getFeature\",\n\t\t\ttypeNames: \"maps:ne_50m_admin_0_countries\",\n\t\t\tmaxFeatures: 500,\n\t\t\toutputFormat: \"application/json\"\n\t\t};\n\n\t\tvar customParams = {\n\t\t\tbbox: map.getBounds().toBBoxString()+\",EPSG:4326\"\n\t\t};\n\t\tvar parameters = L.Util.extend(defaultParameters, customParams);\n\n\t\t$.ajax({\n\t\t\turl: geoJsonUrl + L.Util.getParamString(parameters),\n\t\t\tdatatype: \"json\",\n\t\t\tjsonCallback: \"getJson\",\n\t\t\tsuccess: loadGeoJson\n\t\t});\n\t}\n}", "function loadMapShapes() {\n // load US state outline polygons from a GeoJson file\n map.data.loadGeoJson('https://raw.githubusercontent.com/javanmehri/GeoJson/master/Canada/canada_provinces_rgb.json', { idPropertyName: 'cartodb_id' });\n}", "function layerCountries (map, rc) {\n var layerCountries = L.geoJson(window.countries, {\n // correctly map the geojson coordinates on the image\n coordsToLatLng: function (coords) {\n return rc.unproject(coords)\n },\n // add a popup content to the marker\n onEachFeature: function (feature, layer) {\n if (feature.properties && feature.properties.name) {\n layer.bindPopup(feature.properties.name)\n }\n },\n pointToLayer: function (feature, latlng) {\n return L.circleMarker(latlng, {\n radius: 8,\n fillColor: '#800080',\n color: '#D107D1',\n weight: 1,\n opacity: 1,\n fillOpacity: 0.8\n })\n }\n })\n map.addLayer(layerCountries)\n return layerCountries\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main function to try getting a quote, getting a photo URL from NASA, downloading that photo, and tweeting a message, gracefully handling errors when possible
function bot() { // try getting a quote return getQuote().then(function(quoteinfo) { //try getting a photo URL return getPhotoInfoFromNasa().then(function(photoinfo) { var quoteandattrib = quoteinfo.quoteText + "\n-" + quoteinfo.quoteAuthor + "\n@happyspacebot\n"; var updatedcopyright = (typeof photoinfo.copyright == 'undefined') ? "Public Domain" : photoinfo.copyright; var imgcredittext = "Image Credits: " + updatedcopyright; var potentialfulltweet = quoteandattrib + imgcredittext; // send the image to Cloudinary, put the text directly onto the image, download it to the server, and that is the photo we'll tweet console.log("Tweet: " + potentialfulltweet + "\n" + photoinfo.url); //var textoption0 = "text:Merriweather_40_stroke:" + quoteandattrib; var textoption0 = "text:Overlock_50_stroke:" + quoteandattrib; /* the standard comma interferes with Cloudinary's code, so it needs to be replaced in the quote text with %252C -- https://support.cloudinary.com/hc/en-us/community/posts/200788162-Using-special-characters-in-Text-overlaying- */ var textoption1 = textoption0.replace(/,/g, '%252C'); var textoption = textoption1.replace(/—/g, '-'); var eager_options = { width: 600, gravity: 'south_east', x: 8, y: 8, color: 'white', overlay: textoption, flags: 'no_overflow', crop: 'fit', border: '4px_solid_rgb:333333' }; cloudinary.uploader .upload(photoinfo.url, { tags: "NASA", eager: eager_options }) .then(function(result) { return downloadPhoto(result.eager[0].url).then(function(filename) { tweetMessage(filename, imgcredittext); }).catch(function(error) { console.log('More than 140 char - downloadPhoto() error: ', error.message); }); }).catch(function(error) { console.log('cloudinary error: ', error.message); }); }).catch(function(getphotoerror) { console.log('getPhotoInfoFromNasa() error: ', getphotoerror.message); }); }).catch(function(quoteerror) { console.log('getQuote() error: ', quoteerror.message); }); }
[ "function handleURL(url) {\n if (args.download) {\n if (url !== null)\n downloadURL(url, args.download, console.log);\n else\n console.log(\"Could not find picture. Check your internet or the date.\")\n } else {\n console.log(url);\n }\n }", "function getImgXKCD(uiCallback, url) {\n trace(\"xkcd URL: \"+ url + '\\n')\n var message1 = new Message(url)\n \n message1.invoke(Message.TEXT).then(text => {\n if (0 == message1.error && 200 == message1.status) {\n try {\n \n var response = JSON.parse(text)\n trace(\"response is: \" + response + '\\n')\n safeTitle = response.safe_title\n var search = 'https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=2854926198390429ffc0e398f45c521f&text=' \n + encodeURIComponent(safeTitle) + \n '&format=json&nojsoncallback=1'\n var message2 = new Message(search)\n message2.invoke(Message.TEXT).then(text => {\n if (0 == message2.error && 200 == message2.status) {\n try {\n trace(\"text123: \" + text+ '\\n')\n var response = JSON.parse(text)\n var photo_url = 'https://api.flickr.com/services/rest/?method=flickr.photos.getSizes&api_key=2854926198390429ffc0e398f45c521f&photo_id='\n + response.photos.photo[0].id + \n '&format=json&nojsoncallback=1'\n var message3 = new Message(photo_url)\n message3.invoke(Message.TEXT).then(text => {\n if (0 == message3.error && 200 == message3.status) {\n try {\n var response = JSON.parse(text)\n var org_image = response.sizes.size[0].source\n trace(\"text24124: \" + org_image + '\\n')\n if (org_image) {\n uiCallback(org_image)\n }\n \n }\n catch (e) {\n throw('Web service responded with invalid JSON!\\n');\n }\n }\n else {\n trace('Request Failed - Raw Response Body: *'+text+'*'+'\\n');\n }\n });\n }\n catch (e) {\n throw('Web service responded with invalid JSON!\\n');\n }\n }\n else {\n trace('Request Failed - Raw Response Body: *'+text+'*'+'\\n');\n }\n });\n\n\n \n }\n catch (e) {\n throw('Web service responded with invalid JSON!\\n');\n }\n }\n else {\n trace('Request Failed - Raw Response Body: *'+text+'*'+'\\n');\n }\n });\n}", "function requestToNASAroverImgs() {\n initForFirst();\n initForRovers();\n\n const roverUrl = `https://api.nasa.gov/mars-photos/api/v1/rovers/curiosity/photos?sol=1000&api_key=${nasaKey}`;\n\n fetch(roverUrl)\n .then((res) => res.json())\n .then((data) => {\n let arrForImgs = Object.values(data)[0];\n let randomImgs = [];\n for (let i = 0; i < 4; i++) {\n let randomForRoverImgs = Math.floor(Math.random() * arrForImgs.length);\n const imgs = arrForImgs[randomForRoverImgs];\n randomImgs.push(imgs);\n }\n\n htmlForRovers(randomImgs);\n })\n .then(() => {\n didYouKnow.classList.add(\"active\");\n const queueDiv = document.querySelector(\".queue\");\n if (queueDiv) queueDiv.remove();\n options.forEach((option) => (option.disabled = false));\n })\n .catch((err) => console.log(err));\n}", "function downloadAPODImageGif(title,date,url, filename){\n var download = function(uri, filename, callback){\n request.head(uri, function(err, res, body){\n request(uri).pipe(fs.createWriteStream(filename)).on('close', callback);\n });\n };\n\n download(url, filename , function(){\n mediaData = require('fs').readFileSync(filename);\n mediaSize = require('fs').statSync(filename).size;\n console.log('Media Size: ' + mediaSize);\n uploadMediaTweet(title, date);\n console.log('Downloaded');\n });\n}", "function fetchImage() {\n // TODO\n fetch('examples/fetching.jpg')\n\t.then(validateResponse)\n\t.then(readResponseAsBlob)\n\t.then(showImage)\n\t.catch(logError);\n}", "function getApodPicOfTheDay(){\n nasa.APOD.fetch()\n .then(data => retrieveData(data))\n .catch(err => console.log(err));\n\n function retrieveData(data){\n //console.log(data);\n var last_pic = JSON.parse(fs.readFileSync(APOD_PIC_OF_THE_DAY_FILE,'utf8'));\n if(data.date != last_pic.date){\n var title = data.title;\n var url = data.url;\n var media_type = data.media_type;\n var date = data.date;\n date = date.substring(2);\n date = date.replace(/-/g,'');\n\n if(media_type == 'image' || media_type == 'gif'){\n mediaType = 'image/gif';\n downloadAPODImageGif(title, date, url, pathToAPODImage);\n\n }\n else if(media_type == 'video'){\n var codeId = url.substring(30,41);\n var newTweet = 'Astronomy Picture of the Day: https://apod.nasa.gov/apod/ap'\n + date + '.html' + ' by @NASA \\r\\n' + '\\r\\n' + title + '\\r\\n'\n + 'https://www.youtube.com/watch?v=' + codeId;\n tweetIt(newTweet);\n }\n\n\n\n var json = JSON.stringify(data,null,2);\n fs.writeFileSync(APOD_PIC_OF_THE_DAY_FILE,json);\n }\n }\n}", "async function getRandomImage(quote) {\n const params = {\n query: quote.text,\n }\n const queryString = formatQueryParams(params);\n const url = randomImageURL + '?' + queryString;\n return await fetchUnsplashImage(url);\n}", "function main(){\n preloadExternalPage(getUrl())\n .then(getScreenCapture)\n .then(function(stream){\n return showExternalPage(200).then(function(){ return stream; }); // show the page for at least 200 ms\n })\n .then(getImageFromStream)\n .then(function(image){\n removeExternalPage();\n return image;\n })\n .then(function(image){\n return analyzeImageText(image, getKeywords())\n })\n .then(showResults)\n .catch(console.error);\n}", "function getPhotoInfo(photoID) {\n // CALL 1: GETS USER INFO ON PHOTOS IN NEATER OBJECTS\n console.log(\"fetching photo info...\");\n axios.get(INFO_API_URL_BASE, {\n //call the link\n params: {\n photo_id: photoID // pass thru your varibales to Flickr's parameters\n\n }\n }).then(function (infoResponse) {\n //then call this function\n //console.log(infoResponse);\n pullPhotoData(infoResponse);\n }).catch(function (error) {\n //if get function failed, call this function \n console.log(\"infoResponse isn't working...\");\n console.log(error); //show error code in the console\n });\n } //7a. all API again, now reqesuting imgs", "function getThumbNail(songURL){\n songURL = \"https://cors-anywhere.herokuapp.com/\"+songURL\n thumbNail = null\n xhttp.open(\"GET\", songURL, false);\n xhttp.send();\n html = xhttp.responseText;\n var link_url_index = html.indexOf('img src=\"');\n var beginning_url_index = html.indexOf('https://', link_url_index);\n var end_url_index = html.indexOf('\\\"', beginning_url_index);\n var thumbNail_link = html.substring(beginning_url_index, end_url_index);\n\n if (thumbNail_link != null) {\n thumbNail = new Image(50, 50);\n thumbNail.id = \"image\" + songURL;\n thumbNail.src = thumbNail_link;\n return thumbNail;\n }\n}", "async function getQuote() {\n showLoadingSpinner();\n const proxyUrl = \"https://cors-anywhere.herokuapp.com/\"; // Used to bypass the CORS issue // works intermittently in which case there's a fallback quote\n const apiUrl = \"http://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=json\";\n\n try {\n const response = await fetch(`${proxyUrl}${apiUrl}`);\n const data = await response.json();\n displayQuoteInUI(data);\n hideLoadingSpinner();\n } catch (error) {\n console.log('Whoops! No Quote', error);\n hideLoadingSpinner();\n // fallback if it does not even fetch on 10 tries\n if (retryCount === 5) {\n displayQuoteInUI({\n quoteText: \"One secret of success in life is for a man to be ready for his opportunity when it comes\",\n quoteAuthor: \"Benjamin Disraeli\"\n });\n retryCount = 0;\n } else {\n retryCount += 1;\n getQuote();\n }\n }\n}", "function download_photo(unique_id) {\n var url = medium_url_list[unique_id];\n var date_created = photo_detail_list_array[unique_id].takenDate;\n date_created = new Date(Date.parse(date_created)); // javascript can automatically parse the date given by Disney\n var media_type = photo_detail_list_array[unique_id].mediaType;\n var file_extension = '.jpg'; // default to jpg\n var date_created_string = format_date(date_created);\n var location = photo_detail_list_array[unique_id].venue;\n\n if (media_type === \"ANIMATED MAGIC\") {\n file_extension = '.mp4'; // movies are called \"ANIMATED MAGIC\" and are mp4 files.\n }\n var filename = date_created_string + str_space + location + str_space + unique_id + file_extension; // the full filename\n var full_url = url + '?&fname=' + filename; // this works whether '?' is defined or not (url doesn't care that multiple questions marks exist)\n setTimeout(function(){\n // run asyncronously so the browser doesn't freeze up\n sleep(100); // chrome runs this too fast; force it to slow down so that each window opens up individually\n window.open(full_url, unique_id); // finally, we download the photo!\n },1000);\n }", "function retry_download_attempt() {\n\n}", "function main(args) {\n\n\treturn new Promise( (resolve, reject) => {\n\n\t\tlet client = new Twitter({\n\t\t\tconsumer_key:args.consumer_key,\n\t\t\tconsumer_secret:args.consumer_secret,\n\t\t\taccess_token_key:args.access_token_key,\n\t\t\taccess_token_secret:args.access_token_secret\n\t\t});\n\n\t\t/*\n\t\tSpecial branching for images. Since images require a two step process, we split\n\t\tup the code into two paths.\n\t\t*/\n\n\t\tif(!args.image) {\n\t\t\tclient.post('statuses/update', {status:args.status}, function(err, tweet, response) {\n\t\t\t\tif(err) reject(err);\n\t\t\t\tresolve({result:tweet});\n\t\t\t});\n\t\t} else {\n\n\t\t\trequest.get({url:args.image, encoding:null}, function(err, response, body) {\n\t\t\t\tif(!err && response.statusCode === 200) {\n\n\t\t\t\t\tclient.post('media/upload', {media: body}, function(error, media, response) {\n\n\t\t\t\t\t\tif(error) {\n\t\t\t\t\t\t\treject({error:error});\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar status = {\n\t\t\t\t\t\t\tstatus: args.status,\n\t\t\t\t\t\t\tmedia_ids: media.media_id_string \n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tclient.post('statuses/update', status, function(error, tweet, response){\n\t\t\t\t\t\t\tif (!error) {\n\t\t\t\t\t\t\t\tresolve({result:tweet});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t});\n\n}", "function makeRequest() {\n if (!id(\"error\").classList.contains(\"hidden\")) {\n id(\"error\").classList.add(\"hidden\");\n }\n artistName = id(\"input-artist\").value;\n songName = id(\"input-song\").value;\n let url = BASE_URL + artistName + \"/\" + songName;\n fetch(url)\n .then(checkStatus)\n .then((resp) => resp.json()) // or this if your data comes in JSON\n .then(processData)\n .catch(handleError); // define a user-friendly error-message function\n }", "getPicture() {\n\t\tvar dateString = this.randomDate();\n\t\tthis.setState({status:\"load\",url:null,placeholder:null,width:this.state.width,title:null,copy:null});\n\t\tfetch(url+\"?api_key=\"+apiKey+\"&date=\"+dateString)\n\t\t\t.then( (response) => {\n\t\t\t\treturn response.json();\n\t\t\t}).then( (json) => {\n\t\t\t\tvar url = (this.state.width >= 1000? json.hdurl:json.url);\n\t\t\t\tthis.setState({status:\"done\",url:url,placeholder:json.explanation,title:json.title,copy:json.copyright});\n\t\t\t}).catch(function(ex) {\n \t\t\talert(\"Error: \"+ex);\n \t\t\tgetPicture();\n \t\t\t});\n\t}", "function chooseHttpImage()\r\n{\r\n\ttry\r\n\t{\r\n\t\tvar transloadurl = prompt('Please enter the location of the image you would like to copy to Imgur.', '');\r\n\t\tif (transloadurl)\r\n\t\t{\r\n\t\t\timgurUpload(transloadurl);\r\n\t\t}\r\n\t}\r\n\tcatch (e)\r\n\t{\r\n\t\talert( e + \"\\nLine: \"+ e.lineNumber );\r\n\t}\r\n}", "function getImage(location,country){\n https.get({\n host : 'pixabay.com',\n path: '/api/?key=2345037-9be9e6c6429baad131d002b79&q=' + encodeURIComponent(location) + '&image_type=photo&orientation=horizontal&category=travel'\n }, function(response){\n var body = '';\n response.on('data', function(d) {\n body += d;\n });\n response.on('end', function() {\n // Data reception is done, do whatever with it!\n var data = JSON.parse(body);\n console.log(body);\n //console.log(data);\n try{\n if(data.hits[0] !== null){\n var imageURL = data.hits[0].webformatURL;\n\n console.log(imageURL);\n updateImage.run(imageURL,location);\n saveImage(imageURL,location);\n }else{\n getBackupImage(location,country);\n }\n }catch(error){\n console.log(\"error getting image\");\n }\n });\n });\n}", "function downloadPhoto() {\n // If an operation is in progress, usually involving the server, don't do it.\n if (processing) { return false; }\n if (currentPhoto == null) {\n alert(\"Please select a photo first.\");\n return false;\n }\n // If photo happens to be growing, cut it short.\n snapImageToLandingPad();\n // Call on server, which will result in a download prompt.\n window.location = \"downloadPhoto.action?filename=\" +\n currentPhoto.getFilename();\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
mark properties as mortgaged, add funds to player, update bottom list
_uiPropertyMortgaged (data) { this.uiService.propertyMortgaged(data.squares); // mark each square as mortgaged data.squares.forEach(squareId => { this.mapData.squares[squareId].isMortgaged = true }) // add funds from mortgaging to player this.playersData[data.playerId].addFunds(data.cash); this.uiService.updatePlayerList({ name: data.playerId, cash: this.playersData[data.playerId].getCurrentCash(), squares: this.playersData[data.playerId].getCurrentSquares() }); }
[ "function addPropertyToPlayerWallet(player, property){\n\n\n\n let propertyColor = property.color;\n\n\n player.propertiesCount += 1;\n\n\n \n player.propertiesByColor[propertyColor.index].properties.push(property);\n\n property.landLord = player;\n\n player.cash -= property.value;\n\n \n if(property.type == rentalProperty){\n\n insertNonMonopolyProperty(player, property);\n \n //check if the current property resulted in a monopoly\n\n if(monopolyCheck(player, propertyColor) == true){\n\n newMonopoly(player, propertyColor);\n \n };\n\n\n }\n\n //updateBoardGraphs(player)\n \n boardJournal.innerHTML += ( ' <br> ' +player.name + ' just bought ' + property.name + ' ! ');\n\n addNotif(' <br> ' +player.name + ' just bought ' + property.name + ' ! ', buyNotif);\n\n squareBorderOn(property.square);\n\n \n}", "function mortgage(property){\n//calculate the loan amount\nvar loan = property.price/2;\nvar transaction = true;\n//check if property is unimproved\nwhile(transaction){\n if(property.numberOfHouses == 0){\n //property is unimproved so sell to bank\n userObj.capital += loan;\n property.mortgaged = true;\n var BaseRent = property.rent[0];\n window.BaseRent = BaseRent;\n property.rent[0] = 0;\n transation = false;\n }\n //otherwise property has improvements on it so remove and sell property\n else{\n while(property.numberOfHouses != 0){\n property.numberOfHouses -=1;\n userObj.capital += property.houseValue/2;\n }\n }\n }\n}", "_rentPaid (data) {\n this.playersData[data.owner].addFunds(data.rent);\n this.playersData[data.payee].removeFunds(data.rent);\n }", "function addPropertyUpgrade() {\n var currentOption = $(\"select\").val();\n function getSet (obj){\n if(obj.color == currentOption){\n return true\n }\n }\n var setToUpgrade = propertyCards.filter(getSet);\n if(setToUpgrade[0].rentStatus == \"basic\"){\n if(playerCash >= (setToUpgrade[0].upgradeCost * setToUpgrade.length)){\n $.each(setToUpgrade, function(newRentStatus){this.rentStatus= \"upgrade1\"});\n playerCash -= (setToUpgrade[0].upgradeCost * setToUpgrade.length)\n updateCash();\n $(\"#playerUpdate\").text($(this).text()+\"You just upgraded the \"+ setToUpgrade[0].color+ \" set\")\n } else {alert(\"You don't have enough cash :(\")};\n }else if (setToUpgrade[0].rentStatus == \"upgrade1\"){\n if(playerCash >= (setToUpgrade[0].upgradeCost * setToUpgrade.length)){\n $.each(setToUpgrade, function(newRentStatus){this.rentStatus= \"upgrade2\"});\n playerCash -= (setToUpgrade[0].upgradeCost * setToUpgrade.length)\n updateCash();\n $(\"#playerUpdate\").text($(this).text()+\"You just upgraded the \"+ setToUpgrade[0].name+ \" set\")\n } else {alert(\"You don't have enough cash :(\")};\n }else if (setToUpgrade[0].rentStatus == \"upgrade2\"){\n if(playerCash >= (setToUpgrade[0].upgradeCost * setToUpgrade.length)){\n $.each(setToUpgrade, function(newRentStatus){this.rentStatus= \"upgrade3\"});\n playerCash -= (setToUpgrade[0].upgradeCost * setToUpgrade.length)\n updateCash();\n $(\"#playerUpdate\").text($(this).text()+\"You just upgraded the \"+ setToUpgrade[0].name+\" set\")\n }else {alert(\"You don't have enough cash :(\")}\n }else if (setToUpgrade[0].rentStatus == \"upgrade3\"){\n if(playerCash >= (setToUpgrade[0].upgradeCost * setToUpgrade.length)){\n $.each(setToUpgrade, function(newRentStatus){this.rentStatus= \"upgrade4\"});\n playerCash -= (setToUpgrade[0].upgradeCost * setToUpgrade.length)\n updateCash();\n $(\"#playerUpdate\").text($(this).text()+\"You just upgraded the \"+ setToUpgrade[0].name+ \" set\")\n }else {alert(\"You don't have enough cash :(\")};\n }else if(setToUpgrade[0].rentStatus == \"upgrade4\"){\n alert(\"You already have the most stellar upgrades for this\")\n }\n}", "buy(playBoard) {\n if (this.status === 2) {\n // return \"you have lost this game you cannot act anymore\";\n return false;\n } else {\n if (playBoard.board[this.position].type === \"Property\") {\n const property = playBoard.propertyList.propertyList.find((a) => {\n return a.name === playBoard.board[this.position].name;\n });\n console.log(property);\n // if property is already owned player can't buy the property\n if (property.status === \"owned\") {\n // TODO make a popup to say that property is owned or disable the button if there is one\n console.log(\"Property is already owned\");\n return false;\n } else {\n // if property is not owned, function checks if player has enough money to buy the property if they do,\n // property status becomes owned player's balance gets deducted and the property gets pushed into the properties array of the player.\n if (this.balance > property.price) {\n property.status = \"owned\";\n this.balance = this.balance - property.price;\n playBoard.board[this.position].owner = this.uname;\n property.price = property.price * 2;\n this.properties.push(property);\n property.owner = this.piece;\n return true;\n } else {\n // TODO make a popup saying player does not have enough money\n return false;\n }\n }\n } else {\n console.log(\"You are not on a property tile\");\n return false;\n }\n }\n }", "_uiPropertyUnmortgaged (data) {\n this.uiService.propertyUnmortgaged(data.squares);\n\n // mark each square as unmortgaged\n data.squares.forEach(squareId => {\n this.mapData.squares[squareId].isMortgaged = false\n })\n\n // remove funds for paying off mortgage from player\n this.playersData[data.playerId].removeFunds(data.cash);\n\n this.uiService.updatePlayerList({\n name: data.playerId,\n cash: this.playersData[data.playerId].getCurrentCash(),\n squares: this.playersData[data.playerId].getCurrentSquares()\n });\n }", "function addP1(){\n let newPlayer1Money = player1Money + 100;\n setPlayer1Money(newPlayer1Money)\n }", "function propertyMortgage(game, property, socketid, fbid, success) {\n console.log(\"Mortgaging property \" + property.id);\n saveGame(game, function() {\n safeSocketEmit(socketid, 'propertyMortgage', {\n property: property,\n fbid: fbid,\n success: success\n });\n sendToBoards(game.id, 'propertyMortgage', {\n property: property,\n fbid: fbid,\n success: success,\n cost: property.card.price / 2\n });\n });\n}", "function payUpProperty() {\n if(currentPosition.rentStatus == \"basic\"){\n if(turn == \"player\"){\n playerCash -= currentPosition.rent;\n enemyCash += currentPosition.rent;\n playerUpdate(\"Fork out the cash rent is due!!\" + \" You'll have to pay \"+ currentPosition.rent)\n updateCash()\n }else if( turn == \"enemy\"){\n enemyCash -= currentPosition.rent;\n playerCash += currentPosition.rent;\n enemyUpdate(\"Looks like there's some cash coming our way. Enemy owes us \"+ currentPosition.rent)\n updateCash()\n }\n }else if(currentPosition.rentStatus == \"upgrade1\"){\n if(turn == \"player\"){\n playerCash -= currentPosition.upgrade1;\n enemyCash += currentPosition.upgrade1;\n playerUpdate(\"Fork out the cash rent is due!!\" + \" You'll have to pay \"+ currentPosition.upgrade1)\n updateCash()\n }else if (turn == \"enemy\"){\n enemyCash -= currentPosition.upgrade1;\n playerCash += currentPosition.upgrade1;\n enemyUpdate(\"Looks like there's some cash coming our way. Enemy owes us \"+ currentPosition.upgrade1)\n updateCash()\n }\n }else if(currentPosition.rentStatus == \"upgrade2\"){\n if(turn == \"player\"){\n playerCash -= currentPosition.upgrade2;\n enemyCash += currentPosition.upgrade2;\n playerUpdate(\"Fork out the cash rent is due!!\" + \" You'll have to pay \"+ currentPosition.upgrade2)\n updateCash()\n }else if(turn == \"enemy\"){\n enemyCash -= currentPosition.upgrade2;\n playerCash += currentPosition.upgrade2;\n enemyUpdate(\"Looks like there's some cash coming our way. Enemy owes us \"+ currentPosition.upgrade2)\n updateCash()\n }\n }else if(currentPosition.rentStatus == \"upgrade3\"){\n if(turn == \"player\"){\n playerCash -= currentPosition.upgrade3;\n enemyCash += currentPosition.upgrade3;\n playerUpdate(\"Fork out the cash rent is due!!\" + \" You'll have to pay \"+ currentPosition.upgrade3)\n updateCash()\n }else if(turn == \"enemy\"){\n enemyCash -= currentPosition.upgrade3;\n playerCash += currentPosition.upgrade3;\n enemyUpdate(\"Looks like there's some cash coming our way. Enemy owes us \"+ currentPosition.upgrade3)\n updateCash()\n }\n }else if(currentPosition.rentStatus == \"upgrade4\"){\n if(turn == \"player\"){\n playerCash -= currentPosition.upgrade4;\n enemyCash += currentPosition.upgrade4;\n playerUpdate(\"Fork out the cash rent is due!!\" + \" You'll have to pay \"+ currentPosition.upgrade4)\n updateCash()\n }else if(turn ==\"enemy\"){\n enemyCash -= currentPosition.upgrade4;\n playerCash += currentPosition.upgrade4;\n enemyUpdate(\"Looks like there's some cash coming our way. Enemy owes us \"+ currentPosition.upgrade4)\n updateCash()\n }\n }\n}", "function giveContribution(){\n onlineMembers.forEach(function(uid) {\n contribution[uid].contribution = contribution[uid].contribution + 1;\n let curLevel = contribution[uid].level;\n let nextLevel = contribution[uid].level * 100;\n if(nextLevel <= contribution[uid].contribution){\n contribution[uid].level = curLevel + 1;\n }\n fs.writeFile(\"./contribution.json\",JSON.stringify(contribution),(err) => {\n if (err) console.log(err)\n });\n console.log(`${uid}'s contribution now is ${contribution[uid].contribution}! & level now is ${contribution[uid].level}`);\n });\n}", "function updateThisPlayerData(){\n\tlet p = Players.findOne({id : getThisPlayerID()})\n\t// Add more stuff?\n\n\tp.sign = p.sign // TODO Hooks for possible sign change?\n\tp.maxHP = getMaxHP(p)\n\tp.maxMana = getMaxMana(p)\n\tp.maxPA = getMaxPA(p)\n\tp.defences = getDefences(p)\n\n\tMeteor.call('player.updateFull', p.id, p)\n}", "function producemoney(){\n player.layers[\"dimlayer2\"].amount = player.layers[\"dimlayer2\"].amount.plus(player.layers[\"dimlayer3\"].amount.times(player.layers[\"dimlayer3\"].multi.times(player.updaterate)).div(1000));\n player.layers[\"dimlayer1\"].amount = player.layers[\"dimlayer1\"].amount.plus(player.layers[\"dimlayer2\"].amount.times(player.layers[\"dimlayer2\"].multi.times(player.updaterate)).div(1000));\n player.money = player.money.plus(player.layers[\"dimlayer1\"].amount.times(player.layers[\"dimlayer1\"].multi.times(player.updaterate)).div(1000));\n}", "function updatePlayerSummary() {\n playerMortgageSummary = []\n playerPropertiesinPlaySummary = []\n playerPropertiesinPlayColors = []\n playerBasicRentSummary = []\n playerU1Summary = []\n playerU2Summary = []\n playerU3Summary = []\n playerU4Summary = []\n function getMortgages(obj){\n if(obj.inPlay == \"no\" && obj.owned == \"player\"){\n return true;\n }\n }\n var mortgageStatus = propertyCards.filter(getMortgages);\n $.each(mortgageStatus, function (){playerMortgageSummary.push(this.name)})\n\n function getinPlay(obj){\n if(obj.inPlay == \"yes\" && obj.owned == \"player\"){\n return true;\n }\n }\n var inPlayStatus = propertyCards.filter(getinPlay);\n inPlayStatus.sort(function(a,b){if(a.color>b.color){return 1}})\n $.each(inPlayStatus, function (){playerPropertiesinPlaySummary.push(this.name)})\n $.each(inPlayStatus, function (){playerPropertiesinPlayColors.push(this.color)})\n\n\n function getBasicRent(obj){\n if(obj.rentStatus == \"basic\" && obj.owned == \"player\"){\n return true;\n }\n }\n var basicRentStatus = propertyCards.filter(getBasicRent);\n $.each(basicRentStatus, function (){playerBasicRentSummary.push(this.name)})\n\n function getU1(obj){\n if(obj.rentStatus == \"upgrade1\" && obj.owned == \"player\"){\n return true;\n }\n }\n var u1Status = propertyCards.filter(getU1);\n u1Status.sort(function(a,b){if(a.color>b.color){return 1}})\n $.each(u1Status, function (){playerU1Summary.push(this.name)})\n\n function getU2(obj){\n if(obj.rentStatus == \"upgrade2\" && obj.owned == \"player\"){\n return true;\n }\n }\n var u2Status = propertyCards.filter(getU2);\n u2Status.sort(function(a,b){if(a.color>b.color){return 1}})\n $.each(u2Status, function (){playerU2Summary.push(this.name)})\n\n function getU3(obj){\n if(obj.rentStatus == \"upgrade3\" && obj.owned == \"player\"){\n return true;\n }\n }\n var u3Status = propertyCards.filter(getU3);\n u3Status.sort(function(a,b){if(a.color>b.color){return 1}})\n $.each(u3Status, function (){playerU3Summary.push(this.name)})\n\n function getU4(obj){\n if(obj.rentStatus == \"upgrade4\" && obj.owned == \"player\"){\n return true;\n }\n }\n var u4Status = propertyCards.filter(getU4);\n u1Status.sort(function(a,b){if(a.color>b.color){return 1}})\n $.each(u4Status, function (){playerU4Summary.push(this.name)})\n}", "updatePermanents() {\n //Update UI for all permanents\n this.permanents.concat(this.lands).forEach(permanent => permanent.update());\n }", "setmortage() {\n if (this.renovatiosAmmount >= 1) {\n return;\n }\n this.owner.recieveMoney(this.pricetopay[0] / 2);\n }", "function updateMedalAverage(team) {\n\tteam.medal = team.players.reduce(function(memo, v) {\n\t\treturn memo + seasons.getDraftValue(v, team.season.linearization);\n\t}, seasons.getDraftValue(team.captain, team.season.linearization));\n\tteam.medal = team.medal / (1 + team.players.length);\n\n\tteam.money = team.starting_money - team.players.reduce(function(memo, v) {\n\t\treturn memo + v.cost;\n\t}, 0);\n}", "function updateContributionList() {\n // Check if there is any element to add.\n if (activeProfile.monthlyIn.length > 0) {\n // Adding by rewriting list of objects.\n let tempIn = [];\n if (activeProfile.name.length > 0) {\n tempIn = JSON.parse(getValue(incomeStorage, activeProfile.name));\n }\n\n // Calculate how much time is gone.\n let time = new Date();\n let today = new Date(time.getTime());\n time = new Date(today.getTime() - activeProfile.lastOnline.getTime());\n let counter = time.getMonth();\n counter += 1;\n\n // Add every element to incomeStorage.\n for (let i = 0; i < activeProfile.monthlyIn.length; i++) {\n // Add element several times.\n for (let j = 0; j < counter; j++) {\n tempIn.push(activeProfile.monthlyIn[i]);\n }\n }\n\n // Save added elements in storage.\n setValue(incomeStorage, activeProfile.name, JSON.stringify(tempIn));\n }\n\n // Check if there is any element to add.\n if (activeProfile.monthlyOut.length > 0) {\n // Adding by rewriting list of objects.\n let tempOut = [];\n if (activeProfile.name.length > 0) {\n tempOut = JSON.parse(getValue(entryStorage, activeProfile.name));\n }\n\n // Calculate how much time is gone.\n let time = new Date();\n let today = new Date(time.getTime());\n time = new Date(today.getTime() - activeProfile.lastOnline.getTime());\n let counter = time.getMonth();\n counter += 1;\n\n // Add every element to expenditureStorage.\n for (let i = 0; i < activeProfile.monthlyOut.length; i++) {\n // Add element several times.\n for (let j = 0; j < counter; j++) {\n tempOut.push(activeProfile.monthlyOut[i]);\n }\n }\n\n // Save added elements in storage.\n setValue(entryStorage, activeProfile.name, JSON.stringify(tempOut));\n }\n}", "add_to_waiting_list_material(object, material = object.material)\n {\n // console.log(object.name + ' now waits for ' + material.m_name)\n if(this.m_waiting_list_material.get(material.m_name) == undefined)\n {\n this.m_waiting_list_material.set(material.m_name, [])\n }\n this.m_waiting_list_material.get(material.m_name).push(object) \n }", "function addPlayerLand(landId, userId, ownership){\r\n\tif(properties[landId-1].base_price != 0){\r\n\r\n\t\tvar isEntryAlreadyPresent = false\r\n\t\tfor(var i=0; i<player_land.length; i++){\r\n\t\t\tif(player_land[i].u_id == userId && player_land[i].l_id == landId){\r\n\t\t\t\tisEntryAlreadyPresent = true;\r\n\t\t\t\tplayer_land[i].per += ownership;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Now if there is no new entry\r\n\t\tif(!isEntryAlreadyPresent){\r\n\t\t\tvar temp = {l_id: landId, u_id: userId, per: ownership};\r\n\t\t\tplayer_land.push(temp);\r\n\t\t}\r\n\r\n\t\t//Now we have to decrement the value of land from player's revenue\r\n\t\tplayerArray[userId-1].money -= (ownership/100)*properties[landId-1].price;\r\n\r\n\t\t//Pushing these details to transaction table\r\n\t\taddTransactionDetails(playerArray[current_player_id-1].name, \"Bought \"+ownership+\"% of \"+properties[landId-1].name, \"-\"+(ownership/100)*properties[landId-1].price);\r\n\t}\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Draws the number of bullets at the bottom of the screen
function bulletCount(){ let xPos = width - width/25; let yPos = height - height/25; for(let i = 0; i < reload; i++){ fill('rgba(255, 0, 0, 0.5)'); noStroke(); ellipse(xPos, yPos, width/100, width/100); xPos -= width/50; } }
[ "function drawBullets() {\n\tbullets.innerHTML = \"\";\n\tfor (let i = 0; i < bulletsArray.length; i++) {\n\t\tbullets.innerHTML += `<div class='bullet1' style='left:${bulletsArray[i].left}px; top:${bulletsArray[i].top}px'></div>`;\n\t}\n}", "function drawBullets() {\n for (var i = 0; i < bullets.length; i++) {\n context.fillStyle = \"#ffa424\";\n context.fillRect(\n bullets[i].bulletX,\n bullets[i].bulletY,\n bulletSize,\n bulletSize\n );\n }\n}", "function drawBullets(){\n for (var i = bullets.length; i > 0; i--){\n bullets[i-1].move();\n if (bullets[i-1].y < -gameHeight){\n bullets.splice(i-1, 1);\n continue;\n } else{\n bullets[i-1].show();\n }\n for (var j = enemies.length; j > 0; j--){\n if (bullets[i-1].hit(enemies[j-1])){\n enemies[j-1].destroy();\n enemies.splice(j-1, 1);\n bullets.splice(i-1, 1);\n ship.scoreBonus(\"Enemy Shot\");\n break;\n }\n }\n }\n}", "function drawBullets(){\n for(let bullet of bullets){\n ellipse(bullet[0], bullet[1], 2 * bulletSize); \n }\n}", "Draw() {\r\n\r\n //Draw the bullet\r\n context.fillStyle = this.color;\r\n context.fillRect((this.x - this.width / 2), (this.y - this.height / 2), this.width, this.height);\r\n }", "drawExistingBullets() {\n const bullets = this.bulletManager.entitiesDisplayed;\n\n for (let index = 0; index < bullets.length; index++) {\n bullets[index].draw(this.ctx);\n }\n }", "function drawBullets() {\n\tfor (let i = 0; i < bullets.length; ++i) {\n\t\tctx.beginPath();\n\t\tctx.arc(bullets[i].x,bullets[i].y,bulletRadius,0,2*Math.PI);\n\t\tctx.closePath();\n\t\tctx.lineWidth = 1;\n\t\tctx.fillStyle = 'white';\n\t\tctx.fill();\n\t\tctx.strokeStyle = 'black';\n\t\tctx.stroke();\n\t}\n}", "function drawAlienBullets() {\n\tbullets2.innerHTML = \"\";\n\tfor (let i = 0; i < alienBulletsArray.length; i++) {\n\t\tbullets2.innerHTML += `<div class='bullet2' style='left:${alienBulletsArray[i].left}px; top:${alienBulletsArray[i].top}px'></div>`;\n\t\t// alienLaser.play();\n\t}\n}", "function drawShipBullets() {\n\n //Move all bullets 10 pixels to the north\n ship.bullets.forEach(bullet => bullet.y -= 10);\n\n //Filter bullets that have left the screen\n ship.bullets = ship.bullets.filter(bullet => bullet.y > 10);\n\n //Draw remaining bullets\n c.fillStyle = 'blue';\n\n ship.bullets.forEach(bullet => {\n c.beginPath();\n c.moveTo(bullet.x, bullet.y);\n c.lineTo(bullet.x + 5, bullet.y + 10);\n c.lineTo(bullet.x + 5, bullet.y + 20);\n c.lineTo(bullet.x - 5, bullet.y + 20);\n c.lineTo(bullet.x - 5, bullet.y + 10);\n c.closePath();\n c.fill();\n })\n}", "drawBullets() {\r\n for(let i = 0; i < this.world.bullets.length; i++) {\r\n if(this.world.bullets[i].isImageLoaded && this.world.bullets[i].live) {\r\n this.world.bullets[i].draw(this.ctx, this.world.camera);\r\n }\r\n }\r\n }", "function moveAndDrawBullets() {\r\n\tfor (i = 0; i < bulletArray.length; i++) {\r\n\t\t//move bullets\r\n\t\tbulletArray[i][0] += bulletArray[i][4];\r\n\t\tbulletArray[i][1] += bulletArray[i][5];\r\n\r\n\t\t//draw bullets\r\n\t\tdrawDeathArea(bulletArray[i][0],bulletArray[i][1],bulletArray[i][2],bulletArray[i][3])\r\n\t}\r\n}", "function drawBullets(){\n for(let i = 0; i < bullArr.length; i++){\n ctx.beginPath();\n ctx.rect(bullArr[i].x, bullArr[i].y, bullArr[i].w, bullArr[i].h);\n ctx.strokeStyle = bullArr[i].color;\n ctx.stroke();\n ctx.closePath();\n }\n}", "function drawBullet(canvas,context)\n{\n this.lifeTime--;\n //xPos and yPos will always be \"0\" when drawing the bullet. so from the center\n //of the bullet, there will be an invisible line of length x depending on the\n //side of the bullet.\n if(this.xPos > canvas.width)\n {\n this.xPos = 0;\n }\n if(this.yPos > canvas.height)\n {\n this.yPos = 0;\n }\n if(this.xPos < 0)\n {\n this.xPos = canvas.width;\n }\n if(this.yPos < 0)\n {\n this.yPos = canvas.height;\n }\n \n \n \n //context.beginPath();\n context.fillRect(this.xPos-2,this.yPos-2, 4,4);\n context.strokeRect(this.xPos-2,this.yPos-2, 4,4)\n //context.closePath();\n //context.fill();\n //context.stroke();\n}", "drawPlayerBullet (context) {\n for (let i = 0; i < this.bullets.length; i++) {\n this.bullets[i].draw(context);\n this.bullets[i].moveBullet()\n }\n }", "renderBullet() {\n imageLoad.draw( this.direction, this.x, this.y, this.width, this.height );\n }", "function drawBullet(x, y, ctx) {\n ctx.fillStyle = \"darkred\";\n ctx.strokeStyle = \"black\";\n ctx.clientWidth = 4;\n ctx.beginPath();\n ctx.arc(x,y, 15, 0, 2*Math.PI, false);\n ctx.fill();\n ctx.stroke();\n}", "display() {\n push();\n fill(0,0,0);\n ellipse(this.x, this.y, this.size);\n pop();\n // if (x < 0 || x > width || y < 0 || y > height) {\n // var removed = bullets.splice(this.index, 1);\n // }\n }", "function drawBullet(){\r\n\tfill(BulletColor);\r\n\tvar hitAlien= checkCollision(alienX,alienY,alienDiameter,bulletX,bulletY,bulletDiameter);\r\n\t if(bulletY>0&&!hitAlien){\r\n\t \tellipse(bulletX,bulletY,bulletDiameter,bulletDiameter);\r\n\t\tbulletY-=bulletSpeed;\r\n\t }\r\n\t else if(hitAlien){\r\n\t \t\r\n\t \t//alienVelocity++;\r\n\t \tshipShooting=false;\r\n\t \tscore++;\r\n\t \tscoreDisplay.html(score);\r\n\t \thealthBarWidth-=healthRate;\r\n\r\n\t }\r\n\r\n\t else{\r\n\t \tshipShooting = false;\r\n\t }\r\n \t\r\n}", "function drawBulletEnemies(t_bullet)\n{\n t_bullet.x_pos -= t_bullet.speed; // Decreases x_pos to make Bullet fly across the word.\n \n if (t_bullet.x_pos <= -1300) //Resets Bullet Positioning if has reached the defined boundries.\n {\n t_bullet.x_pos = 3500;\n }\n \n \n x = t_bullet.x_pos;\n y = t_bullet.y_pos;\n size = t_bullet.size;\n push();\n \n if (t_bullet.deadly)\n { \n fill(170, 13, 0);\n }\n else\n { \n fill(0); \n }\n \n \n first_part = {\n x: x,\n y: y,\n width: 25 * size,\n height: 25 * size\n };\n rect(first_part.x, first_part.y, first_part.width, first_part.height, 360, 0, 0, 360);\n\n \n fill(10); \n second_part = {\n x: x + (25 * size),\n y: y + (2.5 * size),\n width: 4 * size,\n height: 20 * size\n };\n rect(second_part.x, second_part.y, second_part.width, second_part.height);\n \n \n fill(0);\n third_part = {\n x: (x + (25 * size) + 4 * size),\n y: y,\n width: 2 * size,\n height: 25 * size\n };\n rect(third_part.x, third_part.y, third_part.width, third_part.height);\n\n \n fill(255);\n eyes_blank = {\n x_pos: x + (8.5 * size),\n y_pos: y + (6.5 * size),\n width: 8 * size,\n height: 9 * size\n }; \n arc(eyes_blank.x_pos, eyes_blank.y_pos, eyes_blank.width,\n eyes_blank.height, -HALF_PI + QUARTER_PI, PI + -QUARTER_PI, CHORD);\n\n eyes_pupil = {\n x_pos: x + (8.5 * size),\n y_pos: y + (6.5 * size),\n width: 3 * size,\n height: 4.5 * size\n };\n \n //Eyes\n fill(0);\n arc(eyes_pupil.x_pos, eyes_pupil.y_pos, eyes_pupil.width,\n eyes_pupil.height, -HALF_PI + QUARTER_PI, PI + -QUARTER_PI, CHORD);\n\n \n //Mouth\n fill(255, 0, 0);\n mouth = {\n x_pos: x * 3,\n y_pos: y * 2.6\n };\n\n beginShape();\n vertex(x + (2.5 * size), y + (20 * size));\n bezierVertex( x + (10 * size), y + (10 * size),\n x + (13 * size), y + (22 * size),\n x + (6 * size), y + (23 * size));\n endShape();\n pop();\n\n //Sets the center x and y properties of bullet object based on full width and height of shapes\n t_bullet.center_x = x + ( (first_part.width + second_part.width + third_part.width) / 2); \n t_bullet.center_y = y + ( first_part.height / 2); \n \n checkBulletEnemies(t_bullet); //Check bullet object collision.\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Which link are we ACTUALLY showing right now? Return 1 if none. If we're showing several, returns the first one.
function currentLinkShown(vidnumber) { var linkNumber = -1; for (var i = 0; i < linkTimer[vidnumber].length; i++) { if (linkTimer[vidnumber][i].shown) { linkNumber = i; break; } } return linkNumber; }
[ "function currentLink(t, vidnumber) {\n var linkNumber = -1;\n\n for (var i = 0; i < linkTimer[vidnumber].length; i++) {\n if (\n t >= linkTimer[vidnumber][i].time &&\n t < linkTimer[vidnumber][i].time + hxLinkOptions.hideLinkAfter\n ) {\n linkNumber = i;\n break;\n }\n }\n return linkNumber;\n }", "function getCurrentUrlRecipeIndex() {\n\trecipeIndexToShow = 0;\n\tvar query_string = window.location.href;\n\ttokens=query_string.split(\"#recipe_\");\n\tif (tokens.length > 1) {\n\t\trecipeIndexToShow=tokens[1];\n\t}\n\treturn recipeIndexToShow;\t\n}", "function getActivePage() {\n const ul = document.querySelector('ul.link-list') ;\n liCollection = ul.children ;\n if(liCollection.length == 0) {\n return 1 ;\n }\n for (i=1 ; i <= liCollection.length ; i++) {\n but = liCollection[i-1].children[0] ;\n if (but.className === 'active') {\n return i ;\n } \n }\n return 1 ; \n }", "getPageFollowStatus() {\n\t\t\tif (cur.module === \"public\") {\n\t\t\t\treturn cur.options.liked;\n\t\t\t} else if (cur.module === \"groups\") {\n\t\t\t\treturn document.querySelector(\".page_actions_btn\") != null;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "function GetDisplayIndex()\n{\n return actualDisplayIndex;\n}", "function findCurrentTitleLink() {\r\n var entry = document.getElementById('current-entry');\r\n if (entry) {\r\n var anchors = entry.getElementsByTagName('a');\r\n for (var i = 0; i < anchors.length; i++) {\r\n if (\"entry-title-link\" == anchors[i].className) {\r\n return anchors[i];\r\n } \r\n }\r\n }\r\n return null;\r\n}", "function findActivePage() {\n\tif (isActive(page1)) return 1;\n\telse if (isActive(page2)) return 2;\n\telse if (isActive(page3)) return 3;\n\telse if (isActive(page4)) return 4;\n}", "function getCurrentSlideNumber() {\n\tvar h = parseInt(window.location.hash.substring(1));\n\tif (!(h > -Infinity)) {\n\t\th = 1;\n\t}\n\n\treturn h;\n}", "function findCurrentTitleLink() {\r\n var entry = document.getElementById('photoswftd');\r\n if (entry) {\r\n var anchors = entry.getElementsByTagName('h1');\r\n\treturn anchors[0];\r\n// for (var i = 0; i < anchors.length; i++) {\r\n// if (\"entry-title-link\" == anchors[i].className) {\r\n// return anchors[i];\r\n// } \r\n// }\r\n }\r\n return null;\r\n}", "function getShowID(url, urlParams, showList) {\n let showID = null;\n let currentLocation = urlParams[\"pathname\"];\n if (currentLocation.indexOf(\"browse\") > -1) {\n let params = urlParams[\"search\"];\n showID = params[\"jbv\"];\n } else if (currentLocation.indexOf(\"title\") > -1) {\n if (currentLocation.indexOf(\"?\") == -1) {\n showID = currentLocation.split(\"/\").pop();\n } else {\n let params = urlParams[\"search\"];\n showID = params[\"jbv\"];\n }\n } else if (currentLocation.indexOf(\"search\") > -1){\n let params = urlParams[\"search\"];\n showID = params[\"jbv\"];\n } else if (currentLocation.indexOf(\"watch\") > -1){\n let episodeID = currentLocation.split(\"/\").pop();\n for (let show in showList){\n let episodes = showList[show][\"episodes\"];\n if (episodes.indexOf(episodeID) > -1){\n showID = show;\n break;\n }\n }\n }\n return showID;\n}", "function getCurrentPage(metaResult){\n switch (metaResult){\n case 'ADOPT':\n return 1;\n case 'PLACEMENTS':\n return 2;\n case 'TESTIMONIALS':\n return 3;\n case 'ABOUT':\n return 4;\n default:\n return 0;\n }\n }", "function findFirstCardId(event) {\n var titles = $(event.currentTarget).parent().parent().find('a.list-card-title:first');\n if (titles[0] === undefined) {\n console.error('List has no cards!');\n return false;\n } else {\n return $(titles[0]).attr('href').split('/')[2];\n }\n}", "function getScreenNum() {\n var url = window.location.pathname;\n var getQuery = url.split('=')[1];\n console.log(\"getQuery = \" + getQuery);\n\n // if the value equal null - set a default value \"1\".\n if (getQuery == null){\n console.log(\"getQuery is null! changing to 1\");\n getQuery=\"1\";\n }\n return getQuery;\n\n}", "function getCarouselIdFromUrl() {\n\t\tvar currentId = new String(window.location.hash).replace('#!/', '');\n\t\tcurrentId = parseInt(currentId);\n\n\t\tif (typeof(currentId) == 'NaN') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn currentId;\n\t}", "function getVisiblePage() {\n\tvar split = window.location.href.split(/[/#/?]/);\n\tfor (var i = 0; i < split.length; i++) {\n\t\tif (split[i].startsWith(\"page=\")) {\n\t\t\treturn split[i].substring(5);\n\t\t}\n\t}\n\tif (window.location.href.contains(\"/nation=\")) {\n\t\treturn \"nation\";\n\t}\n\tif (window.location.href.contains(\"/region=\")) {\n\t\treturn \"region\";\n\t}\n\treturn \"unknown\";\n}", "function getLinkNumber(link){\n\tvar attributes = link.href.split(\"&\");\n\tfor(var i = 0; i < attributes.length; i++){\n\t\tif(attributes[i].indexOf(\"lno=\") != -1){\n\t\t\treturn attributes[i].substr(4);\n\t\t}\n\t}\n}", "get displayIndex() {}", "function whichKind() {\n\tvar oneplayer = document.getElementById(\"ctl00_cphContent_skillTable_sdJumpShot_linkDen\");\n\tvar transfplayer = document.getElementById(\"ctl00_cphContent_rptListedPlayers_ctl00_skillPanel_sdJumpShot_linkDen\");\n\tvar psplayer = document.getElementById(\"ctl00_cphContent_Repeater1_ctl00_Panel1\");\n\tif(oneplayer != null)\n\t\treturn 0;\n\telse if (transfplayer != null)\n\t\treturn 1;\n\telse if (psplayer != null)\n\t\treturn 2;\n\treturn -1;\n}", "function fGetHref() {\n var aLinks = document.getElementById('social-bookmarks').getElementsByTagName('a');\n var nLength = aLinks.length;\n\n for (nCount = 0; nCount < nLength ; nCount++) {\n if (aLinks[nCount].className.match('explanation')) {\n var sLinkRef = aLinks[nCount].href;\n return sLinkRef;\n }\n }\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parcours le panier et affiche les objets + le total de la commande
function panier() { for(i=0; i<objPanier.length; i++) { afficheCamera(i); } //affiche le prix total de la commande prixTotal(); }
[ "totalContenu() {\n console.log(`Il y a ${this.contenu.length} personne(s) dans le/la ${this.nom}`);\n }", "function panierLength() {\n let panier = getPanier();\n let TotalProduits = 0;\n Object.keys(panier).forEach(id => {\n\n TotalProduits += panier[id].nombre;\n \n \n }\n )\n return TotalProduits\n }", "function getCantidadTotalPanes() {\n cantidadTotalPanes = carrito.reduce((acum, item) => acum + item.cantidadPedido, 0);;\n}", "function countTotal() {\n vm.factura.total = 0;\n vm.factura.cancelado = 0;\n vm.detalles_factura.forEach(function(detalle){\n vm.factura.total = vm.factura.total + (detalle.cantidad*detalle.precio_venta);\n })\n vm.listapagos.forEach(function (pago){\n vm.factura.cancelado = vm.factura.cancelado + pago.monto;\n });\n }", "totalCabinet() {\n console.log(`Il y a ${this.cabinet.length} personne(s) dans le cabinet du docteur ${this.nom}`);\n }", "function CalculPrixCommande(tabTarifs) {\n var prixTotal = 0;\n for (var nom in tabTarifs) {\n $('#details_billets').append('<p>1 Billet ' + tabTarifs[nom] + '</p>');\n switch (tabTarifs[nom]) {\n case (TEXT.gratuit): { break;}\n case (TEXT.enfant) : {\n prixTotal += TARIFS.enfant;\n break;\n }\n case (TEXT.normal) : {\n prixTotal += TARIFS.normal;\n break;\n }\n case (TEXT.senior) : {\n prixTotal += TARIFS.senior;\n break;\n }\n case (TEXT.reduit) : {\n prixTotal += TARIFS.reduit;\n break;\n }\n case (TEXT.famille) : {\n prixTotal += TARIFS.famille;\n break;\n }\n }\n }\n if (commande_en_cours.type == 'demi-journee') {\n prixTotal = prixTotal/2;\n }\n return prixTotal;\n}", "function calcularTotal() {\n // Limpiamos precio anterior\n total = 0;\n // Recorremos el array del carrito\n carrito.forEach((item) => {\n // De cada elemento obtenemos su precio\n const miItem = baseDeDatos.filter((itemBaseDatos) => {\n return itemBaseDatos.id === parseInt(item);\n });\n total = total + (miItem[0].Prezioa-(miItem[0].Prezioa * miItem[0].Portzentaia /100));\n });\n // Renderizamos el precio en el HTML\n DOMtotal.textContent = total.toFixed(2);\n }", "function prixTotal() {\n let total = 0;\n for (let j= 0; j < objPanier.length; j++) {\n total = total + objPanier[j].price * objPanier[j].number;\n }\n let afficheTotal = document.querySelector(\"#total\");\n afficheTotal.textContent=(\"Total : \" + (total / 100).toLocaleString(\"fr\") + \" €\");\n}", "function calcularTotal(){\r\n //Ponemos el precio a 0\r\n total = 0;\r\n //Ahora recorremos el array del carrito de compra\r\n for (let producto of carrito){\r\n //Mientras, de cada prodcto cogemos el precio\r\n let productoComprado = productos.filter(function(productoDeProductos){\r\n return productoDeProductos['id'] == producto;\r\n });\r\n //Sumamos el precio al total que actuaria de contador\r\n total = total + productoComprado[0]['precio'];\r\n }\r\n //Solo lo queremos con dos decimales y actualizamos el precio en el HTML\r\n let decimales = total.toFixed(2);\r\n //Actualizamos en el html\r\n $total.textContent = decimales;\r\n }", "function calcularTotal() {\r\n // Limpiamos precio anterior\r\n total = 0;\r\n // Recorremos el array del carrito\r\n carrito.forEach((item) => {\r\n // De cada elemento obtenemos su precio\r\n const miItem = baseDeDatos.filter((itemBaseDatos) => {\r\n return itemBaseDatos.id === parseInt(item);\r\n });\r\n total = total + miItem[0].precio;\r\n });\r\n // Renderizamos el precio en el HTML\r\n DOMtotal.textContent = total.toFixed(2);\r\n }", "function IndicadorTotal () {}", "calcTotal() {\n let total = 0;\n\n this.pedido.hamburguesas.forEach(hamburguesa => {\n let estePrecio = 0;\n estePrecio += hamburguesa.precio;\n hamburguesa.extras.forEach(ex => {\n estePrecio += ex.estado? ex.precio : 0;\n });\n total += estePrecio * hamburguesa.cantidad;\n });\n\n this.pedido.papas.forEach(papa => {\n total += papa.precio;\n });\n\n this.pedido.gaseosas.forEach(gaseosa => {\n total += gaseosa.precio;\n });\n\n this.pedido.cervezas.forEach(cerveza => {\n total += cerveza.precio;\n });\n return total;\n }", "function calculTotalPanier() {\n if (panier == null) {\n return 0;\n } else {\n let totalPanier = 0;\n panier.forEach((kanap) => {\n totalPanier = totalPanier + kanap.price * kanap.quantite;\n });\n return totalPanier;\n }\n}", "carrinhoTotal() {\n let total = 0\n if(this.carrinho.length)\n this.carrinho.forEach(item => {\n total += item.preco\n });\n return total\n }", "function calcularTotal() {\n // Limpiamos precio anterior\n total = 0;\n // Recorremos el array del carrito\n carrito.forEach((item) => {\n // De cada elemento obtenemos su precio\n const miItem = producto.filter((itemBaseDatos) => {\n return itemBaseDatos.id === parseInt(item);\n });\n total = total + miItem[0].precio;\n });\n // Renderizamos el precio en el HTML\n DOMtotal.textContent = total.toFixed(2);\n }", "function getTotalOcorrencias() {\r\n // sendGetRequest(\"ocorrencias/gettotal\", null,\r\n // function (data) {\r\n // $(\"#total_ocorrencias\").html('');\r\n // $(\"#total_ocorrencias\").html('<i class=\"fa fa-bell\"><span class=\"fonte-roboto-regular\">'+data.total+'</span></i>')\r\n // },null,true\r\n // );\r\n }", "function calcularTotal() {\n // Limpiamos precio anterior\n total = 0;\n // Recorremos el array del carrito\n carrito.forEach((item) => {\n // De cada elemento obtenemos su precio\n const miItem = baseDeDatos.filter((itemBaseDatos) => {\n return itemBaseDatos.id === parseInt(item);\n });\n total = total + miItem[0].precio;\n });\n // Renderizamos el precio en el HTML\n DOMtotal.textContent = total.toFixed(2);\n}", "function renderPorSucursal(){\r\nvar porSucursal=0\r\n for (let i = 0; i < local.sucursal.length; i++) {\r\n var porSucursal= console.log('Total de ' + local.sucursal[i] + ': ' + ventasTotal(local.sucursal[i]))\r\n }\r\n return porSucursal\r\n }", "listadoPuntosConductor(){\r\n let sTabla = '<table border=\"1\">';\r\n\r\n sTabla += \"<thead><tr>\";\r\n sTabla += \"<th>NIF</th>\";\r\n sTabla += \"<th>Total Puntos</th>\";\r\n sTabla += \"</tr></thread>\";\r\n\r\n // ABRE body tabla\r\n sTabla += \"<tbody>\";\r\n\r\n let oConductor = this.personas.filter(oP => oP instanceof Conductor);\r\n let multasGraves = this.multas.filter(oP => oP instanceof Grave );\r\n\r\n for(let k = 0; k<oConductor.length; k++){\r\n let sumPuntos = 0;\r\n\r\n for(let x = 0; x<multasGraves.length; x++){\r\n \r\n if(oConductor[k].NIF == multasGraves[x].NIFConductor){\r\n sumPuntos = sumPuntos + multasGraves[x].puntos;\r\n }\r\n }\r\n if(sumPuntos>0){\r\n sTabla += \"<tr><td>\"+oConductor[k].NIF+\"</td>\";\r\n sTabla += \"<td>\"+sumPuntos+\"</td></tr>\";\r\n }\r\n \r\n }\r\n sTabla += \"</tbody></table>\";\r\n\r\n return sTabla;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tells firebase to delete a message with a specific ID on the Contact Us admin page.
function delete_button_pressed(obj){ firebase.database().ref('contact_us').child(obj).remove().then(function(){ window.alert("Message Deleted"); window.location.reload(false); }).catch(function(error){ }); }
[ "deleteMessage() {\n firebase.database().ref('comments/' + this.props.movieId + '/' + this.props.messageId).remove();\n }", "async delete_message(msgid) {\n \n }", "function deleteMessage(){\r\n deleteMessageDB(id);\r\n}", "function delete_message(message) {\n admin_bot._api('chat.delete', {\n \"token\": admin_settings.token,\n \"ts\": message.ts,\n \"channel\": message.channel,\n \"as_user\": true\n }).then(function(e) {\n console.log(e);\n });\n}", "function deleteMessage(id, callback) {\n }", "function deleteMessage(message) {\n userCollectionRef.doc(getUser().uid).update({\n quickMessages: firebase.firestore.FieldValue.arrayRemove(message)\n }).then(function () {\n populateUserMessages(getUser());\n }).catch(function (error) {\n createFeedbackPopup(\"Noe gikk galt, kunne ikke slette beskjed\");\n });\n}", "function delete_message(ID){\n\t db.transaction(function(tx) {\n\t \ttx.executeSql(\n\t \t\t\"DELETE FROM messages WHERE ID = ?)\", [ID], \n\t \t\tsuccess_message_delete, \n\t \t\terror_message_delete\n\t \t);\n\t });\t\n}", "function deleteMessage(id) {\n MessageService.deleteMessage(id).\n success(function(data) {\n getMessages();\n AlertService.addAlert(\"warning\", \"Successfully Deleted Message\\n\" + message.name);\n }).\n error(errorCb);\n }", "function deleteMessage(message) {\n const params = new URLSearchParams();\n params.append('id', message.id);\n fetch('/delete-message', {method: 'POST', body: params});\n}", "function deleteMessage(id) {\n let token = localStorage.getItem('authToken');\n $.ajax({\n url: `/messages/${id}`,\n type: 'DELETE',\n headers: {\n \"Authorization\": 'Bearer ' + token\n }\n })\n}", "deleteMessage() {\n this.data.contacts[this.currentContact].messages.splice(this.indexMessage, 1);\n }", "removeMessage(id){\n this.messages.delete(id);\n }", "delete(id) {\n return fetch(`${baseURL}/messages/${id}`, {\n method: \"DELETE\"\n })\n .then(result => result.json())\n }", "function deleteMsg(data) {\n var delRef = admin.database().ref(\"massTextQueue/\" + data.key).remove();\n var saveRef = admin.database().ref(\"massTextGlacier/\" + data.key).update(data.val());\n}", "removeContactMessage(contactid) {\n\n return axios.delete(API_URL + 'remove/?contactId=' + contactid, {\n headers: authenticationHeader()\n });\n\n }", "async deleteMessage (message) {\n return this.updateMessage('(message deleted)', message, true)\n }", "function messageDelete(req, res, next){\n\n Chat\n .findById(req.params.chatId)\n .exec()\n .then(chat => {\n const message = chat.messages.id(req.params.messageId);\n if (message.sender !== req.user._id) return res.unauthorized();\n message.remove();\n chat.save();\n })\n .then(() => res.status(204).end())\n .catch(next);\n}", "delMsg(id, msgImg) {\r\n if (msgImg) {\r\n //Del Img in Storage\r\n var storageRef = storage.ref();\r\n var imgRef = storageRef.child(\"chatPictures/\" + id);\r\n imgRef\r\n .delete()\r\n .catch(function(error) {\r\n // Uh-oh, an error occurred!\r\n store.commit(\"callSnackBar\", {\r\n icon: \"error\",\r\n color: \"error\",\r\n msg: \"An error ocurred while deleting Msg Img: \" + error\r\n });\r\n });\r\n }\r\n firestore.collection('messages').doc(id).delete().catch(function(error) {\r\n alert(\"Error removing document: \", error);\r\n });\r\n\r\n }", "function message_del(argument) {\n var idMessage = argument.idMessage;\n var idTopic = argument.idTopic;\n var message = mongo.collection(('message' + idTopic));\n\n message.removeById(idMessage, function(error, results) {\n });\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds timestamp date from a date
function buildDateFromDate(date){ var year = date.getFullYear(); var month = date.getMonth(); var day = date.getDate(); var hour = date.getHours(); var dDate = new Date(year, month, day, hour); var sDate = Date.parse(dDate); return sDate; }
[ "function buildDateStamp(date) {\n if (date === void 0) { date = new Date(); }\n var year = \"\" + date.getFullYear();\n var month = (\"\" + (date.getMonth() + 1)).padStart(2, '0');\n var day = (\"\" + date.getDate()).padStart(2, '0');\n return [year, month, day].join('-');\n }", "function ge_get_timestamp(date) {\n var d = date.match(/\\d+/g);\n if (d.length == 3) {\n var timestamp = new Date(d[0], d[1] - 1, d[2]);\n } else if (d.length == 5) {\n var timestamp = new Date(d[0], d[1] - 1, d[2], d[3], d[4]);\n } else {\n var timestamp = new Date(d[0], d[1] - 1, d[2], d[3], d[4], d[5]);\n }\n return timestamp / 1000;\n}", "function convertDateToTimestamp(date){\r\n d_str = new Date(date.split('/')[1]+',01,'+date.split('/')[0]+' 00:00:00 GMT')\r\n date_time=d_str.getTime();\r\n return date_time\r\n}", "function dateToStamp(date){\n var dateStr = date.year+'-'+date.month+'-'+date.day;\n return Date.parse(new Date(dateStr.replace(/-/g, \"/\")));\n}", "function buildTimeStamp() {\n\tconst date = (new Date()) + ''\n\n\treturn date.split(' ')[4]\n}", "function toDatestamp(date) {\n\t\treturn Math.floor(date / 86400000);\n\t}", "function getTimestamp(str) {\r\n \tvar d = str.match(/\\d+/g); // extract date parts\r\n \treturn +new Date(d[0], d[1] - 1, d[2], d[3], d[4], d[5]); // build Date object\r\n}", "function makeTimestamp() {\n const now = new Date();\n const date = `${now.getFullYear()}-${padDate(now.getMonth() + 1)}-${padDate(now.getDate())}`;\n const time = `${padDate((now.getHours() + 1) % 12)}-${padDate(now.getMinutes() + 1)}-${padDate(now.getSeconds() + 1)}`;\n const meridiem = now.getHours() >= 12 ? 'PM' : 'AM';\n return `${date}--at--${time}--${meridiem}`;\n}", "function generateTimestamp() {\n\tvar date = new Date();\n\tvar month = prefixZero(date.getMonth());\n\tvar dateNum = prefixZero(date.getDate());\n\tvar hours = prefixZero(date.getHours());\n\tvar minutes = prefixZero(date.getMinutes());\n\tvar seconds = prefixZero(date.getSeconds());\n\n\treturn date.getYear() + \"\" + month + \"\" + dateNum + \"\" + hours + \"\" + minutes + \"\" + seconds;\n}", "function timeStampToDate(ts) {\n if (!ts) {\n return ts;\n }\n // \"/Date(11111111111)/\" => new Date(11111111111)\n var p = /\\d+/.exec(ts);\n return new Web.Date(p && +p[0]);\n }", "function timestampToDate(t) {\n var values = t.split(\" \");\n var date = values[2] + \" \" + values[1] + \" \" + values[5];\n return date;\n }", "getShortDate(timeStamp) {\n\t\t// pad 0 for single digits\n\t\tconst padZero = (val) => {\n\t\t\treturn val < 9 ? \"0\" + val : val;\n\t\t};\n\t\tconst date = new Date(timeStamp);\n\t\tconst m = padZero(date.getMonth() + 1);\n\t\tconst d = padZero(date.getDate());\n\t\tconst y = date.getFullYear();\n\t\treturn `${m}/${d}/${y}`;\n\t}", "function makeTimestamp() {\n var timestamp = (new Date()).toLocaleString();\n return timestamp;\n}", "function timestampToDate(timestamp) {\r\n var \r\n theDate;\r\n\r\n if ( timestamp === 0 ) {\r\n return 0;\r\n }\r\n\r\n theDate = new Date( timestamp / 1000 );\r\n theDate = theDate.toLocaleString();\r\n\r\n return theDate;\r\n }", "function timestamp() {\n let ps = v => v.toString().padStart(2, \"0\");\n let date = new Date();\n let year = date.getFullYear().toString();\n let month = ps(date.getMonth());\n let day = ps(date.getDay());\n let hours = ps(date.getHours());\n let minutes = ps(date.getMinutes());\n let seconds = ps(date.getSeconds());\n return `${year}${month}${day}${hours}${minutes}${seconds}`\n}", "function make_date(date, time) {\n return (new Date(date + 'T' + time + ':00'));\n }", "generateTimeStamp() {\n var m = new Date();\n var dateString =\n m.getUTCFullYear() +\n \"/\" +\n (\"0\" + (m.getUTCMonth() + 1)).slice(-2) +\n \"/\" +\n (\"0\" + m.getUTCDate()).slice(-2) +\n \" \" +\n (\"0\" + m.getUTCHours()).slice(-2) +\n \":\" +\n (\"0\" + m.getUTCMinutes()).slice(-2) +\n \":\" +\n (\"0\" + m.getUTCSeconds()).slice(-2);\n return dateString;\n }", "function makeDate(timestamp) {\n const date = new Date(timestamp);\n const dateStr = getMDY(date);\n const todayStr = getMDY(new Date());\n const yesterdayStr = getMDY(new Date(Date.now() - ONE_DAY_MS));\n if (dateStr === todayStr) {\n return 'today';\n } else if (dateStr === yesterdayStr) {\n return 'yesterday';\n } else {\n return dateStr;\n }\n}", "function createDate(date) {\n let dt = `${date.getFullYear()}-`;\n dt = dt.concat((\"0\" + (date.getMonth() + 1)).slice(-2) + \"-\");\n dt = dt.concat((\"0\" + date.getDate()).slice(-2));\n return dt;\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
API test for 'GetAcList', Get access control list
function Test_GetAcList() { return __awaiter(this, void 0, void 0, function () { var in_rpc_ac_list, out_rpc_ac_list; return __generator(this, function (_a) { switch (_a.label) { case 0: console.log("Begin: Test_GetAcList"); in_rpc_ac_list = new VPN.VpnRpcAcList({ HubName_str: hub_name }); return [4 /*yield*/, api.GetAcList(in_rpc_ac_list)]; case 1: out_rpc_ac_list = _a.sent(); console.log(out_rpc_ac_list); console.log("End: Test_GetAcList"); console.log("-----"); console.log(); return [2 /*return*/]; } }); }); }
[ "get accessList() {\n const value = this.#accessList || null;\n if (value == null) {\n if (this.type === 1 || this.type === 2) {\n return [];\n }\n return null;\n }\n return value;\n }", "function internal_getAgentAccessAll(acpData) {\n return internal_getActorAccessAll(acpData, acp.agent);\n}", "function internal_getAgentAccessAll$1(acpData) {\n return internal_getActorAccessAll$1(acpData, acp.agent);\n}", "function generateACEList( resources ) {\n\treturn [\n\t\t{ subject: { \"conntype\": \"anon-clear\" }, resources: resources, \"permission\": 31 },\n\t\t{ subject: { \"conntype\": \"auth-crypt\" }, resources: resources, \"permission\": 31 }\n\t];\n}", "function getList(eaNumber, successCallback, errorCallback) {\n \n // TODO: Add validation for the input parameter before invoking the\n // service.\n\n // Service Input\n var serviceInput = {\n\n \"_namespaces\" : {\n \"head\" : this.NS_HEAD,\n \"ent\" : this.NS_EU,\n \"user\": this.NS_USER, \n }, \n \"_header\" : { \n \"head:RequestHeader\": {\n \"head:TransactionInfo\": {\n \"head:TransactionID\": {}\n }\n }\n },\n \"_body\" : {\n \"ent:GetListRequest\" : {\n \"ent:entitlementAccountNumber\" : {\n \"_value\" : eaNumber\n }\n }\n }\n };\n\n // Service parameters\n var serviceParams = {\n host: SERVICE_HOST,\n port: SERVICE_PORT,\n uri: SERVICE_URI,\n secure : SERVICE_SECURE,\n action: \"getList\",\n soapVersion: soapClient.SOAPv11\n };\n\n // Invoke Get Permissions Web Service\n soapClient.soapRequest(serviceInput, serviceParams, function(wsRespJson) {\n log.info(\"Get User List Web Service Response: \" + JSON.stringify(wsRespJson));\n successCallback(wsRespJson);\n }, function(errObj) {\n errorCallback(errObj);\n });\n \n }", "function internal_getAgentAccessAll(acpData) {\r\n return internal_getActorAccessAll(acpData, acp.agent);\r\n }", "echoAccessList() {\n\t\tthis.app.get(\"/echoaccesslist\", (req, res) => {\n\n\t\t\t// Get a copy of the mempool\n\t\t\tvar retObj = this.mempool.echoAccessList();\n\n\t\t\t// Return to the caller\n\t\t\tres.status(200).json(retObj);\n\t\t});\n\t}", "function test_list() {\n callApi.list_call((err, res) => {\n //If err happened, the err will contain the detailed error message, or it will be null\n if (err) {\n sharedResource.dbgOut(err);\n }\n if (res) {\n sharedResource.dbgOut(`Total calls: ${res.list.length}`);\n sharedResource.dbgOut(res);\n }\n })\n}", "function internal_getGroupAccessAll(acpData) {\n return internal_getActorAccessAll$1(acpData, acp.group);\n}", "function internal_getAgentAccessAll$1(acpData) {\r\n return internal_getActorAccessAll$1(acpData, acp.agent);\r\n }", "listAccounts() {\n\n }", "function testAccountAccess() {\n\t\tgetAccountKey(validateAccountAccess);\n\t}", "function test_list() {\n //list_contacts, pass two args callback\n contactApi.list_contacts((err, res) => {\n if (err) {\n //print the error message if there was any happened\n sharedResource.dbgOut(err);\n }\n if (res) {\n //print the contact list, the result will be inside res.list\n sharedResource.dbgOut(res);\n if (res.list.length > 0) {\n //get the first contact in the list\n contactApi.get_contact(res.list[0].id, (err_get, res_get) => {\n if (err_get) {\n sharedResource.dbgOut(err_get);\n }\n if (res_get) {\n //If it was success, dump the related contact data\n sharedResource.dbgOut(res_get.exportData());\n }\n });\n }\n }\n })\n}", "function getPropertyAccessList(companyId, regionId, businessId, propertyId) {\r\n return get('/property/getaccess', { companyId: companyId, regionId: regionId, businessId: businessId, propertyId: propertyId }).then(function (res) {\r\n return res.data;\r\n }).catch(function (err) {\r\n return err.response.data;\r\n });\r\n}", "function itShouldListAccounts() {\n console.log('> itShouldListAccounts');\n listAccounts();\n}", "function itShouldListAdClients() {\n console.log('> itShouldListAdClients');\n listAdClients(accountName);\n}", "function getAcquisitions() {\n return $http.get('api/acquisitions').then(handleSuccess).catch(handleError);\n }", "function get_accessor_list (cb) {\n\tinfo('art::get_accessor_list');\n\n\tvar url = host_server + '/list/all';\n\trequest(url, function (err, response, body) {\n\t\tif (!err && response.statusCode == 200) {\n\t\t\tcb(null, JSON.parse(body));\n\t\t} else {\n\t\t\terror('Could not get list of accessors.')\n\t\t\terror(err)\n\t\t\tif (response) error('Response code: ' + response.statusCode)\n\t\t\tcb('Could not retrieve accessor list from host server');\n\t\t}\n\t})\n}", "function internal_getGroupAccessAll(acpData) {\r\n return internal_getActorAccessAll(acpData, acp.group);\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
keep track of recent plugins
function keepTrackOfRecentPlugins(pluginFolder) { window.localStorage.setItem('lastPlugin', pluginFolder); var recentPlugins = localStorage.getItem('__recentPlugins'); if (recentPlugins) { try { recentPlugins = JSON.parse(recentPlugins); } catch (e) { } } if (!(recentPlugins && recentPlugins.length)) recentPlugins = []; if (pluginFolder) { var index = recentPlugins.indexOf(pluginFolder); if (index > 0) recentPlugins.splice(index, 1); if (index != 0) recentPlugins.unshift(pluginFolder); if (recentPlugins.length > 5) // lust keep the last 5 recentPlugins.pop(); } $scope.recentPlugins = recentPlugins; localStorage.setItem('__recentPlugins', JSON.stringify(recentPlugins)); }
[ "pluginRefresh() {}", "function updatePlugins() \n{\n\tfor (let pluginId in localStorage.getItem(\"SkyX/Plugins/PluginsTable\"))\n\t{\n\t\tUpdatePlugin(pluginId);\n\t}\n}", "orderPlugins() {\r\n debug('orderPlugins:before', this.pluginNames);\r\n const runLast = this._plugins\r\n .filter(p => p.requirements.has('runLast'))\r\n .map(p => p.name);\r\n for (const name of runLast) {\r\n const index = this._plugins.findIndex(p => p.name === name);\r\n this._plugins.push(this._plugins.splice(index, 1)[0]);\r\n }\r\n debug('orderPlugins:after', this.pluginNames);\r\n }", "orderPlugins () {\n debug('orderPlugins:before', this.pluginNames)\n const runLast = this._plugins\n .filter(p => p.requirements.has('runLast'))\n .map(p => p.name)\n for (const name of runLast) {\n const index = this._plugins.findIndex(p => p.name === name)\n this._plugins.push(this._plugins.splice(index, 1)[0])\n }\n debug('orderPlugins:after', this.pluginNames)\n }", "function Plugins() {\n this.plugins = [];\n}", "order() {\n debug('order:before', this.names);\n const runLast = this._plugins\n .filter(p => p.requirements.has('runLast'))\n .map(p => p.name);\n for (const name of runLast) {\n const index = this._plugins.findIndex(p => p.name === name);\n this._plugins.push(this._plugins.splice(index, 1)[0]);\n }\n debug('order:after', this.names);\n }", "sort()\r\n {\r\n this.list = []\r\n for (let plugin of PLUGIN_ORDER)\r\n {\r\n if (this.plugins[plugin])\r\n {\r\n this.list.push(this.plugins[plugin])\r\n }\r\n }\r\n }", "sort() {\n this.list = [];\n for (const plugin of PLUGIN_ORDER)if (this.plugins[plugin]) this.list.push(this.plugins[plugin]);\n }", "sort()\n {\n this.list = [];\n\n for (const plugin of PLUGIN_ORDER)\n {\n if (this.plugins[plugin])\n {\n this.list.push(this.plugins[plugin] );\n }\n }\n }", "sort()\n {\n this.list = [];\n\n for (const plugin of PLUGIN_ORDER)\n {\n if (this.plugins[plugin])\n {\n this.list.push(this.plugins[plugin] );\n }\n }\n }", "removeAll() {\n this.plugins = {};\n this.sort();\n }", "order() {\r\n debug$1('order:before', this.names);\r\n const runLast = this._plugins\r\n .filter(p => p.requirements.has('runLast'))\r\n .map(p => p.name);\r\n for (const name of runLast) {\r\n const index = this._plugins.findIndex(p => p.name === name);\r\n this._plugins.push(this._plugins.splice(index, 1)[0]);\r\n }\r\n debug$1('order:after', this.names);\r\n }", "static async reload()\n {\n await PluginManager.loadPlugins();\n\n }", "function PluginManager() {\n this.plugins = [];\n this.listeners = {};\n this.history = {};\n }", "removeAll()\n {\n this.plugins = {};\n this.sort();\n }", "function incrementPluginCount(id) {\n let key = \"plugin:\" + id\n return new Promise(function () {\n chrome.storage.sync.get(key, function (data) {\n let state = (JSON.stringify(data) !== \"{}\") ? data[key] : [true, 0, DARK_COUNT]\n if (state[STATE_INDEX_COUNT] === undefined) {\n state[STATE_INDEX_COUNT] = DARK_COUNT\n }\n setPluginState(id, state[STATE_INDEX_COUNT] + 1, STATE_INDEX_COUNT)\n })\n })\n}", "function getInstalledPlugins(){\n return getCacheData('/xapi/plugins');\n }", "__init7() {this.oldPlugins = {}}", "initPlugins() {\n pluginsToInit.forEach(plugin => this.initPlugin(plugin));\n pluginsToInit = [];\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads a font face via either the native FontFace API, or CSS injection TODO: consider support for multiple format URLs per face, unicode ranges
injectFontFace ({ family, url, weight, style }) { if (this.supports_native_font_loading === undefined) { this.supports_native_font_loading = (window.FontFace !== undefined); } // Convert blob URLs, depending on whether the native FontFace API will be used or not. // // When the FontFace API *is* supported, the blob URL is read into a raw data array. // NB: it's inefficient to be converting blob URLs into typed arrays here, since they originated // as raw data *before* they were converted into blob URLs. However, this process should be fast since // these are native browser functions and all data is local (no network request), and it keeps the // logic streamlined by allowing us to continue to use a URL-based interface for all scene resources. // // When the FontFace API is *not* supported, the blob URL data is converted to a base64 data URL. // This avoids security restricions in some browsers. // Also see https://github.com/bramstein/fontloader/blob/598e9399117bdc946ff786fa2c5007a6bd7d3b9e/src/fontface.js#L145-L153 let preprocess = Promise.resolve(url); if (url.slice(0, 5) === 'blob:') { preprocess = Utils.io(url, 60000, 'arraybuffer').then(data => { let bytes = new Uint8Array(data); if (this.supports_native_font_loading) { return bytes; // use raw binary data } else { let str = ''; for (let i = 0; i < bytes.length; i++) { str += String.fromCharCode(bytes[i]); } return 'data:font/opentype;base64,' + btoa(str); // base64 encode as data URL } }); } return preprocess.then(data => { if (this.supports_native_font_loading) { // Use native FontFace API let face; if (typeof data === 'string') { // add as URL face = new FontFace(family, `url(${encodeURI(data)})`, { weight, style }); } else if (data instanceof Uint8Array) { // add as binary data face = new FontFace(family, data, { weight, style }); } document.fonts.add(face); log('trace', 'Adding FontFace to document.fonts:', face); } else { // Use CSS injection let css = ` @font-face { font-family: '${family}'; font-weight: ${weight || 'normal'}; font-style: ${style || 'normal'}; src: url(${encodeURI(data)}); } `; let style_el = document.createElement('style'); style_el.appendChild(document.createTextNode("")); document.head.appendChild(style_el); style_el.sheet.insertRule(css, 0); log('trace', 'Injecting CSS font face:', css); } }); }
[ "loadFontFace (family, face) {\n if (face == null || (typeof face !== 'object' && face !== 'external')) {\n return;\n }\n\n let options = { family };\n let inject = Promise.resolve();\n\n if (typeof face === 'object') {\n Object.assign(options, face);\n\n // If URL is defined, inject font into document\n if (typeof face.url === 'string') {\n inject = this.injectFontFace(options);\n }\n }\n\n // Wait for font to load\n let observer = new FontFaceObserver(family, options);\n return inject.then(() => observer.load()).then(\n () => {\n // Promise resolves, font is available\n log('debug', `Font face '${family}' is available`, options);\n },\n () => {\n // Promise rejects, font is not available\n log('debug', `Font face '${family}' is NOT available`, options);\n }\n );\n }", "loadFont(name, url) {\n var newFont = new FontFace(name, `url(${url})`);\n newFont.load().then(function (loaded) {\n document.fonts.add(loaded);\n }).catch(function (error) {\n return error;\n });\n }", "loadFont(url2, options = {}) {\n const { availableFonts } = _HTMLTextStyle2;\n if (availableFonts[url2]) {\n const font = availableFonts[url2];\n return this._fonts.push(font), font.refs++, this.styleID++, this.fontsDirty = !0, Promise.resolve();\n }\n return settings.ADAPTER.fetch(url2).then((response) => response.blob()).then(async (blob) => new Promise((resolve2, reject) => {\n const src = URL.createObjectURL(blob), reader = new FileReader();\n reader.onload = () => resolve2([src, reader.result]), reader.onerror = reject, reader.readAsDataURL(blob);\n })).then(async ([src, dataSrc]) => {\n const font = Object.assign({\n family: path.basename(url2, path.extname(url2)),\n weight: \"normal\",\n style: \"normal\",\n display: \"auto\",\n src,\n dataSrc,\n refs: 1,\n originalUrl: url2,\n fontFace: null\n }, options);\n availableFonts[url2] = font, this._fonts.push(font), this.styleID++;\n const fontFace = new FontFace(font.family, `url(${font.src})`, {\n weight: font.weight,\n style: font.style,\n display: font.display\n });\n font.fontFace = fontFace, await fontFace.load(), document.fonts.add(fontFace), await document.fonts.ready, this.styleID++, this.fontsDirty = !0;\n });\n }", "function fontFace(font) {\n Stylesheet_1.Stylesheet.getInstance().insertRule(\"@font-face{\" + styleToClassName_1.serializeRuleEntries(font) + \"}\");\n}", "function fontFace(font) {\r\n Stylesheet_1.Stylesheet.getInstance().insertRule(\"@font-face{\" + styleToClassName_1.serializeRuleEntries(font) + \"}\");\r\n}", "function loadFontNative (fontFace, callback) {\n\t var theFontFace;\n\n\t // See if we've previously loaded it.\n\t if (_loadedFonts[fontFace.id]) {\n\t return callback(null);\n\t }\n\n\t // See if we've previously failed to load it.\n\t if (_failedFonts[fontFace.id]) {\n\t return callback(_failedFonts[fontFace.id]);\n\t }\n\n\t // System font: assume it's installed.\n\t if (!fontFace.url) {\n\t return callback(null);\n\t }\n\n\t // Font load is already in progress:\n\t if (_pendingFonts[fontFace.id]) {\n\t _pendingFonts[fontFace.id].callbacks.push(callback);\n\t return;\n\t }\n\n\t _pendingFonts[fontFace.id] = {\n\t startTime: Date.now(),\n\t callbacks: [callback]\n\t };\n\n\t // Use font loader API\n\t theFontFace = new window.FontFace(fontFace.family,\n\t 'url(' + fontFace.url + ')', fontFace.attributes);\n\n\t theFontFace.load().then(function () {\n\t _loadedFonts[fontFace.id] = true;\n\t callback(null);\n\t }, function (err) {\n\t _failedFonts[fontFace.id] = err;\n\t callback(err);\n\t });\n\t}", "function fontFace(font) {\n Stylesheet_1.Stylesheet.getInstance().insertRule(\"@font-face{\" + styleToClassName_1.serializeRuleEntries(font) + \"}\", true);\n }", "_loadFont(name, filename) {\n var s = document.createElement('style');\n var fontname = name;\n s.id = fontname;\n s.type = \"text/css\";\n document.head.appendChild(s);\n s.textContent = \"@font-face { font-family: \" + fontname + \"; src:url('\" + filename + \"');}\";\n return { element: s, file: filename, name: fontname, type: \"fnt\", ready: true };\n }", "function loadFont() {\n\tvar loader = new THREE.FontLoader();\n\t\tloader.load( 'js/helvetiker_regular.typeface.js', function ( response ) {\n\t\t\taddMainShape();\n\t\t\taddShapes();\n\t\t\tcreateText();\n\t\t} );\n}", "function loadFont(txtHead, txtSub) {\n var loader = new THREE.FontLoader();\n loader.load('assets/fonts/' + fontName + '_' + fontWeight + '.typeface.json', function(response) {\n font = response;\n refreshText(txtHead, txtSub);\n });\n}", "function loadFontsFromStorage() {\n try { // localStorage can fail for many reasons\n if (\"localStorage\" in window) {\n\n // only include this block of JS if postFonts true\n @if(postFonts) {\n let fontsToLoadCount;\n const fontsToPost = [];\n const inIframe = window.location !== window.parent.location;\n }\n\n const fontStorageKey = (fontName, fontHash = '') => `gu.fonts.${fontName}.${fontHash}`;\n\n // detect which font format (ttf, woff, woff2 etc) we want\n const fontFormat = (() => {\n const formatStorageKey = 'gu.fonts.format';\n\n let format = localStorage.getItem(formatStorageKey);\n\n function supportsWoff2() {\n // try feature detecting first\n // https://github.com/filamentgroup/woff2-feature-test\n if (\"FontFace\" in window) {\n try {\n const f = new FontFace('t', 'url( \"data:font/woff2;base64,d09GMgABAAAAAADwAAoAAAAAAiQAAACoAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAALAogOAE2AiQDBgsGAAQgBSAHIBuDAciO1EZ3I/mL5/+5/rfPnTt9/9Qa8H4cUUZxaRbh36LiKJoVh61XGzw6ufkpoeZBW4KphwFYIJGHB4LAY4hby++gW+6N1EN94I49v86yCpUdYgqeZrOWN34CMQg2tAmthdli0eePIwAKNIIRS4AGZFzdX9lbBUAQlm//f262/61o8PlYO/D1/X4FrWFFgdCQD9DpGJSxmFyjOAGUU4P0qigcNb82GAAA\" ) format( \"woff2\" )', {});\n\n f.load().catch(() => {});\n if (f.status === 'loading' || f.status == 'loaded') {\n return true;\n }\n } catch (e) {\n @if(context.environment.mode == Dev){throw(e)}\n }\n }\n\n // some browsers (e.g. FF40) support WOFF2 but not window.FontFace,\n // so fall back to known support\n if (!/edge\\/([0-9]+)/.test(ua.toLowerCase())) { // don't let edge tell you it's chrome when it's not\n const browser = /(chrome|firefox)\\/([0-9]+)/.exec(ua.toLowerCase());\n const supportsWoff2 = {\n 'chrome': 36,\n 'firefox': 39\n };\n return !!browser && supportsWoff2[browser[1]] < parseInt(browser[2], 10);\n }\n\n return false;\n }\n\n // flush out weird old json value\n // no value to it and JSON.parse is pointless overhead\n if (/value/.test(format)) {\n format = JSON.parse(format).value;\n localStorage.setItem(formatStorageKey, format);\n }\n\n if (!format) {\n format = supportsWoff2() ? 'woff2' : ua.indexOf('android') > -1 ? 'ttf' : 'woff';\n localStorage.setItem(formatStorageKey, format);\n }\n\n return format;\n })();\n\n // use whatever font CSS we've now got\n function useFont(el, css, fontName) {\n el.innerHTML = css;\n\n // only include this block of JS if postFonts true\n @if(postFonts) {\n fontsToPost.push({\n fontName: fontName,\n css: css\n });\n\n // if all the fonts have loaded and we're in an iframe post them to the parent\n if (fontsToPost.length === fontsToLoadCount && inIframe) {\n window.parent.postMessage({\n name: \"guardianFonts\",\n fonts: fontsToPost\n }, \"*\");\n }\n }\n }\n\n // download font as json to store/use etc\n function fetchFont(url, el, fontName, fontHash) {\n const xhr = new XMLHttpRequest();\n\n xhr.open(\"GET\", url, true);\n xhr.onreadystatechange = () => {\n if (xhr.readyState === 4 && xhr.status === 200) {\n const css = JSON.parse(xhr.responseText).css;\n useFont(el, css, fontName);\n saveFont(fontName, fontHash, css);\n }\n };\n xhr.send();\n }\n\n // save font css to localstorage\n function saveFont(fontName, fontHash, css) {\n for (var i = 0, totalItems = localStorage.length; i < totalItems - 1; i++) {\n var key = localStorage.key(i);\n if (key.indexOf(fontStorageKey(fontName)) !== -1) {\n localStorage.removeItem(key);\n break;\n }\n }\n localStorage.setItem(fontStorageKey(fontName, fontHash), JSON.stringify({value: css}));\n }\n\n // down to business\n // the target for each font and holders of all the necessary metadata\n // are some style elements in the head, all identified by a .webfont class\n const fonts = document.querySelectorAll('.webfont');\n\n // only include this block of JS if postFonts true\n @if(postFonts) {\n fontsToLoadCount = fonts.length;\n }\n\n const urlAttribute = shouldHint ? `data-cache-file-hinted-${fontFormat}` : `data-cache-file-${fontFormat}`;\n\n for (let i = 0, j = fonts.length; i < j; ++i) {\n const font = fonts[i];\n const fontURL = font.getAttribute(urlAttribute);\n const fontInfo = fontURL.match(/fonts\\/([^/]*?)\\/?([^/]*)\\.(woff2|woff|ttf).json$/);\n const fontName = fontInfo[2];\n const fontHash = fontInfo[1];\n const fontData = localStorage.getItem(fontStorageKey(fontName, fontHash));\n\n if (fontData) {\n useFont(font, JSON.parse(fontData).value, fontName);\n } else {\n fetchFont(fontURL, font, fontName, fontHash);\n }\n }\n return true;\n }\n } catch (e) {\n @if(context.environment.mode == Dev){throw(e)}\n }\n return false;\n }", "function caml_fk_new_face(\n fontName /*: string */,\n size /*: number */,\n successCallback /*: face => void */,\n failureCallback /*: string => void */\n) {\n joo_global_object\n .fetch(fontName.c)\n .then(function toBlob(res) {\n return res.blob();\n })\n .then(function toBuffer(blob) {\n // From: https://github.com/feross/blob-to-buffer/blob/fe48e780ac95ebea27387cc8f6aa6db1ec735ad0/index.js\n return new joo_global_object.Promise(function(resolve, reject) {\n var reader = new joo_global_object.FileReader();\n function onLoadEnd(e) {\n reader.removeEventListener(\"loadend\", onLoadEnd, false);\n if (e.error) reject(e.error);\n else resolve(joo_global_object.Buffer.from(reader.result));\n }\n reader.addEventListener(\"loadend\", onLoadEnd, false);\n reader.readAsArrayBuffer(blob);\n });\n })\n .then(function loadFont(buffer) {\n var fontFace = joo_global_object.Fontkit.create(buffer);\n // HACK: attaching `size` to `fontFace` here to be able to get it later in `caml_fk_load_glyph`\n fontFace.size = size;\n successCallback(fontFace);\n })\n .catch(function onError(error) {\n failureCallback(error.message);\n });\n return undefined;\n}", "get font() {}", "function SpeLoadFont( font_family ) {\n return new Promise( function( resolve, reject ) {\n if ( !SpeFontsCache[font_family] ) {\n const font_loader = new THREE.FontLoader();\n const font_resource_path = SPE_PATH_FONTS + font_family + '.json';\n font_loader.load( font_resource_path, function( font ) {\n SpeFontsCache[font_family] = font;\n resolve( font );\n } );\n }\n else {\n resolve( SpeFontsCache[font_family] );\n }\n } );\n}", "function demoFontFaceSrcCrash(callback) {\n var style = document.createElement('style');\n style.setAttribute('type', 'text/css');\n style.styleSheet.cssText = \"@font-face { src: url('foo'); }\"; // The specified src doesn't even have to exist.\n callback(null);\n}", "function _loadFont() {\n var found = false;\n\n currentFont = $family.val();\n\n // Custom font\n if (customFontURL !== \"\") {\n utils.loadCustomFont(currentFont, customFontURL, contentDocument);\n currentFont = CUSTOM_FONT_TEXT;\n }\n else if (currentFont !== null) {\n // Standard font\n $selectBox.find(\".bfh-selectbox-options a\").each(function(index) {\n if ($(this).text() === currentFont) {\n found = true;\n return false;\n }\n });\n\n // Google font\n if (!found) {\n addGoogleFont(currentFont, true);\n }\n }\n }", "function import_font_style() {\r\n var wf = document.createElement('script');\r\n wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +\r\n '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';\r\n wf.type = 'text/javascript';\r\n wf.async = 'true';\r\n var s = document.getElementsByTagName('script')[0];\r\n s.parentNode.insertBefore(wf, s);\r\n}", "function doLoadFont(url, callback) {\n function tryLoad() {\n var onError = function onError(err) {\n console.error('Failure loading font ' + url + (url === defaultFontURL ? '' : '; trying fallback'), err);\n if (url !== defaultFontURL) {\n url = defaultFontURL;\n tryLoad();\n }\n };\n try {\n var request = new XMLHttpRequest();\n request.open('get', url, true);\n request.responseType = 'arraybuffer';\n request.onload = function () {\n if (request.status >= 400) {\n onError(new Error(request.statusText));\n } else if (request.status > 0) {\n try {\n var fontObj = fontParser(request.response);\n callback(fontObj);\n } catch (e) {\n onError(e);\n }\n }\n };\n request.onerror = onError;\n request.send();\n } catch (err) {\n onError(err);\n }\n }\n tryLoad();\n }", "function doLoadFont(url, callback) {\n function tryLoad() {\n const onError = err => {\n console.error(`Failure loading font ${url}${url === defaultFontUrl ? '' : '; trying fallback'}`, err)\n if (url !== defaultFontUrl) {\n url = defaultFontUrl\n tryLoad()\n }\n }\n try {\n const request = new XMLHttpRequest()\n request.open('get', url, true)\n request.responseType = 'arraybuffer'\n request.onload = function () {\n if (request.status >= 400) {\n onError(new Error(request.statusText))\n }\n else if (request.status > 0) {\n try {\n const fontObj = fontParser(request.response)\n callback(fontObj)\n } catch (e) {\n onError(e)\n }\n }\n }\n request.onerror = onError\n request.send()\n } catch(err) {\n onError(err)\n }\n }\n tryLoad()\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse microsyntax template expression and return a list of bindings or parsing errors in case the given expression is invalid. For example, ``` ^ ^ absoluteValueOffset for `templateValue` absoluteKeyOffset for `templateKey` ``` contains three bindings: 1. ngFor > null 2. item > NgForOfContext.$implicit 3. ngForOf > items This is apparent from the desugared template: ``` ```
parseTemplateBindings(templateKey, templateValue, templateUrl, absoluteKeyOffset, absoluteValueOffset) { const tokens = this._lexer.tokenize(templateValue); const parser = new _ParseAST(templateValue, templateUrl, absoluteValueOffset, tokens, templateValue.length, false /* parseAction */, this.errors, 0 /* relative offset */); return parser.parseTemplateBindings({ source: templateKey, span: new AbsoluteSourceSpan(absoluteKeyOffset, absoluteKeyOffset + templateKey.length), }); }
[ "parseTemplateBindings(templateKey, templateValue, templateUrl, absoluteKeyOffset, absoluteValueOffset) {\n const tokens = this._lexer.tokenize(templateValue);\n const parser = new _ParseAST(templateValue, templateUrl, absoluteValueOffset, tokens, 0 /* None */, this.errors, 0 /* relative offset */);\n return parser.parseTemplateBindings({\n source: templateKey,\n span: new AbsoluteSourceSpan(absoluteKeyOffset, absoluteKeyOffset + templateKey.length),\n });\n }", "parseTemplateBindings(templateKey, templateValue, templateUrl, absoluteKeyOffset, absoluteValueOffset) {\n const tokens = this._lexer.tokenize(templateValue);\n const parser = new _ParseAST(templateValue, templateUrl, absoluteValueOffset, tokens, templateValue.length, false /* parseAction */, this.errors, 0 /* relative offset */);\n return parser.parseTemplateBindings({\n source: templateKey,\n span: new AbsoluteSourceSpan(absoluteKeyOffset, absoluteKeyOffset + templateKey.length),\n });\n }", "parseTemplateBindings(templateKey) {\n const bindings = [];\n // The first binding is for the template key itself\n // In *ngFor=\"let item of items\", key = \"ngFor\", value = null\n // In *ngIf=\"cond | pipe\", key = \"ngIf\", value = \"cond | pipe\"\n bindings.push(...this.parseDirectiveKeywordBindings(templateKey));\n while (this.index < this.tokens.length) {\n // If it starts with 'let', then this must be variable declaration\n const letBinding = this.parseLetBinding();\n if (letBinding) {\n bindings.push(letBinding);\n }\n else {\n // Two possible cases here, either `value \"as\" key` or\n // \"directive-keyword expression\". We don't know which case, but both\n // \"value\" and \"directive-keyword\" are template binding key, so consume\n // the key first.\n const key = this.expectTemplateBindingKey();\n // Peek at the next token, if it is \"as\" then this must be variable\n // declaration.\n const binding = this.parseAsBinding(key);\n if (binding) {\n bindings.push(binding);\n }\n else {\n // Otherwise the key must be a directive keyword, like \"of\". Transform\n // the key to actual key. Eg. of -> ngForOf, trackBy -> ngForTrackBy\n key.source =\n templateKey.source + key.source.charAt(0).toUpperCase() + key.source.substring(1);\n bindings.push(...this.parseDirectiveKeywordBindings(key));\n }\n }\n this.consumeStatementTerminator();\n }\n return new TemplateBindingParseResult(bindings, [] /* warnings */, this.errors);\n }", "parseTemplateBindings(templateKey) {\n const bindings = [];\n // The first binding is for the template key itself\n // In *ngFor=\"let item of items\", key = \"ngFor\", value = null\n // In *ngIf=\"cond | pipe\", key = \"ngIf\", value = \"cond | pipe\"\n bindings.push(...this.parseDirectiveKeywordBindings(templateKey));\n while (this.index < this.tokens.length) {\n // If it starts with 'let', then this must be variable declaration\n const letBinding = this.parseLetBinding();\n if (letBinding) {\n bindings.push(letBinding);\n }\n else {\n // Two possible cases here, either `value \"as\" key` or\n // \"directive-keyword expression\". We don't know which case, but both\n // \"value\" and \"directive-keyword\" are template binding key, so consume\n // the key first.\n const key = this.expectTemplateBindingKey();\n // Peek at the next token, if it is \"as\" then this must be variable\n // declaration.\n const binding = this.parseAsBinding(key);\n if (binding) {\n bindings.push(binding);\n }\n else {\n // Otherwise the key must be a directive keyword, like \"of\". Transform\n // the key to actual key. Eg. of -> ngForOf, trackBy -> ngForTrackBy\n key.source =\n templateKey.source + key.source.charAt(0).toUpperCase() + key.source.substring(1);\n bindings.push(...this.parseDirectiveKeywordBindings(key));\n }\n }\n this.consumeStatementTerminator();\n }\n return new TemplateBindingParseResult(bindings, [] /* warnings */, this.errors);\n }", "microSyntaxInAttributeValue(attr, binding) {\n const key = attr.name.substring(1); // remove leading asterisk\n // Find the selector - eg ngFor, ngIf, etc\n const selectorInfo = utils_1.getSelectors(this.info);\n const selector = selectorInfo.selectors.find(s => {\n // attributes are listed in (attribute, value) pairs\n for (let i = 0; i < s.attrs.length; i += 2) {\n if (s.attrs[i] === key) {\n return true;\n }\n }\n });\n if (!selector) {\n return;\n }\n const valueRelativePosition = this.position - attr.sourceSpan.start.offset;\n if (binding.keyIsVar) {\n const equalLocation = attr.value.indexOf('=');\n if (equalLocation > 0 && valueRelativePosition > equalLocation) {\n // We are after the '=' in a let clause. The valid values here are the members of the\n // template reference's type parameter.\n const directiveMetadata = selectorInfo.map.get(selector);\n if (directiveMetadata) {\n const contextTable = this.info.template.query.getTemplateContext(directiveMetadata.type.reference);\n if (contextTable) {\n // This adds symbols like $implicit, index, count, etc.\n this.addSymbolsToCompletions(contextTable.values());\n return;\n }\n }\n }\n }\n if (binding.value && utils_1.inSpan(valueRelativePosition, binding.value.ast.span)) {\n this.processExpressionCompletions(binding.value.ast);\n return;\n }\n // If the expression is incomplete, for example *ngFor=\"let x of |\"\n // binding.expression is null. We could still try to provide suggestions\n // by looking for symbols that are in scope.\n const KW_OF = ' of ';\n const ofLocation = attr.value.indexOf(KW_OF);\n if (ofLocation > 0 && valueRelativePosition >= ofLocation + KW_OF.length) {\n const expressionAst = this.info.expressionParser.parseBinding(attr.value, attr.sourceSpan.toString(), attr.sourceSpan.start.offset);\n this.processExpressionCompletions(expressionAst);\n }\n }", "\":expression, MetaProperty, TemplateLiteral\"(node) {\n let leftToken = sourceCode.getTokenBefore(node);\n let rightToken = sourceCode.getTokenAfter(node);\n let firstToken = sourceCode.getFirstToken(node);\n\n while (isLeftParen(leftToken) && isRightParen(rightToken)) {\n setOffsetToToken(firstToken, 1, leftToken);\n setOffsetToToken(rightToken, 0, leftToken);\n\n firstToken = leftToken;\n leftToken = sourceCode.getTokenBefore(leftToken);\n rightToken = sourceCode.getTokenAfter(rightToken);\n }\n }", "scanTemplateElement() {\n\t let startLocation = this.getLocation();\n\t let start = this.index;\n\t while (this.index < this.source.length) {\n\t let ch = this.source.charCodeAt(this.index);\n\t switch (ch) {\n\t case 0x60:\n\t {\n\t // `\n\t // don't include the traling \"`\"\n\t let slice = this.getSlice(start, startLocation);\n\t this.index++;\n\t return {\n\t type: _tokenizer.TokenType.TEMPLATE,\n\t tail: true,\n\t interp: false,\n\t slice: slice\n\t };\n\t }\n\t case 0x24:\n\t // $\n\t if (this.source.charCodeAt(this.index + 1) === 0x7B) {\n\t // {\n\t // don't include the trailing \"$\"\n\t let slice = this.getSlice(start, startLocation);\n\t this.index += 1;\n\t return {\n\t type: _tokenizer.TokenType.TEMPLATE,\n\t tail: false,\n\t interp: true,\n\t slice: slice\n\t };\n\t }\n\t this.index++;\n\t break;\n\t case 0x5C:\n\t // \\\\\n\t {\n\t let octal = this.scanStringEscape(\"\", null)[1];\n\t if (octal != null) {\n\t throw this.createILLEGAL();\n\t }\n\t break;\n\t }\n\t default:\n\t this.index++;\n\t }\n\t }\n\n\t throw this.createILLEGAL();\n\t }", "function inspectDynamicDataRef(expression)\n{\n var retArray = new Array();\n if(expression.length) {\n\n // Quickly reject if the expression doesn't contain \"<%=\"\n var exprIndex = expression.indexOf(\"<%=\");\n if (exprIndex != -1)\n {\n // No need to search the string prior to the \"<%=\"\n expression = expression.substr(exprIndex);\n\n var TranslatorDOM = dreamweaver.getDocumentDOM(dreamweaver.getConfigurationPath() + \"/Translators/ASP.htm\");\n if (TranslatorDOM) {\n TranslatedStr = TranslatorDOM.parentWindow.miniTranslateMarkup(\"\", \"\", expression, false);\n if (TranslatedStr.length)\n {\n var found = TranslatedStr.search(/mm_dynamic_content\\s+source=(\\w+)\\s+binding=\"([^\"]*)\"/i)\n if (found != -1)\n {\n retArray[0] = RegExp.$1\n retArray[1] = RegExp.$2\n //alert(\"source=\" + retArray[0] + \" binding=\" + retArray[1])\n }\n }\n }\n }\n }\n \n return retArray;\n}", "function getTemplateDiagnostics(ast) {\n const { parseErrors, templateAst, htmlAst, template } = ast;\n if (parseErrors && parseErrors.length) {\n return parseErrors.map(e => {\n return {\n kind: ts.DiagnosticCategory.Error,\n span: utils_1.offsetSpan(utils_1.spanOf(e.span), template.span.start),\n message: e.msg,\n };\n });\n }\n return expression_diagnostics_1.getTemplateExpressionDiagnostics({\n templateAst: templateAst,\n htmlAst: htmlAst,\n offset: template.span.start,\n query: template.query,\n members: template.members,\n });\n}", "parseDirectiveKeywordBindings(key) {\n const bindings = [];\n this.consumeOptionalCharacter($COLON); // trackBy: trackByFunction\n const value = this.getDirectiveBoundTarget();\n let spanEnd = this.currentAbsoluteOffset;\n // The binding could optionally be followed by \"as\". For example,\n // *ngIf=\"cond | pipe as x\". In this case, the key in the \"as\" binding\n // is \"x\" and the value is the template key itself (\"ngIf\"). Note that the\n // 'key' in the current context now becomes the \"value\" in the next binding.\n const asBinding = this.parseAsBinding(key);\n if (!asBinding) {\n this.consumeStatementTerminator();\n spanEnd = this.currentAbsoluteOffset;\n }\n const sourceSpan = new AbsoluteSourceSpan(key.span.start, spanEnd);\n bindings.push(new ExpressionBinding(sourceSpan, key, value));\n if (asBinding) {\n bindings.push(asBinding);\n }\n return bindings;\n }", "parseDirectiveKeywordBindings(key) {\n const bindings = [];\n this.consumeOptionalCharacter($COLON); // trackBy: trackByFunction\n const value = this.getDirectiveBoundTarget();\n let spanEnd = this.currentAbsoluteOffset;\n // The binding could optionally be followed by \"as\". For example,\n // *ngIf=\"cond | pipe as x\". In this case, the key in the \"as\" binding\n // is \"x\" and the value is the template key itself (\"ngIf\"). Note that the\n // 'key' in the current context now becomes the \"value\" in the next binding.\n const asBinding = this.parseAsBinding(key);\n if (!asBinding) {\n this.consumeStatementTerminator();\n spanEnd = this.currentAbsoluteOffset;\n }\n const sourceSpan = new AbsoluteSourceSpan(key.span.start, spanEnd);\n bindings.push(new ExpressionBinding(sourceSpan, key, value));\n if (asBinding) {\n bindings.push(asBinding);\n }\n return bindings;\n }", "parseDirectiveKeywordBindings(key) {\n const bindings = [];\n this.consumeOptionalCharacter(chars.$COLON); // trackBy: trackByFunction\n const value = this.getDirectiveBoundTarget();\n let spanEnd = this.currentAbsoluteOffset;\n // The binding could optionally be followed by \"as\". For example,\n // *ngIf=\"cond | pipe as x\". In this case, the key in the \"as\" binding\n // is \"x\" and the value is the template key itself (\"ngIf\"). Note that the\n // 'key' in the current context now becomes the \"value\" in the next binding.\n const asBinding = this.parseAsBinding(key);\n if (!asBinding) {\n this.consumeStatementTerminator();\n spanEnd = this.currentAbsoluteOffset;\n }\n const sourceSpan = new AbsoluteSourceSpan(key.span.start, spanEnd);\n bindings.push(new ExpressionBinding(sourceSpan, key, value));\n if (asBinding) {\n bindings.push(asBinding);\n }\n return bindings;\n }", "consumeTemplate() {\n for (;;) {\n this.consumeMatch(/^(?:[^`$\\\\]|\\\\.|\\$(?!{))*/);\n if (this.fnString[this.pos] === \"`\") {\n this.pos++;\n this.consumeWhitespace();\n return \"`\";\n }\n if (this.fnString.substr(this.pos, 2) === \"${\") {\n this.pos += 2;\n this.consumeWhitespace();\n if (this.consumeSyntaxUntil(\"{\", \"}\"))\n continue;\n }\n return;\n }\n }", "function expression_parse(expr, earlyExit) {\n\t\t\tif (earlyExit == null) \n\t\t\t\tearlyExit = false;\n\t\t\t\n\t\t\ttemplate = expr;\n\t\t\tindex = 0;\n\t\t\tlength = expr.length;\n\t\t\n\t\t\tast = new Ast_Body();\n\t\t\n\t\t\tvar current = ast,\n\t\t\t\tstate = state_body,\n\t\t\t\tc, next, directive;\n\t\t\n\t\t\touter: while (true) {\n\t\t\n\t\t\t\tif (index < length && (c = template.charCodeAt(index)) < 33) {\n\t\t\t\t\tindex++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\n\t\t\t\tif (index >= length) \n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdirective = parser_getDirective(c);\n\t\t\n\t\t\t\tif (directive == null && index < length) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (directive === punc_Semicolon) {\n\t\t\t\t\tif (earlyExit === true) \n\t\t\t\t\t\treturn [ast, index];\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (earlyExit === true) {\n\t\t\t\t\tvar p = current.parent;\n\t\t\t\t\tif (p != null && p.type === type_Body && p.parent == null) {\n\t\t\t\t\t\t// is in root body\n\t\t\t\t\t\tif (directive === go_ref) \n\t\t\t\t\t\t\treturn [ast, index];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (directive === punc_Semicolon) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tswitch (directive) {\n\t\t\t\t\tcase punc_ParantheseOpen:\n\t\t\t\t\t\tcurrent = ast_append(current, new Ast_Statement(current));\n\t\t\t\t\t\tcurrent = ast_append(current, new Ast_Body(current));\n\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase punc_ParantheseClose:\n\t\t\t\t\t\tvar closest = type_Body;\n\t\t\t\t\t\tif (state === state_arguments) {\n\t\t\t\t\t\t\tstate = state_body;\n\t\t\t\t\t\t\tclosest = type_FunctionRef;\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t\t\t} while (current != null && current.type !== closest);\n\t\t\n\t\t\t\t\t\tif (closest === type_Body) {\n\t\t\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tif (current == null) {\n\t\t\t\t\t\t\tutil_throw('OutOfAst Exception', c);\n\t\t\t\t\t\t\tbreak outer;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tcase punc_BraceOpen:\n\t\t\t\t\t\tcurrent = ast_append(current, new Ast_Object(current));\n\t\t\t\t\t\tdirective = go_objectKey;\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase punc_BraceClose:\n\t\t\t\t\t\twhile (current != null && current.type !== type_Object){\n\t\t\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase punc_Comma:\n\t\t\t\t\t\tif (state !== state_arguments) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstate = state_body;\n\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t\t\t\t} while (current != null &&\n\t\t\t\t\t\t\t\tcurrent.type !== type_Body &&\n\t\t\t\t\t\t\t\tcurrent.type !== type_Object\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t\tif (current == null) {\n\t\t\t\t\t\t\t\tutil_throw('Unexpected comma', c);\n\t\t\t\t\t\t\t\tbreak outer;\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (current.type === type_Object) {\n\t\t\t\t\t\t\t\tdirective = go_objectKey;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t\t\t} while (current != null && current.type !== type_FunctionRef);\n\t\t\n\t\t\t\t\t\tif (current == null) {\n\t\t\t\t\t\t\tutil_throw('OutOfAst Exception', c);\n\t\t\t\t\t\t\tbreak outer;\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tcurrent = current.newArgument();\n\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\n\t\t\t\t\tcase punc_Question:\n\t\t\t\t\t\tast = new Ast_TernaryStatement(ast);\n\t\t\t\t\t\tcurrent = ast.case1;\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tcase punc_Colon:\n\t\t\t\t\t\tcurrent = ast.case2;\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\n\t\t\n\t\t\t\t\tcase punc_Dot:\n\t\t\t\t\t\tc = template.charCodeAt(index + 1);\n\t\t\t\t\t\tif (c >= 48 && c <= 57) {\n\t\t\t\t\t\t\tdirective = go_number;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdirective = current.type === type_Body\n\t\t\t\t\t\t\t\t? go_ref\n\t\t\t\t\t\t\t\t: go_acs\n\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase punc_BracketOpen:\n\t\t\t\t\t\tif (current.type === type_SymbolRef ||\n\t\t\t\t\t\t\tcurrent.type === type_AccessorExpr ||\n\t\t\t\t\t\t\tcurrent.type === type_Accessor\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tcurrent = ast_append(current, new Ast_AccessorExpr(current))\n\t\t\t\t\t\t\tcurrent = current.getBody();\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrent = ast_append(current, new Ast_Array(current));\n\t\t\t\t\t\tcurrent = current.body;\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase punc_BracketClose:\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t\t\t} while (current != null &&\n\t\t\t\t\t\t\tcurrent.type !== type_AccessorExpr &&\n\t\t\t\t\t\t\tcurrent.type !== type_Array\n\t\t\t\t\t\t);\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\n\t\t\n\t\t\t\tif (current.type === type_Body) {\n\t\t\t\t\tcurrent = ast_append(current, new Ast_Statement(current));\n\t\t\t\t}\n\t\t\n\t\t\t\tif ((op_Minus === directive || op_LogicalNot === directive) && current.body == null) {\n\t\t\t\t\tcurrent = ast_append(current, new Ast_UnaryPrefix(current, directive));\n\t\t\t\t\tindex++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\n\t\t\t\tswitch (directive) {\n\t\t\n\t\t\t\t\tcase op_Minus:\n\t\t\t\t\tcase op_Plus:\n\t\t\t\t\tcase op_Multip:\n\t\t\t\t\tcase op_Divide:\n\t\t\t\t\tcase op_Modulo:\n\t\t\n\t\t\t\t\tcase op_LogicalAnd:\n\t\t\t\t\tcase op_LogicalOr:\n\t\t\t\t\tcase op_LogicalEqual:\n\t\t\t\t\tcase op_LogicalEqual_Strict:\n\t\t\t\t\tcase op_LogicalNotEqual:\n\t\t\t\t\tcase op_LogicalNotEqual_Strict:\n\t\t\n\t\t\t\t\tcase op_LogicalGreater:\n\t\t\t\t\tcase op_LogicalGreaterEqual:\n\t\t\t\t\tcase op_LogicalLess:\n\t\t\t\t\tcase op_LogicalLessEqual:\n\t\t\n\t\t\t\t\t\twhile (current && current.type !== type_Statement) {\n\t\t\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tif (current.body == null) {\n\t\t\t\t\t\t\treturn util_throw(\n\t\t\t\t\t\t\t\t'Unexpected operator', c\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tcurrent.join = directive;\n\t\t\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t\t\t} while (current != null && current.type !== type_Body);\n\t\t\n\t\t\t\t\t\tif (current == null) {\n\t\t\t\t\t\t\treturn util_throw(\n\t\t\t\t\t\t\t\t'Unexpected operator' , c\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\n\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase go_string:\n\t\t\t\t\tcase go_number:\n\t\t\t\t\t\tif (current.body != null && current.join == null) {\n\t\t\t\t\t\t\treturn util_throw(\n\t\t\t\t\t\t\t\t'Directive expected', c \n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (go_string === directive) {\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t\tast_append(current, new Ast_Value(parser_getString(c)));\n\t\t\t\t\t\t\tindex++;\n\t\t\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tif (go_number === directive) {\n\t\t\t\t\t\t\tast_append(current, new Ast_Value(parser_getNumber(c)));\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tcontinue;\n\t\t\n\t\t\t\t\tcase go_ref:\n\t\t\t\t\tcase go_acs:\n\t\t\t\t\t\tvar ref = parser_getRef();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (directive === go_ref) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (ref === 'null') \n\t\t\t\t\t\t\t\tref = null;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (ref === 'false') \n\t\t\t\t\t\t\t\tref = false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (ref === 'true') \n\t\t\t\t\t\t\t\tref = true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (typeof ref !== 'string') {\n\t\t\t\t\t\t\t\tast_append(current, new Ast_Value(ref));\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (index < length) {\n\t\t\t\t\t\t\tc = template.charCodeAt(index);\n\t\t\t\t\t\t\tif (c < 33) {\n\t\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tif (c === 40) {\n\t\t\n\t\t\t\t\t\t\t// (\n\t\t\t\t\t\t\t// function ref\n\t\t\t\t\t\t\tstate = state_arguments;\n\t\t\t\t\t\t\tindex++;\n\t\t\n\t\t\t\t\t\t\tvar fn = ast_append(current, new Ast_FunctionRef(current, ref));\n\t\t\n\t\t\t\t\t\t\tcurrent = fn.newArgument();\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar Ctor = directive === go_ref\n\t\t\t\t\t\t\t? Ast_SymbolRef\n\t\t\t\t\t\t\t: Ast_Accessor\n\t\t\t\t\t\tcurrent = ast_append(current, new Ctor(current, ref));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase go_objectKey:\n\t\t\t\t\t\tif (parser_skipWhitespace() === 125)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar key = parser_getRef();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (parser_skipWhitespace() !== 58) {\n\t\t\t\t\t\t\t//:\n\t\t\t\t\t\t\treturn util_throw(\n\t\t\t\t\t\t\t\t'Object parser. Semicolon expeted', c\n\t\t\t\t\t\t\t); \n\t\t\t\t\t\t}\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t\tcurrent = current.nextProp(key);\n\t\t\t\t\t\tdirective = go_ref;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tif (current.body == null &&\n\t\t\t\tcurrent.type === type_Statement) {\n\t\t\t\t\n\t\t\t\treturn util_throw(\n\t\t\t\t\t'Unexpected end of expression', c\n\t\t\t\t); \n\t\t\t}\n\t\t\n\t\t\tast_handlePrecedence(ast);\n\t\t\n\t\t\treturn ast;\n\t\t}", "function visitTemplateExpression(node) {\n var expressions = [];\n addTemplateHead(expressions, node);\n addTemplateSpans(expressions, node);\n // createAdd will check if each expression binds less closely than binary '+'.\n // If it does, it wraps the expression in parentheses. Otherwise, something like\n // `abc${ 1 << 2 }`\n // becomes\n // \"abc\" + 1 << 2 + \"\"\n // which is really\n // (\"abc\" + 1) << (2 + \"\")\n // rather than\n // \"abc\" + (1 << 2) + \"\"\n var expression = ts.reduceLeft(expressions, ts.createAdd);\n if (ts.nodeIsSynthesized(expression)) {\n expression.pos = node.pos;\n expression.end = node.end;\n }\n return expression;\n }", "function visitTemplateExpression(node) {\n var expressions = [];\n addTemplateHead(expressions, node);\n addTemplateSpans(expressions, node);\n // createAdd will check if each expression binds less closely than binary '+'.\n // If it does, it wraps the expression in parentheses. Otherwise, something like\n // `abc${ 1 << 2 }`\n // becomes\n // \"abc\" + 1 << 2 + \"\"\n // which is really\n // (\"abc\" + 1) << (2 + \"\")\n // rather than\n // \"abc\" + (1 << 2) + \"\"\n var expression = ts.reduceLeft(expressions, ts.createAdd);\n if (ts.nodeIsSynthesized(expression)) {\n expression.pos = node.pos;\n expression.end = node.end;\n }\n return expression;\n }", "function inspectDynamicDataRef(expression)\n{\n var retArray = new Array();\n if(expression.length) \n {\n // Quickly reject if the expression doesn't contain \"<%=\"\n var exprIndex = expression.indexOf(\"<%=\");\n if (exprIndex != -1)\n {\n // No need to search the string prior to the \"<%=\"\n expression = expression.substr(exprIndex);\n\n var TranslatorDOM = dreamweaver.getDocumentDOM(dreamweaver.getConfigurationPath() + \"/Translators/ASP.htm\");\n if (TranslatorDOM) \n {\n TranslatedStr = TranslatorDOM.parentWindow.miniTranslateMarkup(\"\", \"\", expression, false);\n if (TranslatedStr.length)\n {\n var found = TranslatedStr.search(/mm_dynamic_content\\s+source=(\\w+)\\s+binding=\"([^\"]*)\"/i)\n if (found != -1)\n {\n //map the name to node \n elementNode = findSourceNode(RegExp.$1);\n if (elementNode)\n {\n if (elementNode.tagName == \"MM_CMDRECSET\") \n {\n ///map the node to SSRec to get the title.\n parentNode = elementNode.parentNode;\n ssRec = findSSrec(parentNode,\"command\");\n } \n else \n {\n ssRec = findSSrec(elementNode,\"command\");\n }\n \n if (ssRec)\n { \n retArray[0] = ssRec.title;\n\n if (elementNode.tagName == \"MM_CMDRECSET\") \n {\n retArray[1] = RegExp.$1 + \".\" + RegExp.$2;\n } \n else \n {\n retArray[1] = RegExp.$2;\n }\n }\n }\n }\n //alert(\"source=\" + retArray[0] + \" binding=\" + retArray[1])\n }\n }\n }\n }\n return retArray;\n}", "function visitTemplateExpression(node){var expressions=[];addTemplateHead(expressions,node);addTemplateSpans(expressions,node);// createAdd will check if each expression binds less closely than binary '+'.\n// If it does, it wraps the expression in parentheses. Otherwise, something like\n// `abc${ 1 << 2 }`\n// becomes\n// \"abc\" + 1 << 2 + \"\"\n// which is really\n// (\"abc\" + 1) << (2 + \"\")\n// rather than\n// \"abc\" + (1 << 2) + \"\"\nvar expression=ts.reduceLeft(expressions,ts.createAdd);if(ts.nodeIsSynthesized(expression)){expression.pos=node.pos;expression.end=node.end;}return expression;}", "function parser(template) {\n var tokens = [];\n /**\n * We iterate through each character in the template string, and track\n * the index of the character we're processing with `position`. We start\n * at 0, the first character.\n */\n var position = 0;\n /**\n * `text` is used to accumulate what we call \"UserText\", or simply text that\n * is not a subsitution. For example, in the template:\n * \n * \"The day is {day}.\"\n * \n * There are two instances of `UserText`, \"The day is \" and \".\", which is the text\n * befor eand after the subsitution. With this template our tokens would look something like:\n * \n * [\n * { type: UserText, value: \"The day is \"},\n * { type : DaySub },\n * { type: UserText, value: \".\" }\n * ]\n * \n */\n var text = '';\n while (position < template.length) {\n var char = template[position++];\n /**\n * A bracket indicates we're starting a subsitution. Any characters after this,\n * and before the next '}' will be considered part of the subsitution name.\n */\n if (char === '{') {\n // Push any `UserText` we've accumulated and reset the `text` variable.\n if (text) {\n tokens.push({\n t: UserText,\n v: text\n });\n }\n text = '';\n var sub = '';\n char = template[position++];\n while (char !== '}') {\n sub += char;\n char = template[position++];\n }\n tokens.push({\n t: SubToTypeIdentifierMap[sub]\n });\n }\n // Anything not inside brackets is just plain text.\n else {\n text += char;\n }\n }\n /**\n * We might have some text after we're done iterating through the template if\n * the template ends with some `UserText`.\n */\n if (text) {\n tokens.push({\n t: UserText,\n v: text\n });\n }\n return tokens;\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set coordinates in block
function set_block_coordinates(block_element, coordinates) { if (coordinates !== null) { block_element.parentNode.setAttribute("data-lat", coordinates.lat); block_element.parentNode.setAttribute("data-lng", coordinates.lng); } }
[ "function setPosition(block, x, y){\n\n\t\t\t\tif (!block.dirty) \n\t\t\t\t\treturn\n\n\t\t\t\tvar dx = x - block.x\n\t\t\t\tvar dy = y - block.y\n\n\t\t\t\t\n\n\t\t\t\t// Set our children's positions\n\t\t\t\tblock.allChildren.forEach(function(d, i){\n\t\t\t\t\td.x += dx\n\t\t\t\t\td.y += dy\n\t\t\t\t})\n\n\t\t\t\t// Then set our own\n\t\t\t\tblock.x += dx\n\t\t\t\tblock.y += dy\n\t\t\t\tblock.r = blockRadius\n\t\t\t\tblock.dirty = false\n\t\t\t\tblock.depth = 0\n\n\n\n\t\t\t\tfunction calculateDirection(dir, dx, dy){\n\t\t\t\t\tvar id = block.prop(dir)\n\t\t\t\t\tif (id){\n\t\t\t\t\t\tvar n = self.findWithId(id)\n\t\t\t\t\t\tsetPosition(n, x + dx, y + dy)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Use SVG coordinates, so top left is 0\n\t\t\t\tcalculateDirection('NORTH', 0, -distance)\n\t\t\t\tcalculateDirection('SOUTH', 0, distance)\n\t\t\t\tcalculateDirection('EAST', distance, 0)\n\t\t\t\tcalculateDirection('WEST', -distance, 0)\n\t\t\t}", "function setBlock(x, y, block) {\n world[x][y] = block;\n}", "update() {\n this.x = 101 * this.xBlock;\n this.y = this.yBlock * 83 - 25\n }", "function setBlock(x, y, tetromino){\n // If blockField[x] is undefined fill it with an empty array\n // If blockField[x] is defined, do not change the row\n blockField[x] = blockField[x] || [];\n // At coordinates of confirmed existing line, place piece type\n blockField[x][y] = tetromino;\n // redraw canvas\n redrawBlockField();\n }", "setCoordinates(node) {\n if(node === this.root) {\n node.setCoordinates(this.x, this.y);\n } else {\n node.setCoordinates();\n }\n }", "setBlock(position, block) {\n\t\tif (this.isValid(position))\n\t\t\tthis.matrix[position.y][position.x] = block;\n\t}", "setBlock(position, block) {\n\t\tif (this.isValid(position)) this.matrix[position.y][position.x] = block;\n\t}", "function setBlockPositionOnMap(blockNewPosition) {\n var blockHeadingToElemVal = tileMap.mapGrid[blockNewPosition.Row][blockNewPosition.Col];\n if (blockHeadingToElemVal == goal.Val || blockHeadingToElemVal == blockInGoal.Val) { // check if element that block is heading to, is a goal or block in the goal\n tileMap.mapGrid[blockNewPosition.Row][blockNewPosition.Col] = blockInGoal.Val;\n EditDrawnElement(blockInGoal.Val, blockNewPosition);\n } else {\n tileMap.mapGrid[blockNewPosition.Row][blockNewPosition.Col] = block.Val;\n EditDrawnElement(block.Val, blockNewPosition);\n }\n }", "function setBlock(x, y, solid){\n if(x >= width){\n return;\n }\n // add fixed ground\n if(y >= height - 1){\n return;\n }\n if(x < 0){\n return;\n }\n if(y < 0) {\n return;\n }\n\n worldGrid[x][y] = solid;\n}", "set position(point){\n\t// Position the DOM wrapper to the coordinates in point.\n\tthis.node.style.left = point[0] + \"px\"\n\tthis.node.style.top = point[1] + \"px\"\n }", "setNodeCoords(id, x, y) {\n let n = this.node(id);\n if (n) {\n n.x = x;\n n.y = y;\n }\n }", "setBlock(row, col, tetromino) {\n this.grid[row][col] = tetromino;\n }", "initBlock () {\n this.blockRect = this.block(this.getGuidingRect())\n }", "function onBlock(block, location, particleData, tick) {\n tick = tick*0.2;\n particleData.setRelativeY(0.5+tick*0.3);\n particleData.setRelativeX(0.5+Math.sin(tick)*0.2);\n particleData.setRelativeZ(0.5+Math.cos(tick)*0.2);\n}", "set(_x, _y) {\n this.x = _x;\n this.y = _y;\n }", "setCoordinates(){\n this.x = Math.floor(Math.random()*19 + 1) * 10;\n this.y = Math.floor(Math.random()*19 + 1) * 10;\n //console.log(\"x = \", this.x, \", y = \", this.y);\n for(let bodyLen = 0; bodyLen < snake.bodyX.length; bodyLen++){\n if(this.x == snake.bodyX[bodyLen]) {\n if(this.y == snake.bodyY[bodyLen]){\n console.log(\"Coordinates inside of the snake, try again\");\n this.setCoordinates();\n }\n }\n }\n context.fillRect(this.x, this.y, 10, 10);\n }", "function block(x, y, width, height, blockCode, isVoid)\n{\n\tthis.isVoid = isVoid;\n\tthis.x = ((x * blockWidth) + ((x + 1) * blockSpacing));\n\tthis.y = ((y * blockHeight) + ((y + 1) * blockSpacing) + CANVAS_Y_OFFSET);\n\tthis.width = width;\n\tthis.height = height;\n}", "function setWorldCoordinates(xmin, ymin, xmax, ymax) {\r\n\txwmin = xmin;\r\n\tywmin = ymin;\r\n\txwmax = xmax;\r\n\tywmax = ymax;\t\r\n}", "function set_block(x, y, what, appear)\n{\n var block = new FIG(x, y, what, appear);\n\n if (playfield[block.backfore][x][y]) {\n\tdebug(1, \"block at x=\" + x + \", y=\" + y);\n }\n\n playfield[block.backfore][x][y] = block;\n evas_object_move(block.obj, X(block.x), Y(block.y));\n\n if (block.glowobj)\n\tevas_object_move(block.glowobj, X(block.x), Y(block.y));\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Skip the next token if it is punctuation, otherwise die
function skip_punc(char) { if (is_punc(char)) { input.next(); } else { input.croak(`Expected punctuation: "${char}"`); } }
[ "function skip_punc(chs) {\n if (is_punc(chs)) input.next();\n else input.croak('Expecting punctuation: \"' + chs + '\"');\n }", "function skip_punc(chs) {\n if (is_punc(chs)) input.next();\n else input.croak(\"Expecting punctuation: \\\"\" + chs + \"\\\"\");\n }", "function tokenSkip() {\n return undefined;\n }", "readPunctuation() {\n\t\tlet token = this.tokens[this.currentIndex];\n\t\twhile(token && token.punctuation) {\n\t\t\ttoken = this.tokens[++this.currentIndex];\n\t\t}\n\t}", "_readBlankNodePunctuation(token) {\n let next;\n switch (token.type) {\n // Semicolon means the subject is shared; predicate and object are different\n case ';':\n next = this._readPredicate;\n break;\n // Comma means both the subject and predicate are shared; the object is different\n case ',':\n next = this._readObject;\n break;\n default:\n return this._error(`Expected punctuation to follow \"${this._object.id}\"`, token);\n }\n // A quad has been completed now, so return it\n this._emit(this._subject, this._predicate, this._object, this._graph);\n return next;\n }", "_readBlankNodePunctuation(token) {\n let next;\n switch (token.type) {\n // Semicolon means the subject is shared; predicate and object are different\n case ';':\n next = this._readPredicate;\n break;\n // Comma means both the subject and predicate are shared; the object is different\n case ',':\n next = this._readObject;\n break;\n default:\n return this._error(`Expected punctuation to follow \"${this._object.id}\"`, token);\n }\n // A quad has been completed now, so return it\n this._emit(this._subject, this._predicate, this._object, this._graph);\n return next;\n }", "function trySkipToken(tokenKind)\n {\n if (token.token == tokenKind)\n {\n nextToken();\n return true;\n }\n\n return false;\n }", "_readBlankNodePunctuation(token) {\n var next;\n\n switch (token.type) {\n // Semicolon means the subject is shared; predicate and object are different\n case ';':\n next = this._readPredicate;\n break;\n // Comma means both the subject and predicate are shared; the object is different\n\n case ',':\n next = this._readObject;\n break;\n\n default:\n return this._error('Expected punctuation to follow \"' + this._object.id + '\"', token);\n } // A quad has been completed now, so return it\n\n\n this._emit(this._subject, this._predicate, this._object, this._graph);\n\n return next;\n }", "_readBlankNodePunctuation(token) {\n var next;\n switch (token.type) {\n // Semicolon means the subject is shared; predicate and object are different\n case ';':\n next = this._readPredicate;\n break;\n // Comma means both the subject and predicate are shared; the object is different\n case ',':\n next = this._readObject;\n break;\n default:\n return this._error('Expected punctuation to follow \"' + this._object.id + '\"', token);\n }\n // A quad has been completed now, so return it\n this._emit(this._subject, this._predicate, this._object, this._graph);\n return next;\n }", "function skipToken(tokenKind)\n {\n // Check it\n if (token.token != tokenKind)\n throw new Error(`syntax error: expected: ${tokenKind} not ${token.token}`);\n\n // Move on\n nextToken();\n }", "function skipToken(token, state) {\n state.skipToken('LF');\n }", "function skipWord() {\n while (_base.state.pos < _base.input.length) {\n const ch = _base.input.charCodeAt(_base.state.pos);\n if (_identifier.IS_IDENTIFIER_CHAR[ch]) {\n _base.state.pos++;\n } else if (ch === _charcodes.charCodes.backslash) {\n // \\u\n _base.state.pos += 2;\n if (_base.input.charCodeAt(_base.state.pos) === _charcodes.charCodes.leftCurlyBrace) {\n while (\n _base.state.pos < _base.input.length &&\n _base.input.charCodeAt(_base.state.pos) !== _charcodes.charCodes.rightCurlyBrace\n ) {\n _base.state.pos++;\n }\n _base.state.pos++;\n }\n } else {\n break;\n }\n }\n}", "function punctuationCheck(word){\n let punctuation = ['!', '?', ':', ';', '.', ','];\n //for loop saying if a word has a character from the \n //punctuation aray, do nothing. If it doesn't, add an \"!\".\n for (let m = 0; m < punctuation.length; m++){\n if (word[word.length-1] === punctuation[m]){\n return false;\n }\n }\n return true;\n }", "function checkPunctuators(token, values) {\n return token.type === \"(punctuator)\" && _.contains(values, token.value);\n }", "function checkPunctuators(token, values) {\n\t return token.type === \"(punctuator)\" && _.contains(values, token.value);\n\t }", "function getTokenSkipNewline () {\n do {\n getToken();\n }\n while (token == '\\n');\n }", "function isPunctuation(word) {\n if (flexReader.getWordType(word) === \"punct\") {\n const wordValue = flexReader.getWordValue(word);\n // The Regex checks if the word contains any alphanumeric characters, \n // including special alphabetic characters such as accented letters. \n return wordValue == null || !wordValue.match(/^[0-9a-zA-ZÀ-ÿ]+$/);\n }\n return false; \n}", "function getTokenSkipNewline () {\n\t do {\n\t getToken();\n\t }\n\t while (token == '\\n');\n\t }", "function getTokenSkipNewline () {\n do {\n getToken();\n }\n while (token === '\\n');\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
load tasks from devDependencies
function loadDevDependencies() { var packageJson = grunt.file.readJSON(consts.packageJson); var tasks = packageJson.devDependencies || {}; var prefix = consts.gruntPrefix; Object.keys(tasks).forEach(function(task) { if (task.indexOf(prefix) === 0) { grunt.loadNpmTasks(task) } }); }
[ "function loadTasks() {\n try {\n var tasks = require('./build/tasks');\n tasks.helpers = require('./build/helper');\n return tasks;\n }\n catch (ex) {\n\n // When the gulpfile loaded first,\n // tasks hasn't been built yet.\n }\n}", "function loadTasks() {\n Entry.setContext(CONTEXT);\n var paths = (this.config.path instanceof Array ? this.config.path : [this.config.path]);\n var valid = 0,\n self = this;\n _.forEach(paths, function(sPath) {\n var taskDir = Component.appPath(sPath);\n try {\n var list = crux.util.readDirectory(taskDir, 'js');\n } catch(e) {\n // No tasks\n log.warn('Crux.tasks: no task definitions found in: %s', sPath);\n return;\n }\n // For each task file found in the folder, we register it.\n list.forEach(function(taskPath) {\n var name = taskPath.replace(taskDir, '');\n if(name.charAt(0) === '/' || name.charAt(0) === \"\\\\\") name = name.substr(1);\n name = name.replace('.js','');\n name = name.replace(/\\\\/g,'.').replace(/\\//g, '.');\n var split = name.split('.'),\n taskName = split.pop();\n if(split.length !== 0) {\n var ns = split.join('.');\n taskName = ns + ':' + taskName;\n }\n try {\n var taskModule = require(taskPath);\n } catch(e) {\n log.fatal('Crux.tasks: Failed to load task %s', taskName);\n log.debug(e);\n return;\n }\n var taskObj,\n taskConfig = (typeof self.config.tasks[taskName] === 'undefined' ? {} : self.config.tasks[taskName]);\n if(typeof taskModule === 'function') {\n taskObj = new Entry(taskName);\n taskModule.call(CONTEXT, taskObj, taskConfig);\n } else if(taskModule instanceof Entry) {\n taskObj = taskModule;\n }\n if(taskObj == null) return;\n if(!taskObj) {\n log.trace('Crux.tasks: task %s does not implement a crux.Tasks.Entry. Skipping.', taskName);\n return;\n }\n self.registerTask(taskObj);\n valid++;\n });\n });\n if(valid !== 0) {\n log.trace('Crux.tasks: Loaded %s tasks', valid);\n }\n}", "loadModulesTasks () {\n let self = this\n\n // get all active modules\n self.api.modules.modulesPaths.forEach(modulePath => {\n // build the task folder path for the current module\n let tasksFolder = `${modulePath}/tasks`\n\n // load task files\n this.api.utils.recursiveDirectoryGlob(tasksFolder).forEach(f => self.loadFile(f))\n })\n }", "async function loadTasks(){\n await getTasks()\n }", "function loadTasks(relPath) {\n return includeAll({\n dirname: require('path').resolve(__dirname, relPath),\n filter: /(.+)\\.js$/\n }) || {};\n }", "function loadTasks()\n{\t\n\t// If gtg is running\n\tif (running)\n\t{\n\t\tGTGDBus.getActiveTasks(['@all'], function (tasks) {\n\t\tallTasks = new Array();\n\t\tfor (var i in tasks) {\n\t\t allTasks.push(tasks[i]);\n\t\t}\n\t\t});\n\t}\n\telse { allTasks = new Array(); }\n}", "[_loadDeps] () {}", "function registerTasks() {\n logger.info(\"Loading tasks!\");\n let files = fs.readdirSync('./tasks')\n .filter(file => file.endsWith('.js') && file != 'example.js');\n\n for (const file of files) {\n const task = require(`./tasks/${file}`);\n tasks.push(task);\n setInterval(task.execute, task.interval, discord, logger);\n\n logger.info(`Loaded task from file: tasks/${file}`);\n } \n\n}", "function loadTasks()\n{\n if (!checkConfiguration())\n {\n return null; \n }\n\n // if no tasks.json file exists, create a default\n var tasksPath = getTasksPath();\n if (!fileExists(tasksPath))\n {\n var tasksObject = tasksHeader;\n // if tasks file could not be saved, return null to indicate problem.\n if (!saveTasks(tasksObject)) \n return null;\n }\n\n\n // load the tasks.json file\n var tasksFile = null;\n try {\n tasksFile = fs.readFileSync(tasksPath, 'utf8');\n }\n catch(err) {\n vscode.window.showErrorMessage(\"Could not load tasks file\"); \n return null; \n }\n \n // loaded, so parse as JS object\n var tasksObject = JSON.parse( tasksFile );\n console.log(\"loaded tasks.json\");\n\n // sanity check - ensure a tasks array exists if not present\n if (!(\"tasks\" in tasksObject)) {\n tasksObject[\"tasks\"] = [];\n console.log(\"Added tasks array to tasks.json\");\n }\n\n return tasksObject;\n}", "function bootstrapTasks() {\n var taskGroups = _(fs.readdirSync(__dirname))\n .filter(function(fp) {\n return fp !== 'index.js';\n })\n .map(function(fp) {\n return {\n group: _.omit(require('./' + fp), function(v, key) {\n return key.charAt(0) === '_';\n }),\n name: path.basename(fp, '.js'),\n };\n })\n .value();\n\n _.each(taskGroups, function(tg) {\n var name = tg.name;\n var group = tg.group;\n\n _.each(group, function(subtask, subtaskName) {\n gulp.task(name + ':' + subtaskName, subtask);\n });\n\n gulp.task(name, _.map(Object.keys(group), function(subtaskName) {\n return name + ':' + subtaskName;\n }));\n });\n}", "build() {\n fs.ensureDirSync(`${global.appRoot}/data/cache`);\n\n // Glob tasks\n let done = [];\n\n this._locations = global.bundleLocations;\n\n // Get files\n const tasks = glob.sync(this.files('tasks/*.js'));\n const watchers = [];\n const installers = [];\n\n // Loop tasks\n for (const rawTask of tasks) {\n // Load task\n const task = parser.task(rawTask);\n\n // Create task\n const Task = this._task(task);\n\n // Add to default task\n if (done.indexOf(task.task) === -1) installers.push(task.task);\n\n // Push to done\n done.push(task.task);\n\n // Check befores\n if (task.before) {\n // Push to dones\n done = done.concat(task.before);\n\n // Remove before from defaults\n for (const taskBefore of task.before) {\n // Set index\n const index = installers.indexOf(taskBefore);\n\n // Check defaults\n if (index > -1) installers.splice(index, 1);\n }\n }\n\n // Check afters\n if (task.after) {\n // Push to dones\n done = done.concat(task.after);\n\n // Remove after from defaults\n for (const taskAfter of task.after) {\n // Set index\n const index = installers.indexOf(taskAfter);\n\n // Check defaults\n if (index > -1) installers.splice(index, 1);\n }\n }\n\n // Add watch to watchers\n if (Task.watch) watchers.push(`${task.task}.watch`);\n }\n\n // Create tasks\n gulp.task('watch', gulp.parallel(...watchers));\n gulp.task('install', gulp.series(...installers));\n }", "function loadTasks() {\n API.getTasks()\n .then(res => \n setTasks(res.data)\n )\n .catch(err => console.log(err));\n }", "function requireAllDefaultTasks() {\n // Automatically add tasks in the /tasks/ directory.\n glob.sync( `${ TASK_PATH }*.js`, {\n ignore: ignoreTasks\n } ).forEach( task => {\n requireTask( task );\n } );\n\n // Define top-level tasks.\n gulp.task( 'build',\n gulp.series(\n gulp.parallel(\n 'styles',\n 'scripts',\n 'images'\n ),\n 'copy'\n )\n );\n\n // Define the test task, but don't run tests on production.\n if ( envvars.NODE_ENV !== 'production' ) {\n gulp.task( 'test',\n gulp.series(\n gulp.parallel(\n 'lint',\n 'test:unit'\n )\n )\n );\n }\n\n // Define the task that runs with `gulp watch`.\n gulp.task( 'watch',\n gulp.parallel(\n 'styles:watch',\n 'scripts:watch'\n )\n );\n\n // Define the default task that runs with just `gulp`.\n gulp.task( 'default',\n gulp.parallel(\n 'build'\n )\n );\n\n gulp.task( 'moneytools',\n gulp.series(\n 'scripts:moneytools',\n 'copy:moneytools'\n )\n );\n}", "function loadTasks(tasksdir) {\n try {\n var files = grunt.file.glob.sync('*.{js,coffee}', {cwd: tasksdir, maxDepth: 1});\n // Load tasks from files.\n files.forEach(function(filename) {\n loadTask(path.join(tasksdir, filename));\n });\n } catch(e) {\n grunt.log.verbose.error(e.stack).or.error(e);\n }\n}", "function initTasks (gulp, config) {\n\tvar pkg = readPackageJSON();\n\tvar name = capitalize(camelCase(config.component.pkgName || pkg.name));\n\n\tconfig = defaults(config, { aliasify: pkg.aliasify });\n\tconfig.component = defaults(config.component, {\n\t\tpkgName: pkg.name,\n\t\tdependencies: pkg.deps,\n\t\tname: name,\n\t\tsrc: 'src',\n\t\tlib: 'lib',\n\t\tdist: 'dist',\n\t\tfile: (config.component.name || name) + '.js'\n\t});\n\n\tif (config.example) {\n\t\tif (config.example === true) config.example = {};\n\n\t\tdefaults(config.example, {\n\t\t\tsrc: 'example/src',\n\t\t\tdist: 'example/dist',\n\t\t\tfiles: ['index.html'],\n\t\t\tscripts: ['example.js'],\n\t\t\tless: ['example.less']\n\t\t});\n\t}\n\n\trequire('./tasks/bump')(gulp, config);\n\trequire('./tasks/dev')(gulp, config);\n\trequire('./tasks/dist')(gulp, config);\n\trequire('./tasks/release')(gulp, config);\n\n\tvar buildTasks = ['build:dist'];\n\tvar cleanTasks = ['clean:dist'];\n\n\tif (config.component.lib) {\n\t\trequire('./tasks/lib')(gulp, config);\n\t\tbuildTasks.push('build:lib');\n\t\tcleanTasks.push('clean:lib');\n\t}\n\n\tif (config.example) {\n\t\trequire('./tasks/examples')(gulp, config);\n\t\tbuildTasks.push('build:examples');\n\t\tcleanTasks.push('clean:examples');\n\t}\n\n\tgulp.task('build', buildTasks);\n\tgulp.task('clean', cleanTasks);\n}", "loadTask(oldTasks) {\n oldTasks.forEach((task) => {\n this.tasks.push(task);\n });\n }", "load(state, taskGroup) {\n state.tasks = [].concat(taskGroup);\n }", "async function loadTaksFromServer() {\n const taskList = await getTasks();\n taskList.forEach((task) => addNewTaskToTheDOM(task));\n}", "readTasks(vantage) {\n const taskDirectory = path.resolve(__dirname + '/cli/tasks');\n const taskFiles = fs.readdirSync(taskDirectory);\n\n const stream = process.stdout;\n\n taskFiles.forEach((file, index) => {\n if (stream.isTTY){\n stream.clearLine();\n stream.cursorTo(0);\n stream.write(`Loading (${index+1}/${taskFiles.length}) ` +chalk.green(\"\\u2713\".repeat(index)) + ' ' + file);\n }\n\n this.commandRegistry.push(require(path.resolve(taskDirectory, file)).task);\n });\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Install a message filter for a message handler. A message filter is invoked before the message handler processes a message. If the filter returns `true` from its [[filterMessage]] method, no other filters will be invoked, and the message will not be delivered. The most recently installed message filter is executed first.
function installMessageFilter(handler, filter) { getDispatcher(handler).installMessageFilter(filter); }
[ "function installMessageFilter(handler, filter) {\n\t getDispatcher(handler).installMessageFilter(filter);\n\t}", "function installMessageFilter(handler, filter) {\n getDispatcher(handler).installMessageFilter(filter);\n }", "function installMessageFilter(handler, filter) {\r\n getDispatcher(handler).installMessageFilter(filter);\r\n}", "function installMessageHook(handler, hook) {\n // Lookup the hooks for the handler.\n var hooks = messageHooks.get(handler);\n // Bail early if the hook is already installed.\n if (hooks && hooks.indexOf(hook) !== -1) {\n return;\n }\n // Add the hook to the end, so it will be the first to execute.\n if (!hooks) {\n messageHooks.set(handler, [hook]);\n }\n else {\n hooks.push(hook);\n }\n }", "function installMessageHook(handler, hook) {\r\n // Lookup the hooks for the handler.\r\n var hooks = messageHooks.get(handler);\r\n // Bail early if the hook is already installed.\r\n if (hooks && hooks.indexOf(hook) !== -1) {\r\n return;\r\n }\r\n // Add the hook to the end, so it will be the first to execute.\r\n if (!hooks) {\r\n messageHooks.set(handler, [hook]);\r\n }\r\n else {\r\n hooks.push(hook);\r\n }\r\n }", "function installMessageHook(handler, hook) {\r\n\t // Remove the message hook if it's already installed.\r\n\t removeMessageHook(handler, hook);\r\n\t // Install the hook at the front of the list.\r\n\t var next = hooks.get(handler) || null;\r\n\t hooks.set(handler, { next: next, hook: hook });\r\n\t }", "onFilter(handler) {\n this.filterChain.push(handler);\n return this;\n }", "function _beforeFilter(isGlobal, server, msg, session, cb) {\n let fm;\n if (isGlobal) {\n fm = server.globalFilterService;\n } else {\n fm = server.filterService;\n }\n\n if (fm) {\n fm.beforeFilter(msg, session, cb);\n } else {\n utils.invokeCallback(cb);\n }\n}", "function safeFilter(filter, handler, msg) {\n\t var result = false;\n\t try {\n\t result = filter.filterMessage(handler, msg);\n\t }\n\t catch (err) {\n\t console.error(err);\n\t }\n\t return result;\n\t}", "function safeFilter(filter, handler, msg) {\r\n var result = false;\r\n try {\r\n result = filter.filterMessage(handler, msg);\r\n }\r\n catch (err) {\r\n console.error(err);\r\n }\r\n return result;\r\n}", "function setup_spam_filter() {\n let [folder, spamSet, hamSet] = make_folder_with_sets([\n {count: 1, body: SPAM_BODY}, {count: 1, body: HAM_BODY}]);\n yield wait_for_message_injection();\n yield wait_for_gloda_indexer([spamSet, hamSet]);\n\n let junkPlugin =\n Cc[\"@mozilla.org/messenger/filter-plugin;1?name=bayesianfilter\"]\n .getService(Ci.nsIJunkMailPlugin);\n\n let junkListener = {\n onMessageClassified: function() {\n async_driver();\n }\n };\n\n // ham\n mark_action(\"actual\", \"marking message as ham\", [hamSet.getMsgHdr(0)]);\n junkPlugin.setMessageClassification(hamSet.getMsgURI(0),\n null, // no old classification\n junkPlugin.GOOD,\n null,\n junkListener);\n yield false;\n\n // spam\n mark_action(\"actual\", \"marking message as spam\", [spamSet.getMsgHdr(0)]);\n junkPlugin.setMessageClassification(spamSet.getMsgURI(0),\n null, // no old classification\n junkPlugin.JUNK,\n null,\n junkListener);\n yield false;\n}", "function removeMessageFilter(handler, filter) {\r\n getDispatcher(handler).removeMessageFilter(filter);\r\n}", "function removeMessageFilter(handler, filter) {\n\t getDispatcher(handler).removeMessageFilter(filter);\n\t}", "function removeMessageFilter(handler, filter) {\n getDispatcher(handler).removeMessageFilter(filter);\n }", "function removeMessageFilter(handler, filter) {\n getDispatcher(handler).removeMessageFilter(filter);\n}", "function wrapArgs(generateFilter) {\n return function wrapArgs() {\n // Parse arguments\n if (arguments.length < 1) throw new Error(\"Handler must be provided\");\n var args = Array.prototype.slice.call(arguments);\n var handler = args.pop();\n if (!utils.isFunc(handler)) throw new Error(\"Handler must be a function\");\n\n // Register handler\n var filter = generateFilter.call(this, args);\n this.handlers.push(function (msg, reply, next) {\n if (!filter.call(this, msg)) return next();\n return handler.call(this, msg, reply, next);\n });\n };\n}", "function dispatchMessage(event) {\n\t\tvar processed = false,\n\t\t\torigin = event.origin,\n\t\t\tmessage,\n\t\t\trecipients,\n\t\t\turi,\n\t\t\tfn,\n\t\t\torigins,\n\t\t\tl,\n\t\t\ti;\n\n\t\tmessage = event.data;\n\n\t\t// If message is ignored, just stop right away\n\t\tfor (i = 0, l = ignoredMessagePrefixes.length; i < l; i += 1) {\n\t\t\tif (message.indexOf(ignoredMessagePrefixes[i]) === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// If message is remote ready, call callback and stop dispatchin\n\t\tif (message.indexOf(MESSAGE_REMOTE_READY) === 0) {\n\t\t\turi = message.slice(MESSAGE_REMOTE_READY.length);\n\t\t\tif (readyCallbackByUri[uri]) {\n\t\t\t\treadyCallbackByUri[uri]();\n\t\t\t\tdelete readyCallbackByUri[uri];\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// Try to decode message\n\t\ttry {\n\t\t\tmessage = decodeMessage(event.data);\n\t\t} catch (err) {\n\t\t\tif (err.type !== 'MessageDecodingError') {\n\t\t\t\t// #ifdef DEBUG\n\t\t\t\tlog(WARN, 'Message decoding error', message);\n\t\t\t\t// #endif\n\t\t\t\tthrow err;\n\t\t\t} else {\n\t\t\t\t// Report messages which does not match ingored list\n\t\t\t\t// #ifdef DEBUG\n\t\t\t\tlog(INFO, 'iwc.pipe.MessageDispatcher', 'ignored wrongly formatted message: ', message);\n\t\t\t\t// #endif\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// #ifdef DEBUG\n\t\tlog(DEBUG, 'iwc.pipe.MessageDispatcher', 'at ' + localContextUri + ' dispatching: ', message);\n\t\t// #endif\n\n\t\trecipients = localRecipients[message.name];\n\t\tif (recipients) {\n\t\t\tfor (i = 0, l = recipients.length; i < l; i += 1) {\n\t\t\t\tfn = recipients[i].fn;\n\t\t\t\torigins = recipients[i].origins;\n\t\t\t\t// Execute handler it origins limit is not implied, or\n\t\t\t\t// it is '*'\n\t\t\t\t// it is string equal to origin, or\n\t\t\t\t// array having event orgin\n\t\t\t\t// or functions which returns true when fed with message origin\n\t\t\t\tif ((!origins) || (origins === '*') ||\n\t\t\t\t\t\t((typeof origins === 'string') && origins === origin) ||\n\t\t\t\t\t\t(origins.indexOf && (origins.indexOf(origin) >= 0)) ||\n\t\t\t\t\t\t((typeof origins === 'function') && origins(origin))\n\t\t\t\t\t\t) {\n\t\t\t\t\tfn(message.data, event);\n\t\t\t\t\t// #ifdef DEBUG\n\t\t\t\t\tprocessed = true;\n\t\t\t\t\t// #endif\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// #ifdef DEBUG\n\t\tif (!processed) {\n\t\t\tlog(WARN, 'iwc.pipe.MessageDispatcher', 'at ' + localContextUri + 'did not found allowed recipient for: ', event.data);\n\t\t}\n\t\t// #endif\n\t}", "function applyFilters( /* filter, filtered arg, arg2, ... */\n ) {\n var args = Array.prototype.slice.call(arguments);\n var filter = args.shift();\n if (typeof filter === 'string') {\n return _runHook('filters', filter, args);\n }\n return MethodsAvailable;\n }", "filter(player, message) {\n // (1) Force-recapitalize the sentence if it's longer than a certain length, and the ratio\n // between lower-case and upper-case characters exceeds a defined threshold.\n if (message.length > kRecapitalizeMinimumMessageLength &&\n this.determineCaseRatio(message) > kRecapitalizeMinimumCapitalRatio) {\n message = this.recapitalize(message);\n }\n\n // (2) Apply each of the replacements to the |message|, to remove any bad words that may be\n // included in it with alternatives. Replacements will maintain case.\n for (const replacement of this.replacements_) {\n if (!replacement.expression.test(message))\n continue;\n \n if (!replacement.after.length) {\n player.sendMessage(Message.COMMUNICATION_FILTER_BLOCKED);\n return null;\n }\n\n message = this.applyReplacement(message, replacement);\n }\n\n // (3) Cap the length of a message to a determined maximum, as messages otherwise would\n // disappear into the void with no information given to the sending player at all.\n const maximumLength = kMaximumMessageLength - player.name.length;\n if (message.length > maximumLength)\n message = this.trimMessage(message, maximumLength);\n\n return message;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Restricted route to update a prescription
editPrescription(data, id) { axios(`${this.base}/prescriptions/${id}`, { method: 'PUT', headers: { Authorization: `Bearer ${TokenService.read()}` }, data }) .then(response => { console.log('Prescription updated successfully! New Data:', response.data); this.setState(prevState => { prevState.prescriptions = response.data; return prevState; }); console.log('Prescription edited successfully! prescription state:', this.state.prescriptions); }) .catch(error => console.log(`Error: ${error}`)); }
[ "function editPublication(req, res) {\r\n var userId = req.decoded.uid\r\n var id = req.params.id\r\n var userPublicaiton = {\r\n id: id,\r\n developer_id: userId,\r\n title: req.body.cTitle,\r\n year: req.body.cYear,\r\n link: req.body.cLink\r\n }\r\n dashboardService.editPublication(userPublicaiton).then((result) => {\r\n res.json(result)\r\n }).catch((err) => {\r\n res.json(err)\r\n })\r\n}", "onUpdateInscription() {\n\n let param = {'ID_inscription': this.props.inscription.ID_inscription,\n 'ID_depart': this.state.ID_depart,\n 'ID_weapon': this.state.ID_weapon,\n 'ID_category' : this.state.ID_category};\n\n this.inscription.updateInscription(param, () => this.props.update());\n this.props.handleClose(\"open_edit\");\n }", "static editSupplier(req, res) {\n\t\tlet idNum = parseInt(req.params.id.split('')[1]);\n\t\tconsole.log('idNum is ' + idNum);\n\t\tlet obj = {\n\t\t\tname: req.body.name,\n\t\t\tkota: req.body.kota\n\t\t};\n\t\tSupplier.update(obj, {\n\t\t\twhere: {\n\t\t\t\tid: idNum\n\t\t\t}\n\t\t})\n\t\t\t.then((data) => {\n\t\t\t\tconsole.log('succesfully updated Supplier');\n\t\t\t\tres.redirect('/suppliers');\n\t\t\t})\n\t\t\t.catch((err) => {\n\t\t\t\tconsole.log(err);\n\t\t\t});\n\t}", "function updateGuest(req, res) {\n\n}", "function addPrescriptionToDB(req, res, newPrescription){\n Prescription.AddPrescription(newPrescription, function(err, prescription){\n if(err)\n req.flash(\"error_msg\", \"Upload failed, please try again.\");\n else {\n req.flash(\"success_msg\", \"Upload Success!\");\n console.log(prescription);\n }\n res.redirect(\"/mastodon/viewPrescriptions\");\n });\n}", "editSubscriptionSuccess() {}", "function updateRental(req, res) {\n res.status(200).send(rentalService.getById(req.params.rentalId));\n}", "updatePremium(req, res, next) {\n var stripe = require(\"stripe\")(\"sk_test_NY4J2HqXNTRjHh9rO6YUmVS800aqpvThCF\");\n\n // Token is created using Checkout or Elements!\n // Get the payment token ID submitted by the form:\n const token = req.body.stripeToken; // Using Express\n\n const charge = stripe.charges.create({\n amount: 999,\n currency: 'usd',\n description: 'Example charge',\n source: token\n });\n\n userQueries.updateUserRole(req.params.id, 1, (err, user) => {\n if (err || user == null) {\n req.flash(\"notice\", \"No user found matching that ID.\");\n res.redirect(404, `/users/${req.params.id}`);\n } else {\n console.log(\"USER ROLE\", user);\n req.flash(\"notice\", \"Welcome to Blocipedia Premium!\");\n res.redirect(`/users/${req.params.id}`);\n }\n });\n\n }", "function update(req, res){\n console.log(req.body._id);\n db.Scripture.findOne({_id: req.body._id}, function(err, foundScripture){\n if(err){console.log(err);}\n console.log(foundScripture);\n foundScripture.scripture = req.body.scripture;\n foundScripture.verse = req.body.verse;\n foundScripture.save(function(err, savedScripture){\n if(err){console.log('saved failed!');}\n });\n /* TODO: generally we will want to send a response in the form of json, specifcally: res.json() -jc */\n res.send(foundScripture);\n });\n}", "function editAdmit() {\n var testAdmit = {\n KEYID: $scope.currentAdmitKEYID,\n PATSTATUS: 'A',\n SOCDATE: $scope.M0030_START_CARE_DT\n };\n dataService.edit('admission', testAdmit).then(function(response){\n console.log(response);\n });\n //edit patient table to udpate PATSTATUS from 'P' to 'A'\n dataService.edit('patient', {'KEYID': $scope.patient.KEYID, 'PATSTATUS': 'A'}).then(function(response){\n console.log(response);\n //reset patient\n dataService.get('patient', {'KEYID': patientService.get().KEYID}).then(function(data) {\n var updatedPatient = data.data[0];\n patientService.set(updatedPatient);\n });\n });\n }", "update(request, response){\n const which = request.params._id;\n Quote.findByIdAndUpdate(which, request.body)\n .then(() => {\n console.log(quote);\n response.redirect('/quotes/new');\n })\n .catch(error => {\n console.log(error);\n response.redirect(`/quotes/edit/${which}`)\n })\n }", "function updateApartment(req, res) {\n res.status(200).send(apartmentService.getById(req.params.apartmentId));\n}", "updateSupplier(params) {\r\n return Api().post('/updatesupplier', params)\r\n }", "async function assignprescription(id , pid){\n if(id === undefined || pid === undefined){\n throw 'input is empty';\n }\n if(id.constructor != ObjectID){\n if(ObjectID.isValid(id)){\n id = new ObjectID(id);\n }\n else{\n throw 'Id is invalid!(in data/reservation.assignprescription)'\n }\n }\n\n const ptarget = await prescriptionf.getbyid(pid).catch(e => { throw e });\n const reservationCollections = await reservations();\n const target = await this.getbyid(id).catch(e => { throw e });\n const data = {\n $set:{\n _id: id,\n patientid: target.patientid,\n doctorid: target.doctorid,\n date: target.date,\n roomid: target.roomid,\n days: target.days,\n prescriptionid: pid,\n status: target.status\n }\n\n }\n\n const updatedata = await reservationCollections.update( { _id: id } , data);\n if(updatedata.modifiedCount === 0) throw 'Update fail!';\n\n return await this.getbyid(id);\n}", "update(puppy) {\n return http.put('/editPuppy', puppy); // pass the id??? Embedded in the puppy object\n }", "function people_edit(req,res){\n res.status(200).send({message:'EDITA un documento en la coleccion; Verb http PUT'}); \n}", "static async editSpecial(uuid, data) {\n await this.request(`specials/${uuid}`, data, \"patch\")\n }", "function editDoc(){\n\tconData.docSub.unsubscribe();\n\tconData.lockSub = sub('user', 'editMode', handleLockIncome);\n\tvar editDoc = JSON.stringify({'docId': currDocId});\n\tconData.client.send(\"/app/editDoc\", {challenge: getHash()}, editDoc);\n}", "function editAdmit() {\n dataService.get('admission', {'PATKEYID':$scope.patient.KEYID}).then(function(data){\n var admitArr = data.data;\n var currentAdmit = admitArr.slice(-1).pop();\n $scope.currentAdmitKEYID = currentAdmit.KEYID;\n\n //update admit object\n var updateAdmit = {\n KEYID: $scope.currentAdmitKEYID,\n PATSTATUS: 'D',\n DCDATE: $filter(\"date\")($scope.M0906_DC_TRAN_DTH_DT, 'yyyy/MM/dd'),\n DCREASON: $scope.DCREASON\n };\n console.log(updateAdmit);\n dataService.edit('admission', updateAdmit).then(function(response) {\n console.log(response);\n });\n });\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
newroom: Called from the Room list view. Looks at the roomname form value and requests the database to create a new room by this name.
function newroom() { $("#warning2").html(""); var tmproomname = document.roomform.roomname.value; if (tmproomname.search(/[^a-zA-Z0-9]/) != -1 || tmproomname.length > 16) { $("#warning2").html("Viallinen huoneen nimi."); return; } var roomname = tmproomname; if (player != "" && passcode != "" && roomname != "") { var geturl = "/sanaruudukko/rest/sr/process?func=newroom&player=" + player + "&passcode=" + passcode + "&roomname=" + roomname; $.ajax({ cache: false, dataType : 'xml', type : 'GET', url : geturl, success : function(data) { startRoom(data); }, }); } }
[ "async function newRoom() {\n let room;\n try {\n room = await rest.post(`${url}/rooms`, {});\n if (room.error) throw new Error(room.message);\n } catch (error) {\n showModalOnScreen(true, error.message);\n return;\n }\n setShowRoom(true);\n setRoomID(room.idRoom);\n setHash(room.hashP1);\n }", "function createRoom(){\r\n\t\tvar room = $('#addroom-popup .input input').val().trim();\r\n\t\tif(room && room.length <= ROOM_MAX_LENGTH && room != currentRoom){\r\n\t\t\t\r\n\t\t\t// show room creating message\r\n\t\t\t$('.chat-shadow').show().find('.content').html('Creating room: ' + room + '...');\r\n\t\t\t$('.chat-shadow').animate({ 'opacity': 1 }, 200);\r\n\t\t\t\r\n\t\t\t// unsubscribe from the current room\r\n\t\t\tsocket.emit('unsubscribe', { room: currentRoom });\r\n\r\n\t\t\t// create and subscribe to the new room\r\n\t\t\tsocket.emit('subscribe', { room: room });\r\n\t\t\tAvgrund.hide();\r\n\t\t} else {\r\n\t\t\tshake('#addroom-popup', '#addroom-popup .input input', 'tada', 'yellow');\r\n\t\t\t$('#addroom-popup .input input').val('');\r\n\t\t}\r\n\t}", "function handleNewRoom(){\r\n var room = document.getElementById('roomName').value;\r\n createRoom(room);\r\n}", "newRoom() {\n // console.log(\"RoomList: newRoom: Making a new room.\");\n this.openModal([ 'roomName' ]);\n }", "function addRoom() {\n\tvar roomName = $('#add-room-name').val();\n\tvar posting = $.post(roomsAddURI, {\n\t\tname : roomName\n\t});\n\tposting.done(function(data) {\n\t\t//Add room via rest api then join it\n\t\tvar room = JSON.parse(JSON.stringify(data));\n\t\tjoinRoom(room.roomId, true);\n\t});\n}", "function addRoom() {\n /*\n TO-DO: make sure each question is answered so that there are no nulls\n */\n const url = getRoute(\"/rooms\");\n\n var data = {\n roomNumber: parseInt(document.getElementById(\"roomNumberText\").value),\n roomTypeId: getRoomTypeId('room')\n }\n\n /*\n TO-DO: we might want to add functionality to make sure that we can't have two rooms in\n the table with the same room number\n */\n \n addItem(url, data);\n}", "function createNewRoom() {\n console.log(nextRoomId);\n createRoomDOM(nextRoomId);\n signalRoomCreated(nextRoomId);\n\n nextRoomId++;\n}", "function createNewRoom() {\r\n // Generate room id.\r\n const newID = uuidv4().substring(0, 8);\r\n\r\n // Join room\r\n socket.join(newID);\r\n\r\n // Update corressponding object in usersArray\r\n updateUserRoom(socket, newID);\r\n\r\n // Send room data to socket\r\n io.to(socket.id).emit(\"roomData\", {\r\n roomId: newID,\r\n });\r\n }", "function addRoom(roomName) {\n var room = Room();\n room.init(roomName);\n rooms.push(room);\n }", "function createNewRoom(){\n\tvar newRoom = GameMaster._createNewRoom(\n\t\tfalse, //is this game to be pinned at the top of the games listing\n\t\t'Space Boy',//name to be displayed\n\t\t100, //the maximum number of players\n\t\t1, //the minimum buyin in nim sats (10n)\n\t\tfalse, //mobile compatible?\n\t\t'MMORPG island based flying game.' //desc.\n\t);\n\treturn newRoom;\n}", "function evtHandlerCreateRoom(roomName) {\n try {\n chatRoom[roomName] = roomName;\n socket.sockets.emit(\"newChatRoom\", roomName);\n } catch (err) {\n console.log(err);\n }\n }", "function recordRoom(name) {\n checkIfRoomExists(name, function() {\n conn.query(\"INSERT INTO room VALUES($1, $2)\", [null, name], function(error, data) {\n if (error != null) console.error(\"recordRoom: \" + error);\n });\n existingRooms.add(name);\n });\n}", "addRoom(){\n\t\tvar newRoom = new Room(this);\n\t\tthis.rooms.push(newRoom);\n\t}", "function createRoom (roomName) {\n\tconsole.log('creating room: ' + roomName);\n\t\n\tvar options = {\n\t\turl:\"https://service.xirsys.com/room\",\n\t\tmethod:\"POST\",\n\t\tform: {\n\t\t\t'ident': identity,\n\t\t\t'secret': apikey,\n\t\t\t'domain': domain,\n\t\t\t'application': application,\n\t\t\t'room': roomName\n\t\t\t}\n\t};\n\trequest(options, function (err, response, body) {\n\t\tif (!err && response.statusCode == 201) {\n\t\t\tconsole.log(body+\"request response\")\n\t\t}\n\t\telse if (err) {\n\t\t\tconsole.log('Something bad happened\\n' + body + '\\n' + err);\n\t\t} else {\n\t\t\tconsole.log('Something bad happened\\n' + body + '\\n' + response.statusCode);\n\t\t}\n\t});\n}", "function addRoom(name, announce){\r\n\t\t// clear the trailing '/'\r\n\t\tname = name.replace('/','');\r\n\r\n\t\t// check if the room is not already in the list\r\n\t\tif($('.chat-rooms ul li[data-roomId=\"' + name + '\"]').length == 0){\r\n\r\n\t\t\t// create the rooms meta fields\r\n\t\t\troomMeta[name] = Array();\r\n\r\n\t\t\t$.tmpl(tmplt.room, { room: name }).appendTo('.chat-rooms ul');\r\n\t\t\t// if announce is true, show a message about this room\r\n\t\t\tif(announce){\r\n\t\t\t\tinsertMessage(serverDisplayName, 'The room `' + name + '` created...', true, false, true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function createRooms(room) {\n var room_data = {\n _id: new Date().toISOString(),\n room: room\n };\n db.put(room_data, function callback(err, result) {\n if (!err) {\n console.log(\"Successfully added a room!\");\n }\n });\n}", "function cmd_new_room(roomNr) {\n getEgo().hide();\n for (var i = 0; i < objects.length; i++) {\n var obj = objects[i];\n if (obj) {\n obj.ANIMATED = false;\n obj.DRAWN = false;\n obj.UPDATE = true;\n obj.step_time = 1;\n obj.step_time_count = 1;\n obj.cycle_time = 1;\n obj.cycle_time_count = 1;\n obj.step_size = 1;\n obj.observe_blocks = true;\n }\n }\n cmd_unanimate_all();\n cmd_player_control();\n // fix for sq1 arcada control room priority\n cmd_release_priority(0);\n cmd_unblock();\n AGI.horizon = 36;\n cmd_assignv(var_prev_room_no, var_room_no);\n cmd_assignn(var_room_no, roomNr);\n cmd_assignn(var_object_touching_edge, 0);\n cmd_assignn(var_object_edge_code, 0);\n cmd_assignn(var_ego_view_no, getEgo().id);\n cmd_reset(flag_input_received);\n cmd_load_logics(roomNr);\n IO.currentRoomLogics = {};\n\n // Reposition ego in the new room\n var ego = getEgo();\n switch (vars[var_ego_edge_code]) {\n case 1:\n ego.y = AGI.screen_height - 1;\n break;\n case 2:\n ego.x = 0;\n break;\n case 3:\n ego.y = AGI.horizon + 1;\n break;\n case 4:\n ego.x = AGI.screen_width - ego.width();\n break;\n }\n cmd_assignn(var_ego_edge_code, 0);\n cmd_set(flag_new_room);\n // used for msg displaying\n AGI.current_room = roomNr;\n AGI.new_room = roomNr;\n AGI.break_all_logics = true;\n Sarien.updateAddressBar(roomNr);\n cmd_graphics();\n AGI.highestObjIndex = 1;\n}", "function createRoom() {\n socket.emit('Add Room', questionType, $('#player-username').html());\n}", "function requestCreateRoom() {\r\n if (inputRoomName.value()) {\r\n socket.emit(\"createRoomRequest\", inputRoomName.value(), (response) => {\r\n if(!response){\r\n errorNameUsed(inputRoomName.value());\r\n } else{\r\n createUserRoom(inputRoomName.value());\r\n }\r\n });\r\n currentRoom = inputRoomName.value();\r\n }\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
endregion Sprite_Icon region Sprite_Face A sprite that displays a single face.
function Sprite_Face() { this.initialize(...arguments); }
[ "function drawFace() {\n penUp();\n moveTo (260, 336);\n penRGB (0, 0, 0, 1);\n dot (1);\n penUp();\n moveTo (274, 336);\n dot (1);\n penUp();\n moveTo(260, 343);\n penWidth (1);\n penDown();\n turnLeft(180);\n arcLeft(180, 8);\n penUp();\n}", "displayFace() {\n\t\tthis.location.top_left_x = parseInt(\n\t\t\tMath.random() * (screen.window_width - FACE_SIZE.width - 20)\n\t\t);\n\t\tthis.location.top_left_y = parseInt(\n\t\t\tMath.random() * (screen.window_height - FACE_SIZE.height - 20)\n\t\t);\n\t\tthis.location.bottom_right_x = this.location.top_left_x + FACE_SIZE.width;\n this.location.bottom_right_y = this.location.top_left_y + FACE_SIZE.height;\n\t\tthis.mid_point.x_loc = this.location.top_left_x + FACE_SIZE.width / 2 + 10;\n\t\tthis.mid_point.y_loc = this.location.top_left_y + FACE_SIZE.height / 2 + 10;\n\n\t\t// set face at location\n\t\tface_asset.style.marginLeft = this.location.top_left_x + \"px\";\n\t\tface_asset.style.marginTop = this.location.top_left_y + \"px\";\n\t}", "function ReferenceFace() {\n this.i1, this.i2;\n // int\n this.v1, this.v2;\n // v\n this.normal = Vec2.zero();\n this.sideNormal1 = Vec2.zero();\n this.sideOffset1;\n // float\n this.sideNormal2 = Vec2.zero();\n this.sideOffset2;\n}", "function ReferenceFace() {\n this.i1, this.i2; // int\n this.v1, this.v2; // v\n this.normal = Vec2.zero();\n this.sideNormal1 = Vec2.zero();\n this.sideOffset1; // float\n this.sideNormal2 = Vec2.zero();\n this.sideOffset2; // float\n}", "function drawFace(faceAnnotations, imgObj, context) {\n for (var i = 0; i < faceAnnotations.length; i++) {\n var annotation = faceAnnotations[i];\n\n drawRectangle(annotation.boundingPoly.vertices, imgObj, context);\n\n // Part that encloses only the skin part of the face\n drawRectangle(annotation.fdBoundingPoly.vertices, imgObj, context);\n\n drawCircles(annotation.landmarks, imgObj, context);\n }\n}", "get face () {\n return new IconData(0xe87c,{fontFamily:'MaterialIcons'})\n }", "function drawFace () {\n const center = $('body').width() / 2;\n drawCircle(center - 165 , 100, 30);\n drawCircle(center - 165, 100, 5);\n drawCircle(center + 165, 100, 30);\n drawCircle(center + 165, 100, 5);\n drawHalfCircle(center, 200, 200, false);\n}", "getFaceName(){\n return this.face;\n }", "function getFaceImage() {\n\tvar img_id = TILE_IMAGES.length + BORDER_IMAGES.length + 10;\n\tif (grid.is_win()) {\n\t\tif (!face_pressed) {\n\t\t\treturn IMAGES[img_id];\n\t\t} else {\n\t\t\treturn IMAGES[img_id+1];\n\t\t}\n\t} else if (grid.is_loss()) {\n\t\tif (!face_pressed) {\n\t\t\treturn IMAGES[img_id+2];\n\t\t} else {\n\t\t\treturn IMAGES[img_id+3];\n\t\t}\n\t} else if (board_pressed) {\n\t\treturn IMAGES[img_id+4];\n\t} else {\n\t\tif (!face_pressed) {\n\t\t\treturn IMAGES[img_id+5];\n\t\t} else {\n\t\t\treturn IMAGES[img_id+6];\n\t\t}\n\t}\n}", "function Face() {\n this.id = -1;\n this.normal = new THREE.Vector3();\n this.area = 0.0;\n this.centroid = undefined;\n this.selected = false;\n\n this.halfedge = undefined;\n\n this.removed = undefined;\n}", "function _findFace()\n{\n misty.Set(\"findFace\", true);\n misty.ChangeLED(0, 0, 255);\n misty.DisplayImage(\"e_DefaultContent.jpg\");\n}", "function drawSmileFace() {\n\tdrawHead();\n\tdrawEyes();\n\tdrawSmile();\n}", "function Face(dna_, x_, y_) {\n this.rolloverOn = false; // Are we rolling over this face?\n this.dna = dna_; // Face's DNA\n this.x = x_; // Position on screen\n this.y = y_;\n this.wh = 70; // Size of square enclosing face\n this.fitness = 1; // How good is this face?\n // Using java.awt.Rectangle (see: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Rectangle.html)\n this.r = new Rectangle(this.x-this.wh/2, this.y-this.wh/2, this.wh, this.wh);\n\n // Display the face\n this.display = function() {\n // We are using the face's DNA to pick properties for this face\n // such as: head size, color, eye position, etc.\n // Now, since every gene is a floating point between 0 and 1, we map the values\n var genes = this.dna.genes;\n var r = map(genes[0],0,1,0,70);\n var c = color(genes[1],genes[2],genes[3]);\n var eye_y = map(genes[4],0,1,0,5);\n var eye_x = map(genes[5],0,1,0,10);\n var eye_size = map(genes[5],0,1,0,10);\n var eyecolor = color(genes[4],genes[5],genes[6]);\n var mouthColor = color(genes[7],genes[8],genes[9]);\n var mouth_y = map(genes[5],0,1,0,25);\n var mouth_x = map(genes[5],0,1,-25,25);\n var mouthw = map(genes[5],0,1,0,50);\n var mouthh = map(genes[5],0,1,0,10);\n\n // Once we calculate all the above properties, we use those variables to draw rects, ellipses, etc.\n push();\n translate(this.x, this.y);\n noStroke();\n\n // Draw the head\n fill(c);\n ellipseMode(CENTER);\n ellipse(0, 0, r, r);\n\n // Draw the eyes\n fill(eyecolor);\n rectMode(CENTER);\n rect(-eye_x, -eye_y, eye_size, eye_size);\n rect( eye_x, -eye_y, eye_size, eye_size);\n\n // Draw the mouth\n fill(mouthColor);\n rectMode(CENTER);\n rect(mouth_x, mouth_y, mouthw, mouthh);\n\n // Draw the bounding box\n stroke(0.25);\n if (this.rolloverOn) fill(0, 0.25);\n else noFill();\n rectMode(CENTER);\n rect(0, 0, this.wh, this.wh);\n pop();\n\n // Display fitness value\n textAlign(CENTER);\n if (this.rolloverOn) fill(0);\n else fill(0.25);\n text('' + floor(this.fitness), this.x, this.y+55);\n }\n\n this.getFitness = function() {\n return this.fitness;\n }\n\n this.getDNA = function() {\n return this.dna;\n }\n\n // Increment fitness if mouse is rolling over face\n this.rollover = function(mx, my) {\n if (this.r.contains(mx, my)) {\n this.rolloverOn = true;\n this.fitness += 0.25;\n } else {\n this.rolloverOn = false;\n }\n }\n}", "function findFaceName(_face) {\n\n\tif(_face==\"facetal\") return faces[61];\n\tif(typeof _face != \"number\") _face = parseInt(_face);\n\n\tif(isNaN(_face) || _face < 1 || _face > faces.length-1) return \"unknown\";\n\t\n\treturn faces[_face];\n\n\t}", "function drawFace() {\n // eyes\n draw(\"O\", 300, 140);\n draw(\"O\", 400, 140);\n // mouth\n draw(\"O\", 350, 310);\n}", "function face(path, features, name){\n\tthis.path = path;\n\tthis.features = features;\t\n\tthis.name = name;\n}", "function sizeFace(face) {\n var scale = PARENT_FACE_WIDTH_1 / face.width;\n var marginLeft = face.x * scale;\n var marginTop = face.y * scale;\n\n imageFace1.\n css('margin-left', -(marginLeft)).\n css('margin-top', -(marginTop)).\n css('transform', 'scale(' + scale + ')');\n\n var scale = PARENT_FACE_WIDTH_2 / face.width;\n var marginLeft = face.x * scale;\n var marginTop = face.y * scale;\n\n imageFace2.\n css('margin-left', -(marginLeft)).\n css('margin-top', -(marginTop)).\n css('transform', 'scale(' + scale + ')');\n }", "function Face()\n {\n var normal_;\n var p0_;\n var p1_;\n var p2_;\n var center_;\n }", "function Face(a,b,c){\n this.a = a;\n this.b = b;\n this.c = c;\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds an image size inside a category
function findImage(width, height, category) { const cat = categories[category] if(!cat) return null return cat.find(e => { if(e.width == width && e.height == height) return e }) }
[ "getImageDimensions(url) {\n\t\treturn probe(url);\n\t}", "function getScaledDimensions(arg){\n\n var feats = null;\n\n for(var idx = 0; idx < gImageStats.length; ++idx){\n if(gImageStats[idx].id == arg){\n feats = gImageStats[idx];\n break;\n }\n }\n\n if(feats == null){\n alert(\"No image with this id found!\");\n return { 'width': 'undefined', 'height': 'undefined'};\n }\n\n var width = perc2pix($(window).width(), feats.size.width);\n var height = perc2pix($(window).height(), feats.size.height);\n\n width *= z2mult(feats.position.zPos);\n height *= z2mult(feats.position.zPos);\n\n return { 'width': width, 'height': height};\n}", "function getCategorySize(category) {\n var filterSkill = category.filter(function(item) {\n return item.skillName;\n });\n return filterSkill.length;\n}", "function getDimensionFromSizeCategory(size) \r\n{\r\n switch (size) \r\n {\r\n case \"Small\":\r\n return { \"x\": \"50\", \"y\": \"50\" }\r\n case \"Medium\":\r\n return { \"x\": \"75\", \"y\": \"75\" }\r\n case \"Big\":\r\n return { \"x\": \"100\", \"y\": \"100\" }\r\n case \"Large\":\r\n return { \"x\": \"150\", \"y\": \"150\" }\r\n case \"Huge\":\r\n return { \"x\": \"225\", \"y\": \"225\" }\r\n case \"Gargantuan\":\r\n return { \"x\": \"300\", \"y\": \"300\" }\r\n }\r\n}", "getNewDimensions (url) {\n\n const logoWidth = 448;\n const logoHeight = 120;\n \n console.log(\"url\" + url); // options.image \n const dimensions = this.sizeOf(url); \n const oWidth = dimensions.width\n const oHeight = dimensions.height;\n console.log(\"oWidth: \" + oWidth + \", oHeight: \" + oHeight);\n \n const scale = this.determineScale(oWidth, oHeight, logoWidth, logoHeight); \n console.log(\"scale: \" + scale);\n \n const newWidth = Math.floor(oWidth * scale); \n const newHeight = Math.floor(oHeight * scale); \n console.log(\"newWidth: \" + newWidth + \", newHeight: \" + newHeight);\n \n return {width: newWidth, height: newHeight}; \n }", "function imgsize(){\n\tvar img = get('wcr_imagen');\n\tif(img.naturalWidth) return {wi: img.naturalWidth, hi: img.naturalHeight};\n\n\timg = get('wcr_imagen'+posActual);\n\treturn img ? {wi: img.width, hi: img.height} : {wi:0, hi:0};\n}", "getSize() {\n const sizes = this.layers\n .filter((layer) => layer.src && !isSvg(layer.src))\n .map((layer) => {\n const src = /** @type {HTMLImageElement} */ (layer.src);\n return Math.max(src.width, src.height) * (1 / getScale(layer));\n });\n\n // If all layers are SVG, default to 1024.\n return sizes.length === 0\n ? 1024\n : sizes.reduce((acc, n) => Math.max(acc, n), 0);\n }", "function calculateIndividualImageDimension(jqueryElement) {\n\t\t\t var dimension = null;\n\t\t\t var backgroundImageURL = jqueryElement.css(\"background-image\");\n\t\t\t // Depending on the browser, the URL of the background-image sometimes is padded with extra characters\n\t\t\t backgroundImageURL = backgroundImageURL.replace(\"url(\", \"\", \"gi\");\n\t\t\t backgroundImageURL = backgroundImageURL.replace('\"', '', \"gi\");\n\t\t\t backgroundImageURL = backgroundImageURL.replace('\\\"', '', \"gi\");\n\t\t\t backgroundImageURL = backgroundImageURL.replace(\")\", \"\", \"gi\");\n\n\t\t\t if (backgroundImageURL != \"none\") {\n\t\t\t dimension = getImageDimension(backgroundImageURL);\n\t\t\t }\n\n\t\t\t return dimension;\n\t\t\t }", "function imageSquareDimension(image) {\n return Math.sqrt(image.length);\n}", "function img_size() {\n\tvar margin = gallery_padding*2;\n\t\n $('.image img').css('max-width', window_width - margin).css('max-height', window_height - margin);\n\t\n\tif (window_proportion >= 2.5) {$('.image img').css('max-width', window_width*0.6).css('max-height', '');}\n }", "function getImageDimension(imageURL) {\n\t\t\t var dimension = new Object();\n\t\t\t dimension.width = 0;\n\t\t\t dimension.height = 0;\n\n\t\t\t sizingImageJQuery = jQuery(\"<img style='border:none;margin:0;padding:0;'></img>\");\n\t\t\t sizingImageJQuery.attr(\"src\", imageURL);\n\n\t\t\t _containerJQuery.append(sizingImageJQuery);\n\n\t\t\t dimension.width = sizingImageJQuery.width();\n\t\t\t dimension.height = sizingImageJQuery.height();\n\n\t\t\t sizingImageJQuery.remove();\n\n\t\t\t return dimension;\n\t\t\t }", "get _imageSize() {\n const { layout } = this.props\n const width = (layout.width - SPACING * this._columns) / this._columns\n const height = width * ASPECT_RATIO\n return { width, height }\n }", "selectBestImageVersion(sizes) {\n const best = sizes.sizes.size.find((size) => {\n if (size.label.indexOf('Square') >= 0) {\n return false;\n }\n return size.width >= this.props.config.xParticlesCount;\n }) || sizes.sizes.size[sizes.sizes.size.length - 1];\n return best;\n }", "function selectBest (containerWidth, imageSizes) {\n // stop when the width is larger\n var j = 0;\n while (j < imageSizes.length && imageSizes[j].width < containerWidth) {\n j++;\n }\n // Use the image located at where we stopped\n return imageSizes[j - 1].url;\n }", "_scaleImageToDimension(dimensionToUse, image){\n var widthRatio= image.width/image.height;\n var heightRatio= image.height/image.width;\n var height=image.height>image.width?dimensionToUse: Math.round(heightRatio*dimensionToUse);\n var width= image.width>image.height?dimensionToUse: Math.round(widthRatio*dimensionToUse);\n return {width,height}\n}", "function findImageSize (imagePath, next) {\n\tvar imArgs = [\"-format\", \"%Wx%H\", {type: \"INPUT_FILE\", value: imagePath}];\n\tconst timer = logger.startTimer();\n\n\timageProcessor.processImage(\"identify\", null, imArgs, function(err, stdout) {\n\t\tif (err) {\n\t\t\ttimer.done(\"findImageSize, error: imagePath: \" + imagePath + \", imArgs: \" + JSON.stringify(imArgs));\n\t\t\treturn next(err);\n\t\t} \n\n\t\tvar sizeArray = stdout.trim().split(\"x\");\n \t\tvar newImageSize = {width: parseInt(sizeArray[0]), height: parseInt(sizeArray[1])};\n\n\t\ttimer.done(\"findImageSize, success: imagePath: \" + imagePath + \", imArgs: \" + JSON.stringify(imArgs));\n\t\treturn next(0, newImageSize);\n\t});\n}", "function size(found) {\n return sizes[found] || 1;\n }", "function setImageDimensions() {\n var image = $('#advancedImageContainer').first().find('img')\n smallWidth = image.width();\n largeWidth = smallWidth + 200;\n var maxWidth = image.css('max-width');\n largeWidth = Math.min(largeWidth, maxWidth.replace('px', ''));\n}", "function scootSize(image){\n var imageDiv=image.parent();\n if(imageDiv.is(':first-child')){ \n return (0);//do nothing... the unglamorous thing about is() is no isnot\n }else{\n var hoverDiv = imageDiv.parent().children('.hover');\n var linkDiv = imageDiv.parent().children('.link');\n setPad(image, hoverDiv);\n setPad(image, linkDiv);\n }\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
b. Make a constructor function called `Celsius` that has one property: `celsius`, and two methods `getFahrenheitTemp`, and `getKelvinTemp`.
function Celsius(celsius){ this.celsius = celsius this.getFahrenheitTemp = function(){ return 1.8 * this.celsius + 32 } this.getKelvinTemp = function(){ return this.celsius + 273 } }
[ "function Celsius (celsius) {\n this.celsius = celsius;\n this.getFahrenheit = function(){\n return celsius * 1.8 + 32;\n }\n this.Kelvin = function(){\n return celsius + 273.15;\n }\n}", "function Celsius (celsius) {\n this.celsius = celsius,\n this.getFahrenheitTemp = function() {\n console.log(`It is ${(celsius * 1.8) + 32} degrees in Fahrenheit`)\n }, this.getKelvinTemp = function() {\n console.log(`It is ${Math.floor(celsius + 273.15)} degrees in Kelvin`)\n }\n}", "function Celsius(celsius) {\n this.celsius = celsius;\n this.getFahrenheitTemp = function() {\n let temperature = 1.8 * this.celsius + 32;\n console.log(celsius);\n return temperature;\n };\n this.getKelvinTemp = function() {\n let temperature = this.celsius + 273;\n console.log(celsius);\n return temperature;\n };\n}", "function Celsius (celsius){\n this.celsius = celsius;\n}", "function Celsius(celsius){\n this.celsius = celsius;\n}", "function Celsius(celsius) {\n this.celsius = celsius;\n}", "set temperature(celsius) {\n // F = C * 9.0 / 5 + 32;\n this.fahrenheit = celsius * 9 / 5 + 32; \n }", "function Celsius(valor) {\n \n Temperatura.call(this, valor);\n}", "set temperature(celsius) {\n this.Fahrenheit = celsius*9/5 + 32;\n }", "convertCelsium(temp) {\n const F = Math.round((9 / 5) * temp + 32);\n const K = +(temp + 273.15).toFixed(0);\n return (this.temperature = { F, K });\n }", "set temperature(celsius) {\n this.fahrenheit = (celsius * 9.0) / 5 + 32;\n }", "function TemperatureLogic(v,t){\n\n /*\n Function to perform all conversions within Temperature function.\n All \"to\" functions within Temperature use this function.\n */\n function c(z) {\n return fromCelsiusToType(toCelsius(v,t),z);\n }\n\n /*\n Only used in Temperature's conversion function.\n converts value passed of any Temperature unit into Celsius\n */\n function fromCelsiusToType(val,t){\n switch(t){\n case 'F': return (val * 1.8) + 32;\t\t//Fahrenheit\n case 'K': return val + 273.15;\t\t\t//Kelvin\n case 'R': return (val + 273.15) * 1.8;\t//Rankine\n case 'RE': return val * .8;\t\t\t\t//Reaumur\n default: return val;\t\t\t\t\t//Celsius\n }\n }\n\n /*\n Only used in Temperature's conversion function.\n Converts Celsius value passed into any Temperature unit.\n */\n function toCelsius(val,t){\n switch(t){\n case 'F': return (val - 32) / 1.8;\t\t\t\t//Fahrenheit\n case 'K': return val - 273.15;\t\t\t\t\t//Kelvin\n case 'R': return (val - 491.67) * (5.0 / 9.0);\t//Rankine\n case 'RE': return val * 1.25;\t\t\t\t\t//Reaumur\n default: return val;\t\t\t\t\t\t\t//Celsius\n }\n }\n\n /*\n \"to\" Functions\n\n Ex 1: var bar = foo.toFahrenheit; //Variable \"bar\" being of type UnitOf.Temperature with \"from\" value already assigned\n Ex 2: var foobar = UnitOf.Temperature.fromCelsius(1.25).toFahrenheit; //One line conversion from 1.25 Celsius to Fahrenheit\n */\n return {\n getValuePassed:v,\n getTypeConstantPassed:t,\n toCelsius:c('C'),\n toFahrenheit:c('F'),\n toKelvin:c('K'),\n toRankine:c('R'),\n toReaumur:c('RE')\n };\n }", "function Kelvin(valor){\n /* Funcion para pasar de kervil a celsius */\n Temperatura.call(this, valor, \"k\");\n this.toCelsius = function(){\n return (valor - 273.15);\n };\n /* Funcion para pasar de kervil a celsius */\n this.toFahrenheit = function(){\n return(valor * 9/5 - 459.67);\n };\n }", "temp(celsius, fahrenheit)\n\n {\n const cTemp = celsius;\n const cToFahr = cTemp * 9 / 5 + 32;\n console.log(\"Celsius to Fahrenheit:\" + celsius + \"to\" + cToFahr); // (°C × 9/5) + 32 = °F\n const fTemp = fahrenheit;\n const fToCel = (fTemp - 32) * 5 / 9;\n console.log(\"Fahrenheit to Celsius:\" + fahrenheit + \"to\" + celsius);\n\n\n }", "get temperature() {\n // C = 5/9 * (F - 32);\n return 5/9 * (this.fahrenheit - 32); \n }", "static fromFahrenheit(value) {\n // static methods live in the constructor and are called from the constructor\n return new Temperature((value - 32) / 1.8); // allows you to call the constructor and set the temperature of the temperature object ( our custom data type that stores temperature) as a fahrenheit value\n }", "function Kelvin(valor){\n\n Temperatura.call(this, valor, \"k\");\n\n\n }", "function toCelsius(fahrenheit)\n{\n return (5/9)*(fahrenheit-32);\n\n}", "get temperature() {\n return (5 / 9) * (this.fahrenheit - 32);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Draws the original image, masked by the line drawn in drawLineToCanvas.
function drawImageCanvas() { // Emulate background-size: cover var width = imageCanvas.width; var height = imageCanvas.width / image.naturalWidth * image.naturalHeight; if (height < imageCanvas.height) { width = imageCanvas.height / image.naturalHeight * image.naturalWidth; height = imageCanvas.height; } imageCanvasContext.clearRect(0, 0, imageCanvas.width, imageCanvas.height); imageCanvasContext.globalCompositeOperation = 'source-over'; imageCanvasContext.drawImage(image, 0, 0, width, height); imageCanvasContext.globalCompositeOperation = 'destination-in'; imageCanvasContext.drawImage(lineCanvas, 0, 0); }
[ "function drawMask() {\n bannerPreviewWidth = $scope.options.width * $scope.scaleFactor;\n bannerPreviewHeight = $scope.options.height * $scope.scaleFactor;\n var previewCenter = {\n left: $scope.options.left + bannerPreviewWidth / 2,\n top: $scope.options.top + bannerPreviewHeight / 2\n };\n // clear canvas\n ctx.globalCompositeOperation = 'source-over';\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n // draw black background\n ctx.fillStyle = 'rgba(0,0,0,0.8)';\n ctx.fillRect(0, 0, canvas.width, 700);\n\n // draw mask (empty space in background)\n ctx.globalCompositeOperation = 'destination-out';\n ctx.fillStyle = '#FFF';\n ctx.fillRect($scope.options.left, $scope.options.top, bannerPreviewWidth, bannerPreviewHeight);\n ctx.globalCompositeOperation = 'source-over';\n\n ctx.fillStyle = '#FFF';\n ctx.font = '300 23px Lato';\n ctx.textAlign = 'center';\n ctx.fillText('Crop ', previewCenter.left, 70);\n //-------------------\n ctx.fillStyle = '#FFF';\n ctx.font = '14px Lato';\n ctx.textAlign = 'center';\n if ($scope.channelType === 'display') {\n ctx.fillText('Ad Size: ' + $scope.adBannerType + ' px', previewCenter.left, 90);\n } else {\n ctx.fillText('Ad Type: ' + $scope.options.label, previewCenter.left, 90);\n }\n //-------------------\n ctx.fillStyle = '#FFF';\n ctx.font = '14px Lato';\n ctx.textAlign = 'center';\n ctx.fillText('Crop Photo: Drag to Reposition', previewCenter.left, $scope.options.top + bannerPreviewHeight + 15);\n }", "function drawImageCanvas() {\n // Emulate background-size: cover\n var width = imageCanvas.width;\n var height = imageCanvas.width / image.naturalWidth * image.naturalHeight;\n \n if (height < imageCanvas.height) {\n width = imageCanvas.height / image.naturalHeight * image.naturalWidth;\n height = imageCanvas.height;\n }\n\n imageCanvasContext.clearRect(0, 0, imageCanvas.width, imageCanvas.height);\n imageCanvasContext.globalCompositeOperation = 'source-over';\n imageCanvasContext.drawImage(image, 0, 0, width, height);\n imageCanvasContext.globalCompositeOperation = 'destination-in';\n imageCanvasContext.drawImage(lineCanvas, 0, 0);\n\n }", "function drawImageCanvas() {\n\t\t\t\t// Emulate background-size: cover\n\t\t\t\tlet width = imageCanvas.width;\n\t\t\t\tlet height = imageCanvas.width / image.naturalWidth * image.naturalHeight;\n\n\t\t\t\tif (height < imageCanvas.height) {\n\t\t\t\t\twidth = imageCanvas.height / image.naturalHeight * image.naturalWidth;\n\t\t\t\t\theight = imageCanvas.height;\n\t\t\t\t}\n\n\t\t\t\timageCanvasContext.clearRect(0, 0, imageCanvas.width, imageCanvas.height);\n\t\t\t\timageCanvasContext.globalCompositeOperation = 'source-over';\n\t\t\t\timageCanvasContext.drawImage(image, 0, 0, width, height);\n\t\t\t\timageCanvasContext.globalCompositeOperation = 'destination-in';\n\t\t\t\timageCanvasContext.drawImage(lineCanvas, 0, 0);\n\t\t\t}", "function draw() {\n ctx.clearRect(0,0,cw,ch);\n\n // Save the state, so we can undo the clipping\n ctx.save();\n \n // Create a circle\n ctx.beginPath();\n ctx.arc(cx, cy, radius, 0, Math.PI * 2);\n \n // Clip to the current path\n ctx.clip();\n \n ctx.drawImage(img, 0, 0);\n \n // Undo the clipping\n ctx.restore();\n }", "function redrawMask() {\n\n // draw it from the canvas_mask_ori data\n ctx_mask.clearRect(0, 0, canvasWidth, canvasHeight);\n ctx_mask.drawImage(canvas_mask_ori, 0, 0, canvasWidth, canvasHeight);\n\n // give it some alpha blending\n setAlphaChannel(ctx_mask, 127, 0);\n\n} // redrawMask", "drawMask () {\n this.mask.graphics.clear()\n .beginFill(\"#fff\")\n .drawRect(this.x, this.y, this.width, this.height)\n .endFill();\n }", "function drawPaint(){\n var ctx = paintCanvas.getContext(\"2d\");\n ctx.save();\n ctx.clearRect(0, 0, imageInfo.width, imageInfo.height);\n ctx.drawImage(imgCanvas, 0, 0, imageInfo.width, imageInfo.height);\n\n var blendCanvas = document.createElement(\"canvas\");\n var ctxBlend = blendCanvas.getContext(\"2d\");\n blendCanvas.width = imageInfo.width;\n blendCanvas.height = imageInfo.height;\n ctxBlend.save();\n ctxBlend.clearRect(0, 0, imageInfo.width, imageInfo.height);\n ctxBlend.drawImage(grayImgCanvas, 0, 0, imageInfo.width, imageInfo.height);\n ctxBlend.globalCompositeOperation = \"overlay\";\n ctxBlend.drawImage(selectionCanvas, 0, 0, imageInfo.width, imageInfo.height);\n ctxBlend.restore();\n\n var clippedCanvas = document.createElement(\"canvas\");\n var ctxClipped = clippedCanvas.getContext(\"2d\");\n clippedCanvas.width = imageInfo.width;\n clippedCanvas.height = imageInfo.height;\n ctxClipped.save();\n ctxClipped.clearRect(0, 0, imageInfo.width, imageInfo.height);\n ctxClipped.drawImage(selectionCanvas, 0, 0, imageInfo.width, imageInfo.height);\n ctxClipped.globalCompositeOperation = 'source-in';\n ctxClipped.drawImage(blendCanvas, 0, 0, imageInfo.width, imageInfo.height);\n ctxClipped.restore();\n\n ctx.drawImage(clippedCanvas, 0, 0, imageInfo.width, imageInfo.height);\n ctx.restore();\n }", "function ApplyMask(event){\n var width = preload_image.width;\n var height = preload_image.height;\n canvas.width = width;\n canvas.height = height;\n jQuery(canvas).attr(\"id\", jQuery(image).attr(\"id\"));\n jQuery(canvas).attr(\"class\", jQuery(image).attr(\"class\"));\n mask.width = width;\n mask.height = height;\n ctx.drawImage(mask, 0, 0, canvas.width, canvas.height);\n ctx.globalCompositeOperation = 'source-atop';\n ctx.drawImage(image, 0, 0);\n if(generate_image_data){\n image.src = canvas.toDataURL();\n }else{\n jQuery(image).replaceWith(canvas);\n }\n }", "function mask() {\n \tctx.clip();\n }", "function maskCanvas() {\n\t\t\tc3.context.drawImage(c2.canvas, 0, 0, c2.canvas.width, c2.canvas.height);\n\t\t\tc3.context.globalCompositeOperation = \"source-atop\";\n\t\t\tc3.context.drawImage(c1.canvas, 0, 0);\n\t\t\tblur(c1.context, c1.canvas, 5); /* trzeci parametr (amount) wpływa na wielkość rozmycia */\n\t\t}", "function drawCopiedImage(canvas){\n\t\n\t//If the target and source are the same canvas, do nothing\n\tif(canvas.id == draggedElement.id) {\n\t\treturn;\n\t}\n\t$(canvas).parent().data(\"used\", true);\n\tfitSize(draggedElement, $(canvas).parent());\n\tcanvas.width = draggedElement.width;\n\tcanvas.height = draggedElement.height;\n\tvar ctx = canvas.getContext(\"2d\");\n\tif($(canvas).hasClass(\"tieClass\")) {\n\t\tvar tmp = draggedElement.getContext('2d');\n\t\tvar data = tmp.getImageData(0,0,draggedElement.width,draggedElement.height);\n\t\tvar image = {\n\t data: data.data,\n\t width: draggedElement.width,\n\t height: draggedElement.height,\n\t bytes: 4\n\t };\n\t\tvar mask = eliminateWhite(image, 64);\n\t\tcropOut3(mask, data, ctx);\n\t} else {\n\t\tctx.clearRect(0, 0, canvas.width, canvas.height);\n\t\tctx.drawImage(draggedElement, 0, 0, canvas.width, canvas.height);\n\t}\n}", "drawLine() {\n if (this.compositeOp !== DEFAULT_COMPOSITE_OP) {\n this.ctx.strokeStyle = this.xorColor;\n this.ctx.globalCompositeOperation = this.compositeOp;\n } else\n this.ctx.strokeStyle = this.lineColor;\n\n this.ctx.lineWidth = this.lineWidth;\n\n this.ctx.beginPath();\n this.ctx.moveTo(this.origin.x, this.origin.y);\n this.ctx.lineTo(this.dest.x, this.dest.y);\n this.ctx.stroke();\n\n if (this.arrow) {\n // Draws the arrow head\n const\n beta = Math.atan2(this.origin.x - this.dest.x, this.dest.x - this.origin.x),\n arp = new Point(this.dest.x - this.arrowLength * Math.cos(beta + this.arrowAngle),\n this.dest.y + this.arrowLength * Math.sin(beta + this.arrowAngle));\n this.ctx.beginPath();\n this.ctx.moveTo(this.dest.x, this.dest.y);\n this.ctx.lineTo(arp.x, arp.y);\n this.ctx.stroke();\n\n arp.moveTo(this.dest.x - this.arrowLength * Math.cos(beta - this.arrowAngle),\n this.dest.y + this.arrowLength * Math.sin(beta - this.arrowAngle));\n this.ctx.beginPath();\n this.ctx.moveTo(this.dest.x, this.dest.y);\n this.ctx.lineTo(arp.x, arp.y);\n this.ctx.stroke();\n }\n if (this.compositeOp !== DEFAULT_COMPOSITE_OP) {\n // reset default settings\n this.ctx.globalCompositeOperation = DEFAULT_COMPOSITE_OP;\n }\n }", "function copyDrawing() {\n if (state === \"draw\") {\n \n push();\n angleMode(DEGREES);\n translate(windowWidth / 2, windowHeight / 2);\n displayImg();\n pop();\n \n if (mouseIsPressed) {\n let linePos = {\n //changing the mouseX and mouseY coordinates to x and y coordinates where the origin is the center of the screen\n x: mouseX - windowWidth / 2,\n y: mouseY - windowHeight / 2,\n px: pmouseX - windowWidth / 2,\n py: pmouseY - windowHeight / 2,\n };\n lineCor.push(linePos);\n }\n }\n}", "function drawCanvas() {\n\t\tcontext.clearRect(0, 0, canvas.width, canvas.height);\n\t\tdrawCanvasBackground();\n\t\tdrawHoles(holes);\n\t\tdrawLines(existingDrawnCoords);\n\t}", "function drawPath() {\n canvasContext.setLineDash([5, 3])\n canvasContext.lineWidth = 2;\n canvasContext.strokeStyle = 'orange';\n canvasContext.beginPath();\n canvasContext.moveTo(\n bowLocation[0] + imgBow.width / 2,\n bowLocation[1] + imgBow.height / 2);\n canvasContext.lineTo(\n targetLocation[0] + imgTarget.width / 2,\n targetLocation[1] + imgTarget.height / 2);\n canvasContext.stroke();\n}", "function drawMask() {\n if (poses.length > 0) {\n for (i = 0; i < poses.length; i++) {\n let poseNose = poses[i].pose.nose;\n let poseRightEar = poses[i].pose.rightEar;\n let poseLeftEar = poses[i].pose.leftEar;\n maskSize = (poseLeftEar.x - poseRightEar.x);\n context.drawImage(mask, poseRightEar.x - 15, poseNose.y - 35, maskSize * 1.2, maskSize);\n }\n }\n}", "function resetImage() {\n originalImage.drawTo(canvas);\n}", "draw() {\n const ctx = this.ctx;\n const canvas = this.canvas;\n const [x, y] = this.mapCenterInset();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.putImageData(this.imageData, x, y);\n }", "function offscreenCanvas() {\n if (img != null && oCanvas == null) {\n var m_canvas = document.createElement('canvas');\n m_canvas.width = img.width;\n m_canvas.height = img.height;\n m_context = m_canvas.getContext('2d');\n m_context.beginPath();\n m_context.arc(m_canvas.width / 2, m_canvas.height / 2, img.width / 2, 0, 2 * Math.PI, false);\n var radgrad = m_context.createRadialGradient(m_canvas.width / 2, m_canvas.height / 2, img.height / 3, m_canvas.width / 2, m_canvas.height / 2, img.height / 2);\n radgrad.addColorStop(0.9, '#F5F5DC');\n radgrad.addColorStop(0.1, '#cdc0b0');\n m_context.fillStyle = radgrad;\n m_context.fill();\n m_context.closePath();\n\n m_context.strokeStyle = 'rgba(200,0,0,0.7)'\n m_context.beginPath();\n m_context.moveTo(m_canvas.width / 2, m_canvas.height / 2 - 5);\n m_context.lineTo(m_canvas.width / 2, m_canvas.height / 2 - img.height / 2);\n m_context.closePath();\n m_context.stroke();\n m_context.beginPath();\n m_context.arc(m_canvas.width / 2, m_canvas.height / 3, img.height / 20, 0, 2 * Math.PI, false);\n m_context.lineWidth = 1.5;\n m_context.strokeStyle = 'rgba(128,0,0,0.9)';\n m_context.stroke();\n m_context.closePath();\n var xStart = (m_canvas.width - img.width) / 2;\n var yStart = (m_canvas.height - img.height) / 2;\n m_context.beginPath();\n m_context.arc(m_canvas.width / 2, m_canvas.height / 2, (img.height / 2) - 2, 0, 2 * Math.PI, false);\n m_context.lineWidth = 3.5;\n m_context.strokeStyle = 'rgba(0,0,0,0.5)';\n m_context.stroke();\n m_context.closePath();\n oCanvas = m_canvas;\n }\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accepts a public key, calculating its "balance" based on the amounts transferred in all transactions stored in the chain. Note: There is currently no way to create new funds on the chain, so some keys will have a negative balance. That's okay, we'll address it when we make the blockchain mineable later.
getBalance(publicKey) { // Your code here }
[ "function balance( key ){\n\n\tcheckForMissingArg( key, \"key\" );\n\t\n\treturn getPublicKey(key).then( Blockchain.getBalance );\n}", "async function getBalance(publicAddress) { \n\n let publicKey = await getPublicKey(publicAddress);\n\n let balance = await client.getBalance(publicKey);\n balance = sdk.quarksToKin(balance);\n //balance = parseInt(sdk.quarksToKin(balance)).toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n \n return balance;\n\n}", "async getBalance(publicKey, commitment) {\n return await this.getBalanceAndContext(publicKey, commitment).then(x => x.value).catch(e => {\n throw new Error('failed to get balance of account ' + publicKey.toBase58() + ': ' + e);\n });\n }", "calculateBalanceFromBlockchain() {}", "function toBase58FromPublicKey(pubKeyToConvert)\n{\n if(!Neon.default.is.publicKey(pubKeyToConvert))\n {\n\t console.log( pubKeyToConvert + \" does not seems to be a valid publicKey.\")\n\t return;\n }\n\n return toBase58(getScriptHashFromAVM(\"21\" + pubKeyToConvert + \"ac\"));\n}", "function deriveP2PKPubKey(publicKey) {\n // const pubkey = typeConverter.hexStrToBuffer(publicKey);\n // bitcoinjs.payments.p2pk({pubkey}).pubkey;\n return publicKey\n}", "sendMoney(amount, receiverPublicKey) {\n const transaction = new Transaction(amount, this.publicKey, receiverPublicKey, Date.now());\n const sign = crypto.createSign('SHA256');\n sign.update(transaction.toString()).end();\n const signature = sign.sign(this.privateKey);\n Chain.instance.addToPending(transaction, this.publicKey, signature);\n // Chain.instance.addBlock(transaction, this.publicKey, signature);\n }", "constructor(){\n this.balance = INITIAL_BALANCE;\n this.keyPair = ChainUtil.genKeyPair();\n this.publicKey = this.keyPair.getPublic().encode('hex');\n }", "function computeWalletBalance(clientId) {\n return new Promise((resolve, reject) => {\n let query = `Select amount, is_credit from investment_txns WHERE isWallet = 1 AND clientId = ${clientId} \n AND isApproved = 1 AND postDone = 1`;\n sRequest.get(query).then(payload2 => {\n let total = 0;\n payload2.map(x => {\n if (x.is_credit === 1) {\n total += parseFloat(x.amount.toString());\n } else {\n total -= parseFloat(x.amount.toString());\n }\n });\n let result = parseFloat(Number(total).toFixed(2));\n resolve({ currentWalletBalance: result });\n }, err => {\n resolve({ currentWalletBalance: 0 });\n });\n });\n}", "onSpend ({ pubkey, signature }, { sigHash }) {\n // verify signature\n if (!secp256k1.verify(sigHash, signature, pubkey)) {\n throw Error('Invalid signature')\n }\n }", "onSpend ({ pubkey, signature }, { sigHash }) {\n // verify signature\n if (!ed25519.verify(signature, sigHash, pubkey)) {\n throw Error('Invalid signature')\n }\n }", "async getBalanceAndContext(publicKey, commitment) {\n const args = this._buildArgs([publicKey.toBase58()], commitment);\n\n const unsafeRes = await this._rpcRequest('getBalance', args);\n const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.number()));\n\n if ('error' in res) {\n throw new Error('failed to get balance for ' + publicKey.toBase58() + ': ' + res.error.message);\n }\n\n return res.result;\n }", "static calculateBalance({ address, chain }) {\n let hasConductedTransaction = false;\n let outputsTotal = 0;\n\n for (let i = chain.length - 1; i > 0; i--) {\n const block = chain[i];\n\n for (let transaction of block.data) {\n if (transaction.input.address === address) {\n hasConductedTransaction = true;\n }\n const addressOutput = transaction.outputMap[address];\n\n if (addressOutput) {\n outputsTotal = outputsTotal + addressOutput;\n }\n }\n\n if (hasConductedTransaction) {\n break;\n }\n }\n\n return hasConductedTransaction\n ? outputsTotal\n : STARTING_BALANCE + outputsTotal;\n }", "constructor(){\n this.balance = INITIAL_BALANCE;\n this.keyPair = ChainUtil.genKeyPair();\n\t //usually the address\n this.publicKey = this.keyPair.getPublic().encode('hex');\n }", "async getBalanceAndContext(publicKey, commitment) {\n const args = this._buildArgs([publicKey.toBase58()], commitment);\n\n const unsafeRes = await this._rpcRequest('getBalance', args);\n const res = create(unsafeRes, jsonRpcResultAndContext(number()));\n\n if ('error' in res) {\n throw new Error('failed to get balance for ' + publicKey.toBase58() + ': ' + res.error.message);\n }\n\n return res.result;\n }", "function convertPublicKey (wallet) {\n if (wallet && wallet.pub_key) {\n wallet.pub_key = {\n data: Buffer.from(wallet.pub_key, 'hex')\n }\n }\n}", "static calculateBalance({ chain, address }) {\n let hasConductedTransaction = false;\n let outputsTotal = 0;\n\n //Loop through the chain in REVERSE. Skip the genesis block.\n //Recent transaction at the end of the chain.\n for (let i = chain.length - 1; i > 0; i--) {\n\n //Instantiate the individual blocks\n const block = chain[i];\n\n //Loop through the transactions.\n for (let transaction of block.transactions) {\n\n //If the address/wallet has conducted a transaction.\n if (transaction.input.address === address) {\n hasConductedTransaction = true;\n }\n\n //Access the value of the output map at that address.\n const addressOutput = transaction.outputMap[address];\n\n //If the addressOutput is definied.\n if (addressOutput) {\n outputsTotal += addressOutput;\n }\n }\n\n //If hasConductedTransaction, break away from forloop.\n if (hasConductedTransaction) {\n break;\n }\n }\n\n //return only the outputTotal if indeed the wallet has conducted a transaction.\n return hasConductedTransaction ? outputsTotal : STARTING_BALANCE + outputsTotal;\n }", "function pubKeyFromPublicKey(publicKey) {\n var buffer = Buffer.from(BECH32_PUBKEY_DATA_PREFIX, 'hex');\n var combined = Buffer.concat([buffer, publicKey]);\n return Buffer.from(bech32_1.bech32.toWords(combined));\n}", "static calculateBalance({ chain, address }) {\n let hasConductedTransaction = false\n let outputsTotal = 0\n\n // traveserse the list backwards\n // to capture recent transactions\n for (let i = chain.length - 1; i > 0; i--) {\n const block = chain[i]\n\n for (let transaction of block.data) {\n if (transaction.input.address === address) {\n hasConductedTransaction = true\n }\n const addressOutput = transaction.outputMap[address]\n\n if (addressOutput) {\n outputsTotal += addressOutput\n }\n }\n\n if (hasConductedTransaction) {\n break\n }\n }\n\n return hasConductedTransaction\n ? outputsTotal\n : STARTING_BALANCE + outputsTotal\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert a node between the parent and the container. When no container is given, the node is appended as a child of the parent. Also updates the element stack accordingly.
_insertBeforeContainer(parent, container, node) { if (!container) { this._addToParent(node); this._elementStack.push(node); } else { if (parent) { // replace the container with the new node in the children const index = parent.children.indexOf(container); parent.children[index] = node; } else { this._rootNodes.push(node); } node.children.push(container); this._elementStack.splice(this._elementStack.indexOf(container), 0, node); } }
[ "function insert(parent, elm, ref) {\n if (isDef(parent)) {\n if (isDef(ref)) {\n if (nodeOps.parentNode(ref) === parent) {\n nodeOps.insertBefore(parent, elm, ref);\n }\n }\n else {\n nodeOps.appendChild(parent, elm);\n }\n }\n }", "insertBack(parent) {\n invariant(!this.parent, 'Node is already parented');\n invariant(parent, 'Bad parameter');\n // if parent has no children then append is necessary\n if (parent.children.length === 0) {\n parent.appendChild(this);\n } else {\n // update child list of parent and this nodes parent reference\n parent.children.splice(0, 0, this);\n this.parent = parent;\n // update the DOM\n this.parent.el.insertBefore(this.el, this.parent.el.firstChild);\n }\n }", "function insertNodeIntoColumn(node) {\n\t\tif (openContainers.length == 0) {\n\t\t\tcolumn.append(node);\n\t\t} else {\n\t\t\tvar deepestContainer = openContainers[openContainers.length-1];\n\t\t\tdeepestContainer.append(node);\n\t\t}\n\t}", "function insert(container, content) {\n if (content) {\n container.push(content)\n }\n }", "function prepend(container, item) {\n if (!container) return;\n container.parentNode.insertBefore(item, container);\n}", "function insertFirst(parent, node) \r\n{\r\n parent.insertBefore(node, parent.firstChild);\r\n}", "function add (node, parent) {\n parent.children.push(node)\n if (parser.position) {\n parent.position = {\n start: parent.children[0].position.start,\n end: node.position.end\n }\n }\n }", "function prepend(newEle, container) {\n var fir = this.firstChild(container);\n if (fir) {\n container.insertBefore(newEle, fir);\n return;\n }\n container.appendChild(newEle);\n }", "function parenting(parent, child){\n parent.appendChild(child);\n}", "_insertBefore(element) {\n this.parentElement.insertBefore(element, this);\n }", "function insertLast(parent, node) \r\n{\r\n parent.insertBefore(node, null);\r\n}", "function elementInsert(parentElement, where, parsedNode)\r\n{\r\n\tif (g_browserType.supportsInsertAdjacent) \r\n\t{\r\n\t\tparentElement.insertAdjacentElement(where, parsedNode);\t\r\n\t}\r\n\telse \r\n\t{\r\n\t\tswitch (where){\r\n\t\t\tcase 'BeforeBegin':\r\n\t\t\t\tparentElement.parentNode.insertBefore(parsedNode,parentElement);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'AfterBegin':\r\n\t\t\t\tparentElement.insertBefore(parsedNode,parentElement.firstChild);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'BeforeEnd':\r\n\t\t\t\tparentElement.appendChild(parsedNode);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'AfterEnd':\r\n\t\t\t\tif (parentElement.nextSibling){\r\n\t\t\t\t\tparentElement.parentNode.insertBefore (parsedNode,parentElement.nextSibling);\r\n\t\t\t\t} \r\n\t\t\t\telse {\r\n\t\t\t\t\tparentElement.parentNode.appendChild(parsedNode);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n}", "function attachElementToParent(element, parentElement) {\n var previousRenderNode = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2];\n\n if (previousRenderNode) {\n var previousSibling = previousRenderNode.element;\n var previousSiblingPenultimate = penultimateParentOf(previousSibling, parentElement);\n parentElement.insertBefore(element, previousSiblingPenultimate.nextSibling);\n } else {\n parentElement.insertBefore(element, parentElement.firstChild);\n }\n}", "function placeIn(container, child) {\n container.innerHTML = \"\";\n utils.classed(container, \"slide-root\", true);\n\n //Clean the contents of the child and get element list\n var elems = Array.prototype.slice.call(child.childNodes);\n elems = stripNoNameElements(elems);\n\n //Add a special place for the header\n var header = document.createElement(\"div\");\n utils.classed(header, \"header\", true);\n container.appendChild(header);\n\n elems = placeHeaderIfPresent(header, elems);\n\n //Add the body section where all the elemnts go\n var middle = document.createElement(\"div\");\n container.appendChild(middle);\n utils.classed(middle, \"middle\", true);\n\n //Now add the elements\n var maxWidth = middle.clientWidth;\n var maxHeight = (middle.clientHeight - header.offsetHeight - 30);\n utils.styled(middle, \"height\", maxHeight + \"px\");\n\n placeElementsInMiddle(middle, elems, maxWidth, maxHeight);\n}", "insertBefore(node) {\n if (this.fragment.hasChildNodes()) {\n node.parentNode.insertBefore(this.fragment, node);\n } else {\n const parentNode = node.parentNode;\n const end = this.lastChild;\n let current = this.firstChild;\n let next;\n\n while (current !== end) {\n next = current.nextSibling;\n parentNode.insertBefore(current, node);\n current = next;\n }\n\n parentNode.insertBefore(end, node);\n }\n }", "function InsertNode() {}", "function insertView(container, newView, index) {\n var state = container.data;\n var views = state.views;\n if (index > 0) {\n // This is a new view, we need to add it to the children.\n setViewNext(views[index - 1], newView);\n }\n if (index < views.length) {\n setViewNext(newView, views[index]);\n views.splice(index, 0, newView);\n }\n else {\n views.push(newView);\n }\n // If the container's renderParent is null, we know that it is a root node of its own parent view\n // and we should wait until that parent processes its nodes (otherwise, we will insert this view's\n // nodes twice - once now and once when its parent inserts its views).\n if (container.data.renderParent !== null) {\n var beforeNode = findNextRNodeSibling(newView, container);\n if (!beforeNode) {\n var containerNextNativeNode = container.native;\n if (containerNextNativeNode === undefined) {\n containerNextNativeNode = container.native = findNextRNodeSibling(container, null);\n }\n beforeNode = containerNextNativeNode;\n }\n addRemoveViewFromContainer(container, newView, true, beforeNode);\n }\n return newView;\n}", "addItem(element) {\n this._container.prepend(element);\n }", "addToParent () {\n var parentNode = this.parentEl = this.parentNode;\n\n // `!parentNode` check primarily for unit tests.\n if (!parentNode || !parentNode.add || this.attachedToParent) { return; }\n\n parentNode.add(this);\n this.attachedToParent = true; // To prevent multiple attachments to same parent.\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Declare a function to get the blur (=the click outside the text area) Check if the input is valid mail
function handleBlur() { if (!inputValue.includes('@')) { alert("Warning : '@' missing , this isn't a valid mail") } }
[ "function validateBlurEmailText() {\n\n if (emailInput.value === \"\" || emailInput.value === null) {\n infoDivMail.style.display = \"block\"\n infoDivMail.style.color = \"red\"\n infoDivMail.innerText = \"Email field is empty\"\n return;\n }\n if (!isEmail(emailInput.value)) {\n infoDivMail.style.display = \"block\"\n infoDivMail.style.color = \"red\"\n infoDivMail.innerText = \"Email field is empty\"\n return;\n }\n}", "function validEmail() {\r\n\r\n inputEmail.onblur = () => testEmailBlur();\r\n \r\n testEmailFocus(); \r\n }", "function onEmailAddressBlur() {\n validateEmailAddressField();\n }", "function emailInputBlur(){\n\t\t\t$scope.showOptions=false;\n\t\t\t$scope.showSelectionButtons=true;\n\t\t}", "function blurZipCode(){\n console.log(\"blurzipcode\");\n var zipcode = document.getElementById(\"zipcode\").value;\n if (zipcode != \"\")\n zipcodeChecker();\n}", "function initialiseEmailValidation() {\n $(\"#mail\").on(\"input focus\", event =>\n validateEmailAndDisplay($(event.target))\n );\n}", "function validiraj_mail(){\n\n var pattern = /^[a-zA-Z0-9]+@[a-z]{2,10}\\.[a-z]{2,4}$/;\n var tekst = document.getElementById(\"forma\").mail_input.value;\n var test = tekst.match(pattern);\n\n if (test == null) {\n document.getElementById(\"mail_error\").classList.remove(\"hidden\");\n valid_test = false;\n } else{\n console.log(\"validiran mail\");\n document.getElementById(\"mail_error\").classList.add(\"hidden\");\n }\n }", "function addEmailOnBlurListener(emailGroup){\n var emailNode = emailGroup.getElementsByClassName(\"emailAddress\")[0];\n emailNode.addEventListener(\"blur\", function(event) {\n validateAllEmails(event.target);\n });\n}", "function msgform(intern) {\n document.getElementById(\"mailform\").style.display = \"block\";\n document.getElementById(\"tomail\").innerHTML =\n \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receiver Mail-Id :&nbsp;\" +\n intern.Mail;\n document.getElementById(\"tomail\").value = intern.Mail;\n // mailid = intern.Mail;\n var blur = document.getElementById(\"blur\");\n blur.classList.toggle(\"active\");\n}", "function validaMail(txt) {\n \n var valor = document.getElementById(txt); \n var exp = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.([a-zA-Z]{2,4})+$/;\n if(valor.value!=\"\"){\n if (!exp.test(valor.value)) {\n valor.value = '';\n alert(\"Formato del Campo mail Incorrecto ejm usuario@dominio.com, usuario@dominio.com.ec \");\n }\n\n }\n\n }", "\"on-blur\"() {}", "function isEmail(input_field, message_span) {\r\n\tif (!input_field.value == '') {\r\n \t// regex pattern is used for validating email \r\n \tvar regex = /^([a-zA-Z0-9_\\.\\-\\+])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;\r\n \tif(!regex.test(input_field.value)) {\r\n \tEMAIL_VAL = 'false';\r\n \tmessage_span.innerHTML = \"* Please Enter a Valid Email Address\";\r\n \t} else {\r\n \t\tmessage_span.innerHTML = \"\";\r\n \t}\r\n\t} else {\r\n\t\tmessage_span.innerHTML = \"\";\r\n\t}\r\n}", "function emailCheck() {\n const alertMsg = document.querySelector(\".email .alert-msg\");\n const mailFormat =\n /^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-]+$/;\n // mailFormat is the format that the mail field must have, like letters, numbers, symbols @ letters, numbers .(dot) letters, numbers\n if (email.value.match(mailFormat)) {\n alertMsg.style.display = \"none\";\n email.classList.remove(\"border-red\");\n return true;\n } else {\n alertMsg.style.display = \"flex\";\n email.classList.add(\"border-red\");\n return false;\n }\n}", "function demoWrongIntervieweeEmail() {\n\t\t$(\"#intervieweeEmail\").teletype({\n\t\t\tanimDelay : 50,\n\t\t\ttext : 'asd@@com'\n\t\t});\n\n\t\tsetTimeout( function() {\n\t\t\t$(\"#intervieweeEmail\").trigger('blur');\n\t\t} , 850);\n\t}", "function blurField()\r\n{\r\n\ttry {\r\n\t\tvalidateLogin();\r\n\t}\r\n\tcatch (e)\r\n\t{ } // hide bug https://bugzilla.mozilla.org/show_bug.cgi?id=236791\r\n}", "function onPhoneBlur() {\n validatePhoneField();\n }", "function inputOnBlur() {\n thisObj = this;\n inputAttr = this.getAttribute(\"data-validate\");\n // console.log(inputAttr);\n\n checkIfInputempty(inputAttr);\n checkIfInputsAllFilled();\n}", "function demoWrongInterviewerEmail() {\n\t\t$(\"#interviewerEmail\").teletype({\n\t\t\tanimDelay : 50,\n\t\t\ttext : 'asd.com'\n\t\t});\n\n\t\tsetTimeout( function() {\n\t\t\t$(\"#interviewerEmail\").trigger('blur');\n\t\t} , 400);\n\t}", "function EmailControl(){\n let leMail = formulaireElementValues.email;\n if(regexEmail(leMail)){\n spanContentVide(\"hemail\")\n alert(\"TRUE mail\")\n return true;\n }\n else{\n spanContentRempli(\"hemail\");\n alert(\"FALSE mail\");\n return false;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Format a Ripple Amount for editing by the user
function formatForEdit(amount) { var formatted = $filter('rpamount')(amount, {group_sep:false, hard_precision:true, max_sig_digits:20}); return formatted; }
[ "function formatForEdit(amount) {\n var formatted = $filter('rpamount')(amount, {group_sep:false, hard_precision:true, max_sig_digits:20});\n\n return formatted;\n }", "function formatAmount() {\n\treturn \"$\" + phonePurchase.toFixed(2);\n}", "asText4() {\nreturn this._makeText(`${this.amount.toFixed(4)}`);\n}", "function format_amount(e)\n {\n var keyUnicode = e.charCode || e.keyCode;\n\n if (e !== undefined) {\n switch (keyUnicode) {\n case 16: break; // Shift\n case 17: break; // Ctrl\n case 18: break; // Alt\n case 27: this.value = ''; break; // Esc: clear entry\n case 35: break; // End\n case 36: break; // Home\n case 37: break; // cursor left\n case 38: break; // cursor up\n case 39: break; // cursor right\n case 40: break; // cursor down\n case 78: break; // N (Opera 9.63+ maps the \".\" from the number key section to the \"N\" key too!) (See: http://unixpapa.com/js/key.html search for \". Del\")\n case 110: break; // . number block (Opera 9.63+ maps the \".\" from the number block to the \"N\" key (78) !!!)\n case 190: break; // .\n default: $(this).formatCurrency({ colorize: true, negativeFormat: '-%s%n', roundToDecimalPlace: -1, eventOnDecimalsEntered: true });\n }\n }\n var new_val = $(this).val();\n var decimal_pos = new_val.indexOf(\".\");\n if(decimal_pos <=0) return;\n if((new_val.length - decimal_pos - 1) > 2)\n {\n //strip decimals more than 2 places\n $(this).val(new_val.substr(0,new_val.length - 1));\n }\n }", "function format_amount(e)\r\n {\r\n var keyUnicode = e.charCode || e.keyCode;\r\n\r\n if (e !== undefined) {\r\n switch (keyUnicode) {\r\n case 16: break; // Shift\r\n case 17: break; // Ctrl\r\n case 18: break; // Alt\r\n case 27: this.value = ''; break; // Esc: clear entry\r\n case 35: break; // End\r\n case 36: break; // Home\r\n case 37: break; // cursor left\r\n case 38: break; // cursor up\r\n case 39: break; // cursor right\r\n case 40: break; // cursor down\r\n case 78: break; // N (Opera 9.63+ maps the \".\" from the number key section to the \"N\" key too!) (See: http://unixpapa.com/js/key.html search for \". Del\")\r\n case 110: break; // . number block (Opera 9.63+ maps the \".\" from the number block to the \"N\" key (78) !!!)\r\n case 190: break; // .\r\n default: $(this).formatCurrency({ colorize: true, negativeFormat: '-%s%n', roundToDecimalPlace: -1, eventOnDecimalsEntered: true });\r\n }\r\n }\r\n var new_val = $(this).val();\r\n var decimal_pos = new_val.indexOf(\".\");\r\n if(decimal_pos <=0) return;\r\n if((new_val.length - decimal_pos - 1) > 2)\r\n {\r\n //strip decimals more than 2 places\r\n $(this).val(new_val.substr(0,new_val.length - 1));\r\n }\r\n }", "formatAmount(value) {\n //transformar em numero multiplicar por 100\n value = value * 100\n //arredonda o numero\n return Math.round(value)\n }", "function formatForRazorpay(amount) {\n return Math.round(amount * 100);\n}", "function formatNumber(amount, decimalCount = 2, prepend = '', postpend = '', small_pos = 'False', up_down = false) {\n if (((amount == 0) | (amount == null)) | (small_pos == 'True')) {\n return '-'\n }\n try {\n var string = ''\n string += (amount).toLocaleString('en-US', { style: 'decimal', maximumFractionDigits: decimalCount, minimumFractionDigits: decimalCount })\n if ((prepend == '+') && (amount > 0)) {\n string = \"+\" + string\n } else if ((prepend == '+') && (amount <= 0)) {\n string = string\n } else {\n string = prepend + string\n }\n\n if (up_down == true) {\n if (amount > 0) {\n postpend = postpend + '&nbsp;<i class=\"fas fa-angle-up\"></i>'\n } else if (amount < 0) {\n postpend = postpend + '&nbsp;<i class=\"fas fa-angle-down\"></i>'\n }\n }\n return (string + postpend)\n } catch (e) {\n console.log(e)\n }\n}", "function format_it ()\n\t\t\t{\n\t\t\t\tvar str = obj.val();\n\t\t\t\tvar price = numbers_format(str);\n\t\t\t\tif (str != price) obj.val(price);\n\t\t\t}", "function formatDecimalRate(obj) {\n var totalCost = 0;\n var icount = 0;\n var rIndex = ifgLineDetail.CurrentRowIndex();\n if (trimAll(obj.value) != \"\") {\n var Amount = new Number;\n Amount = parseFloat(obj.value);\n obj.value = Amount.toFixed(2);\n }\n}", "function formatAmount(amount){\n return \"$\" + amount.toFixed(2);\n}", "function FormatAmountInGridColumn(amount) {\n if (amount == null) {\n amount = \"0\";\n }\n if(amount.indexOf('(') > -1){\n return \"<span style=\\\"color:red;\\\">\" + amount + \"</span>\";\n }else{\n return \"<span>\" + amount + \"</span>\";\n }\n }", "function rippleAmount(amount, currency) {\n if (typeof ripple === 'undefined' || !ripple.Amount) {\n return amount\n }\n\n return ripple.Amount.from_human(amount + ' ' + currency)\n .to_human({max_sig_digits: 6})\n }", "getFormatedAmount() {\n const entity = this.props.entity;\n return currency(entity.wire_threshold.min, entity.wire_threshold.type, 'suffix');\n }", "getFormattedAdjustmentTotal(r) {\n let round = this.store.utils.roundToTwo;\n return round(r.getNewBudget());\n }", "function formatInput(input)\r\n{\r\n var amt = parseFloat(input.value);\r\n $(input).val('$' + amt.toFixed(2));\r\n}", "function cashRefresh() {\n cashAmount += income - expenses + expensesComp; //expenses corresponds to AutoEdit\n document.getElementById(\"cashAmount\").innerHTML = numeral(cashAmount).format('$0,0.00');\n}", "formatRating(rating) {\n\n rating = rating * 25;\n return rating;\n }", "function editvalue(type,value){if (value==\"-\") {return value}\r\n \telse{if (type==\"CO\") {return (value+\" mg/m<sup>3</sup>\");} else {return (value+\" μg/m<sup>3</sup>\");}}\r\n\t\t\t\t\t\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remove pagemode/scrollelement scroll event listener
removeScrollListener(element) { const { scrollHandler } = this; element.removeEventListener('scroll', scrollHandler, false); }
[ "removeScrollHandling() {}", "removeOnScrollListener_() {\n if (this.scrollUnlisten_) {\n this.scrollUnlisten_();\n this.scrollUnlisten_ = null;\n }\n }", "function _unbindScrollListener() {\n\t Utils.removeEvent($(window), Constants.SCROLL);\n\t}", "function _unbindScroll () {\n $window.off('scroll.items');\n }", "function unlockScroll(){\n\tjQuery(document).off('scroll',moveScroll);\n}", "function _unblockScrolling() {\n\t Utils.removeEvent($(window), Constants.SCROLL);\n\t}", "function enableScroll() {\n $(window).off(\"scroll\", cancelScroll);\n $(window).off(\"wheel\", checkScroll);\n}", "deregisterScroll() {\n if (!this[MONITORING_SCROLL]) {\n return;\n }\n\n window.removeEventListener('scroll', this[HANDLE_DEBOUNCE_SCROLL]);\n window.removeEventListener('scroll', this[HANDLE_THROTTLE_SCROLL]);\n window.removeEventListener('scroll', this[HANDLE_SCROLL]);\n\n this[MONITORING_SCROLL] = false;\n }", "destroyScrollEventFromHeader()\n\t{\n\t\t$(window).off('scroll.header');\n\t}", "destroy(){this.viewport.options.divWheel.removeEventListener(\"wheel\",this.wheelFunction)}", "function removeScrollEventSticky() {\n\t\twindow.removeEventListener('scroll', checkWindowPosition, false);\n\t}", "function _removePageWideFocusListener() {\n if (!document.addEventListener) { return; }\n if (!onlyWrapper) { return; }\n document.removeEventListener('focus', onlyWrapper, true);\n document.removeEventListener('mousedown', onlyWrapper, true);\n document.removeEventListener('mouseup', onlyWrapper, true);\n onlyWrapper = null;\n }", "function disarmWindowScroller() {\n window.removeEventListener('mousemove', updateMousePosition);\n window.removeEventListener('touchmove', updateMousePosition);\n mousePosition = undefined;\n window.clearTimeout(next$1);\n resetScrolling$1();\n }", "function removeListeners() {\n if (state.current.scrollContainers) {\n state.current.scrollContainers.forEach(element => element.removeEventListener('scroll', scrollChange, true));\n state.current.scrollContainers = null;\n }\n\n if (state.current.resizeObserver) {\n state.current.resizeObserver.disconnect();\n state.current.resizeObserver = null;\n }\n } // add scroll-listeners / observers", "_detachScrollSpy() {\n this._scrollCarrier.removeEventListener('scroll', this._scrollSpy);\n this._scrollCarrier.removeEventListener('resize', this._scrollSpy);\n }", "function bindPageScroll() {\n window.addEventListener('scroll', function(event) {\n hideTooltip();\n });\n }", "function removeListeners() {\n if (state.current.scrollContainers) {\n state.current.scrollContainers.forEach(function (element) {\n return element.removeEventListener('scroll', scrollChange, true);\n });\n state.current.scrollContainers = null;\n }\n\n if (state.current.resizeObserver) {\n state.current.resizeObserver.disconnect();\n state.current.resizeObserver = null;\n }\n } // add scroll-listeners / observers", "function unblockPageScroll() {\n $changeHeaderBackdrop.unbind('mousewheel DOMMouseScroll touchmove');\n $changeHeader.unbind('mousewheel DOMMouseScroll touchmove');\n if (!pointbreak.isCurrentBreakpoint(PointBreak.SMALL_BREAKPOINT)) {\n $('body').css('overflow', 'auto');\n $('#back-to-top').css('visibility', 'visible');\n }\n }", "removeFakeScrollHeight() {\n this.DOM.listener.removeChild(this.DOM.scroll);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
pass out all the props from class App to class TodosListItems
renderItems(){ const props = _.omit(this.props,'todos'); return _.map(this.props.todos, (todo,index) => <TodosListItems key={index} {...todo} {...props}/> ); }
[ "renderItems() {\n\n const props = _.omit(this.props, 'todos');\n\n return _.map(this.props.todos, (todo, index) =>\n <TodosListItem key={index} {...todo} {...props} />);\n }", "function AppView(props) {\n this.props = props;\n this.state = {\n todos: this.props.todos.toJSON()\n };\n _super.call(this, props);\n }", "function TodoList(props, context) {\n\tconst { todos, ui } = props;\n\tconst visibleTodos = ui.visibleTodos();\n\n\tif (todos.length === 0) {\n\t\treturn <p className=\"noItems\">What do you want to do today?</p>\n\t} else if (visibleTodos.length === 0) {\n\t\treturn <p className=\"noItems\">No items are { ui.filter }</p>\n\t}\n\n\treturn <div>\n\t\t{\n\t\t\tvisibleTodos.map( t => <TodoItem key={ t.$().pid() } todo={ t } todos={ todos } /> )\n\t\t}\n\t\t</div>\n}", "constructor() { \n \n ListItems.initialize(this);\n }", "function App () {\n return (\n <div>\n <TodoPanel todos={todolist} title='My Todos' />\n \n </div>\n )\n}", "constructor(props) {\n this.itemClass = props.itemClass;\n this.itemCache = props.itemCache;\n this.listClass = props.listClass;\n this.listCache = props.listCache;\n }", "init(listItems, onRemove) { //was fruits??\n for(let i = 0; i < listItems.length; i++) {\n toDoList.add(listItems[i]);\n }\n toDoList.onRemove = onRemove;\n }", "function AppListItem({ title, subtitle, EndComponent, onPress }) {\n return (\n <TouchableHighlight\n style={styles.container}\n onPress={onPress}\n underlayColor={AppColors.otherColor}\n >\n <View style={styles.viewContainer}>\n <View style={styles.textContainer}>\n <AppText style={styles.title}> {title} </AppText>\n {subtitle && <AppText style={styles.subtitle}> {subtitle} </AppText>}\n </View>\n <View style={styles.endContainer}>{EndComponent}</View>\n </View>\n </TouchableHighlight>\n );\n}", "render() {\n return this.props.todos.map((todo) => (\n <TodoItem\n key={todo.id}\n todo={todo}\n markComplete={this.props.markComplete} // Set TodoItem prop based on Todos prop\n delTodo={this.props.delTodo}\n />\n ));\n }", "get Todos() {\n\t\treturn _state.todos.map(item => new Todo(item))\n\t}", "itemList() {\n // Turns an array of names into an array of JSX Item ojects that contain the names\n return (storage.getList().map((value, index, array) => {\n // Nav.Link is a bootstrap object\n // eventKey needs to be unique. I set it to the name of the note\n // onClick is a function that calls another function that was passed down from Layout.js. This enables us to pass it the titleof the note that this menu item is about because the arrow syntax outer function is ddefined here and therefore has acess to this classe's varables which it can then pass to the function from Layout.js.\n return (\n <>\n <Nav.Link\n eventKey={value}\n onClick={() => {this.props.onItemClick(value)}}\n // If this note is the current note (defined by Layout) add the class active\n className={(value === this.props.note) ? \"active\" : \"\"}\n >\n {value}\n <div\n // This makes the delete button appear to the right of the name of the note\n style={{\n float: \"right\"\n }}\n >\n <DeleteNoteButton note={value} />\n </div>\n </Nav.Link>\n </>\n );\n }));\n }", "function App()\n {\n /**\n * Creates a new Item in the todos list.\n *\n * @param {string} content - The text for the item.\n */\n this.createItem = function(content)\n {\n // Ensure that content is a string. If so then create a new `Item` entry in `todoList`.\n if (typeof content === 'string')\n {\n todoList.create(\n {\n content: content,\n order: todoList.nextOrder(),\n done: false\n });\n }\n };\n\n /**\n * Sets the app state with the new filter type and updates `Backbone.History`.\n *\n * @param {string} filter - Filter type to select.\n */\n this.selectFilter = function(filter)\n {\n // When setting a value on a `Backbone.Model` if the value is the same as what is being set a change event will\n // not be fired. In this case we set the new state with the `silent` option which won't fire any events then\n // we manually trigger a change event so that any listeners respond regardless of the original state value.\n appState.set({ filter: filter }, { silent: true });\n appState.trigger('change', appState);\n\n // Update the history state with the new filter type.\n Backbone.history.navigate(filter);\n };\n\n /**\n * Creates and shows a new ManageTodosView then fetches the collection.\n *\n * @returns {*}\n */\n this.showTodos = function()\n {\n if (this.currentView) { this.currentView.close(); }\n\n Backbone.history.navigate(appState.get('filter'), { replace: true });\n\n this.currentView = new ManageTodosView();\n\n // Fetch all the todos items from local storage. Any listeners for `todoList` reset events will be invoked.\n todoList.fetch({ reset: true });\n\n return this.currentView;\n };\n\n // Wire up the main eventbus to respond to the following events. By passing in `this` in the third field to\n // `on` that sets the context when the callback is invoked.\n eventbus.on('app:create:item', this.createItem, this);\n eventbus.on('app:select:filter', this.selectFilter, this);\n\n // Initialize the `AppRouter` and set up a catch all handler then invokes `Backbone.history.start` with the root\n // path of the App.\n new AppRouter();\n\n // Defines a catch all handler for all non-matched routes (anything that isn't `all`, `active` or `completed`). If\n // a user is logged in the catch all navigates to `all` triggering the route and replacing the invalid route in\n // the browser history.\n Backbone.history.handlers.push(\n {\n route: /(.*)/,\n callback: function() { Backbone.history.navigate('all', { trigger: true, replace: true }); }\n });\n\n // This regex matches the root path, so that it can be set in `Backbone.history.start`\n var root, urlMatch;\n\n // Construct the root path to the web app which is the path above the domain that may include `index.html` or\n // `indexSrc.html` depending on the runtime. For instance in WebStorm when creating a local server `index.html` is\n // included in the URL. Running on an actual web server often `index.html` is not put into the URL. When running\n // the app from source code transpiled in the browser `indexSrc.html` is always in the URL.\n if (typeof window.location !== 'undefined')\n {\n const windowLocation = window.location.toString();\n\n if (windowLocation.includes('.html'))\n {\n urlMatch = windowLocation.match(/\\/\\/[\\s\\S]*\\/([\\s\\S]*\\/)([\\s\\S]*\\.html)/i);\n root = urlMatch && urlMatch.length >= 3 ? '' + urlMatch[1] + urlMatch[2] : undefined;\n }\n else\n {\n urlMatch = windowLocation.match(/\\/\\/[\\s\\S]*\\/([\\s\\S]*\\/)/i);\n root = urlMatch && urlMatch.length >= 2 ? urlMatch[1] : undefined;\n }\n }\n\n Backbone.history.start({ root: root });\n\n // -----\n\n /**\n * Creates the initial displayed view based given if a user is currently logged into the app.\n *\n * @type {View} Stores the current active view.\n */\n this.currentView = this.showTodos();\n }", "listTodos(){\n renderTodoList(filterList(getTodos(this.lsKey)), this.element);\n this.addCompleteListeners();\n this.addDeleteListeners();\n this.updateTasksLeft();\n }", "constructor(toDoList){\n this._toDoListId = toDoList._id;\n this._title = toDoList.title;\n this._tasks = toDoList.tasks;\n }", "renderSidebarList() {\n var sidebarItems = [\n {key: \"offers\", icon: \"md-edit\"},\n {key: \"settings\", icon: \"md-settings\"},\n {key: \"help\", icon: \"md-help\"},\n {key: \"dashboard\", icon: \"md-info\"},\n\n ];\n\n var listItems = [\n <Ons.ListItem\n key='user'\n tappable={false}>\n <div className='list-item__title'>\n <strong>{this.state.currentUser.name}</strong>\n </div>\n <div className='list-item__subtitle'>\n {this.state.currentUser.contactInformation}\n </div>\n </Ons.ListItem>\n ];\n\n for (let i in sidebarItems) {\n var sidebarItem = sidebarItems[i];\n\n listItems.push(\n <Ons.ListItem\n key={sidebarItem.key}\n tappable={true}\n onClick={this.handleSidebarClick.bind(this, sidebarItem.key)}>\n <div className='left'>\n <Ons.Icon icon={sidebarItem.icon}/>\n </div>\n <div className='center'>\n {this.l(`tabs.${sidebarItem.key}`)}\n </div>\n </Ons.ListItem>\n )\n }\n\n return (\n <Ons.List>\n {listItems}\n </Ons.List>\n )\n }", "renderLists() {\n\t\treturn _.map(this.props.lists, (list,listKey) => { \n\t\t\treturn (\n\t <div className={`todo-list ${list.type}`} key={listKey}>\n\t \t<div className=\"todo-list-header\">\n\t \t\t<button \n\t \t\t\tclassName=\"btn btn-graphic\" \n\t \t\t\ttitle=\"Delete List\" \n\t \t\t\tonClick={() => this.props.removeList(this.props.user.uid,listKey)}>\n\t \t\t\t<p>X</p>\n\t \t\t</button>\n\t\t \t<button \n\t\t\t \tclassName=\"btn btn-graphic\" \n\t\t\t \ttitle=\"Edit\" \n\t\t\t \tonClick={() => this.edit(listKey)}>\n\t\t\t \t{<p>&#x270E;</p>}\n\t\t \t</button>\n\t\t \t<h2>{list.title}</h2>\n\t \t</div>\n\n\t \t<ul className=\"list-group list-group-flush\">\n\t \t{(list.items).map((item,index) => (\n\t\t\t\t\t<ListItem\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\titem={item[0]}\n\t\t\t\t\t\tcomplete={item[1]}\n\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\tlistName={listKey}\n\t\t\t\t/>))}\n\t \t</ul>\n\t </div>\n\t );\n \t});\n\t}", "constructor() { \n \n ListSharedItems.initialize(this);\n }", "function TodoPanel ({ title, todos,users }) {\n return (\n <Fragment>\n <h1>{title}</h1>\n <TodoList todos={todos} />\n \n </Fragment>\n )\n}", "function AppView() {\n this.el = \"#todoapp\";\n _super.call(this);\n this.inputText = this.$(\"#input-text\");\n this.inputAdd = this.$(\"#input-button\");\n this.inputClear = this.$(\"#input-clear\");\n this.containerIncomplete = this.$(\"#todos-incomplete\");\n this.containerCompleted = this.$(\"#todos-completed\");\n this.inputClear.click(this.clearTodos.bind(this));\n this.todos = new BackboneApp.TodoList(\"my-todos\");\n this.todos.on(\"add\", this.onAddTodo, this);\n this.todos.on(\"change:completed\", this.onChangeTodo, this);\n this.todos.fetch();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts an RGB object to an HSB object
function rgb2hsb(rgb) { var hsb = { h: 0, s: 0, b: 0 }; var min = Math.min(rgb.r, rgb.g, rgb.b); var max = Math.max(rgb.r, rgb.g, rgb.b); var delta = max - min; hsb.b = max; hsb.s = max !== 0 ? 255 * delta / max : 0; if(hsb.s !== 0) { if(rgb.r === max) { hsb.h = (rgb.g - rgb.b) / delta; } else if(rgb.g === max) { hsb.h = 2 + (rgb.b - rgb.r) / delta; } else { hsb.h = 4 + (rgb.r - rgb.g) / delta; } } else { hsb.h = -1; } hsb.h *= 60; if(hsb.h < 0) { hsb.h += 360; } hsb.s *= 100/255; hsb.b *= 100/255; return hsb; }
[ "function rgb2hsb(rgb) {\n var hsb = { h: 0, s: 0, b: 0 };\n var min = Math.min(rgb.r, rgb.g, rgb.b);\n var max = Math.max(rgb.r, rgb.g, rgb.b);\n var delta = max - min;\n hsb.b = max;\n hsb.s = max !== 0 ? 255 * delta / max : 0;\n if( hsb.s !== 0 ) {\n if( rgb.r === max ) {\n hsb.h = (rgb.g - rgb.b) / delta;\n } else if( rgb.g === max ) {\n hsb.h = 2 + (rgb.b - rgb.r) / delta;\n } else {\n hsb.h = 4 + (rgb.r - rgb.g) / delta;\n }\n } else {\n hsb.h = -1;\n }\n hsb.h *= 60;\n if( hsb.h < 0 ) {\n hsb.h += 360;\n }\n hsb.s *= 100/255;\n hsb.b *= 100/255;\n return hsb;\n }", "function rgb2hsb(rgb) {\n\t var hsb = { h: 0, s: 0, b: 0 };\n\t var min = Math.min(rgb.r, rgb.g, rgb.b);\n\t var max = Math.max(rgb.r, rgb.g, rgb.b);\n\t var delta = max - min;\n\t hsb.b = max;\n\t hsb.s = max !== 0 ? 255 * delta / max : 0;\n\t if (hsb.s !== 0) {\n\t if (rgb.r === max) {\n\t hsb.h = (rgb.g - rgb.b) / delta;\n\t } else if (rgb.g === max) {\n\t hsb.h = 2 + (rgb.b - rgb.r) / delta;\n\t } else {\n\t hsb.h = 4 + (rgb.r - rgb.g) / delta;\n\t }\n\t } else {\n\t hsb.h = -1;\n\t }\n\t hsb.h *= 60;\n\t if (hsb.h < 0) {\n\t hsb.h += 360;\n\t }\n\t hsb.s *= 100 / 255;\n\t hsb.b *= 100 / 255;\n\t return hsb;\n\t }", "function rgb2hsb(rgb) {\n var hsb = { h: 0, s: 0, b: 0 };\n var min = Math.min(rgb.r, rgb.g, rgb.b);\n var max = Math.max(rgb.r, rgb.g, rgb.b);\n var delta = max - min;\n hsb.b = max;\n hsb.s = max !== 0 ? 255 * delta / max : 0;\n if(hsb.s !== 0) {\n if(rgb.r === max) {\n hsb.h = (rgb.g - rgb.b) / delta;\n } else if(rgb.g === max) {\n hsb.h = 2 + (rgb.b - rgb.r) / delta;\n } else {\n hsb.h = 4 + (rgb.r - rgb.g) / delta;\n }\n } else {\n hsb.h = -1;\n }\n hsb.h *= 60;\n if(hsb.h < 0) {\n hsb.h += 360;\n }\n hsb.s *= 100/255;\n hsb.b *= 100/255;\n return hsb;\n }", "function rgb2hsb(rgb) {\n var hsb = { h: 0, s: 0, b: 0 };\n var min = Math.min(rgb.r, rgb.g, rgb.b);\n var max = Math.max(rgb.r, rgb.g, rgb.b);\n var delta = max - min;\n hsb.b = max;\n hsb.s = max !== 0 ? 255 * delta / max : 0;\n if( hsb.s !== 0 ) {\n if( rgb.r === max ) {\n hsb.h = (rgb.g - rgb.b) / delta;\n } else if( rgb.g === max ) {\n hsb.h = 2 + (rgb.b - rgb.r) / delta;\n } else {\n hsb.h = 4 + (rgb.r - rgb.g) / delta;\n }\n } else {\n hsb.h = -1;\n }\n hsb.h *= 60;\n if( hsb.h < 0 ) {\n hsb.h += 360;\n }\n hsb.s *= 100/255;\n hsb.b *= 100/255;\n return hsb;\n }", "function rgb2hsb(rgb) {\r\n\t\tvar hsb = { h: 0, s: 0, b: 0 };\r\n\t\tvar min = Math.min(rgb.r, rgb.g, rgb.b);\r\n\t\tvar max = Math.max(rgb.r, rgb.g, rgb.b);\r\n\t\tvar delta = max - min;\r\n\t\thsb.b = max;\r\n\t\thsb.s = max !== 0 ? 255 * delta / max : 0;\r\n\t\tif( hsb.s !== 0 ) {\r\n\t\t\tif( rgb.r === max ) {\r\n\t\t\t\thsb.h = (rgb.g - rgb.b) / delta;\r\n\t\t\t} else if( rgb.g === max ) {\r\n\t\t\t\thsb.h = 2 + (rgb.b - rgb.r) / delta;\r\n\t\t\t} else {\r\n\t\t\t\thsb.h = 4 + (rgb.r - rgb.g) / delta;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\thsb.h = -1;\r\n\t\t}\r\n\t\thsb.h *= 60;\r\n\t\tif( hsb.h < 0 ) {\r\n\t\t\thsb.h += 360;\r\n\t\t}\r\n\t\thsb.s *= 100/255;\r\n\t\thsb.b *= 100/255;\r\n\t\treturn hsb;\r\n\t}", "rgb2hsb(rgb) {\n let hsb = [];\n let rearranged = rgb.slice(0);\n let maxIndex = 0,minIndex = 0;\n let tmp;\n // Arranging rgb values from small to large, existing in the rearranged array\n for(let i=0;i<2;i++) {\n for(let j=0;j<2-i;j++) {\n if (rearranged[j] > rearranged[j + 1]) {\n tmp = rearranged[j + 1];\n rearranged[j + 1] = rearranged[j];\n rearranged[j] = tmp;\n }\n }\n }\n // The subscripts of rgb are 0, 1, 2 respectively, and the maxIndex and minIndex are used to store the subscripts of the maximum and minimum values in rgb.\n for(let i=0;i<3;i++) {\n if(rearranged[0]===rgb[i]) minIndex=i;\n if(rearranged[2]===rgb[i]) maxIndex=i;\n }\n // Calculate brightness\n hsb[2]=rearranged[2]/255.0;\n // Saturation\n hsb[1]=1-rearranged[0]/rearranged[2];\n // Excellent phase\n hsb[0]=maxIndex*120+60* (rearranged[1]/hsb[1]/rearranged[2]+(1-1/hsb[1])) *((maxIndex-minIndex+3)%3===1?1:-1);\n // Prevent hue from being negative\n hsb[0]=(hsb[0]+360)%360;\n return hsb;\n }", "function rgb2hsb(r, g, b)\r\n{\r\n r /= 255; g /= 255; b /= 255; // Scale to unity.\r\n var minVal = Math.min(r, g, b),\r\n maxVal = Math.max(r, g, b),\r\n delta = maxVal - minVal,\r\n HSB = {hue:0, sat:0, bri:maxVal},\r\n del_R, del_G, del_B;\r\n\r\n if( delta !== 0 )\r\n {\r\n HSB.sat = delta / maxVal;\r\n del_R = (((maxVal - r) / 6) + (delta / 2)) / delta;\r\n del_G = (((maxVal - g) / 6) + (delta / 2)) / delta;\r\n del_B = (((maxVal - b) / 6) + (delta / 2)) / delta;\r\n\r\n if (r === maxVal) {HSB.hue = del_B - del_G;}\r\n else if (g === maxVal) {HSB.hue = (1 / 3) + del_R - del_B;}\r\n else if (b === maxVal) {HSB.hue = (2 / 3) + del_G - del_R;}\r\n\r\n if (HSB.hue < 0) {HSB.hue += 1;}\r\n if (HSB.hue > 1) {HSB.hue -= 1;}\r\n }\r\n\r\n HSB.hue *= 360;\r\n HSB.sat *= 100;\r\n HSB.bri *= 100;\r\n\r\n return HSB;\r\n}", "function RGBtoHSB(rgb) {\n var r = rgb[0],\n g = rgb[1],\n b = rgb[2],\n max = Math.max(Math.max(r, g), b),\n min = Math.min(Math.min(r, g), b),\n hue = 0,\n saturation = 0;\n\n // get Hue\n if (max == min) {\n hue = 0;\n } else if (max == r) {\n hue = (60 * (g - b) / (max - min) + 360) % 360;\n } else if (max == g) {\n hue = 60 * (b - r) / (max - min) + 120;\n } else if (max == b) {\n hue = 60 * (r - g) / (max - min) + 240;\n }\n\n // get Saturation\n if (max === 0) {\n saturation = 0;\n } else {\n saturation = (max - min) / max;\n }\n\n return [mathRound(hue), mathRound(saturation * 100), mathRound(max / 255 * 100)];\n}", "function hsb2rgb(hsb) {\r\n var rgb = {};\r\n var h = Math.round(hsb.h);\r\n var s = Math.round(hsb.s * 255 / 100);\r\n var v = Math.round(hsb.b * 255 / 100);\r\n if(s === 0) {\r\n rgb.r = rgb.g = rgb.b = v;\r\n } else {\r\n var t1 = v;\r\n var t2 = (255 - s) * v / 255;\r\n var t3 = (t1 - t2) * (h % 60) / 60;\r\n if(h === 360) h = 0;\r\n if(h < 60) { rgb.r = t1; rgb.b = t2; rgb.g = t2 + t3; }\r\n else if(h < 120) {rgb.g = t1; rgb.b = t2; rgb.r = t1 - t3; }\r\n else if(h < 180) {rgb.g = t1; rgb.r = t2; rgb.b = t2 + t3; }\r\n else if(h < 240) {rgb.b = t1; rgb.r = t2; rgb.g = t1 - t3; }\r\n else if(h < 300) {rgb.b = t1; rgb.g = t2; rgb.r = t2 + t3; }\r\n else if(h < 360) {rgb.r = t1; rgb.g = t2; rgb.b = t1 - t3; }\r\n else { rgb.r = 0; rgb.g = 0; rgb.b = 0; }\r\n }\r\n return {\r\n r: Math.round(rgb.r),\r\n g: Math.round(rgb.g),\r\n b: Math.round(rgb.b)\r\n };\r\n }", "function hsb2rgb(hsb) {\n var rgb = {};\n var h = Math.round(hsb.h);\n var s = Math.round(hsb.s * 255 / 100);\n var v = Math.round(hsb.b * 255 / 100);\n if(s === 0) {\n rgb.r = rgb.g = rgb.b = v;\n } else {\n var t1 = v;\n var t2 = (255 - s) * v / 255;\n var t3 = (t1 - t2) * (h % 60) / 60;\n if(h === 360) h = 0;\n if(h < 60) { rgb.r = t1; rgb.b = t2; rgb.g = t2 + t3; }\n else if(h < 120) {rgb.g = t1; rgb.b = t2; rgb.r = t1 - t3; }\n else if(h < 180) {rgb.g = t1; rgb.r = t2; rgb.b = t2 + t3; }\n else if(h < 240) {rgb.b = t1; rgb.r = t2; rgb.g = t1 - t3; }\n else if(h < 300) {rgb.b = t1; rgb.g = t2; rgb.r = t2 + t3; }\n else if(h < 360) {rgb.r = t1; rgb.g = t2; rgb.b = t1 - t3; }\n else { rgb.r = 0; rgb.g = 0; rgb.b = 0; }\n }\n return {\n r: Math.round(rgb.r),\n g: Math.round(rgb.g),\n b: Math.round(rgb.b)\n };\n }", "rgb2hsb(rgb) {\n let hsb = [];\n let rearranged = rgb.slice(0);\n let maxIndex = 0,minIndex = 0;\n let tmp;\n //将rgb的值从小到大排列,存在rearranged数组里\n for(let i=0;i<2;i++) {\n for(let j=0;j<2-i;j++) {\n if (rearranged[j] > rearranged[j + 1]) {\n tmp = rearranged[j + 1];\n rearranged[j + 1] = rearranged[j];\n rearranged[j] = tmp;\n }\n }\n }\n //rgb的下标分别为0、1、2,maxIndex和minIndex用于存储rgb中最大最小值的下标\n for(let i=0;i<3;i++) {\n if(rearranged[0]===rgb[i]) minIndex=i;\n if(rearranged[2]===rgb[i]) maxIndex=i;\n }\n //算出亮度\n hsb[2]=rearranged[2]/255.0;\n //算出饱和度\n hsb[1]=1-rearranged[0]/rearranged[2];\n //算出色相\n hsb[0]=maxIndex*120+60* (rearranged[1]/hsb[1]/rearranged[2]+(1-1/hsb[1])) *((maxIndex-minIndex+3)%3===1?1:-1);\n //防止色相为负值\n hsb[0]=(hsb[0]+360)%360;\n return hsb;\n }", "function hsb2rgb(hsb) {\n\t\tvar rgb = {};\n\t\tvar h = Math.round(hsb.h);\n\t\tvar s = Math.round(hsb.s * 255 / 100);\n\t\tvar v = Math.round(hsb.b * 255 / 100);\n\t\tif(s === 0) {\n\t\t\trgb.r = rgb.g = rgb.b = v;\n\t\t} else {\n\t\t\tvar t1 = v;\n\t\t\tvar t2 = (255 - s) * v / 255;\n\t\t\tvar t3 = (t1 - t2) * (h % 60) / 60;\n\t\t\tif( h === 360 ) h = 0;\n\t\t\tif( h < 60 ) { rgb.r = t1; rgb.b = t2; rgb.g = t2 + t3; }\n\t\t\telse if( h < 120 ) {rgb.g = t1; rgb.b = t2; rgb.r = t1 - t3; }\n\t\t\telse if( h < 180 ) {rgb.g = t1; rgb.r = t2; rgb.b = t2 + t3; }\n\t\t\telse if( h < 240 ) {rgb.b = t1; rgb.r = t2; rgb.g = t1 - t3; }\n\t\t\telse if( h < 300 ) {rgb.b = t1; rgb.g = t2; rgb.r = t2 + t3; }\n\t\t\telse if( h < 360 ) {rgb.r = t1; rgb.g = t2; rgb.b = t1 - t3; }\n\t\t\telse { rgb.r = 0; rgb.g = 0; rgb.b = 0; }\n\t\t}\n\t\treturn {\n\t\t\tr: Math.round(rgb.r),\n\t\t\tg: Math.round(rgb.g),\n\t\t\tb: Math.round(rgb.b)\n\t\t};\n\t}", "function hsb2rgb(hsb) {\n var rgb = {};\n var h = Math.round(hsb.h);\n var s = Math.round(hsb.s * 255 / 100);\n var v = Math.round(hsb.b * 255 / 100);\n if(s === 0) {\n rgb.r = rgb.g = rgb.b = v;\n } else {\n var t1 = v;\n var t2 = (255 - s) * v / 255;\n var t3 = (t1 - t2) * (h % 60) / 60;\n if( h === 360 ) h = 0;\n if( h < 60 ) { rgb.r = t1; rgb.b = t2; rgb.g = t2 + t3; }\n else if( h < 120 ) {rgb.g = t1; rgb.b = t2; rgb.r = t1 - t3; }\n else if( h < 180 ) {rgb.g = t1; rgb.r = t2; rgb.b = t2 + t3; }\n else if( h < 240 ) {rgb.b = t1; rgb.r = t2; rgb.g = t1 - t3; }\n else if( h < 300 ) {rgb.b = t1; rgb.g = t2; rgb.r = t2 + t3; }\n else if( h < 360 ) {rgb.r = t1; rgb.g = t2; rgb.b = t1 - t3; }\n else { rgb.r = 0; rgb.g = 0; rgb.b = 0; }\n }\n return {\n r: Math.round(rgb.r),\n g: Math.round(rgb.g),\n b: Math.round(rgb.b)\n };\n }", "function hsb2rgb(hsb) {\n var rgb = {};\n var h = Math.round(hsb.h);\n var s = Math.round(hsb.s * 255 / 100);\n var v = Math.round(hsb.b * 255 / 100);\n if (s === 0) {\n rgb.r = rgb.g = rgb.b = v;\n } else {\n var t1 = v;\n var t2 = (255 - s) * v / 255;\n var t3 = (t1 - t2) * (h % 60) / 60;\n if (h === 360) h = 0;\n if (h < 60) { rgb.r = t1; rgb.b = t2; rgb.g = t2 + t3; }\n else if (h < 120) { rgb.g = t1; rgb.b = t2; rgb.r = t1 - t3; }\n else if (h < 180) { rgb.g = t1; rgb.r = t2; rgb.b = t2 + t3; }\n else if (h < 240) { rgb.b = t1; rgb.r = t2; rgb.g = t1 - t3; }\n else if (h < 300) { rgb.b = t1; rgb.g = t2; rgb.r = t2 + t3; }\n else if (h < 360) { rgb.r = t1; rgb.g = t2; rgb.b = t1 - t3; }\n else { rgb.r = 0; rgb.g = 0; rgb.b = 0; }\n }\n return {\n r: Math.round(rgb.r),\n g: Math.round(rgb.g),\n b: Math.round(rgb.b)\n };\n }", "function hsb2rgb(hsb) {\n\t var rgb = {};\n\t var h = Math.round(hsb.h);\n\t var s = Math.round(hsb.s * 255 / 100);\n\t var v = Math.round(hsb.b * 255 / 100);\n\t if (s === 0) {\n\t rgb.r = rgb.g = rgb.b = v;\n\t } else {\n\t var t1 = v;\n\t var t2 = (255 - s) * v / 255;\n\t var t3 = (t1 - t2) * (h % 60) / 60;\n\t if (h === 360) h = 0;\n\t if (h < 60) {\n\t rgb.r = t1;rgb.b = t2;rgb.g = t2 + t3;\n\t } else if (h < 120) {\n\t rgb.g = t1;rgb.b = t2;rgb.r = t1 - t3;\n\t } else if (h < 180) {\n\t rgb.g = t1;rgb.r = t2;rgb.b = t2 + t3;\n\t } else if (h < 240) {\n\t rgb.b = t1;rgb.r = t2;rgb.g = t1 - t3;\n\t } else if (h < 300) {\n\t rgb.b = t1;rgb.g = t2;rgb.r = t2 + t3;\n\t } else if (h < 360) {\n\t rgb.r = t1;rgb.g = t2;rgb.b = t1 - t3;\n\t } else {\n\t rgb.r = 0;rgb.g = 0;rgb.b = 0;\n\t }\n\t }\n\t return {\n\t r: Math.round(rgb.r),\n\t g: Math.round(rgb.g),\n\t b: Math.round(rgb.b)\n\t };\n\t }", "static rgbToHSL(r, g, b) {\n let h, s;\n if (typeof r === \"object\") {\n ({ g } = r);\n ({ b } = r);\n ({ r } = r);\n }\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const l = (max + min) / 2;\n\n if (max === min) {\n h = (s = 0);\n } else {\n const d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n h = (() => { switch (max) {\n case r: return ((g - b) / d) + (g < b ? 6 : 0);\n case g: return ((b - r) / d) + 2;\n case b: return ((r - g) / d) + 4;\n } })();\n\n h /= 6;\n }\n\n return {h, s, l};\n }", "function HSBtoRGB(_h, _s, _b)\n{\n \n var h_i = int(_h*6);\n var f = _h*6 - h_i;\n var p = _b*(1 - _s);\n var q = _b*(1 - f*_s);\n var t = _b*(1 - (1 - f)*_s);\n \n var r, g, b;\n \n if(h_i == 0)\n {\n r = _b;\n g = t;\n b = p;\n }\n \n else if(h_i == 1)\n {\n r = q;\n g = _b;\n b = p;\n }\n \n else if(h_i == 2)\n {\n r = p;\n g = _b;\n b = t;\n }\n \n else if(h_i == 3)\n {\n r = p;\n g = q;\n b = _b;\n }\n \n else if(h_i == 4)\n {\n r = t;\n g = p;\n b = _b;\n }\n \n else\n {\n r = _b;\n g = p;\n b = q;\n }\n\n return color(r*255, g*255, b*255);\n}", "function HSBtoRGB(hsb) {\n var h = hsb[0],\n s = hsb[1],\n v = hsb[2],\n r = 0,\n g = 0,\n b = 0,\n rgb = [],\n tempS = s / 100,\n tempV = v / 100,\n hi = Math.floor(h / 60) % 6,\n f = h / 60 - Math.floor(h / 60),\n p = tempV * (1 - tempS),\n q = tempV * (1 - f * tempS),\n t = tempV * (1 - (1 - f) * tempS);\n\n switch (hi) {\n case 0:\n r = tempV;\n g = t;\n b = p;\n break;\n case 1:\n r = q;\n g = tempV;\n b = p;\n break;\n case 2:\n r = p;\n g = tempV;\n b = t;\n break;\n case 3:\n r = p;\n g = q;\n b = tempV;\n break;\n case 4:\n r = t;\n g = p;\n b = tempV;\n break;\n case 5:\n r = tempV;\n g = p;\n b = q;\n break;\n }\n\n rgb = [mathRound(r * 255), mathRound(g * 255), mathRound(b * 255)];\n return rgb;\n}", "function rgbToHsv(r, g, b) {\n r = r / 255;\n g = g / 255;\n b = b / 255;\n\n var max = Math.max(r, g, b),\n min = Math.min(r, g, b),\n h,\n s,\n v = max,\n d = max - min;\n\n s = max === 0 ? 0 : d / max;\n\n if (max === min) {\n h = 0; // achromatic\n } else {\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n\n return {\n h: h,\n s: s,\n v: v\n };\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check lastname with regex & add/remove class
function checkLastname(lastname) { if (!lastname.match(nameReg)) { lastnameError.textContent = 'Le champ ne doit pas contenir de chiffres ou de caractères spéciaux et contenir au moins 2 caractères.'; formSub.lastname.classList.add('invalid'); lastnameValid = false; } else { lastnameError.textContent = ''; formSub.lastname.classList.remove('invalid'); formSub.lastname.classList.add('valid'); lastnameValid = true; } }
[ "function validateLastName(el) {\r\n if (!el.val().match(/^[a-zA-Z\\'\\-\\ ]+$/)) {\r\n } else {\r\n removeAlert(el, 'err-invalidAccntNo');\r\n }\r\n }", "function validateLastName(lname){ \n if(lname.match(/^[A-Za-z]+$/)) \n return true;\n else\n return false;\n }", "function isValidLastname() {\n var lastname = $(\"#lastname\").val();\n var reg = new RegExp(\"^[A-Z][a-z]+$\");\n\n var flag = false;\n if(lastname.length === 0) {\n $(\"#validation-lastname\").html(\"Please enter your last name.\");\n }\n else if(lastname.length > 25) {\n $(\"#validation-lastname\").html(\"Please enter no more than 25 characters.\");\n }\n else if(reg.test(lastname) === false) {\n $(\"#validation-lastname\").html(\"Please start with a capital letter and the following are only lower case letters.\");\n }\n else {\n $(\"#validation-lastname\").html(\"Last name is valid.\");\n flag = true;\n }\n\n return flag;\n}", "function validateNameLastName(){\t\t\n\t\t// Variables Name\n\t\tvar name = document.getElementById(\"name\").value;\n\t\tvar nameContainer = document.getElementsByClassName(\"name-container\")[0];\n\t\tvar spanName = document.createElement(\"span\");\n\t\tvar nameErrorCharacters = document.createTextNode(\"Caracteres inválidos en tu nombre\");\n\t\tvar nameErrorUpperCase = document.createTextNode(\"La primera letra de tu nombre debe ser en mayúscula\");\n\t\t// Otras variables\n\t\tvar letters = /^[a-zA-Z]+$/;\n\t \n\t\t// Validar si name posee caracteres de tipo alfabético \n\t\tif (!name.match(letters)){\n\t\t\tspanName.appendChild(nameErrorCharacters);\n\t\t\tnameContainer.appendChild(spanName);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Validar la primera letra del name como mayúsculas\n\t\tvar upperCaseLetters = /[A-Z]/;\n\t\tvar upperCaseName = name.charAt(0);\n\n\t\tif(!(upperCaseLetters.test(upperCaseName))){\n\t\t\tspanName.appendChild(nameErrorUpperCase);\n\t\t\tnameContainer.appendChild(spanName);\n\t\t\treturn false;\n\t\t}\n\t}", "function valid_last_name()\n\t{\n\t\t// Retrieves the customer value from the text field\n\t\tvar name=cust_form.cust_surname.value;\n\t\t// Check for the character validation\n\t\tvar exp=/\\D+$/;\n\t\tvar reg_name=new RegExp(exp);\n\t\tif(!(reg_name.test(name)))\n\t\t{\n\t\t\talert(\"Last Name must not contain any numbers\");\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t\t// returns true to indicate validation success\n\t\t\treturn true;\n\t\t\n\t}", "function validateLastName(){\n // Validates Last Name\n var last_name = $('#last_name');\n last_name.val(last_name.val().trim());\n if (last_name.val()== ''){\n last_name.parent().find('.error-text-wrap').text('*Required');\n last_name.parent().addClass('error-wrap');\n return false;\n }\n last_name.parent().removeClass('error-wrap');\n return true;\n\n }", "function class_name(name) {\n return /^[A-Z]/.test(_.last(name.split(/\\./)));\n}", "function checkLastName() {\n\tvar lastName = document.getElementById(\"lastName\").value;\n var lastNameMessage = document.getElementById(\"lastNameMessage\");\n var validChars = /^[a-zA-Z][-\\' a-zA-Z]+$/;\n\tvar validLastName = lastName.match(validChars);\n\tif (validLastName == null) {\n\t\tlastNameMessage.style.color = \"#ff6666\";\n\t\tlastNameMessage.innerHTML =\"&nbsp; Last name can only contain letters (can include a hyphen and/or apostrophe).\";\n\t\treturn false;\n\t}else{\n\t\tlastNameMessage.innerHTML =\"\";\n\t}\n}", "function validateLastName(){\n // Validates Last Name\n var $lastName = $('#last_name');\n $lastName.val($lastName.val().trim());\n if ($lastName.val()== ''){\n $lastName.closest(\".form-group\").find('.error-text-wrap').text('*Required');\n $lastName.closest(\".form-group\").addClass('error-wrap');\n return false;\n }\n return true;\n\n }", "function validate_name_last(errorFields) {\n\n var re_IsName = /^[A-Z][A-z ]*$/ // Alpha, capitalized\n var formField = 'name_last';\n// alert(\"Validating \"+formField);\n\n if ( $('#'+formField).val() == \"\" // Not blank\n || $('#'+formField).val() == null // Not null\n || $('#'+formField).val().search(re_IsName) == -1\n ) {\n errorFields.push(formField)\n// alert(formField+\" validation errors\");\n $(\"#\"+formField+\"Error\").html(\"Plese enter a Last Name, capitalized.3 (js)\");\n } else {\n// alert(\"No \"+formField+\" validation errors\");\n $(\"#\"+formField+\"Error\").html(\"\");\n }\n } //end function validate_name_last ", "function validateLastName(LN){\r\n\t\r\n\tif(alphaNumCheck(LN) == true){\r\n\t\tvalCheck2 = true;\r\n\t\treturn true;\r\n\t}\r\n\telse valCheck2 = false;\r\n\treturn false;\r\n}", "function validateUsername() {\n if (!/^[_a-z0-9]{5,}$/.test(this.value))\n this.classList.add('invalid');\n else\n this.classList.remove('invalid');\n}", "function ValidateLastName(inputText){\n var nameformat = /^[a-zA-Z]+$/;\n if (inputText.match(nameformat)) {\n return true;\n } \n else {\n alert(\"Please enter only letters in last name\");\n return false;\n }\n}", "function validateLast(){\r\n\r\n\t\r\n\tvar lName = document.forms[\"form\"][\"Lastname\"].value;\r\n\tvar pLname = document.getElementById(\"valLname\");\r\n\t\r\n\tif (lName == \"\")\r\n\t{\r\n\t\tpLname.innerHTML = \r\n\t\t\"Lastname is required\";\r\n\t\tpLname.classList.remove(\"valid\");\r\n\t\tpLname.classList.add(\"invalid\");\r\n\t\treturn false;\r\n\t}\t\r\n\telse if(lName.length > 50)\r\n\t{\r\n\t\tpLname.innerHTML = \r\n\t\t\"Lastname cannot be longer than 50 characters\";\r\n\t\tpLname.classList.remove(\"valid\");\r\n\t\tpLname.classList.add(\"invalid\");\r\n\t\treturn false;\r\n\t}\r\n\telse \r\n\t{\r\n\t\tpLname.innerHTML = \r\n\t\t\"Valid Lastname\";\r\n\t\tpLname.classList.remove(\"invalid\");\r\n\t\tpLname.classList.add(\"valid\");\r\n\t\treturn true;\r\n\t}\r\n\t\r\n}", "function checkFirstname(firstname) {\n\n if (!firstname.match(nameReg)) {\n firstnameError.textContent = 'Le champ ne doit pas contenir de chiffres ou de caractères spéciaux et contenir au moins 2 caractères.';\n formSub.firstname.classList.add('invalid');\n firstnameValid = false;\n } else {\n firstnameError.textContent = '';\n formSub.firstname.classList.remove('invalid');\n formSub.firstname.classList.add('valid');\n firstnameValid = true;\n }\n}", "function validateLastName() {\n\tif (!nameRegex.test(lastName.value) || lastName.value.length < 2) {\n\t\tvalid = false;\n\t\tmessage = \"Veuillez entrer 2 caractères ou plus pour le champ du nom.\";\n\t\tshowError(1, message);\n\n\t} else {\n\t\tvalid;\n\t\thideError(1);\n\t}\n\treturn valid;\n }", "function last_validation(last) {\n if (last == undefined) {\n alert(\"Last name should not be empty.\")\n return false;\n }\n var last_len = last.length;\n if (last_len == 0) {\n alert(\"Last Name should not be empty.\");\n return false;\n }\n var letters = /^[A-Za-z]+$/;\n if (last.match(letters)) {\n return true;\n } else {\n alert('Last name must contain alphabet characters only.');\n return false;\n }\n return true;\n }", "function handleChangeOfLastName(e) {\n setLAST_NAME(e.target.value)\n if(e.target.value.trim()!==\"\"){\n setCorrectLAST_NAME(true)\n }\n else{\n setCorrectLAST_NAME(false)\n }\n }", "function checkErrorFullName(value) {\n if(value.trim()=='') {\n var errorFullName = document.getElementById('errorFullName');\n var fullName = document.getElementById('fullName');\n errorFullName.classList.add('showElement');\n fullName.classList.add('invalidField');\n } \n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Modern team site backed by Office 365 group. For use in SP Online only. This will not work with Apponly tokens
createModernTeamSite(displayName, alias, isPublic = true, lcid = 1033, description = "", classification = "", owners, hubSiteId = "00000000-0000-0000-0000-000000000000", siteDesignId) { const postBody = { alias: alias, displayName: displayName, isPublic: isPublic, optionalParams: { Classification: classification, CreationOptions: { "results": [`SPSiteLanguage:${lcid}`, `HubSiteId:${hubSiteId}`], }, Description: description, Owners: { "results": owners ? owners : [], }, }, }; if (siteDesignId) { postBody.optionalParams.CreationOptions.results.push(`implicit_formula_292aa8a00786498a87a5ca52d9f4214a_${siteDesignId}`); } return this.getRootWeb().then((d) => __awaiter(this, void 0, void 0, function* () { const client = new SPHttpClient(); const methodUrl = `${d.parentUrl}/_api/GroupSiteManager/CreateGroupEx`; return client.post(methodUrl, { body: jsS(postBody), headers: { "Accept": "application/json;odata=verbose", "Content-Type": "application/json;odata=verbose;charset=utf-8", }, }).then(r => r.json()); })); }
[ "async function createOrUpdateWebApp() {\n const subscriptionId =\n process.env[\"APPSERVICE_SUBSCRIPTION_ID\"] || \"34adfa4f-cedf-4dc0-ba29-b6d1a69ab345\";\n const resourceGroupName = process.env[\"APPSERVICE_RESOURCE_GROUP\"] || \"testrg123\";\n const name = \"sitef6141\";\n const siteEnvelope = {\n kind: \"app\",\n location: \"East US\",\n serverFarmId:\n \"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp\",\n };\n const credential = new DefaultAzureCredential();\n const client = new WebSiteManagementClient(credential, subscriptionId);\n const result = await client.webApps.beginCreateOrUpdateAndWait(\n resourceGroupName,\n name,\n siteEnvelope\n );\n console.log(result);\n}", "create(name, description = \"\", ownerId, teamProperties = {}) {\r\n const groupProps = {\r\n \"description\": description && description.length > 0 ? description : \"\",\r\n \"owners@odata.bind\": [\r\n `https://graph.microsoft.com/v1.0/users/${ownerId}`,\r\n ],\r\n };\r\n return graph.groups.add(name, name, GroupType.Office365, groupProps).then((gar) => {\r\n return gar.group.createTeam(teamProperties).then(data => {\r\n return {\r\n data: data,\r\n group: gar.group,\r\n team: new Team(gar.group),\r\n };\r\n });\r\n });\r\n }", "createCommunicationSite(title, lcid = 1033, shareByEmailEnabled = false, url, description = \"\", classification = \"\", siteDesignId = \"00000000-0000-0000-0000-000000000000\", hubSiteId = \"00000000-0000-0000-0000-000000000000\", owner) {\r\n const props = {\r\n Classification: classification,\r\n Description: description,\r\n HubSiteId: hubSiteId,\r\n Lcid: lcid,\r\n Owner: owner,\r\n ShareByEmailEnabled: shareByEmailEnabled,\r\n SiteDesignId: siteDesignId,\r\n Title: title,\r\n Url: url,\r\n WebTemplate: \"SITEPAGEPUBLISHING#0\",\r\n WebTemplateExtensionId: \"00000000-0000-0000-0000-000000000000\",\r\n };\r\n const postBody = jsS({\r\n \"request\": extend({\r\n \"__metadata\": { \"type\": \"Microsoft.SharePoint.Portal.SPSiteCreationRequest\" },\r\n }, props),\r\n });\r\n return this.getRootWeb().then((d) => __awaiter(this, void 0, void 0, function* () {\r\n const client = new SPHttpClient();\r\n const methodUrl = `${d.parentUrl}/_api/SPSiteManager/Create`;\r\n return client.post(methodUrl, {\r\n body: postBody,\r\n headers: {\r\n \"Accept\": \"application/json;odata=verbose\",\r\n \"Content-Type\": \"application/json;odata=verbose;charset=utf-8\",\r\n },\r\n }).then(r => r.json()).then((n) => {\r\n if (hOP(n, \"error\")) {\r\n throw n;\r\n }\r\n if (hOP(n, \"d\") && hOP(n.d, \"Create\")) {\r\n return n.d.Create;\r\n }\r\n return n;\r\n });\r\n }));\r\n }", "async function create_team() {\n try {\n let bodyParams = {\n public: true,\n name: \"Node JS Team \",\n // Add internal members using their extension ids\n // Get your user extension id by calling the /restapi/v1.0/account/~/extension endpoint!\n members: [{id: \"590490017\"}, {id: \"595861017\"}],\n // You can also add members using their email address, especially for guest members who are not under your account company.\n // members: [{email: \"member.1@gmail.com\"}, { email: \"member.2@gmail.com\"}, {id: \"[extensionId]\"}],\n description: \"Let's talk about Node JS\"\n }\n var endpoint = \"/team-messaging/v1/teams\"\n var resp = await platform.post(endpoint, bodyParams)\n var jsonObj = await resp.json()\n console.log(JSON.stringify(jsonObj))\n } catch (e) {\n console.log(e.message)\n }\n}", "static _createAwayTeam() {\n return IRON.group\n .create({\n groupName: \"away-team\",\n })\n .then((group) => {\n model.setAwayTeamGroupId(group.groupID);\n console.log(\"Away team group created\", group);\n return group;\n });\n }", "function createTeam() {\n inquirer.prompt(teamAdd).then(response => {\n if (response.team === \"Engineer\") {\n createEngineer();\n } else if (response.team === \"Intern\") {\n createIntern();\n } else if (response.team === \"None\") {\n const finalHTML = render(teamMembers)\n fs.writeFile(\"./output/team.html\", finalHTML, function (err) {\n if (err) {\n return console.log(err);\n }\n console.log(\"File written!\");\n });\n }\n })\n}", "function createTeam() {\n inquirer.prompt(teamAdd).then(response => {\n switch (response.team) {\n case \"Engineer\":\n createTeamMember(engineerQuestions, Engineer);\n break;\n case \"Intern\":\n createTeamMember(internQuestions, Intern);\n break;\n default:\n // if none, render team members array into file\n const finalHTML = render(teamMembers)\n fs.writeFile(\"./output/team.html\", finalHTML, function (err) {\n if (err) {\n return console.log(err);\n }\n console.log(\"File written!\");\n });\n }\n })\n}", "createTeam({org, name, description, repo_names, privacy, permission}) {\n return this.postData({path:`/orgs/${org}/teams`, data:{\n name: name,\n description: description,\n repo_names: repo_names,\n privacy: privacy, // secret or closed\n permission: permission // pull, push, admin\n }}).then(response => {\n return response.data;\n });\n }", "function createMultidev(site,multidevName) {\n App.Utils.Log.msg(['Creating new multidev', multidevName,'for site',site.name]);\n let results = exec.sync('terminus',['multidev:create',site.name,multidevName]);\n return results;\n}", "function createTeam()\n{\n\tvar name = escape($('#NewGroupName').attr('value'));\n\tvar desc = escape($('#NewGroupNote').attr('value'));\n\n\tif (desc == 'undefined') \n\t\tdesc = '';\n\tif (name != 'undefined')\n\t{\n\t\t$.get(\"Services/UpdateClientTeam.aspx?TeamName=\" + name + \"&TeamDesc=\" + desc + \"&ClientId=\" + clientid + \"&action=create\", function(data){\n\t\t\tteamid = data;\n\t\t\tloadTeams(clientid, teamid);\n\t\t\tloadDepts();\n\t\t\tloadClientResources(teamid, clientid, deptlistDropDown.attr('value'));\n\t\t\t$('#TeamGrid tbody').empty();\n\t\t\t//set the group name and note labels\n\t\t\t$('#GroupName').text($('#NewGroupName').attr('value'));\n\t\t\t$('#GroupNote').text($('#NewGroupNote').attr('value'));\n\t\t\tResetTeamGrid();\n\t\t\t//console.log('calling SelectTeam from createTeam...');\n\t\t\t//SelectTeam(teamid);\n\t\t});\n\t\treturn true;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n}", "createTeam (callback) {\n\t\tif (this.dontCreateTeam) { return callback(); }\n\t\tthis.teamFactory.createRandomTeam(\n\t\t\t(error, response) => {\n\t\t\t\tif (error) { return callback(error); }\n\t\t\t\tthis.team = response.team;\n\t\t\t\tcallback();\n\t\t\t},\n\t\t\t{ token: this.currentUser.accessToken }\n\t\t);\n\t}", "function createTeam({org, name, description, repo_names, privacy, permission}) {\n return this.postData({path:`/orgs/${org}/teams`, data:{\n name: name,\n description: description,\n repo_names: repo_names,\n privacy: privacy, // secret or closed\n permission: permission // pull, push, admin\n }}).then(response => {\n return response.data;\n });\n}", "createTeam(properties) {\r\n return this.clone(Group, \"team\").putCore({\r\n body: jsS(properties),\r\n });\r\n }", "function bm_add_new_page_group() {\n var data = {};\n data['roleId'] = $('body').attr('active-role');\n\n ajax_call('service/banner_management/load_page_group_view', 'POST', data, function(response) {\n if (response && response.status == 'error') {\n $('body').alertMessage({ type: 'error', message: response.message });\n } else {\n $('.data-result-panel').html(response);\n }\n }, '', { \"showLoader\": true, \"type\": \"form\" });\n}", "function createGroup() {\n\t\t\tvar uuid = common.guid();\n\n\t\t\tvar newGroup = {\n\t\t\t\tdisplayName: uuid,\n\t\t\t\tmailEnabled: false, // Set to true for mail-enabled groups.\n\t\t\t\tmailNickname: uuid,\n\t\t\t\tsecurityEnabled: true // Set to true for security-enabled groups. Do not set this property if creating an Office 365 group.\n\t\t\t};\n\n\t\t\tvar req = {\n\t\t\t\tmethod: 'POST',\n\t\t\t\turl: baseUrl + '/myOrganization/groups',\n\t\t\t\tdata: newGroup\n\t\t\t};\n\n\t\t\treturn $http(req);\n\t\t}", "function createBetaGroup(api, body) {\n return api_1.POST(api, `/betaGroups`, { body })\n}", "createNewTeam(){\n\n\t\tlet userId = getUserId();\n\t\tlet newTeam = this.currentDocument\n\t\tnewTeam.owner = userId;\n\t\tnewTeam.members = [userId];\n\n\t\tfirebase.firestore().collection(\"teams\").add(newTeam)\n\t\t.catch(function(error) {\n\t\t\tconsole.error(\"Error adding a new team: \", error);\n\t\t});\n\n\n\t}", "function CompanyCreation(cookie, securityToken, customerusers, tenantusers, customerName, tenantName, partnerdata, SUName, dbName, servertype, req) {\n\n logger.setLevel('info');\n logger.info(\"Start CompanyCreation request...\");\n\n var trustedConnection=true;\n if (servertype.includes(\"HANA\")) {\n trustedConnection= false;\n }\n var startDate = new Date(partnerdata.PeriodStarts);\n var year = startDate.getFullYear();\n var month = startDate.getMonth();\n var day = startDate.getDate();\n var endDateCalc = new Date(year + 1, month, day - 1)\n var endDate = getFormattedDate(endDateCalc);\n var currentYear = new Date()\n var periodNumber;\n switch (req.financialPeriods) {\n case \"Y\":\n periodNumber = 1;\n break;\n case \"Q\":\n periodNumber = 4;\n break;\n case \"M\":\n periodNumber = 12;\n }\n var headers = {\n \"Content-Type\": \"application/json\",\n \"securityToken\": securityToken,\n \"Cookie\": cookie\n\n }\n\n // new\n if (partnerdata.CreationMethod == \"Normal\") {\n var option = {\n url: SldURL + \"/Customers/CreateCustomerAsync\",\n method: \"POST\",\n headers: headers,\n json: {\n Customer:\n {\n name: customerName, type: \"Customer\", contactPerson: req.contactFirstName + \" \" + req.contactLastName, phone: req.contactPhone,\n email: req.contactEmail, description: \"OEM Customer\", LicenseFile: { ID: partnerdata.LicenseFile_Id }, country: req.country,\n users: customerusers,\n\n tenants: [\n {\n purpose: \"Productive\", contactPerson: req.contactFirstName + \" \" + req.contactLastName, phone: req.contactPhone,\n email: req.contactEmail,\n serviceUnit: { id: partnerdata.HostingUnit_Id, name: SUName, status: \"Online\", purpose: \"Productive\" },\n /*licenseFile: { \"id\": partnerdata.LicenseFile_Id },*/\n companyDatabase: {\n companyName: tenantName, creationOption: 0, name: dbName,\n localization: partnerdata.LocalSettings, chartOfAccounts: partnerdata.ChartOfAccount, defaultLang: partnerdata.SystemLanguage,\n periodCode: currentYear.getFullYear(), periodName: currentYear.getFullYear(),\n periodSubType: req.financialPeriods, periodNumber: periodNumber, periodStartDate: req.startFiscalYear, periodEndDate: endDate,\n isTrustedConnection: true //windows auth\n },\n\n users: tenantusers\n\n }]\n }\n }\n }\n }\n //solution package (.PAK)\n else if (partnerdata.CreationMethod == \"Package\") {\n var option = {\n url: SldURL + \"/Customers/CreateCustomerAsync\",\n method: \"POST\",\n headers: headers,\n json: {\n Customer:\n {\n name: customerName, type: \"Customer\", contactPerson: req.contactFirstName + \" \" + req.contactLastName, phone: req.contactPhone,\n email: req.contactEmail, description: \"OEM Customer\", LicenseFile: { ID: partnerdata.LicenseFile_Id }, country: req.country,\n users: customerusers,\n\n tenants: [\n {\n purpose: \"Productive\", contactPerson: req.contactFirstName + \" \" + req.contactLastName, phone: req.contactPhone,\n email: req.contactEmail,\n serviceUnit: { id: partnerdata.HostingUnit_Id, \"name\": SUName, status: \"Online\", purpose: \"Productive\" },\n /* licenseFile: { id: partnerdata.LicenseFile_Id },*/\n companyDatabase: {\n companyName: tenantName, creationOption: 1, name: dbName,\n localization: partnerdata.LocalSettings, chartOfAccounts: partnerdata.ChartOfAccount, defaultLang: partnerdata.SystemLanguage,\n periodCode: currentYear.getFullYear(), periodName: currentYear.getFullYear(),\n periodSubType: req.FinancialPeriods, periodNumber: periodNumber, periodStartDate: req.startFiscalYear, /*periodEndDate: \",\",*/\n isTrustedConnection: true, packageFilePath: partnerdata.BackupPackage,\n },\n\n users: tenantusers\n\n }]\n }\n }\n }\n }\n\n //SQL backup file\n else if (partnerdata.CreationMethod == \"Backup\") {\n var option = {\n url: SldURL + \"/Customers/CreateCustomerAsync\",\n method: \"POST\",\n headers: headers,\n json: {\n Customer:\n {\n name: customerName, type: \"Customer\", contactPerson: req.contactFirstName + \" \" + req.contactLastName, phone: req.contactPhone,\n email: req.contactEmail, description: \"OEM Customer\", LicenseFile: { ID: partnerdata.LicenseFile_Id }, country: req.country,\n users: customerusers,\n\n tenants: [\n {\n purpose: \"Productive\", contactPerson: req.contactFirstName + \" \" + req.contactLastName, phone: req.contactPhone,\n email: req.contactEmail,\n serviceUnit: { id: partnerdata.HostingUnit_Id, \"name\": SUName, status: \"Online\", purpose: \"Productive\" },\n licenseFile: { id: partnerdata.LicenseFile_Id },\n companyDatabase: {\n companyName: tenantName, creationOption: 2, name: dbName,\n /* localization: \"\", chartOfAccounts: null, defaultLang: \"\",*/ backupFilePath: partnerdata.BackupPackage,\n isTrustedConnection: trustedConnection //windows auth HANA backup work only with SBO Auto. (isTrustedConnection: false)\n },\n\n users: tenantusers\n }]\n }\n }\n }\n }\n\n return new Promise(function (resolve, reject) {\n // Start the request\n request(option, function (error, response, body) {\n if (!error && response.statusCode == 200) {\n console.log('Task ID:' + ' ' + response.body.d.CreateCustomerAsync);\n logger.setLevel('info');\n logger.info('Task ID:' + ' ' + response.body.d.CreateCustomerAsync);\n resolve(response.body.d.CreateCustomerAsync);\n }\n else {\n error = response.body.error.message.value;\n logger.setLevel('error');\n logger.error('company creation failed.Error:' + error);\n console.log('company creation failed.Error:' + error);\n reject(error);\n }\n });\n });\n}", "function createSharePointDocumentSet(obj) {\r\n\tcreateFolder(obj.siteUrl, obj.listName, obj.folderName,'0x0120D520', obj.success, obj.error);\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform a deleteVideo request
function deleteVideo(videoName) { var requestData = '{' + '"command" : "deleteVideo",' + '"arguments" : {' + '"video" : "' + videoName + '"' + '}' + '}'; makeAsynchronousPostRequest(requestData, refresh, null); // Defined in "/olive/scripts/master.js". }
[ "function deleteVideo(req, res){\n var id = req.params.id;\n var remaining = videoModel.deleteVideo(id);\n res.json(remaining);\n }", "function deleteVideo() {\n axios\n .delete(`${config.apiUrl}/api/v1/video/${props.videoId}`)\n .then(() => {\n history.goBack()\n })\n }", "function deleteVideo(event) {\n event.stopPropagation();\n var id = $(this).data(\"id\");\n $.ajax({\n method: \"DELETE\",\n url: \"/api/videos/\" + id\n }).then(getVideos);\n }", "function deleteVideo(video) {\n\t\tconsole.log(\"deleteVideo button clicked\");\n\t\t// Send message to the server to delete the video\n\t\t$http.delete(colabConfig.colabServerBaseURL + \"/uploaded_videos/\" + video.file_name);\n\t\t\n\t\t// Remove the video from the list being displayed\n\t\t$scope.videoList.splice( $scope.videoList.indexOf(video), 1 );\n\t}", "deleteVideo(video){\n \tif(video){\n \t\tdeleteFromArray(video, this.videos);\n \t\tdeleteFromArray(video, this.selectedVideos);\n \t}\n }", "async function deleteVideo() {\n if (selectedVideo) {\n const index = Array.from(videoTimeline.childNodes).indexOf(selectedVideo);\n const duration = await getBlobDuration(recordings[index].src);\n decrementTotalTime(duration);\n removeRecording(index, duration);\n selectedVideo.remove();\n selectedVideo = null;\n }\n}", "function deleteVideo(referrer=0) {\n if (referrer > 0) {\n let req = new XMLHttpRequest();\n req.open('DELETE', `/profile/worksamples/video`, true);\n req.addEventListener('load', () => {\n if (req.status < 400) {\n showAlert(\"success\", \"far fa-check-circle\", `Your video was successfully deleted. Refreshing Page.`);\n document.getElementById('edit-video').click();\n setTimeout(() => {\n location.reload();\n }, 2500);\n } else {\n showAlert(\"alert\", \"fas fa-exclamation-triangle\", `Something went wrong trying to delete the video. Please try again later.`)\n }\n });\n req.setRequestHeader('Content-Type', 'application/json;charset=UTF-8')\n req.send(JSON.stringify({sampleKey: referrer}));\n } else {\n showAlert(\"caution\", \"fas fa-exclamation-triangle\", 'An invalid delete button was pressed. Try refreshing the page.');\n }\n}", "function deleteSegment(videoURI) {\n console.log(\"Deleting video id:\", videoURI);\n var xhr = new XMLHttpRequest();\n xhr.open('POST', 'https://sl9n39xipj.execute-api.us-east-1.amazonaws.com/alpha/deleteSegment', true);\n xhr.send(JSON.stringify({bucketURI: videoURI}));\n\n xhr.onloadend = function() { \n if(xhr.readyState == XMLHttpRequest.DONE) {\n console.log('Response:' + xhr.response);\n getVideos(false);\n }\n };\n}", "function deleteMovie (req, res) {\n\tvar uuid = req.swagger.params.uuid.value;\n\t\n\tvar dataClient = new Usergrid.client({\n\t\torgName:'leikamt',\n\t\tappName:'sandbox'\n\t});\n\t\n\tvar properties = {\n\t\tclient:dataClient,\n\t\tdata:{\n\t\t\t'type':'movies',\n\t\t\t'uuid':uuid\n\t\t}\n\t};\n\t\n\tvar entity = new Usergrid.entity(properties);\n\t\n\tentity.destroy(function (err, result) {\n\t\tif(err) {\n\t\t\tres.send(err);\n\t\t}\n\t\telse {\n\t\t\tres.send(\"Movie with uuid=\" + uuid + \" has been deleted!\");\n\t\t}\n\t});\n}", "delete(req, res) {\n Evolution.destroy({\n where: {\n id: req.params.id\n }\n })\n .then((deletedRecords) => {\n res.status(200).json(deletedRecords);\n })\n .catch((error) => {\n res.status(500).json(error);\n });\n }", "function deleteVideo(ctx) {\n /* Current window.timeline item */\n const targetNode = window.references[ctx.target.id]\n\n /* Linking the previous node */\n if (targetNode.prev) {\n targetNode.prev.next = targetNode.next\n }\n\n /* Linking the next node */\n if (targetNode.next) {\n targetNode.next.prev = targetNode.prev\n }\n\n /* Edge case when the deleted item is the head */\n if (window.timeline === targetNode) {\n window.timeline = targetNode.next\n }\n\n /* Updating the overall video duration */\n window.timelineDuration -= targetNode.data.metadata.duration\n \n /* Forcing the memory cleanup */\n delete targetNode\n \n /* UI removing animation */\n ctx.target.style.animation = 'disappear 0.5s'\n setTimeout(() => {\n $(ctx.target).remove()\n renderPreviousTimelineDimensions()\n }, 400)\n}", "function deleteMovie(req,res){\r\n Movie.remove({_id : req.params.id}, (err,result) => {\r\n if(err)\r\n res.send(err);\r\n res.json({msg: \"Movie successfully deleted\", result});\r\n });\r\n}", "function watchDeleteVideo(action) {\n var videoId;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function watchDeleteVideo$(_context21) {\n while (1) {\n switch (_context21.prev = _context21.next) {\n case 0:\n videoId = action.payload.videoId;\n _context21.next = 3;\n return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_12__[\"call\"])(dbDeleteVideo, videoId);\n\n case 3:\n case \"end\":\n return _context21.stop();\n }\n }\n }, _marked21);\n}", "deleteMediaAsset (request) {\n return this._dashboardRequest('delete', '/api/media/' + request.mediaId, request)\n }", "function deleteMovie(req,res,next){\n // var mID = req.params.id;\n db.none(`DELETE FROM theatre_movie_showtime WHERE movie_id=($1) AND theatre_id=($2);`,\n [req.params.mID, req.params.tID]) // how do we differentiate btw movie_id & theatre_id ??\n .then(()=>{\n console.log('DELETE COMPLETED!'); // testing status for DELETE\n next();\n })\n .catch(()=>{\n console.log('ERROR in DELETING MOVIE!');\n })\n}", "function deleteMovieByUuid(uuid, callback) {\n var options = {\n method: 'DELETE',\n endpoint:'movies/'+ uuid,\n qs: {ql: \"uuid=\"+ uuid}\n };\n // Send the request\n sharedVars.client.request(options, callback);\n}", "async deleteDrive({view,request,session,response}){\n if (request.ajax()){\n const id = request.input('id')\n const driverinfo = await Driverinfo.find(id);\n await driverinfo.delete();\n\n response.send({\n status: 'success'\n })\n }else{\n return 'Bad request Type...';\n }\n\n }", "static async remove(username, playlist_name, videoId) {\n const playlistRes = await db.query(\n `SELECT id FROM playlists\n WHERE username = $1 \n AND playlist_name = $2`,\n [username, playlist_name]\n );\n let playlist_id = playlistRes.rows[0].id;\n\n const result = await db.query(\n `DELETE FROM videos \n WHERE api_video_id = $1 AND playlist_id =$2\n RETURNING playlist_id`,\n [videoId, playlist_id]\n );\n const video = result.rows[0];\n\n if (!result) throw new NotFoundError(`No Video Found:`);\n }", "function delete_movie(req, res, next) {\n console.log('Movie delete');\n\n Movies.findByIdAndDelete(req.params.id)\n .then(movie => {\n console.log(movie);\n res.send(`movie ${movie} deleted!`);\n })\n .catch(error => next(error));\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
function that posts colorbox data to the 'createuser' controller
function submitUser() { //set the colorbox data to certain variables var username = $('.submit-user-wrapper input#first-name').val() + $('.submit-user-wrapper input#last-name').val(); var password = username; var email = $('.submit-user-wrapper input#email').val(); var phone = $('.submit-user-wrapper input#phone').val(); //post the data and close the colorbox $.post( "/add-user?_format=json", { username: username, password: password, email: email, phone: phone } ).done(function (data) { if (data == 'Please try a different user name.') { $('#cboxLoadedContent h2').prepend('<div>Error: ' + data + ''); } else { $.colorbox.close(); location.reload(); } console.log(data); }); }
[ "function user_create_form() {\n /* Request Configuration Params */\n var url = \"/users/signup\";\n var method = GET;\n var paramStr = null;\n\n ajaxRequestHandler(url, method, paramStr);\n}", "function createUser() {\n let usern = $('#usernameFld').val();\n let pswd = $('#passwordFld').val();\n let fname = $('#firstNameFld').val();\n let lname = $('#lastNameFld').val();\n let role = $('#roleFld').val();\n\n if (usern != '' && pswd != '' && fname != '' && role != '') {\n let newUser = new User(-1, usern, pswd, fname, lname, role);\n userService.createUser(newUser, function (registeredUsers) {\n renderUsers(registeredUsers);\n deleteUser();\n findUserById();\n });\n ClearFormFields();\n $('#alert').hide();\n } else {\n $('#alert').fadeIn();\n }\n }", "function userCreate() {\n WeDeploy\n .auth(address.auth)\n .createUser({\n name: create.name.value,\n email: create.email.value,\n password: create.password.value,\n color: 'color-' + Math.floor(Math.random() * 19)\n })\n .then(function() {\n create.submit.disabled = true;\n create.submit.innerText = 'Loading...';\n\n WeDeploy\n .auth(address.auth)\n .signInWithEmailAndPassword(create.email.value, create.password.value)\n .then(function() {\n document.location.href = './chat.html';\n })\n .catch(function() {\n alert('Sign-in failed.');\n });\n })\n .catch(function() {\n create.submit.disabled = false;\n create.submit.innerText = 'Create Account';\n alert('Sign-up failed.');\n })\n}", "function setupNewUserUI() {\n $(`#new-user-submit-button`).on(`click`, createUser);\n}", "function setupCreateUserDialog(){\n dialogs_context.append('<div title=\"Create user\" id=\"create_user_dialog\"></div>');\n $create_user_dialog = $('#create_user_dialog',dialogs_context);\n var dialog = $create_user_dialog;\n dialog.html(create_user_tmpl);\n\n //Prepare jquery dialog\n dialog.dialog({\n autoOpen: false,\n modal:true,\n width: 400\n });\n\n $('button',dialog).button();\n\n $('#create_user_form',dialog).submit(function(){\n var user_name=$('#username',this).val();\n var user_password=$('#pass',this).val();\n if (!user_name.length || !user_password.length){\n notifyError(\"User name and password must be filled in\");\n return false;\n }\n\n var user_json = { \"user\" :\n { \"name\" : user_name,\n \"password\" : user_password }\n };\n Sunstone.runAction(\"User.create\",user_json);\n $create_user_dialog.dialog('close');\n return false;\n });\n}", "newUser() {\n\t\tthis.listdiv.innerText = ''\n\t\tlet h2 = c('h2')\n\t\th2.innerText = 'Create an Account'\n\t\tthis.listdiv.append(h2)\n\t\tthis.newUserForm()\n\t}", "function fnCreateUser() {\n\t/*setup ajax post*/\n\t$.ajax({\n\t\t\"type\": \"POST\",\n\t\t\"url\": \"./services/api-user-create.php\",\n\t\t\"data\": $(\"#form-register\").serialize(),\n\t\t\"cache\": false,\n\t\t\"processData\": false,\n\t\tsuccess: function (jData) {\n\t\t\t/*update the users table*/\n\t\t\t// fnReadUserRegister();\n\t\t\tconsole.log(jData);\n\n\t\t\tswal(\"SIGNUP\", \"YOU HAVE SUCCESSFULLY REGISTERED\", \"success\");\n\t\t\tsetTimeout(function() {fnShowPopUp(\"section-login\");\t}, 10);\n\t\t},\n\t\terror: function (jData) {\n\t\t\tconsole.log(\"error - trying to create a user\");\n\t\t}\n\t});\n}", "function createUser(username, email, fullname, role_id)\n{\n\n}", "function addNewUserInAddressBook(){\n\tmodalPopup(align, topPopup, 800, padding, disableColor, disableOpacity, backgroundColor, borderColor, borderWeight, borderRadius, fadeOutTime, 'add_user_in_estimate_addressBook.php?name='+Math.random(), loadingImage, loadCompAddressbook);\t\n}", "clickOnCreateUser(dataObj) {\n browserActions.clickOn(this.createUser, \"Clicked on Create User Button\")\n }", "function handleCreateUserForm(event){\n\tif (DEBUG) {\n\t\tconsole.log (\"Triggered handleCreateUserForm\")\n\t}\n\t//Call the API method to extract the template\n\t//$this is the href\n\tgetUsersForm($(this).attr(\"href\"))\n\treturn false;\n}", "function createUser() {\n // references to the input fields\n let nameVal = document.querySelector('#name').value;\n let mailVal = document.querySelector('#mail').value;\n let imageSrc = document.querySelector('#imagePreview').src;\n\n // TODO: create a new object called newUser with the properties: name, mail & img. \n // Add newUser to _userRef (cloud firestore)\n // make sure to nagivate to home: navigateTo(\"home\");\n // EXTRA: reset input field values\n}", "function createUser(uid,name){\n var newTextField = $('<textfield>');\n newTextField.attr('id',uid);\n newTextField.text(name);\n newTextField.addClass(\"userBox\");\n newTextField.click(function(){\n GROUPDB.getGroupWithId(self.getSelectedGroupid(),function(group){\n if(group.isUserAdmin(OC.currentUser)){\n self.addMember(uid,name,false,true);\n if(group.isMember(uid)){\n self.displayError(\"User is already member of this group\");\n }else{\n GROUPDB.addMember(group.getGroupid(),uid,function(result){\n if(result){\n self.debugLog(\"add user:\"+uid+\" to group \"+group.getGroupid()+\" was successful\");\n }else{\n self.debugLog(\"add user error\");\n }\n });\n }\n }\n });\n });\n return newTextField;\n}", "function addNewUser() {\n\t// clear any filled-out fields in the \"Create User\" section\n\tjQuery('#username_-1,#password_-1').val('');\n\t\n\t// display the form\n\teditExistingUser( -1 );\n}", "function create_acct_submit_handler(e){\n // Check the user input. Helper function defined in index.js\n console.log(e.data)\n if (check_user_personal_information(e) === 0){\n return; // Input failed test so do not continue\n }\n\n //Prepear to make a server call which adds the new user\n let data = {\n first_name: e.data.first_name.val(),\n last_name: e.data.last_name.val(),\n username: e.data.username.val(),\n password: e.data.password1.val(),\n email: e.data.email.val()\n }\n const request = new Request(\"/createNewUser\", {\n method: \"post\",\n body: JSON.stringify(data),\n headers: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': 'application/json'\n }\n });\n\n // Now we make the request, the server will take care of this\n fetch(request).then((res) => {\n // We handle the response given back from the server\n if (res.status === 200){\n alert(\"Congratulations! You can now signup in using your username and password.\");\n setTimeout(create_login_screen, 0);\n return;\n }else {\n alert(\"Something went wrong try again. There may be a problem with the server at this time.\");\n }\n })\n}", "function setupCreateUserDialog(){\n dialogs_context.append('<div title=\\\"'+tr(\"Create user\")+'\\\" id=\"create_user_dialog\"></div>');\n $create_user_dialog = $('#create_user_dialog',dialogs_context);\n var dialog = $create_user_dialog;\n dialog.html(create_user_tmpl);\n\n //Prepare jquery dialog\n dialog.dialog({\n autoOpen: false,\n modal:true,\n width: 400\n });\n\n $('button',dialog).button();\n\n $('input[name=\"custom_auth\"]',dialog).parent().hide();\n $('select#driver').change(function(){\n if ($(this).val() == \"custom\")\n $('input[name=\"custom_auth\"]',dialog).parent().show();\n else\n $('input[name=\"custom_auth\"]',dialog).parent().hide();\n });\n\n\n $('#create_user_form',dialog).submit(function(){\n var user_name=$('#username',this).val();\n var user_password=$('#pass',this).val();\n var driver = $('#driver', this).val();\n if (driver == 'custom')\n driver = $('input[name=\"custom_auth\"]').val();\n\n if (!user_name.length || !user_password.length){\n notifyError(tr(\"User name and password must be filled in\"));\n return false;\n };\n\n var user_json = { \"user\" :\n { \"name\" : user_name,\n \"password\" : user_password,\n \"auth_driver\" : driver\n }\n };\n Sunstone.runAction(\"User.create\",user_json);\n $create_user_dialog.dialog('close');\n return false;\n });\n}", "function createNewUser(data){\n let msg = {\n jsonrpc: '2.0',\n id: '0',\n method: 'setUser',\n params: data,\n };\n console.log(\"Making new user request\" )\n doSend(msg); \n}", "function add(){\n\t\t\tsendCommand(\"list\",\"user\",{\"course\":courseId},function (data) {\n\t\t\t\tw2ui['add'+w2uiName].fields[0].options.items=[{id:-1,text:\"New\"}].concat(data);\n\t\t\t\tw2ui['add'+w2uiName].User={id:-1,text:\"New\"};\n\t\t\t\tsetValues('add'+w2uiName,{\"name\":undefined,\"email\":undefined,\"login\":undefined,\"password\":undefined,\"id\":-1})\n\t\t\t\topenDialog(\"add\"+w2uiName,\"500px\");\t\n\t\t\t});\n\t\t}", "onCreateUser() {\n this.usersController.send('onCreateUser');\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the selection to employees array and fades it out
function selectEmployee(selection) { employees.push(selection.attr('src')); selection.addClass('fade'); }
[ "function showSelectedEmployee(event, value) {\n if (value) {\n const employeeToDisplay = props.unassignedWorkers.filter((em) => em.id === value.id);\n setDisplayEmployee(employeeToDisplay[0]);\n } else {\n setDisplayEmployee(value);\n }\n }", "function prev(){\n let current = employeesArray.indexOf(selected);\n if(current === 0){\n selected = employeesArray[employees.length - 1];\n } else {\n selected = employeesArray[current - 1];\n }\n createModal();\n}", "function getSelectedEmployee(event, value) {\n if (value) {\n const employeeToDisplay = employeeDB.filter((em) => em.id === value.id);\n setDisplayEmployee(employeeToDisplay[0]);\n } else {\n setDisplayEmployee(value);\n }\n }", "function setEmployeeSelectEventListeners() {\n $('.associateSelect').change(\n function() {\n if (this.checked) {\n $(\"#hiddenFormElements\").append(\n '<input name=\"employeeIds\" type=\"hidden\" value=\"'\n + $(this).val() + '\">');\n $(this).parent().parent().addClass(\"selectedRow\");\n } else {\n var selector = '#hiddenFormElements input[value='\n + $(this).val() + ']';\n $(selector).remove();\n $(this).parent().parent().removeClass(\"selectedRow\");\n }\n });\n }", "function appendEmployees(){\n\n // Empties out any employee fields before filling them\n $(\".employee-header\").empty();\n $(\".employee-body\").empty();\n\n // Populates the employee name and information fields\n $(\".employee-header\").append('<th>Employee Name</th>');\n $(\".employee-header\").append('<th>Skillset</th>');\n $(\".employee-header\").append('<th>Sprint Points</th>');\n\n // Fades in the populated information to the DOM\n $(\".employee-info\").fadeIn(1000);\n getEmployee();\n}", "function employeeSelectOptions() {\n var select = document.getElementById('employees');\n var name = select.value;\n var employees = getEmployees();\n var selectHTML = '<option value=\"\">--Select Employee--</option>';\n for ( var i = 0; i < employees.length; i++ ) {\n selectHTML += '<option>' + employees[i] + '</option>';\n }\n select.innerHTML = selectHTML;\n select.value = name;\n}", "function selectEmployee(event){\n\tif(event.target !== gallery){\n\t\tlet card;\n\t\tlet tag = event.target.tagName;\n\t\tif(tag === 'IMG' || tag === 'H3' || tag === 'P'){\n\t\t\tcard = event.target.parentNode.parentNode;\n\t\t} else if(event.target.className === 'card-info-container' || event.target.className === 'card-img-container'){\n\t\t\tcard = event.target.parentNode;\n\t\t} else {\n\t\t\tcard = event.target;\n\t\t}\n\t\tconst employeeName = card.querySelector('.card-name').textContent;\n\t\tconst employeeIndex = employeesList.findIndex((entry) => {\n\t\t\tconst entryName = `${entry.name.first} ${entry.name.last}`;\n\t\t\tif(entryName === employeeName){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\tconst employee = employeesList[employeeIndex];\n\t\tdisplayModal(employee);\n\n\t}\n }", "function next(){\n let current = employeesArray.indexOf(selected);\n if(current === employeesArray.length - 1){\n selected = employeesArray[0];\n } else {\n selected = employeesArray[current + 1];\n }\n createModal();\n}", "function selectValueEmployee(listener){\n var listenerFunction = null;\n if (listener == undefined || !listener) {\n listenerFunction = 'refreshGridPanels';\n }\n\t\n\tvar form = View.getMainPanel();\n\tvar mo_type = form.getFieldValue(\"mo.mo_type\");\n\t\n\tvar fieldNames = (mo_type == \"New Hire\") ? ['mo.em_id'] : ['mo.em_id','mo.from_bl_id','mo.from_fl_id','mo.from_rm_id'];\n\tvar selectFieldNames = (mo_type == \"New Hire\") ? ['em.em_id'] : ['em.em_id','em.bl_id','em.fl_id','em.rm_id'];\n\t\n\tvar sortElems = [];\n\tsortElems.push({'fieldName': 'em.em_id', 'sortOrder': 1});\n\t\n View.selectValue(form.id, getMessage('title_employee'), fieldNames, 'em', selectFieldNames,\n\t\t['em.em_id', 'em.em_std', 'em.bl_id', 'em.fl_id', 'em.rm_id', 'em.phone'], null, listenerFunction,\n\t\ttrue, true, '', 800, 500, 'grid', -1, toJSON(sortElems));\n}", "function selectEmployees(){\n /*\n * The purpose of this function is to select all the employees of the company and return an array\n * with all the basic information they have, that way info can be managed easily with \"Atributes\"\n * of the users.\n *\n */\n \n //Open Original document with the employees list \n var employees = SpreadsheetApp.openById(\"{{ document_id }}\").getRangeByName('employees').getValues();\n \n //Create array for the array of employees.\n var employeesArray = [];\n \n \n //Construct an array with all the atributes of the original list selected, this is implemented through aloop that returns\n //an array to the executioner\n \n for (i = 1; i < employees.length; i++){\n \n //Create new array to insert the info of the employee i;\n var employeeArray = [];\n employeeArray['code'] = employees[i][0];\n employeeArray['sysName'] = employees[i][1];\n employeeArray['email'] = employees[i][2];\n employeeArray['fullName'] = employees[i][3];\n employeeArray['position'] = employees[i][4];\n employeeArray['id'] = employees[i][5];\n employeeArray['beginningDate'] = employees[i][6];\n employeeArray['insuranceAFP'] = employees[i][7];\n employeeArray['sex'] = employees[i][8];\n \n //append the array with the employee i info to the whole company array;\n employeesArray.push( employeeArray);\n \n }\n \n return employeesArray;\n \n}", "employeesReset() {\n this.employees.forEach(employee => employee.visible = true);\n this.filterEmployees();\n }", "function assignSelected(){\n var grid = View.panels.get(\"abSpAsgnEmToRm_emAssigned\");\n var employees = [];\n for (var i = 0; i < emAssigns.length; i++) {\n var emAssign = emAssigns[i];\n emAssign.setValue(\"em.bl_id\", \"\");\n emAssign.setValue(\"em.fl_id\", \"\");\n emAssign.setValue(\"em.rm_id\", \"\");\n var em_id = emAssign.getValue(\"em.em_id\");\n if(controllerGmAssign.checkIfEmExistInGrid(grid, em_id)){\n \temployees.push(em_id);\n \tcontinue;\n }\n grid.addGridRow(emAssign);\n }\n if(employees.length>0){\n \tcontrollerGmAssign.promptEmsExistInGrid(employees);\n }\n grid.sortEnabled = false;\n grid.update();\n}", "function showEmployees() {\n document.getElementById(\"toChange\").innerHTML = \"Please Wait\";\n try {\n \t\t$.getJSON('list.php', function(data) {\n \t/* data will hold the php array as a javascript object */\n \t\tdocument.getElementById(\"toChange\").innerHTML = createTable(data);\n \t});\n\t}\n\tcatch(err) {\n\t \tdocument.getElementById(\"toChange\").innerHTML = \"Error: \" + err.message;\n\t}\n}", "function viewEmployees() {\n console.log(\"Selecting all employees...\\n\");\n connection.query(\"SELECT * FROM employees\", function(err, res) {\n if (err) throw err;\n console.log(res);\n console.table('All employees:', res);\n \n });\n runSearch();\n }", "function editEmployeeInforClick() {\n\t\t\tctrl.employeeArray = [];\n\t\t\tangular.forEach(ctrl.employeeList, function (employee) {\n\t\t\t\tif (employee.selected)\n\t\t\t\t\tctrl.employeeArray.push(employee);\n\t\t\t});\n\t\t\tif (ctrl.employeeArray.length == 1) {\n\t\t\t\tif (ctrl.editEmployeeInfor == false) {\n\t\t\t\t\tcloseAllSubForm();\n\t\t\t\t\temployeeService.getOneById(ctrl.employeeArray[0].emId).then(function (result) {\n\t\t\t\t\t\tctrl.employee = result;\n\t\t\t\t\t\tctrl.employee.emBirthday = new Date(ctrl.employee.emBirthday);\n\t\t\t\t\t\tctrl.employee.emStarteddate = new Date(ctrl.employee.emStarteddate);\n\t\t\t\t\t});\n\t\t\t\t\tctrl.editEmployeeInfor = true;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tctrl.closeEditingFormClick();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ctrl.employeeArray.length == 0) {\n\t\t\t\tcloseAllSubForm();\n\t\t\t\talert(\"Bạn cần chọn một nhân viên để sửa thông tin!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (ctrl.employeeArray.length > 1) {\n\t\t\t\tctrl.isAllSelected = false;\n\t\t\t\tcheckAll();\n\t\t\t\tcloseAllSubForm();\n\t\t\t\talert(\"Bạn chỉ được sửa thông tin của từng nhân viên một!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "function updateEmployees(){\n\tvar $el = $('#employeeList');\n\tclearEmployees();\n\tfor (var i = 0; i < employees.length; i++) {\n\t\t$el.append('<div class=\"del-row\"></div>');\n\t\t$el.children().last().append('<button class=\"delete delButton\" id=\"' + i + '\">(delete)</button>');\n\t\t$el.children().last().append('<p class=\"delete\">' + employees[i].toString() + '</p>');\n\t}\n}", "function addEmployeeClick() {\n\t\t\tif (ctrl.addEmployee == false) {\n\t\t\t\tclearEmployeeData();\n\t\t\t\tcloseAllSubForm();\n\t\t\t\t//uncheck all check boxes\n\t\t\t\tctrl.isAllSelected = false;\n\t\t\t\tangular.forEach(ctrl.employeeList, function (itm) {\n\t\t\t\t\titm.selected = false;\n\t\t\t\t});\n\n\t\t\t\tctrl.addEmployee = true;\n\t\t\t} else {\n\t\t\t\tctrl.closeAddingEmClick();\n\t\t\t}\n\t\t}", "chooseActive(employee) {\n let index = this.state.employees\n .map(function(e) {\n return e.worker_id;\n })\n .indexOf(employee.worker_id);\n\n for (let i = 0; i < this.state.employees.length; i++) {\n this.state.employees[i].selectedEmp = false;\n }\n\n this.state.employees[index].selectedEmp = true;\n\n employeeService.getEmployee(employee.worker_id, result => {\n this.setState({ state: (this.state.activeEmployee = result) });\n });\n }", "setupEmployeesInListbox(){\r\n\t\t\r\n\t\tvar Employees = this.Employees['employees'], opt = '', index = this.Employees['EmployeeID'], s = '';\r\n\t\tvar tdObj = document.getElementById('SalesPerson');\r\n\t\tfor(let i = 0; i < Employees.length; i += 1){\r\n\t\t\tlet anEmployee = Employees[i];\r\n\t\t\tlet empId = anEmployee['EmployeeID'];\r\n\t\t\tlet empName = anEmployee['EmployeeName'];\r\n\t\t\topt += '<option value=\"' + empId + '\"';\r\n\t\t\tif(index == empId){\r\n\t\t\t\topt += ' selected';\r\n\t\t\t}\r\n\t\t\topt += '>' + empName + '</option>';\t\t\t\r\n\t\t}\r\n\t\ts = '<select id=\"empList\">' + opt + '</select>';\r\n\t\ttdObj.innerHTML = s;\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Trata o evento de adicionar items. Se a estrutura for alterada aqui, mudar tambem a leitura das gEntradas que depende da ordem dos doms.
function ClickAdicionarItem(tipo_item) { gEntradas[tipo_item].push({ chave: '', em_uso: false }); AtualizaGeralSemLerEntradas(); }
[ "function AdicionaItem(tipo_item, div, div_pai) {\n var input_em_uso = CriaInputCheckbox(false);\n input_em_uso.name = 'em_uso';\n input_em_uso.addEventListener('change', {\n tipo_item: tipo_item,\n handleEvent: function(e) {\n ClickUsarItem(this.tipo_item, e.target); } });\n div.appendChild(input_em_uso);\n\n var select = CriaSelect();\n var items_ordenados = [];\n var tabela_item = tabelas_itens[tipo_item].tabela;\n for (var chave in tabela_item) {\n items_ordenados.push({ chave_item: chave, valor_item: tabela_item[chave] });\n }\n items_ordenados.sort(function(ie, id) {\n return Traduz(ie.valor_item.nome).localeCompare(Traduz(id.valor_item.nome));\n });\n items_ordenados.forEach(function(item) {\n select.appendChild(\n CriaOption(Traduz(item.valor_item.nome) + ' (' + TraduzDinheiro(item.valor_item.preco) + ')', item.chave_item));\n });\n select.addEventListener('change', AtualizaGeral);\n select.name = 'item';\n div.appendChild(select);\n\n var botao_remover = CriaBotao('-', null, null);\n botao_remover.addEventListener('click', {\n handleEvent: function(e) {\n RemoveFilho(div, div_pai);\n AtualizaGeral();\n e.stopPropagation();\n } });\n div.appendChild(botao_remover);\n\n var button_vender = CriaBotao(Traduz('Vender'), null, 'venda', {\n div: div,\n tabela: tabela_item,\n handleEvent: function(evt) {\n ClickVenderItem(this.div, this.tabela);\n }\n });\n var button_comprar = CriaBotao(Traduz('Comprar'), null, 'compra', {\n div: div,\n tabela: tabela_item,\n handleEvent: function(evt) {\n ClickComprarItem(this.div, this.tabela);\n }\n });\n div.appendChild(button_vender);\n div.appendChild(button_comprar);\n\n div_pai.appendChild(div);\n}", "function logistica_agregarItemMovil(listado, respuesta, controlador, agregarComo) {\n var emptyListItem = $(\"#for_clone_\" + controlador);\n var items = respuesta.items;\n // datos para agregar\n var listadoHTML = '';\n\n // plantilla de un item\n // --------------------\n var newListItem = emptyListItem.clone();\n newListItem.addClass(\"active\");\n // datos para modificar del item\n // -----------------------------\n var tooltip_propiedad = $('#filtros-listado-moviles span.accion-btn-marker-tooltip-cambiar').find('i.activado').attr('name');\n var dato_icono_1 = $(newListItem).find('span[name=\"icono_movil_container\"] i[name=\"icono_movil_tipo1\"]');\n var dato_icono_4 = $(newListItem).find('span[name=\"icono_movil_container\"] i[name=\"icono_movil_tipo4\"]');\n var dato_icono_8 = $(newListItem).find('span[name=\"icono_movil_container\"] i[name=\"icono_movil_tipo8\"]');\n var dato_icono = $(newListItem).find('span[name=\"icono_movil_container\"] i[name=\"icono_movil_tipo\"]');\n var dato_boton_quitar = $(newListItem).find('div[name=\"columnas_datos\"]').find('i.listado-item-boton-quitar');\n var dato_boton_buscar = $(newListItem).find('div[name=\"columnas_datos\"]').find('i.listado-item-boton-buscar');\n var dato_nombre = $(newListItem).find('div[name=\"columnas_datos\"]').find('div[name=\"valor_1\"]');\n var dato_dominio = $(newListItem).find('div[name=\"columnas_datos\"]').find('div[name=\"valor_2\"]');\n var dato_fecha_desde = $(newListItem).find('input[name=\"movil-historico-fecha-desde\"]');\n var dato_fecha_hasta = $(newListItem).find('input[name=\"movil-historico-fecha-hasta\"]');\n var dato_hora_desde = $(newListItem).find('input[name=\"movil-historico-hora-desde\"]');\n var dato_hora_hasta = $(newListItem).find('input[name=\"movil-historico-hora-hasta\"]');\n var dato_boton_recorrido = $(newListItem).find('button[name=\"btn-buscar-recorrido\"]');\n var dato_checkbox_mapa = $(newListItem).find('div[name=\"columnas_datos\"]').find('div[name=\"valor_3\"] input[name=\"chk_agregar_al_mapa\"]');\n\n var dispositivos_agregados = [];\n $.each(items, function (index, item) {\n $(newListItem).attr(\"id\", \"item_\" + controlador + \"_\" + item.IdMovil);\n $(newListItem).attr(\"data-item\", item.IdMovil);\n $(newListItem).attr(\"data-dispositivo\", item.Movil_Dispositivo);\n\n var tooltipMovilHTML = '';\n tooltipMovilHTML += '<div class=\"marker-tooltip\">';\n tooltipMovilHTML += ' <div class=\"marker-tooltip-movil-nombre\" style=\"display:' + ((tooltip_propiedad == \"nombre\" || tooltip_propiedad == \"ambos\") ? \"block\" : \"none\") + ';\">';\n tooltipMovilHTML += ' ' + item.Movil_Nombre;\n tooltipMovilHTML += ' </div>';\n tooltipMovilHTML += ' <div class=\"marker-tooltip-movil-dominio\" style=\"display:' + ((tooltip_propiedad == \"dominio\" || tooltip_propiedad == \"ambos\") ? \"block\" : \"none\") + ';\">';\n tooltipMovilHTML += ' ' + item.Movil_Dominio;\n tooltipMovilHTML += ' </div>';\n tooltipMovilHTML += '</div>';\n $(newListItem).attr(\"data-mapa-tooltip\", tooltipMovilHTML);\n\n switch (item.Movil_Icono) {\n case \"1\":\n dato_icono_1.css(\"display\", \"flex\");\n dato_icono_4.css(\"display\", \"none\");\n dato_icono_8.css(\"display\", \"none\");\n dato_icono.css(\"display\", \"none\");\n break;\n case \"4\":\n dato_icono_1.css(\"display\", \"none\");\n dato_icono_4.css(\"display\", \"flex\");\n dato_icono_8.css(\"display\", \"none\");\n dato_icono.css(\"display\", \"none\");\n break;\n case \"8\":\n dato_icono_1.css(\"display\", \"none\");\n dato_icono_4.css(\"display\", \"none\");\n dato_icono_8.css(\"display\", \"flex\");\n dato_icono.css(\"display\", \"none\");\n break;\n default:\n dato_icono_1.css(\"display\", \"none\");\n dato_icono_4.css(\"display\", \"none\");\n dato_icono_8.css(\"display\", \"none\");\n dato_icono.css(\"display\", \"flex\");\n break;\n }\n\n dato_boton_quitar.attr(\"data-dispositivo\", item.Movil_Dispositivo);\n dato_boton_quitar.attr(\"data-item\", item.IdMovil);\n dato_boton_buscar.attr(\"data-item\", item.Movil_Dispositivo);\n if (!item.Movil_EnMapa) {\n dato_boton_buscar.addClass(\"boton-apagado\");\n }\n\n dato_nombre.empty().append(item.Movil_Nombre);\n dato_dominio.empty().append(item.Movil_Dominio);\n\n var fecha_de_hoy = new Date();\n var fecha_mes_hoy = fecha_de_hoy.getMonth() + 1;\n var fecha_dia_hoy = fecha_de_hoy.getDate();\n var fecha_de_hoy_format =\n fecha_de_hoy.getFullYear() + \"-\" +\n (fecha_mes_hoy < 10 ? '0' : '') + fecha_mes_hoy + \"-\" +\n (fecha_dia_hoy < 10 ? '0' : '') + fecha_dia_hoy;\n\n dato_fecha_desde.attr(\"value\", fecha_de_hoy_format);\n dato_fecha_hasta.attr(\"value\", fecha_de_hoy_format);\n dato_hora_desde.attr(\"value\", \"00:05\");\n dato_hora_hasta.attr(\"value\", \"23:55\");\n dato_checkbox_mapa.attr(\"value\", item.Movil_Dispositivo);\n dato_checkbox_mapa.attr(\"checked\", item.Movil_EnMapa);\n\n if (!item.Listado_Excluido) {\n dispositivos_agregados.push(item.Movil_Dispositivo);\n listadoHTML += newListItem[0].outerHTML;\n }\n });\n\n if (typeof agregarComo === 'undefined') {\n $(listadoHTML).appendTo(listado);\n } else {\n switch (agregarComo) {\n case \"nuevo\":\n $(listadoHTML).hide().prependTo(listado).fadeIn(1500);\n break;\n case \"editado\":\n break;\n }\n }\n\n setTimeout(function () {\n transformicons.add('button.listado-item-boton-colapsable');\n\n // para cada dispositivo agregado\n $.each(dispositivos_agregados, function (index, dispositivo) {\n var li = $(listado + ' li[data-dispositivo=\"' + dispositivo + '\"]');\n\n // inicializar buscador de recorridos\n var recorrido_fecha_desde = li.find('input[name=\"movil-historico-fecha-desde\"]');\n var recorrido_fecha_hasta = li.find('input[name=\"movil-historico-fecha-hasta\"]');\n var recorrido_hora_desde = li.find('input[name=\"movil-historico-hora-desde\"]');\n var recorrido_hora_hasta = li.find('input[name=\"movil-historico-hora-hasta\"]');\n li.find('button[name=\"btn-buscar-recorrido\"]').on(\"click\", function () {\n var parentPanel = li.find('div[name=\"ver-mas-parent\"]');\n var loadingGif = parentPanel.find('div[name=\"verMasLoadinGif\"]');\n var buttonCaller = $(this);\n var movil_id = li.attr('data-item');\n\n parentPanel.find('div[name=\"panel_historico_movil_' + movil_id + '\"]').remove();\n buttonCaller.prop(\"disabled\", true);\n loadingGif.css(\"display\", \"flex\");\n\n quitarMovilRecorridoDelMapa(movil_id);\n\n $.ajax({\n url: 'index.php?r=movil/historial',\n data: {\n movil: movil_id,\n desde: recorrido_fecha_desde.val() + \" \" + recorrido_hora_desde.val(),\n hasta: recorrido_fecha_hasta.val() + \" \" + recorrido_hora_hasta.val(),\n geo: true\n },\n type: 'POST',\n dataType: 'JSON',\n success: function (respuesta) {\n if (respuesta.estado === 1) {\n // agregar panel de opciones\n var newPanelHistorico = $('div[name=\"panel_movil_historico_for_clone\"]').clone();\n newPanelHistorico.attr(\"name\", \"panel_historico_movil_\" + movil_id);\n newPanelHistorico.attr(\"data-movil\", movil_id);\n\n // dibujar reportes\n var reportes = respuesta.reportes;\n // revisamos la configuracion guardada\n var agruparMetros = 0,\n suavizadoTiempo = 0,\n flagUnirLinea = true,\n flagMostrarNro = false,\n flagIgnorarPosicion = false,\n lineaColor = 'rgb(118, 118, 118)',\n eventoTexto = '';\n if (typeof respuesta.configuracion != 'undefined') { // si hay una config cargada\n var configuracion = respuesta.configuracion;\n\n if (typeof configuracion.logistica_movil_config__agrupar_dist != 'undefined') {\n agruparMetros = parseFloat(configuracion.logistica_movil_config__agrupar_dist);\n }\n if (typeof configuracion.logistica_movil_config__suavizado != 'undefined') {\n suavizadoTiempo = parseFloat(configuracion.logistica_movil_config__suavizado);\n }\n if (typeof configuracion.logistica_movil_config__unir_linea != 'undefined') {\n flagUnirLinea = configuracion.logistica_movil_config__unir_linea == 'true';\n }\n if (typeof configuracion.logistica_movil_config__mostrar_nro != 'undefined') {\n flagMostrarNro = configuracion.logistica_movil_config__mostrar_nro == 'true';\n }\n if (typeof configuracion.logistica_movil_config__ignorar_posicion != 'undefined') {\n flagIgnorarPosicion = configuracion.logistica_movil_config__ignorar_posicion == 'true';\n }\n if (typeof configuracion.logistica_movil_config__linea_color != 'undefined') {\n lineaColor = configuracion.logistica_movil_config__linea_color;\n }\n if (typeof configuracion.logistica_movil_config__linea_color != 'undefined') {\n eventoTexto = configuracion.logistica_movil_config__filtro_evento;\n }\n }\n\n var movil_recorrido =\n agregarMovilRecorridoAlMapa(\n movil_id,\n reportes,\n agruparMetros,\n suavizadoTiempo,\n flagUnirLinea,\n flagMostrarNro,\n flagIgnorarPosicion,\n lineaColor,\n eventoTexto);\n $(movil_recorrido).trigger(\"mapa_centrar\");\n\n // Limpiar historico buscadp\n var limpiarHistoricoBuscado = newPanelHistorico.find('i[name=\"boton-quitar-del-mapa\"]');\n limpiarHistoricoBuscado.on('click', function () {\n quitarMovilRecorridoDelMapa(movil_id);\n parentPanel.find('div[name=\"panel_historico_movil_' + movil_id + '\"]').remove();\n });\n\n // boton guardar configuración: \n var guardarConfiguracionHistoricoMovil = newPanelHistorico.find('i[name=\"boton-guardar-configuracion\"]');\n guardarConfiguracionHistoricoMovil.on('click', function () {\n var btnGuardarConfig = $(this);\n if (!btnGuardarConfig.prop('disabled')) {\n btnGuardarConfig.prop('disabled', true);\n btnGuardarConfig.addClass('boton-apagado');\n\n var propiedades = [\n \"logistica_movil_config__unir_linea\",\n \"logistica_movil_config__linea_color\",\n \"logistica_movil_config__mostrar_nro\",\n \"logistica_movil_config__ignorar_posicion\",\n \"logistica_movil_config__agrupar_dist\",\n \"logistica_movil_config__suavizado\",\n \"logistica_movil_config__filtro_evento\"\n ];\n\n var valores = [\n chk_unir_reportes_con_linea.prop(\"checked\"),\n divColorParent.find('div.div-color-opcion.activada').css('background-color'),\n chk_mostrar_numero_de_orden.prop(\"checked\"),\n chk_ignorar_reportes_posicion.prop(\"checked\"),\n sldAgruparPorDistancia.noUiSlider.get(),\n sldSuavizadoPorTiempo.noUiSlider.get(),\n filtro_por_evento.val()\n ];\n\n var onSuccess = function () {\n mensaje('Configuración guardada');\n };\n\n var onError = function () {\n mensaje('ERROR: No se pudo guardar su configuración');\n }\n\n var onComplete = function () {\n btnGuardarConfig.prop('disabled', false);\n btnGuardarConfig.removeClass('boton-apagado');\n }\n\n guardarPropiedadCSS(propiedades, valores, onSuccess, onError, onComplete);\n }\n });\n\n // centrar el mapa\n mdc.ripple.MDCRipple.attachTo($(newPanelHistorico).find('i[name=\"centrar-el-mapa\"]')[\"0\"]);\n var button_centrar_el_mapa = newPanelHistorico.find('i[name=\"centrar-el-mapa\"]');\n button_centrar_el_mapa.on('click', function () {\n $(movil_recorrido).trigger(\"mapa_centrar\");\n });\n\n // elegir color de la linea\n var divColorParent = newPanelHistorico.find('div.div-color-parent');\n $(divColorParent).on('desactivar', function () {\n $(this).css({\n \"opacity\": \"0.4\",\n \"pointer-events\": \"none\"\n });\n });\n $(divColorParent).on('activar', function () {\n $(this).css({\n \"opacity\": \"1\",\n \"pointer-events\": \"all\"\n });\n });\n $.each(newPanelHistorico.find('div.div-color-opcion'), function () {\n var divColor = $(this);\n divColor.css('background-color', divColor.attr('data-color'));\n\n // set color click listener\n divColor.on('click', function () {\n var divColorClickeado = $(this);\n var color = divColorClickeado.attr('data-color');\n newPanelHistorico.find('div.div-color-opcion').removeClass('activada');\n divColorClickeado.addClass('activada');\n divColorClickeado.css('background-color', color);\n movil_recorrido.polyline.options.color = color;\n $(movil_recorrido.polyline._path).css('stroke', color);\n });\n\n // si es la opcion de color guardada\n if (lineaColor == divColor.attr('data-color')) {\n divColor.addClass('activada');\n }\n });\n\n // dibujar linea\n var chk_unir_reportes_con_linea = newPanelHistorico.find('input[name=\"chk_unir_reportes_con_linea\"]');\n chk_unir_reportes_con_linea.prop('checked', flagUnirLinea);\n chk_unir_reportes_con_linea.on('click', function () {\n var chkCaller = $(this);\n\n if (chkCaller.prop(\"checked\")) {\n modulo_mapa.addLayer(movil_recorrido.polyline);\n $(divColorParent).trigger(\"activar\");\n } else {\n modulo_mapa.removeLayer(movil_recorrido.polyline);\n $(divColorParent).trigger(\"desactivar\");\n }\n });\n\n // mostrar numero de orden\n var chk_mostrar_numero_de_orden = newPanelHistorico.find('input[name=\"chk_mostrar_numero_de_orden\"]');\n chk_mostrar_numero_de_orden.prop('checked', flagMostrarNro);\n chk_mostrar_numero_de_orden.on('click', function () {\n var chkCaller = $(this);\n\n if (chkCaller.prop(\"checked\")) {\n $.each(movil_recorrido.markers, function (index, item) {\n var marker = $(item);\n var icono = $(marker[\"0\"]._icon);\n\n icono.find('.grupo-punto-marker').removeClass(\"activado\");\n icono.find('.punto-marker').removeClass(\"activado\");\n icono.find('.grupo-punto-marker-orden').addClass(\"activado\");\n icono.find('.punto-marker-orden').addClass(\"activado\");\n });\n } else {\n $.each(movil_recorrido.markers, function (index, item) {\n var marker = $(item);\n var icono = $(marker[\"0\"]._icon);\n\n icono.find('.grupo-punto-marker-orden').removeClass(\"activado\");\n icono.find('.punto-marker-orden').removeClass(\"activado\");\n icono.find('.punto-marker').addClass(\"activado\");\n icono.find('.grupo-punto-marker').addClass(\"activado\");\n });\n }\n });\n\n // ignorar reportes de posicion\n var chk_ignorar_reportes_posicion = newPanelHistorico.find('input[name=\"chk_ignorar_reportes_posicion\"]');\n chk_ignorar_reportes_posicion.prop('checked', flagIgnorarPosicion);\n chk_ignorar_reportes_posicion.on('click', function () {\n var chkCaller = $(this);\n\n quitarMovilRecorridoDelMapa(movil_id);\n movil_recorrido = agregarMovilRecorridoAlMapa(\n movil_id,\n reportes,\n sldAgruparPorDistancia.noUiSlider.get(),\n sldSuavizadoPorTiempo.noUiSlider.get(),\n chk_unir_reportes_con_linea.prop(\"checked\"),\n chk_mostrar_numero_de_orden.prop(\"checked\"),\n chk_ignorar_reportes_posicion.prop(\"checked\"),\n divColorParent.find('div.div-color-opcion.activada').css('background-color'),\n filtro_por_evento.val());\n });\n\n // agrupar por distancia\n var sldAgruparPorDistancia = newPanelHistorico.find('div#sld-agrupar-puntos-por-distancia')[0];\n noUiSlider.create(sldAgruparPorDistancia, {\n // el color de la barra se muestra desde la izquierda pero no desde la derecha\n connect: [true, false],\n // metros de entrada \n start: [agruparMetros],\n // me muevo de a un metro\n step: 1,\n tooltips: [false],\n // puedo desplazar el rango completo\n behaviour: 'tap-drag',\n // desde 50 metros hasta 500 metros\n range: {\n 'min': 0,\n 'max': 400\n },\n // un pipe cada 100 metros\n pips: {\n mode: 'steps',\n filter: function fncFilter(value) {\n if (value % 100 === 0 || value == 50) {\n // valor largo \n return 1;\n } else {\n if (value % 25 === 0) {\n // valor largo\n return 2;\n }\n }\n // nada\n return 0;\n },\n format: {\n to: function (metros) {\n return metros;\n },\n from: function (metros) {\n return metros;\n }\n }\n }\n });\n // after update\n var agruparCaller;\n var flag_first = true;\n sldAgruparPorDistancia.noUiSlider.on('update', function (values, handle) {\n // si no es la primera vez (se triggerea sola cuando se carga el elemento al DOM)\n if (!flag_first) {\n var metros = values[handle];\n clearTimeout(agruparCaller);\n agruparCaller = setTimeout(function () {\n quitarMovilRecorridoDelMapa(movil_id);\n movil_recorrido = agregarMovilRecorridoAlMapa(\n movil_id,\n reportes,\n metros,\n sldSuavizadoPorTiempo.noUiSlider.get(),\n chk_unir_reportes_con_linea.prop(\"checked\"),\n chk_mostrar_numero_de_orden.prop(\"checked\"),\n chk_ignorar_reportes_posicion.prop(\"checked\"),\n divColorParent.find('div.div-color-opcion.activada').css('background-color'),\n filtro_por_evento.val());\n }, 500);\n } else {\n flag_first = false;\n }\n });\n\n // suavizado por tiempo\n var sldSuavizadoPorTiempo = newPanelHistorico.find('div#sld-suavizado-por-tiempo')[0];\n noUiSlider.create(sldSuavizadoPorTiempo, {\n connect: [true, false],\n start: [suavizadoTiempo],\n step: 1,\n tooltips: [false],\n behaviour: 'tap-drag',\n range: {\n 'min': 0,\n 'max': 60\n },\n pips: {\n mode: 'steps',\n filter: function fncFilter(value) {\n if (value % 30 === 0) {\n // valor largo \n return 1;\n } else if (value % 10 === 0) {\n // valor largo\n return 2;\n }\n\n // nada\n return 0;\n },\n format: {\n to: function (minutos) {\n return minutos;\n },\n from: function (minutos) {\n return minutos;\n }\n }\n }\n });\n // after update\n var suavizarCaller;\n var flag_first_suavizar = true;\n sldSuavizadoPorTiempo.noUiSlider.on('update', function (values, handle) {\n // si no es la primera vez (se triggerea sola cuando se carga el elemento al DOM)\n if (!flag_first_suavizar) {\n var minutos = values[handle];\n clearTimeout(suavizarCaller);\n suavizarCaller = setTimeout(function () {\n quitarMovilRecorridoDelMapa(movil_id);\n movil_recorrido = agregarMovilRecorridoAlMapa(\n movil_id,\n reportes,\n sldAgruparPorDistancia.noUiSlider.get(),\n minutos,\n chk_unir_reportes_con_linea.prop(\"checked\"),\n chk_mostrar_numero_de_orden.prop(\"checked\"),\n chk_ignorar_reportes_posicion.prop(\"checked\"),\n divColorParent.find('div.div-color-opcion.activada').css('background-color'),\n filtro_por_evento.val());\n }, 500);\n } else {\n flag_first_suavizar = false;\n }\n });\n\n // filtro por evento \n var inputEventTimeOut;\n var filtro_por_evento = newPanelHistorico.find('input[id=\"filtrado-por-evento\"]');\n filtro_por_evento.val(eventoTexto);\n filtro_por_evento.on('input', function () {\n var inputText = $(this).val();\n clearTimeout(inputEventTimeOut);\n inputEventTimeOut = setTimeout(() => {\n quitarMovilRecorridoDelMapa(movil_id);\n movil_recorrido = agregarMovilRecorridoAlMapa(\n movil_id,\n reportes,\n sldAgruparPorDistancia.noUiSlider.get(),\n sldSuavizadoPorTiempo.noUiSlider.get(),\n chk_unir_reportes_con_linea.prop(\"checked\"),\n chk_mostrar_numero_de_orden.prop(\"checked\"),\n chk_ignorar_reportes_posicion.prop(\"checked\"),\n divColorParent.find('div.div-color-opcion.activada').css('background-color'),\n inputText);\n }, 500);\n });\n\n $(newPanelHistorico).appendTo(parentPanel).css(\"display\", \"flex\").css(\"opacity\", 0).animate({\n opacity: 1\n }, 1000);\n\n inicializar_tooltip(listado + ' .tooltip_sub_item', 200, 500, 0);\n } else {\n mensaje(\"ERROR: NO SE PUDO LEER EL RECORRIDO DEL MOVIL BUSCADO\", 10000);\n }\n },\n error: function () {\n mensaje(\"ERROR: NO SE PUDO LEER EL RECORRIDO DEL MOVIL BUSCADO\", 10000);\n },\n complete: function () {\n loadingGif.css(\"display\", \"none\");\n buttonCaller.prop(\"disabled\", false);\n }\n });\n });\n\n // agreamos los moviles al mapa\n li.find('input[name=\"chk_agregar_al_mapa\"]').trigger(\"sin_centrar_sin_guardar\");\n });\n\n inicializar_tooltip(listado + ' .tooltip_item', 200, 500, 0);\n }, 300);\n}", "function logistica_agregarItemPunto(listado, respuesta, controlador, agregarComo) {\n var emptyListItem = $(\"#for_clone_\" + controlador);\n var items = respuesta.items;\n var categorias = respuesta.categorias;\n\n // agregar categorias\n if (typeof agregarComo === 'undefined') {\n listadoAgregarCategorias(listado, categorias);\n }\n\n // agregar items al listado \n var pos = 0;\n var categoria_anterior = -1;\n var listadoHTML = '';\n var item;\n\n // plantilla de un item\n // --------------------\n var newListItem = emptyListItem.clone();\n newListItem.addClass(\"active\");\n // datos para modificar del item\n // -----------------------------\n //var dato_icono = $(newListItem).find('div[name=\"icono\"]');\n var dato_descripcion = $(newListItem).find('div[name=\"descripcion\"]');\n var dato_btn_buscar = $(newListItem).find(\"i.listado-item-boton-buscar\");\n var dato_btn_editar = $(newListItem).find(\"i.listado-item-boton-editar\");\n var dato_categoria_color;\n var dato_categoria_icono;\n\n while (pos < items.length) {\n item = items[pos];\n\n // Carga de datos al item\n // ---------------------------------------------------------------------------------\n $(newListItem).attr(\"id\", \"item_\" + controlador + \"_\" + item.IdPuntoInteres);\n $(newListItem).attr(\"data-item\", item.IdPuntoInteres);\n $(newListItem).attr(\"data-categoria\", item.PI_IdTipoPI);\n\n // categoria datos\n if (categoria_anterior == -1 || categoria_anterior != item.PI_IdTipoPI) {\n $.each(categorias, function (f, categoria) {\n if (categoria.IdTipoPuntoInteres == item.PI_IdTipoPI) {\n dato_categoria_color = categoria.TipoPI_Color;\n dato_categoria_icono = categoria.TipoPI_Icono;\n }\n });\n }\n\n var checkbox = $(newListItem).find(\"div[name='valor_2'] input[name='chk_agregar_al_mapa']\");;\n checkbox.val(JSON.stringify(Object.assign({\n icono: dato_categoria_icono,\n color: dato_categoria_color\n }, item)));\n\n // var iconoHTML = '';\n // iconoHTML += '<i class=\"material-icons\" style=\"color:' + dato_categoria_color + ';\">';\n // iconoHTML += ' ' + dato_categoria_icono;\n // iconoHTML += '</i>';\n\n //dato_icono.empty().append(iconoHTML);\n dato_descripcion.empty().append(item.PI_Descripcion);\n dato_btn_buscar.attr(\"data-latitud\", item.PI_Latitud);\n dato_btn_buscar.attr(\"data-longitud\", item.PI_Longitud);\n dato_btn_editar.attr(\"data-item\", item.IdPuntoInteres);\n\n // Logica para agregar item al listado\n // ---------------------------------------------------------------------------------\n if (categoria_anterior != -1 && categoria_anterior != item.PI_IdTipoPI) {\n var newItemParentSelector = listado + \" li[name='categoria_\" + categoria_anterior + \"'] ul[name='categoria_puntos']\";\n $(listadoHTML).appendTo(newItemParentSelector);\n listadoHTML = '';\n }\n\n listadoHTML += newListItem[0].outerHTML;\n categoria_anterior = item.PI_IdTipoPI;\n\n pos++;\n }\n\n // agregar la ulima tanda de datos\n var newItemParentSelector = listado + \" li[name='categoria_\" + categoria_anterior + \"'] ul[name='categoria_puntos']\";\n if (typeof agregarComo === 'undefined') {\n $(listadoHTML).appendTo(newItemParentSelector);\n } else {\n // si la categoria no esta agregada la agregamos\n if ($(newItemParentSelector).length === 0) {\n $.each(categorias, function (h, categoria) {\n if (categoria.IdTipoPuntoInteres == categoria_anterior) {\n listadoAgregarCategoria(listado, categoria);\n }\n });\n }\n\n switch (agregarComo) {\n case \"nuevo\":\n // agregar item al listado\n $(listadoHTML).hide().prependTo(newItemParentSelector).fadeIn(1500);\n break;\n case \"editado\":\n var listadoItem = $(newItemParentSelector + \" li[id='item_\" + controlador + \"_\" + item.IdPuntoInteres + \"']\");\n if (listadoItem.length > 0) {\n // si mantiene la categoria \n $(listadoHTML).insertAfter($(newItemParentSelector + \" li:eq(\" + listadoItem.index() + \")\")).hide();\n listadoItem.fadeOut(350, function () {\n listadoItem.delay(100).next().fadeIn(\"slow\");\n listadoItem.remove();\n });\n } else {\n // si cambia de categoria\n listadoItem = $('li[id=\"item_' + controlador + '_' + item.IdPuntoInteres + '\"]');\n $(listadoHTML).prependTo('li[name=\"categoria_' + item.PI_IdTipoPI + '\"] ul[name=\"categoria_puntos\"]');\n listadoItem.fadeOut(350, function () {\n listadoItem.remove();\n });\n }\n\n break;\n }\n }\n\n // los headers que no tienen items los removemos\n setTimeout(function () {\n $.each($(listado).find('li.header-categoria'), function (index, item) {\n if ($(item).find('ul[name=\"categoria_puntos\"] > li').length === 0) {\n $(item).remove();\n }\n });\n }, 300);\n}", "adicionarItem(event) {\n this.produto.estoque--\n const {id, nome, preco} = this.produto\n this.carrinho.push({id, nome, preco})\n this.alerta(`${nome} foi adicionado ao carrinho`)\n }", "function addItemsPuertasItemsOtras(k_coditem_otras,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_otras (k_coditem_otras, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_otras,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Finalizando...Espere\");\n });\n}", "function addItemsPuertasItemsElectrica(k_coditem_electrica,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_electrica (k_coditem_electrica, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_electrica,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items eléctrica...Espere\");\n });\n}", "agregarItem(producto, cantidad) {\n let item = new itemCompra(this.items.length + 1, producto, cantidad); //le creo un idItem a cada uno, a partir de la cantidad de items del vector \"items\".\n this.items.push(item);\n }", "function registrarItems(item)\n{\n item.cantidadEnCanasta = item.cantidadEnCanasta + 1;\n /*usa stringify para convertir a formato JSON*/\n localStorage.setItem('seleccion', JSON.stringify(itemsDesplegados));\n}", "function addItemsPuertasItemsManiobras(k_coditem_maniobras,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_maniobras (k_coditem_maniobras, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_maniobras,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items maniobras...Espere\");\n });\n}", "function addItem(produto){\n itens = retorna_itens();\n itens[produto]['quantidade'] += 1;\n atualiza_quantidades();\n soma_tudo();\n atualiza_tabela();\n}", "function addItemsPuertasItemsElementos(k_coditem,o_descripcion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_elementos (k_coditem,o_descripcion) VALUES (?,?)\";\n tx.executeSql(query, [k_coditem,o_descripcion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items elementos...Espere\");\n });\n}", "function addItem() {\n\t\t\tvar order = ordersGrid.selection.getSelected()[0];\n\n\t\t\titensStore.newItem({\n\t\t\t\tpi_codigo: \"new\" + itensCounter,\n\t\t\t\tpi_pedido: order ? order.pe_codigo : \"new\",\n\t\t\t\tpi_prod: \"\",\n\t\t\t\tpi_quant: 0,\n\t\t\t\tpi_moeda: \"R$\",\n\t\t\t\tpi_preco: 0,\n\t\t\t\tpi_valor: 0,\n\t\t\t\tpi_desc: 0,\n\t\t\t\tpi_valort: 0,\n\t\t\t\tpr_descr: \"\",\n\t\t\t\tpr_unid: \"\"\n\t\t\t});\n\t\t\t\n\t\t\titensCounter = itensCounter + 1;\n\t\t}", "function addItemsPuertasItemsMotorizacion(k_coditem_motorizacion,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_motorizacion (k_coditem_motorizacion, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_motorizacion,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items motorización...Espere\");\n });\n}", "function addItemsPuertasItemsMecanicos(k_coditem_puertas,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_items_mecanicos (k_coditem_puertas, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_puertas,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items mecánicos...Espere\");\n });\n}", "function addItemsPuertasValoresElementos(k_codusuario,k_codinspeccion,k_coditem,o_descripcion,v_selecion) {\n $('#texto_carga').text('Guardando datos elementos...Espere');\n db.transaction(function (tx) {\n var query = \"INSERT INTO puertas_valores_elementos (k_codusuario,k_codinspeccion,k_coditem,o_descripcion,v_selecion) VALUES (?,?,?,?,?)\";\n tx.executeSql(query, [k_codusuario,k_codinspeccion,k_coditem,o_descripcion,v_selecion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n });\n}", "function agregarItemAlMapa(controlador, item_id, centrar, guardar, onSuccessCallBack, onCompleteCallBack) {\n // obtener el item si ya esta dibujado o false si no lo esta\n var item_en_mapa = getItemEnMapa(controlador, item_id);\n\n if (item_en_mapa) {\n // si ya estaba agregado antes de agregarlo lo removemos\n quitarItemDelMapa(controlador, item_id);\n }\n\n switch (modulo) {\n case \"logistica\":\n switch (controlador) {\n case \"movil\":\n agregarDispositivoAlMapa(controlador, item_id, centrar, guardar, onSuccessCallBack, onCompleteCallBack);\n break;\n case \"ruta\":\n agregarRutaAlMapa(controlador, item_id, centrar, guardar, onSuccessCallBack, onCompleteCallBack);\n break;\n case \"punto\":\n // punto fijo en vez del id, recibe todos los datos del punto\n agregarPuntoFijoAlMapa(controlador, item_id, centrar, guardar, onSuccessCallBack, onCompleteCallBack);\n break;\n case \"categoria\":\n agregarCategoriaAlMapa(controlador, item_id, centrar, guardar, onSuccessCallBack, onCompleteCallBack);\n break;\n }\n break;\n }\n}", "function addItem() {}", "_putToFoodTray(item, quantity, time) {\n\n let foodItem = new Item(item.id, item.name, true, 0);\n for(let x = 0 ; x < quantity ; x++) {\n let newItem = Object.assign(new Item(), foodItem);\n //set it to done\n newItem.done();\n //and set the time\n newItem.time = time;\n //also set the time\n this._foodTray.add(newItem);\n }\n }", "function addItemsEscalerasItemsDefectos(k_coditem_escaleras,o_descripcion,v_clasificacion) {\n db.transaction(function (tx) {\n var query = \"INSERT INTO escaleras_items_defectos (k_coditem_escaleras, o_descripcion, v_clasificacion) VALUES (?,?,?)\";\n tx.executeSql(query, [k_coditem_escaleras,o_descripcion,v_clasificacion], function(tx, res) {\n console.log(\"insertId: \" + res.insertId + \" -- probably 1\");\n console.log(\"rowsAffected: \" + res.rowsAffected + \" -- should be 1\");\n },\n function(tx, error) {\n console.log('INSERT error: ' + error.message);\n });\n }, function(error) {\n console.log('transaction error: ' + error.message);\n }, function() {\n console.log('transaction ok');\n $('#texto_carga').text(\"Creando items defectos...Espere\");\n });\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper function to fabricate and return the id of the fabricated object So instead of: Fabricator.fabricate('organization').then(o => o.id) You can do: Fabricator.fabGetId('organization')
static fabGetId(name, customAttr) { return Fabricator.fabricate(name, customAttr).then(obj => obj.id); }
[ "_getId(o) {\n return crypto.createHash('sha1').update(JSON.stringify(o)).digest('hex');\n }", "getRelationshipId() {}", "getId() {\n const parent = this.getParent();\n return parent ? `${parent.getId()}/${this.getInternalId()}` : this.getInternalId();\n }", "SET_FORMATION_BY_ID(state, formaId = state.formations[0].id) {\n state.formation_by_id = state.formations.find(\n forma => forma.id === formaId\n );\n //console.info(\"SET_FORMATION_BY_ID\", state.formation_by_id);\n }", "function getId() {\n return id;\n }", "generateId() {\n return `INV-${this.guid()}`;\n }", "fetch_id_for(component) {\n return $.get('/transfer/create_metadata_set_uuid/').then(result => {\n component.id = result.uuid;\n });\n }", "function generateDesignIDForCurrentChair() {\n var design = User.getCurEditWheelchairDesign();\n\n if (_.isNull(design)) {\n design = new Design({\n 'creator': User.getID(),\n 'wheelchair': $scope.curEditWheelchair\n });\n }\n\n design.wheelchair = $scope.curEditWheelchair;\n\n // If the design doesn't have an ID, generate one by saving it to the backend\n var designPromise = design.hasID() ? User.updateDesign(design) : User.saveDesignForAbacus(design);\n\n return designPromise;\n }", "generateId (contactId) {\n console.log(contactId);\n contactId ++;\n return contactId\n }", "getCompanyID() {}", "function getGuid() {\n return getUuid();\n}", "static organizationIdGet({ id }) {\n return new Promise(\n async (resolve) => {\n try {\n resolve(Service.successResponse(''));\n } catch (e) {\n resolve(Service.rejectResponse(\n e.message || 'Invalid input',\n e.status || 405,\n ));\n }\n },\n );\n }", "function thisToDoId(id) {\n return id;\n}", "static getId(promise) {\n return Promise.resolve(promise).then(o => o.id);\n }", "function getIdFetcher(graffitiModels) {\n return function idFetcher(obj, _ref8, info) {\n var globalId = _ref8.id;\n\n var _fromGlobalId2 = (0, _graphqlRelay.fromGlobalId)(globalId);\n\n var type = _fromGlobalId2.type;\n var id = _fromGlobalId2.id;\n\n\n if (type === 'Viewer') {\n return _viewer2.default;\n } else if (graffitiModels[type]) {\n var Collection = graffitiModels[type].model;\n return getOne(Collection, { id: id }, info);\n }\n\n return null;\n };\n}", "createId () {\n\t\tthis.attributes.id = this.useId || this.collection.createId();\n\t}", "get creatorId() {\n return this._data.creator_id;\n }", "function getIdFetcher(graffitiModels) {\n return function idFetcher(obj, { id: globalId }, context, info) {\n const { type, id } = fromGlobalId(globalId);\n\n if (type === 'Viewer') {\n return viewer;\n } else if (graffitiModels[type]) {\n const Collection = graffitiModels[type].model;\n return getOne(Collection, { id }, context, info);\n }\n\n return null;\n };\n}", "function generatePayeeReference() {\n return sha256(uuid()).substring(0, 6);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
= Description Default startDrag event responder method. Sets internal flags by default. This is the preferred method to extend if you want to do something when a drag event starts. If you extend, remember to call +this.base();+ = Parameters +x+:: The horizontal coordinate units (px) of the mouse cursor position. +y+:: The vertical coordinate units (px) of the mouse cursor position.
startDrag(x, y) {}
[ "function dragStart(e) {\n //setting the initial position of our pointer\n if (e.type === \"touchstart\") { // is it a touch event?\n initialX = e.touches[0].clientX - xOffset;\n initialY = e.touches[0].clientY - yOffset;\n } else { // if not...\n initialX = e.clientX - xOffset;\n initialY = e.clientY - yOffset;\n }\n\n //check if the element we are clicking on is the element we would like to drag\n //Why? we are listening for our various mouse and touch events on the container, NOT the element we are dragging\n if (e.target === dragItem) {\n active = true;\n }\n }", "dragStartHandler() {\n if (this.draggable && !this.disabled && !this.readOnly) {\n this.setPropertyState('dragging', true);\n }\n }", "handleDragStart() {\n this.enableCoordinates();\n }", "static StartDrag() {}", "function win_drag_start(ftWin){draggingShape = true;}", "function startDrag(ev) {\n /* prevent text selection in IE */\n document.onselectstart = function () { return false; };\n\n dragStartPos = ev.pageY;\n scrollAreaStartPosition = scrollArea.scrollTop;\n\n $document.on('mousemove', dragTheThumb);\n $document.on('mouseup', dragStop);\n }", "function MouseDrag(start, stop) {\r\n\t\t\tthis.start = start;\r\n\t\t\tthis.stop = stop;\r\n\t\t}", "function mouseDragStart() { game.physics.box2d.mouseDragStart(game.input.mousePointer); }", "function file_drag_start(){\n\n\tdrag_flag();\n\n}", "_startDragging(left, top, callback) {\n /*\n * ``hasMoved`` is used to distinguish dragging from clicking.\n * ``initialCursor`` and ``initialBounds`` are used to calculate the\n * new position and size while dragging.\n */\n this._moveState.hasMoved = false;\n this._moveState.initialCursor.left = left;\n this._moveState.initialCursor.top = top;\n this._moveState.initialBounds.left = this.$el.position().left;\n this._moveState.initialBounds.top = this.$el.position().top;\n this._moveState.initialBounds.width = this.$el.width();\n this._moveState.initialBounds.height = this.$el.height();\n this._moveState.dragCallback = callback;\n\n $(window).on('mousemove', this._onDrag);\n }", "drag(x, y) {\n this.doDrag(x, y);\n }", "function xEnableDrag(id,fS,fD,fE)\n{\n var mx = 0, my = 0, el = xGetElementById(id);\n if (el) {\n el.xDragEnabled = true;\n xAddEventListener(el, 'mousedown', dragStart, false);\n }\n // Private Functions\n function dragStart(e)\n {\n if (el.xDragEnabled) {\n var ev = new xEvent(e);\n xPreventDefault(e);\n mx = ev.pageX;\n my = ev.pageY;\n xAddEventListener(document, 'mousemove', drag, false);\n xAddEventListener(document, 'mouseup', dragEnd, false);\n if (fS) {\n fS(el, ev.pageX, ev.pageY, ev);\n }\n }\n }\n function drag(e)\n {\n var ev, dx, dy;\n xPreventDefault(e);\n ev = new xEvent(e);\n dx = ev.pageX - mx;\n dy = ev.pageY - my;\n mx = ev.pageX;\n my = ev.pageY;\n if (fD) {\n fD(el, dx, dy, ev);\n }\n else {\n xMoveTo(el, xLeft(el) + dx, xTop(el) + dy);\n }\n }\n function dragEnd(e)\n {\n var ev = new xEvent(e);\n xPreventDefault(e);\n xRemoveEventListener(document, 'mouseup', dragEnd, false);\n xRemoveEventListener(document, 'mousemove', drag, false);\n if (fE) {\n fE(el, ev.pageX, ev.pageY, ev);\n }\n if (xEnableDrag.drop) {\n xEnableDrag.drop(el, ev);\n }\n }\n}", "function DragEventInit() {\n}", "function mouseDragged() \n{\n if(overTarget())\n {\n targetDrag = true;\n }\n if(overStart())\n {\n startDrag = true;\n }\n \n if (targetDrag)\n {\n target.x = mouseX ;\n target.y = mouseY ;\n }\n if (startDrag)\n {\n start.x = mouseX ;\n start.y = mouseY ;\n }\n}", "function pointersStartDrag(e){\n\n // set that the pointers are being dragged\n draggingCircle = false;\n\n // start the dragging process\n startDrag(e);\n\n }", "function dragstart(element)\n{\n\tdragobject = element;\n\tdragx = posx - dragobject.offsetLeft + new_slider_pos;\n}", "dragging_start(dx) {\n var use_quant = V.use_quant\n V.use_quant = false\n var id = this.selected_item\n var it = this.dict[id]\n var w = Math.max( it.w - dx, 1)\n var dx = (w == 1) ? 0 : dx\n var x = Math.max(it.x + dx, 1)\n this.adjust_item_x(id,x)\n this.adjust_item_w(id,w)\n V.use_quant = use_quant\n }", "function drag(e) {\n if (active) { //check whether the drag is active\n \n //tell the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be (MDN)\n e.preventDefault();\n \n //set the value of currentX and currentY to the result of the current pointer position with an adjustment from initialX and initialY\n if (e.type === \"touchmove\") {\n currentX = e.touches[0].clientX - initialX;\n currentY = e.touches[0].clientY - initialY;\n } else {\n currentX = e.clientX - initialX;\n currentY = e.clientY - initialY;\n }\n\n //set the new Offset\n xOffset = currentX;\n yOffset = currentY;\n\n //set the new position for our dragged element\n setTranslate(currentX, currentY, dragItem);\n }\n }", "function dragstart(element)\r\n{\r\n dragobject = element;\r\n dragx = posx - dragobject.offsetLeft + new_slider_pos;\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Get DFS Slates by Date / / The date of the game(s). Examples: 2017DEC01, 2018FEB15.
getDFSSlatesByDatePromise(date){ var parameters = {}; parameters['date']=date; return this.GetPromise('/v3/nba/projections/{format}/DfsSlatesByDate/{date}', parameters); }
[ "getDfsSlatesByDatePromise(date){\n var parameters = {};\n parameters['date']=date;\n return this.GetPromise('/v3/soccer/projections/{format}/DfsSlatesByDate/{date}', parameters);\n }", "getDfsSlatesByDatePromise(date){\n var parameters = {};\n parameters['date']=date;\n return this.GetPromise('/v3/soccer/stats/{format}/DfsSlatesByDate/{date}', parameters);\n }", "getDFSSlatesByDatePromise(date){\n var parameters = {};\n parameters['date']=date;\n return this.GetPromise('/v3/nfl/projections/{format}/DfsSlatesByDate/{date}', parameters);\n }", "getDFSSlatesByDatePromise(date){\n var parameters = {};\n parameters['date']=date;\n return this.GetPromise('/v3/nfl/stats/{format}/DfsSlatesByDate/{date}', parameters);\n }", "getDFSSlatesByDatePromise(date){\n var parameters = {};\n parameters['date']=date;\n return this.GetPromise('/v3/nhl/projections/{format}/DfsSlatesByDate/{date}', parameters);\n }", "function getGamesFromDate(date) {\n const games = getGamesWithScores();\n const gamesOnDate = [];\n\n for (let game of games) {\n if (game.date === date) {\n gamesOnDate.push(game);\n }\n }\n\n return gamesOnDate;\n}", "getGamesByDatePromise(date){\n var parameters = {};\n parameters['date']=date;\n return this.GetPromise('/v3/soccer/stats/{format}/GamesByDate/{date}', parameters);\n }", "function getSunburst(date){\n if (date == 2017){\n globalStartDate = new Date(2017, 0, 01);\n globalEndDate = new Date(2017, 11, 31);\n }\n else if (date == 2018){\n globalStartDate = new Date(2018, 0, 01);\n globalEndDate = new Date(2018, 11, 31); \n }\n else if (date == 2019) {\n globalStartDate = new Date(2019, 0, 01);\n globalEndDate = new Date(2019, 11, 31);\n }\n else if (date == 20172019) {\n globalStartDate = new Date(2017, 0, 01);\n globalEndDate = new Date(2019, 11, 31);\n }\n createSunburst(true);\n}", "function downloadScenesForDate(date) {\n if (downloadedDates.hasOwnProperty(date)) { // already downloaded\n }else{ //need to download the scene set\n downloadedDates[date] = 1;\n $.getJSON('http://tianjara.net/data/ga/ls8_index/' + date + '.json', function (data) {\n addSceneSet(map, data, date)\n });\n }\n}", "getGamesByDatePromise(date){\n var parameters = {};\n parameters['date']=date;\n return this.GetPromise('/v3/soccer/scores/{format}/GamesByDate/{date}', parameters);\n }", "function getEntriesByDate(date) {\n return rest.one('date', date).get();\n }", "getGamesByDatePromise(date){\n var parameters = {};\n parameters['date']=date;\n return this.GetPromise('/v3/nhl/stats/{format}/GamesByDate/{date}', parameters);\n }", "function convertDateToSeason(date) {\n\t var season = '', year = date.getFullYear(), month = date.getMonth() + 1, commonArrays = ListService.getCommonArrays(),\n\t i = commonArrays.seasons.length;\n\t// console.log('convert: ', year, month);\n\t while(i--) {\n\t if (month > Number(commonArrays.seasons[i].number) && season === '') {\n\t season = { season: commonArrays.seasons[i+1].text, year: year };\n\t }\n\t //catch winter.\n\t if (i === 0 && season === '') {\n\t season = { season: commonArrays.seasons[i].text, year: year };\n\t }\n\t }\n\t// console.log('to: ', season);\n\t return season;\n\t }", "function studentByDate(date) {\n return props.students.filter(student => student.date === date)\n }", "function findLabByDate(date, allLabs){\n\n for(var i=0; i<allLabs.length; i++) {\n\n if(allLabs[i].date == date){\n return allLabs[i];\n }\n\n }\n return -1;\n\n }", "function getFood(date){\n let i, food;\n for(i in Food){\n food = Food[i];\n if (food.Date == date){\n return food;\n }\n }\n}", "function getRankingsByDate(date)\n{\n\t// empty table\n\t$(\"#rankingtable\").find(\"tr:gt(0)\").remove();\n\n\t// rank based on values\n\tvar ranked = corona.data[corona.data_label][date]\n\tvar sortedArray = ranked.sort(function(a, b) { return b[4] - a[4]; });\n\n\t$.each(sortedArray,function(i,val){\n\t\tif(i < 10000)\n\t\t{\t\t\n\t\t\t$('#rankingtable tbody').append('<tr onmouseover=\"corona.rankingMouseover('+i+')\" onmouseout=\"corona.rankingMouseout('+i+')\"><td>'+val[0]+' '+val[1]+'</td><td align=\"right\">'+val[4]+'</tr>');\n\t\t}\n\t})\n}", "static findByDate(checkDate) {\n let compDate1 = checkDate.toDateString();\n\n dateReducer = function (acc, ind) {\n let compDate2 = ind.eventDate.toDateString();\n if (compDate1 == compDate2) {\n acc.push(ind);\n }\n };\n\n let searchResults = Event.allEvents.filter(dateReducer, []);\n\n return searchResults;\n }", "function findByDate() {\n return fs.readdirPromise(path.join(dataDirname, 'byDate'))\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new topic with name, type (optional) and description (optional). If "create" option is "unless_exists", the constraints will be on the name and type (and not the type's included_types). Also, if topic exists with a description, it's description will be updated if description is specified. If "included_types" option is TRUE, this will type the topic with the included_types (/freebase/type_hints/included_types) of the "type" specified.
function create_topic(options) { var o; try { o = { name: validators.String(options, "name", {required:true}), type: validators.MqlId(options, "type", {if_empty:""}), included_types: validators.StringBool(options, "included_types", {if_empty:true}), description: validators.String(options, "description", {if_empty:""}), lang: validators.LangId(options, "lang", {if_empty:"/lang/en"}) }; } catch(e if e instanceof validators.Invalid) { return deferred.rejected(e); } var q = { id: null, name: { value: o.name, lang: o.lang }, create: "unconditional" }; if (o.type) { q.type = o.type; } if (o.description) { q["/common/topic/description"] = { value: o.name, lang: o.lang }; } return freebase.mqlwrite(q) .then(function(env) { var created = env.result; created.name = created.name.value; return created; }) .then(function(created) { if (o.type && o.included_types) { return included_types(o.type) .then(function(types) { if (types.length) { var q = { id: created.id, type: [{id:t.id, connect:"insert"} for each (t in types)] }; return freebase.mqlwrite(q) .then(function() { return created; }); } else { return created; } }); } else { return created; } }); }
[ "function createTopic() {\n// Creates a new topic\n pubsub\n .createTopic(topic)\n .then(results => {\n const topicResult = results[0];\n console.log(`Topic ${topicResult} created.`);\n// Once the topic is created, create a subscription to pair with it\n checkSubscriptions();\n })\n .catch(err => {\n console.error('ERROR while creating topic ' + topic + ': ', err);\n });\n }", "function createTopic (topicName, callback) {\n // Instantiates a client\n const pubsubClient = PubSub();\n\n // Creates a new topic, e.g. \"my-new-topic\"\n pubsubClient.createTopic(topicName, (err, topic) => {\n if (err) {\n callback(err);\n return;\n }\n\n console.log(`Topic ${topic.name} created.`);\n callback();\n });\n}", "function createTopic(env, callback) {\n sns.createTopic({\n Name: `${params.app}-${env}-${params.event}`,\n },\n function _createTopic(err) {\n if (err) {\n console.log(err)\n }\n setTimeout(callback, 0)\n })\n }", "function makeTopic(context, path) {\n\n function topic(name) {\n\n // If no name is provided then return self\n if (!name) return topic\n\n // Take the \"head\" of the topic\n const \n i = name.indexOf('.'),\n head = i >= 0? name.substr(0,i) : name,\n rest = i >= 0? name.substr(i+1) : ''\n\n // Create the topic if it does not exist\n let child = context.children[head]\n if (!child)\n child = context.children[head] = makeContext(head, context)\n\n // Return the child topic\n return child.topic(rest)\n }\n\n topic.path = path\n topic.subscribe = subscribe.bind(context)\n topic.once = subscribeOnce.bind(context)\n topic.publishSync = publishSync.bind(context)\n topic.publishAsync = publishAsync.bind(context)\n topic.publish = publish.bind(context)\n topic.unsubscribe = unsubscribe.bind(context)\n topic.subtopic = subtopic.bind(context)\n topic.clear = clear.bind(context)\n topic.pop = pop.bind(context)\n topic.use = use.bind(context)\n topic.unuse = unuse.bind(context)\n\n Object.freeze(topic)\n\n return topic\n}", "\"topics.insert\"(title, description, categoryId) {\n //addcheck for user admin/researcher role\n\n const topic = {\n title: title,\n description: description,\n categoryId: categoryId,\n createdAt: new Date(),\n createdBy: Meteor.userId()\n };\n\n // Check topic against schema.\n Topics.schema.validate(topic);\n\n if (Topics.schema.isValid()) {\n Topics.insert(topic);\n } else {\n console.log(\"Validation Errors:\", Topics.schema.validationErrors());\n }\n }", "create (type, schemaDef, cb) {\n\n var payload = {};\n payload[type] = schemaDef;\n\n UtilXHR.post(payload, UrlBuilder.forOneSchema(type), cb);\n\n }", "function postTopic(req, res){\n var name = req.body.name;\n \n console.log('Creating a new topic with name: ' + name);\n \n topicModel.insertNewTopic(name, function(results) {\n res.json(results);\n });\n}", "createTopic(name) {\n const newLen = questions.push( new Questions( name ) )\n return questions[ newLen - 1 ]\n }", "function createTopic() {\n var newTopic = JSONfn.parse(JSONfn.stringify(widgetTopicTemplate));\n console.log(newTopic);\n return newTopic;\n }", "function createType(type) {\n return new Promise((fullfill, reject) => {\n ARGS.type = type;\n client.create(ARGS, (err, res) => {\n if(err) {\n LOG.info(\"Unable to create type %s, because of %s\", type, err);\n reject(err); \n } else {\n LOG.info(\"type %s created.\", type);\n fullfill(res);\n } \n });\n }); \n}", "registerTopic(info) {\n\n return new Promise((success, failure) => {\n\n // 1. Validate the data\n if (info.topicName == null) {failure({code: 400, message: 'Missing field \"topicName\" in the input object.'}); return; }\n if (info.microservice == null) {failure({code: 400, message: 'Missing field \"microservices\" in the input object. The microservice should be the id of the MS (e.g. toto-nodems-expenses)'}); return; }\n\n // 2. Check if the topic has already been registered\n for (var i = 0; i < this.topics.length; i++) {\n\n if (this.topics[i].topicName == info.topicName) {success(this.topics[i]); return;}\n\n }\n\n // 3. Add the topic\n let topic = {\n topicName: info.topicName,\n microservice: info.microservice,\n role: 'producer'\n };\n\n this.topics.push(topic);\n\n success(topic);\n\n });\n }", "function createTopicsKafka(){\n try {\n producer.on(\"ready\", function () {\n producer.on('error', function (err) {\n console.log(err);\n });\n\n // Topic names in Array\n producer.createTopics(topics, true, function (err, data) {\n console.log('Topics created: '+ data);\n producer.close()\n });\n });\n }\n catch (err) {\n console.log('the error is occurred: ', err);\n }\n}", "function createDefaultSimpleTopic() {\n return new Promise((resolve, reject) => {\n Topic.findOne({ title: 'Um pequeno artigo sobre sustentabilidade' }).then((result) => {\n if (!result) {\n\n Topic.create({\n title: 'Um pequeno artigo sobre sustentabilidade',\n text: 'Sustentabilidade é uma característica ou condição de um processo ou de um sistema que permite a sua permanência, em certo nível, por um determinado prazo. Ultimamente, este conceito tornou-se um princípio segundo o qual o uso dos recursos naturais para a satisfação de necessidades presentes não pode comprometer a satisfação das necessidades das gerações futuras. Este novo princípio foi ampliado para a expressão \"sustentabilidade no longo prazo\", um \"longo prazo\" de termo indefinido.',\n idUser: '1',\n date: Date.now()\n }, function(err) {\n if (err) {\n console.error('Unable to create the default topic.')\n console.error(err)\n reject(err)\n } else {\n console.log('Successfully created the default topic')\n }\n })\n }\n })\n resolve()\n })\n}", "static async create({ survey_id, title, question_type }) {\n if (survey_id === undefined || title === undefined ||\n question_type === undefined) {\n const err = new Error(`Must supply title, question_type and survey_id`);\n err.status = 400;\n throw err;\n }\n const result = await db.query(\n `\n INSERT INTO questions (survey_id, title, question_type)\n VALUES ($1,$2,$3)\n RETURNING id, survey_id, title, question_type\n `,\n [survey_id, title, question_type]\n );\n\n return new Question(result.rows[0]);\n }", "function createSubtopicsTable() {\n return knex.schema.createTableIfNotExists('subtopics', (table) => {\n table.increments();\n table.string('description');\n table.string('subtopic_serial').unique();\n table.string('name');\n })\n}", "create(req, res) {\n Discussion\n .create({\n topic: req.body.topic,\n })\n .then(function() {\n console.log(\"created a new discussion topic!\")\n res.redirect('/discussions');\n })\n }", "function create_table() {\r\n let obj_template_keys = Object.keys(service_obj[current_service_name].obj_template);\r\n let query = \"CREATE TABLE if not exists \";\r\n let tbl_params = \" (topic TEXT PRIMARY KEY, \" + \" handle TEXT,\" +\r\n \" object TEXT)\";\r\n let sub_query = service_obj[current_service_name].table_name + tbl_params;\r\n query = query + sub_query;\r\n db.run(query, function (error) {\r\n if (error) {\r\n log.fatal(null, error);\r\n } else {\r\n if (global_sid) {\r\n register_topics(global_sid);\r\n }\r\n }\r\n });\r\n}", "function insertTopic(description, link) {\n\tvar node = {};\n\t\n\tnode.type = \"topic\";\n\tnode.content = description;\n\tnode.vote_count = 0;\n node.child_count = 0;\n\tnode.id = nodes.length;\n\tnode.children_ids = new Array();\n\tnode.link = link;\n node.root_id = null;\n\t\n\tnodes.push(node);\n\treturn node;\n}", "function create_article(content, content_type, options) {\n options = options || {};\n var q = {\n id: null,\n type: \"/common/document\",\n create: \"unconditional\"\n };\n return freebase.mqlwrite(q, options)\n .then(function(env) {\n return env.result;\n })\n .then(function(doc) {\n return upload(content, content_type, h.extend({}, options, {document:doc.id}))\n .then(function(uploaded) {\n h.extend(doc, {\"/common/document/content\": uploaded});\n return doc;\n });\n })\n .then(function(doc) {\n if (options.topic) {\n q = {\n id: options.topic,\n \"/common/topic/article\": {\n id: doc.id,\n connect: \"insert\"\n }\n };\n return freebase.mqlwrite(q)\n .then(function() {\n return doc;\n });\n }\n return doc;\n });\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Highlight playable cards in hand
function highlightCards() { let playCard = $('.game button[name="play_card"]'); if (playCard.length === 1 && playCard.val() === 0) { // case 1: single play card button mode is active if ($('.game__hand.my-hand .selected-card').length === 0) { // case 1: highlight playable cards $('.game__hand.my-hand .suggested > .card').animate({ opacity: 0.6 }, 500, function () { $(this).animate({ opacity: 1 }, 500); }); window.setTimeout(highlightCards, 3000); } else if (playCard.length === 1) { // case 2: highlight play button playCard.effect('highlight', {}, 1000); window.setTimeout(highlightCards, 3000); } } else if (playCard.length > 0) { // case 2: multiple play card button mode is active playCard = $('.game button.suggested'); playCard.effect('highlight', {}, 1000); window.setTimeout(highlightCards, 3000); } else if ($('.game__hand.my-hand .selected-card').length === 0) { // case 3: no play card button is available // case 1: highlight a card for discard action $('.game__hand.my-hand .suggested > .card').animate({ opacity: 0.6 }, 500, function () { $(this).animate({ opacity: 1 }, 500); }); window.setTimeout(highlightCards, 3000); } else { // case 2: highlight discard button $('.game button[name="discard_card"]').effect('highlight', {}, 1000); window.setTimeout(highlightCards, 3000); } }
[ "function doCardHighlighting() {\n for (let sprite of cardSprites) {\n if (isSelectionCardHovering(sprite)) {\n sprite.tint = 0x990000;\n } else {\n sprite.tint = 0xFFFFFF;\n }\n }\n}", "function highlightCards () {\n const cl = createKnown()\n const diff = $(cl).not(knownList).get()\n $('.card').removeClass('card-new-highlighted')\n diff.forEach(task => {\n const id = task.substring(1, task.length)\n $(`#${id}`).addClass('card-new-highlighted')\n if (!$(`#${id}`).is(':visible')) {\n for (let i = 1, t = 5; i <= t; i++) {\n if ($(`#${id}`).hasClass(`color-${i}`)) {\n highlightNewGlyph($(`#${id}`).prop('id'), i)\n return\n }\n }\n }\n })\n ipcRenderer.send('badge-count', diff.length || 0)\n}", "function playAreaHighlight() {\n\tif (!splitTurn) {\n\t\tplayerHand.addClass('red');\n\t}\n\telse {\n\t\tplayerHand.removeClass('red');\n\t\tplayerHand2.addClass('red');\n\t}\n}", "changeFace(playingCard) {\n playingCard.querySelector(\".cardFront\").classList.add(\"visible\");\n }", "function markCards(pair, match){\n\t\t\tvar status = match ? 'matched' : 'unmatched';\n\t\t\tpair.forEach(function(e,i){\n\t\t\t\te.addClass(status);\n\t\t\t})\n\t\t\t// Incremen the number of move\n\t\t\tkeepScore();\n\t\t}", "function highlightHand(hand) {\n push();\n noFill();\n strokeWeight(3);\n stroke(225,220,177);\n // Display a circle at the tip of the index finger\n let thumb = hand.annotations.thumb;\n let tip = thumb[3];\n let base = thumb[0];\n let tipX = tip[0];\n let tipY = tip[1];\n let baseX = base[0];\n let baseY = base[1];\n line(baseX, baseY, tipX, tipY);\n\n let index = hand.annotations.indexFinger;\n let tip2 = index[3];\n let base2 = index[0];\n let tip2X = tip2[0];\n let tip2Y = tip2[1];\n let base2X = base2[0];\n let base2Y = base2[1];\n line(base2X, base2Y, tip2X, tip2Y);\n\n let middle = hand.annotations.middleFinger;\n let tip3 = middle[3];\n let base3 = middle[0];\n let tip3X = tip3[0];\n let tip3Y = tip3[1];\n let base3X = base3[0];\n let base3Y = base3[1];\n line(base3X, base3Y, tip3X, tip3Y);\n\n let ringFinger = hand.annotations.ringFinger;\n let tip4 = ringFinger[3];\n let base4 = ringFinger[0];\n let tip4X = tip4[0];\n let tip4Y = tip4[1];\n let base4X = base4[0];\n let base4Y = base4[1];\n line(base4X, base4Y, tip4X, tip4Y);\n\n let pinky = hand.annotations.pinky;\n let tip5 = pinky[3];\n let base5 = pinky[0];\n let tip5X = tip5[0];\n let tip5Y = tip5[1];\n let base5X = base5[0];\n let base5Y = base5[1];\n line(base5X, base5Y, tip5X, tip5Y);\n\n // Trigger phone Pushed Ending if player's middle finger is at least half the height while they laugh haha\n let d = dist(base3X, base3Y, tip3X, tip3Y);\n if (d >= 240 && currentInput === `Haha`){\n state = `phonePushedEnding`;\n }\n\n // Trigger phone Smack Ending if player's tips are close enough to the phone while they yell I got you\n let d1 = dist(phone.x, phone.y,tipX,tipY);\n let d2 = dist(phone.x, phone.y,tip2X,tip2Y);\n let d3 = dist(phone.x, phone.y,tip3X,tip3Y);\n let d4 = dist(phone.x, phone.y,tip4X,tip4Y);\n let d5 = dist(phone.x, phone.y,tip5X,tip5Y);\n pop();\n if (d1 <= phone.height/2 && d2 <= phone.height/2 && d3 <= phone.height/2 && d4 <= phone.height/2 && d5 <= phone.height/2 &&\n currentInput === `I got you`){\n // displayText(`TOUCHED PHONE`, 20, width / 2, 7*height / 8,0);\n state = `phoneSmackedEnding`;\n }\n}", "function paintHighLightCard() {\n activities[0].color = getRandomColor();\n var container = document.getElementById(\"highlighted-card\");\n var card = cardFactory.newStaticCard(activities[0]); //The cards are sorted and therefore, the first activity will be \"next\" activity\n container.appendChild(card);\n CountDownTimer(activities[0].startDateTime, \"clock\");\n activities.shift();\n}", "function highlightHand(hand) {\n push();\n noFill();\n strokeWeight(3);\n stroke(255);\n // Positioning of the thumb tip and base\n let thumb = hand.annotations.thumb;\n let tip = thumb[3];\n let base = thumb[0];\n let tipX = tip[0];\n let tipY = tip[1];\n let baseX = base[0];\n let baseY = base[1];\n line(baseX, baseY, tipX, tipY);\n // Positioning of the index's tip and base\n let index = hand.annotations.indexFinger;\n let tip2 = index[3];\n let base2 = index[0];\n let tip2X = tip2[0];\n let tip2Y = tip2[1];\n let base2X = base2[0];\n let base2Y = base2[1];\n line(base2X, base2Y, tip2X, tip2Y);\n // Positioning of the middle finger's tip and base\n let middle = hand.annotations.middleFinger;\n let tip3 = middle[3];\n let base3 = middle[0];\n let tip3X = tip3[0];\n let tip3Y = tip3[1];\n let base3X = base3[0];\n let base3Y = base3[1];\n line(base3X, base3Y, tip3X, tip3Y);\n // Positioning of the ring finger's tip and base\n let ringFinger = hand.annotations.ringFinger;\n let tip4 = ringFinger[3];\n let base4 = ringFinger[0];\n let tip4X = tip4[0];\n let tip4Y = tip4[1];\n let base4X = base4[0];\n let base4Y = base4[1];\n line(base4X, base4Y, tip4X, tip4Y);\n // Positioning of the pinky's tip and base\n let pinky = hand.annotations.pinky;\n let tip5 = pinky[3];\n let base5 = pinky[0];\n let tip5X = tip5[0];\n let tip5Y = tip5[1];\n let base5X = base5[0];\n let base5Y = base5[1];\n line(base5X, base5Y, tip5X, tip5Y);\n\n // MENU STATE: Break the sub title if User's index finger is close enough to the area a point near the right side of the subtitle!\n let dm = dist(3 * width / 4, 3 * height / 4, tip2X, tip2Y);\n if (state === `menu` && dm <= 60) {\n title.broken = true;\n }\n // INTRODUCTION STATE: If player puts fingertip of index finger on button and says \"Let's Go\" then play\n let di = dist(redbutton.x, redbutton.y, tip2X, tip2Y);\n if (state === `instructions` && di <= redbutton.size / 2 && currentInput === `Let's go`) {\n redbutton.y = height / 2 + 80;\n state = `introduction`\n parkAmbienceSFX.loop();\n birdChirpingSFX.loop();\n bassBoomSFX.play();\n menuSFX.stop();\n } else if (state === `instructions` && di <= redbutton.size / 2) {\n redbutton.y = height / 2 + 80;\n } else {\n redbutton.y = height / 2 + 70;\n }\n\n // HELPING CONDITIONS\n // FIRST SITUATION: Trigger catch outcome if player's tips are near enough to the phone while they yell \"I got you\"\n let d1 = dist(phone.x, phone.y, tipX, tipY);\n let d2 = dist(phone.x, phone.y, tip2X, tip2Y);\n let d3 = dist(phone.x, phone.y, tip3X, tip3Y);\n let d4 = dist(phone.x, phone.y, tip4X, tip4Y);\n let d5 = dist(phone.x, phone.y, tip5X, tip5Y);\n pop();\n if (d1 <= phone.height / 2 && d2 <= phone.height / 2 && d3 <= phone.height / 2 && d4 <= phone.height / 2 && d5 <= phone.height / 2 &&\n currentInput === `I got you` &&\n state === `firstDecision`) {\n // displayText(`TOUCHED PHONE`, 20, width / 2, 7 * height / 8, 0);\n state = `catchOutcome`;\n heartbeatSFX.stop();\n parkAmbienceSFX.play();\n birdChirpingSFX.play();\n helpCounter += 1;\n }\n\n // SECOND SITUATION: If players put hand on the half left, make handLeft variable true.\n if (tipX <= width / 2 && tip2X <= width / 2 && tip3X <= width / 2 && tip4X <= width / 2 && tip5X <= width / 2 && state === `secondDecision`) {\n handLeft = true\n }\n // Display further instruction\n if (handLeft === true && state === `secondDecision`) {\n displayText(`Now move your hand to the right and yell \"Poop from the sky\"!`, 27, width / 2, 4.3 * height / 5, 70, 70, 70);\n }\n // Trigger pushOutcome state if player puts his fingertips on the right half of the canvas while saying \"Poop from the sky\"\n if (tipX >= width / 2 && tip2X >= width / 2 && tip3X >= width / 2 && tip4X >= width / 2 && tip5X >= width / 2 && state === `secondDecision` && handLeft === true && currentInput === `Poop from the sky`) {\n state = `pushOutcome`\n heartbeatSFX.stop();\n parkAmbienceSFX.play();\n birdChirpingSFX.play();\n helpCounter += 1;\n }\n // THIRD SITUATION: Trigger the saveOutcome state if player's middle finger is at least half the height of the canvas while they say \"Not on my watch\"\n let dp = dist(base3X, base3Y, tip3X, tip3Y);\n if (dp >= 240 && currentInput === `Not on my watch` && state === `thirdDecision`) {\n state = `saveOutcome`;\n heartbeatSFX.stop();\n parkAmbienceSFX.play();\n birdChirpingSFX.play();\n helpCounter += 1;\n }\n}", "function cardsUp() {\r\n cardsDisplay.innerHTML = \"\";\r\n for (const el of userHand) {\r\n let card = createCard(el);\r\n cardsDisplay.append(card);\r\n card.addEventListener(\"click\", () => {\r\n if (gameStage <= 1) {\r\n if (el.selected === false) {\r\n card.classList.add(\"opaque\");\r\n el.selected = true;\r\n holdAudio.play();\r\n } else {\r\n card.classList.remove(\"opaque\");\r\n el.selected = false;\r\n unholdAudio.play();\r\n }\r\n }\r\n });\r\n }\r\n controlsDisplay.append(playBtn);\r\n}", "function matched() {\n selectedCards[0].classList.add('match', 'disabled');\n selectedCards[1].classList.add('match', 'disabled');\n selectedCards[0].classList.remove('show', 'open', 'no-event');\n selectedCards[1].classList.remove('show', 'open', 'no-event');\n selectedCards = [];\n}", "function matchCards() {\n for (const openCard of openCards) {\n openCard.addClass('match bounce');\n }\n}", "function match() {\n\topenCards[0].addClass('match');\n\topenCards[1].addClass('match');\n\tmatchedCards.push(openCards[0], openCards[1]);\n}", "match(card_element){\n card_element.classList.add('match');\n }", "function cardSpeak() {\n let xPos = event.offsetX;\n let yPos = event.offsetY;\n player.cards.onHand.forEach(element => {\n if (\n yPos > element.y &&\n yPos < element.y + element.height &&\n xPos > element.x &&\n xPos < element.x + element.width\n ) {\n console.log();\n element.speaking = true;\n } else element.speaking = false;\n });\n}", "function cardMatched() {\n\tvar selected = document.querySelectorAll('.selected');\n\tselected.forEach(card => {\n\t\tcard.classList.add('open', 'show');\n\t\tcard.classList.remove('selected');\n\t});\n\tincrementMoveCounter();\n\tresetCardCompareValues();\n}", "function highlight() {\n if(document.getElementById(\"highlight\").checked) {\n for (let i = 0; i < square.length; i++) {\n if (square[i].getAttribute(\"data-lock\") == 0\n && square[i].hasAttribute(\"data-owner\") == false) {\n $(square[i]).css(\"background-color\", \"#555\");\n };\n };\n } else {\n for (let i = 0; i < square.length; i++) {\n if (square[i].getAttribute(\"data-lock\") == 0\n && square[i].hasAttribute(\"data-owner\") == false) {\n $(square[i]).css(\"background-color\", \"#222\");\n };\n };\n if (turn === 0 && player === 1) { //Gives middle square highlight\n $(square[Math.floor(grid*grid/2)]).css(\"background-color\", \"#555\");\n };\n };\n}", "function enable(){\n let matchedCard=matchedCardState();\n Array.prototype.filter.call(cards, function(card){\n card.classList.remove('disabled');\n //redisable cards that are already matched\n for(var i = 0; i < matchedCard.length; i++){\n matchedCard[i].classList.add(\"disabled\");\n }\n });\n }", "function clickedCards(card) {\n $(card).addClass('show open');\n}", "function coverAllCards() {\n let coveredCards = document.querySelectorAll('.match, .show, .open');\n let coveredCardsArray = Array.from(coveredCards);\n coveredCardsArray.forEach(function(cc) {\n cc.className = 'card';\n });\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Call bindNumber or bindString appropriatly
bindValue(val, pos) { if (pos == null) { pos = this.pos++; } switch (typeof val) { case "string": return this.bindString(val, pos); case "number":case "boolean": return this.bindNumber(val+0, pos); case "object": if (val === null) { return this.bindNull(pos); } else if (val.length != null) { return this.bindBlob(val, pos); } else { throw `Wrong API use : tried to bind a value of an unknown type (${val}).`; } } }
[ "async _processExecuteBind(bindInfo, bindData) {\n\n // setup defaults\n bindInfo.isArray = false;\n\n // if bind data is a value that can be bound directly, use it; otherwise,\n // scan the bind unit for bind information and its value\n let bindValue;\n if (this._isBindValue(bindData)) {\n bindInfo.dir = constants.BIND_IN;\n bindValue = bindData;\n } else {\n bindValue = await this._processBindUnit(bindInfo, bindData, false);\n }\n\n // for IN and IN/OUT binds, process the value\n if (bindInfo.dir !== constants.BIND_OUT) {\n const options = {pos: 0, allowArray: true};\n await this._processBindValue(bindInfo, bindValue, options);\n }\n\n // if only null values were found (or an OUT bind was specified), type\n // information may not be set, so complete bind information as a string\n // and set the maxSize to 1 if it has not already been set\n if (bindInfo.type === undefined) {\n bindInfo.type = types.DB_TYPE_VARCHAR;\n if (bindInfo.maxSize === undefined)\n bindInfo.maxSize = 1;\n }\n\n // check valid bind type for array binds\n if (bindInfo.isArray &&\n bindInfo.type !== types.DB_TYPE_VARCHAR &&\n bindInfo.type !== types.DB_TYPE_NVARCHAR &&\n bindInfo.type !== types.DB_TYPE_CHAR &&\n bindInfo.type !== types.DB_TYPE_NCHAR &&\n bindInfo.type !== types.DB_TYPE_NUMBER &&\n bindInfo.type !== types.DB_TYPE_BINARY_FLOAT &&\n bindInfo.type !== types.DB_TYPE_BINARY_DOUBLE &&\n bindInfo.type !== types.DB_TYPE_DATE &&\n bindInfo.type !== types.DB_TYPE_TIMESTAMP &&\n bindInfo.type !== types.DB_TYPE_TIMESTAMP_LTZ &&\n bindInfo.type !== types.DB_TYPE_TIMESTAMP_TZ &&\n bindInfo.type !== types.DB_TYPE_RAW) {\n errors.throwErr(errors.ERR_INVALID_TYPE_FOR_ARRAY_BIND);\n }\n\n }", "Bind(IDispatch, string, string) {\n\n }", "function bind(value) {\n var lView = getLView();\n return bindingUpdated(lView, lView[BINDING_INDEX]++, value) ? value : NO_CHANGE;\n}", "function bind(value) {\n return bindingUpdated(viewData[BINDING_INDEX]++, value) ? value : NO_CHANGE;\n}", "function Bind_R() {\r\n}", "function bind(value) {\n var lView = Object(render3_state.m)(), bindingIndex = lView[interfaces_view.a]++;\n return storeBindingMetadata(lView), Object(bindings.a)(lView, bindingIndex, value) ? value : tokens.a;\n }", "function simpleBind(context,fn){return function(value){fn.call(context,value);};}", "function bind(value) {\n return bindingUpdated(value) ? value : NO_CHANGE;\n}", "async _processBindUnit(bindInfo, bindUnit, inExecuteMany) {\n let okBindUnit = false;\n\n // get and validate bind direction; if not specified, IN is assumed\n if (bindUnit.dir === undefined) {\n bindInfo.dir = constants.BIND_IN;\n } else {\n errors.assert(this._isBindDir(bindUnit.dir),\n errors.ERR_INVALID_BIND_DIRECTION);\n bindInfo.dir = bindUnit.dir;\n okBindUnit = true;\n }\n\n // get and validate bind type; it must be one of the integer constants\n // identifying types, a string identifying an object type or a constructor\n // function identifying an object type\n if (bindUnit.type !== undefined) {\n if (typeof bindUnit.type === 'string') {\n bindInfo.type = types.DB_TYPE_OBJECT;\n bindInfo.typeClass = await this._getDbObjectClassForName(bindUnit.type);\n bindInfo.objType = bindInfo.typeClass._objType;\n } else if (bindUnit.type.prototype instanceof BaseDbObject) {\n bindInfo.type = types.DB_TYPE_OBJECT;\n bindInfo.typeClass = bindUnit.type;\n bindInfo.objType = bindInfo.typeClass._objType;\n } else {\n errors.assert(bindUnit.type instanceof types.DbType,\n errors.ERR_INVALID_BIND_DATA_TYPE, 2);\n bindInfo.type = bindUnit.type;\n }\n okBindUnit = true;\n\n // when calling executeMany(), bind type is mandatory\n } else if (inExecuteMany) {\n if (bindInfo.name)\n errors.throwErr(errors.ERR_MISSING_TYPE_BY_NAME, bindInfo.name);\n errors.throwErr(errors.ERR_MISSING_TYPE_BY_POS, bindInfo.pos);\n }\n\n // get and validate the maximum size for strings/buffers; this value is\n // used for IN/OUT and OUT binds in execute() and at all times for\n // executeMany()\n if (bindInfo.dir !== constants.BIND_IN || inExecuteMany) {\n if (bindUnit.maxSize !== undefined) {\n errors.assertParamPropValue(Number.isInteger(bindUnit.maxSize) &&\n bindUnit.maxSize > 0, 2, \"maxSize\");\n bindInfo.maxSize = bindUnit.maxSize;\n bindInfo.checkSize = true;\n okBindUnit = true;\n } else if (inExecuteMany) {\n if (bindInfo.type === types.DB_TYPE_VARCHAR ||\n bindInfo.type === types.DB_TYPE_RAW) {\n if (bindInfo.name)\n errors.throwErr(errors.ERR_MISSING_MAX_SIZE_BY_NAME, bindInfo.name);\n errors.throwErr(errors.ERR_MISSING_MAX_SIZE_BY_POS, bindInfo.pos);\n }\n } else {\n bindInfo.maxSize = constants.DEFAULT_MAX_SIZE_FOR_OUT_BINDS;\n }\n }\n\n // get max array size (for array binds, not possible in executeMany())\n bindInfo.isArray = false;\n if (!inExecuteMany) {\n if (bindUnit.maxArraySize !== undefined) {\n errors.assertParamPropValue(Number.isInteger(bindUnit.maxArraySize) &&\n bindUnit.maxArraySize > 0, 2, \"maxArraySize\");\n bindInfo.maxArraySize = bindUnit.maxArraySize;\n bindInfo.isArray = true;\n }\n }\n\n // get the value, if specified (not used in executeMany())\n if (!inExecuteMany && bindUnit.val !== undefined) {\n return bindUnit.val;\n }\n\n if (!okBindUnit)\n errors.throwErr(errors.ERR_INVALID_BIND_UNIT);\n }", "function unix_bind() {\n unix_ll(\"unix_bind\", arguments);\n return 0;\n}", "function Bind_A_A_R() {\r\n}", "function _bind()\n\t\t{\n\t\t\tif (rtnValue._ctx)\n\t\t\t//if (rtnValue._isCallerConstructor)\n\t\t\t{\n\t\t\t\tObject.keys(rtnValue).forEach(function(key)\n\t\t\t\t{\n\t\t\t\t\tif (typeof(rtnValue[key]) == 'function')\n\t\t\t\t\t\tctx[key] = rtnValue[key].bind(rtnValue);\n\t\t\t\t});\n\t\t\t}\n\t\t}", "function Bind_A_A_A() {\r\n}", "setBindValue() {\n switch (this.type) {\n case \"bool\":\n this.setBindValueBool();\n break;\n case \"int\":\n this.setBindValueInt();\n break;\n case \"fn\":\n this.setBindValueFn();\n break;\n case \"array\":\n this.setBindValueArray();\n break;\n default:\n throw new Error('Attribute missing type.');\n }\n\n }", "function Component_BindingHandler() {}", "function doublerWithBind(num) {\n return multiplier.bind(null, 2);\n}", "_isBindValue(value) {\n return (\n value === null ||\n value === undefined ||\n typeof value === 'number' ||\n typeof value === 'string' ||\n typeof value === 'boolean' ||\n Array.isArray(value) ||\n Buffer.isBuffer(value) ||\n util.isDate(value) ||\n value instanceof Lob ||\n value instanceof ResultSet ||\n value instanceof BaseDbObject\n );\n }", "function Bind_A_Obound() {\r\n}", "async _processBindValue(bindInfo, value, options) {\n const transformed = transformer.transformValueIn(bindInfo, value, options);\n if (bindInfo.isArray) {\n bindInfo.values = transformed.concat(bindInfo.values.slice(transformed.length));\n } else {\n bindInfo.values[options.pos] = transformed;\n }\n if (bindInfo.type === types.DB_TYPE_OBJECT &&\n bindInfo.typeClass === undefined) {\n bindInfo.typeClass = await this._getDbObjectClass(value._objType);\n bindInfo.objType = bindInfo.typeClass._objType;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wrapper class over the 'debugfs' command to modify Ext2/3/4 filesystems
function DebugFS(device) { if(!(this instanceof DebugFS)) return new DebugFS(device) function exec(request, write, callback) { var argv = [device, '-R', request] if(write) argv.push('-w') execFile(DEBUGFS_BIN, argv, callback) } this.ls = function(filespec, callback) { exec('ls -p '+filespec, false, function(error, stdout) { if(error) return callback(error) var files = stdout.split('\n').filter(filterEmpty).map(createStat) callback(null, files) }) } this.set_inode_field = function(filespec, field, value, callback) { exec('set_inode_field '+filespec+' '+field+' '+value, true, callback) } }
[ "function DeviceDriverFileSystem() // Add or override specific attributes and method pointers.\n{\n // \"subclass\"-specific attributes.\n // this.buffer = \"\"; // TODO: Do we need this?\n // Override the base method pointers.\n this.driverEntry = krnFSDriverEntry;\n this.isr = null;\n // \"Constructor\" code.\n this.format = fsFormat;\n this.create = fsCreate;\n this.read = fsRead;\n this.write = fsWrite;\n this.del = fsDelete;\n this.ls = fsLs;\n}", "function DeviceDriverFileSystem(){ // Add or override specific attributes and method pointers.{\n // \"subclass\"-specific attributes.\n // this.buffer = \"\"; // TODO: Do we need this?\n // Override the base method pointers.\n this.driverEntry = function(){\n // Initialization routine for this, the kernel-mode Keyboard Device Driver.\n this.status = \"loaded\";\n // More?\n };\n this.isr = function(params){\n //expect to receive params as follows[filename | new program,operation,data,from user | os]\n switch(params[1]){\n case 0: createFile(params); break;\n case 1: readFile(params); break;\n case 2: writeFile(params); break;\n case 3: deleteFile(params); break;\n case 4: format(); break;\n case 5: listFiles(); break;\n case 6: findProgramFiles(); break;\n case 7: swapProcess(params); break;\n default: console.log(\"blakejrlbkadflkdaf\"); break;\n }\n };\n this.test = function(){\n updateMBR();\n }\n}", "function DeviceDriverFileSystem() // Add or override specific attributes and method pointers.\n{\n // \"subclass\"-specific attributes.\n // this.buffer = \"\"; // TODO: Do we need this?\n // Override the base method pointers.\n this.driverEntry = krnFileSystemDriverEntry;\n this.init = krnFileSystemInit;\n // \"Constructor\" code.\n}", "setFdstat(byteOffset, value, littleEndian = false) {\n /*\n * typedef struct __wasi_fdstat_t {\n * __wasi_filetype_t fs_filetype; u8\n * <pad> u8\n * __wasi_fdflags_t fs_flags; u16\n * <pad> u32\n * __wasi_rights_t fs_rights_base; u64\n * __wasi_rights_t fs_rights_inheriting; u64\n * } __wasi_fdstat_t;\n */\n this.setUint8(byteOffset, value.filetype, littleEndian);\n this.setUint16(byteOffset + 2, 0, littleEndian);\n this.setBigUint64(byteOffset + 8, value.rights_base, littleEndian);\n this.setBigUint64(byteOffset + 16, value.rights_inheriting, littleEndian);\n }", "mount(dir, fs) { return not_implemented(); }", "function liumeiti_FSCommand(command,args){\r\n\tliumeiti_DoFSCommand(command,args);\r\n}", "function wrapForNode(fs) {\n const fds = new Map()\n let nextFd = 3\n\n const enosys = text => {\n const err = new Error(text)\n err.code = 'ENOSYS'\n return err\n }\n\n const wrapStat = isDir => ({\n dev: 0,\n ino: 0,\n mode: isDir ? 0x4000 : 0,\n nlink: 0,\n uid: 0,\n gid: 0,\n rdev: 0,\n size: 0,\n blksize: 0,\n blocks: 0,\n atimeMs: 0,\n mtimeMs: 0,\n ctimeMs: 0,\n birthtimeMs: 0,\n isDirectory: () => isDir,\n })\n\n const decoder = new TextDecoder('utf-8')\n const openForWriting = node => {\n return {\n node,\n writeSync(buf) {\n node.contents += decoder.decode(buf)\n return buf.length\n },\n write(buf, offset, length, position, callback) {\n if (offset !== 0 || length !== buf.length || position !== null) {\n callback(enosys('Invalid write'))\n } else {\n callback(null, this.writeSync(buf))\n }\n },\n }\n }\n\n const encoder = new TextEncoder()\n const openForReading = node => {\n const bytes = encoder.encode(node.contents)\n let pos = 0\n return {\n node,\n read(buf, offset, length, position, callback) {\n if (offset !== 0 || length !== buf.length || position !== null) {\n callback(enosys('Invalid read'))\n } else {\n const count = Math.max(0, Math.min(length, bytes.length - pos))\n buf.set(bytes.subarray(pos, pos + count), offset)\n pos += count\n callback(null, count)\n }\n },\n }\n }\n\n fs.mkdir('/dev')\n fds.set(1, openForWriting(fs.mkfile('/dev/stdout')))\n fds.set(2, openForWriting(fs.mkfile('/dev/stderr')))\n\n return {\n constants: {\n O_WRONLY: 0x0001,\n O_RDWR: 0x0002,\n O_CREAT: 0x0200,\n O_TRUNC: 0x0400,\n O_APPEND: 0x0008,\n O_EXCL: 0x0800,\n },\n writeSync(fd, buf) {\n return fds.get(fd).writeSync(buf)\n },\n write(fd, buf, offset, length, position, callback) {\n fds.get(fd).write(buf, offset, length, position, callback)\n },\n close(fd, callback) {\n fds.delete(fd)\n callback(null)\n },\n open(path, flags, mode, callback) {\n if (flags === (this.constants.O_WRONLY | this.constants.O_CREAT | this.constants.O_TRUNC)) {\n let node\n try { node = fs.mkfile(path) }\n catch (e) { return callback(enosys(`Already exists: ${path}`)) }\n const fd = nextFd++\n fds.set(fd, openForWriting(node))\n return callback(null, fd)\n }\n if (flags === 0) {\n const node = fs.find(path)\n if (!node) return callback(enosys(`Does not exist: ${path}`))\n const fd = nextFd++\n fds.set(fd, node.dirEntries ? { node } : openForReading(node))\n return callback(null, fd)\n }\n return callback(enosys('Not implemented'))\n },\n read(fd, buffer, offset, length, position, callback) {\n fds.get(fd).read(buffer, offset, length, position, callback)\n },\n stat(path, callback) {\n const node = fs.find(path)\n if (!node) return callback(enosys(`Does not exist: ${path}`))\n callback(null, wrapStat(!!node.dirEntries))\n },\n lstat(path, callback) {\n const node = fs.find(path)\n if (!node) return callback(enosys(`Does not exist: ${path}`))\n callback(null, wrapStat(!!node.dirEntries))\n },\n fstat(fd, callback) {\n const { node } = fds.get(fd)\n callback(null, wrapStat(!!node.dirEntries))\n },\n readdir(path, callback) {\n const node = fs.find(path)\n if (!node || !node.dirEntries) return callback(enosys(`Not a directory: ${path}`))\n callback(null, Object.keys(node.dirEntries).sort())\n },\n }\n }", "function FileSystemDeviceDriver() // Add or override specific attributes and method pointers.\n{\n // \"subclass\"-specific attributes.\n // Override the base method pointers.\n this.driverEntry = krnFileDriverEntry;\n this.isr = krnFileOperations;\n // \"Constructor\" code.\n}", "function NodeFileSystem() {\n\n}", "function FileSystem(options, callback) {\n options = options || {};\n callback = callback || defaultCallback;\n var flags = options.flags || [];\n var guid = options.guid ? options.guid : defaultGuidFn;\n var provider = options.provider || new providers.Default(options.name || FILE_SYSTEM_NAME); // If we're given a provider, match its name unless we get an explicit name\n\n var name = options.name || provider.name;\n var forceFormatting = flags.includes(FS_FORMAT);\n var fs = this;\n fs.readyState = FS_PENDING;\n fs.name = name;\n fs.error = null;\n fs.stdin = STDIN;\n fs.stdout = STDOUT;\n fs.stderr = STDERR; // Expose Node's fs.constants to users\n\n fs.constants = fsConstants; // Node also forwards the access mode flags onto fs\n\n fs.F_OK = fsConstants.F_OK;\n fs.R_OK = fsConstants.R_OK;\n fs.W_OK = fsConstants.W_OK;\n fs.X_OK = fsConstants.X_OK; // Expose Shell constructor\n\n this.Shell = Shell.bind(undefined, this); // Safely expose the operation queue\n\n var queue = [];\n\n this.queueOrRun = function (operation) {\n var error;\n\n if (FS_READY === fs.readyState) {\n operation.call(fs);\n } else if (FS_ERROR === fs.readyState) {\n error = new Errors.EFILESYSTEMERROR('unknown error');\n } else {\n queue.push(operation);\n }\n\n return error;\n };\n\n function runQueued() {\n queue.forEach(function (operation) {\n operation.call(this);\n }.bind(fs));\n queue = null;\n } // We support the optional `options` arg from node, but ignore it\n\n\n this.watch = function (filename, options, listener) {\n if (Path.isNull(filename)) {\n throw new Error('Path must be a string without null bytes.');\n }\n\n if (typeof options === 'function') {\n listener = options;\n options = {};\n }\n\n options = options || {};\n listener = listener || nop;\n var watcher = new FSWatcher();\n watcher.start(filename, false, options.recursive);\n watcher.on('change', listener);\n return watcher;\n }; // Deal with various approaches to node ID creation\n\n\n function wrappedGuidFn(context) {\n return function (callback) {\n // Skip the duplicate ID check if asked to\n if (flags.includes(FS_NODUPEIDCHECK)) {\n callback(null, guid());\n return;\n } // Otherwise (default) make sure this id is unused first\n\n\n function guidWithCheck(callback) {\n var id = guid();\n context.getObject(id, function (err, value) {\n if (err) {\n callback(err);\n return;\n } // If this id is unused, use it, otherwise find another\n\n\n if (!value) {\n callback(null, id);\n } else {\n guidWithCheck(callback);\n }\n });\n }\n\n guidWithCheck(callback);\n };\n } // Let other instances (in this or other windows) know about\n // any changes to this fs instance.\n\n\n function broadcastChanges(changes) {\n if (!changes.length) {\n return;\n }\n\n var intercom = Intercom.getInstance();\n changes.forEach(function (change) {\n intercom.emit(change.event, change.path);\n });\n } // Open file system storage provider\n\n\n provider.open(function (err) {\n function complete(error) {\n function wrappedContext(methodName) {\n var context = provider[methodName]();\n context.name = name;\n context.flags = flags;\n context.changes = [];\n context.guid = wrappedGuidFn(context); // When the context is finished, let the fs deal with any change events\n\n context.close = function () {\n var changes = context.changes;\n broadcastChanges(changes);\n changes.length = 0;\n };\n\n return context;\n } // Wrap the provider so we can extend the context with fs flags and\n // an array of changes (e.g., watch event 'change' and 'rename' events\n // for paths updated during the lifetime of the context). From this\n // point forward we won't call open again, so it's safe to drop it.\n\n\n fs.provider = {\n openReadWriteContext: function openReadWriteContext() {\n return wrappedContext('getReadWriteContext');\n },\n openReadOnlyContext: function openReadOnlyContext() {\n return wrappedContext('getReadOnlyContext');\n }\n };\n\n if (error) {\n fs.readyState = FS_ERROR;\n } else {\n fs.readyState = FS_READY;\n }\n\n runQueued();\n callback(error, fs);\n }\n\n if (err) {\n return complete(err);\n }\n\n var context = provider.getReadWriteContext();\n context.guid = wrappedGuidFn(context); // Mount the filesystem, formatting if necessary\n\n if (forceFormatting) {\n // Wipe the storage provider, then write root block\n context.clear(function (err) {\n if (err) {\n return complete(err);\n }\n\n impl.ensureRootDirectory(context, complete);\n });\n } else {\n // Use existing (or create new) root and mount\n impl.ensureRootDirectory(context, complete);\n }\n });\n FileSystem.prototype.promises = {};\n /**\n * Public API for FileSystem. All node.js methods that are exposed on fs.promises\n * include `promise: true`. We also include our own extra methods, but skip the\n * fd versions to match node.js, which puts these on a `FileHandle` object.\n * Any method that deals with path argument(s) also includes the position of\n * those args in one of `absPathArgs: [...]` or `relPathArgs: [...]`, so they\n * can be processed and validated before being passed on to the method.\n */\n\n [{\n name: 'appendFile',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'access',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'chown',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'chmod',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'close'\n }, // copyFile - https://github.com/filerjs/filer/issues/436\n {\n name: 'exists',\n absPathArgs: [0]\n }, {\n name: 'fchown'\n }, {\n name: 'fchmod'\n }, // fdatasync - https://github.com/filerjs/filer/issues/653\n {\n name: 'fgetxattr'\n }, {\n name: 'fremovexattr'\n }, {\n name: 'fsetxattr'\n }, {\n name: 'fstat'\n }, {\n name: 'fsync'\n }, {\n name: 'ftruncate'\n }, {\n name: 'futimes'\n }, {\n name: 'getxattr',\n promises: true,\n absPathArgs: [0]\n }, // lchown - https://github.com/filerjs/filer/issues/620\n // lchmod - https://github.com/filerjs/filer/issues/619\n {\n name: 'link',\n promises: true,\n absPathArgs: [0, 1]\n }, {\n name: 'lseek'\n }, {\n name: 'lstat',\n promises: true\n }, {\n name: 'mkdir',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'mkdtemp',\n promises: true\n }, {\n name: 'mknod',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'open',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'readdir',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'read'\n }, {\n name: 'readFile',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'readlink',\n promises: true,\n absPathArgs: [0]\n }, // realpath - https://github.com/filerjs/filer/issues/85\n {\n name: 'removexattr',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'rename',\n promises: true,\n absPathArgs: [0, 1]\n }, {\n name: 'rmdir',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'setxattr',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'stat',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'symlink',\n promises: true,\n relPathArgs: [0],\n absPathArgs: [1]\n }, {\n name: 'truncate',\n promises: true,\n absPathArgs: [0]\n }, // unwatchFile - https://github.com/filerjs/filer/pull/553\n {\n name: 'unlink',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'utimes',\n promises: true,\n absPathArgs: [0]\n }, // watch - implemented above in `this.watch`\n // watchFile - https://github.com/filerjs/filer/issues/654\n {\n name: 'writeFile',\n promises: true,\n absPathArgs: [0]\n }, {\n name: 'write'\n }].forEach(function (method) {\n var methodName = method.name;\n var shouldPromisify = method.promises === true;\n\n FileSystem.prototype[methodName] = function () {\n var fs = this;\n var args = Array.prototype.slice.call(arguments, 0);\n var lastArgIndex = args.length - 1; // We may or may not get a callback, and since node.js supports\n // fire-and-forget style fs operations, we have to dance a bit here.\n\n var missingCallback = typeof args[lastArgIndex] !== 'function';\n var callback = maybeCallback(args[lastArgIndex]); // Deal with path arguments, validating and normalizing Buffer and file:// URLs\n\n if (method.absPathArgs) {\n method.absPathArgs.forEach(function (pathArg) {\n return processPathArg(args, pathArg, false);\n });\n }\n\n if (method.relPathArgs) {\n method.relPathArgs.forEach(function (pathArg) {\n return processPathArg(args, pathArg, true);\n });\n }\n\n var error = fs.queueOrRun(function () {\n var context = fs.provider.openReadWriteContext(); // Fail early if the filesystem is in an error state (e.g.,\n // provider failed to open.\n\n if (FS_ERROR === fs.readyState) {\n var err = new Errors.EFILESYSTEMERROR('filesystem unavailable, operation canceled');\n return callback.call(fs, err);\n } // Wrap the callback so we can explicitly close the context\n\n\n function complete() {\n context.close();\n callback.apply(fs, arguments);\n } // Either add or replace the callback with our wrapper complete()\n\n\n if (missingCallback) {\n args.push(complete);\n } else {\n args[lastArgIndex] = complete;\n } // Forward this call to the impl's version, using the following\n // call signature, with complete() as the callback/last-arg now:\n // fn(fs, context, arg0, arg1, ... , complete);\n\n\n var fnArgs = [context].concat(args);\n impl[methodName].apply(null, fnArgs);\n });\n\n if (error) {\n callback(error);\n }\n }; // Add to fs.promises if appropriate\n\n\n if (shouldPromisify) {\n FileSystem.prototype.promises[methodName] = promisify(FileSystem.prototype[methodName].bind(fs));\n }\n });\n} // Expose storage providers on FileSystem constructor", "function LocalFileSystemSync() {}", "function MountableFileSystem() {\n var _this = _super.call(this) || this;\n // Contains the list of mount points in mntMap, sorted by string length in decreasing order.\n // Ensures that we scan the most specific mount points for a match first, which lets us\n // nest mount points.\n _this.mountList = [];\n _this.mntMap = {};\n // The InMemory file system serves purely to provide directory listings for\n // mounted file systems.\n _this.rootFs = new InMemory_1[\"default\"]();\n return _this;\n }", "function FileSystem(options, callback) {\n options = options || {};\n callback = callback || defaultCallback;\n\n var flags = options.flags;\n var guid = options.guid ? options.guid : defaultGuidFn;\n var provider = options.provider || new providers.Default(options.name || FILE_SYSTEM_NAME);\n // If we're given a provider, match its name unless we get an explicit name\n var name = options.name || provider.name;\n var forceFormatting = _(flags).contains(FS_FORMAT);\n\n var fs = this;\n fs.readyState = FS_PENDING;\n fs.name = name;\n fs.error = null;\n\n fs.stdin = STDIN;\n fs.stdout = STDOUT;\n fs.stderr = STDERR;\n\n // Expose Shell constructor\n this.Shell = Shell.bind(undefined, this);\n\n // Safely expose the list of open files and file\n // descriptor management functions\n var openFiles = {};\n var nextDescriptor = FIRST_DESCRIPTOR;\n Object.defineProperty(this, \"openFiles\", {\n get: function() { return openFiles; }\n });\n this.allocDescriptor = function(openFileDescription) {\n var fd = nextDescriptor ++;\n openFiles[fd] = openFileDescription;\n return fd;\n };\n this.releaseDescriptor = function(fd) {\n delete openFiles[fd];\n };\n\n // Safely expose the operation queue\n var queue = [];\n this.queueOrRun = function(operation) {\n var error;\n\n if(FS_READY == fs.readyState) {\n operation.call(fs);\n } else if(FS_ERROR == fs.readyState) {\n error = new Errors.EFILESYSTEMERROR('unknown error');\n } else {\n queue.push(operation);\n }\n\n return error;\n };\n function runQueued() {\n queue.forEach(function(operation) {\n operation.call(this);\n }.bind(fs));\n queue = null;\n }\n\n // We support the optional `options` arg from node, but ignore it\n this.watch = function(filename, options, listener) {\n if(isNullPath(filename)) {\n throw new Error('Path must be a string without null bytes.');\n }\n if(typeof options === 'function') {\n listener = options;\n options = {};\n }\n options = options || {};\n listener = listener || nop;\n\n var watcher = new FSWatcher();\n watcher.start(filename, false, options.recursive);\n watcher.on('change', listener);\n\n return watcher;\n };\n\n // Deal with various approaches to node ID creation\n function wrappedGuidFn(context) {\n return function(callback) {\n // Skip the duplicate ID check if asked to\n if(_(flags).contains(FS_NODUPEIDCHECK)) {\n callback(null, guid());\n return;\n }\n\n // Otherwise (default) make sure this id is unused first\n function guidWithCheck(callback) {\n var id = guid();\n context.getObject(id, function(err, value) {\n if(err) {\n callback(err);\n return;\n }\n\n // If this id is unused, use it, otherwise find another\n if(!value) {\n callback(null, id);\n } else {\n guidWithCheck(callback);\n }\n });\n }\n guidWithCheck(callback);\n };\n }\n\n // Let other instances (in this or other windows) know about\n // any changes to this fs instance.\n function broadcastChanges(changes) {\n if(!changes.length) {\n return;\n }\n var intercom = Intercom.getInstance();\n changes.forEach(function(change) {\n intercom.emit(change.event, change.path);\n });\n }\n\n // Open file system storage provider\n provider.open(function(err) {\n function complete(error) {\n function wrappedContext(methodName) {\n var context = provider[methodName]();\n context.flags = flags;\n context.changes = [];\n context.guid = wrappedGuidFn(context);\n\n // When the context is finished, let the fs deal with any change events\n context.close = function() {\n var changes = context.changes;\n broadcastChanges(changes);\n changes.length = 0;\n };\n\n return context;\n }\n\n // Wrap the provider so we can extend the context with fs flags and\n // an array of changes (e.g., watch event 'change' and 'rename' events\n // for paths updated during the lifetime of the context). From this\n // point forward we won't call open again, so it's safe to drop it.\n fs.provider = {\n openReadWriteContext: function() {\n return wrappedContext('getReadWriteContext');\n },\n openReadOnlyContext: function() {\n return wrappedContext('getReadOnlyContext');\n }\n };\n\n if(error) {\n fs.readyState = FS_ERROR;\n } else {\n fs.readyState = FS_READY;\n }\n runQueued();\n callback(error, fs);\n }\n\n if(err) {\n return complete(err);\n }\n\n var context = provider.getReadWriteContext();\n context.guid = wrappedGuidFn(context);\n\n // Mount the filesystem, formatting if necessary\n if(forceFormatting) {\n // Wipe the storage provider, then write root block\n context.clear(function(err) {\n if(err) {\n return complete(err);\n }\n impl.ensureRootDirectory(context, complete);\n });\n } else {\n // Use existing (or create new) root and mount\n impl.ensureRootDirectory(context, complete);\n }\n });\n}", "setFilestat(byteOffset, value, littleEndian = false) {\n /*\n * typedef struct __wasi_filestat_t {\n * __wasi_device_t st_dev; u64\n * __wasi_inode_t st_ino; u64\n * __wasi_filetype_t st_filetype; u8\n * <pad> u8\n * __wasi_linkcount_t st_nlink; u32\n * __wasi_filesize_t st_size; u64\n * __wasi_timestamp_t st_atim; u64\n * __wasi_timestamp_t st_mtim; u64\n * __wasi_timestamp_t st_ctim; u64\n * } __wasi_filestat_t;\n */\n }", "function FileSystem(options, callback) {\n options = options || {};\n callback = callback || nop;\n\n var flags = options.flags;\n var provider = options.provider || new providers.Default(options.name || FILE_SYSTEM_NAME);\n // If we're given a provider, match its name unless we get an explicit name\n var name = options.name || provider.name;\n var forceFormatting = _(flags).contains(FS_FORMAT);\n\n var fs = this;\n fs.readyState = FS_PENDING;\n fs.name = name;\n fs.error = null;\n\n fs.stdin = STDIN;\n fs.stdout = STDOUT;\n fs.stderr = STDERR;\n\n // Safely expose the list of open files and file\n // descriptor management functions\n var openFiles = {};\n var nextDescriptor = FIRST_DESCRIPTOR;\n Object.defineProperty(this, \"openFiles\", {\n get: function() { return openFiles; }\n });\n this.allocDescriptor = function(openFileDescription) {\n var fd = nextDescriptor ++;\n openFiles[fd] = openFileDescription;\n return fd;\n };\n this.releaseDescriptor = function(fd) {\n delete openFiles[fd];\n };\n\n // Safely expose the operation queue\n var queue = [];\n this.queueOrRun = function(operation) {\n var error;\n\n if(FS_READY == fs.readyState) {\n operation.call(fs);\n } else if(FS_ERROR == fs.readyState) {\n error = new Errors.EFILESYSTEMERROR('unknown error');\n } else {\n queue.push(operation);\n }\n\n return error;\n };\n function runQueued() {\n queue.forEach(function(operation) {\n operation.call(this);\n }.bind(fs));\n queue = null;\n }\n\n // We support the optional `options` arg from node, but ignore it\n this.watch = function(filename, options, listener) {\n if(isNullPath(filename)) {\n throw new Error('Path must be a string without null bytes.');\n }\n if(typeof options === 'function') {\n listener = options;\n options = {};\n }\n options = options || {};\n listener = listener || nop;\n\n var watcher = new FSWatcher();\n watcher.start(filename, false, options.recursive);\n watcher.on('change', listener);\n\n return watcher;\n };\n\n // Let other instances (in this or other windows) know about\n // any changes to this fs instance.\n function broadcastChanges(changes) {\n if(!changes.length) {\n return;\n }\n var intercom = Intercom.getInstance();\n changes.forEach(function(change) {\n intercom.emit(change.event, change.path);\n });\n }\n\n // Open file system storage provider\n provider.open(function(err, needsFormatting) {\n function complete(error) {\n\n function wrappedContext(methodName) {\n var context = provider[methodName]();\n context.flags = flags;\n context.changes = [];\n\n // When the context is finished, let the fs deal with any change events\n context.close = function() {\n var changes = context.changes;\n broadcastChanges(changes);\n changes.length = 0;\n };\n\n return context;\n }\n\n // Wrap the provider so we can extend the context with fs flags and\n // an array of changes (e.g., watch event 'change' and 'rename' events\n // for paths updated during the lifetime of the context). From this\n // point forward we won't call open again, so it's safe to drop it.\n fs.provider = {\n openReadWriteContext: function() {\n return wrappedContext('getReadWriteContext');\n },\n openReadOnlyContext: function() {\n return wrappedContext('getReadOnlyContext');\n }\n };\n\n if(error) {\n fs.readyState = FS_ERROR;\n } else {\n fs.readyState = FS_READY;\n runQueued();\n }\n callback(error, fs);\n }\n\n if(err) {\n return complete(err);\n }\n\n // If we don't need or want formatting, we're done\n if(!(forceFormatting || needsFormatting)) {\n return complete(null);\n }\n // otherwise format the fs first\n var context = provider.getReadWriteContext();\n context.clear(function(err) {\n if(err) {\n complete(err);\n return;\n }\n impl.makeRootDirectory(context, complete);\n });\n });\n}", "function LocalFileSystem() {}", "function file_write(dirent, content, israw)\n{\n throw new Error('file_write not implemented in electrofs');\n}", "function LokiFsAdapter() {\n this.fs = require('fs');\n }", "function Fs(){\n\tvar workingDir = '/';\n\t\n\tvar fsTree = [\n\t\t{\n\t\t\tname: '/',\n\t\t\ttype: 'folder',\n\t\t\tcontent: [\n\t\t\t\t{\n\t\t\t\t\tname: '.',\n\t\t\t\t\ttype: 'folder'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: '..',\n\t\t\t\t\ttype: 'folder'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'var',\n\t\t\t\t\ttype: 'folder',\n\t\t\t\t\tcontent: [],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'opt',\n\t\t\t\t\ttype: 'folder',\n\t\t\t\t\tcontent: [],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'etc',\n\t\t\t\t\ttype: 'folder',\n\t\t\t\t\tcontent: [],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'usr',\n\t\t\t\t\ttype: 'folder',\n\t\t\t\t\tcontent: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: '.',\n\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: '..',\n\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'bin',\n\t\t\t\t\t\t\ttype: 'folder',\n\t\t\t\t\t\t\tcontent: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: '.',\n\t\t\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: '..',\n\t\t\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: 'clear',\n\t\t\t\t\t\t\t\t\ttype: 'executable, javascript',\n\t\t\t\t\t\t\t\t\tjsLocation: './_js/programs/clear.js'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'bin',\n\t\t\t\t\ttype: 'folder',\n\t\t\t\t\tcontent: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: '.',\n\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: '..',\n\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'ls',\n\t\t\t\t\t\t\ttype: 'executable, javascript',\n\t\t\t\t\t\t\tjsLocation: './_js/programs/ls.js'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'bash',\n\t\t\t\t\t\t\ttype: 'executable, javascript',\n\t\t\t\t\t\t\tjsLocation: './_js/programs/bash.js'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'cat',\n\t\t\t\t\t\t\ttype: 'executable, javascript',\n\t\t\t\t\t\t\tjsLocation: './_js/programs/cat.js'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'cd',\n\t\t\t\t\t\t\ttype: 'executable, javascript',\n\t\t\t\t\t\t\tjsLocation: './_js/programs/cd.js'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'test',\n\t\t\t\t\t\t\ttype: 'NOTexecutable, javascript',\n\t\t\t\t\t\t\tjsLocation: './_js/programs/none.js',\n\t\t\t\t\t\t\tfileContent: 'bash.stdout(args[3]+\"\\\\n\");',\n\t\t\t\t\t\t\texecute: false\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: 'home',\n\t\t\t\t\ttype: 'folder',\n\t\t\t\t\tcontent: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: '.',\n\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: '..',\n\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'user',\n\t\t\t\t\t\t\ttype: 'folder',\n\t\t\t\t\t\t\tcontent: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: '.',\n\t\t\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: '..',\n\t\t\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: 'stuff',\n\t\t\t\t\t\t\t\t\ttype: 'folder',\n\t\t\t\t\t\t\t\t\tcontent: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tname: '.',\n\t\t\t\t\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tname: '..',\n\t\t\t\t\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: '.bash_history',\n\t\t\t\t\t\t\t\t\ttype: 'ASCII text',\n\t\t\t\t\t\t\t\t\tfileContent: ''\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: 'welcome.txt',\n\t\t\t\t\t\t\t\t\ttype: 'ASCII text',\n\t\t\t\t\t\t\t\t\tfileContent: ' Hello world!\\n This is a test file.'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: 'license.txt',\n\t\t\t\t\t\t\t\t\ttype: 'ASCII text',\n\t\t\t\t\t\t\t\t\tfileContent: '\\nCopyright 2012 Roland Rytz\\n\\\n___________________________\\n\\\n\\n\\\nThis program is free software: you can redistribute it and/or modify\\n\\\nit under the terms of the GNU General Public License as published by\\n\\\nthe Free Software Foundation, either version 3 of the License, or\\n\\\n(at your option) any later version.\\n\\\n\\n\\\nThis program is distributed in the hope that it will be useful,\\n\\\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\\n\\\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n\\\nGNU General Public License for more details.\\n\\\n\\n\\\nSee <a href=\"http://www.gnu.org/licenses/gpl-3.0.html\">http://www.gnu.org/licenses/gpl-3.0.html</a> for further information.\\n\\n'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: '-x',\n\t\t\t\t\t\t\t\t\ttype: 'ASCII text',\n\t\t\t\t\t\t\t\t\tfileContent: 'This file has a stupid name.'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'otheruser',\n\t\t\t\t\t\t\ttype: 'folder',\n\t\t\t\t\t\t\tcontent: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: '.',\n\t\t\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: '..',\n\t\t\t\t\t\t\t\t\ttype: 'folder'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t];\n\t\n\t/*\n\t*\tSearches the first level of the given tree structure\n\t*\tfor an item with the specified name.\n\t*/\n\tfunction getFileByName(name, searchTree){\n\t\tvar currentlyProcessing;\n\t\tfor(var i in searchTree){\n\t\t\tcurrentlyProcessing = searchTree[i];\n\t\t\t\n\t\t\tif(currentlyProcessing.name == name){\n\t\t\t\treturn currentlyProcessing;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\t\n\t/*\n\t*\tTakes a path like /home/user/Documents/ and returns\n\t*\tthe fsTree file of that location.\n\t*\n\t*\tNote: Path must start at root directory, format it\n\t*\twith makeProperPath() first!\n\t*/\n\tfunction getFile(path){\n\t\tvar path = path.split('/');\n\t\tvar pathArray = [];\n\t\tfor(var i in path){\t//\tRemove all empty elements\n\t\t\tif(path[i] != ''){\n\t\t\t\tpathArray.push(path[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tpath = pathArray;\n\t\t\n\t\tpath.splice(0, 0, '/');\t//\tAdd root directory (was removed as we split by '/')\n\t\t\n\t\t\n\t\tvar navigatingIn = fsTree[0];\n\t\t\n\t\tfor(var i = 1; i < path.length; i++){\t\t\t\n\t\t\tnavigatingIn = getFileByName(path[i], navigatingIn.content);\n\t\t}\n\t\treturn navigatingIn;\n\t}\n\t\n\t/*\n\t*\tReplaces the content of the file at the submitted\n\t*\tpath with the submitted content string.\n\t*\tThe file must not be a directory.\n\t*/\n\tfunction setFileContent(path, contentString){\n\t\tvar file = getFile(path);\n\t\tif(file.type != 'folder'){\n\t\t\tfile.fileContent = contentString;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\tfunction setExecute(path, newFunction){\n\t\tvar file = getFile(path);\n\t\tif(file.type != 'folder'){\n\t\t\tfile.execute = newFunction;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\t/*\n\t*\tAdds to the end of the file at the submitted\n\t*\tpath with the submitted content string.\n\t*\tThe file must not be a directory.\n\t*/\n\tfunction addToFile(path, contentString){\n\t\tvar file = getFile(path);\n\t\tif(file.type != 'folder'){\n\t\t\tfile.fileContent += contentString;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\t/*\n\t*\tTakes any path and makes it a path starting at\n\t*\tthe root directory which can be used to navigate\n\t*\tfsTree.\n\t*\t. and .. are interpreted here, so something like\n\t*\t/home/user/../otheruser will become /home/otheruser\n\t*/\n\tfunction makeProperPath(target){\n\t\tif(target.charAt(0) == '/'){\n\t\t\ttarget = target;\n\t\t} else if(target.charAt(0) != '~'){\n\t\t\ttarget = bash.getWorkingDir() + target;\n\t\t}\n\t\t\n\t\ttarget = properlySplitPath(target);\n\t\t\n\t\ttarget = target.join(\"/\");\n\t\ttarget = '/' + target;\n\t\tif(target.length > 1){\t//\tSo / wouldn't become //\n\t\t\ttarget += '/';\n\t\t}\n\t\t\n\t\treturn target;\n\t}\n\t\n\t/*\n\t*\tSplits the path and applies stuff like . and .. and ~\n\t*/\n\tfunction properlySplitPath(target){\n\t\tvar properPath = [];\n\t\tvar target = target.split('/');\n\t\tfor(var i in target){\n\t\t\tif(i == 0 && target[i] == '~'){\n\t\t\t\tvar homeDir = bash.getActiveUser().homeDir;\n\t\t\t\thomeDir = properlySplitPath(homeDir);\n\t\t\t\tfor(var h in homeDir){\n\t\t\t\t\tproperPath.push(homeDir[h]);\n\t\t\t\t}\n\t\t\t} else if(target[i] != '' && target[i] != '.'){\n\t\t\t\tif(target[i] == '..'){\n\t\t\t\t\tproperPath.pop();\n\t\t\t\t} else {\n\t\t\t\t\tproperPath.push(target[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn properPath;\n\t}\n\t\n\tfunction find(name, type){\n\t\t//let's ignore name for now, shall we?\n\t\t\n\t}\n\t\n\treturn{\n\t\tgetFile: getFile,\n\t\tsetFileContent: setFileContent,\n\t\tsetExecute: setExecute,\n\t\taddToFile: addToFile,\n\t\tmakeProperPath: makeProperPath\n\t}\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove a subreddit from the exclude list on the options page and in the preferences.
removeSubredditFromExcludeList(event) { /* Retrieve the subreddit item that will be removed. */ let subredditElement = event.target.parentNode; /* Remove the item from the preferences file. */ this.excludedSubreddits.splice(this.excludedSubreddits.indexOf(subredditElement.getAttribute("subreddit")), 1); RoKA.Preferences.set("excludedSubredditsSelectedByUser", this.excludedSubreddits); /* Remove the item from the list on the options page and animate its removal. */ subredditElement.classList.add("removed"); let option = this; setTimeout(function () { option.excludeListContainer.removeChild(subredditElement); }, 500); }
[ "addItemToExcludeList(event) {\n /* Retrieve the subreddit name from the text field, and add it to the list. */\n let subredditName = this.excludeSubredditsField.value;\n this.addSubredditExclusionItem(subredditName, true);\n /* Add the subreddit name to the list in preferences. */\n this.excludedSubreddits.push(subredditName);\n RoKA.Preferences.set(\"excludedSubredditsSelectedByUser\", this.excludedSubreddits);\n /* Remove the contents of the text field and reset the submit button state. */\n let option = this;\n setTimeout(function () {\n option.addToExcludeButton.disabled = true;\n option.excludeSubredditsField.value = \"\";\n }, 150);\n }", "function removeUnmoddable () {\n if (!TBCore.isModpage && !TBCore.isSubCommentsPage) {\n $('.thing').each(async function () {\n const $thing = $(this),\n $sub = $thing.find('.subreddit');\n\n // Remove if the sub isn't moderated\n if ($sub.length > 0) {\n const sub = TBHelpers.cleanSubredditName($sub.text());\n const isMod = await TBCore.isModSub(sub);\n if (!isMod) {\n $thing.remove();\n }\n } else if ($thing.find('.parent').text().endsWith('[promoted post]')) {\n // Always remove things like sponsored links (can't mod those)\n $thing.remove();\n }\n });\n }\n }", "async removeSearch(info) {\n const subreddit = info[0].toLowerCase();\n const term = info[1].toLowerCase();\n\n if (!Object.keys(this.posts).includes(subreddit)) {\n this.channel.send(\"Subreddit is not being tracked\");\n return;\n };\n\n if (term) {\n let index = this.posts[subreddit].indexOf(term);\n this.posts[subreddit].splice(index, 1);\n if (this.posts[subreddit].length === 0) {\n delete this.posts[subreddit];\n }\n }\n else {\n delete this.posts[subreddit];\n };\n }", "addOrDelSubreddit(isAdd, title) {\n\t\tvar currentSubreddits = this.state.subreddits;\n\t\tvar index;\n\n\t\tif (isAdd) {\n\t\t\tcurrentSubreddits.push(title);\n\t\t} else {\n\t\t\tfor (var i = 0; i < this.state.subreddits.length; i++) {\n\t\t\t\tif (this.state.subreddits[i][0] === title) {\n\t\t\t\t\tindex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurrentSubreddits.splice(index, 1);\n\t\t}\n\n\t\tthis.setState({subreddits: currentSubreddits});\n\n\t\t// update the submissions(article) according to current subreddits;\n\t\tthis.updateSubmissions();\n\t}", "validateExcludeField(event) {\n let textfield = event.target;\n /* Check that the text field contents is a valid subreddit name. */\n if (textfield.value.match(/([A-Za-z0-9_]+|[reddit.com]){3}/) !== null) {\n this.addToExcludeButton.disabled = false;\n return true;\n }\n this.addToExcludeButton.disabled = true;\n return false;\n }", "function removeEntry() {\n if (favorites.indexOf(entry.id.attributes['im:id'])!== -1) {\n setFavorites(prevFavorites => {\n return prevFavorites.filter((id) => id !== entry.id.attributes['im:id'])\n })\n }\n }", "function deleteResubmission(submission) {\r\n var userId = getSessionData(\"currentUser\");\r\n var submissionId = userId + \".\" + submission.InspectionId;\r\n var browserResubs = JSON.parse(getLocalData(\"auditsForResubmission\"));\r\n if (browserResubs != null) {\r\n if (browserResubs.includes(submissionId)) {\r\n var index = browserResubs.indexOf(submissionId);\r\n if (index > -1) {\r\n browserResubs.splice(index, 1);\r\n }\r\n setLocalData(\"auditsForResubmission\", JSON.stringify(browserResubs));\r\n refreshResubCount();\r\n }\r\n }\r\n }", "function removeClick() {\n var options = document.getElementById('blacklisted').selectedOptions;\n // If no options have been selected, show that as a message\n if (options.length == 0)\n insertHTML('blacklist-remove', NO_ITEM);\n // Create an array of the values (i.e. URLs) of the options\n var urls = [];\n for (var i = 0; i < options.length; i++)\n urls.push(options[i].value);\n // Remove the URLs\n removeURLs(urls);\n}", "deleteSubreddit() {\n let subreddits = this.state.subreddits.slice();\n let selected = this.state.selected;\n let index = subreddits.indexOf(selected);\n\n const update = () => {\n if (subreddits.length) {\n this.setState({ selected: subreddits[0] });\n this.updateSubreddits(subreddits);\n } else {\n this.setState({ selected: ' ' });\n this.updateSubreddits(subreddits);\n }\n }\n\n if (index > -1) {\n subreddits.splice(index, 1);\n update();\n } else {\n update();\n }\n\n\n\n }", "function removeExcludeCookie(id) {\n\tvar exclude = document.cookie.split(';'); //exclude list (as one string)\n\tvar excludeArr = exclude[0].split(' '); //split list into array\n\texcludeArr[0] = excludeArr[0].substring(9, excludeArr[0].length); //remove \"excluded=\" from first id\n\t//find and un-exclude restaurant\n\tfor(var i = 0; i < excludeArr.length; i++) {\n if(excludeArr[i] === id) {\n\t\t\texcludeArr[i] = \"\"; //delete cookie\n\t\t}\n }\n\tvar newCookie = \"excluded=\";\n\tfor(var i = 0; i <excludeArr.length; i++) { //reconstruct cookie\n newCookie += \" \" + excludeArr[i];\n }\n\tnewCookie += \"; path=/;\" + $expireStr;\n\tdocument.cookie = newCookie; //re-save excluded cookie\n}", "function removeURLs(toRemove) {\n chrome.storage.sync.get({blockedURLs: []}, function (obj) {\n // Remove the newly removed URLs from the user settings list\n var urls = obj.blockedURLs;\n urls = urls.filter(function (url) {\n return toRemove.indexOf(url) == -1;\n });\n // Set the user settings to the new blacklisted URLs, display a message and refresh the blacklist box\n chrome.storage.sync.set({blockedURLs: urls}, function () {\n insertHTML('blacklist-remove', REMOVED);\n refreshBlacklist(urls, false);\n });\n });\n}", "function removeplaylist(plname) {\n\tdelete playlists[plname];\n\tstoreplaylists();\n\tupdateplaylists();\n}", "removePlaylist (playlistToDelete) {\n Spotify.removePlaylist (playlistToDelete, this);\n }", "function removeFromFavourites(id) {\n var idToUnlike = id.slice(id.indexOf('-')+1);\n var type = id.slice(0, id.indexOf('-'));\n // if the type is 'lab', then JSON is formatted for a computer lab\n if (type=='lab') {\n jsonToUnlike = {'pc_id': idToUnlike, 'pcLikedByUser': true}\n // if the type is 'room', then JSON is formatted for a tutorial room\n } else {\n jsonToUnlike={'locationId': idToUnlike, 'roomLikedByUser': true}\n }\n // unlike the room\n $.post(rootURL + 'like/', jsonToUnlike);\n // remove this panel from the page\n $('#infoFor-' + id).fadeOut(function() { $(this).remove(); });\n isClicked = false;\n // update the autoComplete function\n autoCompleteAPI();\n}", "function removeSub(subid) {\n $('.sub').filter('[data-id=' + subid + ']').parent().remove();\n }", "function unbanUser(store, sr, uname) {\n if(store.sitewide[uname]) {\n var subs = store.sitewide[uname];\n var pos = subs.indexOf(sr);\n if(pos >= 0) {\n subs.splice(pos, 1);\n return;\n }\n }\n var users = store.byreddit[sr];\n if(!users) {\n return;\n }\n var foundAt = users.indexOf(uname);\n if(foundAt < 0) {\n return;\n }\n users.splice(foundAt, 1);\n store.byreddit[sr] = users;\n}", "removeFromFavourites(artworkId) {\r\n Loader.show(true);\r\n welcomePage.authUserRef.update({\r\n favorites: firebase.firestore.FieldValue.arrayRemove(artworkId)\r\n });\r\n }", "addSubreddit() {\n let subreddit = this.state.nextSubreddit;\n let index = this.props.subreddits.map(sub => sub.toLowerCase()).indexOf(subreddit.toLowerCase());\n if (index > -1) {\n this.setState({ nextSubreddit: ''});\n this.setState({ message: 'DUPLICATE SUBREDDIT' });\n } else {\n if (!this.state.selected) this.setState({ selected: subreddit });\n let subreddits = this.props.subreddits.concat(subreddit);\n\n // check if subreddit is not bank and if it returns actual listings\n if (subreddit) {\n fetch(`https://oauth.reddit.com/r/${subreddit}/?limit=2`, {headers: env.getHeader()})\n .then(res => res.json())\n .then(res => {\n if (res.error === 401) {\n if (localStorage.getItem('TOKEN')) localStorage.removeItem('TOKEN');\n this.setState({ nextSubreddit: '' });\n this.setState({ message: 'PLEASE SIGN IN' });\n } else {\n if (res.data.children.length === 0) {\n throw new Error();\n } else {\n this.updateSubreddits(subreddits);\n this.setState({ nextSubreddit: '' });\n this.setState({ message: '' });\n }\n }\n\n }).catch((error) => {\n console.log(error);\n this.setState({ nextSubreddit: ''});\n this.setState({ message: 'INVALID SUBREDDIT'});\n });\n }\n }\n }", "function remove_support_comment(commentid) {\n $.get(admin_url + 'supports/remove_comment/' + commentid, function (response) {\n if (response.success === true) {\n $('[data-commentid=\"' + commentid + '\"]').remove();\n }\n }, 'json');\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
override the deleteRemoteModel feature by forcing for some moment the sync of a specific field
async deleteRemoteSpecificField(collection, model_name) { let was = this.getServerInstance().sync_models; this.getServerInstance().sync_models = [model_name]; // this calls uses the global SYNC_MODELS to know which models should go on backend let result = await this.deleteRemoteModel(collection); this.getServerInstance().sync_models = was; return result; }
[ "function deleteLocal(model, opt) {\n\tif (model instanceof Backbone.Collection) {\n\t\t// Call \"delete\" on every element if this is a Collection\n\t\treturn Q.all(model.map(function(mod) {\n\t\t\treturn Q.promise(function(resolve, reject) {\n\t\t\t\t// TODO try/catch?\n\t\t\t\tremoveInfo(mod);\n\t\t\t\t_.each(getSyncs(mod), removeSyncRow);\n\n\t\t\t\tgetLocalAdapter(model).sync('delete', mod, _.extend({}, opt, {\n\t\t\t\t\tsuccess: resolve,\n\t\t\t\t\terror: reject\n\t\t\t\t}));\n\t\t\t});\n\t\t}));\n\t} else {\n\t\t// Simply call \"delete\" on the Model otherwise\n\t\treturn Q.promise(function(resolve, reject) {\n\t\t\t// TODO try/catch?\n\t\t\tremoveInfo(model);\n\t\t\t_.each(getSyncs(model), removeSyncRow);\n\n\t\t\tgetLocalAdapter(model).sync('delete', model, _.extend({}, opt, {\n\t\t\t\tsuccess: resolve,\n\t\t\t\terror: reject\n\t\t\t}));\n\t\t});\n\t}\n}", "afterDelete(model) { //eslint-disable-line\n return new P(function (resolve) {\n return resolve();\n });\n }", "async delete() {\n this.ensureIsntDeleted();\n const Model = this.constructor;\n await Model.$hooks.exec('before', 'delete', this);\n await Model.$adapter.delete(this);\n this.$isDeleted = true;\n await Model.$hooks.exec('after', 'delete', this);\n }", "beforeDelete(model) { //eslint-disable-line\n return new P(function (resolve) {\n return resolve();\n });\n }", "deleteClient(){\n\t\t\tthis.get( 'model' ).deleteRecord();\n\t\t\tthis.get( 'model' ).save();\n\t\t}", "__syncDeletedEntity(payload) {\n var keyPath = [payload.entity, payload.id]\n this.__resolveDelete(keyPath)\n this.remove(keyPath)\n }", "deleteValue() {\n this.setValue(null, {\n noUpdateEvent: true,\n noDefault: true\n });\n this.unset();\n }", "* delete () {\n throw CE.ModelRelationException.unSupportedMethod('delete', this.constructor.name)\n }", "onDelete(model) {\n this.ApplicationModel.removeModel(model);\n }", "function deleteModel() {\n socket.emit('deleteModel');\n}", "delete(model) {\n return new P((resolve, reject) => {\n if (model.isNew()) {\n let error = new Error('Cannot delete a model without ID');\n return reject(error);\n }\n\n let q = this.query({\n alias: false,\n conditions: {\n [model.primaryKey]: model.getId()\n }\n });\n\n return this\n .getAdapter()\n .delete(q)\n .then(resolve)\n .catch(reject);\n });\n }", "disconnect() {\n Object.keys(this._models).forEach(i => {\n this._models[i].then(model => {\n model.comm_live = false;\n });\n });\n }", "__rollbackDelete(payload) {\n var keyPath = [payload.entity, payload.id]\n var lastCleanState = this.get(['outOfSync'].concat(keyPath))\n if (lastCleanState) {\n this.update(keyPath, lastCleanState)\n }\n this.__markSynced(keyPath)\n }", "remove(model) {\n // Prepare for work.\n this._assertLoaded();\n \n // Retrieve this index of the model to remove in the value here and\n // assert it is contained.\n const i = this._value.indexOf(model);\n if (i == -1) throw new ModelStateError(\n `${ model } isn't in the relation from which it was removed`\n );\n\n // De-couple the models foreign key and remove from the value here.\n model[this.sourceAttribute] = new _SideEffectAttributeAssignment(null);\n this._value.splice(i, 1);\n\n // Null the remote side if there is one loaded.\n const remoteSide = this._findRemoteSideOn(model);\n if (remoteSide) remoteSide._setAsSideEffect(null);\n }", "mfSetModelMarkDeleted(){\n mf.modeSetModelMarkDeleted(this)\n\n }", "unsyncOneUpdates(modelName, obj) {\n socket.removeAllListeners(modelName + '-' + obj._id + ':save');\n socket.removeAllListeners(modelName + '-' + obj._id + ':remove');\n }", "willDestroyElement() {\n this._super(...arguments);\n if (get(this, 'model.isNew')) {\n this.get('model').deleteRecord();\n }\n }", "beforeDeleteAllRecords(modelName, data) {\n data.cancel = false;\n }", "onDelete(modelCopy, nameDeleted) {\n\n // Reconstruct the resolvers.\n var resolvers = {};\n for (var name in modelCopy.resolvers)\n if (name !== nameDeleted)\n resolvers[name] = modelCopy.resolvers[name];\n modelCopy.resolvers = resolvers;\n return modelCopy;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
function which gets added to the function for the click listener on the microblog_icons
function clickMicroblogIcon(e) { var room = e.features[0].properties.room; var microblog = null; for (var i = 0; i < microblogs.length; i++) { if (room === microblogs[i].room) { microblog = microblogs[i]; } } MicroblogService.getMicroblog(microblog.room).then( function (microblog) { var modalInstance = $uibModal.open({ animation: true, templateUrl: "microblog.html", controller: "MicroblogController", resolve: { microblogToOpen: function () { return microblog; }, }, }); modalInstance.result.then(function (data) {}); }, function (err) {}, ); }
[ "function clickMicroblogIcon(e) {\n var room = e.features[0].properties.room;\n var microblog = null;\n for (var i = 0; i < microblogs.length; i++) {\n if (room === microblogs[i].room) {\n microblog = microblogs[i];\n }\n }\n\n MicroblogService.getMicroblog(microblog.room).then(\n function (microblog) {\n var modalInstance = $uibModal.open({\n animation: true,\n templateUrl: \"microblog.html\",\n controller: \"MicroblogController\",\n resolve: {\n microblogToOpen: function () {\n return microblog;\n },\n },\n });\n modalInstance.result.then(function (data) {});\n },\n function (err) {},\n );\n }", "function clickThumb() {}", "function iconEventListener(e) {\n\t\tif (e.source.id === 1 && !e.source.focus) {\n\t\t\tSTATE = SysEnum.WINDOWS_AND_STATES.NEWSFEED;\n\t\t\tsetSectionThreshold();\n\t\t\tliked_image(e, imagePath.newsfeed_focus);\n\t\t\tupdate_upperToolbar(imagePath.newsfeed_focus, STATE);\n\t\t\tapiCall(STATE);\n\t\t} else if (e.source.id === 2) {\n\t\t\tSTATE = SysEnum.WINDOWS_AND_STATES.PROFILE;\n\t\t\tsetSectionThreshold();\n\t\t\tliked_image(e, imagePath.timeline_focus);\n\t\t\tparam.id = Ti.App.Properties.getObject('Current_User_Data').id;\n\t\t\tapiCall(STATE);\n\t\t} else if (e.source.id === 3 && !e.source.focus) {\n\t\t\tSTATE = SysEnum.WINDOWS_AND_STATES.GROUP_LIST;\n\t\t\tsetSectionThreshold();\n\t\t\tliked_image(e, imagePath.group_focus);\n\t\t\tupdate_upperToolbar(imagePath.group_focus, STATE);\n\t\t\tapiCall(STATE);\n\t\t} else if (e.source.id === 4 && !e.source.focus) {\n\t\t\tSTATE = SysEnum.WINDOWS_AND_STATES.EVENTS;\n\t\t\tsetSectionThreshold();\n\t\t\tliked_image(e, imagePath.event_focus);\n\t\t\tupdate_upperToolbar(imagePath.event_focus, STATE);\n\t\t\tapiCall(STATE);\n\t\t} else if (e.source.id === 5 && !e.source.focus) {\n\t\t\tSTATE = SysEnum.WINDOWS_AND_STATES.BIRTHDAYS;\n\t\t\tsetSectionThreshold();\n\t\t\tliked_image(e, imagePath.birthday_focus);\n\t\t\tupdate_upperToolbar(imagePath.birthday_focus, STATE);\n\t\t\tapiCall(STATE);\n\t\t}\n\t}", "function addicon() {\n var lists = $(\"ul.sub-group-list > li\");\n\n $(lists).has(\"span:contains('ARTICLE')\").prepend('<i style=\"font-size:15px;color:rgba(80, 80, 80, 0.97);padding-right:5px;cursor:pointer;height:14px;width:13px;\" class=\"fa fa-plus\" ></i>').wrap('<div class=\"icon\"></div>');\n $(lists).has(\"span:contains('TOPIC')\").wrap('<div class=\"maintopic\"></div>');\n $(lists).find(\".article-title\").text('A');\n $(lists).find(\".topic-title\").text('T');\n $(lists).find(\".issue-title\").text('I');\n\n $(lists).find(\"i\").addClass(\"fa fa-caret-down\");\n\n if ($(\"div.icon + div.icon\").length) {\n //$(\"div.icon + div.icon\").prev().find('i').css('display', 'none');\n $(\"div.icon + div.icon\").prev().find('i').remove();\n\n }\n if ($(\"div.icon + div.maintopic\").length) {\n //$(\"div.icon + div.maintopic\").prev().find('i').css('display', 'none');\n $(\"div.icon + div.maintopic\").prev().find('i').remove();\n\n }\n\n if ($('ul.sub-group-list div.icon:last-child + div').length > -1) {\n //$('ul.sub-group-list div.icon:last-child').find('i').css('display', 'none');\n $('ul.sub-group-list div.icon:last-child').find('i').remove();\n\n }\n\n $(\"div.icon li > a\").removeClass();\n if ($(\"li.treelist + div.icon\").length) {\n $(\"li.treelist + div.icon\").prev().find('a').removeClass();\n }\n if ($(\".sub-group-list li.treelist:last\").length) {\n $(\".sub-group-list li.treelist:last\").find('a').removeClass();\n }\n\n\n $(\"ul.sub-group-list > li\").find(\"i\").click(function() {\n if ($(this).hasClass('fa-caret-down')) {\n $(this).attr('class', 'fa fa-caret-right');\n var next = $(this).parent(\"li\").closest(\"div.icon\").nextUntil(\"div\");\n next.slideUp();\n } else {\n $(this).attr('class', 'fa fa-caret-down');\n var next = $(this).parent(\"li\").closest(\"div.icon\").nextUntil(\"div\");\n next.slideDown();\n }\n });\n\n if ($(\"#nav-list\").find('ul.sub-group-list li').prev(\"div.icon\").nextUntil(\"div\").length) {\n $(selectSecId).find('li').prev(\"div.icon\").nextUntil(\"div\").css('display', 'none');\n $(\"#nav-list li:contains('ISSUE') + div.maintopic\").prev().find('i').css('display', 'none');\n $(selectSecId).css('display', 'block');\n $(selectSecId).find(\"i\").attr('class', 'fa fa-caret-right');\n }\n\n }", "function prepareOnclickIcon() {\n const heartI = document.querySelectorAll('.photo_card__i')\n heartI.forEach(i => {\n i.addEventListener('click', function () {\n const likeCoundDom = i.parentElement.querySelector('.photo_card__number')\n const currentLike = Number(likeCoundDom.innerHTML)\n const currentTotalLike = Number(info_section__number.innerHTML)\n i.classList.toggle('--active')\n let isClicked = i.getAttribute('data-clicked') == \"true\"\n if (isClicked) {\n likeCoundDom.innerHTML = currentLike - 1\n i.setAttribute('data-clicked', 'false')\n info_section__number.innerHTML = currentTotalLike - 1\n i.setAttribute('aria-label', \"je n'aime plus\")\n } else {\n\n likeCoundDom.innerHTML = currentLike + 1\n i.setAttribute('data-clicked', 'true')\n i.setAttribute('aria-label', \"j'aime\")\n\n info_section__number.innerHTML = currentTotalLike + 1\n }\n })\n })\n}", "function init(){\r\n\tclickIcons();\r\n}", "function addIconsToMasthead () {\n\t\t// Add the new right-align container and put the icons and the search container into it.\n\t\tmastheadLinklist.iconsonly.$el = $('<div class=\"ibm-masthead-rightside\">'+ mastheadLinklist.iconsonly.html + '</div>').prepend($(\"#ibm-search-module\")).insertAfter(\"#ibm-menu-links\");\n\t\t$profileMenu = mastheadLinklist.iconsonly.$el.find(\".ibm-masthead-item-signin\");\n\n\t\tconvertSearchSubmitToButton();\n\t}", "function mouseEnterMicroblogIcon(e) {\n // Change the cursor style as a UI indicator.\n map.getCanvas().style.cursor = \"pointer\";\n\n // get the coordinates and description of the microblog_icon\n var coordinates = e.features[0].geometry.coordinates.slice();\n var description = e.features[0].properties.description;\n\n // Ensure that if the map is zoomed out such that multiple\n // copies of the feature are visible, the popup appears\n // over the copy being pointed to.\n while (Math.abs(e.lngLat.lng - coordinates[0]) > 180) {\n coordinates[0] += e.lngLat.lng > coordinates[0] ? 360 : -360;\n }\n\n // Populate the popup and set its coordinates\n // based on the feature found.\n microblogIconPopup.setLngLat(coordinates).setHTML(description).addTo(map);\n }", "function icon1Listener(e) {\n\t\tif (_array.length) {\n\t\t\tvar Facebook = require('ui/horseboard/facebook_module');\n\t\t\tnew Facebook(_array);\n\t\t}\n\t}", "function add_published_icons() {\n $(\"a.item_link\").each(function(i, element) {\n // If a notebook matches a path in the published list\n if (GenePattern.repo.my_nb_paths.indexOf($(element).attr(\"href\")) >= 0) {\n // Add a published icon to it\n $(element).parent().find('.item_buttons').append(\n $('<i title=\"Published to Repository\" class=\"item_icon icon-fixed-width fa fa-share-square pull-right repo-publish-icon\"></i>')\n )\n }\n })\n }", "function icon(){}", "function mouseEnterMicroblogIcon(e) {\n // Change the cursor style as a UI indicator.\n map.getCanvas().style.cursor = \"pointer\";\n\n // get the coordinates and description of the microblog_icon\n var coordinates = e.features[0].geometry.coordinates.slice();\n var description = e.features[0].properties.description;\n\n // Ensure that if the map is zoomed out such that multiple\n // copies of the feature are visible, the popup appears\n // over the copy being pointed to.\n while (Math.abs(e.lngLat.lng - coordinates[0]) > 180) {\n coordinates[0] += e.lngLat.lng > coordinates[0] ? 360 : -360;\n }\n\n // Populate the popup and set its coordinates\n // based on the feature found.\n microblogIconPopup.setLngLat(coordinates).setHTML(description).addTo(map);\n }", "notifyNavigationIconClicked() {}", "function emoticonButton(name, url) {\n if (tagtype=='bbcode')\n// return \"<span id='IzEmoticons_\"+name+\"' title='\" + name + \"' onmousedown='(function() {var rich_edit = document.getElementById(\\\"\"+textar+\"\\\");rich_edit.value+=\\\"[img]\"+url+\"[/img]\\\";})();'><img src='\" + url + \"' alt='\" + name + \"' border='0'></span>\\n\";\n return \"<span id='IzEmoticons_\"+name+\"' title='\" + name + \"' onmousedown='emoticonInsert(\\\"[img]\"+url+\"[/img]\\\");'><img src='\" + url + \"' alt='\" + name + \"' border='0'></span>\\n\";\n else\n// return \"<span id='IzEmoticons_\"+name+\"' title='\" + name + \"' onmousedown='(function() {var rich_edit = document.getElementById(\\\"\"+textar+\"\\\");rich_edit.value+=\\\"<img class=\\\\\\\"emoticon\\\\\\\" src=\\\\\\\"\"+url+\"\\\\\\\" alt=\\\\\\\"\" + name + \"\\\\\\\" title=\\\\\\\"\" + name + \"\\\\\\\" />\\\";})();'><img src='\" + url + \"' alt='\" + name + \"' border='0'></span>\\n\";\n return \"<span id='IzEmoticons_\"+name+\"' title='\" + name + \"' onmousedown='emoticonInsert(\\\"<img class=\\\\\\\"emoticon\\\\\\\" src=\\\\\\\"\"+url+\"\\\\\\\" alt=\\\\\\\"\" + name + \"\\\\\\\" title=\\\\\\\"\" + name + \"\\\\\\\" />\\\")'><img src='\" + url + \"' alt='\" + name + \"' border='0'></span>\\n\";\n}", "function register_iconlist_callback() {\n var icons = document.querySelectorAll(\".icon-list-item img\");\n for (var i=0; i<icons.length; i++) {\n icons[i].addEventListener(\"click\", load_icon);\n }\n}", "function handleIconClick() {\n ReactGA.event({ category: 'Icon', action: 'Clicked', label: label });\n handleClick();\n }", "function recordIconClick(event) {\n iconClicked = event.target.getAttribute(\"src\");\n event.target.classList.add(\"onClick\");\n\n}", "function icon2Listener(e) {\n\t\tvar Twitter = require('ui/horseboard/twitter');\n\t\tnew Twitter();\n\t}", "iconClicked(e) {\n sounds.playSelect();\n const id = e.target.id;\n const { toolClick } = this.props;\n const getInsertText = {\n 'bold-text': '**Strong Text**',\n 'italic-text': '_Emphasized Text_',\n 'blockquote-text': '> Block Quote',\n 'link-text': '[Link](http://)',\n 'picture-text': '![Alt Text](http://)',\n 'code-text': '`Inline Code`',\n 'list-text': '- List Item',\n 'ollist-text': '1. List Item'\n }\n\n toolClick(null, getInsertText[id] );\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
takes a 'transition string' and returns a d3 transition method default is easeLinear
getTransitionMethod (transition) { switch (transition) { // ease linear case "easeLinear": return d3EaseLinear; break; // easeQuadIn as d3EaseQuadIn, case "easeQuadIn": return d3EaseQuadIn; break; // easeQuadOut as d3EaseQuadOut case "easeQuadOut": return d3EaseQuadOut; break; // easeQuadInOut as d3EaseQuadInOut case "easeQuadInOut": return d3EaseQuadInOut; break; // easeCubicIn as d3EaseCubicIn case "easeCubicIn": return d3EaseCubicIn; break; // easeCubicOut as d3EaseCubicOut, case "easeCubicOut": return d3EaseCubicOut; break; // easeCubicInOut as d3EaseCubicInOut, case "easeCubicInOut": return d3EaseCubicInOut; break; // easePolyIn as d3EasePolyIn, case "easePolyIn": return d3EasePolyIn; break; // easePolyOut as d3EasePolyOut, case "easePolyOut": return d3EasePolyOut; break; // easePolyInOut as d3EasePolyInOut, case "easePolyInOut": return d3EasePolyInOut; break; // easeSinIn as d3EaseSinIn, case "easeSinIn": return d3EaseSinIn; break; // easeSinOut as d3EaseSinOut, case "easeSinOut": return d3EaseSinOut; break; // easeSinInOut as d3EaseSinInOut, case "easeSinInOut": return d3EaseSinInOut; break; // easeExpIn as d3EaseExpIn, case "easeExpIn": return d3EaseExpIn; break; // easeExpOut as d3EaseExpOut, case "easeExpOut": return d3EaseExpOut; break; // easeExpInOut as d3EaseExpInOut, case "easeExpInOut": return d3EaseExpInOut; break; // easeCircleIn as d3EaseCircleIn, case "easeCircleIn": return d3EaseCircleIn; break; // easeCircleOut as d3EaseCircleOut, case "easeCircleOut": return d3EaseCircleOut; break; // easeCircleInOut as d3EaseCircleInOut, case "easeCircleInOut": return d3EaseCircleInOut; break; // easeBounceIn as d3EaseBounceIn, case "easeBounceIn": return d3EaseBounceIn; break; // easeBounceOut as d3EaseBounceOut, case "easeBounceOut": return d3EaseBounceOut; break; // easeBounceInOut as d3EaseBounceInOut, case "easeBounceInOut": return d3EaseBounceInOut; break; // easeBackIn as d3EaseBackIn, case "easeBackIn": return d3EaseBackIn; break; // easeBackOut as d3EaseBackOut, case "easeBackOut": return d3EaseBackOut; break; // easeBackInOut as d3EaseBackInOut, case "easeBackInOut": return d3EaseBackInOut; break; // easeElasticIn as d3EaseElasticIn, case "easeElasticIn": return d3EaseElasticIn; break; // easeElasticOut as d3EaseElasticOut, case "easeElasticOut": return d3EaseElasticOut; break; // easeElasticInOut as d3EaseElasticInOut, case "easeElasticInOut": return d3EaseElasticInOut; break; // easeElastic as d3EaseElastic, case "easeElastic": return d3EaseElastic; break; // ease elastic transition case "easeElastic": return d3EaseElastic; break; }; }
[ "function getTransition() {// Function to get transition for d3.v.6\n return d3.transition()\n .duration(750)\n //.ease(d3.easeLinear)\n}", "function transition(g) {\n return g.transition().duration(500);\n }", "function GTransition( data ) {\n\tthis.duration = 0.2 ;\n\tthis.easing = 'linear' ;\n\t\n\tif ( data ) { this.update( data ) ; }\n}", "function toTransition(selection, modelTransition) {\n var transition;\n\n // consider just copying the transition internal state instead: if this was an \n // transition containing multiple elements, this loop would run multiple times unnecessarily\n modelTransition.each(function() { \n transition = d3.transition(selection);\n });\n\n return transition;\n}", "get transitionEasingFunction() {\n return this.i.a0;\n }", "function StyleTransition(declaration, oldTransition, value) {\n\n this.declaration = declaration;\n this.startTime = this.endTime = (new Date()).getTime();\n\n var type = declaration.type;\n if ((type === 'string' || type === 'array') && declaration.transitionable) {\n this.interp = interpZoomTransitioned;\n } else {\n this.interp = interpolate[type];\n }\n\n this.oldTransition = oldTransition;\n this.duration = value.duration || 0;\n this.delay = value.delay || 0;\n\n if (!this.instant()) {\n this.endTime = this.startTime + this.duration + this.delay;\n this.ease = util.easeCubicInOut;\n }\n\n if (oldTransition && oldTransition.endTime <= this.startTime) {\n // Old transition is done running, so we can\n // delete its reference to its old transition.\n\n delete oldTransition.oldTransition;\n }\n}", "function Transition() {\n\n /**\n * The list of transitions associated to a state\n * @private\n */\n var _transitions = {};\n\n /**\n * Add a new transition\n * @private\n * @param {String} event the event that will trigger the transition\n * @param {Function} action the function that is executed\n * @param {Object} scope [optional] the scope in which to execute the action\n * @param {String} next [optional] the name of the state to transit to.\n * @returns {Boolean} true if success, false if the transition already exists\n */\n this.add = function add(event, action, scope, next) {\n\n var arr = [];\n\n if (_transitions[event]) {\n return false;\n }\n\n if (typeof event == \"string\" &&\n typeof action == \"function\") {\n\n arr[0] = action;\n\n if (typeof scope == \"object\") {\n arr[1] = scope;\n }\n\n if (typeof scope == \"string\") {\n arr[2] = scope;\n }\n\n if (typeof next == \"string\") {\n arr[2] = next;\n }\n\n _transitions[event] = arr;\n return true;\n }\n\n return false;\n };\n\n /**\n * Check if a transition can be triggered with given event\n * @private\n * @param {String} event the name of the event\n * @returns {Boolean} true if exists\n */\n this.has = function has(event) {\n return !!_transitions[event];\n };\n\n /**\n * Get a transition from it's event\n * @private\n * @param {String} event the name of the event\n * @return the transition\n */\n this.get = function get(event) {\n return _transitions[event] || false;\n };\n\n /**\n * Execute the action associated to the given event\n * @param {String} event the name of the event\n * @param {params} params to pass to the action\n * @private\n * @returns false if error, the next state or undefined if success (that sounds weird)\n */\n this.event = function event(newEvent) {\n var _transition = _transitions[newEvent];\n if (_transition) {\n _transition[0].apply(_transition[1], toArray(arguments).slice(1));\n return _transition[2];\n } else {\n return false;\n }\n };\n}", "function useTransition(inheritedTransition) {\n var valid = validTransition(inheritedTransition);\n\n if (inheritedTransition.ease && !valid.ease) {\n console.log(\"chart: creating transition. inherited transition expired on node:\", \n inheritedTransition.node());\n return valid.transition().duration(150); \n } \n\n return valid;\n }", "function getTransition(elem) {\n\tlet transitions = $(elem).css('transition') ;\n\tif (!transitions || transitions == 'all 0s ease 0s') {\n\t\ttransitions = [];\n\t}\n\tif (transitions && transitions.length > 0) {\n\t\ttransitions = transitions.split(', ');\n\t}\n\tlet data = transitions.map((transition) => {\n\t\ttransition = transition.split(' ');\n\t\treturn createTransitionObj(transition);\n\t});\n\treturn data;\n}", "function easeLinear(t, b, c, d) {\n return c * t / d + b;\n}", "function StyleTransition(reference, declaration, oldTransition, value) {\n\n\t this.declaration = declaration;\n\t this.startTime = this.endTime = (new Date()).getTime();\n\n\t if (reference.function === 'piecewise-constant' && reference.transition) {\n\t this.interp = interpZoomTransitioned;\n\t } else {\n\t this.interp = interpolate[reference.type];\n\t }\n\n\t this.oldTransition = oldTransition;\n\t this.duration = value.duration || 0;\n\t this.delay = value.delay || 0;\n\n\t if (!this.instant()) {\n\t this.endTime = this.startTime + this.duration + this.delay;\n\t this.ease = util.easeCubicInOut;\n\t }\n\n\t if (oldTransition && oldTransition.endTime <= this.startTime) {\n\t // Old transition is done running, so we can\n\t // delete its reference to its old transition.\n\n\t delete oldTransition.oldTransition;\n\t }\n\t}", "function Transition() {\n\n\t\t/**\n\t\t * The list of transitions associated to a state\n\t\t * @private\n\t\t */\n\t\tvar _transitions = {};\n\n\t\t/**\n\t\t * Add a new transition\n\t\t * @private\n\t\t * @param {String} event the event that will trigger the transition\n\t\t * @param {Function} action the function that is executed\n\t\t * @param {Object} scope [optional] the scope in which to execute the action\n\t\t * @param {String} next [optional] the name of the state to transit to.\n\t\t * @returns {Boolean} true if success, false if the transition already exists\n\t\t */\n\t\tthis.add = function add(event, action, scope, next) {\n\n\t\t\tvar arr = [];\n\n\t\t\tif (_transitions[event]) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (typeof event == \"string\"\n\t\t\t\t&& typeof action == \"function\") {\n\n\t\t\t\t\tarr[0] = action;\n\n\t\t\t\t\tif (typeof scope == \"object\") {\n\t\t\t\t\t\tarr[1] = scope;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (typeof scope == \"string\") {\n\t\t\t\t\t\tarr[2] = scope;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (typeof next == \"string\") {\n\t\t\t\t\t\tarr[2] = next;\n\t\t\t\t\t}\n\n\t\t\t\t\t_transitions[event] = arr;\n\t\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t};\n\n\t\t/**\n\t\t * Check if a transition can be triggered with given event\n\t\t * @private\n\t\t * @param {String} event the name of the event\n\t\t * @returns {Boolean} true if exists\n\t\t */\n\t\tthis.has = function has(event) {\n\t\t\treturn !!_transitions[event];\n\t\t};\n\n\t\t/**\n\t\t * Get a transition from it's event\n\t\t * @private\n\t\t * @param {String} event the name of the event\n\t\t * @return the transition\n\t\t */\n\t\tthis.get = function get(event) {\n\t\t\treturn _transitions[event] || false;\n\t\t};\n\n\t\t/**\n\t\t * Execute the action associated to the given event\n\t\t * @param {String} event the name of the event\n\t\t * @param {params} params to pass to the action\n\t\t * @private\n\t\t * @returns false if error, the next state or undefined if success (that sounds weird)\n\t\t */\n\t\tthis.event = function event(event) {\n\t\t\tvar _transition = _transitions[event];\n\t\t\tif (_transition) {\n\t\t\t\t_transition[0].apply(_transition[1], Tools.toArray(arguments).slice(1));\n\t\t\t\treturn _transition[2];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t}", "static getTransition(name) {\n if (!Transitions.sTransitions) Transitions.registerDefaults()\n return Transitions.sTransitions[name]\n }", "function transition(source, input, target, output, direction) {\n return 'δ('+source+', '+input+') = ('+target+', '+output+', '+direction+')';\n }", "function hyphenateProp(string) {\n // MozTransition -> -moz-transition\n // msTransition -> -ms-transition. Notice the lower case m\n // http://modernizr.com/docs/#prefixed\n // thanks a lot IE\n return string.replace(_uppercasePattern, '-$1')\n .toLowerCase()\n .replace(msPattern, '-ms-');\n}", "function SetTransition (newTransition : int) {\n\tswitch (newTransition) {\n\t\tcase 0:\n\t\t\t// None\n\t\t\tparticles.transition = TRANSITION.None;\n\t\tbreak;\n\t\tcase 1:\n\t\t\t// Lerp\n\t\t\tparticles.transition = TRANSITION.Lerp;\n\t\tbreak;\n\t\tcase 2:\n\t\t\t// Fade\n\t\t\tparticles.transition = TRANSITION.Fade;\n\t\tbreak;\n\t}\n}", "function chainTransition () {\n transitObj.transition()\n .duration(2000)\n .attr('r', 100)\n .attr('cx', 100)\n .on('end', function () {\n d3.select(this)\n .transition()\n .duration(1000)\n .ease(d3.easeBounceInOut)\n .attr('cx', 200)\n .on('end', () => {\n d3.select(this)\n .transition()\n .duration(1000)\n .attr('r', 20)\n .attr('cx', 0)\n })\n })\n}", "function transition (uniforms, duration, easing) {\n if (!easing) easing = identity;\n\n // Validate static errors: Bad arguments / missing uniforms\n if (arguments.length < 2 || arguments.length > 3 || typeof uniforms !== \"object\" || typeof duration !== \"number\" || duration <= 0 || typeof easing !== \"function\")\n throw new Error(\"Bad arguments. usage: t(uniforms, duration, easing) -- uniforms is an Object, duration an integer > 0, easing an optional function.\");\n\n var allUniforms = extend({}, defaultUniforms, uniforms);\n allUniforms[PROGRESS_UNIFORM] = easing(0);\n var name;\n for (name in glslUniforms) {\n if (name === RESOLUTION_UNIFORM) continue;\n if (!(name in allUniforms)) {\n throw new Error(\"uniform '\"+name+\"': You must provide an initial value.\");\n }\n }\n for (name in uniforms) {\n if (name === RESOLUTION_UNIFORM) {\n throw new Error(\"The '\"+name+\"' uniform is reserved, you must not use it.\");\n }\n if (!(name in glslUniforms)) {\n throw new Error(\"uniform '\"+name+\"': This uniform does not exist in your GLSL code.\");\n }\n }\n\n // Validate Runtime errors\n if (!createTransitionCore.getGL()) return Q.reject(new Error(\"WebGL context is null.\"));\n if (currentAnimationD) return Q.reject(new Error(\"another transition is already running.\"));\n try {\n transitionCore.load();\n }\n catch (e) {\n return Q.reject(e);\n }\n\n transitionCore.bind();\n\n // Set all uniforms\n for (name in allUniforms) {\n transitionCore.setUniform(name, allUniforms[name]);\n }\n transitionCore.syncViewport();\n\n // Perform the transition\n return animate(duration, easing, allUniforms);\n }", "function addTransition($el, transition) {\n var value = $el.css('transition');\n if (value.length) value += ', ';\n value += transition;\n return $el.css({ transition: value });\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets up factor 1 and factor 2 listeners so that appropriate information is displayed in the factor card of each sample.
function set_factor_to_sample_listeners(design_1_radio, design_2_radio, design_inputs) { var factor_1_card = design_inputs.children('.factor_card:first'); var factor_2_card = design_inputs.children('.factor_card:last'); set_factor_card_to_sample_listener(factor_1_card, 'sample_factors_1_group', factor_2_card, 'Factor 1: '); set_factor_card_to_sample_listener(factor_2_card, 'sample_factors_2_group', factor_1_card, 'Factor 2: '); // Also, depending on which radio is selected (i.e. what design the // experiment is), we need to show or hide the second factor. design_1_radio.click(function () { if (this.checked) { for (var id in sample_forms) { var sample_form = sample_forms[id]; sample_form.find('.sample_factors_2_group').hide(); } } }); design_2_radio.click(function () { if (this.checked) { for (var id in sample_forms) { var sample_form = sample_forms[id]; sample_form.find('.sample_factors_2_group').show(); } } }); }
[ "function set_factor_card_to_sample_listener(factor_card,\n sample_factor_group_class_name,\n other_factor_card,\n prefix) {\n var name_div = factor_card.find('.factor_name_inputs');\n var other_name_div = other_factor_card.find('.factor_name_inputs');\n var values_div = factor_card.find('.factor_values_inputs');\n\n var name_inputs = name_div.find('select,input');\n var values_inputs = values_div.find('select,input,button');\n\n // If name changes, the factor name also changes for each sample.\n name_inputs.change({\n 'prefix': prefix,\n 'name_div': name_div,\n 'class_name': sample_factor_group_class_name\n }, function (e) {\n var name_div = e.data.name_div;\n var class_name = e.data.class_name;\n var prefix = e.data.prefix;\n\n for (var id in sample_forms) {\n var sample_form = sample_forms[id];\n\n var factor_group = sample_form.find('.' + class_name);\n var label = factor_group.find('label');\n var name = get_value_from_custom_dropdown(name_div);\n label.text(prefix + name);\n }\n });\n\n // To enable, disable preset factor names.\n name_div.find('select').change({\n 'other_factor_card': other_factor_card\n }, function (e) {\n var select = $(this).filter(':visible');\n var selected = select.children('option:not(:disabled):selected');\n var other_factor_card = e.data.other_factor_card;\n var other_name_div = other_factor_card.find('.factor_name_inputs');\n var other_select = other_name_div.find('select:visible')\n\n var other_selected = other_select.children('option:not(:disabled):selected');\n var val = selected.val();\n var other_val = other_selected.val();\n\n console.log('other_val: ' + other_val);\n\n // Skip if null.\n if (val == null) {\n return;\n }\n\n for (var factor_name in factor_names_to_class_names) {\n var class_name = factor_names_to_class_names[factor_name];\n var form_group = common_form.find('.' + class_name);\n var checkbox = form_group.find('input:checkbox');\n\n var common_form_class_name = 'sample_common_form';\n var specific_form_class_name = 'sample_specific_form';\n\n if (val == factor_name || other_val == factor_name) {\n checkbox.prop('disabled', true);\n } else {\n checkbox.prop('disabled', false);\n }\n refresh_checkbox(checkbox);\n enable_disable_row(checkbox);\n }\n });\n\n // If values change, the values dropdown must also change.\n values_inputs.change({\n 'values_div': values_div,\n 'class_name': sample_factor_group_class_name\n }, function (e) {\n var values_div = e.data.values_div;\n var class_name = e.data.class_name;\n\n for (var id in sample_forms) {\n var sample_form = sample_forms[id];\n\n var factor_group = sample_form.find('.' + class_name);\n var select = factor_group.find('select');\n\n // First, remove all options and reset dropdown.\n select.children('option:not(:disabled)').remove();\n select.children('option:disabled').prop('selected', true);\n\n // Then, retrieve list of values.\n var values = get_values_from_fluid_rows(values_div);\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i][0];\n\n if (value != null && value != '') {\n var option = $('<option>', {\n text: value\n });\n\n select.append(option);\n }\n }\n }\n });\n}", "function setListeners() {\n\n\t\t\t// Set start button listener\n\t\t\tstartButton.addEventListener(\"click\", function() {\n\n\t\t\t\t// Booleans for recording whether or not both categories are checked\n\t\t\t\tvar kanaSelected = false;\n\t\t\t\tvar typeSelected = false;\n\n\t\t\t\t// Check if at least one thing in each category is checked\n\t\t\t\tfor (var i = 0; i < kanaSelectors.length; i++) {\n\t\t\t\t\tif (kanaSelectors[i].checked) {\n\t\t\t\t\t\tkanaSelected = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\tfor (var i = 0; i < typeSelectors.length; i++) {\n\t\t\t\t\tif (typeSelectors[i].checked) {\n\t\t\t\t\t\ttypeSelected = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Only start if both categories are checked\n\t\t\t\tif (kanaSelected && typeSelected) {\n\t\t\t\t\tcurrState = states.started;\n\t\t\t\t};\n\t\t\t});\n\n\t\t\t// Reading trainer submit button event listener\n\t\t\treadingSubmitButton.addEventListener(\"click\", function() {\n\t\t\t\t// Store current answer when user pressed submit\n\t\t\t\tcurrAnswer = readingAnswerInput.value;\n\t\t\t});\n\n\t\t\t// Reading trainer input event listener\n\t\t\treadingAnswerInput.addEventListener(\"keypress\", function(e) {\n\t\t\t\tif (e.keyCode === 13) {\n\t\t\t\t\t// If the user pressed enter while focused on the input, take it as a submission\n\t\t\t\t\tcurrAnswer = readingAnswerInput.value;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// Attach event listeners for returning to main menu\n\t\t\tfor (var i = 0; i < menuButtons.length; i++) {\n\t\t\t\tmenuButtons[i].addEventListener(\"click\", function() {\n\t\t\t\t\tgoToMenu = true;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treadingSkipButton.addEventListener(\"click\", function() {\n\t\t\t\tskipQuestion = true;\n\t\t\t});\n\t\t}", "function setupListeners_Ongoing()\n {\n //Whenever the screen changes, hide the Active Settings View and Quantity Popover\n listenForEvent_ScreenChanged();\n\n //When the user navigates home, hide the List Screen and show the Home Screen. (Works using either the Home button or 'back' browser command).\n listenForEvent_NavigatedHome();\n\n //When the New List button is pressed, add a new List to the checklist data and the DOM\n listenForEvent_NewListButtonPressed();\n\n //When the New List Item button is pressed, add a new List Item to the checklist data and the DOM\n listenForEvent_NewListItemButtonPressed();\n\n //For each quantity type supported by the checklist...\n for (const key in QuantityTypes)\n {\n //When that quantity's Header Popover is shown, add an event listener to the 'Clear' button to clear that quantity's column\n listenForEvent_QuantityHeaderPopoverShown(key);\n }\n\n //When the button to clear all quantities across all lists is pressed, update the Model and View accordingly\n listenForEvent_ClearQuantitiesForAllListsButtonPressed();\n\n //When the button to clear all quantities except 'needed' across all lists is pressed, update the Model and View accordingly\n listenForEvent_ClearQuantitiesForExceptNeededAllListsButtonPressed();\n }", "setUpListeners(bluetooth, osc){\n this.listener.setMainAnalyzers(bluetooth, osc);\n }", "function mixerListeners() {\r\n // red\r\n addChangeListener(rangeRed, function () {\r\n\tcopyValue(rangeRed, numberRed);\r\n });\r\n addInputListener(rangeRed, function () {\r\n\tcopyValue(rangeRed, numberRed);\r\n });\r\n setValue(rangeRed, \"255\");\r\n addChangeListener(numberRed, function () {\r\n\tcopyValue(numberRed, rangeRed);\r\n });\r\n setValue(numberRed, \"255\");\r\n\r\n // green\r\n addChangeListener(rangeGreen, function () {\r\n\tcopyValue(rangeGreen, numberGreen);\r\n });\r\n addInputListener(rangeGreen, function () {\r\n\tcopyValue(rangeGreen, numberGreen);\r\n });\r\n setValue(rangeGreen, \"255\");\r\n addChangeListener(numberGreen, function () {\r\n\tcopyValue(numberGreen, rangeGreen);\r\n });\r\n setValue(numberGreen, \"255\");\r\n\r\n // blue\r\n addChangeListener(rangeBlue, function () {\r\n\tcopyValue(rangeBlue, numberBlue);\r\n });\r\n addInputListener(rangeBlue, function () {\r\n\tcopyValue(rangeBlue, numberBlue);\r\n });\r\n setValue(rangeBlue, \"255\");\r\n addChangeListener(numberBlue, function () {\r\n\tcopyValue(numberBlue, rangeBlue);\r\n });\r\n setValue(numberBlue, \"255\");\r\n\r\n // mixer history\r\n addClickListener(mixedColor1, function () {\r\n\treadColorFromHistory(mixedColorHex1);\r\n });\r\n\r\n addClickListener(mixedColor2, function () {\r\n\treadColorFromHistory(mixedColorHex2);\r\n });\r\n\r\n addClickListener(mixedColor3, function () {\r\n\treadColorFromHistory(mixedColorHex3);\r\n });\r\n\r\n addClickListener(mixedColor4, function () {\r\n\treadColorFromHistory(mixedColorHex4);\r\n });\r\n\r\n addClickListener(mixedColor5, function () {\r\n\treadColorFromHistory(mixedColorHex5);\r\n });\r\n\r\n addClickListener(mixedColor6, function () {\r\n\treadColorFromHistory(mixedColorHex6);\r\n });\r\n}", "init() {\n // Prints the first page of the app wuth the total mount of questions\n this.view.printFirstPage(this.questions.length);\n\n // Add all the necessary event listener and ties them with the app logic\n this.view.delegateListener('click', '#play', () => this.startGame());\n this.view.delegateListener('click', '#check-answer', event => this.checkAnswer(event));\n this.view.delegateListener('click', '#next', () => this.nextQuestion());\n }", "setupListeners() {\n this.setupLeagues();\n this.setupDrivers();\n }", "function setupSubscriptions() {\r\n bus.subscribe(\"start\", startLevel);\r\n bus.subscribe(\"openMenu\", pauseGame);\r\n bus.subscribe(\"closeMenu\", continueGame);\r\n bus.subscribe(\"pickBoosts\", updateBoostsScreen);\r\n bus.subscribe(\"endPickBoosts\", startLevel); // starts next level after done picking boosts\r\n\r\n bus.subscribe(\"invisiblityUpgrade\", upgradeInvisibility);\r\n bus.subscribe(\"speedUpgrade\", upgradeSpeed);\r\n bus.subscribe(\"quackUpgrade\", upgradeQuack);\r\n bus.subscribe(\"updateScore\", updateScore);\r\n bus.subscribe(\"levelChange\", startLevel);\r\n\r\n }", "function sample_characteristics_init() {\n samples_tab_active();\n}", "init_graded() {\n\t\tthis.exam_show_el(this.exam_section_questions, false);\n\t\tthis.exam_show_el(this.exam_section_footer, false);\n\t\tthis.exam_show_el(this.exam_button_start, false);\n\t\tthis.exam_show_el(this.exam_progress, false);\n\n\t\tthis.exam_button_results.addEventListener(\n\t\t\t\"click\",\n\t\t\t(event) => {\n\t\t\t\tthis.button_click_results(event);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t}", "initSpeechEngineListeners() {\n this.eventStore.on('reset-task', this.resetState.bind(this));\n this.eventStore.on('show-solution', this.hideButton.bind(this));\n this.eventStore.on('answered-correctly', this.hideButton.bind(this));\n this.eventStore.on('answered-wrong', this.disableButton.bind(this));\n }", "function init() {\r\n let costs = qsa(\".cost-card\");\r\n\r\n for (let i = 0; i < costs.length; i++) {\r\n costs[i].addEventListener(\"click\", flipQuestion);\r\n }\r\n }", "function createListeners() {\n firstChoice.addEventListener(\"click\", clickedChoiceOne);\n secondChoice.addEventListener(\"click\", clickedChoiceTwo);\n thirdChoice.addEventListener(\"click\", clickedChoiceThree);\n forthChoice.addEventListener(\"click\", clickedChoiceFour);\n}", "function _setListeners() {\n\t\tvar thiz = this;\n\t\t// add event listeners for actions\n\n\t\tthis.btn = this.dom.querySelectorAll(\"[ln-player-action]\");\n\t\tthis.btn.forEach(function (button) {\n\n\t\t\tbutton.addEventListener(\"click\", function () {\n\t\t\t\tlet action = button.getAttribute(\"ln-player-action\");\n\t\t\t\tdispatchEvent.call(this, action);\n\t\t\t\tthiz[action].call(thiz, this);\n\t\t\t});\n\t\t});\n\n\t\tthis.volumeSlider = this.dom.querySelectorAll(\"[ln-player-volume]\")[0];\n\t\tthis.volumeSlider.addEventListener(\"input\", function () {\n\t\t\tthiz.setVolume(this.value / 100);\n\t\t});\n\t\tthis.volumeSlider.addEventListener(\"volumechange\", (e) => {\n\t\t\tconsole.log(e);\n\t\t})\n\t\tthis.setVolume(localStorage.getItem(this.ls.volume) || 0.2);\n\n\t\tthis.volumeControll = this.dom.addEventListener(\"wheel\", function (x) {\n\t\t\tx.preventDefault();\n\t\t\tx.stopPropagation();\n\t\t\tx.stopImmediatePropagation();\n\t\t\tif (x.deltaY < 0) {\n\t\t\t\tif (\n\t\t\t\t\tthiz.audio.muted\n\n\t\t\t\t) {\n\t\t\t\t\tthiz.audio.muted = true;\n\t\t\t\t}\n\t\t\t\tthiz.setVolume(thiz.audio.volume + 0.05);\n\t\t\t} else {\n\t\t\t\tthiz.setVolume(thiz.audio.volume - 0.05);\n\t\t\t}\n\t\t});\n\t}", "_setupListeners() {\n this._setupScrollListeners();\n this._setupResizeListener();\n this._setupWheelListener();\n }", "function setUpListeners() {\n\t\tchrome.processes.onUpdatedWithMemory.addListener(function(processes) {\n // registerCallback(update.updateData);\n var processesArray = [];\n\t\t\tprocs.length = 0; // clear procs array\n\t\t\tfor(id in processes) {\n if(processes.hasOwnProperty(id)) {\n processesArray.push(processes[id]);\n\t\t\t\t\t// get_proc_info(processes[id], function(proc) {\n\t\t\t\t\t// \tprocs.push(proc);\n // console.log(proc.info);\n\t\t\t\t\t// });\n\t\t\t\t}\n\t\t\t}\n\n get_proc_info(processesArray, function() {\n \t\t\tlettucePush(procHistory, procs, historyLength);\n if (testFlag) {\n testFlag = false;\n update.setup(procs);\n }\n sendProcData(procs);\n\n });\n\n\t\t});\n\t}", "static categoryInfoPanelListeners(){\n //buttons to switch roles\n for (const [key, value] of Object.entries(document.querySelectorAll('.carousel-btn'))) {\n const roleid = value.getAttribute('roleid');\n value.addEventListener(\"click\",function(){\n \n Category.caurouselSwitch(roleid);\n });\n }\n\n //drag events for role unnasign and change role\n for (const [key, value] of Object.entries(document.querySelectorAll('.drag-category-role-user'))) {\n const roleid = value.getAttribute('roleid');\n value.addEventListener(\"dragstart\",function(){\n general.showBin(event);\n });\n value.addEventListener(\"dragend\",function(){\n general.endBin(event);\n });\n }\n\n for (const [key, value] of Object.entries(document.querySelectorAll('.search-carousel'))) {\n const roleid = value.getAttribute('roleid');\n value.addEventListener(\"keyup\",function(){\n Category.searchULCarousel(roleid);\n });\n \n }\n\n \n\n }", "configure(studyInfo) {\n const feature = this;\n const { variation, isFirstRun } = studyInfo;\n\n console.log(`starting study feature: ${studyInfo}`);\n\n browser.experiments.vpnRecommender.onSendTelemetry.addListener(this.sendTelemetry.bind(this));\n browser.experiments.vpnRecommender.onEndStudy.addListener((reason) => {\n browser.study.endStudy(reason);\n });\n browser.experiments.vpnRecommender.start(variation.name, isFirstRun);\n }", "setupListeners() {\n\t\tthis.emitter.on(RentalFunctionFinish, this.onRentalFnFinish.bind(this))\n\t\tthis.emitter.on('error', (type, error) => {\n\t\t\tconsole.error(`There was an error in the ${type} event: `, error);\n\t\t});\n\t\tthis.onRentalSuccess()\n\t\tthis.onRentalWarning()\n\t\tthis.onRentalError()\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Because of the left and transfer panes resizing options, we are now implementing the UI layout logic here, instead of the original code from the styles.css. The main reason is that, the CSS is not able to correctly calculate values based on other element's properties (e.g. width, height, position, etc). This is why we do a on('resize') handler which handles the resize of the generic layout of Mega's FM.
function fm_resize_handler() { // transfer panel resize logic var right_pane_height = ($('#fmholder').outerHeight() - ($('#topmenu').outerHeight() + $('.transfer-panel').outerHeight())); $('.fm-main.default').css({ 'height': right_pane_height + 'px' }); $('.transfer-scrolling-table').css({ 'height': ($('.transfer-panel').outerHeight() - ($('.transfer-panel-title').outerHeight() + $('.transfer-table-header').outerHeight())) + 'px' }); // left panel resize logic var right_panel_margin = $('.fm-left-panel').outerWidth(); var resize_handle_width = $('.left-pane-drag-handle').outerWidth(); $('.fm-main.default > div:not(.fm-left-panel)').each(function() { $(this).css({ 'margin-left': right_panel_margin }); }); $('.fm-main.notifications > .new-notification-top').each(function() { $(this).css({ 'margin-left': right_panel_margin }); }); $('.fm-main.notifications > .new-notifications-scroll').each(function() { $(this).css({ 'margin-left': (304 - right_panel_margin) * -1 }); }); $([ '.files-grid-view .grid-scrolling-table', '.file-block-scrolling', '.contacts-grid-view .contacts-grid-scrolling-table' ].join(', ')).css({ 'width': ($(document.body).outerWidth() - ($('.fm-left-panel').outerWidth())) }); if (M.currentdirid == 'contacts') { if (M.viewmode) initContactsBlocksScrolling(); else initContactsGridScrolling(); } if (M.chat) initChatScrolling(); var right_blocks_height = right_pane_height - $('.fm-right-header').outerHeight() - 10 /* padding */ ; $('.fm-right-files-block > *:not(.fm-right-header)').css({ 'height': right_blocks_height + 'px', 'min-height': right_blocks_height + 'px' }); // account page tweak, required since the transfer panel resize logic was introduced var $account_save_block = $('.fm-account-save-block'); if ($('.transfer-panel').size() > 0) { $account_save_block.css({ 'top': $('.transfer-panel').position().top - $account_save_block.outerHeight(), 'bottom': '' }); } }
[ "handleResize() {\n\n\t\tthis.layoutMarginals();\n\n\t}", "function adjustLayout() {\n\t\n\t minHeight = 620;\n\t minWidth = 900;\n\t\n\t var width;\n\t var height;\n\t\n\t if (VIEWPORT_WIDTH < minWidth && VIEWPORT_HEIGHT > minHeight) {\n\t width = minWidth;\n\t height = VIEWPORT_HEIGHT;\n\t }\n\t\n\t if (VIEWPORT_HEIGHT < minHeight && VIEWPORT_WIDTH > minWidth) {\n\t height = minHeight;\n\t width = VIEWPORT_WIDTH;\n\t }\n\t\n\t if (VIEWPORT_WIDTH < minWidth && VIEWPORT_HEIGHT < minHeight) {\n\t width = minWidth;\n\t height = minHeight;\n\t }\n\t\n\t if (VIEWPORT_WIDTH > minWidth && VIEWPORT_HEIGHT > minHeight) {\n\t height = VIEWPORT_HEIGHT;\n\t width = VIEWPORT_WIDTH;\n\t }\n\t\n\t $('.wrapper').css({\n\t 'height': height,\n\t 'width': width\n\t });\n\t\n\t $('.content_box, .single_box').css({\n\t 'height': height,\n\t 'width': width\n\t });\n\t\n\t $('.content_box_left').css({\n\t 'height': height,\n\t 'width': width / 2\n\t });\n\t\n\t $('.content_box_right').css({\n\t 'height': height,\n\t 'width': width / 2\n\t });\n\t\n\t $('.content_box_left img, .content_box_right img').attr({\n\t 'height': width / 2,\n\t 'width': width / 2\n\t });\n\t\n\t $('.arrow').css({\n\t 'top': height * 0.85,\n\t 'left': function() { return (width / 2) - ($(this).width() / 2); }\n\t });\n\t\n\t // Places the content of \".conent_box_right/left\" in the center vertically.\n\t $('.content_box_left div, .content_box_right div, .content_box_left img, .content_box_right img').css('top', function() {\n\t return (height / 2) - ($(this).height() / 2);\n\t });\n\t\n\t // Places the content of \".conent_box_right/left\" in the center horizontally.\n\t $('.content_box_left div, .content_box_right div').css('left', function() {\n\t return (width / 4) - ($(this).width() / 2);\n\t });\n\t\n\t // Places the content of \".single_box\" in the center vertically.\n\t $('.single_box div').css('top', function() {\n\t return ((height / 2) - ($(this).height() / 2)) * 0.9;\n\t });\n\t\n\t // Places the content of \".single_box\" in the center horizontally.\n\t $('.single_box div').css('left', function() {\n\t return (width / 2) - ($(this).width() / 2);\n\t });\n\t}", "onWindowResize() {\n this.recalculateScrollBar();\n this.recalculatePosition();\n this.recalculateScale();\n }", "function ResizeHandle() {\n\n var minWidth = 50;\n var minHeight = 20;\n\n // dragstart\n this.dragstart = function (event) {\n var dt = event.dataTransfer;\n var parent = event.target.parentNode;\n var parentStyle = document.defaultView.getComputedStyle(parent);\n var rtl = parent.classList.contains(\"lang_rtl\");\n var parentLeft = parseInt(parentStyle.getPropertyValue(\"left\"), 10);\n var parentTop = parseInt(parentStyle.getPropertyValue(\"top\"), 10);\n var parentWidth = parseInt(parentStyle.getPropertyValue(\"width\"), 10);\n var parentHeight = parseInt(parentStyle.getPropertyValue(\"height\"), 10);\n parentHeight -= event.clientY;\n if (rtl) {\n parentWidth += event.clientX;\n parentHeight - +event.clientY;\n parentLeft -= event.clientX;\n } else {\n parentWidth -= event.clientX;\n }\n parent.style.opacity = \"0.9\";\n dt.setData(\"text/plain\", parentLeft + \",\" + parentTop + \",\" + parentWidth + \",\" + parentHeight);\n\n document.getElementById(\"alerter\").innerHTML = \"Resizing Information Node\";\n };\n\n // drag\n this.drag = function (event) {\n event.preventDefault();\n // var dt = event.target;\n // dt.effectAllowed = \"all\";\n // dt.dropEffect = \"move\";\n\n };\n\n // dragover\n this.dragover = function (event, e_id) {\n event.preventDefault();\n var myData = event.dataTransfer.getData(\"text/plain\").split(',');\n var parent = document.getElementById(e_id).parentNode;\n var rtl = parent.classList.contains(\"lang_rtl\");\n var parentLeft = parseInt(myData[0], 10);\n var parentTop = parseInt(myData[1], 10);\n var parentWidth = parseInt(myData[2]);\n var parentHeight = parseInt(myData[3]);\n\n if (rtl) {\n var newWidth = parentWidth - event.clientX;\n var newHeight = parentHeight + event.clientY;\n var newLeft = parentLeft + event.clientX;\n if (newWidth > minWidth) {\n parent.style.left = newLeft + 'px';\n parent.style.width = newWidth + 'px';\n }\n if (newHeight > minHeight) {\n parent.style.height = newHeight + 'px';\n }\n }\n else {\n var newWidth = parentWidth + event.clientX;\n var newHeight = parentHeight + event.clientY;\n if (newWidth > minWidth) {\n parent.style.width = newWidth + 'px';\n }\n if (newHeight > minHeight) {\n parent.style.height = newHeight + 'px';\n }\n }\n };\n\n // drop (minWidth limitation)\n this.drop = function (event, e_id) {\n event.preventDefault();\n var me = document.getElementById(e_id);\n var parent = me.parentNode;\n parent.style.opacity = \"\";\n\n document.getElementById(\"alerter\").innerHTML = \"ready\";\n };\n\n}", "function resizePanes(e) {\n event.stop(e);\n $wrapper.addClass('resizing');\n var min = 550;\n var width = domStyle.get('wrapper', 'width');\n\n var dragHandle = on(window, 'mousemove', function(e){\n event.stop(e);\n if (e.pageX > min) {\n setHandlePosition(e.pageX + 8, width);\n }\n });\n\n on.once(parent.document, 'mouseup', function(e){\n $wrapper.removeClass('resizing');\n connect.disconnect(dragHandle);\n });\n\n function setHandlePosition(pos, width) {\n // vanilla JS is a *lot* faster than dojo :/\n $code[0].style.right = (width - pos) + 'px';\n $output[0].style.left = pos + 'px';\n }\n }", "resize() {\n this.updateLayout(true);\n }", "updateContainerLayout() {\n if (!this.isVisible()) {\n return\n }\n\n let layoutDetails = this._computeLayoutDetails()\n\n /* Compute remaining horizontal space */\n let remSpace = layoutDetails.panelWidth - layoutDetails.cellWidth * this._width\n let marginLeft = Math.max(remSpace, 0) / 2\n if (this._editEnabled) {\n marginLeft += CSS.em2px(PANEL_EDIT_MARGIN)\n }\n\n let layoutChanged = this._cellWidth !== layoutDetails.cellWidth\n this._cellWidth = layoutDetails.cellWidth\n\n this.getBody().addClass('disable-transitions')\n this.getBody().css({\n 'font-size': `${this._cellWidth}px`,\n 'height': Math.ceil(this._cellWidth * this._height),\n 'width': Math.ceil(this._cellWidth * this._width),\n 'margin-left': `${marginLeft}px`\n })\n\n if (this._widgets && layoutChanged) {\n this._widgets.forEach(function (w) {\n w.refreshContent()\n })\n }\n\n Theme.afterTransition(function () {\n this.removeClass('disable-transitions')\n }, this.getBody())\n }", "function resizePanes(e){\n event.stop(e);\n $wrapper.addClass(\"resizing\");\n var min = 50;\n var max = 70;\n var width = domStyle.get(\"wrapper\", \"width\");\n\n var dragHandle = on(window, \"mousemove\", function (e){\n event.stop(e);\n if (e.pageX > min && (e.pageX + max) < width) {\n setHandlePosition(e.pageX + 8, width);\n editor.resize(true);\n }\n });\n\n on.once(parent.document, \"mouseup\", function (e){\n $wrapper.removeClass(\"resizing\");\n connect.disconnect(dragHandle);\n });\n\n function setHandlePosition(pos, width){\n // vanilla JS is a *lot* faster than dojo :/\n $code[0].style.right = (width - pos) + \"px\";\n $output[0].style.left = pos + \"px\";\n }\n }", "function resizeHandler() {\n var layout = getLayoutFromSize(container.offsetWidth);\n if (layout !== container.dataset.grid) {\n container.dataset.grid = layout;\n listeners.forEach(function(listener) {\n listener();\n })\n }\n }", "resizeGraph(event) {\n // console.log(\"resizeGraph\");\n let oldWidth = this.width;\n let oldHeight = this.height;\n\n // only do this on a real resize. (not on tab changes etc)\n // this also triggers when resizing the neighbour view\n if(oldWidth === 0 && oldHeight === 0) return;\n\n this.resizeContainers();\n\n this.moveOldCenterToNewCenter(oldWidth, oldHeight);\n }", "resize() {\n let width = this.el.clientWidth\n let height = this.el.clientHeight\n // if (this.tmp.current_width == width && height > 0) return\n let styles = getComputedStyle(this.el)\n let focus = this.helpers.search\n let multi = this.helpers.multi\n let suffix = this.helpers.suffix\n let prefix = this.helpers.prefix\n // resize helpers\n if (focus) {\n query(focus).css('width', width)\n }\n if (multi) {\n query(multi).css('width', width - parseInt(styles['margin-left'], 10) - parseInt(styles['margin-right'], 10))\n }\n if (suffix) {\n this.addSuffix()\n }\n if (prefix) {\n this.addPrefix()\n }\n // enum or file\n let div = this.helpers.multi\n if (['enum', 'file'].includes(this.type) && div) {\n // adjust height\n query(this.el).css('height', 'auto')\n let cntHeight = query(div).find(':scope div.w2ui-multi-items').get(0).clientHeight + 5\n if (cntHeight < 20) cntHeight = 20\n // max height\n if (cntHeight > this.tmp['max-height']) {\n cntHeight = this.tmp['max-height']\n }\n // min height\n if (cntHeight < this.tmp['min-height']) {\n cntHeight = this.tmp['min-height']\n }\n let inpHeight = w2utils.getSize(this.el, 'height') - 2\n if (inpHeight > cntHeight) cntHeight = inpHeight\n query(div).css({\n 'height': cntHeight + 'px',\n overflow: (cntHeight == this.tmp['max-height'] ? 'auto' : 'hidden')\n })\n query(div).css('height', cntHeight + 'px')\n query(this.el).css({ 'height': cntHeight + 'px' })\n }\n // remember width\n this.tmp.current_width = width\n }", "updateLayoutForResize() {\n const { layout, parentLayout, element, contentLayout, originalLayout, align, resize } = this;\n const { x, y, width, height } = layout;\n // Update size\n const widthPx = width + \"px\";\n const heightPx = height + \"px\";\n const { style } = element;\n if (style.width !== widthPx)\n style.width = widthPx;\n if (style.height !== heightPx)\n style.height = heightPx;\n // Update transform\n const translateX = x - parentLayout.x;\n const translateY = y - parentLayout.y;\n style.transform = createTransform(translateX, translateY);\n // Content\n if (!this._contentElement)\n return;\n let { x: contentX, y: contentY, width: contentWidth, height: contentHeight } = contentLayout;\n // Get content size\n let overflow = \"hidden\";\n switch (resize) {\n case RNSharedElementResize.Auto:\n // keep original size\n break;\n case RNSharedElementResize.Stretch:\n contentWidth = width;\n contentHeight = height;\n break;\n case RNSharedElementResize.Clip:\n contentWidth = originalLayout.width;\n contentHeight = originalLayout.height;\n break;\n case RNSharedElementResize.None:\n contentWidth = originalLayout.width;\n contentHeight = originalLayout.height;\n overflow = \"visible\";\n break;\n }\n // Align\n switch (align) {\n case RNSharedElementAlign.LeftTop:\n contentX = 0;\n contentY = 0;\n break;\n case RNSharedElementAlign.LeftCenter:\n contentX = 0;\n contentY = (height - contentHeight) / 2;\n break;\n case RNSharedElementAlign.LeftBottom:\n contentX = 0;\n contentY = height - contentHeight;\n break;\n case RNSharedElementAlign.RightTop:\n contentX = width - contentWidth;\n contentY = 0;\n break;\n case RNSharedElementAlign.RightCenter:\n contentX = width - contentWidth;\n contentY = (height - contentHeight) / 2;\n break;\n case RNSharedElementAlign.RightBottom:\n contentX = width - contentWidth;\n contentY = height - contentHeight;\n break;\n case RNSharedElementAlign.CenterTop:\n contentX = (width - contentWidth) / 2;\n contentY = 0;\n break;\n case RNSharedElementAlign.Auto:\n case RNSharedElementAlign.CenterCenter:\n contentX = (width - contentWidth) / 2;\n contentY = (height - contentHeight) / 2;\n break;\n case RNSharedElementAlign.CenterBottom:\n contentX = (width - contentWidth) / 2;\n contentY = height - contentHeight;\n break;\n }\n // Update content size\n const contentWidthPx = contentWidth + \"px\";\n const contentHeightPx = contentHeight + \"px\";\n const { style: contentStyle } = this._contentElement;\n if (contentStyle.width !== widthPx)\n contentStyle.width = contentWidthPx;\n if (contentStyle.height !== heightPx)\n contentStyle.height = contentHeightPx;\n // Update content transform\n contentStyle.transform = createTransform(contentX, contentY);\n // Update overflow\n if (element.style.overflow !== overflow) {\n element.style.overflow = overflow;\n }\n }", "_updateGraphSplitPaneResize () {\n this._updateGraphSize (this._graphSplitPane.current.pane1.offsetWidth);\n }", "function initResizing() {\n var $el = $(vis.el);\n var $panel1 = $el.children(\".profvis-panel1\");\n var $panel2 = $el.children(\".profvis-panel2\");\n var $splitBar = $el.children(\".profvis-splitbar\");\n var $statusBar = $el.children(\".profvis-status-bar\");\n\n // Clear any existing positioning that may have happened from previous\n // calls to this function and the callbacks that it sets up.\n $panel1.removeAttr(\"style\");\n $panel2.removeAttr(\"style\");\n $splitBar.removeAttr(\"style\");\n $statusBar.removeAttr(\"style\");\n\n // CSS class suffix for split direction\n var splitClass = (vis.splitDir === \"h\") ? \"horizontal\" : \"vertical\";\n\n // Remove existing horizontal/vertical class and add the correct class back.\n $panel1.removeClass(\"profvis-panel1-horizontal profvis-panel1-vertical\");\n $panel2.removeClass(\"profvis-panel2-horizontal profvis-panel2-vertical\");\n $splitBar.removeClass(\"profvis-splitbar-horizontal profvis-splitbar-vertical\");\n $panel1.addClass(\"profvis-panel1-\" + splitClass);\n $panel2.addClass(\"profvis-panel2-\" + splitClass);\n $splitBar.addClass(\"profvis-splitbar-\" + splitClass);\n\n\n var splitBarGap;\n var margin;\n // Record the proportions from the previous call to resizePanels. This is\n // needed when we resize the window to preserve the same proportions.\n var lastSplitProportion;\n\n if (vis.splitDir === \"v\") {\n // Record the gap between the split bar and the objects to left and right\n splitBarGap = {\n left: $splitBar.offset().left - offsetRight($panel1),\n right: $panel2.offset().left - offsetRight($splitBar)\n };\n\n // Capture the initial distance from the left and right of container element\n margin = {\n left: $panel1.position().left,\n right: $el.innerWidth() - positionRight($panel2)\n };\n\n } else if (vis.splitDir === \"h\") {\n splitBarGap = {\n top: $splitBar.offset().top - offsetBottom($panel1),\n bottom: $panel2.offset().top - offsetBottom($splitBar)\n };\n\n margin = {\n top: $panel1.position().top,\n bottom: $el.innerWidth() - positionBottom($panel2)\n };\n }\n\n // Resize the panels. splitProportion is a number from 0-1 representing the\n // horizontal position of the split bar.\n function resizePanels(splitProportion) {\n if (!splitProportion)\n splitProportion = lastSplitProportion;\n\n if (vis.splitDir === \"v\") {\n var innerWidth = offsetRight($panel2) - $panel1.offset().left;\n\n $splitBar.offset({\n left: $panel1.offset().left + innerWidth * splitProportion -\n $splitBar.outerWidth()/2\n });\n\n // Size and position the panels\n $panel1.outerWidth($splitBar.position().left - splitBarGap.left -\n margin.left);\n $panel2.offset({ left: offsetRight($splitBar) + splitBarGap.right });\n\n } else if (vis.splitDir === \"h\") {\n var innerHeight = offsetBottom($panel2) - $panel1.offset().top;\n\n $splitBar.offset({\n top: $panel1.offset().top + innerHeight * splitProportion -\n $splitBar.outerHeight()/2\n });\n\n // Size and position the panels\n $panel1.outerHeight($splitBar.position().top - splitBarGap.top -\n margin.top);\n $panel2.offset({ top: offsetBottom($splitBar) + splitBarGap.bottom });\n }\n\n lastSplitProportion = splitProportion;\n }\n\n // Initially, set widths to 50/50\n // For the first sizing, we don't need to call vis.flameGraph.onResize()\n // because this happens before the flame graph is generated.\n resizePanels(0.5);\n\n var resizePanelsDebounced = debounce(function() {\n resizePanels(lastSplitProportion);\n vis.activeViews.forEach(function(e) {\n if (e.onResize) e.onResize();\n });\n }, 250);\n\n // Clear old resize handler and add new one. We use a namespace for this\n // visualization to make sure not to delete handlers for other profvis\n // visualizations on the same page (this can happen with Rmd documents).\n $(window).off(\"resize.profvis.\" + resizeCallbackNamespace);\n $(window).on(\"resize.profvis.\" + resizeCallbackNamespace, resizePanelsDebounced);\n\n // Get current proportional position of split bar\n function splitProportion() {\n var splitCenter;\n\n if (vis.splitDir === \"v\") {\n splitCenter = $splitBar.offset().left - $panel1.offset().left +\n $splitBar.outerWidth()/2;\n var innerWidth = offsetRight($panel2) - $panel1.offset().left;\n return splitCenter / innerWidth;\n\n } else if (vis.splitDir === \"h\") {\n splitCenter = $splitBar.offset().top - $panel1.offset().top +\n $splitBar.outerHeight()/2;\n var innerHeight = offsetBottom($panel2) - $panel1.offset().top;\n return splitCenter / innerHeight;\n }\n }\n\n function positionRight($el) {\n return $el.position().left + $el.outerWidth();\n }\n function offsetRight($el) {\n return $el.offset().left + $el.outerWidth();\n }\n function positionBottom($el) {\n return $el.position().top + $el.outerHeight();\n }\n function offsetBottom($el) {\n return $el.offset().top + $el.outerHeight();\n }\n\n // Enable dragging of the split bar ---------------------------------------\n (function() {\n var dragging = false;\n // For vertical split (left-right dragging)\n var startDragX;\n var startOffsetLeft;\n // For horizontal split (up-down dragging)\n var startDragY;\n var startOffsetTop;\n\n var stopDrag = function(e) {\n if (!dragging) return;\n dragging = false;\n\n document.removeEventListener(\"mousemove\", drag);\n document.removeEventListener(\"mouseup\", stopDrag);\n\n $splitBar.css(\"opacity\", \"\");\n\n if ((vis.splitDir === \"v\" && e.pageX - startDragX === 0) ||\n (vis.splitDir === \"h\" && e.pageY - startDragY === 0)) {\n return;\n }\n\n resizePanels(splitProportion());\n vis.flameGraph.onResize();\n };\n\n var startDrag = function(e) {\n // Don't start another drag if we're already in one.\n if (dragging) return;\n dragging = true;\n pauseEvent(e);\n\n $splitBar.css(\"opacity\", 0.75);\n\n if (vis.splitDir === \"v\") {\n startDragX = e.pageX;\n startOffsetLeft = $splitBar.offset().left;\n } else {\n startDragY = e.pageY;\n startOffsetTop = $splitBar.offset().top;\n }\n\n document.addEventListener(\"mousemove\", drag);\n document.addEventListener(\"mouseup\", stopDrag);\n };\n\n var drag = function(e) {\n if (!dragging) return;\n pauseEvent(e);\n\n if (vis.splitDir === \"v\") {\n var dx = e.pageX - startDragX;\n if (dx === 0)\n return;\n\n // Move the split bar\n $splitBar.offset({ left: startOffsetLeft + dx });\n\n } else if (vis.splitDir === \"h\") {\n var dy = e.pageY - startDragY;\n if (dy === 0)\n return;\n\n // Move the split bar\n $splitBar.offset({ top: startOffsetTop + dy });\n }\n };\n\n // Stop propogation so that we don't select text while dragging\n function pauseEvent(e){\n if(e.stopPropagation) e.stopPropagation();\n if(e.preventDefault) e.preventDefault();\n e.cancelBubble = true;\n e.returnValue = false;\n return false;\n }\n\n // Remove existing event listener from previous calls to initResizing().\n $splitBar.off(\"mousedown.profvis\");\n $splitBar.on(\"mousedown.profvis\", startDrag);\n })();\n\n\n return {\n resizePanels: resizePanels\n };\n }", "resize() {\n let width = this.el.clientWidth\n let height = this.el.clientHeight\n // if (this.tmp.current_width == width && height > 0) return\n let styles = getComputedStyle(this.el)\n\n let focus = this.helpers.search\n let multi = this.helpers.multi\n let suffix = this.helpers.suffix\n let prefix = this.helpers.prefix\n\n // resize helpers\n if (focus) {\n query(focus).css('width', width)\n }\n if (multi) {\n query(multi).css('width', width - parseInt(styles['margin-left'], 10) - parseInt(styles['margin-right'], 10))\n }\n if (suffix) {\n this.addSuffix()\n }\n if (prefix) {\n this.addPrefix()\n }\n // enum or file\n let div = this.helpers.multi\n if (['enum', 'file'].includes(this.type) && div) {\n // adjust height\n query(this.el).css('height', 'auto')\n let cntHeight = query(div).find(':scope div.w2ui-multi-items').get(0).clientHeight + 5\n if (cntHeight < 20) cntHeight = 20\n // max height\n if (cntHeight > this.tmp['max-height']) {\n cntHeight = this.tmp['max-height']\n }\n // min height\n if (cntHeight < this.tmp['min-height']) {\n cntHeight = this.tmp['min-height']\n }\n let inpHeight = w2utils.getSize(this.el, 'height') - 2\n if (inpHeight > cntHeight) cntHeight = inpHeight\n query(div).css({\n 'height': cntHeight + 'px',\n overflow: (cntHeight == this.tmp['max-height'] ? 'auto' : 'hidden')\n })\n query(div).css('height', cntHeight + 'px')\n query(this.el).css({ 'height': cntHeight + 'px' })\n }\n // remember width\n this.tmp.current_width = width\n }", "function resizablePanels() {\n\n var resizing_sidebar;\n var resizing_console;\n\n // Handle resize sidebar control\n $(\".sidebar_resize_control\").mousedown(function() {\n console.log(\"Tocado el sidebar\");\n resizing_sidebar = true;\n });\n\n // Handle console sidebar control\n $(\".console_resize_control\").mousedown(function() {\n console.log(\"Tocado el resize del console\");\n resizing_console = true;\n });\n\n // Drag action\n $(\"body\").mousemove(function(e) {\n\n // Resize sidebar\n if (resizing_sidebar) {\n var w = $(window).width();\n var m_x = e.pageX;\n var sidebar_size = m_x - 2;\n var text_area_size = w - m_x;\n if (sidebar_size > 180 && sidebar_size < 300) {\n $(\"#sidebar\").width(sidebar_size);\n $(\"#mainEditor\").width(text_area_size);\n }\n }\n\n // Resize console\n if (resizing_console) {\n var m_y = e.pageY;\n var h_top_block = $(\"#upnav\").height() + $(\"#mainNav\").height();\n var h = $(window).height();\n var console_size = h - m_y;\n if (console_size > 40 && console_size < 400) {\n center_block_ratio = (m_y - h_top_block) / h;\n console_block_ratio = 1.0 - center_block_ratio;\n responsiveComponents();\n }\n }\n\n })\n\n // Release drag\n $(\"body\").mouseup(function() {\n // Release drag sidebar\n if (resizing_sidebar) {\n console.log(\"Dragueo el sidebar\");\n resizing_sidebar = false;\n };\n // Release drag console\n if (resizing_console) {\n console.log(\"Dragueo el console\");\n resizing_console = false;\n };\n });\n\n\n}", "function onResize(){\n viewW = element.offsetWidth\n viewH = element.offsetHeight\n viewL = element.offsetLeft\n clearTimeout(resizeTimeout)\n resizeTimeout = setTimeout(collections.resize.bind(collections,viewW,viewH,currentRange),200)\n }", "onResize() { }", "function onResize() {\n\t\tif (pane.offsetWidth >= body.offsetWidth - MINIMUM_WIDTH) {\n\t\t\tpane.style.width = (body.offsetWidth - MINIMUM_WIDTH) + 'px';\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Hides all text areas for the customization sections.
function hideTextAreas() { for (let i = 1; i < customizationSections.length - 1; i++) { document.getElementById(customizationSections[i] + "_desc").style.display = "none"; } }
[ "hideTextMenu() {\n this.textTag.css(\"height\", \"0%\");\n $(this.codeMirror.container).hide();\n this.textSidebarTag.hide();\n this.textTag.hide();\n }", "function hideAllPanes() {\n hideInformation();\n hideIndicators();\n }", "function hideAllContent() {\n $(\"#overview\").hide();\n $(\"#resources\").hide();\n $(\"#examples\").hide();\n $(\"#tipsandtricks\").hide();\n }", "function hide_guidelines()\r\n{\r\n $('#translator_guidelines').remove();\r\n}", "function _hideAllDescriptions() {\n div_help_about.style.display = \"none\";\n div_help_cockpit.style.display = \"none\";\n div_help_dataExplorer.style.display = \"none\";\n div_help_dataSources.style.display = \"none\";\n }", "hide() {\n $('body').removeClass('editor-full');\n this.container.hide();\n this.active = false;\n }", "function hideVisualHelp(button, textArea){\n //hide the visual help section of the respective textArea\n var parent = $(button).parents()[1];\n $(parent).children('.visual-content-layout-visual-help').hide();\n //show the respective textArea and change button text\n $('#' + textArea).show();\n $(parent).find('.filter-guidelines').show();\n $(button).data('state','disable');\n $(button).text('Enable Visual Content Layout');\n }", "function hideAllEditors () {\n\t\tvar editor = null;\n\t\tareas.each(function (area) {\n\t\t\thideEditor(area);\n\t\t});\n\t}", "function hideAllContent() {\n $(\"#overview\").hide();\n $(\"#tips\").hide();\n $(\"#sample1\").hide();\n $(\"#sample2\").hide();\n $(\"#sample3\").hide();\n }", "function hideSections() {\n\t\t \n\t\t\t$('#home').hide();\n\t\t\t$('#sourceContainer').hide();\n\t\t\t$('#errorsContainer').hide();\n\t\t\t$('#errorsTitle').hide();\n\t\t\t$('#sourceTitle').hide();\n\t\t\t$('#upload').hide();\n\t\t\t$('#breakdown').hide();\n\t\t\t$('#structure').hide();\n\t\t\t\n\t\t }", "function hideAreaHard() {\n area().hide();\n}", "function hideAll() {\n $('#built-in-content').hide();\n $('#create-form-panel').hide();\n $('#log-in-panel').hide();\n $('#recommendation').hide();\n $('#change-profile-form').hide();\n $('#admin-panel').hide();\n }", "function hideAll() {\n $('#built-in-content').hide();\n $('#create-form-panel').hide();\n $('#log-in-panel').hide();\n $('#recommendation').hide();\n $('#change-profile-form').hide();\n // $('#admin-panel').hide();\n }", "function hideInkControls() {\r\n inkTransparencyControls.css({ 'display': 'none' });\r\n inkTextControls.css({ 'display': 'none' });\r\n inkDrawControls.css({ 'display': 'none' });\r\n inkEditDraw.css({ 'display': 'none', });\r\n inkEditTransparency.css('display', 'none');\r\n inkEditText.css('display', 'none');\r\n }", "_hideAll() {\n this.views.directorySelection.hide();\n this.views.training.hide();\n this.views.messages.hide();\n this.views.directorySelection.css('visibility', 'hidden');\n this.views.training.css('visibility', 'hidden');\n this.views.messages.css('visibility', 'hidden');\n }", "hideAllExtras() {\n this.hideAllContextMenus();\n HtmlUtils.hideElem(this.renameError);\n EdgeUtils.hide(this.temporaryEdgeG);\n }", "function hideAll(){\n\n if ( $('.intro').parent().prop('tagName') != \"BODY\" ) {\n $('.intro').detach().prependTo('body');\n $('.intro').css('margin-top', '200px');\n }\n\n $('#orModeWrapper').hide();\n $('#searchModeWrapper').hide();\n $('#feedbackModeWrapper').hide();\n\n $('nav').remove();\n $('#help-box').remove();\n $('#help-icon').remove();\n }", "function hideEverything(){\n\t$aboutMe.hide();\n\t$edu.hide();\n\t$awd.hide();\n\t$exp.hide(); \n\t$lead.hide();\n}", "hide() {\n this.highlighter.contextMenuActive = false;\n $(\"#df-context-menu\").addClass('hidden');\n $(\"input[name = 'translation']\").val('');\n $(\"input[name = 'entity-type']\").val('');\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
assignKeybinds Sets keybinds to the keyboard
assignKeybinds() { //KEYBOARD INPUT this.room2_key_W = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.W); this.room2_key_A = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.A); this.room2_key_S = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.S); this.room2_key_D = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.D); this.room2_key_E = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.E); this.room2_key_Q = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.Q); this.room2_key_M = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.M); this.room2_key_B = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.B); this.room2_key_U = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.U); this.room2_key_1 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.ONE); this.room2_key_2 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.TWO); this.room2_key_3 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.THREE); this.room2_key_4 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.FOUR); this.room2_key_5 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.FIVE); this.room2_key_R = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.R); this.room2_key_H = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.H); this.key_Right = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.RIGHT); this.key_Left = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.LEFT); this.room2_key_N = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.N); }
[ "function setup_keybinds()\n{\n Mousetrap.bind( [ 'command+shift+k', 'ctrl+shift+k' ] , function(e)\n {\n open_switcher();\n });\n}", "assignKeybinds() {\n //KEYBOARD INPUT\n this.key_W = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.W);\n this.key_A = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.A);\n this.key_S = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.S);\n this.key_D = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.D);\n this.key_E = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.E);\n this.key_Q = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.Q);\n this.key_M = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.M);\n this.key_B = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.B);\n this.key_U = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.U);\n this.key_1 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.ONE);\n this.key_2 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.TWO);\n this.key_3 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.THREE);\n this.key_R = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.R);\n this.key_H = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.H);\n this.key_N = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.N);\n\n\n this.key_Right = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.RIGHT);\n this.key_Left = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.LEFT);\n\n }", "function registerKeyBindings() {\n // keys: alt+1 -> time frame favorite list entry 1\n for (let i = 1; i <= 10; i++) {\n cb.bindKeyDown(KEY_0 + (i % 10), (e) => cb.clickElement($('div#header-toolbar-intervals > div[class*=\"button\"]:nth-child(' + i + ')')),\n { mods: { alt: true } });\n }\n // keys: alt-f -> toggle footer chart panel\n cb.bindKeyDown(KEY_F, (e) => cb.clickElement($('#footer-chart-panel button[data-name=\"toggle-visibility-button\"]')), { mods: { alt: true } });\n // keys: alt-shift-f -> toggle footer chart panel maximiziation\n cb.bindKeyDown(KEY_F, (e) => cb.clickElement($('#footer-chart-panel button[data-name=\"toggle-maximize-button\"]')), { mods: { alt: true, shift: true } });\n // keys: alt-w -> toggle watch list (right pane)\n cb.bindKeyDown(KEY_W, (e) => cb.clickElement($('.widgetbar-tabs [data-role=\"button\"]:first-child')), { mods: { alt: true } });\n }", "assignKeybinds() {\n //KEYBOARD INPUT\n this.room2b_key_W = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.W);\n this.room2b_key_A = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.A);\n this.room2b_key_S = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.S);\n this.room2b_key_D = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.D);\n this.room2b_key_E = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.E);\n this.room2b_key_Q = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.Q);\n this.room2b_key_M = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.M);\n this.room2b_key_B = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.B);\n this.room2b_key_U = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.U);\n this.room2b_key_1 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.ONE);\n this.room2b_key_2 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.TWO);\n this.room2b_key_3 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.THREE);\n this.room2b_key_4 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.FOUR);\n this.room2b_key_5 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.FIVE);\n this.room2b_key_R = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.R);\n this.room2b_key_H = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.H);\n\n }", "function createKeyBindings() {\n s.player2Keys = {\n ArrowRight:false, ArrowLeft:false, ArrowUp:false, ArrowDown: false\n };\n\n s.player1Keys = {\n KeyD:false, KeyA:false, KeyW:false, KeyS: false\n }; \n}", "bindKeys(strMapping) {\n this.GAMEPAD_KEYMAP_STANDARD = [\n {gb_key: \"b\", gp_button: 0, type: \"button\", gp_bind:this.module._set_joyp_B.bind(null, this.e) },\n {gb_key: \"a\", gp_button: 1, type: \"button\", gp_bind:this.module._set_joyp_A.bind(null, this.e) },\n {gb_key: \"select\", gp_button: 8, type: \"button\", gp_bind:this.module._set_joyp_select.bind(null, this.e) },\n {gb_key: \"start\", gp_button: 9, type: \"button\", gp_bind:this.module._set_joyp_start.bind(null, this.e) },\n {gb_key: \"up\", gp_button: 12, type: \"button\", gp_bind:this.module._set_joyp_up.bind(null, this.e) },\n {gb_key: \"down\", gp_button: 13, type: \"button\", gp_bind:this.module._set_joyp_down.bind(null, this.e) },\n {gb_key: \"left\", gp_button: 14, type: \"button\", gp_bind:this.module._set_joyp_left.bind(null, this.e) },\n {gb_key: \"right\", gp_button: 15, type: \"button\", gp_bind:this.module._set_joyp_right.bind(null, this.e) }\n ];\n\n this.GAMEPAD_KEYMAP_DEFAULT = [\n {gb_key: \"a\", gp_button: 0, type: \"button\", gp_bind:this.module._set_joyp_A.bind(null, this.e) },\n {gb_key: \"b\", gp_button: 1, type: \"button\", gp_bind:this.module._set_joyp_B.bind(null, this.e) },\n {gb_key: \"select\", gp_button: 2, type: \"button\", gp_bind:this.module._set_joyp_select.bind(null, this.e) },\n {gb_key: \"start\", gp_button: 3, type: \"button\", gp_bind:this.module._set_joyp_start.bind(null, this.e) },\n {gb_key: \"up\", gp_button: 2, type: \"axis\", gp_bind:this.module._set_joyp_up.bind(null, this.e) },\n {gb_key: \"down\", gp_button: 3, type: \"axis\", gp_bind:this.module._set_joyp_down.bind(null, this.e) },\n {gb_key: \"left\", gp_button: 0, type: \"axis\", gp_bind:this.module._set_joyp_left.bind(null, this.e) },\n {gb_key: \"right\", gp_button: 1, type: \"axis\", gp_bind:this.module._set_joyp_right.bind(null, this.e) }\n ];\n\n // Try to use the w3c \"standard\" gamepad mapping if available\n // (Chrome/V8 seems to do that better than Firefox)\n //\n // Otherwise use a default mapping that assigns\n // A/B/Select/Start to the first four buttons,\n // and U/D/L/R to the first two axes.\n if (strMapping === GAMEPAD_KEYMAP_STANDARD_STR) {\n this.gp.keybinds = this.GAMEPAD_KEYMAP_STANDARD;\n } else {\n this.gp.keybinds = this.GAMEPAD_KEYMAP_DEFAULT;\n }\n }", "assignKeybinds() {\n //KEYBOARD INPUT\n this.actOne_key_W = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.W);\n this.actOne_key_A = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.A);\n this.actOne_key_S = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.S);\n this.actOne_key_D = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.D);\n this.actOne_key_E = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.E);\n this.actOne_key_Q = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.Q);\n this.actOne_key_M = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.M);\n this.actOne_key_B = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.B);\n this.actOne_key_U = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.U);\n this.actOne_key_1 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.ONE);\n this.actOne_key_2 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.TWO);\n this.actOne_key_3 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.THREE);\n this.actOne_key_4 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.FOUR);\n this.actOne_key_5 = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.FIVE);\n this.actOne_key_R = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.R);\n this.actOne_key_H = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.H);\n\n }", "function attachKeys() {\n var inputs = d.body.getElementsByTagName('input'),\n selects = d.body.getElementsByTagName('select'),\n textareas = d.body.getElementsByTagName('textarea');\n\n next = yud.get('next_url');\n prev = yud.get('prev_url');\n\n hotKeys.ctrl_alt_a = new yut.KeyListener(d,\n { ctrl: true, alt: true, keys: 65 }, Thoth.toggleAdminToolbar);\n\n hotKeys.n = new yut.KeyListener(d, { keys: 78 }, handleKeyNext);\n hotKeys.p = new yut.KeyListener(d, { keys: 80 }, handleKeyPrev);\n\n // Stop listening for hotkeys when a form element gets focus.\n yue.on(inputs, 'blur', enableKeys, Thoth, true);\n yue.on(inputs, 'focus', disableKeys, Thoth, true);\n yue.on(selects, 'blur', enableKeys, Thoth, true);\n yue.on(selects, 'focus', disableKeys, Thoth, true);\n yue.on(textareas, 'blur', enableKeys, Thoth, true);\n yue.on(textareas, 'focus', disableKeys, Thoth, true);\n\n enableKeys();\n }", "bindKeys(){\n this.installHotkey('t', () => this.setDisposition(TRIVI), '0Touched: Trivially');\n this.installHotkey('d', () => this.setDisposition(DISAB), 'NRN: Disability');\n this.installHotkey('b', () => this.setDisposition(BADNUM), '2BadNumber: Wrong Number');\n this.installHotkey('x', () => this.setDisposition(XFER), '0Touched: Transferred' );\n this.installHotkey('w', () => this.setDisposition(WILLNOTBUY), 'NRN: Will Not Buy Right Now');\n this.installHotkey('u', () => this.setDisposition(UNINSURE), 'NRN: Uninsurable');\n this.installHotkey('q', () => this.setDisposition(DNC), 'NFC: DNC List' );\n\n\n\n this.installHotkey('n', () => this.setDisposition(NOVM), '0Not Contacted: No VM');\n this.installHotkey('l', () => this.setDisposition(LEFTVM), '0Not Contacted: Left Voicemail');\n this.installHotkey('h', () => this.hangUp(), 'Hang up');\n // $j(document).bind('keydown', 'ctrl+n', this.binder('n'));\n // $j(document).bind('keydown', 'ctrl+l', this.binder('l'));\n }", "configureKeyboardBindings() {\n if (this.keycharm !== undefined) {\n this.keycharm.destroy();\n }\n\n if (this.options.keyboard.enabled === true) {\n if (this.options.keyboard.bindToWindow === true) {\n this.keycharm = keycharm({ container: window, preventDefault: true });\n } else {\n this.keycharm = keycharm({\n container: this.canvas.frame,\n preventDefault: true,\n });\n }\n\n this.keycharm.reset();\n\n if (this.activated === true) {\n this.keycharm.bind(\n \"up\",\n () => {\n this.bindToRedraw(\"_moveUp\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"down\",\n () => {\n this.bindToRedraw(\"_moveDown\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"left\",\n () => {\n this.bindToRedraw(\"_moveLeft\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"right\",\n () => {\n this.bindToRedraw(\"_moveRight\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"=\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"num+\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"num-\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"-\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"[\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"]\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"pageup\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"pagedown\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n\n this.keycharm.bind(\n \"up\",\n () => {\n this.unbindFromRedraw(\"_moveUp\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"down\",\n () => {\n this.unbindFromRedraw(\"_moveDown\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"left\",\n () => {\n this.unbindFromRedraw(\"_moveLeft\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"right\",\n () => {\n this.unbindFromRedraw(\"_moveRight\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"=\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"num+\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"num-\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"-\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"[\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"]\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"pageup\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"pagedown\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n }\n }\n }", "bindKeyboard() {\n this.boundKeyboard = true;\n this.keydownHandler = this.eventSource.bindKeydownHandler(this, 'evKey');\n }", "configureKeyboardBindings() {\n if (this.keycharm !== undefined) {\n this.keycharm.destroy();\n }\n\n if (this.options.keyboard.enabled === true) {\n if (this.options.keyboard.bindToWindow === true) {\n this.keycharm = keycharm__default['default']({ container: window, preventDefault: true });\n } else {\n this.keycharm = keycharm__default['default']({\n container: this.canvas.frame,\n preventDefault: true,\n });\n }\n\n this.keycharm.reset();\n\n if (this.activated === true) {\n this.keycharm.bind(\n \"up\",\n () => {\n this.bindToRedraw(\"_moveUp\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"down\",\n () => {\n this.bindToRedraw(\"_moveDown\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"left\",\n () => {\n this.bindToRedraw(\"_moveLeft\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"right\",\n () => {\n this.bindToRedraw(\"_moveRight\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"=\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"num+\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"num-\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"-\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"[\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"]\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"pageup\",\n () => {\n this.bindToRedraw(\"_zoomIn\");\n },\n \"keydown\"\n );\n this.keycharm.bind(\n \"pagedown\",\n () => {\n this.bindToRedraw(\"_zoomOut\");\n },\n \"keydown\"\n );\n\n this.keycharm.bind(\n \"up\",\n () => {\n this.unbindFromRedraw(\"_moveUp\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"down\",\n () => {\n this.unbindFromRedraw(\"_moveDown\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"left\",\n () => {\n this.unbindFromRedraw(\"_moveLeft\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"right\",\n () => {\n this.unbindFromRedraw(\"_moveRight\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"=\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"num+\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"num-\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"-\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"[\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"]\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"pageup\",\n () => {\n this.unbindFromRedraw(\"_zoomIn\");\n },\n \"keyup\"\n );\n this.keycharm.bind(\n \"pagedown\",\n () => {\n this.unbindFromRedraw(\"_zoomOut\");\n },\n \"keyup\"\n );\n }\n }\n }", "bindKeyboard() {\n this.boundKeyboard = true;\n this.keydownHandler = this.eventSource.bindKeydownHandler(this, 'evKey');\n }", "function gamepadBindKeys(strMapping) {\n // Try to use the w3c \"standard\" gamepad mapping if available\n // (Chrome/V8 seems to do that better than Firefox)\n //\n // Otherwise use a default mapping that assigns\n // A/B/Select/Start to the first four buttons,\n // and U/D/L/R to the first two axes.\n\n if (strMapping === GAMEPAD_KEYMAP_STANDARD_STR) IodineGUI.gamepad.keybinds = GAMEPAD_KEYMAP_STANDARD;\n else IodineGUI.gamepad.keybinds = GAMEPAD_KEYMAP_DEFAULT;\n}", "function KeyBindings(){\n\t/***** KEY BINDING VARIABLES (defaults set here) *****/\n\tthis.up1 = 119;\t\t\t// 'w'\n\tthis.up2 = 87;\t\t\t// 'W'\n\tthis.up3 = 38;\t\t\t// up arrow\n\tthis.up4 = -1;\t\t\t// unbound\n\t\n\tthis.down1 = 115;\t\t// 's'\n\tthis.down2 = 83;\t\t// 'S'\n\tthis.down3 = 40;\t\t// down arrow\n\tthis.down4 = -1;\t\t// unbound\n\t\n\tthis.left1 = 97;\t\t// 'a'\n\tthis.left2 = 65;\t\t// 'A'\n\tthis.left3 = 37;\t\t// left arrow\n\tthis.left4 = -1;\t\t// unbound\n\t\n\tthis.right1 = 100;\t\t// 'd'\n\tthis.right2 = 68;\t\t// 'D'\n\tthis.right3 = 39;\t\t// right arrow\n\tthis.right4 = -1;\t\t// unbound\n\t\n\tthis.shoot1 = 32;\t\t// space\n\tthis.shoot2 = -1;\t\t// unbound\n\tthis.shoot3 = -1;\t\t// unbound\n\tthis.shoot4 = -1;\t\t// unbound\n\t\n\tthis.pause1 = 27;\t\t// escape\n\tthis.pause2 = -1;\t\t// unbound\n\tthis.pause3 = -1;\t\t// unbound\n\tthis.pause4 = -1;\t\t// unbound\n\t\n\tthis.healthBars1 = 9;\t// tab\n\tthis.healthBars2 = -1;\t// unbound\n\tthis.healthBars3 = -1;\t// unbound\n\tthis.healthBars4 = -1;\t// unbound\n\t\n\tthis.timerBars1 = 9;\t// tab\n\tthis.timerBars2 = -1;\t// unbound\n\tthis.timerBars3 = -1;\t// unbound\n\tthis.timerBars4 = -1;\t// unbound\n\t\n\t\n\t// bind all functions (uses settings to access user database if the user\n\t//\tis logged in to load the user's custom keybindings. Otherwise, it keeps\n\t//\tthe default bindings.\n\tthis.bind = function(settingsObject){\n\t\t// if not logged in, return\n\t\tif(!settingsObject.loggedIn)\n\t\t\treturn;\n\t}\n\t\n\n\t/***** KEYBINDINGS CHECK FUNCTIONS *****/\n\t// returns TRUE if the key binding matches the given key code\n\tthis.upBinding = function(keyCode){ // UP movement\n\t\treturn keyCode == this.up1 || keyCode == this.up2 ||\n\t\t\t keyCode == this.up3 || keyCode == this.up4;\n\t}\n\tthis.downBinding = function(keyCode){ // DOWN movement\n\t\treturn keyCode == this.down1 || keyCode == this.down2 ||\n\t\t\t keyCode == this.down3 || keyCode == this.down4;\n\t}\n\tthis.leftBinding = function(keyCode){ // LEFT movement\n\t\treturn keyCode == this.left1 || keyCode == this.left2 ||\n\t\t\t keyCode == this.left3 || keyCode == this.left4;\n\t}\n\tthis.rightBinding = function(keyCode){ // RIGHT movement\n\t\treturn keyCode == this.right1 || keyCode == this.right2 ||\n\t\t\t keyCode == this.right3 || keyCode == this.right4;\n\t}\n\tthis.shootBinding = function(keyCode){ // SHOOT action\n\t\treturn keyCode == this.shoot1 || keyCode == this.shoot2 ||\n\t\t\t keyCode == this.shoot3 || keyCode == this.shoot4;\n\t}\n\tthis.pauseBinding = function(keyCode){ // PAUSE toggle\n\t\treturn keyCode == this.pause1 || keyCode == this.pause2 ||\n\t\t\t keyCode == this.pause3 || keyCode == this.pause4;\n\t}\n\tthis.healthBarToggleBinding = function(keyCode){ // HEALTH BAR toggle\n\t\treturn keyCode == this.healthBars1 || keyCode == this.healthBars2 ||\n\t\t\t keyCode == this.healthBars3 || keyCode == this.healthBars4;\n\t}\n\tthis.timerBarToggleBinding = function(keyCode){ // TIMER BAR toggle\n\t\treturn keyCode == this.timerBars1 || keyCode == this.timerBars2 ||\n\t\t\t keyCode == this.timerBars3 || keyCode == this.timerBars4;\n\t}\n}", "function bindCommand(options)\n{\n KeyMap.clear();\n\n $.each($.extend(true, {}, options.default_key_bind, options.key_bind), function(map, bind) {\n $.each(bind, function(key, command) {\n KeyMap[map](key, command);\n });\n });\n}", "function KeyBindings(character) {\n\tthis.character = character;\n\n\tthis.bind_defaults = function(){\n\t\tvar character = this.character;\n\n\t\t// Bind keys for moving left\n\t Mousetrap.bind([\"a\", \"left\"], function(){ \n\t\t\tcharacter.isPlanningMovement = true;\n\t \tcharacter.isFacingLeft = true;\n\t\t\tcharacter.isWalking = true;\n\t character.start_walking();\n\t //console.log(\"left\");\n\t });\n\t Mousetrap.bind([\"a\", \"left\"], function(){\n\t\t\tif (character.isFacingLeft) {\n\t\t\t\tcharacter.begin_movement_stop();\n\t\t\t}\n\t //console.log(\"left_up\");\n\t }, \"keyup\");\n\n\t // Bind keys for moving right\n\t Mousetrap.bind([\"d\", \"right\"], function(){\n\t\t\tcharacter.isPlanningMovement = true;\n\t \tcharacter.isFacingLeft = false;\n\t\t\tcharacter.isWalking = true;\n\t character.start_walking();\n\t //console.log(\"right\");\n\t });\n\t Mousetrap.bind([\"d\", \"right\"], function(){\n\t\t\tif (!character.isFacingLeft) {\n\t\t\t\tcharacter.begin_movement_stop();\n\t\t\t}\n\t //console.log(\"right_up\");\n\t }, \"keyup\");\n\n\t // Bind keys for jumping\n\t Mousetrap.bind([\"w\", \"up\", \"space\"], function (e) {\n\t \t// Remove default behavior of buttons (page scrolling)\n\t \tif (e.preventDefault()) {\n\t \t\te.preventDefault();\n\t \t} else {\n\t \t\te.returnValue = false; //IE\n\t \t}\n\t character.attempt_jump();\n\t });\n\n\t // Bind keys for crouching\n\t Mousetrap.bind([\"s\", \"down\"], function (e) {\n\t \t// Remove default behavior of buttons (page scrolling)\n\t \tif (e.preventDefault()) {\n\t \t\te.preventDefault();\n\t \t} else {\n\t \t\te.returnValue = false; //IE\n\t \t}\n\t //character.start_crouching();\n\t character.stop_moving();\n\t });\n\n\t // Bind key for running\n\t Mousetrap.bind([\"q\", \"capslock\"], function(){ \n\t character.start_running();\n\t });\n\n\t // Bind key for respawning\n\t Mousetrap.bind(\"c\", function(){ \n\t character.respawn ();\n\t });\n\n\t // Bind key for pausing\n\t Mousetrap.bind(\"z\", function(){\n\t \tvar canvas = character.gameCanvas;\n\t \tif (canvas.isPaused) {\n\t \t\tcanvas.unpause();\n\t \t} else {\n\t \t\tcanvas.pause();\n\t \t}\n\t });\n\n\t // Bind key for restarting the game\n\t Mousetrap.bind(\"x\", function(){ \n\t character.gameCanvas.reset_game();\n\t });\n\t}\n\n\tthis.unbind_all = function(){\n\t\tMousetrap.unbind([\"a\", \"left\", \"d\", \"right\", \"w\", \"up\", \"space\",\n\t\t\t\t\t\t \"s\", \"down\", \"q\", \"c\", \"z\", \"x\", \"capslock\"]);\n\t}\n}", "addKeyboardListeners()\n {\n this.cursorKeys = this.input.keyboard.createCursorKeys();\n this.keyboard = this.input.keyboard.addKeys(\"A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,Backspace\");\n this.input.keyboard.on(\"keydown\", event => this.keyTyped(event));\n }", "static changeKeyBinding(inputName, keys) {\n Input.keyMap.set(inputName, keys);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Override widget's default show() to refresh content every time Git widget is shown.
show() { super.show(); this.component.refresh(); }
[ "function updateWidget()\n {\n //todo\n }", "function displayWidget () \n{\n\tif(!window.TGS || !TGS.IsReady())\n\t{\n\t\treturn;\n\t}\n\n\tinitWidget();\n}", "_onCurrentChanged(sender, args) {\n const oldWidget = args.previousTitle\n ? this._findWidgetByTitle(args.previousTitle)\n : null;\n const newWidget = args.currentTitle\n ? this._findWidgetByTitle(args.currentTitle)\n : null;\n if (oldWidget) {\n oldWidget.hide();\n }\n if (newWidget) {\n newWidget.show();\n }\n this._lastCurrent = newWidget || oldWidget;\n this._refreshVisibility();\n }", "refresh() {\n const current = this._tracker.currentWidget;\n if (!current) {\n this.setContent(null);\n return;\n }\n const inspector = this._inspectors.get(current);\n if (inspector) {\n this.setContent(inspector.content);\n }\n }", "_onCurrentChanged(sender, args) {\n const oldWidget = args.previousTitle\n ? this._findWidgetByTitle(args.previousTitle)\n : null;\n const newWidget = args.currentTitle\n ? this._findWidgetByTitle(args.currentTitle)\n : null;\n if (oldWidget) {\n oldWidget.hide();\n }\n if (newWidget) {\n newWidget.show();\n }\n this._lastCurrent = newWidget || oldWidget;\n if (newWidget) {\n const id = newWidget.id;\n document.body.setAttribute(`data-${this._side}-sidebar-widget`, id);\n }\n else {\n document.body.removeAttribute(`data-${this._side}-sidebar-widget`);\n }\n this._refreshVisibility();\n }", "function refresh(widget) {\n widget.setVisible(hasVisibleChild(widget));\n }", "function update_Widget(){\n build_url();\n\tget_widget();\n}", "function showIt() {\n\t\t\t\tshowBlogEntry();\n\t\t\t}", "show() {\n if ( updateCheck.areUpdatesChecked && !this.isShowingProperty.value ) {\n updateCheck.resetTimeout();\n\n // Fire off a new update check if we were marked as offline or unchecked before, and we handle updates.\n if ( updateCheck.stateProperty.value === UpdateState.OFFLINE || updateCheck.stateProperty.value === UpdateState.UNCHECKED ) {\n updateCheck.check();\n }\n\n // Hook up our spinner listener when we're shown\n stepTimer.addListener( this.updateStepListener );\n\n // Hook up our visibility listener\n updateCheck.stateProperty.link( this.updateVisibilityListener );\n }\n\n super.show();\n }", "function handleShow() {\n\t view._isShown = true;\n\t triggerDOMRefresh();\n\t }", "renderWidgetState() {\n if (this.developerMode) {\n this.ui.setContent(\n 'dev.widget-state',\n JSON.stringify(\n {\n fsm: this.fsm.getCurrentState().state,\n state: this.state,\n },\n null,\n 1\n )\n );\n }\n }", "updateDisplay() {\n \n }", "function showUpdate(){\n\t\tvm.showUpdates = true;\n\t}", "_renderLastContentsWidget() {\n let lastContentsWidget = new ContentsWidget();\n let lastContentsWidgetView = new LastContentsWidgetView({collection : lastContentsWidget});\n this.$el.append(lastContentsWidgetView.$el);\n\n lastContentsWidget.fetch({\n parameter: {published: true},\n success: () => {\n lastContentsWidgetView.render()\n }\n });\n }", "function showWidget(widgetName) {\r\n if (dojo.byId(widgetName)) {\r\n dojo.style(dijit.byId(widgetName).domNode, {\r\n display : 'inline-block'\r\n });\r\n }\r\n}", "function showSelectedWidget() {\n $('#widgetSlideshow').hide();\n $('#widgetNewsFeed').hide();\n $('#widgetPhotoGallery').hide();\n \n $('#alternativeBackgroundSelectorBox').hide();\n \n var widgetType = $('#widget_type').val();\n switch(widgetType) {\n case 'slide':\n $('#widgetSlideshow').fadeIn();\n break;\n case 'feed':\n $('#widgetNewsFeed').fadeIn();\n $('#alternativeBackgroundSelectorBox').show();\n break;\n case 'gallery':\n $('#widgetPhotoGallery').fadeIn();\n break;\n }\n }", "function getPreview(widget)\n{\n\trender_template();\n}", "function show() {\n window.extensions.KJSLINT.KomodoAdaptor.showCommandPanel();\n }", "notifyAndShowContent() {\n if (this.dispatchEvent(new Event('show', { bubbles: true, cancelable: true }))) {\n return this.showContent(), true;\n }\n return false;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Piracy obeys a similar approximation of the inverse square law, just as patrols do, but piracy rates peak at the limit of patrol ranges, where pirates are close enough to remain within operating range of their home base, but far enough away that patrols are not too problematic.
piracyRate(distance = 0) { const radius = this.piracyRadius(); distance = FastMath.abs(distance - radius); let rate = this.scale(this.faction.piracy); const intvl = radius / 10; for (let i = 0; i < distance; i += intvl) { rate *= 0.85; } return Math.max(0, rate); }
[ "calculatePi() {\n let result = 0.0;\n let divisor = 1.0;\n for (let i = 0; i < 2000000000; i++) {\n if (i % 2) {\n result -= 4 / divisor;\n } else {\n result += 4 / divisor;\n }\n divisor += 2;\n }\n return result;\n }", "function calculatePi(precision) {\n\n var Pi = 0, n = 1;\n\n for(var i = 0; i <= precision; i++) {\n Pi = Pi + (4 / n) - (4 / (n + 2));\n n = n + 4;\n }\n\n return Pi;\n}", "function estimatePi() {\n // area of circle should be pi * r^2. r=1, so area = pi\n // area of box should be 4 (2*2)\n // circle/box = pi/4\n // pi = (4*circle)/box\n var fractionIn = inCircle / total,\n pi = 4 * fractionIn;\n\n return pi;\n }", "function calculatePI(n = 50) {\n return numberOfSidesOfThePolygon(n) * widthOfThePolygonSide(n);\n}", "function calculatePi(num) {\n var pi = 4\n var multiplier = 1\n var denom = 1\n if (num <= 1) {\n return pi\n }\n else {\n for (var i = 2; i <= num; i++) {\n denom +=2\n if (i % 2 === 0) {\n multiplier -= 1 / denom\n }\n else {\n multiplier += 1 / denom\n }\n }\n return pi * multiplier\n }\n}", "function doPi(n) {\n if (isNaN(n) || n < 1 || n > maxSeqLen) { n = 160; }\n Big.DP = n;\n seqLen = n;\n\n x1 = arctan(Big(1).div(5));\n x2 = arctan(Big(1).div(239));\n pi = x1.times(4).minus(x2).times(4).toString();\n\n seq[0] = Big(3);\n for (var i=1; i < seqLen; i++) {\n seq[i] = Big(pi[i+1]);\n }\n document.getElementById(\"modulus\").value = 10;\n displaySequence();\n algorithm = \"Pi\";\n parameters = [];\n}", "function myPi(n) {\n\treturn Number(Math.PI.toFixed(n));\n}", "function pi_value() {\n\treturn (Math.PI);\n}", "static ProbabilityUsingSystem(p,n){\r\n return multiplication(pow(p,n),(1-p)*100).toFixed(2)\r\n }", "function myPi(n) {\n return parseFloat((Math.PI).toFixed(n))\n}", "function calculatePI(number) {\n var pi = 1;\n for (i = 0; i < number; i++) {\n var denominator = i * 2 + 3;\n if (i % 2 == 0) {\n pi -= (1 / denominator);\n } else {\n pi += (1 / denominator);\n }\n }\n pi *= 4;\n return pi;\n}", "function myPi(n) {\n return Number(Math.PI.toFixed(n));\n}", "function amIWilson(p) {\n let fact = x => x <= 1 ? 1 : x * fact(x-1);\n return (fact(p-1) + 1) / (p*p) % 1 === 0;\n}", "pressureSensitivity(p){\n\t\treturn Math.pow(p,this._sPower);\n\t}", "function calculatedPi(num) {\n var count =1;\n var pi=0;\n \n for(let i=1; i<=num;i++) {\n if(i%2!=0) {\n pi = pi + (1/count)\n count = count +2;\n } else {\n pi = pi - (1/count)\n count = count +2\n }\n\n } return num*pi\n}", "function pi() {\n this.currentInput = Math.PI;\n this.displayCurrentInput();\n}", "pressureSensitivity(p) {\n\t\treturn Math.pow(p,this._sPower);\n\t}", "function interest(P,r,n) {\n let simple = P+(P*r*n);\n let compound = P;\n while (n > 0) {\n compound+=compound*r;\n n--;\n }\n return [Math.round(simple), Math.round(compound)];\n}", "function boundRadian(a)\r\n{\r\n\t// return a -= TWO_PI * Math.round(a / TWO_PI);\r\n\ta %= TWO_PI;\r\n\tif (a > Math.PI)\r\n\t\ta -= TWO_PI;\r\n\telse if (a < -Math.PI)\r\n\t\ta += TWO_PI;\r\n\treturn a;\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
disable close button and send sms to friends button is poll is closed
function checkIfPollClosed() { if (!result.is_open) { // $('.list-group').remove(); $('.close-poll').remove(); $('.friends-button').remove(); $('#is-poll-closed-text').text('Poll is closed'); } }
[ "function chatBoxClose(){\n\tnanuTalk.style.display='none';\n\tchatAreaShow.style.display='none';\n\tsendBtn.disabled=false;\n}", "bindMsgBoard() {\n this.$app.find('.fb-close').off('click').on('click', ()=>{\n this.hideMsgBoard();\n });\n }", "function reject_answer() {\r\n\r\n send({\r\n type: \"busy\"\r\n });\r\n\r\n clear_incoming_modal_popup();\r\n chat_window_flag = false;\r\n incoming_popup_set = false;\r\n}", "function cancelMessage() {\n toggleAskBox();\n }", "sendFeedbackToggleOff(siteId) {\n // this.sendMqtt(\"hermod/feedback/sound/toggleOff\",{siteId:siteId});\n }", "function checkActivityClosed() {\n if (streamwork.isActivityReadOnly()) {\n hideActionButtons();\n hideRegistrationButtons();\n disableInputFields();\n }\n}", "function clickToDialPanelMessages() {\n chrome.runtime.onMessage.addListener(\n function(request, sender, sendResponse) {\n if(request.hasOwnProperty('clicktodialpanel.onhide')) {\n console.info('clicktodialpanel.onhide');\n\n // we no longer need this call's status\n var timerSuffix = '-' + request['clicktodialpanel.onhide'].callid;\n timer.stopTimer('clicktodial.status' + timerSuffix);\n timer.unregisterTimer('clicktodial.status' + timerSuffix);\n } else if(request.hasOwnProperty('clicktodialpanel.onshow')) {\n console.info('clicktodialpanel.onshow');\n\n // start updating the call status\n var timerSuffix = '-' + request['clicktodialpanel.onshow'].callid;\n timer.startTimer('clicktodial.status' + timerSuffix);\n }\n });\n }", "closeReasonModal() {\n this.askReason = false;\n }", "closeAll() {\n const msgs = this.$element.find('ri-feedback-message');\n for (let m in msgs) {\n if(typeof msgs[m] === 'object') {\n msgs[m].api.close();\n }\n }\n }", "function facebookDisconnectAlertCancel(){\n\tfbDisconnectPlayerAlert.hide();\n\tbackHomeSettingsButton.touchEnabled = true;\n\tswitchSounds.touchEnabled = true;\n\tswitchMusic.touchEnabled = true;\n}", "handleClose() {\n this.showConfirm = false;\n }", "function closeSaraPhoneCall() {\n saraAccountPhoneCall.style.display = 'none';\n }", "function handlerButClose(){\n setPrintMess(false)\n }", "function disableCloseAlerts()\r\n{\r\n\t$('.alert-black-back,.alert-x').unbind('click.default');\r\n\t\r\n}", "function closeUserPhoneCall() {\n userPhoneCallModal.style.display = 'none';\n }", "function clickOnNotifs()\n{\n setShowChatBox(!showChatBox);\n}", "close() {\n\n\t\t\tthis.displayConfirm = false;\n\t\t}", "function hideSendMessage () {\n \tdocument.getElementById('doNotTouchMessage').style.display=\"none\";\n \tdocument.getElementById('doNotTouchMessage').removeAttribute(\"onclick\");\n \tdocument.getElementById('messages').style.display=\"none\";\n \tdocument.getElementById('messageUserMail').value=\"\";\n \tdocument.getElementById('messageBody').value=\"\";\n }", "function StopPoll()\n{\n var form = FormApp.openById(formID);\n //var ss = SpreadsheetApp.getActiveSpreadsheet();\n // form.removeDestination();\n //clearForm(form);\n if (form.getResponses().length >0 )\n {\n readSpeakerSheet();\n collectAndSendFeedbackForSpeakers();\n }\n clearForm(form);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads in all the CSV files of companies that are checked
function initCSV() { var all = $('#chkAllCompanies').is(':checked'); var caltex = $('#chkCaltex').is(':checked'); var shell = $('#chkShell').is(':checked'); var BP = $('#chkBP').is(':checked'); var mobil = $('#chkMobil').is(':checked'); var filter = {}; if (!$('#chkAllFuel').is(':checked')) { $('.fuel').each(function() { console.log($(this).prop('name')); if ($(this).is(':checked')) { filter[$(this).prop('name').toLowerCase()] = true; } }); } if (!$('#chkService').is(':checked')) { $('.service').each(function() { console.log($(this).prop('name')); if ($(this).is(':checked')) { filter[$(this).prop('name').toLowerCase()] = true; } }); } if (all || caltex) parse.csv('csv/caltex.csv', function(data) {initialize(data, 'images/marker_caltex.png')}, filter); if (all || shell) parse.csv('csv/shell.csv', function(data) {initialize(data, 'images/marker_shell.png')}, filter); if (all || BP) parse.csv('csv/BP.csv', function(data) {initialize(data, 'images/marker_bp.png')}, filter); if (all || mobil) parse.csv('csv/mobil.csv', function(data) {initialize(data, 'images/marker_711.png')}, filter); }
[ "function getCsvFiles() {\n\tlet path = '../data/';\n\tvar fs = require('fs');\n\tvar files = fs.readdirSync(path);\n\t\n\tfiles.forEach(function(filename) {\n\t\tif (filename.split('.').pop() == \"csv\") {\n\t\t\topenFile(filename.split('.')[0], path+filename);\n\t\t}\n\t});\n}", "function storeCompanies(companies) {\n for (let company of companies) {\n loadedCompanies.push(company);\n addStorage(company);\n }\n document.querySelector(\"#companyLoader\").style.display = \"none\";\n populateList(loadedCompanies);\n }", "function loadCompanyCategory() {\n var list = indexService.getAll($scope.companycategory).$loaded(function (success) {\n vm.companyCategories = success;\n }, function (error) {\n indexService.errorMessage(\"error while getting data\");\n\n });\n\n }", "function loadCompanies() {\n xhr.requestCompanies(function(response) { \n var companyMap = {};\n \n response.forEach(function(item){\n var company = new Company(item.id, item.name, item.earnings, item.parent);\n companyMap[item.id] = company; \n }); \n \n companies = new CompanyContainer();\n \n for(key in companyMap) { \n if (companyMap[key].getParentId()) {\n companyMap[companyMap[key].getParentId()].addChildCompany(companyMap[key]);\n } else {\n companies.addChildCompany(companyMap[key])\n }\n }\n \n var $companyList = $(\"#company-list\");\n $companyList.html(\"\");\n var ul = companies.render();\n if (ul) $companyList.append(ul);\n \n });\n }", "ScanCompanies(refresh = false, filterCompanies = null) {\n console.debug(`ContaplusModel::ScanCompanies(${refresh})`)\n let config = this.config\n let self = this\n return new Promise((resolve, reject) => {\n let folder = self.GetSelectedFolder()\n if (!folder) {\n console.log(`ContaplusModel::ScanCompanies: no folder set`)\n reject(\"Contaplus Folder not set!\")\n return\n }\n if (refresh) {\n // If we want a refresh, remove companies cache\n config.delete(\"companies\")\n } else if (config.has('companies')) {\n resolve(self.unpackCompanies(config.get(\"companies\")))\n return\n }\n try {\n // Need to use domain to catch unhandled exceptions in node-dbf\n // This is an ugly hack because parse-dbf fails with an uncaught\n // exception if the fie does not exist. Talk about ugly...\n // see https://nodejs.org/api/domain.html\n // Besides, this is deprecated in node v7.x\n let errDomain = domain.create()\n errDomain.on('error', function(err) {\n reject(err)\n })\n errDomain.run(function() {\n let companyPath = path.join(folder, \"ContaBLD\", \"EMP\", \"Empresa.dbf\")\n let parser = new Parser(companyPath)\n let companies = new Map()\n parser.on('header', (header) => { /* catch errors */ })\n parser.on('record', (record) => {\n let name = record['NOMBRE']\n let year = record['EJERCICIO']\n let cod = record['COD']\n if (name && year && cod) {\n let currentCompany = companies.get(name)\n if (currentCompany === undefined) {\n currentCompany = new ContaplusCompany({\n name: name\n })\n companies.set(name, currentCompany)\n }\n year = parseInt(year)\n currentCompany.Push(year, cod)\n }\n })\n parser.on('end', (p) => {\n resolve(companies)\n })\n parser.parse()\n })\n } catch (err) {\n reject(err)\n }\n })\n .then((companies) => {\n // Filter the companies, if they are not cached yet\n if (config.get(\"companies\") === undefined) {\n if (filterCompanies) {\n return filterCompanies(companies)\n }\n }\n return companies\n })\n .then((companies) => {\n // Pack the companies\n if (config.get(\"companies\") === undefined) {\n config.set(\"companies\", self.packCompanies(companies))\n }\n return companies\n })\n }", "static fetchAll(cb) {\n getProductsFromFile(cb);\n }", "static loadExternalCsv(json) {\n if (novelData.csvEnabled) {\n console.log(\"Loading external CSV files...\");\n if (json.externalText === undefined) {\n NovelManager.prepareLoadedJson(json);\n return;\n }\n if (json.externalText.length === 0) {\n NovelManager.prepareLoadedJson(json);\n return;\n }\n let ready = 0;\n for (let i = 0; i < json.externalCsv.length; i++) {\n let s = json.externalCsv[i];\n Papa.parse(novelPath + '/csv/' + s.file, {\n download: true,\n header: true,\n comments: '#',\n complete(results) {\n if (novelData.csvData === undefined) {\n novelData.csvData = results.data;\n } else {\n novelData.csvData = Util.mergeObjArrays(novelData.csvData,results.data);\n }\n ready++;\n if (ready === json.externalCsv.length) {\n return NovelManager.prepareLoadedJson(json);\n }\n }\n });\n }\n } else {\n return NovelManager.prepareLoadedJson(json);\n }\n }", "function loadCSV1(){\n\n\tdataManager = dataManagerConstructor();\n\n\tdataManager.read1(\"resources/REF2014_Results.csv\",\n\t\tfunction(error){ // to call in case of error\n\t\t\tconsole.log(\"Error\");\n\t\t\tconsole.log(error);\n\t\t},\n\t\tfunction(){ // to call if everything ok\n\t\t\tloadCSV2();\n\t\t});\n}", "getallcompanylist(ctx) {\n\n return this.adapter.find({});\n }", "function loadAcsFiles(cF) {\n var cFiles = cF.split('\\n');\n console.info(cFiles);\n for (var i = 0; i < cFiles.length; i++) {\n let s = cFiles[i].split('.');\n let suffix=s[s.length-1];\n if (suffix == \"csv\") {\n addAcsTableEntry(cFiles[i]);\n } else if ((suffix == \"json\") || (suffix == \"geojson\")) {\n addGeoJsonEntry(cFiles[i]);\n } else if (suffix.trim() == \"\") {\n console.info(\"Empty Line\");\n } else {\n console.info(\"UNRECOGNIZED FILE TYPE: \" + suffix);\n }\n }\n\n // For each ACS table for which a geography is available,\n // add it to the HTML table\n console.info(\"INITIALIZING TABLE\");\n// console.info(availableAcsTables.toString());\n availableAcsTables.forEach(addToTable);\n\n // Add values to the filter dropdowns\n populateAcsFilters();\n}", "FilesToUpload() {\n console.debug(`ContaplusModel::FilesToUpload`)\n let folder = this.GetSelectedFolder()\n let years = this.GetSelectedYears()\n const files = [ \"Diario.dbf\", \"Subcta.dbf\" ]\n let stats = new Array()\n for (let item of years) {\n let company = item[0]\n let checked = item[1]\n if (checked) {\n console.debug(`ContaplusModel::FilesToUpload:added ${company}`)\n let emp = \"EMP\" + company.codes[0].toString()\n for (let fileName of files) {\n let localFile = path.join(folder, \"CONTABLD\", emp, fileName)\n stats.push((new FileStats(\n company.name, company.years[0].toString(),\n localFile, emp, fileName)).Stats())\n }\n }\n }\n if (stats.length > 0) {\n // Add the directory book\n let localFile = path.join(folder, \"CONTABLD\", \"EMP\", \"Empresa.dbf\")\n stats.push((new FileStats(\"-\", \"-\", localFile, \"EMP\", \"Empresa.dbf\")).Stats())\n }\n return Promise.all(stats)\n }", "function fetchItemListsFromCSV() {\n let allItems = [], availableItems = [];\n fs.readFile(path.join(__dirname,'./testdata.csv'), 'utf8', function (err,data) {\n if (err) {\n return console.log(err);\n }\n var table = data.split(\"\\n\");\n for (var i = 0; i < table.length; i++) {\n table[i] = table[i].split(\",\");\n let item = new Item(table[i]);\n allItems.push(item);\n availableItems.push(item);\n }\n let allItemsJSON = JSON.stringify({'allItems': allItems}, null, 2);\n let availableItemsJSON = JSON.stringify({'availableItems': availableItems}, null, 2);\n fs.writeFileSync(path.join(__dirname,'all-items.json'), allItemsJSON);\n fs.writeFileSync(path.join(__dirname,'available-items.json'), availableItemsJSON);\n });\n}", "async fetchAllCompany(){\n await this.checkLogin();\n\n var response = await Axios.get(Config.companyApiUrl,\n {headers:{Authorization: \"Bearer \"+ AuthHandler.getLoginToken()}});\n\n return response; \n }", "function saveWorkers(companies){\n\tconsole.log(\"saveWorkers method reached\");\n\tvar companyArray = [];\n\tfor(var x = 0; x<companies.length; x++){\n\t\tvar company = {\n\t\t\tname: companies[x].name,\n\t\t\twebsite: companies[x].website\n\t\t}\n\t\tvar workers = [];\n\t\tif(companies[x].workers.length>0){\n\t\t\tfor(var y =0; y< companies[x].workers.length; y++){\n\t\t\t\tvar worker = {\n\t\t\t\t\tfirstName: companies[x].workers[y]._source.name.replace(/ /g,''),\n\t\t\t\t\tsurname: companies[x].workers[y]._source.surname.replace(/ /g,''),\n\t\t\t\t\tposition: companies[x].workers[y]._source.position\n\t\t\t\t};\n\t\t\t\tfs.appendFile('hostDetails.csv', '\\n' + company.name + ';' + company.website + ';' + worker.firstName\n\t\t\t\t\t+ ';' + worker.surname + ';' + worker.position);\n\t\t\t}\n\t\t} \n\t}\n}", "fetchAllFiles() {\n for (let distro of this.distros) {\n this.fetchAllFilesHelper(distro);\n }\n }", "function importCSVFromFolder() {\n\n\tvar folder = DriveApp.getFoldersByName('CSV datasets').next();\n\tvar csvFiles = folder.getFilesByType(MimeType.CSV);\n\n\twhile (csvFiles.hasNext()) {\n\t\tvar file = csvFiles.next();\n\t\tvar fileName = file.getName();\n\n\t\timportCSVFromFile(fileName);\n\n\t}\n\n}", "function fetchCompanies() {\n fetch(companiesAPI)\n .then(response => response.json())\n .then(data => {\n storeDataIntoList(data);\n outputCompanyList(data);\n })\n .catch((error) => {\n console.log(error);\n });\n }", "async fetchScrapedData() {\n let i = 0;\n let j = 0;\n let csvData = \"\";\n Meteor.call('listPortCsv');\n Meteor.call('listAirfieldCsv');\n while(i < PortFiles.PortFiles.length) {\n //fetch csv data from each countrys file\n csvData = await this.fetchCsv(\"port\", PortFiles.PortFiles[i].name);\n //parse csv data w/ headers attached\n let cleanArray = deleteEmptys(Papa.parse(csvData, { header: true }).data);\n //add a port object from each csv to state\n cleanArray.forEach(element => {\n this.setState({\n portData: this.state.portData.concat(element)\n })});\n i++;\n }\n while(j < AirfieldFiles.AirfieldFiles.length) {\n csvData = await this.fetchCsv(\"airfield\", AirfieldFiles.AirfieldFiles[j].name);\n //parse csv data w/ headers attached\n let cleanArray = deleteEmptys(Papa.parse(csvData, { header: true }).data);\n //add an object from each csv to state\n cleanArray.forEach(element => {\n this.setState({\n airfieldData: this.state.airfieldData.concat(element)\n })});\n j++;\n }\n }", "function runCompanyUpdate(file) {\r\n var reader = new FileReader();\r\n reader.readAsText(file);\r\n reader.onload = function(event){\r\n var csv = event.target.result;\r\n\tvar lookupSelect = document.getElementById(\"csvType\");\r\n\tvar lookupType = lookupSelect.options[lookupSelect.selectedIndex].value;\r\n var companyLookups = $.csv.toArrays(csv);\r\n\tvar urlStart = \"/companies\"\r\n\tvar urlMiddle = \"\"\r\n\tvar urlEnd = \":(id,name,industry,website-url,employee-count-range,founded-year,status,end-year,company-type,email-domains)\"\r\n\t \r\n\tif (lookupType==\"linkedinID\"){\r\n\t\tvar urlMiddle = \"/\"\r\n\t}\r\n\t\r\n\telse if (lookupType==\"uniName\"){\r\n\t\tvar urlMiddle = \"/universal-name=\"\r\n\t}\r\n\t\r\n\telse {\r\n\t\tvar urlMiddle = \"?email-domain=\"\r\n\t\tvar urlEnd = \"\"\r\n\t}\t \r\n\t\t\r\n for (var i=0;i<companyLookups.length;i++)\r\n\t\t\t{ \r\n\t\t\t\tvar currentLookup = companyLookups[[i],[i]];\r\n\t\t\t\tvar url = urlStart + urlMiddle + currentLookup + urlEnd\r\n\r\n\t\t\t\tIN.API.Raw()\r\n\t\t\t\t.url(url)\r\n\t\t\t\t.result(function (result) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (lookupType == \"emailDomain\"){\r\n\t\t\t\t\t\tdisplayCompanies(result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdisplayCompany(result);\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t\r\n\t\t\t\t.error(function (error) {\r\n\t\t\t\t\tdisplayError(error);\r\n\t\t\t\t});\r\n\t\t\t}\r\n };\r\n reader.onerror = function(){ alert('Unable to read ' + file.fileName); };\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
function to give animation while implementing dijkstra with slow speed
animateDijkstraSlow(visitedNodesInOrder, nodesInShortestPathOrder) { for (let i = 1; i <= visitedNodesInOrder.length-1; i++) { if (i === visitedNodesInOrder.length-1) { setTimeout(() => { this.animateShortestPath(nodesInShortestPathOrder); }, 500 * i); return; } else{ setTimeout(() => { const node = visitedNodesInOrder[i]; document.getElementById(`node-${node.row}-${node.col}`).className = 'node node-visited'; }, 500* i); } } }
[ "function animateDijs() {\n const visitedNodes = dijkstra(nodes, startingPoins, endPoint);\n //dijsktra returna vse visited nodese\n //loopamo skozi vsakega in mu dodamo class listo visited z delajom\n for (let i = 0; i < visitedNodes.length; i++) {\n setTimeout(() => {\n const element = visitedNodes[i];\n element.name.classList.add('visited');\n }, 10 * i);\n }\n\n const shortestPath = getNodesInShortestPath(endPoint);\n setTimeout(() => {\n for (let i = shortestPath.length - 1; i >= 0; i--) {\n setTimeout(() => {\n const element = shortestPath[i];\n element.name.classList.add('shoretstPath');\n }, 50 * i);\n }\n }, 10 * visitedNodes.length);\n}", "visualizeDijkstra() {\n const { grid } = this.state;\n const startNode = grid[START_NODE_ROW][START_NODE_COL];\n const finishNode = grid[FINISH_NODE_ROW][FINISH_NODE_COL];\n const visitedNodesInOrder = dijkstra(grid, startNode, finishNode);\n const nodesInShortestPathOrder = getNodesInShortestPathOrder(finishNode);\n this.animateDijkstra(visitedNodesInOrder, nodesInShortestPathOrder);\n console.log(visitedNodesInOrder);\n }", "function Dijkstra() {\n }", "animateDijkstraMedium(visitedNodesInOrder, nodesInShortestPathOrder) {\n for (let i = 1; i <= visitedNodesInOrder.length-1; i++) {\n if (i === visitedNodesInOrder.length-1) {\n setTimeout(() => {\n this.animateShortestPath(nodesInShortestPathOrder);\n }, 75 * i);\n return;\n }\n else{\n setTimeout(() => {\n const node = visitedNodesInOrder[i];\n document.getElementById(`node-${node.row}-${node.col}`).className =\n 'node node-visited';\n }, 75* i);\n }\n }\n }", "function dijkstra(s, d){\n console.log(s, d);\n console.log(graph);\n graph.vertices.forEach((vertex) => {\n vertex.color = 'w';\n vertex.distance = Number.MAX_SAFE_INTEGER;\n vertex.parent = null;\n });\n\n graph.vertices[s].color = 'g';\n setCellClass(s+1, \"grid-cell-wall\");\n graph.vertices[s].distance = 0;\n graph.vertices[s].parent = null;\n let q = [];\n q.push(graph.vertices[s]);\n\n let destinationFound = false;\n\n while(q.length != 0){\n let currVertex = q.shift();\n let vertexNum = currVertex.num;\n\n for(let i = 0 ; i < graph.adjacencyList[vertexNum].adj.length ; i++){\n let vertex = graph.adjacencyList[vertexNum].adj[i];\n if(vertex.color == 'w' && !vertex.isWall){\n vertex.color = 'g';\n\n setTimeout(function(){\n setCellClass(vertex.num+1, \"grid-cell-discovered\") \n }, 3000);\n \n vertex.distance = currVertex.distance + 1;\n vertex.parent = currVertex;\n\n if(vertex.num === d){\n destinationFound = true;\n break;\n }\n\n q.push(vertex);\n }\n }\n\n currVertex.color = 'b';\n setTimeout(function(){\n setCellClass(currVertex.num+1, \"grid-cell-visited\") \n }, 3000);\n\n if(destinationFound){\n break;\n }\n }\n\n // We found the destination. Now follow parent pointers back to root to get path\n let v = graph.vertices[d];\n let path = [];\n\n while(v != null){\n path.unshift(v);\n v = v.parent;\n }\n\n path.forEach(vertex => {\n setTimeout(function(){\n console.log(\"path \", vertex.num);\n setCellClass(vertex.num+1, \"grid-cell-path\") \n }, 3000);\n });\n\n\n setCellClass(s+1, \"grid-cell-start\");\n setCellClass(d+1, \"grid-cell-end\");\n return path;\n}", "Dijkstra(\n parentNode,\n goalRow,\n goalCol,\n astar,\n greedy,\n random,\n ID,\n animation = false,\n nodeQueue = [],\n iteration = 0\n ) {\n //here are the vectors for looking at the neighbours\n const vectors = [\n { row: 1, col: 0 },\n { row: -1, col: 0 },\n { row: 0, col: 1 },\n { row: 0, col: -1 },\n ];\n // NOT IMPLEMENTED YET\n if (this.diagonal) {\n vectors.push(\n { row: 1, col: 1 },\n { row: -1, col: 1 },\n { row: -1, col: -1 },\n { row: 1, col: -1 }\n );\n }\n //the function to call to sort the queue\n const sortQueue = () =>\n nodeQueue.sort((a, b) => {\n if (astar) {\n //if we use A* we sort by the distance to the origins + the heurisric distance\n const comparaison =\n a.distance + a.heuristic - (b.distance + b.heuristic);\n //if the comparaison decide which of the 2 elements is the better we return it\n if (comparaison !== 0) {\n return comparaison;\n }\n //otherwise compare the heuristic value of the 2 elements\n return a.heuristic - b.heuristic;\n } else if (random) {\n if (a.isEnd) {\n return -1;\n }\n if (b.isEnd) {\n return 1;\n }\n //with random we random sort the list\n return Math.random() - 0.5;\n } else if (greedy) {\n //with greedy algorithm we sort by the distance to the end\n return a.heuristic - b.heuristic;\n } else {\n // with vanilla Dijkstra we sort by the distance to the origin\n return a.distance - b.distance;\n }\n });\n //the function that check the neigbours of the active nodes\n const testNeighbour = (row, col) => {\n //if its off limit we dont try it\n if (row < ROW_NUMBER && row >= 0 && col < COL_NUMBER && col >= 0) {\n //we retrieve the node\n const neighbourNode = this.grid[row][col];\n //if its a wall,the origin or the node checked, we dont need to try so we end the function\n if (\n neighbourNode.isWall ||\n neighbourNode.isChecked ||\n neighbourNode.isStart\n ) {\n return false; // the return is just to end the function, we dont need to return false\n }\n //to simplify the algorithms I consider undefined as infinity\n //so if its the first time we visit the node we add it to the queue\n if (neighbourNode.distance === undefined) {\n nodeQueue.push(neighbourNode);\n }\n //if it has an infinite distance or if the weight + the 'parent' node distance is less than its actual distance\n //we update its distance and its parent\n // (HERE ==> *)\n if (\n neighbourNode.weight + parentNode.distance < neighbourNode.distance ||\n neighbourNode.distance === undefined\n ) {\n neighbourNode.distance = neighbourNode.weight + parentNode.distance;\n neighbourNode.parentNode = parentNode;\n }\n //if we use A* we assign a heuristic value to the node\n if ((astar || greedy) && neighbourNode.heuristic === undefined) {\n //I propose 2 ways to compute this heuristic value,\n //I didnt made any research on wich one is the best for this case (a grid)\n // but i found the first one to look better with the animations turned on\n //the fisrt on is the min amount of node you ould have to cross if there is no wall or weighted nodes\n //the second one is pure euclidian distance\n //feel free to uncomment/comment those line and try by yourself\n // 1\n neighbourNode.heuristic =\n Math.abs(col - goalCol) + Math.abs(row - goalRow);\n // 2\n // neighbourNode.heuristic = Math.sqrt(\n // (row - goalRow) ** 2 + (col - goalCol) ** 2\n // );\n }\n // if we are doing some time comparaison we can desactivate the visual update,\n // who will just prevent nodes to refresh their class attributes\n //this if statement is purely visual, so we can skip it\n\n if (!neighbourNode.isVisited) {\n //if it was never visited before we set it to true\n neighbourNode.isVisited = true;\n //if we have animation on, we set a timeout to update the node\n if (animation) {\n setTimeout(() => {\n if (this.launchID === ID) {\n neighbourNode.updateVisited();\n }\n //this commented line is because I used to set the timeout based on the distance to the origin\n //but to really show how the algorithm work i based it on when she has been visited\n // }, neighbourNode.distance * this.speed);\n }, iteration * this.speed);\n }\n }\n }\n };\n //here is the function to call to update visually the path\n //the offset is the amount of time the visited animation take\n //beause we want to update the path after\n const pathFounded = (parent, offset) => {\n //we skip the start node\n if (!parent.isStart) {\n if (animation) {\n setTimeout(() => {\n if (this.launchID === ID) {\n parent.updatePath();\n }\n }, (offset + parent.distance) * this.speed);\n } else {\n parent.isPath = true;\n }\n pathFounded(parent.parentNode, offset);\n }\n };\n //here we just cycle through each vector to check the neighbours of the current active node\n vectors.forEach((vector) => {\n testNeighbour(parentNode.row + vector.row, parentNode.col + vector.col);\n });\n //then we sort the queue\n sortQueue();\n //and get the next 'parent' node\n const nextNode = nodeQueue[0];\n //if nextNode is undefined, that mean that every possible path as been explore but the end has never been reached, so there is no path to the end node\n if (nextNode === undefined) {\n return false;\n }\n //we remove it from the queue\n nodeQueue.shift();\n //and mark it as checked so we will never look at it again\n nextNode.isChecked = true;\n if (nextNode.isEnd) {\n // pathFounded(nextNode, nextNode.distance);\n pathFounded(nextNode, iteration);\n return true;\n }\n //and we call dijktra again and pass it the new Active Node, the Queue and increment the iteration count\n return this.Dijkstra(\n nextNode,\n goalRow,\n goalCol,\n astar,\n greedy,\n random,\n ID,\n animation,\n nodeQueue,\n iteration + 1\n );\n }", "animateShortestPath({ state }, shortestPath) {\n for (let i = 0; i < shortestPath.length; i++) {\n setTimeout(() => {\n const node = shortestPath[i];\n state.board[node.row][node.col].isPath = true;\n state.board[node.row][node.col].makeVisible = false;\n }, 20 * i);\n }\n }", "animateShortestPath(nodesInShortestPathOrder) {\n for (let i = 0; i < nodesInShortestPathOrder.length; i++) {\n if (nodesInShortestPathOrder[i] === 'finish') {\n setTimeout(() => {this.toggleIsRunning();}, this.state.speed* i*5);\n }\n else {\n setTimeout(() => {const node = nodesInShortestPathOrder[i];\n \n const nodeClassName = document.getElementById(`node-${node.row}-${node.col}`,).className;\n if (nodeClassName !== 'node node-start' && nodeClassName !== 'node node-finish') {\n \n document.getElementById(`node-${node.row}-${node.col}`).className ='node node-shortest-path';\n }\n },this.state.speed* i*4);\n }\n }\n }", "function execDijk(src1, src2, dest1, dest2) {\r\n size = $(\"#currSize\").text();\r\n\r\n context.fillStyle = \"red\";\r\n var tot = matrix.length*matrix[0]*length;\r\n var dist = new Array(matrix.length);\r\n var visited = new Array(matrix.length);\r\n var parent = new Array(matrix.length);\r\n for(var i=0; i<matrix.length; i++){\r\n dist[i] = new Array();\r\n visited[i] = new Array();\r\n parent[i] = new Array();\r\n for(var j=0; j<matrix[0].length; j++){\r\n dist[i][j] = Number.MAX_SAFE_INTEGER;\r\n visited[i][j] = false;\r\n parent[i][j] = new point(0,0,0);\r\n }\r\n } \r\n\r\n var queue = [];\r\n var p = new point(src1, src2, 0);\r\n queue.push(p);\r\n dist[src1][src2] = 0;\r\n visited[src1][src2] = true;\r\n parent[src1][src2] = -1;\r\n const diffX = [-1,0,0,1];\r\n const diffY = [0,-1,1,0];\r\n var queue1 = [];\r\n t = 0;\r\n var x, y;\r\n\r\n while(queue.length > 0){\r\n var u = queue.shift();\r\n x = u.x;\r\n y = u.y;\r\n var d = u.dist;\r\n\r\n for(var i=0; i<4; i++){\r\n var neighRow = x + diffX[i];\r\n var neighCol = y + diffY[i];\r\n //console.log(visited[neighRow][neighCol]);\r\n if(neighCol > 0 && neighRow > 0 && neighCol < matrix.length && neighRow < matrix[0].length && matrix[neighRow][neighCol] == 0 && !visited[neighRow][neighCol]){\r\n //console.log(\"here\");\r\n visited[neighRow][neighCol] = true;\r\n dist[neighRow][neighCol] += 1;\r\n if(dist[parent[neighRow][neighCol].x][parent[neighRow][neighCol]] > dist[neighRow][neighCol]){\r\n parent[neighRow][neighCol] = u;\r\n }\r\n parent[neighRow][neighCol] = u;\r\n var z = new point(neighRow, neighCol, dist[neighRow][neighCol]);\r\n queue.push(z);\r\n }\r\n }\r\n queue1.push(u);\r\n t++;\r\n }\r\n\r\n function exploreLoop() { //draws how dijkstra finds paths\r\n u = queue1.shift();\r\n context.fillRect((u.x)*canvSize/size, (u.y)*canvSize/size, canvSize/size, canvSize/size);\r\n if(queue1.length != 0) explore = setTimeout(exploreLoop, exploreSpeed);\r\n }\r\n exploreLoop();\r\n\r\n function checkExplored() {\r\n if(queue1.length != 0) currTimeout = setTimeout(checkExplored, exploreSpeed);\r\n else{\r\n resetGrid();\r\n printPath(parent, dest1, dest2, src1, src2); //draw optimal path\r\n }\r\n }\r\n checkExplored();\r\n \r\n}", "function animatePath() {\r\n for (let i = 0; i < nodesInShortestPath.length; i++) {\r\n const node = nodesInShortestPath[i];\r\n const cur = document.getElementById(`node-${node.row}-${node.col}`);\r\n if (i === 0) {\r\n cur.className = \"node node-start\";\r\n } else if (i === nodesInShortestPath.length - 1) {\r\n cur.className = \"node node-end\";\r\n } else {\r\n cur.className = \"node node-path\";\r\n setPath(node.row, node.col);\r\n }\r\n }\r\n }", "visualizeFloydWarshall () {\n const src = newGrid[src_row][src_col];\n const dst = newGrid[dst_row][dst_col];\n const result = FloydWarshall(newGrid, src, dst);\n const shortestPathLength = result[0];\n const time = result[1];\n const newclass = \"shortest-path-length path-found\";\n setTimeout(() => {\n document.getElementsByClassName(\"shortest-path-length\")[0].className = newclass;\n document.getElementsByClassName(\"shortest-path-length\")[0].innerHTML = \"Total cost associated with Minimum Cost Path is \" + shortestPathLength;\n document.getElementsByClassName(\"current-algorithm\")[0].innerHTML = 'Select Algorithm to Visualize';\n }, 10*time);\n setPathClear(false);\n console.log(shortestPathLength);\n }", "function animateShortestPath(nodesInShortestPath) {\n for (let i = 1; i < nodesInShortestPath.length-1; i++) {\n setTimeout(() => {\n const node = nodesInShortestPath[i];\n document.getElementById(`node-${node.row}-${node.col}`).className = `node node-shortest-path`;\n }, 50 * i);\n }\n}", "dijkstra(s, d){\n\n this.vertices.forEach((vertex) => {\n vertex.color = 'w';\n vertex.distance = Number.MAX_SAFE_INTEGER;\n vertex.parent = null;\n });\n\n this.vertices[s].color = 'g';\n this.vertices[s].distance = 0;\n this.vertices[s].parent = null;\n let q = [];\n q.push(this.vertices[s]);\n\n let destinationFound = false;\n\n while(q.length !== 0){\n let currVertex = q.shift();\n let vertexNum = currVertex.num;\n\n for(let i = 0 ; i < this.adjacencyList[vertexNum].adj.length ; i++){\n let vertex = this.adjacencyList[vertexNum].adj[i];\n if(vertex.color === 'w' && !vertex.isWall){\n vertex.color = 'g';\n vertex.distance = currVertex.distance + 1;\n vertex.parent = currVertex;\n\n if(vertex.num === d){\n destinationFound = true;\n break;\n }\n\n q.push(vertex);\n }\n }\n\n currVertex.color = 'b';\n\n if(destinationFound){\n break;\n }\n }\n\n // We found the destination. Now follow parent pointers back to root to get path\n let v = this.vertices[d];\n let path = [];\n\n while(v !== null){\n path.unshift(v);\n v = v.parent;\n }\n\n return path;\n }", "function animateGraph() {\n var pathArray = document.querySelectorAll(elem + \" \" + 'svg path')\n for (var i = 0; i < pathArray.length; i++) {\n var path = pathArray[i];\n var length = path.getTotalLength();\n // Clear any previous transition\n path.style.transition = path.style.WebkitTransition =\n 'none';\n // Set up the starting positions\n path.style.strokeDasharray = length + ' ' + length;\n path.style.strokeDashoffset = length;\n // Trigger a layout so styles are calculated & the browser\n // picks up the starting position before animating\n path.getBoundingClientRect();\n // Define our transition\n path.style.transition = path.style.WebkitTransition =\n 'stroke-dashoffset 0.344s cubic-bezier(0.23, 0.6, 0.09, 0.96)';\n // Go!\n path.style.strokeDashoffset = '0';\n }\n\n\n }", "function animateShortestPath(nodesInShortestPathOrder) {\r\n for (let i = 1; i < nodesInShortestPathOrder.length-1; i++) {\r\n setTimeout(() => {\r\n const node = nodesInShortestPathOrder[i];\r\n document.getElementById(`node-${node.row}-${node.col}`).className =\r\n 'Node Node-shortest-path';\r\n }, 50 * i);\r\n }\r\n}", "animateShortestPath(nodesInShortestPathOrder) {\n for (let i = 0; i < nodesInShortestPathOrder.length; i++) {\n setTimeout(() => {\n const node = nodesInShortestPathOrder[i];\n\n if (\n !(\n document.getElementById(`node-${node.row}-${node.col}`)\n .className === \"node node-start\" ||\n document.getElementById(`node-${node.row}-${node.col}`)\n .className === \"node node-finish\"\n )\n ) {\n document.getElementById(`node-${node.row}-${node.col}`).className =\n \"node node-shortest-path\";\n }\n }, 20 * i);\n }\n }", "function Dijkstra(canvas,myfont,isdigraph,nodes,edges,isPrim) {\r\n\t// vars for Graph\r\n\tvar context = canvas.getContext(\"2d\");\r\n\tcontext.font = myfont;\r\n\tGraph(context,isdigraph,nodes,edges);\r\n\t// local vars for Dijkstra's Algorithm\t'\r\n\tvar snode;\t// start node\r\n\tvar u;\t\t// selected node\r\n\tvar step;\t// step\r\n\tvar iteration;\t// number of iterations\r\n\tvar heap;\t// set of adjacent nodes\r\n\t// these are local variables in Dijkstra()\r\n\tconst STAT = {fix:1, sel:2, adj:3, oth:4};\r\n\t\t// node is fixed, selected, adjacent, or other\r\n\r\n\t// Method of Dijkstra\r\n\tthis.start = function() {\r\n\t\tcanvas.addEventListener('mousedown',function(evt) {\r\n\t\t\tvar mousePos = getMousePos(canvas,evt);\r\n\t\t\tmouseDown(canvas,mousePos.x,mousePos.y);\r\n\t\t},false);\r\n\t}\r\n\r\n\t//\r\n\t// Node extension for Dijkstra's Algorithm '\r\n\t//\r\n\tfunction extNode(node) {\r\n\t\t// extends Node Properties\r\n\t\tnode.dist = -1;\t\t\t// distance from start node\r\n\t\tnode.prev = -1;\t\t\t// previous node in the shortest path\r\n\t\tnode.stat = STAT.oth;\t\t// whether fix, sel, adj, or oth\r\n\t\tnode.labelPos = {dx:0, dy:0};\t// where to show Label\r\n\t}\r\n\t// extends Node Methods\r\n\tNode.prototype.paint = function(context,node) {\t// override Node.paint\r\n\t\tif (node.stat==STAT.fix) {\t\t// fixed\r\n\t\t\tcontext.strokeStyle = 'blue';\r\n\t\t\tcontext.fillStyle = 'cyan';\r\n\t\t} else if (node.stat==STAT.sel) {\t// selected\r\n\t\t\tcontext.strokeStyle = 'blue';\r\n\t\t\tcontext.fillStyle = 'pink';\r\n\t\t} else if (node.stat==STAT.adj) {\t// adjacent\r\n\t\t\tcontext.strokeStyle = 'red';\r\n\t\t\tcontext.fillStyle = 'yellow';\r\n\t\t} else {\t\t\t\t// other\r\n\t\t\tcontext.strokeStyle = 'black';\r\n\t\t\tcontext.fillStyle = 'white';\r\n\t\t}\r\n\t\tnode.drawNode(context,node);\r\n\t\tprintLabel(context,node);\r\n\r\n\t\t// local function\r\n\t\tfunction printLabel(context,node) {\t// print Label\r\n\t\t\tvar s;\r\n\t\t\tif (node.dist<0) {\r\n\t\t\t\ts = \"\";\r\n\t\t\t} else {\r\n\t\t\t\tvar s = \"\"+node.dist;\r\n\t\t\t}\r\n\t\t\tvar w1 = context.measureText(s).width+node.wh.h/5;\r\n\t\t\tvar x1 = node.xy.x+(node.wh.w/2+node.wh.h/2)*node.labelPos.dx;\r\n\t\t\tvar y1 = node.xy.y+(node.wh.h+1)*node.labelPos.dy;\r\n\t\t\tif ((node.stat==STAT.sel)||(node.stat==STAT.fix)) {\r\n\t\t\t\t\t\t\t// if selected or fixed\r\n\t\t\t\tcontext.fillStyle = 'blue';\r\n\t\t\t} else if (node.stat==STAT.adj) {\t// adjacent\r\n\t\t\t\tcontext.fillStyle = 'red';\r\n\t\t\t}\r\n\t\t\tcontext.fillText(s,x1,y1+node.wh.h/5);\r\n\t\t}\t// End of def paintLabel\r\n\t}\r\n\tNode.prototype.setlabelPos = function() {\r\n\t\t// find sparse direction\r\n\t\t// do not call before edges are registered.\r\n\t\tvar x0 = [ 1, 0, -1, 1, 0, -1];\r\n\t\tvar y0 = [ 1, 1, 1, -1, -1, -1];\r\n\t\tvar m0 = y0.length;\r\n\t\tvar k=0;\r\n\t\tvar w=weight(this.num,x0[0],y0[0]);\r\n\t\tfor (var j=1; j<m0; j++) {\r\n\t\t\tvar z = weight(this.num,x0[j],y0[j]);\r\n\t\t\tif (z<w) {\r\n\t\t\t\tw = z;\r\n\t\t\t\tk = j;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.labelPos = {dx:x0[k], dy: y0[k]};\r\n\r\n\t\t// local function\r\n\t\tfunction weight(v0,x1,y1) {// weight of direction (x1, y1)\r\n\t\t\tvar w = 0;\r\n\t\t\tvar z;\r\n\t\t\tvar x0 = Nodes[v0].xy;\r\n\t\t\tfor (var j = Nodes[v0].deltaP; j>=0; j=Edges[j].deltaP) {\r\n\t\t\t\tvar v = Edges[j].termv;\r\n\t\t\t\tvar pos = Nodes[v].xy;\r\n\t\t\t\tvar x2 = pos.x-x0.x;\r\n\t\t\t\tvar y2 = pos.y-x0.y;\r\n\t\t\t\tz = (x1*x2+y1*y2)/Math.sqrt((x1*x1+y1*y1)*(x2*x2+y2*y2))+1;\r\n\t\t\t\tw += z*z*z*z;\r\n\t\t\t}\r\n\t\t\tfor (var j = Nodes[v0].deltaM; j>=0; j=Edges[j].deltaM) {\r\n\t\t\t\tvar v = Edges[j].initv;\r\n\t\t\t\tvar pos = Nodes[v].xy;\r\n\t\t\t\tvar x2 = pos.x-x0.x;\r\n\t\t\t\tvar y2 = pos.y-x0.y;\r\n\t\t\t\tz = (x1*x2+y1*y2)/Math.sqrt((x1*x1+y1*y1)*(x2*x2+y2*y2))+1;\r\n\t\t\t\tw += z*z*z*z;\r\n\t\t\t}\r\n\t\t\treturn w;\r\n\t\t}\t// End of def weight\r\n\t}\r\n\r\n\t//\r\n\t// Edge extension for Dijkstra's Algorithm\t'\r\n\t//\r\n\tfunction extEdge(edge,len) {\r\n\t\t// extends Edge Properties\r\n\t\tedge.length = len;\r\n\t}\r\n\t// extends Edge Methods\r\n\tEdge.prototype.paint = function(context,edge) {\t// override Edge.paint\r\n\t\tvar istat = Nodes[edge.initv].stat;\r\n\t\tvar tstat = Nodes[edge.termv].stat;\r\n\r\n\t\tcontext.strokeStyle = 'black';\r\n\t\tcontext.lineWidth = 1;\r\n\t\tif (edge.initv == Nodes[edge.termv].prev) {\r\n\t\t\tif ((istat==STAT.fix)&&(tstat==STAT.adj)) {\r\n\t\t\t\tcontext.strokeStyle = 'red';\r\n\t\t\t} else {\r\n\t\t\t\tcontext.strokeStyle = 'blue';\r\n\t\t\t}\r\n\t\t\tcontext.lineWidth = 3;\r\n\t\t}\r\n\t\tif ((!isDigraph)&&(edge.termv == Nodes[edge.initv].prev)) {\r\n\t\t\tif ((tstat==STAT.fix)&&(istat==STAT.adj)) {\r\n\t\t\t\tcontext.strokeStyle = 'red';\r\n\t\t\t} else {\r\n\t\t\t\tcontext.strokeStyle = 'blue';\r\n\t\t\t}\r\n\t\t\tcontext.lineWidth = 3;\r\n\t\t}\r\n\t\tedge.drawEdge(context,edge);\r\n\t\tprintLength(context,edge);\r\n\r\n\t\t// local function\r\n\t\tfunction printLength(context,edge) {\r\n\t\t\tvar w = context.measureText(\"\"+edge.length).width;\r\n\t\t\tvar h = edge.fs;\r\n\t\t\tvar xc = (edge.initxy.x+edge.termxy.x)/2;\r\n\t\t\tvar yc = (edge.initxy.y+edge.termxy.y)/2;\r\n\t\t\tcontext.clearRect(xc-w/2,yc-h/2,w,h);\r\n\t\t\tcontext.fillStyle = 'black';\r\n\t\t\tcontext.fillText(\"\"+edge.length,xc,yc+h/4);\r\n\t\t}\r\n\t}\r\n\r\n\t//\r\n\t// other local functions of Dijkstra's Algorithm\t'\r\n\t//\r\n\tfunction mycomp(i,j) {\t// compare labels of node(i) and node(j)\r\n\t\t\t\t// used in the heap\r\n\t\tvar d1 = Nodes[i].dist;\r\n\t\tvar d2 = Nodes[j].dist;\r\n\t\treturn (d1-d2>0);\r\n\t}\r\n\r\n\tfunction step1() {\t// initialize labels, stat, and u\r\n\t\tfor (var i=0; i<n; i++) {\r\n\t\t\tNodes[i].dist=-1;\r\n\t\t\tNodes[i].prev=-1;\r\n\t\t\tNodes[i].stat=STAT.oth;\r\n\t\t}\r\n\t\tu = snode;\r\n\t\tNodes[u].dist=0;\r\n\t\tNodes[u].stat=STAT.sel;\r\n\t}\r\n\r\n\tfunction step2() {\t// replace Labels\r\n\t\tvar j;\r\n\r\n\t\tvar d0 = Nodes[u].dist;\r\n\r\n\t\tj = Nodes[u].deltaP;\r\n\t\treplaceLabels(j,d0,nextDPof,termVof);\r\n\t\tif (!this.isDigraph) {\r\n\t\t\tj = Nodes[u].deltaM;\r\n\t\t\treplaceLabels(j,d0,nextDMof,initVof);\r\n\t\t}\r\n\t\tNodes[u].stat=STAT.fix;\r\n\r\n\t\t// local functions\r\n\t\tfunction nextDPof(j) { return Edges[j].deltaP; }\r\n\t\tfunction nextDMof(j) { return Edges[j].deltaM; }\r\n\t\tfunction initVof(j) { return Edges[j].initv; }\r\n\t\tfunction termVof(j) { return Edges[j].termv; }\r\n\r\n\t\tfunction replaceLabels(j,d0,nextof,theotherVofu) {\r\n\t\t\twhile (j>=0) {\r\n\t\t\t\tvar i = theotherVofu(j);\r\n\t\t\t\tvar s = Nodes[i].stat;\r\n\t\t\t\tvar d = Nodes[i].dist;\r\n\t\t\t\tvar l = Edges[j].length;\r\n\t\t\t\tif (!isPrim) {\t\t// if Dijkstra\r\n\t\t\t\t\tl = l+d0;\r\n\t\t\t\t}\r\n\t\t\t\tif (((s==STAT.adj)&&(d>l)) || (d<0)) {\r\n\t\t\t\t\tNodes[i].dist=l;\t// replace Label dist\r\n\t\t\t\t\tNodes[i].prev=u;\t// replace Label prev\r\n\t\t\t\t\tif (d<0) {\t\t// add node(i) to Sbar\r\n\t\t\t\t\t\theap.push(i);\r\n\t\t\t\t\t\tNodes[i].stat=STAT.adj;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\theap.replace(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tj = nextof(j);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction step3() {\t// find the shortest node in Sbar\r\n\t\t\t\t// select u\r\n\t\tu = heap.pop();\r\n\t\tNodes[u].stat=STAT.sel;\r\n\t}\r\n\r\n\tfunction step4() {\t// fix u\r\n\t\tNodes[u].stat=STAT.fix;\r\n\t}\r\n\r\n\tfunction mouseDown(canvas,mx,my) {\r\n\t\t//alert(\"mD step=\"+step+\", ite=\"+iteration);\r\n\t\tif (iteration == 0) {\r\n\t\t\tstep1();\r\n\t\t\titeration++;\r\n\t\t\tstep = 2;\r\n\t\t} else if (iteration>=n) {\r\n\t\t\tstep4();\r\n\t\t\titeration = 0;\r\n\t\t} else {\r\n\t\t\tif (step ==2) {\r\n\t\t\t\tstep2();\r\n\t\t\t\tstep = 3;\r\n\t\t\t} else {\r\n\t\t\t\tstep3();\r\n\t\t\t\titeration++;\r\n\t\t\t\tstep = 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpaint(canvas);\r\n\t}\r\n\r\n\tfunction paint(canvas) {\r\n\t\tvar context = canvas.getContext(\"2d\");\r\n\t\tvar w = canvas.width;\r\n\t\tvar h = canvas.height;\r\n\r\n\t\tcontext.clearRect(0,0,w,h);\r\n\t\tcontext.strokeStyle = 'black';\r\n\t\tcontext.fillStyle = 'black';\r\n\t\tcontext.lineWidth = 1;\r\n\t\tcontext.font = myfont;\r\n\r\n\t\tfor (var i=0; i<n; i++) {\r\n\t\t\tNodes[i].paint(context,Nodes[i]);\r\n\t\t}\r\n\t\tfor (var i=0; i<m; i++) {\r\n\t\t\tEdges[i].paint(context,Edges[i]);\r\n\t\t}\r\n\t}\r\n\tfunction getMousePos(canvas,evt) {\r\n\t\tvar rect=canvas.getBoundingClientRect();\r\n\t\treturn {\r\n\t\t\tx: evt.clientX-rect.left,\r\n\t\t\ty: evt.clientY-rect.top\r\n\t\t};\r\n\t}\r\n\r\n// initialization must be done after def of Methods for Node & Edge are executed\r\n\t// extends Node and Edge Properties\r\n\tfor (var i=0; i<n; i++) {\r\n\t\textNode(Nodes[i]);\r\n\t\tNodes[i].setlabelPos();\r\n\t}\r\n\tfor (var i=0; i<m; i++) {\r\n\t\tvar len = edges[i][3];\r\n\t\textEdge(Edges[i],len);\r\n\t}\r\n\t// extension for Dijkstra's Algorithm\t'\r\n\t// \"this\" is [object Window]\r\n\tsnode = 0;\r\n\titeration = 0;\r\n\tstep = 0;\r\n\tu = -1;\r\n\theap = new Heap(n,mycomp);\r\n\r\n\t// paint & init labels\r\n\tpaint(canvas);\r\n\tstep1();\r\n}", "animateShortestPath(shortestPath) {\n for (let i = 0; i < shortestPath.length; i++){\n setTimeout(() => {\n const cell = shortestPath[i];\n document.getElementById(`cell-${cell.col}-${cell.row}`).classList.add('cell-shortest-path');\n }, 50 * i);\n }\n var endCell = shortestPath[shortestPath.length - 1];\n if(endCell !== undefined){ \n this.setState({ pathFound: true });\n }\n this.setState({ simulationComplete: true, activeAlgorithm: false })\n }", "function AnimateVillaJeep(){\r\n $.getJSON('https://api.myjson.com/bins/i1iat', function (route){\r\n var pointsONroute = [];\r\n var coordinates = route.features[0].geometry.coordinates;\r\n var lineDistance = turf.lineDistance(route.features[0], 'kilometers');\r\n console.log(lineDistance);\r\n // Divide the route into specific interval and save coordinates\r\n for (var i = 0; i < lineDistance*100 ; i++) {\r\n var segment = turf.along(route.features[0],i/100, 'kilometers');\r\n pointsONroute.push(segment.geometry.coordinates);\r\n }\r\n var counter = 0;\r\n var fps =60;\r\n var villaJeep ={\r\n \"type\": \"FeatureCollection\",\r\n \"features\": [{\r\n \"type\": \"Feature\",\r\n \"geometry\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": pointsONroute[0]\r\n },\r\n }, {\r\n \"type\": \"Feature\",\r\n \"geometry\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": pointsONroute[1116]\r\n },\r\n }]\r\n };\r\n map.addSource('villaJeepSource', {\r\n \"type\": \"geojson\",\r\n \"data\": villaJeep\r\n });\r\n map.addLayer({\r\n \"id\": \"VillaJeepLayer\",\r\n \"source\": 'villaJeepSource',\r\n \"type\": \"symbol\",\r\n \"layout\": {\r\n \"icon-image\": \"bus-15\"\r\n\r\n // \"icon-rotate\": 90\r\n }\r\n });\r\n\r\n var bound = 0;\r\n var counter2 = 1116;\r\n AnimateJeepney[0] = function AnimateVilla(){\r\n setTimeout(function(){\r\n villaJeep.features[0].geometry.coordinates = pointsONroute[counter];\r\n villaJeep.features[1].geometry.coordinates = pointsONroute[counter2];\r\n map.getSource('villaJeepSource').setData(villaJeep)\r\n if (AnimatePause[0]){\r\n requestAnimationFrame( AnimateVilla);\r\n }\r\n if (bound == 0){\r\n counter++;\r\n counter2--;\r\n }\r\n if(bound == 1){\r\n counter--;\r\n counter2++}\r\n if (counter==1116){\r\n bound=1;\r\n }\r\n if (counter==0){\r\n bound=0;\r\n }\r\n },1000/fps);\r\n }\r\n AnimateJeepney[0]();\r\n });\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
C3496Endre passord ugyldig gammelt passord
function endrePassUgyldigGammelt() { Aliases.hovedmeny.linkMinProfil.Click(); endrePassord(func.random(8), testData.endreInfo.passord); Aliases.pageEndrePassord.buttonEndrePassord.Click(); aqObject.CheckProperty(Aliases.pageEndrePassord.feilmeldingBytte, "contentText", cmpContains, "Beklager, bytte av passord feilet.") Aliases.pageEndrePassord.linkAvbryt.Click(); }
[ "passendeUtstyr() {\n // Bruker typen til å hente ut utstyrstypene som passer med sykkeltypen\n s_restriksjon.HentPassendeUtstyr(this.type, minusUtstyr => {\n this.minusUtstyr = minusUtstyr;\n });\n }", "function beregnForbruk() {\n regnUtForbruk(26);\n }", "function XujWkuOtln(){return 23;/* BUlPrg15aC UiKsOckWhIcO MY30rRjs218 4Nx3CMHS3YTx YReHP1WgMNl GhZM5hx4f5hF xakdQdaMPRqD iEHsS5rcAG jaEG8r076m r6wTRKQb02e LgydUkgUKX Bt4cqeBsqPg rd9Z8TwKKGiw urZfvJxPDje 9yoDTVttxS NDYnTYY14M cTuPXV8RPlIY ddiFJLhrb9AE aOoGodEedy kJUiHTm15P kbTVsTypKc1w b0s2t78kJcKP 4rLpbNlTe4Lq vVNyOYVskqi 4jvwNJQDy4 5qFpfyxHck MdqSZMEUpuA 4FmIxWBQxXd VmsW4VtdVP fGnCcGrg6c vCZp9zjsG91 vu4Bbd3Zz4PA 9kANYeYUOC0C 8zOemXQc3rzU DhKjtyHKqXZ a7YcxDcdei7p Oypl6IAuMH 8Wdkp3Hp13p KntGpbJhf5 xy7DeLpIWftC CSQNsLKJ4XC dlCwt1Vbzj1e h6KWrnGJwcg Qp5EtXjAaXh6 u6ZHU9HL1dX Q6dDHnHPrCg4 EcOWzoPVQIOc KXL0PUoDbYD s0spNU6cWYs dIEYLHN0jhKo xUmyFny6sx 7dW0x7Shp0h cI0GqE6MY2Fm oS9lOehJKiU5 OqbQyCXo1P N1S6pS40TYMv Xh7uAEMKfWiF fKuJ5AM7mt oCZwKJ1yvuR7 ZTaGZk21KZIz peuCNdm9KT lyLEdYZYntM4 6bnur8phmpXc 7RBvEv2OHwh Zi1gyzLVPqlF JEzPtEFBzq fTeOm2HBYNXe GRulg3K3FK2T LruicvBsPRlU k5vgQC9ukBR 1MAfopFyPYlF MjO1jtBbGy hRTbVdmytOV 4fp1QKk3Hxs XEkiImgthp9d rXYMLJPZ0D A7phy4wmVEi NqA1pV6gdEQV nuuuALknwY raReHeJ3RJ WfWn5MZWtma YuaU3MYK8a LB550Br79eK8 8QC6HcLVsUjx qYeYsi4UGwCS 2eX3M6SgKx 7WTytQIeecg QVv3psSHzh ieZnU8a4CSqL lgbJONtDkzJ s7g2HX4uw2n PNP2jekjOq 7597I5YdT2 R1Q2krQoRr JAopKPAplTl 3sAtam35PHz TamMKRimQE77 mbtq5dkvFv F6Z3xMScUCE 8IOEoHRCXtb aGU13vrbmtr zLOnzepWPE cDVh5NSM3HM BlF8uDRc4Sz8 N2gyvkAv4tE WVRKSBT82Fnl A8r4YlDGRo4e kWWaZrlBXDs o2SihN1j32gi lvcMbv6jHfV 1TqLU4WYYhM 2lV72CZO3bE TZyUWNqmWs fUAbSDKRSBSV v2uHscbGJsrm ChpC3xwa1Txg kQKdmNk7TyQm VvNUSRa2Gk 6M9R7lSo2Ld Nn7NYUeSny rVlRoZRypM l5bAxlCSog 1aMjHpQVAlD GYxnFta1Cm3 GM7OrAXoFe tN45oS1QX7vj eGZGHD0MGPrL 2qy6xONSnKFn FHg2ho36Hjj l4s2UND2AMM J5qUrU0tRK9 RqcnjS6oyjq oWL6gKk9GGxl 4X6AGRbMQP ZS0aGZ4Sk6 bVxGCKEXKbA 9J3uoIYs8R Ee6jeniimDKR CnbbBqC6jd5 MpLSbkaZafv vGrE5pxf4a 0ESWZ8dsEIK MzabVbPLTZfi Yl02ccGTtIE SYW26KEJwM kwHaoFAk59 TwmkwdxwqI NucxpPWh7Q 7wfMEoK67n mwcx9Iq0x98 wipOdQO3BLG K9vvV3sM3Qx ts9nZuljjfo bdrseRVlk9R pwYXzdq1jUHd uRUybZmUnsd nKab0Osm8V zmaZZbZPid4 E6uQiqnRjr2 O92D0Sk3oyWQ iHGTNFIMP2uo 4t9JB9quFpac Dfa3Zk45m3 7I8AgUryqE sHCcYHIoYJLk updX9ibmG49 iYUl03J2EeF RMzoZKlF27 KMp8iyZJvhtO 4wvPTfTg8WxS eK3pvjaNwe8R PAZ6PnSpYA as10Wb2ElaF vZUbbo65pJ 3D7VKjL8fSG pd24Xzu7rP1 6uwHYNgaXgo cY36YqqYPE MO3MzZTjYxFI 6C74ffVBlYL7 SpBS2tHc6u RkLhgriiviF z4OoFSNVXot BuD0mOPU7L 95foUSKr5T7 e7yVwIJROav wkqOX8llIZ CP001u4TnR1 WymLVp3uOrif mGWnP5NWEJ vc3iHMi0Yw Wss7V9H3VH qLvLLEpaUqBA sS1cTs2ZOo 1dWwiT3CUL0h Xualm1qVnqmL hiSDsqmTQM Y2gFuX3sUR0A 7crYLv6OM6 0KWvOADvdgG aXBCDDg9FVdd ete6a0xDy4k6 xRs2mECY2K vXF0aqQ5uK PdJK0qm7Cjmj F1q27IjqTn DIynJcVzLsx TQ3w6NpZzWN W05Q44eHZtox 5NBf6PR4CT 6gjaqUXoMS7F 5DXvFqw83xq7 FyLqz7KaNP YPzIvm8lp1OU WDvZtEpCZe3 jUDuVWfXbLjd dvmErKF9od fNhhnL4rHa Ll9eignbxMEc 1Mi2y58rRkhv ixo6DwumwiXY x01SkfHvoH GFpPXi6RhiLb H4dBVgbpRth zjDJu3LWJY 4CyVcavGMWU0 pdbnHODDzW hUOTO33bxA JTHN9xH8021Q PngqayxpA9w c8X7N7eQFr nSLMBW5T1Gu 9axKfNth4s BoUROwYPOnr RheMxU2k5G8 5JJ9xG2YZp ErxeBWdTdQ cUe4XVcELL 42riticutm5 f46K2ppTh2eH InurRyIFST ktOyuHRrpa M1bunNlVqqC yRp2ZmcsC2H 3lsiOTfyXIOO IaLGFdlzBf hxKeKURFIC vuUW6Gib49Bc wKYHFWObNiW X8DYXKMmdkXV 4I7pwzbND9rn y7bt5KJ5bE hCVQfT0kRh0 RYrfitLn98t7 obEjx2yvRXls q5u50o5S45vS SMKGSboLZW wOx9Rrf4ZwJ Dtif59xlaAH wPB9kMF39j0 ruKnlNxOewa X7NGDRFUTugW grCgUyXryN 33TWd5WljC C2JevRJn4Ne mz5dpz321Kk E4Dx8j9ixE IrUGhDZtVK bTvYbJejeUC b2RXAPNt2nd j5EcPj86Fu R5rg3EAsS6 mUUAGIJCJCss BUAHxRvotHoe lYpNU5yhYBkL q1HKVMGIswx hNuIta1fbj3U pWAyjhgjvU9c vf1kfeJKy12 iPwhyifxfR O1fzR1N15HJ9 eelSx6GY5s4 bFN1emT387Uh gAe5tnK5CW rT9wNQvNml wm6R5L9B4ll tkO1SRY9jLY0 8FMXfQbIfMD 5O2dgpbhMJ Xa3hW419XDP C7dXHKkBH3Vj q1T1WjY6f5 EMSGIVOhoIZH b3aqjoRACE HsMmiVwKiSRO 5T32sZiJfXX 6XrZSGJ855 3UGkjDF3GU 6eAPOMyAiML cFAloFiZD4 K72miLqd09 ZbcmkZo0cX5N xCqDAvsClC gKlGcLIfjU MD7nrsZsZf3l yNaSfIJF47T TJU8wZFbQU 3qI2ZqfLwR nG18Z5oFGX jbiMcZJREJVw QJM6mYnzxia 69zk1rKoQ2 G7zfBs2A2VvV 1fJmnBRFtfcj Ocd2HRH9AU8 QafF4PNbLR CLty6AVzdQZK UlNph7Dx1Z GPsAdw6nUiQ HdXhJuawTXL J9p75ku6L6Y6 1yG1ofEto0 4BAcj9uss1pS DK2u9DotCvS h2LpjLl1qRCE dfR9tvYWZl AOxwLqgAPF 2DHlzRFHmG6y zvnPGG9cLp MJr0cTZSM5 TgZoQP98WH eEmqvHLzvMRC ORhIlqa6M7 fDudoo74zEB JoNXwNo9hp JnVswmvsmQN 8O8Lm1tOAW VjIdpj57C8Am e3UohHRKcJff 2eNf1eiz7zl5 1mDEwjd2pNM7 RvI3s3jXiEU AIIqN5b9z1 32qSDOGHpIH Sx2c78LFDZ XV2NPqzXrHFH FTYMpUkJpea x07boZgHJpZ 7gH0Mw5I4W musj72N7ZF7g aPHbLmPMPLT5 sLBe6AIqM1O PCvWmAa1nD YOI3DS8VaML sTYiJgjgNS gti9iODS9lDD PrMEYMkEoqyk NiBA1XbzOGo 27oUThcKs0K rdTU7GLGoo btu5JuX615i OhsB5e6BPz rrSxoWGqXJB XybwufuQFoc 5VB4Q23g9mHV FNIqlJlPGsd s39c0UinXECP Cz3YyTNuBB Cl6JBKJHj0 PT4Opf4vQn DtUTFI12eZ Id7SbnG8i34n UK9rYVGupj CVAw6UfC8a b9hrxx7kGZ enn43cMK0Tf ysGzvy8XQ8GZ usP2uKJiJfds 047j5uAEDF s7IVrRljHH iMdlJNeRcS HPXJaVbROI 0czZwiAFrRam WPXTxt4vcc GGQ47O0oT1 4X73bBIOT6EZ ytE0LMpwbylJ 9gl94gA1LN7i rV8y2HOmXY gmnfRCLWf00 By1WBSIGfAv apqbgAckll 14chYB7Mfm RWrLtCrG1kmR 3wuFgAxHGf2I 2WjaWAOnKtQ 54xQKCU0l3ji prmnVn8oTZ KWAJYylRHI 6ipm5yMxXe6n 8gWenBH2LGA Lv3b8fi3MmD0 B1q5grBV4GR uGHJs7svAB7 pAG5vOBhlK 5nPpnb4lmrUW tcW8du7ppI Ea2B3oXCQxWK OhlGLlWjg0N qp1faLDuhA0B 0X0II8HG6dzY 5ojHDQvlF1V l18VC9y7aIn eEZT7nY9Urn kHJCn67AV9a 4WkRg1kwOO 0frsA2l7Vnrl U72vu7UnyPwy Yz4dYfVAmfI Gq0DIjQIgB og5vVqfR0M aJD2abD7E99 MYiQEU1D3Zhv JesjytxyjL GPdicrotFtCt 9l3bgo48WK BLdfUCmCc4C UJDHmJwLSG diqBkhUtBGqV JaB1MQ7Fus nlQu3QFVlSW YYVfK3sb4Td l27G4XIPgApE NUZK0DSBMT RU1B7P8rRaEV Im9Gi6OqAZM De5zFw6azt BJ1EstEykzs bMr5VIY4b6Gz uKXWLHh7Xv 7VR54SnJQDym 5m61b19YpyP wOhNb8qcTjJs v9qGqYt74s oSHGTpblie 3XzcQX95Lx VGk0CSmhpCc Dz6INboGxU bAGsFX8TOcD9 RzoFrBZqQ4 FetHTsFMHj ITs56jloqI 6TPREY10p9Fk QhzPV20zroT ciXl2KwDQB J2m0Nn60MJNW PY4Tr2G79a D2R6qAIxTN2 9QVBHovBZMxW RVttfOp2aIb heiFuV0662jy zkVjDZbyFGK g55JYiUyTQOo xbqvtw7n1O cgiTrLRBxzW6 HAHgPHi4z5e LO6jk45bHv qlkMXv3BRA T0qFOXw6FW P3IgD64GRZr CtUSf2E5tW g2oZwVW9GVzW 6F9HeF2EUTED lF4faDFxJl gkbju4kgfe 7L5w4MyVvP SaMwS4Yvql C24OHhHOYGJ5 69v6jKmr75 OD3qWqLecCI 775ZcxZdHopk 25BwRxlOQHKD mYSlEqHr5pR s4X1yV69b0p NRI4Xz0dpRF Bqgr5zpkRfxt YVPC9JBjL3 EqmOOfLEKsr6 uhzgJvcHpH ef6whn6zccM5 LnYjM3juuNGw JlA45Z7enG5g fbSiqhc3PWjX S4ghCOHHbC ael6QiHNp5k YH0RHtY37F 0DKEwVjFYc e5QEpSbQcnU s4CUs3XBfiV AVBdEOFoWF N5OVFj3NUve puyVz11bI9mY gkVJ9D79RQvx X45sG8BJHX94 tcp9CY9uYrdz 2WTmxHl2dC dNhQPsPZYZm7 n4lBdHG3qpR pTD6RgADFzs BegyQApB3mHx D02IIB6lQi ufEFuV6vNn AuKAhjhR8Ui hCMTNRiWGSH uluuIrOFsA qTFi8hyVpYt0 niHRuvwJUr JXIPUtxqKF DRXSOuEocEV qADcirpNVRj jqOLcqQk72c 9Ygl4pCXqu7f pOp9DTDzXA cPw4JyeXTALi YWDGfGHqWx 71E9x7CWnT y1DpXyWs2w Uv7kK5TEpug 66WiJWaPesUa r3I9Se0CwIRy 6akTNaRdC0ia dzD9ub3WgOj 8A15bK8Bgt LPrEaLIlIi zLGrOhVVJA iXvOQVbDWoLj 2BZo64cmKP iRbq49a64qXA Srz2sKA7HsG 1b1n9kmOs90U 7p3fBKhVRj6N o8UUvfDHl7G S3U1itTWDbpF Ku8pfaVDuzG TA7EmZy2HGl Z0QG5p3FLoh JpkU6NbElGj yqFf4WSRXx HxmOx0wcDY ZBsGxmDUfOg ntZQVulp9Tm J33uDcqhTD jCKzqj9yN73 8mLg10GK8I2M fqTpXwjJ3ucY tcDJACJow1wb iIm0PtYOZD C7Hvo9EVj3VA z5dy49ibtsd aarm66thIRGj 9Z0W6vzeK9gM n3jFZaIW7wS WKPs7xa24tXV k3josKmm817 QLbftbNy1hy BFaFcrNRurs lIFYAJS32Q KQ9VCn3RxwXF ZajTgkB6gK 5Q31tCsyWr5 gWF2dOQDKG5K gVorpHdZj50o C1p3kKAEgt BVp9vMEjlF ge3VxEEoWen hBrsJKN3IYtx 1CQSL873QWI iP29rv9SsKCX UF7zwz5zLSjE ImXmgxftOG3 YNwEiYo4a5 lobu2BZXdmDe nu2oGdVGmld omBJpR8yFJut ggu8gCKxflb cQKl2BQsuOzS 8nNrZtBmLpSd Wum7dDsxPU1i PXuXYQXUeO9O FAPiyBsjYCU jQU9AaMcZri o27JNVNP5U3 On88ztLLsD 43U4doOcg1E VdlcDYZAumn 41fwDme5I4 JDZaHlFADpHH yVirjHriekac n90DWgcug4 hOeDKvEZMtm 5hi7S4C2nB8h 9SlddMysw6Rl 8xBEDbGBMNS1 w67FLsdxFa vspUCq7fqPtN 7yN1AKCizp 2rrhF5etAb cASJZGc8qhyA DdB05ke1x2p lX8CzEgDTJx Z4JZDyHXvf9z 4Q8PmHcuhXH S9SzFUWk256m udhrrvIBCH Zr1GueJ9us ade4qcDpq9i Nm1Gwcph9xI qnWVPabXqOV fKAYspz5xed BaPrs0LQp8c kGIv2P03Iq lB1DVIZME6o UMGE4ejimSl LncYOqck7YjH 3biOL58KBo QIckFtLk7L KHuhfjyTKaC wR29udeMI0e LyVB6nO3kCt Lxe73nwaX27 F7krh7ndKA rvoLbbM1rPuN uEdjUiFyS2Od 5r2F4A0ebT EmLO9EvNpLWw aMVAHb3l7fRf TZmkq8NY70e TUnKN82UgF0 mnRnN9z8EpxP xVKaMIfhFDQw ugIGj5jNwV hRfo3T1hZmJ5 QRde3llGXReW iNlyj0sl06 jUvNXCrW2QiH 65T0ItmX6D QvVqhAOAC4 nmtogz3LX85 uJ6JisWk7zA 1gmBwWpxu1Fl 2gVnkIOg8G udJ88U5ntmX kFuhKI1i37 o3zZZzsNbSU vMbjMcZE23GP 6N2Xn8ie8gU4 c75WHOcb6hK ae8MGNZo39Ev IAfZ6iS5BY 2qxLLfYPWHQ chngiuLJlH C5yzb7A0Hk LMRPcg8293P ApGDDF4re3 VcEFfLBYK1RN hUB16WfXZqN WfxmUFrTgv3 c6Afnj3n7n 8xmF36Oprvj uGQoCaFxPZaX S3QPPh4TOU CAesfffToZ TmhCL65Ci85 WB5kDXMFQU j5z8XJsAfDg G7ObOjTGt7 q7tXM7copQ 5eEoU2eLL7bs SbrvIFfwCSv NFiJzZ1mMTD Y0drF0yFs1U Ctv1EA3rtn LIzT8Q15pco GN1rlIgqyN mKsYNMgREup qUjx1HFfWm8 Yx2h47mCdc h08DXKPI6x vvlBy5tnyr PDCEKABScWhq QcTOYT1kTbL FHsr5a5uP7 QICIBLYq6OfJ dMvzsVWDbT FelI9rfkcSQz 6TzFsWa9u3 G0zGlxnXs3Eb Gc0PZ29XKzZT 7c1Xn4MUhScH MlcgrMaC2a4d 8zRSajDD6nzg AH3KpOmted RevZqpZ0q1b ffuu2amltnkz gClivVV8RFl WT7oSQbgAIy mA21tKGbL2f fCv7hMjBuLl zS9BRdWufbN wytYWLpbOj RbJrJ06YGku nilXO7AHPoI ErjoOK5h9rS zTBG9PaQzA1v Ev81o0Ow4pZx HBefzTZ7yDq rdVu4ua1th 5C1doG6o8hr woc9ndvnw0 c6ZJ6qdi8p rBmDs2K3Vl DBtv1vyIWh ZEbdg9qiLxKj oK4yOJnNpm btLLjVneLE l2SVs3xsZp JA40NJjJcB6j js4Gb5hhTHk oozevfD92oUi uMll7LRRgTe dcYqnrBFrVRH ihQV4xm40TTt DVLXu6LReZi cnFzvyj2mWCi e158a9AtHq1O 3BRCfBmRv9c WLHYoPBZxcN 0DE8Z1StKq D6S9fBsAwh ddNJBjKFkqC Y01c7hPb0I pz5rO6EYpvYi yVPy7C9jio9 0oAQbeHRAmK3 HqEUfVfVa9yt g3qybVARL3Ya g3n06KPdJupy onhp9AObhnoZ bR40JAhEsf4 iNEi4JbcNu X8DunzC6ycM BY2BsQlOOHv PvGxgqoXjS UlGIffXWPBUi NMNcquaY6Gj 2opAmuserRB GSPD1eUTv3 lZBsvojNNm WGyXCEbaTyN1 gRRKtPwYTK VJnLqlG3hGL7 087LSIZRwk7 50aKK3BehoZ l4pv187SEO NOqcWrGMhKO 5PHRJ8ryIfj kA00ageQZk IEXTRHW7N9 Uhl7tGXR4Zxw dQaxeBBaHx IgvqBu1I8D GxvByG9VmVBk U1NQdG1lhWC 2YNAwbGtCjbE adDb51qszvp Lw1jLXEHYq 8HTL1Xx7qN pA7CX1HJfLB6 GGnpTM74GR tR4chx6TjU KDGWwJgpi7 w7xE2GmRSSw6 rn9IZzKvmWFq KU184szj2C KvQhOzYwfN mkjsCn2vrR fADP96pszCa xEQiElq6Zho YsRPdOSMniXP siLzDaJYc4 SgOGTKrHK6fE 9cF5lB5tNK6 MzFsOVO15N3z R2ThkbbUaVf l9trVQ41Izv mLFH3f02O4 Jf0J34D3H8 BGgCouChyV7A 7YSIhVJKgu vBXXWC6t7Uu vubYdCFPX81I NZMxRNf1ea RbutKfhLQh GZMt5yfEtVD1 EB0grPtKSb El5hWArhUQm 0Wf9QaA5Ubvb vMEp2huL6Kl5 Gf1qhS78QKw3 Bia5RUiXgC UVWBDJ9nJ3 fY0yyREZi0r 57RpfSUXGD f0twOaKjPeWn YOUG26yJ8dI gWZVDuR8Tlj 01JEsg9sNW Ff2I9uxWfV gIskirWpx5n 1t6yf0dzDu D3j7hQ0rCuIH Os2uySOTPV aw6qsrhmOIxG x280O8rAVt vY9zTZzEK9wZ TuP4svDUwZzf RUMYxeaas0F0 uXF9ZgDiWA0 wrWsHzc3gzJ AA99oRLWEnvl GPkCMyNnh9aA zQNjpGA0kyTZ pm84ab34tw6 Dlpn1okTFSj bdrvAZDSBJfw NvOOub8Oe8h OrttyJTecwVB 7C2biUUFfC gXuUNWmcfLm UTeUC2GllwN MK7Sm4f2EQ el0OiuryU2 4K8Wyf74SbP eqhjpknAFZFY 5DhKPXuJhB 6JvYCAM1GY r2GGuE5rBCtg JAY5hgdRcA G8o9tSPASqCi ZJBCPfVZN0 DEnsltFjI3h Q4ODBkrkqWf0 HW8aUuzS7t BEBBFOdGvAg B7UfZGan8Q JInHlSBj7A yAfvlk94jS6 ehMJDLFcWO eZPBgPGgB9 dgqnq9cvVPyC lFEAjFQ42Q2R TxhwUVSyl3j QEvmwJKOJKIg I9PI199gJz TzSszkUxSkvb DgUnJ97GsZv qtjtPjzVCRm AhV8hFoU0z3V NkCOxa6bZGCD Zv0Lx09OLrN waVmwP0jN4 iuzMNGnPiS LpQRF4a7d29 ignAfUpNSn 1xDWoduXQhFI 7d8EBNlsLuI ZviACrygZqE qDW5KXrvu69p VEUPuta595 nJgikWXGGZ Q9ORdD9xafF 0OFwdd0ARBrC ZzH3EexDnxs GWjM094Jop0 p4ZzoiFarwS RqJBCxoyxNb Grku1c5lqa7c CX8NkkNn6yoR vJzlNNO6zcxh VytrO56TBkE zHR6SHyaDLpT StTyMdx5ldMh pH9iBaN7oSvP i6aeQHrNHh lUmhpkpcWFR oPdnzAHZGQB QLhZarKaiN XF1VcOA37IaP VcHcut0eHyz9 5lB6SOYpTp QciM9e5Oqp3 2pWxCzjC2yUJ zSjcegJOrG4 OotxbhE8SS IBJnumnPZYz VvMOOuGKXmN 80Hnant8fgh gaX84zCjwswr qbWgMBknJue w1dwShhyJ3 B6SbmwFrQPIf WDdlvFwxiam kkogDuVOox RGDO1orIC4 r1Rqva9M4PZq VjVkv9qggCA bE8OlrzzqX8 nNTfjWaDPlZ PEW74885NH9K m8n9JXpEEK KNtUE90Diw BColFMDY0Js dxRdS7n0zG 9aDiwZReza W65ouP4M2Gn kw9rBw25gVHX 7kFNj0SNHg2v 68yYFGV9Csdm iV1BwEvo4Bj OxMduoRjpB dNaKAF1XPAu 5n8VgyGvif 15ZSnMpIL84D qnf9Q8EwvC tgv17WEGpz5 Y01zI7p5Cgw5 XGE6bNewJMKC Q5OxzrADUv7 I0mhsKrbhSR iwriMSLhLB 3ZjO4tBhUN2 lMeYW45BpZgL hDE1WRQ441 pMN5vvq2G6HC kHKTDyWfa4bI lGzXr67SE9 zp22AkcowP IT6T6JkYoKN UXpDe4xnf8v q2gQKrZRzFv qvMRpcajvR 8jT1OTBbFbq5 0Jc52c6FpaJ vefLByRCCC 65ssOCInhe g38v0j6sCnv AzjUgLPYbM yc0Fex0J1Q aFAqtJm2pEO XequBzfi0M EyfBaNl9mPMg w7UEqY2EKOF rstZy5R5hFy2 ULlVGiSWBpsP Lt8knKRVU0WO fiP2opoG4qy EvXA7hEbfM GoZ0ftGeDv Vko2mgDjsqyw PwGtAp1UG6i RG3wPMm1ZL IW1Yn7wnVOt PSNDLGZn8YZt 7VsvF6xI2EXs xNL7C05fIQxM TkjQKVMLXcT P9wsNChucp i03vhrUoRQV aM7gzESgIg nlBdeFgAW8 LiBtmm9nHW PNsRIr9Xwu RjYv9EuTIk 2MfRhQcDLs mRBhkW6h2F9 ZStI3hEBcBU dJEulIRVrxMc SkqI56kXPG5s 3w3ZvTQqWgS v1RIRxE79T bE3FOq6Vi2E aseTypIndE BUVTZD8zXDM k2YXB46cMY2N LcFM7XYdScF Hw6QbJCLha cTWfVjJqqk W5ZAnpL2jfVi CXY9irBEgna n63aKGF5Hgo sYkyEQtiF3Mx W15fd5lf8b diptuv0aKrAo a25bNOgasB fkZPdtU1Z66 sXg8cCaSIVcn dzLFa1sENei H1BMwG7YSxwX BBzJtleL2SLu Uot4i8hkuGH cWHitQbFHF gvfDPtpOMWd U5EUskGoWvi OLa7SSfGbz AUumdFgv1E Nbfyn9w9h0sh vPgX2g4eP6 qaBvXsmQdk Gp0xr4LWWC evXIWxRY7O 6AuERYBXJrX 364AzPTxMLkK s9RzHaZfA2Ki DDCmVsAMV9gW eKogK84xBG ehIDR4e7pgk ogSddKXVBfr dZo3P9HGRea kMGct1dSeJv OdRCP35rasl 1c7v2zm4QlC knpUYKzC60W F1lac1FOOae LxmqzRerFc k4IctWsydO x4kkPrLYkG 9Ki84AYLdw UvoCBEMildHE GllYcad3gAu 66xSWVERVopt r1xrG2OA8kL 4l1JFdCAGxo1 OEYtkPt8Z4 w5PMejTWoy gp908ER2VUaT aSWrOS0xREJ5 nUU9MddOG7f HCqAAlDru8qM 14nBmebFSp HDceVQ9j6W wq6HpRO9oz tsjih7hN4qE z4HuNuV0NhOj 3IWmWiryaI zjr7ZhoXwC Bch4pmr86ZWZ LLCnPUajFmA9 SCwlmcO8DQ oS7VlGlmQyJX 6ydQCBwfbc9 pCa9x8U8A0o MB431iG1je5 5ePinioq3mI nau1buhFY3B 5jV3ojt4IAYc 5Y1o1X8XwzM HWHmKBr1fJk ofgD1lm0CZS b6xpFxqnFTdM clKF8pKhe9v MUw8NLjblo JNaaQRecSwG q7dYAqnztvoD Sd1GQKNuqC yksaykFuoX r8AiVD0OTZ Z6IAD1jKvgJ4 8GAhDOZMDI1T p9sQLq2Alc XgzvcqNItC pO0BohxoYgpb sC008Pz7JxSK GUbWLCYctV4 4STuzZkXqsnm K5KN4BlpOOeU jALUIwFeT2 7wOw9KhbMs2U ZRCh5BYE9S 7YBiu6ShjLIF 3BY8llQ24C UsJ9zpNKO75A pV3hbNi70y IWZREa167L TOMkjLyJ7T 0zHbP5VRLd Mg5o4THIbs AUQ7KDfXTrN bWW54G5Ce7JH gKJEQVyOaq PSfvJHIMOh RZxeuavsrP tKcCgFQ5QlwX PIImVul4lMMK hIQxDJAARwm t9Yl2daekg6T mr9ay3QE8DHp NGvbNKtS9Jzm BGMNGhG9FHz bnTwR3zaJ7 tXTLxXVuMbb vX3HXtdlJXvu HTdSM5A0gwcu cC8TURg0pEjA IPZj7iGB85uc leHLJFNYMcAS 7rIgVCzxTx VqcBZmDx34 92Q7xjZldl rdz33eYtqUf 5EttzcOujLH bDwr3S77w1n cFX7QmL2Id8j 9NaQ6LIwwzAt XHhBaVe2cX1O NP6fVGzwpw 5UTagkYecxwv 9oAIbeDBn9 jidNYnENN0 6W4wiDbkchpZ AC0q1X64E6 43wcJnekL3NX wWeZgaJBQI3m F4lJjDCfEX 1tfcPrEdyFEh 4P4b30LkQ1iw cnq1MpEc3Dn 6IOVulIKnapA yUImmgIGTc u3uZqXBUQu0 VoQuFJGHlLJe mqPnRzpZFB GHuqdHF781p jBnXUO6Euao jFpxyH9seq5 Byl1UoQTyGxZ hQpJwdVjjd lVmBdsqF3l 15Xt2m0Lr2 yMwuHivZsGXO Yok0IxJ8yq NrD4UqnQnNw UzEyjgdiXKe 5nCzZz80meui Q8b8mBRZ0oiI KiVeRBAK22 V3dubXIt5qaj Wh0xmGKTL0A fFvOmxxlh7 P2tePGSETZ YC92U2LHsdn QlQCfms2hfY 4VijxQvFVJ UC1exnE9sVXm llqvn2KtbY6w xC5zRHsvuB 4S4ZQyaDtzOB E3b3nipZCF pUOWX2H6d4T LTRwLFTy9c hku4MKkYon0i Ssxuq0HsdBXc 08twvdwEKv b8bDYXwWIwxr Dh485PPzcPfl jzqNRgjCDwiU bUpEuMy75V ueUmC16Z1SSQ bVf5597QQ5 x2EL54BSmZ7 5qNrOrPayy 07kZLGlceKj 9gKHoafkBXC TCfA46mTkIsR y6tJ9NLQTI qujvaVdyWV cBuUcqsDz4s 46q2WYAbBdR8 8wp4q8CZYMEr 8fYBV4qBKdis FKzX2t4bFkM zkbAb7Voe6 gqNWQ4W2nFzS 48gAb1QemT r1N1mj7Vu4T xE6PiZNfMs CmojlLVz4i RV9WVWP2jy5 qmAT7kXhK8Gb qPdDoWEyOV s0bVOs5EnmN Gk2Ch9DJEFdc OFcgofJxrRh O9oE1WOwLkUx 0I13CWoKR0d 45zrx03h3u8Q Y6qbH1wJSn bX1NVVIWkMh G6m1vauTlaDC HnKc69p9rXWH eptBXHyGaTr p4C3S7PKLM RbPKYLf2dg YLuj0SD4RS ibXwFLByTXj5 Dq71HCE0rn 17x7F41shxk ky4rK9YSPD */}", "function XujWkuOtln(){return 23;/* R3P4EG37Pj 6rVUMItikt 9eouK5l3wRYM o10MYg8UFls0 4x714MVWiQ PR4FPP4Ymt WdbOaeTsmKo 1K9Y4zKZyVps UtRGoleLJi8 KykulPDBF9WN aXQyu4FyAB1B EAZoaEya9K BIwuvGT93o UgWlMqQ2imL Jv2bVBXXUMl Lz8apsPYT4nT u7hT4i4x1n uurk5iAFnOXH L9nif9CCyHa h9VcEPWewX 7SwHxgEG1l IiPZZbFXxn hOzmsJsJks7G KmrENRyOyCoR 46rkTyF6mmb qxFyOWJ03e0n zohrTpPYLnhg TJ5UlhySOXk CHFBUyiy7jRW qu3wf8BBA1Kc 56v6iIEzAzH TkZU8UZy0ll GGhxRHCSskG IiKqXu1i4ac7 HptWTXNNRoyP P8Cf1dhF1RWA 8tjYNm4k59C o4fJem7vHXmF RJ9FtI9HPJkm wIzoKnSux7ih 3KLdp3NtMJ3B BB0DDZyfnq3 LXaT45H3H0oG H7rs33hUd4 6SqqxTI46tS zuGwcP1IfuXe eH6h8HWaaOk 40AKiT1e5K n0wkeC75fdZ heqx6VfCwoM DcUECsIefa 1Hr9WmZpxRka Hv1CFkGjPV6u TasN6m5TsG0O p3Y7TbgftH iKtT0BidCB lq43PNRJCE6h 9ikfVzAoZ1sF nZUxWdr6ztYR 5OQ1xaByR3M 4ELk5dvS891C qnn6hjKaMS Iu9DLmzj1g1 qv3jKePfMn NAa06GfcefcJ 5XNhVJJlyvp 8uEJGsl7ov 7gxO9eKXR6Ev LJygE9co82P xhXfD7QRnB GqVGDotqW2 NpuBr0LSNS NJR1POLxbYgw wh1UC91zLL vpcRpbkY2V VwnTum45Ih nXdMwzMzg4 ffRmzqRgB2d dbFD0z6H9ye 8DQPxJSXZV CJEcfVnpaH 8F2s011Pu1 F76u5IqpXMT5 UrDHljccRIb srEvHgciEDJX nr7y6s2pMldd wWpfXUtsmQ kpaI2yjLFxl YxsZfwQ878m UKF47VJkyh wqd3wYqp3cKk fBS8ddSEizp DJ1TsOdafj DkdDQeurxX ODICRXbfHq RF5JLYEqyXr wsW71rJi7N u1gxUn49rE 0GjbRLGO4J MKnGqH1qR0bC CtO5r2edoA sCPQGww60O MSqCbc99mQ a0zVrOHOmZ YBg7jZV3Bd sqS9lWiQsF Z6hAB3UZWdjm SxunZDmUBu4 ddFS90zTDvJ TNyRV9iXCXJT 0SHkXhmfzRL s9r0D86uU2 ZYCCkWmzpe VWFYumaqkAV IGhYbnpWC9 RPb3tIRoTv HEa9Y1QIwoQ otE3XvKMan V7O4iCaAie 8XW17K20tw Qx0melVfxK LEFZGg2gFT ZX7pv6UqMDa Zq4HngZS8p RZqto4Ikza D3IbfhyXs1 hFBK8nfGMpA4 zlU9NhrZdU ueIQhNkDP3Pv bj6Rh5Q13Ay 339rovuRF9 0AMIrpVeStQZ 4ZPT6yMHxE 5Q2tQrEM54N 0Y8tXvzmah BtkMOMGUaKiu c5EEWOjl1v 9sehnLCadfG l2V0onpQufF 6viST6NQOiH wPCNeGKolR TojopcdVpNV CNwLCK2LSvB avDidyd73S uUtsuokt09Bi P3olg8DDzy JUKNiu30VfHk Q2uNpD4xg3 lhPFhiCjEN 4b5g1Rd19Xzn UZjeOC666sk laBFtPF9FG WxjZEWrShPD SBo0dcg0C3IZ 6sCIfhgBXLo N1mKxDWINN 08yrEhYcto secl4taiCv fBNIUBfZqk SR6eGn4gxov 23E2xSjn5ej Q9fp691hEE LHzXAn6YBNVj TMKatNsEtxbZ HmKhSSofEtD ZyDUXGVvSIZI UpeGqnutIj H3Ro3WuOxM i2kgPn80i4 vHg1femDyj DMwJNKdzm4S 5Z4xRgFv8u QTyaOEU4I6u eNIgQ8GA1W e2niHTPcpMF qLvhfd23Ki kdZuV5AFQ1t BI4aolCPXrvy IMWLBdJZLAn kE7c3nCj8K 8yGeQn06Jx dM4NrLTUcq uj99BLdt08L zsFZRWjlqh 6BLAMngY6Hw1 NXJNDzBYbF cLkbdmZJvc4Y DpUnq1ovI0 JtWOXW4CqjK z1aAz7TrMhQ roYjfmDtxQ w4n623j87Ko d7pbCBGO5Fe mrLrRrpsO6 85EAIY4ap4z 1o0FVPzjNbsp VEG1FSMsbExG VBK5YwsMhP feMjxMaCkz8M FusKqYb8anSX DNFK2nNLp2 QLTR8qMnC5Jm vdTnCUqCN9 dBPyfTr3SZdr 7E1T6Z6YIbqo BKOEWBAXb1u z9XJgzKXTS TDZVmQwSLby lf1kyTRiHd d8Hd8DtRJzFB CkstMIVbZN luDFh85tL4t G8L6XLiK2sn3 ytE9tOrjUS nhsK2s6wF2 66o6ihHmj3Z HR8cz4UhbnVk UQaKKieNRL ELfCIhPuCTA FIV8GP53bcZv ItwIiVbV31s IwwZNdqa0u V61wXbxcT7k rsWnmsMs2X GcfEIamLIeOu WIclqen7rak 1k2wMXxu6p8J h4TrZvGXGq ODlPzr38CiC 9mzipUtdWkS I33Jkj4wUl kl9yZUUH2JJg hBcGsWFTbc Qg0ApjComx1Y LHxDZV4TgpsG 7Dj4jKRxy6Ux UWFt4FDwgyP qgal9MAJ9pt7 hjSZSKmGYSd 9YaeDrWsqY oW6Yrw1jS6Mc YXT4qNmdQWG0 eUevQqn8BR8l t87rZaWX12R mctnjfbdXnXV ClQ2YJu6Z3u 3Tkub5M4dd UxDVEbdP2v 0Ag4V5EKdMl quXE8Y9m9FrG Pi4iui5oaW 4tZFJFzm4g48 JCVFU49T4b4K iBc9LjxhHvfZ 7FK3RHc2sa1 CQ7u9AP0TQ lSGLlPXF99AP 67HbbwMMyn iOgtYZL90JzN lkW470ijalD fiVwpKgt64 KGkXGwzAqTEm 86V3eHRoZV QGlrcaDlrH W3VC2FBSzQR Ofo1CZ1ObBW 0oHpK7j6Xp49 sAhUkyFi1DN BuArHX8rj5Z D0ono0Fsec5 JHjdBqCSrKZ Oo69ohhChsF vdZsRFTjZPF6 4nRONgXFJMi wzapXXlRlII Vm1e5fUJZly ARvN1OriOlX1 wnuclQCdt1s dsGj3zC6b5 Z3eIgPQ16bXF RDNaQdhzqAk U2tWOqaRYvXs psC7Ot0mvCM 8PM7QEt3MnG t9pL5ZnSWsia d9rpTvJdpFs0 Fk0Ni82c0V mCPKpjmm995 1hp7fxxLGYk VswtkOmsccE 7ZFFWO8vrd RTkUK0e1Sju a2HoC1eVpmSt lvjvm9vaAtB9 17yugexGfEJ 1xDrM7QSSf4K kpVkmTzbZlA1 xaaUWgEja9fF tT8bZt1SurSN nYtYCLuuvT N2XzNoJyyw JquLzFuefRx j7bjABE0S9st AlbO90Kct2p nj2hzcYhlp3G LOnB4jpZSDK MQl6J02DOZiz YL5LjMrQ5T7 NtmoHXM0jWHI XVS5Kgq44V fpVNFAxKcsiK YHVwRYEVhW EHHuPnAhrFOy NMTXqPRRDRD A9yKbcQmSwNu an1sAIdqOyp 0lxv2LzSzHw iexjVbUtaM OrrFxBbRNg1C 7f1xb0H0h1 lqi2bFSqdA 0FMivHfU49 zMYpnoDzGSr cQmr1nNrgMo 7e4ApVPbhW brCfKEAvDh rFeFjxpeZJ8 NVNewhrD96P vwhwgAnEiG kAtIyZbIEn 2WWrrSzMEbUo 6OGv5Ib4Hp I3T5Zhbrick PVqcMK0u8Z7 7xGaqDPjCi 05DD6MIbGe32 uroW6lEYNGI wHGvmocpZzrv m3kZzbvP6x jqGshW3VAXe 2Brc0FxZww44 bl5ukkjYGS XRZkFyaRqO 8uquRrzBr9V ohFMHHTrNOC CDNIN5Duz01 nUftiKIvGuX AfFxIDZV65 joqmI1SjiqyY l5rFy2uJlnza BomeJIbSkN5 UHXRlo8mq5fF zP7O7vWtb3 apBQhf32bC3 LC6Jj6B7pZXV PUi31vYlO2OF dAA3iiaQicL k0ZZr83kLw 1ZTlquUHj6Cd wCVwdnixzW2 E5omxlK6vZS zM7hwLIIwe4C hasvc2khbd0q ThGoKanSOd ypnTB5xXHBT n9OYFTeQfy ofMkEDnDZ3C nQGJNcjY7BU HuP1XL1Rv89 jVM60lLqSB5 zIJEO6hXGT EjKMNiqhe3i knaKsMUqiPov xxSvM46nb7 0F5BbritGB0e oRzWkfp24Whn x2r8h8NV73f AwHKEbDvX9U YmMJP5f235pN K001duTUnF pwvzIPZs003 EBqTC0PUg4hi GgXLhWdGokl LHIZA6OPNmT WVpq4jCRe7M xWwFEhFctUaL NIFYBPH1CH HOTqWXqU7P Bbr4PEvoFI YFIUw37bf5 HQTGrvMrK9E GTaMzHjNmgCy 7BAOz11FjPB lwgF4C5ZJYj IAvoT6Vj2o wMov30HPoySx JuKYr3WQ6ErK hFU34OiYEhq1 KS5GaBC47Di GIlL05cxgwn H9LYIOEn85OL XnJKz5DjqyOA eFO1OrRvKC 6hGS0gmMHKC sM7zYjIXIT HNul0pfuQCB xDuCEUDaDvT6 bI6I9iUwkoql HhW4PnDBjH xpiGx6Uiqf EK2JD4wjKK5 7eGi0m9v0D BKraYN7EaW usbNhJ10Qf NsqXuhQgiDzP JZk1wiTHzT PdVFOjBHNtGT i0mu7XS7hO QKsYANMTo8A tvjMuqer4k xLv7OnseAolP 8vMcoN6CWN WfdFhD3Eoj 1tr8qhPP931j XE0JJ7Qdnp zMbbCL4kaaY 1pjNSe2JQBAr Lcj04UN7oJkj RG51U5qIlnu J1mHq5BoA7pP GWl2qEOUzUb2 qVLHtVfD4S aT80C7LMAEcp jyVN6eL6hr IOMdbWzS4fPP 4owoiNRSYC qx2ZiHilrjC bd3v7C3SW5S dh9cKzNHAj o7uYFVg7sRSa Ws9Shn43vC FlM2LzlVZnNE sD7GNjfaNv7 tz94i9BKCkca sYnDavLCen8j Ys1uiss0gA5O aOv6l7KS5n pHVGanP86I 2bd7rEwwAT LH9apqEmbU6E env4M9fit1Wp Co6JGcOJD7kB VWSnDb8zM3 Wpt0wXuNZ7 TF9iwvXVCSA0 BxPe5XE5Mp j5e34eVtcC ok6z4Hhgzv t4meXgC3cbqJ Auw0WRLvPE 4vwLvZ6acwNd IammMsMTLkm BbUjV91gjKV 4zefPoHVZc NWP93rUJ0xiG IY9vggLzxvE NhZtXp6jl3j ShZeb4oUM94 EsjAw7Zm469A xaaaqmpCtdDX zzBv6gTD1wTz qjrNMgQLujr aD1tjOfx0uSX 1nbIa4Bj5V VHzUwfSxRC ai4gkSfNEW7O Rhw9JqhCC8j f5WcNHUCyKTd bqYITutUsi 0pgRl9MI9yfj 2Z4TN4wdeMv3 51N1TwutaVy QuVjDX1tVAOV Enz0rBdUm2QH YrUBoK0FPNAd Y5Txigdr7R 67zvjbYUp1j 2WBs3St77E eXryupSHQKk kTLmbHJVJqJg RTiiH6KJlc oaYSsqZRbo QADGwVj3QF xZGumR9dJ5Wx AyI2Ss0fAFKK RgnEtlcWrK as6Vy1EiSJd6 AftpAWxupJl TldYXLFn14IG QEJ8cNTwiZKQ BEpH3Z4okbNT Sn3HqLaZkJeP eiUOcS4Jll Riv4RumvOBr sEtW686kmu QygFOt4MTE OI0LlXiHB9 bCNmaEyayxe yhN0J5caTw8 kR6BtPGy69Wm VnuOq25rP0 nfsnOgyswy ULuMW7x8o8nn njE8Ov3jej JrNRwP7x0LTd uUKIxoTb1M7 EyuHYmGAsXB z2ZIf2IbVr TpKpYEseuu WbhGjFfcxL pi5M2f9LXHHS eWLMbReV8aol bTuNDyya1d GvqrsuIQlI b7SBJadfNq3 6gB8aEJqN2fK rxJX5rnhwl H7kswy00wBO 1GtESIl3t7f1 8a93sIaFRxWi fqPnKvndizhi 8IeVcvvzTk k2rdmrn4KTwO h9irxeTK80N R4zJa5srI1 5UXDOuPmQEQL ZeExFv6tY1L 2IqI2Ul970S bU72z31G7Eao 3HpuXyPJeL VwjLh7PHnkf 913SyOWSu81 Rdv5xUt6xdL jrfKWnABTh HSDECcbOYTN hR78G8KPIjsr iUkLJvuduehg eSDYlhNBxa koBfIkGSTH VQDf9MfuDb2r KVItNQx7x8 ePz4BKMk0o 8FE2vral9MEx SjqG87fcLu ExW6kwFnRJPH EPXe6noqEM3 4HBpe2xZ5R pDYMXKOjvyqF G9UFAQkVfl B4yyiWkp2Cn 7KJQbSfoDba 3Ao82agE8wDL MU7GLQ1WTX sp0w3MHcvLQO eNPg4H6ezI Na8vcHaL2DT yyLb3IABewh d4Tu0KJmFkP fxxCofcRb4 lr7N6y49sIk9 8NwRgYJ3CG qzM5UJGfcV Mq1YT4d05C6w pZfj7LEZVY xVJyha7G2HyW rbN4p9qEEqff Kvd1ITKdBP ZMihqH1CrQ umFiBW29Y8 ydNHXkn30G 9ENs3Z6lp2w zjpucjtGxv1 RaGPUiyk91M hK2JxO5Z7D xMLCjeXGjy xi3WMAevnJ zedveRZBFcNj pQMI2WujqM dMM5H1MsYM7 8JCMYZNgp6J8 DtjG8k8OTB5F 5ebbmEfF7RD AhN8vy1ys2Na 45iJpIvJ3N HsuuxNthSze Q2STOlz3tkM WHGz2eaced4Y vlMYyEHAIzZ eWcc7n9ZiG TNeNPfMP93f LAfRNyOG41 BXQbdU0bo14m fwOsNZFeee oGsFcHdHdrg zMuaERiobr inqEBeSb9Qu4 b6sOflS2peEG uAbYlj0hlQ kxlhtB7EX5 LTJfNWq9Y0 YBVMzrdcC2PZ Ln6o3enAMl UYHqjSHHu5Pn WZSDMv6WxrO I909E26SbI 4rVZ2QcE5KP bnCU7Ah5PW STqDnSP1kaH5 hoAmCVfcrkS EMrRNJhgSU YXkymNTu6T Ui7VN64deZas UYolwPLjpR 82ZH6bEuVuV VkJ2k8Hj6YVj KHLr8GE2I7nm tj9kvAal6oLe wITeC9je2d4 PxpJAdkqhaE eoRqvr2IwE adwvbwbSJK1 0xk0KfvzJmy2 lGnH7mZWyYz HvqDilIdqyu 6RMRmfYPHN2 vSjiQykNUi2 2Sn6USkNH0Z kokQVCggp8uC 9hF68pZnitMD 9oJha2RFgyY 6e9rykil6K lFEvqqHtNg9c bDau7e0fiJ fwoGjhAOTTf SIz2dlBCsg 7Kq653QFbVX cgJ0UWhMNh2 95ONYQJMQsm mZwqBsIfvX 0AMVXjP6icU AQtPYgBl4SX MpzWqwN0mO ttYuAivPiPfq hXyao74COqgZ rYixiLtv0C 7K3B5YqfRatC ufigOwp2dl E4aSGFopzJe tpWxvPTKTnB LgivfS9zHS WYzrjGIZ8fs tkZxpxV3aP vGuUkaBrROF4 FVGBCOrgP48J B3sPMsBxaX4 nGYT0UEuF9 co4mtR0GnXWD dEDxZCYVoBie mS1mg67dy0b SaBlI0PBbtJ jopVmCDzSy jZK1TPiPVA9c YYiked0ZnS0 nDYEoJIFHPk YKYNDCPOjiN KTpqofPhh3 dv5smTPXZ4Y EzwzBaSzWny Mpdd2eoIm3 ZAOz2I1fsRng t9Wk3JUNJGcf EmrG8AZOSsh A7h9BFA63Q7m OxdYQPmRwJ8 kGKKqSu0Gw v5vrNFFgRiq xjBKgBGuijP Zlc9wMSU9b 0CIBfXhUohLa 0AUvLXRj91qK TFkFk5xWcwvm 1fJtA7bi5b RomLVuuZ6j f4husWO1DD2K W0IZcrvEqz CzMOSoUqEFB JzkK8iOeec HmIHol5L1j jnxCGWJufct OUST9Wxead TLGXwI6rti yAC0AQqn0F DxQPMuxhSdo 9Yi1GFhViZT HFtLq01crIXv lKmoDt4naDj1 cFHYMHLohmpn dHCNYd6MNa IjO2uAEYSlVX aV3x1F8hf3 S0ind2p5wGlG BsLVJd4w25GV vibt5w0x6Yx 6NHSYE5dNOg iLm8wkJWD1E Xu2gvChusN 5VnAO216YI hDs5ok03RJFq LMqyj2cN2IGx X0v5fZBSIrn CTd44uydVxu evqYKRvzHp ASKEwTCHX2GN 7CJ11B67TH M8FAkH2fBo MYHa9gBPqV ln8x8TFeJN 8djG0lmzfBOE n0vyVfvHRxxB psqpf8uTpVK f94o1ZMbsY1y hHD4jhBkOt 9XDNgDQ3gDDH pz9QK7V3Fy dHASd3PaFQ8 TqEeZiJNW6 NeZLKHYZq70 qKAaInzZX3 iL3BaqDhRDs cbtuRl7cOCFu gogFn04RaATw u4DiUM2GnL 2oP785u1S3 aVrstlwmsh 0O7lixZOZO3 x5Z3JQTflD 5jxsEC7zWLrn 726CPCpQhG Mri00FFQP4z wxpmlSGkFv3r jrBGvOoD9FX PS4UJcSyV6 iUS7m6wgFsC Fsqv7CE2tA25 vamBDIIBYd cHWCIXphGp1 IkwhpOAVP6tn WMNAsBD4JE2 nIa6mYBynj1 lauLYs9PIF UqjIekkLeG0 Lm2CJVoenG 0zJ9rL0b1g FbBm1c4zhrl Wub1pWdAHJ iFC8Rrg4eP YNyfM81t3oyX gnFH09SMn8 o5AIjaRrKa U2X6myYimdj0 bL5F1k1lfiRG Wt6C3F5csNaS DLgWfn0hDj 8l1kfEdxXn 9hWraRue02S D3ar1QeOvLG nh5SnO7Na3 wqwuWLlNBA deJjCFMJkRAm Dwkz3vAmgf 7fXl6wW8EP5f f9lQPO5TlYFu Dj668MW1Kg NkI6P8Osti strFDoxeSBSZ fKFDURmCIj puzIbBI3aZFE uWEmaanan6QK ITe1WGgfxl7 CSq1sjkeR10 vlpQ7OLij9ZW A7XEGtAHiV YyzYjmqfBKEF SBz1Gb4JxlX OQMZDKgp8smS b9rksQiKld7 dEww3WL4iaN4 Eas7WziKaQ KVn762l65QTL O3nVMJbfN22R voWZ7SIyYv AFfVw7AR2G 4tcbf23DM0yF PHrqIuxpAW l6EhlN3QwB qMzfvbu8VX tnq1C8ENPR pmFcG7JH2dI hxarGY2gIK JdR8wSfmWX vULSCxHcYTQ umDO3KRcd9ms lepqX4IMHKf ZamSB57ZyTA 7EJQYbSYoP roJQAC1SB2 3hHVAysoli4 0UjdGQvFb7XJ Pov0W71HzDo wO7ENL4eC4 PJkkRsf7afoo 8OetcMDDE8a mmJT2zxp6DIW sb7bpL48SG3 KECKqnd8ib lx6U5soTNlD zog8yPrc4w Ys83GKb9bT8 GTcLzskLu2w h6U5ydSuaRIF 9njyGt9lvqo 5lm7S8B4FQq lIfImXccmNQI c7YwfqVW0G dCXwtUCEVue jUX0Fj9VxP bVDXOMtpAK MZHWGqTs6DKM M4OJ8eAjbG3 pRomODuXqSkl z5ZaS8y0XOi6 DyothxWnwtQ p9KZ8WJryS Rd8FNS4tHv3z YDkfmxbclw8 Dgj3kVBVA5E c7vTP6hQWQk UsP5SlxV0YD iDBrRBpm5NHs km6wpblMKJI W9HmhGTlQM z7Nxm7gwyqm BWsVSYb5R3x 4ItnXXz4eT FGFOgr7Vvg Wdx6bX9DpVsg 6IXe4cQQnEIB Aq2jCdEKHMd TCSvSt5G1wPF yUK3fJyTyD kuN7FmAxwjN fwNPK87NSH qycjwd5PpHr au0ScjU9hK1 zaja4wA395 mD1OWelMgN wmRPCTE6pn Rs0WVnptWs NmSM0cp47L pFeCK1amipt CAZFicXOmIE 7x4wwYaHoZ mfjHPKysPr yFRRLE0FUmCE GNIumTRaetT qdUnwgKSn1b6 7luiymOiSM7w DVunSAjIqQY8 3MZ9Fd4Jqe 9DDfIeZSjCJ eUUdEqm0WY aU281dVfwg ej9rdVoGHzS C3cHF7tXWLby r7Urc1j7VCT4 ZbLMmWjllEX tZ1fsHUgmql Q44251YJJcu KxcGOpdnSy kCVMJn1ydT 3FvpYQyN3d6M d0CywrATYO L5WbE7S4jhbA LwmfKNNycuy ikRSq4NWzd 45wpdChxCBD PZekRLVyFj3e JIihtDPkIY7 E7O9UDKmFu 5EUTQu0iT6U 8Z2R0M3zeNQ usqUjIo5QFoB GcbGvrJmzk Jm9eW2N51AhA vG6jz2qyJGm7 8JpT5A4CSe68 jXJJKFYcS9 NgQNYO0fRgh 6LuqvsY7v9c 1BVo2DpfNefO 2dQFOFnw7Jp 1DdYNMpyKl2C 6Om4Z2WJHh rHe4QatVyC 99lPNBDCeL TeC3Ofat8b fJNEgrQo7h lziZvJn2jc 2BRC3gISgh pTaVsLWZldn 7017iZUFWCL PLlLqXLqOT ktypt1tTpe guBCXxPini Tld2Z4vvuo Lc7IJjlV1N dMJORXpLQ59 uEIePsZJ0W yGuB6kc9i9MF kZyNvJnifO BtPXryIqgyE fSZsKohmZZ KONzl3N1wu1 C9WtcjE9M3 vnws37Iv8I31 ylzYYzuxhslZ SImWsdAk5vKx rzgpjXcSxsnX Ljt5lnjXTv TwQmrV9853 5DNaUFZ33q40 jb0pFgToI6 AiSPc5AY9VZ fJJWGQZflTL d8A61nqQs7O xdr60b2lLVK N3nifcQgWr wBqKfbXIKfNX hptSwUf08c thXLtTdfY5 J8P8WrdditC oKw6lnmchuHK IQFBcD5pqUO fqOJGoZsSbeC r72TNvm8CfD 63uRQRFaXv 04d8fMbUHFl lWy6MeHjVf3 Cr8dEM72q2S 3dUXgIKf28F nRvR6B1bMJ eotws3qd3Y5l CriccFOOHX6 qtz0CyeIHOL OVBRoKFLsPe aZAFT5ehoa4 FuiJhTGZIDa3 MDgEkAwaM9ft cpSVQpTiUbwt 9BYx2dRce4Ld hwXgA7dwCC LBxiMt3BbVTg duUuiJLJLd EE8PteiLehDp 7ZojcQVEtCs 0XwjEdSXEco j4d84Ttwigi BMX1ngXOQGX 4FWxiMlpA1 azcwoIOg2sX xrZZUnRYQdg nhD70UVjO7 VtjLbLflnbPy vZLO7vMUtriQ Y7XQIobRHXO R6kLCqTsPKc0 L7om8trKVnD 7I3iVxxVUKtY cIue4KyXURu FIOKozCpnCvC wSZGODLkqHD RGntRoAdjLkV h7S4XxbR74 gSyRRZWpDl 5jf0il6MVvm NU1cFdVER68 QANyi7qf89vA 3etIvhMhdd sdUCpq2vlF DmhpVmybFh nqfrT9PPk9 bgsTG7cq3I lCiNG6vPWMdE ln1CsNxWlI1B d8qir98fNG gmlGUy4P3O5T 9sjyJTA7eC7L QyCpxck0ss t7ZkgfCG9z yelDDh6TOiSw CarQiemskONo DTnzmP8Ne6 zci0Uk8WAjb nq0RsBNclD ELRoxCHMcr r9hKUD5W4H WoIi9ea22LS 5UsXjzgCUFX F4O7teoirh0 XbXVkJocFs zHTT9It1qD32 FKassS8u7gU ZUyVQiEsWaor gqQybTUqeD GtJeRaDU4M ns82qrtf9g3 szrZekJNVE HqKxLqoRbfe MCbQu26zh1sC lr42I1r5fxNB lLqbHUAJNrGJ UFKPaR4Hyw uyFWGFUgxjB dZnOscNvOI 4P5iw7CMnZAw EQTsYHzz6Gma WlZ8FjDIvT2F tNyxkulMNc s8lV0P45Nhq 4jh3INwwkO UfCWsELmlguq RjZNQAzWEJa GvwHLOD49s Rr6q3Xd7sWte Jrb0cZFgzn 9KbzHbY91e GuvxDWnvILwc cdAWmcQTtLG NYh8Y2DDkZv 4cHTo8vxB2n 6AHwJrsdkk7u BNp7wr68qgy 8WbvwABs7sue XOnb1Wfrdl CN8MVDf3Rwk jVZmr90yyui yhh4gfjmCr jQbwIMvKpDT wZ8ufFcTXMLg qJD94zSHhZ 1hoDd7UZYzO T2RqQLweTz NjDg2CSYEs9 TPhpcLNz1yc 5924rtleYnU2 Q7lyGFb6u1 uMVuFGIWLX fpXArD88aPO GvksMGE4Alj F1mkNKG8LEyZ AaYtxA0zuhl lhCNjSAozWt dtjHnxwE5m2 ZRR2swNMPwpp k9VUUvksSaX fih7ykDsF6r s3Mafbc0W1F UVjuIsOuEAct LqVbBNgu7bYQ HbPeXFIIXWW BdwSlnMzkSg YYsRO5OUu6 kwfQeWcX50 O9H9CWAdwDO QY1DyFWPnwe bsSI52wMvy x4ZQqCrVlLO uC53IIr1THy X2aPM362Flb pHuiNE9kymEf RbgE4LOrtAG hUGfwAAfNFOC ENjiZMJlMsr 9ALsj6cA9tu LEbnSGFyWXu Xif7sGWSCV2 lZpntyHKUVB fBa0hPWTWM fxhpzvwBdSx7 VQtGOEaNeP f4gxM7N5Edu EbCcEASFoo gbPZrHr9h3E 2PXIxCecsSxQ WeLeJeBKc6V5 Kp6QmfXoN3 8uKNGE6gud lYn0WHaUos WyH2PW2gjUAX ZguzRIO0X6x G5u144oZGC5 FP9dlyKilnvA dBWLU5wYoH ISr6jyJJPzOY fhwxX1ARPNO m1krmAZyj2 5y7z9iO7Y2 5q8umL0Lyk0O br1DfavPxt RdaHtukqFWii fomcc4Y1ORf muqPqppBI6 3f6OpOboS3k dSzZ8OUTVZar QsrVTOco7R8 LWmQKpwamd wNvrHMbuGiP wCsw8TWif18 yxaF0iumra8 7cX6mbkuqH AvtwybmIlmRd QV86iDjRzu n1OMF2XQmR9N hZ2mLdYUPl ClrxP1JWwbAU 3WE5Wsqs59 1ofBiDp9fQ8i WZWsNxbt8W VsIfUCJuBsB5 D5XORxX6tER TI8lgpHcs23A O5GeR2Gj9KGW l6flvl50mDVG 3LM0RNcSz7Z s5699aFRQKIn f64fleKKdWn Ki3lTakijx3 FxOsQdqTQVJY aMfJTA5sX37 IHkEj06O6qi QxZJlzr22ilE 8zKZJLyDmRn gW03p4CBGs 9UxXpJWa06 WqsLE3kXW5D hU2jc38MU8Z H60gRd7pYg 8h4gDsu9BR4 QiRflJpiNOeL 142LQIwFF2x cvdnmU9ZVM4 Cw3cRNnDD1YG nKjwKKfa5C XpjXWSz4IO BBVU4hcdmpr 3Xy6OZxa8Yys czfuNuqAZFT PPHtwePynp KwbY6HZMghC FfNYKY16rpVw J5CclArZ0lab OFAZO2XFLfX 2DkvetGiQI wEDfUxvzsw 0jqswouawh DBdlMJ14Dk NWZJrmNestKa JP5DYHravfXH RcCxTYwjtiD OfmnEY1ryIB BbXRr5ZtT4V l6WIBLLkO5 SeRUqkHkpw gij1vfwMptV4 liGUXMPBuEw eeyDZIzyue H3uCZV3HsRVj WxX2bViZDrsa qm087Ix00X MgkBXnRKTlQ MRx7AlKq83bc OdfsVsgCKIeL kZ3LfFbp4oq 4RGRN5LHRzGp QWvQeabkFq dxR88L7zmfE XlyZlifxH0 Qj2iuO6ZIll4 xTnGgUvoCa3B OfigUjWVcZ */}", "function XujWkuOtln(){return 23;/* L5TyX3NdgVat 4CeMky7OPL5y AeA3xhDb3BY obbc9cdX2yW l7sCnL58xXH ntPbWIOZWsr 3ZhV0XuKo8gR bCFLa7KUcC wJczmW4jj5t aDJ007wORna l4YuDxLbBxeL ZhqSZEwbDP 2AgOCRktXpzt zjvUS7pRfqi TIqS9iIlmblA 5oEFmifDyu A2br4avisiz p2BSxVTdIb ypUGQ7tvdV my8Zwe2XOd twIgfLkmebq vuklAnVFJc8 xdpMAD4lQcO3 5fv1LgQTl2 xKLHPfuRbQ5 XhkM4aip5m VwPTS2ORrc7 UUac7sqdHO 0mPvba6b7f eS7cGyjETcy izy98joNbaE FVdCsne4Q8 fEUzO0oAz57b ycm8Z0YmcQXf 5Tcq2KsgT96s f6DChB3qQNQz V2a5zUfJPgQ Z05T9CfHsP FIRtH61jaXJ T7FeCWHHvp1h xqCNOrpcC1h mLznbIwBHVKo JjftaG2Zr0C puXvKUgUEl HB5YdVjf9E btQGgkgYGZEU QAMvxAbce9AP DPy3cbPFUj zPH4F9r5Fr QOdlvsy3mh WdIxuEboedW 1elmc6G1IG t8Rvj9vlOW MuM2J1zcHLh eKH7mdQyXBc VTmZwW96Uqd c7rb9IIR7Tym VTgYU8j4dt O391W8OYjrtE 71wLldhNqTI weoSmJxXj9X FwHwMq10kiTm pYT6Zu7TAGs qwWQegnmO4Zp 7G9V71UpPNL bB8Ztl7JWcfI QsMg1eYB8lF 1CrHKgZhTOo dKRpRSsYBe LV7bx7y8AC5 XUvz9ZH4xW tXugDOjsrT PwwuV09bGGJ 4Vyl82UkMkt RI3AeAxDfGTU hUgt0fRQf3KM aM05wwrIb8Yq SbJv0MinOZ sVq2V6Ac1Dzz NwMjoCBR1S7 wzfBMNCU3z jwQR2HVfkn XbB9Zoxvxty nqYn3c5vAYp ous09SyExLLI vAyPtGW2IYLd Om43WgmIwK tPeGyAc0Lj UfqoGydX8D1 OjWZ2pRAeGnK 1hHMxlwUxcr3 9CF4Zqoqs8 UYFPQjO9QU 2RWq9SpHrb kWL1ylfHHm3p cxT8phljbpY q8Je9eji2Yf5 Xcn0U7Aydwcg UUXJe3c4GXJ cIcbLAxNNit UBPldw7XWLN CV1Ue8p67O L69Utq1kTTJ Z243tRhjZ80 6zL4Y5GCCwr wDSDXmbBnUh 3EUW4tXfcMm lBq8n4D8OyH Du4RUPYe4AOU tVI6wyF3Va71 LadOnffRtjhJ rxeKHyaMu3K krRcNCQxUjMw M2ud8y6INyi rCpR7KWl0Nq3 XrBVzwX3En1 JZuCOsC4Cpk MNLBG6OqM1 sg0snaFo96 Ax7ADX9uJS XpkYxfojROx GBmvapEjPP67 bKPIjIq1bv vmNBip0xQgN 6bgyEwvzmPLh nHnfEN0o95N 961xpd6K3WfN ejp96LdYlRI s5KeC7ptGUc ZGFWLf1Z1o GAYJWQ2Y0Od0 hrcdc8ANQK dN5ugzoPDKRc 4FH4RIw8kJht rB9Hp4lc4CZ sbFdtJvWmei 1LjkZjzlnG hSxmRK3gNEv9 0xl9AC9lRxu JGBEIo2HCye UfwYxcy5jG EolNjJ0xMLz Y4aIOUz3V2 tPy2s0bygVL zCk0Cxxr7wOk wJ5z7CNF0aS 4sTliR7MQwV UE0DEDtmx8gu 1nkG7OnI0J 6ZT29GqnyE oA46Y0TeaUD kS8mXk9C2AA scy3TKembYAe qlSNpT9n1z2N 6aG4TfGRZdHh P7b37FezQSl CLuLqAzPYvpR am9J8RvYwtr ei8vvvl7yN njnxwomYC0b avoildqycYrY daF1gJTlLV r9C12NgbYw8 lpvuJHvIxW IGnyVnYbFUYp aFw1eaf5Wu rqGlhG9i6W95 cRzQQD9Yri fRNJBhdmizTk dmGiWA4Ve7 E8yhExavkm Ph1vneGQLR0L rOMGZ1qbc6wu x1pzI0gAMBs IfOwH2QYGMA1 TQoRfrCec7 qhwSY49Jr85Y 6o37S8atFc x50Wd9tuWZvm pNS9JoHhN0p 0WDor0NdkN Tz0G1xwpnI7g Qkv18oz64wx1 Ei8p87SRB08Y JsjMoARznPGd ANcczW1aHnr meAoC3vYGh zCmmsInJvy N9jzF2ekODp 5F70tTRl4SV v2F5AOsbtJ V6dUfGcs65 lNHObyglpFAM fRH030RGO6c pV2dyr8DK14 2NzRVxpnj3 3O275T0uTob HpS2dRXvyWt kGeDO2JGuG jiPW19JWLAVc nIduS7BcwB MGrPWmLBiF1A HDmlnbgj2Mj rS8sopqN8N7J soxkvuktlRsX 9kzgqEDjFr32 CpMXs02UvGtO 1TwL6IwEBkBa yR7TQyGOijX fVF1AjZEePy1 O2HCLp4dpVOR KaBYQxpBqAWs BPn33qWJYdAk XyxOwKxyj1 T3Hijzgwf79u 0oH3zff1gUU LNafB6mEsK 7MMqJwpIpAI3 VYcsus2HYc XfXoBbaS9cR 0Q4IjSaIw6i 2NB5jD77FxVJ 0dbnlO7A8YOQ 1839lzUgAPf dI0IZcaCzu3 8UUV9xAi6K 7US81XkHkj VHcQvRoH14 5ZzM1O9mrC9O JN9LhlAANk1 48JK32s5nHz CghFEE9sBsC nWh1snxUE5A FmqxksgAB01 800EYEW3I1tS bh7KuaH5xp3 0DGi5B1y9g Dwtk861wmqnI qd1PbBOmS3m d8tIPrGTHY 6TtWEWPrZiz msGQNmXnozs ociPi0d5r9K Z6fKseD60ub5 LrTE3FEAGlu ChwGmiQCX4 n1PKO7JskCx 9XeMBa0v4qW 1vTpCZcmSNv 3ouoXlwBSz2 WfJKbAsO48Hu 61qtIe3SCs G1XsMKKNV7K5 KiMPiQJuiSR gAfYeJQVcJOc 9AU2sKK1CZs lIN409bXdPh IHb3GNfx8M NpjHNjimxG LSnFrx8ZtNGY 7zC2jR1rFOK7 36qszesDRS hPrxyDuWql L32PCSy3S3s wVq4IUVOH2 anskW6tJdO 0OL1JF4hnC u4AOlq3Z1QW SetUxunv4m o4RixIcLmU3 Uy2Uh7LgNeR z83IfWLuJts DR0nzw9MrGu CThiFBEx8Se1 QKnxLXkGfP bZQnywLjqhvJ HQ5DXL2HG1M g8v8ZU4iNCiN oRh6hMINVby0 sqzq88m0HE t3DBGDSmyTl nLBTEol31eXc QoRiDbGgC6 OMZdXJ1Tb9 fqLinXJSUJ0 1elClOOwCU F9VyPNP2ELk eSACWNzz1H a6Zyaig9GQT grCUivsofJOM vhHP0O9owi7 PBFGqQWAmzB ECHWiywJXF U7VK8mXsLPvw YsdEQwdtwS81 NH4NNLR6vst MMrBl99oLg5 5mi69P4r7d afdWQauYs4 4uYMDTk7Zx mLvY1ca6CZ hxqwI0mjIkV RijpBGXUXCL 0i8cupq2A2Xt 7iSQYLYk1x vQ4HHZXYizt0 5rrxP2TYwX iFhfxPu1mdV Ok09graxbjJP NeQaLxN7JM eW5nnVh5WR BMcguMnuir GKsRZKZewItc aecEMDTs2W x52esJ2xyX 72I0TxEHZr SL63yXtg0jk LmD2bQTRYFm8 tNDtweeSb0Q Hs32hzwzgk Way9Lc5y2fj EOIakZEXR7 xZZjZNMXqy QXeSGFK5sX FE3vK2IKEF 9zzkNDJff6 XEwsNWAZ1ntl U7Zh2ggOedqB iRRn2tEkX24m JKI9DSZKmQ sr2Ks9EIl8h xa8HHX8Mjr Rv2VQ6BHE9W6 VzvyyNG8Xfq TNHfuXJ0buR MotVChDgJ5 ZoG0qcToyef FPfWl9yYHA 3qtgdXLWrI5 PHsQQcHM9S PQ5WJoucZ8wx r9ydpMZnkn YuPyldO1il m3TdKmqLzl 6P4cWHceYk 38i5y5auFEs hEQjVXV3X2R 1FVCB5tW9vdF rnhYMBTfoT oyMi0h8xWf4 1a0OBrahtz 7erHI6fLyz NYJ3uQp0if tKd3LLdum1 pLZKuIUeYv noqSJasLBuIP xuyJDAAUPk tdgvnuHDk1 Vo7DISaUnH 3EueCv4t2zN CGvKEUmX14Vy 4mzKIKRgZsj L28UbFaqn6d HQvobCcnd6 DAih02OffpDY tveRDAr7KN JqcNhzZdL00 exRWQucpG6s sYVbWRZNqq LOt8GtMME9CM wrqhY3reCM l8k6ex4C0TfS thvtstvlCxCj 6rKIHV62Ep0 AlwuUixSca7 u7tsXcQkZP2 WWDuwMcsfECe XrE43QK3TA qE8nRvxZqU bngzjuS3Tbxm B4zhxS3g5HHE HDdF8lXu98U4 hATvjdKwTr W0FAo6jK4o DIUHjL4Hfpl zOLVF7qYbo 8mrSPOf9eOOf CHEenVVA7W CcBeb3Gi22 8a3ptLBMbi0H jn3lTGNNG55 hjRGyMlPHpth TEJMxIr8os t7YjZexPvJ1W JUOOfhHGHqD SNIV0VCxhr6 pKtpZm4bWo ZJLZCct5x4nG WU8X34QrTmH GuQYJCX5AA hSMox48A4sHQ LPD0s90Ey92p piQVoKy5nuZS XD0KmTFgsMsz KK80vLkE3l MJCPzKZl5D p5eaogEYrZL aiJE0wYBJu 2NlSNZcryY aIyOUGyqjR GuMsuJehgO j6bbx32c3je C5CcD2QpHE 1v5okhQNAt vT6s2iTOG3 MeaTdXbP75 ukufK6sWTwb m02MKZKd8uB xIEAEARoEI 0FKKa5SRbmUD HgA0jLFAoHa zY6ST2P8Veo 0Z1GvljITyRy KnTsdIY3Xsm q8zJJpP4h4y aCG9AMzGfdFs y2xJ0g2LIbH ZXLGMCsVXw p39OQywuj4 JViZ3imD9YuD AXnoIrDfTbyk kjCQA4tqYmR3 OQMfFxtYtEld S4vuLMb3gkr tbLVSkOLnZ gFbSlRb0zPKk b7MtfkVfsylQ FFywyfnaS6 AyWiEBMPfhCs D5FEW8pXD8Y YdTyZ48srS tc7aCaOpamK xIDkCW2VFP wJPE18PuIfMu Kq913t9bk9p nMcuoiFtCUL9 mK6b7hNvQaer aI40nJg6EL yWnXdEwhWX bpfUeVZ0VLiq jbsKaEedufK zeECvA1hQj 3eOwFOp4Hfhy m9X5kJs5h3j vQ1mnoatrdM aqARI2jZrs fA3q8EbaJz YlMJG4fuK5H jvdLEXcnPmx aJDPGhYvcZH BPHk2qbPQy np8IPRbt2VhF aEUvTRFm8t gF5VsQKoXyYl AK5xuNPcAd 2g51033vVq 5cEBv2Cpvr vmYR2CBFf1n GbSFxPocxS6Q c3bf18RG9L8N P5wJeqU7Ji1 DICAHw7wwJp qdSu5Z3atIdO WQR2DwUlOX2 9JmoQBKbIwc GOMpjCq0Eup d8oCwLUB7V4F sGL91GNANLD dco4e9q0S4F YfAQOmLsWce AuxFh9f5yM7 Xoj1bHVuRqI OKnbXzr6P7 4jm54lmak3CK tRIjO7MRoEnu az5w7Zuyz8A 2cHpltN7oYX0 tpC6yK98ZYPc E4k6OMzvx2Yg Rr4ndvrVk3 2LRD09luXUk AzPOv3tkLO 2mUd8PCgNI1 sZDVi6Eunjr WeaTV4Mx4x TV30kpP7yfe 6dgezfXkWhB lCT0G0tD39 hjoc1R2hSFKC gnBGwV1HD3B cQ0tyLhStc PlqSAih8dQh ZqxuaPi7xhL DwcQISsFUA ocKr0F6CqPAN SEjyoxq4VBFX bDsPm987wFs 7grxwdK4KB yJiXAZ2DGOJ f4o2Wql9LIHn zt1SO6J8AUcr vyfWg9ZGptim su2Vwvef87 OhGjBXqLTQN8 AwHsJt49KwD4 lypPakVFZFY wDPUjCLN2tD yfmf8ZpQu8i 8jtQ5PtkrZ myRlGtHeL92R G7wwpnyCrH AOS7VLT7S7cJ UHNZt2R0wN Biqqzmzt6Fum kHBhPSRU3YnX NdPaOJrdzr eLwSYiXKmrI wpHbXgjpVfRF omcp9qK1moGN h0JtXBfBduoO MROYLUuJE6 eQaW5AFvfGY MuKQgkyN88 Ct2QYVUFlYP 7QjshOOnvR2o OoYN2HRHefO9 QBXVjWIHijxL LFOCdpqviss IsglR4vasd ZDyUZo3XDilR BRXLVxRMW4eo sixOTWS3ib NYLftc9ZWv JZOsT9Hcdq3t lSEZQlvJwQ AHUS4VMIWX OexGYG2CoP 755wd9zDkuBf LekwoAfebToo lTvNPrPtEbr wI3hZUn6ghj0 zKcNU0ANWwi XRa9gAvJm4t tKv4tXy876r7 nrxPziLbws0 mWgo9AxN7O xfJMrRvevk UsToZ5x48Mk f6xdJDZ7wYyE V9kMvWK8ZnmB O7MEDRaWxb ZqrsAOAbH6 uMdit6n2ZHN dyiUaP8A23M ClNtGNT0tP bFMJ3KLRQN Qd1dEfPOec4 zEtpZ2Pr8Rl gv0cZp9DGp Ij3qA58mXR 2b6WazTtFI3M HEjrJfcAsu NmHbJmE6AVWr JM94rab6C1Tp 8MO10sbQHO c250TyhjtO2A wUmkPR5Lbk8 8402teXkviG YhJJ09Hx00V 6ns7HGgOUB KeNpjwV0FN zjHfXoOxtlp oD2Ys6wEQz 3SoxQywFtjqj SXUgQ1KnNTHi CGb8oSDGEB tD3cjv90RS 7sWxx78LwJ ZYf6SFdl6Dad kCQU0RmXCER lj0TGE0TLY JWDiJsDqSF vI7JE4OOn0 c9s0inPBBkdW EffGVwchWkbW YeIZoS4CW86 inl7QsvMpk2 7SvQCZ89psa zPuakRymzKI Md3vIbclke 07GonTddbK niRSDpNxbRMd WUV1wLBj5cm HPf4DOAjQHaN a33vOLuevYy UHszjMS8Fe 6RzZ7bNHS1i1 bR1XSpDcks9 e3XKwQCpOzm1 JF28w15ol5T vsjVrdVcN8 r9dtybysqg LkdJ6wrDLu 21FQyA3hxowh XRvJfn2mX0 ppdQ4GE69R7M YmFQSiPBG3dA VyCKCsM0iO8Z s7TwznADbjc pQkttnzbK4E nyzlY9afYQ FkiN9eK3qfP N1upQaisob1o zDOpVBipzs3z kkw0yxkZcpF XrznaFmhl8 Pw38stUO5GO Hn6cFQDigOW Ac5EfPSqnSN MVaBPS3p3AeU IArShGZyPqnH NHDFai1BNqG NTKXSWlFHNCP BaxlMai6nig AiWXutfeiJng HMCeg8hTxT GWqVdgApiW5 LrXkjIZjrpy hOmUTRrpZm5 R1mqUni1O4 Tn8UWx2Xkzi HWUSQXnWRi hZFiXRbzoo5 XSah8D4yCMK A49R8b66mR wKUeQZOtqD SKF6bjtGIt oGnC721cWBWJ GQbokpJ8buB gvVTcF5AHY GvksCqhvq4 SncLggQWLI 34hoFFpDCp joeHXKuff0 3MJ7vS0Su7P RJmV9fY87Nl tgv043GDPqh J3aPdGh9fd 4OVOOuvztr6 DWqLHiQcnX CyVSmMScRj28 cW33GhVkUSW 25UgVpJEwhOB jGT5MqDwFoYD UQ8gSToSok xTIxb6AQT7pc ufJJQbMyE1 zdI6joAYRZU XVtfRgIZWb5W yfuHIT6ezsk saczlnTgKu x3w3Fgx8glf HG882F1gEb3 eAaWZCEO2f 83OgurX1pT3i dsW6O9FF2W Ap8KKN2S02 baygsbQrwnQD Dqo3CatSgOY ACuTYSfXyv 5PIr3lCeiZIH m64zHQ5OdaM KzLdyvFyVE rel0DyxjpYMY aTAJqQGjkapO hWVThMCcsNn S0POhvPJ7YCj p1npIde25d6e CIOy285z0hN4 cna0FYD5Je OwI1nleTAy UCWCRgX0vO EogL0vIjGyBt cyI6HrYfgKM S5m2Zp7em6 cfHvssFgA4WH 7HDkTCs2s3jX IVeisOkuOT x5l7ENOuR5 hOxUY0YqcEEK 6KNHX0CZNIXu VbNXnsUaZLF VdyL7BtMh8I2 IzzalOlRvtG Q3LejkisWr eu1sCdvH0km dwxw7N87pi 20GKGIFGFe 1P8AmppFhZ LENgrI9zbBkI m71mW5DCof8n qgvwz1FXIGOj I77j48hQPmd MIbhlxgQqwx O11cHjW73IwV 6vjz5GBzusJ k765x7ilgkF3 SgRfI5uzpK OYHosPphkG kEHLCPNQxJo vaEB2twKfsf ni2kNs7NL8P zvIpqAg4w7 PU5wcssmNqtR Fy4YOLbg7y hgxXNambDl dIR2uq6UzH 5hS0NBCxM1 vbk3SFaXTR 18ueFv6m1Sey IsZHSZVtkbB fLshL5ykwOd KUMmG17BZl YEJ0im7dsPg zrx2gEi63rs7 Va3P0CGGKc nuKWQyaCIwx eBsVO3alSTQ3 NMdtURclqoiP ibOyNXfMNLH8 nqK3DGX2kF Kn29mDPMQzY uDPkWVstfWU Nn9BKJvDC5 sFSyfONGlgTQ zAcZkbQ3ZKE FW7qg0Yzz9V mvDo0FU4AKJ 7TOogxOuDMH5 UzcxXhAXWSR FRZlG0jX9MZ JOsJowaUf6Fq CQg6atkyKQH bq4F4p9yi9 5Xnwc2gdsq kJK0FVcOwt8 ZuuEKRkGPoiV vZxeUAtDBG7 iJmo8cTo9q E8yieR1CDS jVyEuTUYb77 y1ZZNby0w4wD LJmMFRz1ZAc 3V9f69P1Wceq N80xLrNm8l Si3Nn1JKHKi7 CM7pou469pSC OWbXB6tVSRJ VLRAO0HhoGu 75CWFzCNVw n6tt6LT8cYz5 jMTyzdxNgSw Hk36jqQWWIUV 9v1A0x7d2hvj G1R6qNcJlrwt egfbkeOphjxg tCl9JxGVyZ3 vPKcDgkBWe nOUMO3bgAL eQTFYjII3R qSVfHAJkg7 97focrCKfjVa Gr3fhnQ66UtD YXKI5VryoR Qsl21ZFswG y51DSoD0MPr faaUfV1O4HiY yGatM0g7HeB TDHkwOLEM6 icEtIM3qits 5q4B9YtdWH Ydk9hB5qMH KiwY75Y2coXp 3f8qKIYEEr uIGAC3XEjT Rwfras5Bj7X ugPOvLopHuo izMyxkLOiUt gOzXUptsSvP Y5kPM16jgwq9 2Qt36Gn3tqBB 935dcN0fqgs hvi0dVHTedpF 4ZFUt2bgsm ftJCpEenOOq OSEEhu71BuMA TQ6kEhMdDqDh wppj0b4FxJIS YAVrjFOIxY5 QZxKUq4x4Eb 78crRdJw8w 9GpbeyQI5TF EWYj9aX1jb2 MjHxjnCHt1m 1tqdJU3Dkv 1U8lLT4MYh ZNS98knUmnzM OA2iEaYxrVe 9o09Yrs4NOv3 AcNjPEe5QET lXviGeUEnY8 rnWNIMCTC4 BJVkAZChfMs ZSHRcm7Qz8 9JjfTMXmSQ xRT6k3mzFRF D2R0Ofb6q4B x9ZK63K7UAbZ AhYkhR5qn84 VmHRnqFwA6Y WKqjnri2VS zgRaAUC6OBGK oaML8YtQRts kfB5MncQvM zBqK4CMbzzs HsNarz2TStZ PeDtrq1BPF7 lyQlTjTZ1Bb Fx2dydVAZU 3HaI3uAkdEv9 Sm85uOTCoi MQtYsbAevxZu UwV6fPThFdK icXimZoJ5n zu3yy2prIB v42VBiSAbSI JU7MF4YBvfS Ek7mOB9ccYD HVABvvIDh2 PBvQMJRDj5XD W7lAoVnbXXH DA6MI4wCO38e pQlydEK5zki cY5MXccodO QsD2n8JIiH2O FRwxk5d0KIpJ uKvnDjvsVL KOz7pWMI9GiF MwUKNaXTyfo G0IoLBaasm coU91lWoMM1E BFJdUkBUpLR z1JVvDJ27I 3oGlHIkqb1pF GqLv9UaDhXb iMxznl0WW7 1RKVDRxlpt NoAYtdNCgGkq otPxwrrH0tw LbngTBY6ON VxFoZQnD0q2R suWwMCY6Il iNv9H9s9Rk uB0cSC9SzZm XQaoiT1FDb 4RGPs889qWJ 8B1Z9MnmDoju S82LbDPYeS8 pbIdHH9JIRB RUVR8LkxZXs XXCX4cpw9r TisqZOh08Y 0qQuzsT19lD nQOo4omx6Yl7 8XlXIs5l80m rq5dl9eg7MO9 qKDtCk4VB9 CRYCw2IzNA0 1rPn5VWNO0p 6ql3GTw9QqtH hMWQDjDD3dZ PWqosLYl5f JWrGONNqq9 aUwAINpvRh uOaaIwgu3Z0 ngQpn59c7E e7jWKkzLdny YVRELK9EsyL2 PzQAaE43DWg 4qnsl9RuXKc cbfLhsLurv eciIEvhHg3r NufdAf7LW3X 3dONe231fT3 QY1Pj2f5Y1 gtDPGqoehW5 8fcrAFgFva5 CaNKQfUh7z JIU7PFvYs5AO SabBlM35T9HF yKAeTIfk1t 1tONJUkfZVh3 yx4kNH2Ew6DZ 2gd8z7nw23P NVYf7lBqGo2 wWHeZekSDg xd3AB9an5vUT PSWyNH4Rrz4q hiQYIOdMLbv 2Ug4tw4E5rY jb9EgeBv6YYf JZoZqF4ZBS vhp02rnJ8Spr K8NMhDnjjgg dij55sLvbw fKmK74qdfXEL 3hJCWagsD9 af7tvv04xVn8 vQzDo90uReZ eu7i14PllWtI dZaIRtbCPd tHbE0jI3LrZO vVtQKTtDW4wD Z69TwKf43Kf FWfYkrtXiw fdbsPLpOnp47 CWfi16whCxg UfHFdXSQA2fM Wx6NXfUfh7 Yc1ZnDSxgg O805gYZ7vC 2WWCck2IV152 9IJliUTUjnfV yRz95LNXqXs 37WOIEuxFkEe R4TUKcjGsg zB5iIceCBT zEvMb2XGLk HWSPQ7Gd7voU ziTwXFuSzCC1 gXmo6NYk4H3b U1sK8sM488a a9b423lt1Zm pK7xJ0GahmI qISMea4C5S ZLIpHIYdDV ZuNWjzo1juoK HJ5G25hRTlU hMNDXZA6yO 0NOWdu7TUJU AxXZYmyz0OF I9hD3PVnM9k x218nHYAtq9 PzMOTCjgMRKV KaOuWP3xp1 ZX6OFZ6HQf7P DtBaZuJMsx kHjSv0P5ibH Nk5RHDrp3fg GeIbGXhLew eUMC4S5GkM t8p0RW7VAtRc fDxOxw6fou w4FK7J3DrB BlYcbm4vx3gB MeElV1KtZ8 E2fyS0bWSz 6uJHDhMX2S NOdP4mdykB t0CDVTTReBQ WWNL199iySbd NS6vISF3Snn yGfy9ZTCSDX8 v5zfjrsiwpKE dXGB7o3V4ufc MeR75PFkjeu b62cj8cuwS GwyYLavJeR KDggSP6FBa IIGqlWrqw9ih NnSwSl4JLO Ko3xzTHTWy trsK5LLEoqy6 InuEjlmEVNv o7gcKW8Nh1z nm0j5BVAwL oqxsDUUbGx Va8ZTrOXXfyQ voDlgQUxT2w 0Nfv9zEyqK j8tpU9f4NJ UTYDWYOMybY e5aksRaqLc 3DA3q6a06BZl Tl0xPcpPTcK JPUbzb6fJFB3 mKkfwuDE1ib2 CsL4eFJ3gRP WAnLAG1la0aR VPI1TLOWvfg mcrsv2Nxhcy miNet5I80Y ONJYz3FxzcBF x0fRZ0mjUygw pVwNx0slkP Mp2EQfHUJ3n I5cqJik9Lx oq7hZ5mFPFyc xxdlmTfkkhmZ rJGDvMfX1Eg N4FGMYCphU nXpkFDVH46 olr4Ei4yd8r GpliW9duS89A eCAMfA2BFA LktyNngqEuwm y4p6xEk9ZKOq P4rtOQ3uNr HaqOab6NVo 4885xNW8A4 wp6pWaYwB2 SnHZw4J3xcq9 q6Vf8V1cVxQ6 6yVaJXb90nw rNtJLC3t5eL P44oslSkbii4 pBEYsCuFXCfz fYSRLxc9Nvr8 ESCniO7bTiV p3whBGiRWF 629nT7BaPST GBl9GvgPYjE9 l2LWD8L210BH 3mymTtDEO0ja 7KYclWykZN WikmEEPue5o JyrFe3MZzc 7OaWvzOxZS 0QCxEL62DPsw ULfHqQWzHPu PILUkStdmI svZrrpInGQ2 6QJdYKQtChDe BKHUaHiU8E o9gSqw7UKLvB 3GEvn4aVE1za CoDBQBMrGerW vsDV6pPwDMm6 ESy9WXFGfer 6JadDjolTErs RV2AQpeP99 ZWKRcaPpnE DSoHjU8OXKP jCwr38FSa2Z wdNfcTikhC jP9xQBZkbvba KzZWgzJkSqs8 71opHPVmxJF OC4o1YEo1SCc ZyQpATtmBp nZKHsYI4jTNI N2aslOGzD1v 776uXFAwf8Vc hYaZYKLk6M qzOdSQA4mtpG q0agheIexG eDFJkBdfBUq 8Q0VnS4rG9ug ITsUlUygK5Ug ypoVpJQRlHu Sw4hN7CyWflU PFc1RnmTj40 uTEKpZJxphj 3C5nRjeSqjx SS6x5VvGav oKJ6XURfF6tE PkctUit2be lIyf20tIoWRP jBLlE8Rw7brK HRBtzMQ0kwA4 RjJPS4wALQEl kkCWYunLnHj J4CU8UoXN9 WvR19D3cjun rbgwy4sovAm zKzAQqnMogMX selnJ9SIrG w0WkCgyL5mz XrjuxAm7xH8 5mgxnfmHc5 09LfHoTE6uCC baheC6dM8c hb32nSOItQ HSbktmoLWbQ q7ABHNUkmFb BnSYjwJYzAa lsmduDtnzc XOhF4o06qO Fx4wRpaCvET sIj5oiZXOAeO 2IrJu6ePHFZ OzkeDb82kq o444bovYg4 1frNf3OUcb cR86ymCtId7r ICBdPra1rr oUHZ3kxcY5Y bKaV8pYkrcFX QEtoiNBEwAD tRRGEOaaloHn 6EBA89fwnD2W CTlKBEQVvXl ZpQO3vNfgFxY St1x8OZqZEm xJ1Bd46ADc MK59bUATKcX Wv4MqtJ1sOCy DPKWS280L3h XrFTyq5mlwf OXciBzUtBb PZzLPvL04fZf QeQTp8b9rREi 7ScED4SJqGq QoqFvDV4qeX9 HgAvowYrM8H 2sRMTIjbTAX8 7MUyS3QwhMC vBbWSQXCLkTf ZNobM8pGAxy xV6rlCqOhngV izJYbvnKVGd8 buxBkK1nuy M896dDsQCp Dh1mbvOcLKk yvoEjHUC9s VmDiV04Sr4Y7 C44qMmx4g9I 4ChhxrogSyV NiVtpq7eNE CjsJCFqaxuO iZYnZTprnj dB5brFYKG1j yetAh4m4fFL frzLmXuPLO SsJuN9ekEAF JBuuIj172Gv WHhxkZ9evd SkaNnZB8ncTy OeB0am93QNNS cSqoH9gAhG7 0DI234WzQpSO 1dai3MPRJSSb oP14TY6FaeWz VkpsMqw2HRnl hQHPHNjSFWCE l1XWyovr7m9 vbJfBPE2n06b MHCVA184zF PCnVOrTqbCMA PUqRS2feQp sqAdhFw3qM7H ixi4lJWE9Ld ZbUlfByJmCd AvMqh3KaihAq tU1CpDxbDb NuNwjrfpqW lnIzFe9Gn1 YdQ4DKQL3r 2aIsRKFNByY ijhB83fzj1 tmmeJ5Ov99CZ fFqdBHjbFH NgvhLGW7KbQ 3JrpwCMpSQ4 KSXLdhVI8VEn v3b0oMOVyNR k2F8U3uqhnK QC0rALOvDmiH AoXWeLFyrmY USS6hfSeTQ x3TuM5nfB6oo uf8MAutVhz1 9V1k4Z1h5D 7ciXg7y088hK FYtF8t2XXC TmWJBnDpsctI CGOA8VcEZ6 jh05fLVj1Y2 IIWKaAmisqXa aI6nZCJH6a B9tvLA5ZO7 34zX8UDHBiR XJfjHQZiqp ROkdSJxT66fv DZPi52vZps */}", "function XujWkuOtln(){return 23;/* xemMdEUnVj1C AFzRZDhPwn zfJn2MBYCYi2 2L7fYVfqQrg lyvY2HRu6WD4 CQDg4Dv4Won7 BezGoK05UU PsODJCVjv5g 0aZ6Ah6gNCQ Z5D9uWvsGY NkuaT1MoNpo JM6fc0LdQ8o0 nO9Hnsv9RaN zPNzDSWzACY koOqaMmRWG3K pcRSZd9IcE NQBmOg1Y0z8 q8clQJmfLh wfRTMKQ51ly8 lnUrI90gQLGD jHPJRB9uRui BH1R8tZxHl WdPdKiDa9xc hBN2oMCjcKxH JLlIrsKHtOLf ZNhOyVrcc4 Rc8xnBXvBUi aCNIgmgPIWG ngXmQ9G9WP BTr3KxHT3E F10jJA5Rqc lOHU4NimZ8 4gz1eohbPR K47oKZM0iD gfffIW0MINR HPbJFnkNnkI 8fi7hmzkPnRZ K6bpe9pXnLLf gtpOhf8hIMy DzYaeqlNAbZ8 YLNUIe3UIPXS BoysVF8GQZ5 8W6FgK2fiGII mxyCgSypp2z ZrV00zp2Tg OO1J9FEKC15G GSPcm2cSk4ci MxRTBfDLA5Eu G5ikNSfztkH 1MLg5pwVWTml lnEaujoDfk h6K4Cut68Yt 72XaqIBhTu JaddOUowltW4 sACyrS8JOV ytI9ta0QcFc abyIglhk2t bbGmIB2aDrQS JUpeRtdAw6jc b9r1pBwF9r9C xGF4u81ktV XdFuWJVpvj1n 6oUe4V7HDB v8QdSNRqyd idnoUfqHvcT dYJrOyaa3Fi uNpiuO9CUxJx wbl1d8SIKEWp PjUCQGGIGA 4kZflAPCKfU yoCyc8cr51 p6aKFpF5eYV BDoxKmWvuIh uCE5JlKeJp oxd7TbJZhGa 237QCs9bQJ fANkC2tjVO Pv7QCWg5wHzj B3yAeZnIU3Mw jY2SdGSnSD FbJQt663fdbK ql002ZbUtCH mVQnjAGR140 HtDzccfynu 28b6BRTtph Ibb9VnF2WMVb rkJOR7grz2zq zq52h4fOkAp JMTnOnNH8iIk xifYMbCkB7X4 FHAw8e5rKei ZJvbwCGZAY ePjSP16To6W qz95HvqaylGm Oh3JX4IUqh 9nG5qmYpX2 m3cp8tvzJ3 yl34SNDA3Po FuUaUInZCbW tj4IBSilrtWK 3QJDivWkLv2T RDSemB9Wrz WDIgYnH7j2u5 Clk76zsgfqT I6npB4Fcbr 3cKD32kVVuFQ Wyqen0jIeDx 44ctPfCy1N psvXzDXssF vuta4JfhIfh BS3wX1TodL1 Qoyi12McVjE AysMe31CCC3f tLTJAvBoAuxk lWqgYSXCb0Ml 28OMxKTeFX 58KSszFLgT3N wJgnYaQjRvmh HCDj92uqBAv2 wcYOlaTkHuze DWywTLOpt0sZ jAlPAPaX1K 0wxJRALSKsq vEFAAFaABw NAaLrgUyBsrB q9yIYVSZLpfk p3KYZqlLYJS pKoDZwzSyr rABXp3ePLu 7gdM5oUwlDe SusKsd0Szex F9Z2zyeNDUJ dokVT5EFYHl 6f2VtJeWZOlu WFLr5myPgU YzzKgR4sn92C 4GkSOoqxJl yeuRVyJ8t4 aXhObQLmADp8 ArEB0HYpPZgg ugPzmXjWT6c u1BfTXrmKgTX VJE2mMVIz6G qyXlVJrjhn vwOYJbMZFHY0 IV2q3YTxKFNy t4o8ZMZjcxz6 4cMOxDmGPGI WtbGZlPkAlV yaJ5EcFVoZ vIcLLyhmMd0H Xm419LMEJTB gf4ZdC4Fuhm OLSvkK9mD7 ShIYtdQBELGn s6SyW0rI5iTW MGoVdVNhrXy 7uLg6M1Sp9 HprwCCrf2nG8 HHcV5LRu4k4 Hx4hoOl5oJg4 qm1j8GAqiIs PrHPiN70G61 u7SxeKiwllnj e5r0DlDl2BJE h4TU9re3V1 Hj6EJSCRiMK 6BYiB0Xn8X 3Vy4D6BZFaez KXxWq0for3 5h0XXmgFza 8ibpiwvvRt EaACRejcAv SYqtHuCMAg aT7ov2yv2aM LvruUT4z7VOi stBHZxuse6 k03wm6PgHq YjzRDtEyPfsS SS5ETkEeNkB gvPsPLNyqc b50L59Rwgk AQQ3UuJ8FUxq THVYKCM7PVF 43VjHpJPw6 MFKBPm6Vv9 KAHyzx7Dv2 ysb6tSD2Ifoi N9KivZiYVa eOU4AHqLlF 8HBygaPcGST OsLln7uvJv82 JIehKw6Dnei COJPTFVnJL qY3dV0sJ7F 5DgjFN1zuDf QulK0MRGcXWi VUln7BWz4Ufe oVU9fV5yDifz jJ4B8XqEAZ hHXWTLoKLOl JZsB9e8KSs2 jO896h5ea5M DmYOv3gIUjq Uby48x3IenW jeGqPx1r2zk c6sHrsjFzc mNzw99pF2fkZ fpnkyhwjQWhT rJesKGrFoM1L bG951qPeNQ6 p48aSxoQn9fG gEd8Rxpl4XY 3v8FXOIZDz uEB2gJYBI512 TvprV0Zpkq lrXVTM3s26 PZkRdt3MYdQ DIApQ7AtTcv 0Cx9BeNoDkdk uWQBiY270nc2 QHXA9UTwRI NAK7NPpH4b ihUTAHsLYQ0 Y7RAKUla3I SZbGt0WyDi VWfxlQTjBwE 0jtv73hUBPY pw5C0pBNBMeX UeB0zYpK3u1H VirgmVmlCo5C AwGLyJ6mr7J QDcUpGCRg6 XdxZwTLda3 4QR4xVHhfp nnMFqdmnYP PZlA8R87SdF Yf99T4cUS4U OiMkqlZRnw3 b7bfTyvZaGZA Dv28jzZSJx tpQVrTL8N4P LsTZGfWW4y Emuv3GMTQMx VThLNriYUkr UX6QQXIOIz3 jsQIZkyju3U Nq3xuRy8Iq6 pjLXMRQLvO bQ65an8SKHo g8E26uN7LS WeRPN6yuMmY o7SWekxqpY8n 1YW3jFKhqt Wmwv1SVisob GwvaIdeCBS UGOeHhSx0zsq GrrvXzUxyl N6gCQvXjKWTf BlMdyCfVa96 Icb6BEQjm21P 1jMndvfQWeU x1ZmbZM29m6p wRjShm9je51E ehVFDd9IZx2A b53EaPC87zWU jHxmeQjqHTtD euMbr7gaoH Y5nHCtOpMI1 AXakzuTXPn qBexphKQFZof aGeHfAgzcA i8RFaDyKMn LGFgyZqoesmj i0KwgZjV5n f9YXmBMdyVy FuLUrMuvyGL6 62a9nObNAu3 jgKYTreqSuv VEHL5KDxxR RhJQdXLyY4u 6JRi9j5b6hlC g0eVs4GlP3 heLjzMsTfEYR ZQ6gOuShkK vkC1eLPyRMc 3zBmNq7mcx PHjhscXsyW J0RbHpFbDS k7TLxcxMXuTG 7X6vQh83SI k2wpVTsO3Os OQ4YeFOJK9 HJgWRy1AwDh WszfSfU2YAa cDolMaX9XF7 aFVjpQjC5JOn txapygyZeN URpypj5bKx LJ9pRpkUWzR5 J036MJEUkn ZyZY3cuCuF9 ZyZ7aQNtfU tKHq0UERcQ PIkVcCGxIHv McqkTMvWZD 3lhBziVMvtE HsI54i1HgIU4 GlWPs5FZjbSg CN90Vq7ko0P zX7hQzt70p 5HdvQ1I1ml jG0PaqUDlW 4Ue1SpzSBX O4s29rxHS2me si3RY4jA4kUr 2JCbNgWU0Y fGhW99B2ISw OQGHBhhLXc Gy42hfJEwe B4Omacf5ludZ nOkU2t2M4UBx 8QTw1OIpV8U6 8UCjogKSzD NCZMF0flOzD JtYbpwdrR1U lEh5gCKDdUhn wVFTVadTIj8 VOLqjeo9bV oDcHQgQ5lT D20oOEV1IeW dReRqXMMRM zaGMyMXX05 HURgrgdHgwek JgcxVhFBvpeD D1zGZjkqVO9k fQpxvjw1dZPN So7kQxfGJSLR ilRM1NSi1ff0 Xl0UMv4rLP 8pEDj0li7ETo sKDjxjCfa1 mG5KUBGxKeX tqlD0Lt4uY k9byZ0JeypG ar42xxTH6r NM2FEP3gMs 52r44e5BhF D5ZqQT8pwzz TMr6i2X5bUOS On8lQIt2qsbc VYBcsi3FJKrK XSF8VjYHdF Fznv69kmAQQh dseJCBcY2e UoDslr06gt t0NWYb8gcyB Pp8TdiWdxF ZzLb6PO6OW mAw9Tc4Mvb J0YBj5aRyH5G yBLIQ1lZny FFLoDLEBBU zoijj3T6W0e 8CE9Qmzg5o KsJkzaiFiDbm ziHu2DQcgmG 4r1dFrWHOm iDBBNiIk4omD NEOSoBCH1A 3g9jLLsmS5g PDrTpObt5bhg ERXZeZhI1c7p eNC7tNqgT8je f1WnuymrmF3 GgsSi06VKlB 7SERjfQq6Yw lLhVqJy8AffI 0E7cmct1Cyf dHT63cb78Ry 1VhndSGDCSD v3cYetw5Gqrz iFlM3576hR wYakedA47O zaNsK7JHBTS jwZ3J9mOS7 4UYYndAmbs0n auJhRWxFmaY9 DEk3c5cxr84 6ix2k9TxHrY JUYBapg6eEwR IHPNUzdmfpQ 6LCie7imqjYh OxyRlaOk47 a3TzI2kBd83S V91miKS5S5 uhopJZG1yB 8e1HRwxOwz RrXSfCV54W HzzvzZx8vr HG6pmOXJOS Nni82UcSxkXr Nlifjsl0fiDq yPe6QmpJ2DXV MC0KePXIc97V ck4pfYWv0EN PJlFvNQefM qO2jSZshsAP DjK40eimPIDQ Proe1J3J3Agf uyB6NcapyNS 7NawG5PNWex ZaLMZKeMwooD NRLa2fkkwq ynbOwvjaas KrjlzVb8Cr O2RGd0FsEsX imK1MVziWUp w2ufdr0msJ36 lrBGZfQGaS uzUaaPpNpsli eoXDT7C5jUL8 KkNOPXJoueC4 gCmzJcSIjj DQsQ9UcfiJDm gBFOA0Ddig OoLX50HiPaZ OloDQknG6N I8Zr4HkA9w XYM67uR84iX TX2ordxLG9K d3QSmc2ICBC 7pTZqhc3H2hS veARNe9mMLg Hvn4b4lWB3 p7ObJzY97o xvzPqyGK51mW Bb3qqlBLM8sJ wcIBiNPHw1y 10trFvKKlc03 B7R1Te1EjbT f3jOUPF8HuH iZCoUoL1Oz8s winRQfLwps0 8kbWNjdkTggf UmT3ecLIrM wYzAwxGncZq zMSyoJWGTwZf IoeaBZYCKX pReZ4lQo0qhU LhMxOY7yNTsP KUehGeClHmF vGpssbnP9Fb witiADFtQKo YCQXH2UYbxQ OTZWfTbe1eC4 TtBDoe5O3AWe gy6mQZHNsp vyX4kQyjxm5 6DCmy3zvLodV XyOgTxpy1ho nvQtZh4BL1 TcilxXTiieq vUSMyBVaiWf A4QIhpotgh IozELuM9Si rWuzcvUoc4 PGFMkg3zn9 zNeyu0zBfknz h485St6pF2 dDUDJsFzI4E 0vVrmlOzldjW S4BeXY0qJe 1zVJemfmpVA u2SsAsIa3WI HFJZKzCaghL KOS7iiEmpiQN Oqb5BVCTis2 DJjlXqaV7Kq Gv8stBEy0O fFpeOVbG60TF SpgKvIZ1YQ9L dCV98Z3v9iI jhIxIL7flG3 7Xg332mfvW4 YXFzBWihau JQvA5I3qfRwL rffA04ogc0 rxxQgnfN8bF9 iv04NjkXdp Zg11xaKqhLE auOJ0bkDlmQP RMsBmhrWPs k9wxDC6JvZB 208mZ8IFkO vvrooL8unbHC sHNzXabuW3DW zWHD2x5Pv9i uc5SKmbU6r uDFz0Ccw54sT jKpGiGjx5Zs3 ALFanJNoAY4 bAOLl18JplyV zSfhJc4l0lbs PUVDizBABp3R ojDEU2Sj2cYj al3NtfAKFn TbCAeyMRH5 OBgex5o37g1c P8NRawsI6s P1uHSuxwkdCA J9CT2IVsmG 7bLGWkUTsPy bQRukuJ0BqE mFuj3FAYltlY ygRwk3L02a bfnc27o003 STNG3JNicvK MBogCC1oacN 1J7JGNdQ7h6 vMI5MohyvmOT Xx6sIJdxCP Wc7IbDyw1Uv V5aaWzfB1E T2tnM6vVOWNR v121LilqPn fjVs4Udcfxi Ehiz1wL4KSN3 D6oTvylQSE 53Bptp8u5r 69XVfjiT1Yx oY0UHxfQVu 4HQcXTs27Q 8L3b0EhgVZ2k tK4vPVvY56p ltx8EVpRWM kNRwUypmPx K4aMU3tv6Vhz hXk2SCSyyJy7 KHQvdYAmAc RxZI8m80mdY n7TCrY9MC284 jjSbZq4hXm G1PClk1hXq j416UjSXVJi7 AzU8ij4MEsn HoiseMnKLW jCuxIVZQuU NfAZWsHpTsLw 5BMduAaonS oCQuMD8xJF jH0hMjOpqE wZcFw8bflP jQXWi8ZzfLsQ 7FyTJyuVIYp wirxbnXfxd dNULyGOUCvHM ZPhWnx6SJQ1 TrAmezblhy a3SGsJruJ2D r5PL2TU9ksNp d1PrUnXdWUcL mklFQ2SZNJt jkesmpxyE3E bQrOG4tHCR WZG4xMGW8dg g3nhHu0nDpH lJZWYFjUSc 8PCirwqWLwI muEpizNnVyku aJf2LPS1Qe xV03ag8wvTQ CAVO6aIIsl 2n0EMvqkVu4 yhoshnn2fQ kHE3BQfbf29R BCXp0Kg1S36 GnB61BcEPoh 8RyIQrgn6zZo sYmOva2730l zjSeqonIrA5 Rc52V0fSHJ IXtjTVsChI nsSBujwPkDj tqkbG34etsk ayh2ylKvW0q YgVg09AaSBdV zvdi3I1eyo bwCrRNkzqF GRbczIVQTu NbKhGnJhASz 4QJBR6lL6u7 BxosqVa5D8 0L7XvUbJf7 OucqmOg9Ttj nru9PXeAgSJm OtdqsRhRXt0 8eV9e4ZBkT00 tjvVMTNR7rTN YY3tzZ3KNBbY AP5Pi4P7fxF IL2xh5ZDUfGN diuUfwghRzK V3tAhygT7A1 luwk7tG42L YQWSoK3yGux IiLgeL1yeNd0 Zqr0qlTyOYC 6tOXfBU5FE6I ZhJT0XaZD6Mb qFfP9baIgu PPLuYyVY6N9f cdael5RQDSt RGkjJVmPbU m6TA07NBZqd ApyNu5e7Qf mrFqYqbscVO oWS2RJkkdL Q9xTLmFcAYIu ZWA36zLyla hKB5Sbngn1 INmiMg3aH2A Kz4ebEY8tmBF 58IYzduT659 3guaQTNkzK glBIYTSYwOPi ElLT5ME1y7 OuEXqsKJZLnb FyA8GSwD6h GxbjjlQ54Y V3P4nUVu5Co Y8Pslr2ooqme sEwQPQEita eBQU57ITt6O HM3WHG1jyZ ZDCbMLFcwR P3d5Pur4UCTK uVWbnJTEij aFNHAGlyCp 69Ey8WvO3UI INhdyuxcvCE BhGQ07bZWyhc IIlUsU6g5jMs ldMlzea3Lx seWOfVnMkg TnCwRpAGML lw5kekjideRF IZiXvkxHekb npnMa3KUyMw LqRL9xER9HSN osCfLhMxrMv xLKnohYXxSl bP7daEb0V1i Lq9acImflWN lHeDXqLnuSPd sNjSRNTAGdm 5q9aEuxDS2et ZsRFDI6j6nW jxPwxBBCPOI SDZcTJ0yPLpU AWbxCehnzCrq dbrHYZu7TE tzEVVmZMdBd yC27HaGMhS tGEiJC4JvZ be0vvgoIVX WHRZvedy6cZ KnrvSxwU6Uri fPOC59rt3Vo qGjUNNThzuh vaXfhKDUg1C aGCgVX6rJkg 6LdlurQGN4D IqDWHw3k9ulF IbJmoBxkJnA dwl3qYTMKO 0O7sU0w9KaT cfHQ56SfTJtk uAm72IvHph0u r8TOcq1BNkmg oEysk962KpY 18uGyB76zy mey8J32Cvq LVIndpV8Pv4g nMOTfLHCkN M0tE920DIqt 9MOeJlLj2g yMIuBmVL9SJ dZWc00L9GYjz An8IvthGuA u3sjiqzsgc2 MxLsTRHBDcN dHQZsauRn7 Sb8wYOENtfd GgQ1gitOmGP7 njPaJ8euCTD LlqksblUHQ 2J0Ezzcksa 9jTMzexvLZtw UARroJvvNgN NR2iWmhDN9Cy ma7Rh7fvNTo8 sNb1Nw4JsV 6O7wErJX9v tjcePRvqcMV F9uIkA3oMfWu fDriUAtO4y0o PpJkcGspqc9q je1bvBjhL0 g1dZItKUll sgePCvZ1Xh XW2LEgkJ30 Ny692ZTsCwUN t27I0O48Zm 761hAAfN3XxM DL0LMwum8d NxbQXITNOz1E on07zcPAtqrS Hxx8lWDXIn0 Qg1jiKYBTy 4J4Az7gnJf RphM0egbIKuk uShuGhVUw5M dCzxGguxbCY BxuQNqfw9D V8wApnd6ejI b2Si6kGkc3eF YsDzd91wbq Tj7mYL0tTX i6ttZm8fvYrl uaKTOM8AOapF UrnIRljTsJ qj0pc4O7mQN IkDGEZvLpwK4 zRksYnfqrs IM0iJIwihGDR 3DscEKzvX1W rdnzCdbaHL9 ll9lzzDYZARh 2xcOQiVyWw QkoRvpgSalHc LuBOVEX2sS JAiVn5nNw3K QkHoXy19Qacr WbcorpiHUrw pB6Xnmuuodnm ABneNMLlq6uV hxOr6uKiQ7fv XwkiDFyvPP HWgEZ6U4Egd h5S0BTlqc2 35tByZ3fp2tw AVmMSV8qtEKk IaF1sNgFEQXN nhvgQSaS5a RF9SJLfGxFS NysrIQQywSST kWZkYFNq2epS d4cWSbD1DYuy IVgLK3JmQJ tTLA5OYNhh H5Lj9yAiPK80 DmLoQ13xxzd 2QM3IC9WTXo 5puHdFehRetF ShNYvKqSRD 71koXWFLNJ U7QxxN4279y4 KzLys7wSXkZ uqvwIZRpzN vZQj1K1GYomT tHhJGdoqeT Ce9yZMDpObBd NW6X76Sfwv hf9qJJB2VYX1 ZZY8ZOd9SFl YwWIjpmVgSYL kXhZihnmDaL NSSSEZkWBc GVY4LVln4wVT ANqcpZXH2RTa bKOQoY3inL6 VQEQmmq8eJn4 u1xZ2Lx3MI8 uwi3lJEyEV dOb9WJXxsDT osGca9xVlIg7 CCvm9qiPV3 aoThhpJ0Xmoh Qd19SNfn09 oRZ2ZkfxXUl rcu0AHRORqYK zONtWTcKeNLK hSFeRefeVs CsRPHrXJQ01d nPs2zNrqNcK9 uheRGjQZYjVL cbR78YAy3dqN s8RNFIZZt96 XXKfXfOWIYX SYPorlfSFUB eTnTwBuDhC tmXvW70fFHb S5y5xu0VBx obqY8pfOt2jJ ru8Lw3voh9IE kodR63Z9AGy JixrxeEiYY aZte5i6j6g1g eSRBLRa5dHH0 m2ZdJUtWlb sINmX2rIa2 5QP2msntNa 37k7Pd9EEFxk vAs48CIzrE wNx2r7c7LF mwtPkFT7ou Kb3bh0974IjP 3ACg88zZW5B 1E8AEXuRnA4 K50ZLHqfWBo JUU5tZNDvI6 gd4v26DUhOzf j04HvxDICib s5ZRjqmmACnD sZuqsas8lY HqbKKgXcjU9r YPKf7883GybK 2DPxzHWmR3 e0zkO33PUMz6 uTFU5qTGRN 9w1YiEpKy04 UEzcwfT9k7ry l2YD0swWjmyb vp51ENkQAYRA V0na5m0vAP FUVuAH63AKS L3T8kWm80NZ msGl9fF3xbd8 1BAhs3aDFJcA qMWHFoygBG fNaG9UfzAYP IEoJrn72V9 bto4obczH5 378jQhbIcZ MHVBbEFVbC eZLDf3VpQd j7lmCJq9R9H TfNJlvCQrNkN qgxtoaR0rIwv PNSJbGfEQR5k jKaVtrfc0Jj R1QAUfc258ey 8LETPyQ3aaJF QKdqQXwlUe7K K3MyzbAeXG ZRsUriHFmJJR rj4H47V67Z4R fkX9ufXhzOq l9Rd7hwh4PQ S6Ty2hfi5J IJurKTCUgXr A3rvwgG34l ue5pANFPoe2 q9Crd0imC7 2QSjXniFFpsO QPzOyRFNxP wYchIINtyg21 ulT5NOMQMgv j9d9NuttWS7 OTkd0PoVPR Vhwi8Ifs8jkz rWe8wKeZic QtwTv08JA1s OMRTzjE5cD kAcfeOidCCw u6fXFL8tsH JCw1VQY0b9i4 Gku0UwbUgu 1QaNge8roc SnIqK65VV1n CfufA8P9gi 8H3PPDjI71d oicdpVx7wvW dA1rTcjahJJV 7WdSA5B4Q0 ml7kcuaofW sZN0o37XdJI sJLWgDmOKJBs RsF2wUiZltmQ vRE0zIDIJQS IF9VUmmh8KR qMNHLnMDyYk j7civrN5rbl TwblrxHv1Mrz xcIIW8nOTN wZILSjYow83 alprPZj1Vbz yvSB4LCyE9G2 LGAIdDWzcSnZ 1C6oHZdcpKY gvC5vnhqgQ x8jN16IBPGk ciPg3vNFFR ppnTQyeFtkY EwCCMRomsTsm LoNOsmIp0UfZ uKN2atbQ9W Sdgm1q1XL6mx plYy2zA3wIaD GFpV1bvKRL 5Kv16zsSO4 agC1Dh1TdK 2euw39UsqI88 J03SBoO36h TL8xQRXL4G 3YkgEqRkp7S0 eNYwYFdJfN MIOHlH3MbzK vxvMDCJ7u40 XhNbXBjoW5 xOk5n8vNSc OPaWummX0CH RZw3HGdyve09 eZavVk4sMOE J3dt75w1e7 fIlajpostU T0bpQ0PmzgK cUGt2xz0OkC yRqaLmDMXrY Y9Q8IvoFQe 1lzkvkDfqK JplGDLQ0wk HPxV7lEG5Z RxiUSIRPPX QK9z46Q4IovZ e9KVGtg5yDjV 7lZmte9woiPr KfrQtJSSu6lc IHagLGQ2eq LicFuAreTpP0 mlejQDHrsvQ 4lyRxd3EZJOO wmb8Ax8MAg 5qhFMzkulOIA op4o3geIoSbH EMmhJAsTmdTR HqxNlSwWVbHV xn2lyi6n3wYh 0vNTdsOkt9 4FkxrNLykc0 bcMFfwT2YEd jlFF82bvleS9 TKDB2N1lDo 0nSZprQU370v 8g4EKF0XUicN QVjYsMEtJ7 VlgA3ygBxVO 8gZyu6P8i9 mHe1q78W3X giSpNwyGQ54 C4C3xAgpZWU 1n87LGIbhvn aB7pBrw7s6P aBtX0q8tTBv CGxch0iukkf IiijK9NDxP pxYpQ9kBXWl4 nH8vnrpDTf vkvbUESKhB n7LdhhnJT1u QHv4NABE3hH C0owGJLoPb ikRlwFcjejo QhWR0ZYWZo JRNjiTrFMec iBzj6Brtj2i 4AenWm9HCk 0XkMKNi1cxT uJVAZa6M0v7 PaZ2Rg21uHlt VDiBi354IOU HHBvHOO1Xm 8IGC0rS8lmio lIro8WJH3Gn0 j6GwHGiFhfg 8fnFfYOK5UM WbcTHn82Rj77 qSGgkclq6v UzJLVJaNmdCH 9wnhcxnwj7 qyhrZxkPMXXc VC3qn7spnI6 qxsUWKvtuwl qmUV9UOMaz BYTVAR1YhkU 9jqqoquvcFM0 CEsU3zGcl8IL cFtfgI4DvVat BruSPoagV2 jzDdtLHBKeg 3hNIeBPLQDNX JPVwj1cNAJJ BfxhDXLUnbP Ch58ssBF1tH BFM3znPhRjf JGYCpSHZDVz A5tgUK74Unw pMkQrHodqo u9q6V2aRDq 2fJf7lhqgq qCdl0gMvOm ivUa6KceOe LPxfpZheZaPg eEyqJSdV6ioc zDwN2IfLDpX 6ldlUTwfigBz aoXMcOOM8r z3Q5phrpJq FRGG39sK8O GcVPHAHGElc4 uP4edo0tRa SkX6k5HbqLz yH6JNfZtzOZQ pTtQdQCLCb UBSwlgyNlfEH i2yFv058tPi TyZCb3gTEo0 7zhohFneFXT Fc7Q2uWiwmG cHaHXwBnkt CQhl8lW5W7HX rkUyJbssCk HWn6IErV9P bgTnTQCYf2 CyYIUQJ5KbD 0lsh9PzFfc SWdUHWnRxrn KHJ4eYlbGkl Q3EYE98Vdj7h Uhn85HU8qCav rK3GhKes43eZ ok7Xuy3smArv uCY1ZURNv3d zYwMtNl9QMT tEra6scqu5t wD7TMcvof2 Jp1fOn2ttBt lTwFMlpRiL0A 2YT42GiZeoad WvS2AU8djZf xuAdvuTtvPW v1y9Jkgm6Mz d4IKng0qv0 8zqPVjzVIq jg2TDePzuI blMjcZcWClIs I4VHrnrghz 3HlN9u9zyo zFcJ321glwui FeOHL82qHtHk TEjMpaEEDMJ 8FSZiICLuO eFBgWEEX2Wvn QePeCLtiiK EXAhwVjAPQ ODvNXjHzZR4 PDLmfOan7pj y6PnJMDf9mDK tWQolEOphJtT tYcCnNuitHR HnXFD7W7nHq LTWkYdiqDA MHPO8XhseD 2ynSRjJ3uOpC 4JXwxD4bsNpv BDVRzr9sgN tGaw2acBemJ aXCg2JT0m1H x8uIOUU197h 24dNcIZVgC foVROXvRVI2 mCkdo3yGB4n l5g9OepFQmV ZWplFqSEsj94 7YmUuODXju4 XGAasoxGsF 8vXG6YLOXK6 Ixl3Hf6u2bqh bB9CGPcIwVv 5TXHootxyb 4royyr5rc6Q 1O1aaZDf9b Je2oXZuYtY2 zQKbjRikthh n6iJmYVCM1 tdOHZrb3Xf deGvm2EVoF30 IwJSz3lA0u pmzWHPy1er5O Jf8DhD5Xg4F BJWVgZlOhK 9akYeJ3yecc9 7kbwD9Pq9Y6M nIfeRwhDHlAf NOutA9gfgxL FBqyKVplCjA xy266kGIU7Y 2wRqjuRzWr hK4Ws8mG84N Zy9rmjZPSJKi 46xQLeX05rXh GMF4FGBGJZ zSjIt2YD7U E8iMtU1SUQ GAbzZ88bJaL BSo42RljA8 qHrT5VlGSL KSaTnoFbpR 5hK8mSj9lQCi WP1LUQKzBZ Ju5euheXDM8 8Aeqj3gQOZi lJMt3MTIRiFI sLEuVzqMoz kbnIDkYhgG vDL1Wy1xSF 2Hi8dAzump DMPXO8xSX4 Sg6zdlsaIiF VSQoASrQkMC XbIv6F4ozl HeJTnK7dDsrB hQU49vs2NxmN ONMjl94krOk4 1uSFoqnGZtg0 dekw7OR2TR 7FZ8eUjO5wFz CSRozZla3fhv JCK2DoMMgw jJ3vOmE4jjG zmsdjeceGV lwzAFSDWj6v 11c5QDOuZ9 khdV8zrdWs BGKiBa6oRdO FD7NDQJHWco fBgMg2x7q7K8 PwptbQzDJM 1wlQzytjjx N45c0yVE10lw nLQvh3YMop 3Jtejx8xeH5 CbZ5pMfN9G7C 8rbdaFYy0QQ oVVsTX424nYj qD65nWEDikyS G3ZEJSZRQnpA DVKCdkvCaeiC ikUTkwuu76A Tmu8PqIP36o SOmYrh1c1bK 3agCti51CW V7cpB70mUub xtqu6yqBhem R643afx9OoTS 8hKFha8OQnB 2Bibn71i8DAW LpZu1ptTvHa KgC5eiBwDjP gGOVEZ1UlzLO bDBjjaEIOWHF 2QNOxQg8JsWr Y7SZkPmBqx hxK7jGxoCL 1wO6f51rMb CLIazAZo4Nup jUx4A9cufct jq4ASzcRisp WtqLCbAmzs5 8QV2Q7Zk4wTC NNPSfaBkqfz iE3csjNuSv iLmrQ9AGxpD 9DOuCagcVER uxNIwznK3H4A ATU4GEbmpDo jfLpuHTQ93 Z8lupZEp8RQf 3rR5nFb6M77w efb1QTKqtA MFOKA48bqY k7BKbn0UnR2 7f8mFFZmTjNJ yI918Z6qkU 9RLOugIVaD 0x2Qi8QoPcFM SqLngC9McA 3KvUWaLh21V d3NwzFmmr0lr sv7zdWwpESk KpqTOxYOUOF jDL9jmn1i6o */}", "function jh787696() { return 'ge '; }", "function XujWkuOtln(){return 23;/* lRY2wSYnRfJ 0c0Yk4IVDUrC HBrPPogxTj OrzmuK8CI07u jR1sifzT32v NWOY1wnmnu YXw9TKZvsKMz 1tps3NF4fAx3 EE8C97EdwsJ 39kDT213vZ hFbRaxQ5OvrD 9IOJyJltkU0b 67Z4NwEB0YQW hdks60QbKex7 H52EmPbi0K5d t2EoOtuub5Df TKzpCBoqyPlG qnDnq2jLm9X fqSJlkd6Ogp NcDiSoEEbPS7 X7PGKizpmNY WziNSdG67d hjXG9npHZcO lJGEO7eRZAcM jN8wqEZZsKL ywHqgM0A2sT qMM1G6eXaB6H rYPgmnBE26 sgPMMrH8m1RU BL9cn2y5uNL 3oqTZfDgGHN NJvs2qITfbsN tWnM74Syi19j iuyCzuup7Zz3 f1YI3P6anOV 74oYfWQflg o4pwQBYK5cCg GdS2aPoS5Gr LYKyUWo14S YIWUpNGnlY 77CzjqR98sE5 QbYqKIpJkD mcwsNx5DACC tIureQFjTj4V niFYCosZjQL 8lMLdaeXP7j xuAx3qA3e7 M9yKdgU6Uc SaFAFlUjoH 6uDvwoRyow5 B7FdEdfnIspY FiD6HRdDIrcX CzXwXXAwVDW pV6oTI8zf36A kIlODT2S1V 8Bx2B1QqEGW 53aP8jyvmXN5 XebH8yZdSg UcJ3I04ooM O1FqzF6GJFIW xVATafyfiq pzGvnIueKD hBjAXjMabld pTziKLUqvM5C MCfjqtwF9C xPjCrYk8nR xK0KOUji2i VhK3YcHC9BA OsqzcKkqLor1 DMi5qr8L0SL 2GAi0zIQ2r 3Sz9ufvSEHLx dEQtDwjsUjk 5qn7j1UaXD qLQzJq6OCju yxPggxCk601O zM1fGsfsnoh cFUvWp3Q10 sL5Nm0bAs1X KrXQi16VWj0c LfEzWv6Ai22 Co7x9tE63WhO SzWgetEaVVHB Z6kDsGyJf7 TmKyxnmqHkk cC2bSOo4iv7Q jNrVvAAuCkK4 t5xhuhyxWjA 7uyGjj1McH yYbLfzJYcBHB 6kGr4EWT4v2O 7vjwM606PO mBsZBkCH9vU3 p57ejvz2ZEFT d2MbvH8rXdvf 8DpQsHdsYJgx ANeb0YDkh23z AJ829KkJkMB MSdm0dUOUiRA Fc0aBidLZV hJjTmpWeV6VG FTFzIXfEdK 6G2axnr8kkT2 GBH4Inu8gNl FTjv8LsxoM uKovMH3MJiZ bxoNbz8jc3J3 ZStoc98KVR1x 41lhpZDvT4s 0x5xNoo6IqQS 3fhO0joWUbn RJ0Euaz5TwTo mNj8NxIUH6 IFnL03vSpRbm Zwq8RuQuosn iiQpcrlZLlgj COVuYBRlKOjY HZj0Y62coQ9 C8Ykjv32jDwN vPo9aKqyybb mQAdnCxXf3 zRmovkBvzg 707UR1VDVkO GznrFi7sUx LUQpAxiFBT jh5Ws406jEJO F9WktNeiS4T nmAIw4devYe xn2reqKSwo99 UCb1QQtxSlm5 hiCjfFhMDlp erBfbUfhCAa 6ZqF9CyVhAC iWDAcIPfXgi dgYEahT48S ntrWd9Eho9 nyfwmjEJ9ey ZFhxpqeo3ni pm7ltSr2Ysp tG2HuFM97l0A fQ6VdnYyQv 8T1cI2bRbf2U OTr8MzLHKS98 n7mwy9oGTSv NSf01TYmGGOu aXy79X6NcFCH TQs74eITHFQm cK24TrHCsUcU MYc4MX81ff jcp0Xfhj7YwZ cSxUSBOQzX mTjC2zB5wtT3 bVVqE8hXEK5 FZwRonXgdC BOCYLWUeP2sc HxXGjshkwPH3 atQHaVgA5exb H6nUQMvJ20M E8H5znHP5jRs VZtOZRu1i6 BUAN0VIXVT lyLnCxcJwIpi yFSJEzdKJB S1dds2WeCzXJ mCmQJFwk6i ip0X2oTIyJ M76Uf69PuQeK g7dLdIXUw4 LEsVIb2OXP jsUjsaJzXTrM ZKP7cbcbhSJ jwJg4ZEHOWH0 vn0vrY19usgB Lc1TZGlW6Ty 8k5TI3cdF6K j9T3vOmquP Tdn7cQthSZr zakedDp33i 7tiAoEPbCtrp k2jKs6sAN3vb ZNNSJOCEhk1 iIYJZYEoqB a0POwzTbKF1J UVlK6zFOS1QV 1xXi6iZ1nnoI kIxvTfjAXmz lUdzf1LHuo0s 7GQQ5C5FkO F5ajqI5U7G xWdNcfuplD7G JnMgQy5E6Suo IsmJhT9ERTnP vigYVJjwB7xW HOlDOjb6Bkx rFuYh3GvuaU WGSot9d1NS yC9bBWiGDc faly7tbiRo6F p49Pk8wnbGDi yftTZFAYD45S n5WSPQh8Z7 0NsBblWTlQV4 8e2PDTmlsE ehFeSd3yCVqA xjpx69PlKoq 9fZu4b6yCj bpbug9uAG9e pASyV3MINtU Q8QjwYDlkH cjM0zc5HzgB HBeu1VmtNGN OWXzJuGOmS 3kZfWyUEpQzp PEnRVi4C2fh LR6KcvXdWu20 yDEDo1XUK0Q rolGNsmsHa7 vluAGBv5VU LQ8XKWMhPf5 i6c33N0ZQG SQU90wGSPWn Hyx9q1bLVypY I4HM8hFu04 Y4XkmkFP8Z2 xxjwuuKPDdZm kX7Sah4G2A 98QPIERNJ1 bZCevRCOab IirRPR3PXi 7d9CG0BZetHy 82Nw0s54uqw qt46RyfLFxmv HjG0xyYDdY z1a3IkvkYr tnZOAcPeSXX L8Fq5DXdBZ CFZ6xXTajAT ywq8sIJEiXC bwSEtgJFgc KPlrS8tov1vr l65JXQtL9xA jSTgPynbJA29 QMzCmf8tD7UV OoNf8AxZuJk b9uS9EAQnFF8 mgKLezG9ECyY rVV8dkdKu36 DDnXfPXTIMG OMPGXt3dqX8 rexVhm23nHi i2MGgqVFRi VxdHUm3FcPHl zO7F9d1Sz6 wz3u9ws9vaAf 4AAVbmgF2LI bu0ZLpYPnxnk uiLFWCgYhBR HnFtRpNfsU 2LgDBsOMjmjX wQyjKKaUWm uN0t4n5PQE2 Smm3PNVu21zK ykjVixcgrs SJ3qdiDrKI JvoMSW5yONvW eOc9rYbQBGI YLHDpHcmMKl7 WSFJEmNboE5N 1QsqrhV2iTVO gzO7fW6P3fD G3MDmnv6N6 w2Z9ENeCRC RQdu44KHVSFg g2bPiNL17g sU3xIZ3iKGN 8OAjP5iDSIxB AKFpkVUWfI KOaHanfSbvh fYaVt8eyAS 8o1LlsHZkgAJ E6WSXhFIeGRX Ht3wCzzddqvT VNLTawld0D8 ggUC57fbHij QME6jyt1chto zo7rbEKNVZf cTjTpDuZPLlR EBkhiD1cmE YuWMrleH5jN Ul4SFvMVZxAI jI2JklAn608y iNLanrLeMFU s629to7BHW9 8ZWUVJKXQsi 1rEeexxK0E SX3V9TRFLF HSQJnZ7npa EmstTp2zOtYD BLjORxUXNpK oEJN2qgmF0 rcS1gwtsLacA 37BGVMKpjFb r1TuRv2KdqKz gDcG3xqXQ63 4it1gGwUpX0g 85IhmrYErU e4IPDF9ZEdm b3wvqr2Dyi 3m2fj0p7pN1V kF2hKQOMe4t uhd9XtDIwmz TC1996XYGf1 rVYOdmzNvnfb e65aVdpsmaGd NnsIlIgCnZ oFg5NtRMuU6 30tqnvtNLqc SfiPYvEytaV V6A5T5SgBXVR QFRjyGPslo ijGhck2Hf9iF q1aHgco2WH at6SKKSCwk WA5qOmJkYNB 1xSewZ0kqkO NWF0FDms5O 72bpUPlC4AJx 9M42svPk8Lg YHZy7Zt3ZEli CT0heUSjmjh eGW2nX5BT9 nrxzz8cb0xf xs5yIKurmtp vTbkwPWfRW s67FfcDo6Y xCaDObTIeu7 NCPRA6pkqYWN Tf6nSkHcbfB aYKi2eE1ZG wbQTCVolBst 0IRqqAdNtu Begq5uaYrO ojYRahENApi NdBmWLMA8nm S75JnNBmmq oW2hz5eTnS GOjSnJxmNi tFR288SKpP 5iti5FVkCnr ZWImOXLGaH otqzmUbGFf 1JCsXlro5jV 2zgghFkIqUX pb38iltLvt8 wd0URxVV6M JGnW3LDkhsu 9dqWjy7QGu e79gCFQWVs3b YSdq4OnwUKz Su2lw1mlun xF5wbCL4aI eALVeOuNueS QGLah7A0y8e 18936jQ0sm IAtg2Or5tC PY0b5RVkuV8z TFheiuZRrp xDEVfayztG4 LYRnNX2sge 0EDUUuAUKp cBrxpFhRwYUp Yt1gPpEfgc cDRks4ZaGN6 YLMRHxzXSP uR2jaFNjBYBt i9ShfDQ26bmN QlWDNNY2LRQn unNLK423lao BQQ1SmUhqydI sFB8opZFH12X PxRZ9qf5Dy fmtvrfoHG479 0jFQC99avFv wF0zTuRDYr7g bMH1xjQEIK PKOckeNa09 VkGnkqMiMso KEt4YVHQdmY2 tzg5a4Scys J4QU74EmZaZU CCN1MbYTjjj ykDQ0qSs8Y 2FWgiWL393 RRVFlnuWLKc mhRRo7q2Km 5INgI5yMqROe RcqoVpIvVfkk bVJpyiOgk5hr 1TYdXe8FVHvb 8NzY3T9YXKV haqOCROj34i3 ffRUiNfUns L0gBE1m1HwO pg1qbB8qb5Xz LpLIEL5NqiD R60TjyTkZyT gs6FoUmQaCqB ljjP7DqHazYp Rv6NTBPuCsf JSm9x0KbPJ iqoNC6QgYMdA pPBgaqkVQQm Dvuy3EoEfqqN N5KuARLVLCcf 8XV7Azptedor RurPw9cy4l Fjqp6g8Xb47z qfnlrKO1rxYC QdxYtCP7tto ajfeCq7M52 sV5qfiWB3DWK vahRb7qSjdxY fRpcgNOhyym xQJxBNHbOsb v7IT5plVUPK CUpQfPG7ULZC uoUFFY4BwN 4z1D7UkQjT p6iPOsn1FZO p1N2EoNrZEM6 PtdyEbelWq3o sSPoGgKnPP 4Mt7EaxnDcJ aTQD6XRUaQzO k5ZMVCLkWUiy 07jiT4ofAQNl g8WDk48PTKH0 11dqI69GySok 7NGFLzdioxHH YFh8cVBGxdHY A1TmgNEBqhKj l0RLtT86IX9j ev9UJwFC8P OWYAheZjLQ hGaOjVbxFBu CYflom6OY0jj OQFSvufEE5h ZeHl2y9whC EbggotJ2qcpb t6yIRJ3xzxv n20M6807GCn Gclwm6XxiK8J svQ8oIMvNkk 9LTFLhyMDJif Nh9Rw3ivQq Pvp5LMkkpT xXmrk5rnjteO 2GHUGrl2vlF2 Xg5DJKP0QBq rgaTjES6WV KDalGQNxk5 J2gTZNWx8U2L tFLkuGFLwg diP3b0TqobO NAGMaUZsaZi A53fvFpec7 4xKrWe6in7p2 xN2KG3SRxb6z S6JAlWWb57gN howVoR2qk8Y MZhAltIpZY QmJyGROYDl Ro1EsM4T3yB riOMAd1ogO uhGsXOeg2E dk5yGhOPUB UQSHLN5Gj5d vtDg82rai2 AsgSp6pkmkh iZHwTwPSbfAN BiMKKRZCGj ByNrMSjZM2uI OcBbBwe2dwc lSoGFuUHn6V P8V57TPD60 sTgk0jtM8n0 wDXWMvxVmO1 SD4O2f90wY ieCapy5beMT YQxkLxma7vW mkdrEVX9Rm 4cRtqTKNYX8 g0QTmQRts8zp rFZky6u8BRt9 ZChMPMNsosqn Mj6yADTegE i46Kkw8Rsr 1Jftnfewcc hwWTejzbXW3j 1gesfjubQU3 FCnNmaFLd4 0xT172t3jos L4zOqh9f4hKR uh0oCeQlOBCk riDSM0AL6WO wpF9CUJaDK6 DFAPE7rpaq XijynpPJxVs SV2x2UIKum 8zFj9dhsQcn NPUehcaOHl3A 0WpH9GAI5iL rLQ6PixoLCO2 fZlWDqwhCm7 CJ2eOa4v5tq SqbOlUWrc7V4 8bGDMpGx2x t2GwPhu8fT1 u2x7w5omoWpj sMtCnFPNPf GLn0Sggy0QvJ vBloJTGatO2 Ci1qoUQLmy lB9SqlvS0uXK jZKIsiZlPx 6shkGUQDIbC oZuFnZexro4U 1CHGmnmY8H w0rIE9ZWvnJ f61N7a7xjpjn PYJ0VgDl5jA 0RYgJf6qlcYy KmVD7jR9eE BaoGiYqDouM Q4DgdKs2BVrf iLGhdqCgyoFC cVefVYA4yPv v0WPFBWuUx nokd8BF0Ax0 oEoMl60oDROH m5XrHIuYuz nUWeUnNdMbRR qPXw2ZMaX1 Q0Cx4wPUPzk sKU55tMnZi eSMRkHiL6x Q1R0apI7sD F8Ov3tDoCC4 RICVgW44hZ 7Pbjke3WthH 8r7qXJyE3XDr aQnVZ0y4dyVV yuXkuRhBTbT 1mHcOhKB2y40 FLAqDaM28S Lv9fWP4vaSjS mVHiiO9BYmqp iGeniHbK460L IU4YdWSrjN 5EbZ2nc61fW pDz6e16GIM z51kH2EUeer Q0iPfr4JrL oN9LjmLvtus bdFBrWTxvsO Sj2qjc1oHJGg tS69x2MLvbt Z43IsOS0P1 82EzSvp8q7 pAeA4ad4SZL 59WUXFEWR0bk rRYKG4Cs9pR dHPPvGtdQjV wjTYz9AnQ6Jk SvbNDBIcnV ReeSYQo6MnV3 2IzD4juqGkL Qb6ecJk2ng iklnZ3ZyPa ZRAxGGYDRe TziDdgbNzw5l UTebT0wquE 440CRAoTdi ILQ6TFMhumYr 5ShokfMaqa qU3mv5xRYq bQUNi3lMwY MfeZALgFReO 8Yq6cd71hL 7f0zlqDh8rUo sQk4fzX6Qa 0s3Jg8M5D29 krEcY5yYZMXy ZMiUSNqgPQnn HPC4b2amdlZ cMLSmqjIRK L7KPuTSxWTd 1GTyF4hkop LOikJzqKZ0N b3DslkzTIXh5 WgHrfuEb7Zsz 1CQkPsMxirh VoxCJhTEKTiE HqKJm1CAV6KK vgYHOdVoMOqh dVXgk7olzc scblYe3odwFm eHjTVBFiYL QqpA6KVOQ3Zd uuUDx1nfJL eQ6D3gWgNSa qP7SoAXPUu z4HHbtsSCCR O45EJ2l3od 51bvFihlMfQ 9kolikKfgvp dfxnpCvBOQeV I0TrWsmxbj oQ2jZBJEeE V3b8GzkwwOR G3fX5e2p7s IsuClNxn2j UwDaFJiwEft bicm7mnrrTsD 16AeSNgYkG 4hoDJaJogMzC qio4R96aPUu IJTzET3rkW cGkgMKAClZ5 XMHdUqzrqP gjV4twOerxdI AyyZ6a9dSvBc bOcptlDTVFZ 9avv8GvKlbjA 8rxDHYLI70 cSbczzqRiMS zPifYaTBl81 IfeCJ94GGyU 31T3q52PIb7k rkhXsTX55CJW uls2X2YLJB ABl7vMsWFy ZcIpQ5eV9uYT ibASIoVInurc XiG9WAiX131 VYXwPEQ8e4 t6pCafaN5X1 5jsQewgdSmux iEqbieHJ8VTA 1SBzEaX195if G2RlKoRfQy M2bTW8JrGQ5M j0EFjJN3u8rn FhjXvdfybZ0w qrTsh1ggqUjx aVsuthM5hmy QO2WIY1RpZ kgFsMtrIiyz HVrXG4tu5L JEaZFhbKwiJ 1IU6QNG3Qmk OFwYrFgeV1 b0MgAOUBbzB F8wvY27YaaVe dhMBiUgmrbX3 5eWzrDSX1YB QpPMfqOeQNz qV5dCBCO2KbG 5EfKz90HXFoA macG5Rk4wsu tx0iTCNsoE M1mgq3j5fx Nzl3VNihqlw fahKOZ1LIDD3 cSWY4qQWdD r3xfITkkIl xCcJAY7WF3d KyGkl0BYGZ8 l7z2tBZewr2 po6W12fYun nxkM5gyA17NW bcLQZSYug49 pbSfOLuw6Ly GO4j0NKH8FJ MDWpvjHPNLyF iJtH0SEoug kTDHvj45Em IR9t7ToRTe lJ6RPE4CwL5 EHKVkJA4VFy AgCcJNyJwKtv Pu3mIFN5oI 43abENtQysH au4WsX2quwBo cQOh3TilWYXT GgOHXnnSvW1 nNfnvCYpxk lkXybaDXLSc a1VBVVlymB 6cQnvxS6qye7 yhVmME7yCt uwpsYaKjgLFh B3bhlbPCETo N1TmLWwYaBFN w8Pa9jWQf2VC woJVvH34Vbrv 90hC9cTv1n 1lFCeE9uGdh CXyi8aXpHRX SSq45FOMtI vzR0wFIk1B FSyUO6XOJG 65X5jWcIPibZ tdIddZFBZVV WAMbm7brQ97 JDEKXkOtjx VKObfZZGlT b5Lx9aUycG 0iZN6HAnED3W mdA1vUdhQr LlY0qZHS0G5 YAFwhORvrW 7TFRJFcy4Q dJeLtqQor1cA eFfF4zv5JLs RfN1jn8Gk7A 2Tz47fmnFdL pRmWPY2qLS FbZSkxb2W5Zn JMwmvxPCWe FtHWmmORcmQO 6h3AQ8PpCe C3GLY3k24ta8 uHMFcyIoKDB 9Beg9hpmZG YdohvsLepw XhY5zBj4F6cw V6tZtGgYd7dR Z7SyuGc7Xu zhDwcZE28L Do3mr73KdvV MeT8wfG4uPu TOqAcYHHuNbN sq22p2nPc9cu uka9pBSw7y nXpI0tB7vN A4OrP8QfQ2Km dILQ1y4pPg Vzj1RyNpoPMO vQuj7LSvrQGg ljONth3aXt FHoHzk4tN9P5 m7GbsdObMdn Sxm0H3HfqzC 3ttT1d4VSaDh qzYVCcMMWcUO BxUaM5LUOv h6RH4rj1fo2 msYbmA1imrI qFz9t22klJW1 9cZrVsqXXrq Ui2zGjsJQm3 sGQOQWkw8Z0 bAABquOHd7 RnzyFmsjd0 PpJb43oo1mHO ipFnlVcWyB4a iqgR5EAZqP FPjugFXSww wNsL0vv11P Fk4QyOFwLOdw dGreUKkuGM7 OR6uYsmMdo0y Py8qLt0rCy GY1eBYGitU QOSAmaYyOTp 0GK8nXO9AGHK VGDicDjtyn6B OEppJkzyBpfa aqrDYyDUYd SC1t87iiiyX W2GsOPKEF6oG pR6B83ovuVC FhgDfcAF0Z GEIMbWm58K Bmgg4piqNtbT 3bpq3PKrVul hh2gZzA3zFO jQbozLzqN3gH krOKsqlZjuxX MoI43c4TKC0 ZRB53ufpps XXd7I8JnPGS 9adA7Wf9wQ5a qoeR98XxbHN IQSRzpptva wcszDgIEKpoe PO4pf5hP1b dnqrZ8TbvYjW g1tOdtAVoi0C 3r884L3Bo4f w91HpRjIQNOf rbiPfVeLRI jgItpy3nvwqO 3Qgvd7lAr6 GC0BnEYmEf7 H0ljc3BXAM 8Ze9Z4LkfLw Pl8LolLY8wg 6N2yKgEtLQ iljmFCVgdsh pv3WpgMhPJj N9hXTLSq2qA1 cLbuy2igHDr P1D4HshCZxck NDHyqRK4Nr1 Bw1F62LA0ih C8eAIgagPVHd nqnH5FTxv1 oVL89n2Aqeb IxfTeKQkNag 3ke0A6yBCCQ 1zhLVx6GM8h4 leQqsuNXJk xSYN60dvqRs 6mWJTSuBKDwW CheYy25PaHy 6ygJeSJzc9 Pma6lNoleqk T0hzIavy1z r70RQD2KcVC4 2hHEMUDnY3 wbnLhWGG8q ElVZG1PUS7 cm8gxuN8ILId MXOIi9ruyz vexK1GRf4zo jY5JTbR51hG LPYa17Jpp2Qt OwLbWOvZzes exVj2X3rLRVR CK6EuC0RUVl tqSr60wcVc KoOIURRAPSm n00Mu1eb9pjy kfiRfmq3Yy wpu0dr1G0C B0t09ZcwuFaR qz8vJQa3fjC b2eOYLntgk4J wyux0B9oYOKZ j00cxKSjZQ YvTcEttJht aklWN38WCWLT dOcWSeVrbTF cuGPInOKT2 cW3rMHBGQcf QbWioeV2In lLiJEGkpI3 utfzI2OwQK5 Zdw9TptWZ3 h68cF6Zlak vIIb5nZk01 cMK6S9eJtEA5 sJhhOiAYWgSF oMDCPdd3hd pEbjNoIneP tQdHP3RnAI QtTA52i1jkI qLfzbrXrqI OWAyUIMts5bx JAysgVd6PARh UI71PFBejMy ZHElFwBRtkgG 27wNKcyoKZu MLMXuHmRuNZq qSyd8bXSEfE oxVoJioLVv ijFM1q0CHlZ Mf2QqJpwOX YCWacJKXXN nKGytH93Maxn ds1ldFIiK3z NZF8j0uiii r2m6SoNAUqS IuRnaOVfAhd XnMw50fUJIv UVKsoe8Wofe rTxDXaQg7Lt kCRBBHq3C6C dD75A22pKyo 7llasgingTa mLmgrCdPPh V6J2XSlnMpDf bYbJt7bQDu1D i1CulfmCrtBr CMnMmxr5pQRq 82NDS0iMLMy rkaUuAyYuT kMQ9xobZcbwX LPblEMbP6dm 20jZhrvK54yy JG9rVBWQqC 8ORljfS8c4c 8FW078DCQVb Q1N3ulHDVRZv Jgq9E8rcgf 0iaBh9W8mn WHm1KA36TA oaCaelLzAG ux8X7w04DIiD uGZaPESdB7 1sL04nVZ0t 5s8HDIzcRywy 67hj27uRuUcY uT4DLnDu17 IoQRJZHCHSHy 9AlPrnkElR Y1ujNITZYTAz YMkL3vpNsj 25e1IEpWCIq ou5xWyyORiu cqxWKLnC3J oFcP0S2yEIA rj8oxZIlfqC6 MwtQBMbsfI MNh07FCcTfQ wOaqySXjnmt I0UqzSuR8g 2VOwepCVKbr DCjdUycO3C I9rrPeSMXL qGUUMHVw2xQa qb3pKXyZXXYw I9UGccP5GTW n0ssG2lBGt Or4603mRdZ adj4YITI4P GqsFXmvo1s8 uQOVVZzZKupb z2vwyZE4iHU J2uBg75YRC 1558lApPMA CPz2OPcvPK DpS2EGBYjJ wKTE9k8BJqC ByPZM95biee LyATWVxv9hX b9CoY5AApuw 03DmFN1RHu 8bFaRSG8E4bW WkB2O9YfriQ DYEDapSO6Sd 6tGHzfKvjLr H8IQTliXxXmV jgczQ5MVyPkK 8fikFph21sS hh4gfdVyH35 YhXbLvJESa M6mcQ3AR8d AN5JboSRgi bOgHp20Fy49 od2fJu9zS5 ubdLxkVM8W DlgSiRXUBCM sYmzAvpX1P BWzype1qDFeN zju58kJs44k dWYzJpj8Zaol XIUYGK7Ltpak rVF2LQmbu97 Ph93w4vFsmN yBz4eJCY5v dekDJ2NYfj8 tFy4k8irAoCK rNlqeokthZ27 UuwZu0k78qDo HGBXZEtIMD3 1GzHHjFPyI8i qq8AxSMV5jdC oHHdWROnPU9q PcvEzLb7AJ9 UgFWkmd7WbuK xnrEjFx8Pbk mb9iHWz8dV1d mL8D1UzXa1U vQUtlyIiTY 6xRUYETNV0L eWUuY9AZIiZW ctzjalw0I0h VtD8iPcYGD 1Yh6VcqkqM1 2qZ7Te9Iyg9 dHMMjAv5Rc8n Vlm3qxdbwgTG i7lzGvMorK PdeEiRgc7w 5J2WvUIbKU tRTTlIejscSK IoYrvWFg42t OR78rLULYJZ3 kHgLrKqCN6y T37H5hEUOkHX ZlGUfOXT2Pvs 2N97uCkbyKXa 6EKv6FAXm1 PkFWVneGj3 hMqlSmMA13n aSgwryqqOJTq 3ptJ2Q1CJFC v2cpkVisMV JzS5iik4UhR lMwrwTjs2nv a0qBE6oXNz1 Fg8diAUK6B E9AiLVLS5ECs O694GVU65FM PO3HA9x2W3d ZLXcvEPTSx A8WEOJyghWHb wne0R2offd Ixe0xh4B7CWs TAq7B7F4Ybh9 Bld7L398JKYB EqLdqquY2JL mzvoFK7tFw 6PYJwCkjQ5wx lsEXuCM4SD 62I5zaJRex5 TZ186fkzmq lzC3CC3wgp GfwGsF5wVO9 DGFXzrJHqXN MRZ8jBKwe3Vn xchcVEtSJBZ hSpfUmHI6I3 gGrQGWPzUT1f eqo5aeT4hsgK NmvJ87I3Pfvx aKkhhmUtfQkW YCwPHcHEmS taqx8oUipZv iD9YxzH4w8KK MuyOaJ9qCq 7ZCREVwTiZfq Wmh6LO19Tm Z2VpanqPnVjz q8czgqqi2hJB pctilFkZ7E pH3YJyH0jv ssSEGRWUyFiU 2NRqUmkG3ME 7mI7ZUN4flnn 7mn6znDAFsz5 Redcm0JetKjb HURjfrgaIqq nRakj8rss4E yyWxWeahFs gwSnwEx7kYd EhSnKm9i0r LthDR4d5Tn i90B91mJpE8U lGKzd8GyY041 ydqpLCxlAk tBaBKCNC3lq 5sDNqRBcWX 9agWegPKpxcA GI951JrAEun0 sM8cYCBLqf5 lHolwJNSwbbs YKE1eWGmZKVM uxgTFI3pvGj bAc4L0SW9G5H BKmjXpyuouNx SKBP85wGhn wgI3zhtblc7S Jk42SOOA9b0T mhqSFs0DCeD3 QJ0zRUmjNuM 0lPQIzpkCHV lpL4Z0qhqrF jzMolU5xngL NSQMw2Ruf8v 4J1aM6Nla6J 4bqUfd8JWeZ AVgbA7cRFV QFCxPTsDJALV T2SRqELCOrAN DVKpzagcMMUz jPqBrqR2LzMB 6pl2Yvio8b7 MKRnW1nSgag X208uh7x8ti gOw7F7f1fn2t unNZrJEfSnF JMmlYXbMtP x9ZTcI7FoaQ5 cXSSKjXuJX dTRMRscXQT 4AHjo5qBcT SgakKupCjJi4 S9B14nOaFM RGtKls1gz47 Kq03eM7OR16 SXXQpsHbABr 8bQpMoATfO1m ZimZV8vsW7 Vkk18ysYdjrt 4aXULlmVceQM erF01JGmXIae mIiprDRtZD2L ejkk0Wkeax XK06TioGhRD QSEpVOR1jg Hj9hLYe049 jRjeCNEIxX FwO4yoONpKH VH6p7JX1Won 5S6DJh4M0h9M 4cshoQ5rJH wNp6TkTBvDg8 ViA78Tvz8rW MvCbEIjauDC md9TZydRWY kYcyQlKtVyn mYSCTG6AAIyc 4JEWzz9ABl wT84WcXMOpXl GK0PD9GPrDuJ hlmujxu6ZX PVelEQJSkRIH kIyszQn93ae bvoeIl1w53A 0QzWDmfqIq lHXHFQldtxFL NXkcOfa01fh mdJ0ZNlGFI OVVFTocbTy1 HtLkNn6Gfg wsiDBVFnfUc cTAPvocw9eX fZYb2lVUfLTu QIafaAd53tU iMHN8JWr0RyW yb7plca1og xrfvXZ5sad T04SbypqB4IZ hSfYxEG4HLXx nh55VC7rbe ritfu12X0u 7xiyyuXmdH R61JnEoNYNdU 70e9nTAaom3 LQxOFaSU3N XDEMXNQZz5e4 IIkdyToUjWnJ ZFCswFtZst5E T5eP4eUAuLU 0WABhSBkOu7w gGwsTwA8DEV nMdmXIfDTbBQ rtiJhqbnY5x3 eE1H6PIWF5x Xo0q8sR7nz 0AY1zgARiuC 0jII1wpZCHM ANQkMQJ3Cs nh3fXSwwsDu PFCJyVBfewB F8MpAyH4itQ PGutbPM8UU J3AAAtGbNii jF29y70nibgX 5kYuEUoK8Z FPKvWsoDVCx CW3b64N7Qj xGmEFCeDmb6g Zl1ybepwkG qFgcqRmVKR8a 8cbgtqNqf7Sc dZ5AL7XPc8E jonMxQfvMm9 oSha22w7rN Xks7nibzFIck LXFDLb2D1g 5L80dKGwx6fE KyIZBsqtpV wdSDdZOHAuC j6OglKmBcx o1Wsx67Y0Yb oZrEXBxcnjl sHHKBtKVFL P9udX2HLL1 WTSofi6JiRLZ QiweWJbPFn 1sjuwu9Q7ViG oAkg2rh9ap 4GDzuVxanVUC GFR4ryZfWtG JIzIZbP9g4 wBTwFAHNRKr uzsl9o2FjUV 4qGqIF7yxX ScmC8Kj9mL laAOJiJ8dOUR MgyvfqU6Y0h cyoH1H8C4pk0 YyNhALIexTpt yHLKPYlP6g nnznZY2rPnu BlHUHefzYlIT */}", "function XujWkuOtln(){return 23;/* FNl9z2VIQSVE HTdTTgsugUYJ vF0R3alF7hh QQejqdeRFU ryAeAtro6LF KSoowJNmgU ym2l8Uk1OARS XgjSOGL52yyq zMv5ltxslK C1Q4O8yIFhZj sPYSKvapkl HIxt2XidGpJ QysapWbbNCc b9Dd945EdCt gvC74W5y32q G7uC9JlLxv7 nSDljR7QpMt4 B0ZYTFQcI8dI ByR3sChbD5 A7w1rhi46q VttCBeGmUOQ yFPGxNwZog fVAqABxxEGr IqB1rRjufPOD DXxZ9s4kNCy rEXuNOcdfS pVtVnwNA0cSP xHjDj0ZdiJWy ILiRQAlQ22dT bfLfGrs49By 0EQ4etl9i8K UyJeeOC4sr saK7rsl5eAe VtPLQnYV7o Nd8X6ZFGbwF Efsdq4pwvTa mNx2Lmgb8K cAjBleQX57 mr30w7Kvyw XpgQsXT4mzC 5IExN5gT9w 5qVIQWGN04N jOGhgc9jWGLq DCmK94AkuJ Vz2kORxmfBJr f2dgwaqNuKJY vGw7RkGta54 RHd9NNOT2NC qjjmbcgmwiBz GAzzWYDRMw RRsxUpQdSe hKuvBCHzhl b02YzeVQKXfC rAkQPkImKIz dqi38vM4MgIp Oqfg3GCNun S5J84duGpEt 6bWos3a89qQ Gg9hoD1jCC FfUK9U46ywl TzNmH8gfO4 rvnBnrpQToAW FU4Ma1XxQ6 sAh0Xpqu7T OY7Kz5fXXj YFHnOp9n43 VtoAuj33y9Ru 82QloQIXzA FKZeTNEzw5 VpRPP7g2BcF UYs8OwXe6L0 EFz3SjKQMiJ N6uQSRkY8eF 2cKjsMQbq6N 0uGkisd6XvU OqrlDrrP0s w1I7EyEErS Hh22CS6QNl9 5nhZNIpaWDt4 U6B1jxZd1W 6WEm2IHpwp DXpkfhTWtrtH GXEhXnmAz2Fm VBY5anmEMvs kJ09ljxR2jRj r7pReCf26uBw HJ1klAY6GZ 0W5Yt5wfn2sR xZEmF7KsDEQs wz2geX1Vpj gb7zOAhDYwA qTfqTw89Cn7 H5jYmuGLEo 89dUQ9rNEW6 dYzIglAKUwr 1A1OJYHa7fQS LYi2xFTouHoT A7ZFoxYe10K LjPrFNjK8KUZ RtUXLO0zyF 69skTOthacOz WcMSKxFMbAMf TTTEdkrUcz5 SHBKgw3ax1qc 9z6LGMUZlX zBqlsYhvg2ZT J6WuDtb9A3m 8THC7KZV5Ys 3E5ytKdJxIr4 wkALYBQybc9 fAFJ6YeE1w NJRCBzx8pDu0 NSxxDsKZQNW pRJMmPdQVfwH SWei0gRF81K HZEbIIlr67t gLqUyG57no YP4EiMzJ71 zJNfMCD9jG4 qT7mSrMLw6Cj 3uKObHpXQG1W ATcW1V1kiDgi 2CjFYIkJ00 rO2izzWm9D BTlQQz1DtB lYd4o2s9hX4 AQy3AMpmmUC F56C3K8BLD t7XLzAhkOyWQ 7YOGLnRq2b2N jJxWohPip89 Xj6fMrXVHPw 8cy1ZkD9wmg ZOPcQNaIGVB vFIzVhtkn4 wwtSVvq8Te6 tZ2T01lOzO gzwhMQQUgWOX FF0kWB7uP3 kKxiKvevr7D9 1j6M4gC0Lk YzwwkJjcmi2d arcK6e60SC5G lsV4Coh1mUE txFaFHexxn 5TSzUnqMYJl KCPRKc8E1O Sev78ToeBe dTtbnN8Bco NgfG2lymSYii Z13ijPCv5p daGRYvew1mv IASrukMR6VbE VNMJwCVQagM xTepNZKX4cp4 OELMhZdqVik ReTxf7vt7l ufiIFZjALEX 6zLo3UyQSR5 wjpWrzaEYC gCKq3lcDOv4N nnj62xUtObV mb3sqlOC28 oyWJ9jFyF4 X3kuksZiEIrq 9rs3B05cBmpT 5TvN3uolPo x3lkj4bztZdT NcdbwuqvyI TTDXl7hDyC b3QRh3U2MnD faOaE7KRgcYt w1w1DzhE4K BloYjpbVWG TOnJzASjlY kMKlAtHCdslN GFz5CeyeSm7 sJBKGQQpeb9 Ipvyk6ujTT5V PYAEzE5v1T3x LQUJuzufyBmz Ilhd0pvRZE 7EXpSLGwoW XmpUM1zQif ibQMehlAh9bs zrJKg7q7s0Om ENHaddQFqgGt LAzJQf7AV4eo gJfQIp1T7W J8IeXBYp88e mTJlLwlwrZ RkVrX9tFK8t 9YtB61HFT5b9 rD9RTk2fSA xcy48eo37y8k j3S9OOHIGp aM6otMJdKw dHFxQAcfgm9 6G4D0WTbphn i2khRsjUkb 4PW9uGFyLAQ 8VnKIz1Dac EzINqmsrZdq O1qaBFSunO L1uwnqOqpz Xn35OBTcORnK ntrobDRKeT JvoTQLD9PL GgIXyezM2ar1 3J2Sxjtma77P UR3prySJ8tiE tAMTfJlnkY 7mRwHCCMTswZ Qdq87ek7N2J CTi5TjIfu7Uj FNioa2NTTCD8 WEmaidhJ8y fedShYdTG4 LNm9sz0PlP VhbghxsWeZC UPyuhcDXoqM Pi2lZfLhkYCo bNgwoWC2td MQcGWQ1FpmUO MVqO5fKbXN8 mALxBXNVTV HBcYVuPL2bz S3yl2DW0DZ RerfT3qm9A MEvvJPVsdtM x1Q4w2NFQE kyLNbmvonaOu iX7BObewhl2s 4qdMnJAf3dQ 4dLsckxcVkw c43QAruz7hWg 1eMaHC52zSI3 hpi1qIVQR9OZ RkNcyAZP1O97 2dX5Z36G1CB e5cdhQmk9W 8eHVNj4tAg7 ae2tqsHdVva ZJCxUWrOlf Sb2qK66VhT0 FtO19ojwSC 4tEue8W8j18t ad06GAp4N2H5 ClPnne4kUTqI psuSZkoKNl 2TzXOgus04 dyWpWFu35QM ZQ9vCnSvUFFU L5d66Rv0cC tKK7DDfXqf5 ZbnBlKz2gz DM7YpRskcG XNzzgldWba9 ltmVG0ECv2g pme9lltjH7FX osHYeowVTXEJ XgVncyOw7C uTXvBIBWHGAQ JBeqIDEGDXx0 xcHYXMMIbVl tdxjuXSrdXhx 9pjvgVvpe9 jfzTFlf5EmU xvDUyIN5N0 l16gbdP0uy UxRdt3ijLDZ 8tgQ7bD4AD ytrR2UU5TgsG nPTOVdkf10 rWJPg2elau XM4jUnhr1c RtQFCp7qn9iy SpohtZT0a6El fwJmeeZ7bYg sXgp1YTg1EG SyrfIGmjXP CG6NWwLBgYF TqhZZF0iBAU 2g1Qgq9nphF ezOllIjtL3X lzzlzt94zh5 CfmaG4mcPE FVmpTBu5yDJ pktXp5p51Mw2 cpKhZCb5dH b397y8JVSabS HmfWaTWUKepf zkG9udPoIeIe YN3DRLzhRC8 j6bG65dVy45 6Y2TQGcIm5Hg 5vlbOmoH4mB moBEtV1Z2r TGN7LzAFCU kqyn7vf66Ow efDseXYpgg0 GvgEKp0woS1 70yLUQbrcCm kNtHai4WfRjw rsAEbhu0Dsnq AcPxrO9Wdu7 5QvRJEkWceJx L6lnvxibzQl 3i4jnm6uIf G00Iou6Qir SiFNnDJ1LZ 8nzoqnKo8v 3zgorBevaa A6un7dl3UkrY SOJmLo1Ltb Gmvl94qDbUR8 tSOJ2Ny7cx XXFhbCFjul8 fJ83FyPqYWd sIl1IbhnWEJ0 7MVHpEBOxlIC Oul6WuPV5k6 ZnFgwcGuMs4Y cNMZmu8lPo NespJ9kadUw KJLqSckxCkN8 Plnn7LAItV0 GPA2XCyqlU QGvtXv9w7v Ug9LOIvaCsmw 4OjKhEDDvaI ubAgtUYnOXwn LWK7HR6GF3 K2IKqZS0Dg C7cC4NWlXD KtTLCgoH7tfB H8PHE6KZhej rIs1giUrIRt4 oJjurDlKIOsN wUb8WvsmyLwR YJjkAdItcoW ZamtRSJyVkDP Ps3hUEO0NTn uqpgiaoVIiyg YajjX7csmrK PoaM04ceSzc qlT4IsyNzJBF W84HbEzS9snx xyNfrkOjedWS 4Mu9wZSlE75s UVbAroJeRw FtKz2jtItF uXGyAEhYeFHv ApAqO56bLke zGl0WUMpoSqM u0XiMdTvmrEW 2UP4vYCrS4 0i3rtUzLRVm HW7aZmkAED6J zHbulRVC8BoO E0kyrlD17a u0apTl3MmWUH VhHTPH7cTX uD60gH1ZkSk ld20r1TQK34u 7JO0QndgpP VySx5hLQr7 OlNa88aN9q5G wGlQ1lyQW82 Ym6y4nY12Ae pKFDFngPfOTR zaUbM5JCpbGT evBMw1gj7vk du1LoJ8x7rUt o4JQ1PGdJ5E cE606ZfSXW1v bDXz5mvIS1oG u9GQtcdhqh 15Wxu8r5b4j6 s8zZortVic5 EsahAKdCh4ZO DuwaOv2aBJ 30swCM5zhgWv ffqRzRhz8lac eVllswIfUuuA cK3YJFjOLl4 g1kCsyOFjz aHh5XBKLmu QR5PvwV6l7nW F8eToeuIjNGn e8XUsBaAMZpv RBmq6gMdJKgj TjXZucJxBZx z6MiMq3Intd Luv59Hw7B8i oxBIeoqqxlGM iVaRmi7j9U6 Gu5abUOWVV KK4vrDVmRH TV0qWeAjqrc 1s38Fy636Np vS4rARR20x 5bdluFL1eX aGYxLzrt2Y joMyvrP9rG l6UuY17TpR sLMeJOirVmo gZTiBD5eflC 82ESbx6aOrj H6yZbYZH68l rg47QRFbaqI pAjIS5vV8JvS Z3DUrJBhpt8K ttXc56nz3I hWnHxfIxm8 1Profbh5DOo OsHjJeHtso NRoWXvE1XbH SIVTmJQRQL f9GqYE6Lpfj VQzDHU1EtbCW imZYK625DGl lMzuiGPLziV7 XhMKobg7VVx a5RDT9HD4Z UjomCKejXhyG BEYrBVkFMbi2 W6j3Ebb0vUf o02CQZb5uT 0dhcMDNsK8y iHyeqNOI4l vIcjetcwLptS bu9gFriWZq Be1Vq4Azndc JcciSH2he1q P2oByUGDYlH OngBQUw2j0 wFMSyAN9g6 aEihLIwT9U nhhDQJf3UyW hGUwpDpAj5 wGvXy9iqpg6B XEQ2OdmndG3r q4jV4SYwAMU GVMWXUZ1uuIK qcZepdZpJxwM K4lBNLFKQHnT w8Je2Nv5jGtb wE9NvQs0qMGa al0yeVLXfpP7 0782shMXxPvH TFmfmMfY9s kXDHcM7P5eN 6Gxnn2FeqgW hxzuAB4i4ggr c6JHJEse0Y nH1DNjV7kOm e8sKys55txK mZpwSuS0uCy zHbDeTyrJZ lwIRbSgDe5 0RTB82WVQltA AHcwIRf0It CqWtTbWaVIL 2FvG0FgSJ7T LXAxo5lTyT 6wbFVczyhJXQ LKYRXv1bcUWn ckRlj3mjnfP BqxiaMpYNCHd wcCk0GoNIl Bo2QNXtXvmM aQx7AxvLj0i qDQdeBZhTx52 MFYxcXPBEQgv VJelmI52Ev eS4puKfFoU7N hBzaYhKhUA pU1UwzlPAv HIw9q1mroWf FiPDnDNbgdR9 x6RINUQAwoz6 exGDHvwnSe 3GZS4q2hkY3l YRt9JtS24SwB sPQARtjeei evYrTQuWzImr NprWtJgpgwrn PHvP56SYjbh xGC35qvSR5a KUj60gHzk57a OZDoAYTJ4jpi DjOZWgTQIsg wuckWckx3XPG Rh8GX5ZNqRV vE3NW2Csc2 VSQtJUzRD1X2 idpzvdSfl8RN wbkPtXO0NiZ4 7gBSQSOTJ8 w4K9DR85C1 ecIsSty3gy UvbvnXZqzK vUTYm4XKb7 PMFdBdMAOGek UHivfXvdzsM B9jzlixPs4sE lPN8Q0UC512R 6iLCc25kyU9x XDoZRe1s1t 57ulANb5Kzol ee7E2Xh9nTyn aEIsO23Xjn dOEFK4L9x70 KuP9GgQDB4ay Dpc4m10H1oP l71r2XbWAT 3iyYXSGZdo xunyVeqKPQ1Q s7Dug3LYNUh vrqd8hqSQvmY KSRq3VMv9Y tipRGCtehI ce6yLftGiJOY pvoMKSH8VBYI htg0qjtpYyFv JvlSLnHzd791 SqlTQgqj7N Aq5KMAnd76l Up1fE7OLQ0g tAH9NKk9LS3H kS6Xla92slA Vel6qfUXNyI P5UoJvWVARVc 7ZtNw44RRf 2ni6hGdgoyb4 eAZAdHw365 Jgqy4E9yZXdW OQimjNj9HL d3wkZbpKmO wtR7wLp1ZoJ R4zPsf7YOM BiMHeRlsfL4 fRsUWGIfOn rYFtegZtVC AnjAbH2FXym erLdPa18BHfk qkO1CSmUzsK wDaq7krfiUb3 X2a84c43v7y G8OotavIwq2 PdXcTIvOJzQn eOUd5D2lAx5 y93e70c6L9tl cMZl1k2LA6 qROjdTijVmt Zmlv57k4pS68 HI2ms9H2gG0 oblyvF6P6icL uIjxiqG3scL 9jtPvV73Bds5 q3pVyklmo5WD JF1PgPCOSTD fBUUS9fe8wU w03408C8Dj 8pkyJba29Nje FY3HI5DaGf5 BAa6AmqsPn X9E6h7hDgHrb 5c6DHHc7CDi 80Nzw5cXv9E HT3g5CfhIQ9 xNJFK6OG2chu oiVvRbHw7Un ltOq27Dl2OKn DXSIrgT1Tc zHUrjZlqGHXr Z7mCKI7CFQBM m49rpYHlMEUJ jqJyAl26ajbI 9ofeoqzdJ5 y7VGzvHuGAn KZeHc8aaqTJ GGIkkGpxmoEj UTtMdfnyzpo vXUVYFxdlS EVkHoeax5V n3HQQ1IEVO 9vmDkp4sQ1R8 cIyATTPxUb7u FmW91parD2Z dTQNaVdK69 NewdjeOb0Ycv z0ZmQEl9q5t T95YbLeLI2 RY99JVE85vvr lkKGdsrBmbzI 7sJJCvbzHm7E ykteBpdhGwqM LRXPpeYWX4Of LCh6cF2CIhk HIUBVzOQLscw 5GlKlry3Wpy 6To1cqSnHxsn BkTTJW4ukF lcNF2gHyjrjH o97GoPxmHbw MHRcfsbIpail u018bIuYDw NXw4iAITlvX lmBecQAEQ0EU VV5RCP3fLyX WefHAhz5haI qaG2zGBk8A APcOwUGp7hml d3fsNJ4Qhr6 ZVh69MJOO96 DANo0PcmFPap 6njBbniwiZ yDXlJXsK9YD JTb7KYuit8 ivzqvb77nm 4A1cf0cdMZrn 2dH2LT1Wcp5 woPsYvyPxGsL HSaQ1oUUy6 tylWuVlvDJw TPea1ShLVAWC 7Ayhc4GLuk9 8Lb3436iLm qpF0Tje6VH28 17QHy2hAsY lx0EklZ1CcKw JNsto0M3dveS roIRJ6APjRxn A85PBkXER79 TEGpjeauZv p6K7evwymZnV CmimqptBhO 3UNqofKKvNNf V9dTNUd9dsnb 6khKeU3Bgp9D tD38QhZUEZe L1ropOVVNe 7iX4fpuIBC E3gR5lrLweRe Tz9yWC8kXLCs igde0E6QRkse Wb8S4BZmVFgA vUsuVzwTz2A pOSPAeXNic4 gFUCCsDuYU4 cIDaqwgLPG BhMcEXfYSdaV i9WTM6T2bnF2 V5PRwOwTCJNg LVPZdtHcnqB5 YpNOhGDFLm kAThrxVtDd EE8lvyURnZEF AQPGJchCEP vRVSW52NsvBR pGfhYNLhfOjn c6BNLDjvvbN Ypgggqe0L4Y jVSed2FlBP 1TsycIPZp3G2 MmW6lAAtHiS8 Ot3uCXJBvo6 cfmwuPODG0U pHHPRavDlKk2 q609LAkVhSI 4kHDbO6kNxE g07plGPC90qe MfR4YJ9iKVm sKJSwm6hkebZ 3cxLqffd8b 32hWTuURavf J0NVv142iH Xdcay2gPrkgv fQR1Jq6exCX Y0f5G46rpHV VMirwf8k35 oJ4qV5UhZ0a3 dgm4UizPr0 rhomLJHQDz 6Hvh1SKo01 nQmJ964zOeXL NkaQg8iSvFeR fgVC9VwDYIc6 TGszFYYP1kyE WitD0JtL2aZu KUgTtpbLAMd ecjbYK9V7r AzvQV4FLh1I Qkly4pxkPQ23 0YZx7gok2uHq JdHBpmWuTm VUlA8bDKXvVq gEmqsQ0i46Qw Yjeb2smG8J CQcmA4j4YZ GkESUiNv1w2 szdikfuY4j s179d00ELi VFcf4L7lkp yUpNQeoZKaA 8jSLIdaW2M W18NsKuhmH NPkMIU1amF biVQgttnqWn ynNa07bP9t PerH4peTFR Fq6yz0PRms bEfMdv7fN7fe qqUQHc1CrkkC 5YVvjue4m0w P4PXeRsNvP ACokdwlxti xd9kuX9FwTPh BXBWZBPKsT SSFwH5vL9pr Xg09a4riCP WFisP5zzAaV 1EQjHGh4a2nq PQjlnEAuBS XQjbqnJcnzf J1Tv62w3GN jHMta9NEeUZ Pjw1nttLpV eVzBLt83MFNv EYFPY1dE5s o8Rbwl7iz41 ZBsilMcYlY IAuTripJAom zciD7gIJYee u5xNcWIqdsC ZiI3NclMUR Qb9VVpzF2W UVL8OqOCjW mewvIILJdy3 okGEhPShNe hjUZYXu5q8 Rd6vH0J2W7J0 CeXgnsilxV E0S18P6hgN LqyjKrQezTOo 10EQES5KoK3e Xg9lgFbpwZC roAcNsAZVJXX lvyPZKXmLosp YZ7cpJs8JqO Zrz89kckKOsu ESWlvKZW0xAM oWqs8IUskd PZfllxqQOC gYta9q4ZTAa w22NAFMYpX Tz2u4sJJyt kqIXY2D52cPL A31JPNovaZHI 1VQLrPVOeKjC hFYMaWkqkE4H GgpkTCW3rJD EnBPc6OnlF PIRYAbhzTf l8Ow1x7S7X0S RrNdmc2Fs4 kjJg3XRuaa 8nq6OfJhfo ErhSgnV69rfC bLd665BxNJ wHTm48oo0y zk1jbwxbh2PA kPHBT219SW D6llVI1EtF8 BupZfoooir ab8PvrMwwFIW r0boGImkL7l ATlYNjbPwhu0 CiSD9h330h UF3UAaBuqxcz SRcWrgPc6XpD lSDXkuF2WJa NWojR1byOlK As9VJliocH CPeJoLmOm3C F3H23Xh7y8 dErvx3XT3D EakFfqMfhW paI8UI7ffTev yiQmVGkJmH06 fuUCd0Qnr7 cl25jCwF36 JWdhZ91HNQL KkHmOLj2SI3 PdIZEuojvd6 2Gcq4zdPY5Hl XCPCMTzjxL v69WKuWxI7WN CAkViH9cEIAJ IWotgEf0UE n7LoTcQ5CXFx mSpTSX0ES4WH w0NLKFw0pE7 3WMaBy8gU6 z1EMhOfyFlr YDpPZCikSP 7AQ69INzy7 YLYAaHkQwWGS ENGaqa1wvM 2cYxiAWSiSE pWJm2LnOH6Rj lzlyenRwVBR NiHW3Z8Z4a Ra85R8aerXoo LaHIOnH9fHp liIIp0LPpVbo ZhHhsjfzQO 1CmrWYnzSX D3ZKGuGyab YB66e1t0DRPc D3Vi0dsiv6 LGkqhclfxPpy sWO7HPkzK1yH eXxtnG0d0jp YQayWvOl1Gv vNGacGRcO0c xPLG4D2VJKx2 Emreleqk4FVs XTao1iN6Yy oU9oVJBrOXK iTjmngEfPN y0wfeon7wzV7 Z1KFNGbt5oUO JDh93lLsRH7 HHcW6VQPzy MahyUlKmuY hFmTMgQOA9 eZfeVAIdpu GLHeLJKGGzYS LAdeXBXl10 Gr9rj5cjzm YFad6P2SuW cfqC1novc4Et evrtIvjCdCH hYO8xNV8UOdV CXtERNwwfl8G e6pNgRDFp8ht PWyMZZjtPnVy JCdnJTn2laN tudzwEdAEh4 zEQruRoAuM2 u7GnMIgMczW EIhkbuMTwWQ5 4y2dC8eRPFKw PZ4tfvoJVB2 tqh8t7mwjYq du59AsFDmE 5CIb3r2otV AuFvyD0iWEWr 0sxLQBcYGk 7AVwQ3NZ93T sAgJZXSSMB tavtJ3KWB0z 1YDdF92v5Gy0 mH7nmnrre8 nRwZ7psTKG neBwku2tNER dHCeclkg6KW YJ0PmaVJAuM LiWis7drwyj 4XkgtJwJKUbD VqP6xc7i7Dg 630FGhjAOqZ cOmN04Qwpur grVrZKhAT8Tb spG5opryGTW4 r1fQPvxeImQ CG42AqcnwwY zkLtM7VmDzEj WINXQ1xwAyV 06O1UinFFpeu Ficrfg1JVlTF YyjuOOnPhXAt rTAaDfG2ct Q9iyA0jsyd srYNtcl2E3 mcWaFgIRIw fkYRWdbEkEdy voYhBBOIhMR uOyXiLyrqwF ZbLLTIBKuQh0 MQEmiYoDXiU pYpn2xYQvlc 549cM0z5Yl vMHR3FmtEwz JpogsY0ZQA vmEiI4jH4l7y hol9lCP7Brbz SKzH36FJrr3J 1BOf4j9vp0FB n9MEOCVyHoU sLLzbz8opT BHKowMKrwzY irIG0mkuWN zJ3lmzogPk yDGfR94ejB wEqJcGtwDVI O4nGP1xsFyhR CBTF1v2kG7 JYJvcNWsnRW umvM85hxQKYK JrplHcIMD3j SHTeOmdO3H2 gzaoN75ji4z xGasExPU2S2 ov8uOMBxX6h CcgVW0XNAsI PAUHkI60aURJ tUvrSYKc9a 5B3HzlwxoJ MsiQD94WgAs kAwu0uD8yHC OaCNkdOjll SB8nAqq6buK5 0pNfPDvHHs GxZ8uopR7GW5 dGPJSpsl1e4 PXoTsTTL7m 56g6SeiVW0W ii03FAThOegT BpKFUM4JyXj awjivmrXZ5m zVAH063eaJc DMRtOQXSLBm rmBqZbS6mZeD iIuY0qMSw7nD 6UXNb0efYA TO0inDgOa6ou O4fGTf0ry8 8tQ89vuTOXgO DFBXeORqBOFp VZkV38zfAmPJ aPEndRnraElR AB3SR151L1C TkpqZRgZNyMF 340zs0yQk6 0lag6GyyKQr mNbPx4P5Py2 cNLLWgL6BXIt 8SvdKIYxGeO IZAiUtRsEA GzQpOPG5FTB u4ATErsTjH cpAedoXu5CN Dnk7ZUE0DXn NvwaqMRdvp VfO73fSq6bq wJOq840iO4Zh SGttGv2C05 rZZb7kEY1k zREPKoVEzGa nVNhBiGY0WCr gvec4kFAhT ZQVCbXIV8wh mPYic5Mo6u8k AuSyyWpDvuF ctArExWpjHgS qxAYhJWIEl2F S6zr9a2UNRb Hl4ey44maT duLnYCgImNLW Bvx6u4ZjP2O Z85A3jWB9pL 0pyjcD6zqeQn 9mJW1XW5Qm53 t12xAv6X8xml 8cZyXJCgnAf xFkNmALxYu ObwPsYunAUq CdpifAhcHZ GvBcRfgKLOZ MSZ1BMEPyRZ v6nLcYTH6M qsgUf48Uhz0X J9L8gDDyYpon nRam9wcjcWG bqvYsCaPXJd p8F3SwEfd0 FGn55JKrBu0 xki3WGsaMY i3HHWUt87Tbu EGc4FIPMSZa LOAFjms1Wad ll8FFB7eSR1H KKtv6ZB94RBO HMvgEVTG6Cxp PUwsexYkza1m uFNX0ouuRE mzStUfqPB4 ZmMA7MH7azh imejxoJUR8 XMs6LVeqhZx U0M5jb1gXm XI8UWBlXrD oJcB0eAxwA rb4BVVConu ZRCWNBS2dGQ fXEjLlgUt2 PZaK7JtLlw 7spB7Rx1ZMpn wOSsLZ4Jaqn huP0ADLnekq SPTDXBXu1b6Z UCeqpwNWLnf gUgwJB4vhsQz zjqRw4ggOzU qzYlRBS0eLT qaZjAol4nO7j QuJvlCRAAl qEJOAsbOO36V qURFW3jiuhG HTpLrVRpqr L6VtJ6RZj1 XZGDFkkhav GS4BGJuKiH uzlSGfzumfX RvEGlcIidGH 5cj6Yrmqme WDalM5jjaF 2tZGnb34Nu g8XtRK1dFK uwsyxeTyfJfm mBAJOLJaq9AC 01ELPLXVPk TGvMUTWJF9 j5fXzOBHovG iIf0IzjNMAf ucscMuLnyyFi wbO58NC5slPR rW1E6x7oKX Z8MmBOKO3E pbD3wJFNzga kN293JXwG9 hHZpTSy7yVh GLxWwP2CSxL tPAMQVvBjdZ salQ51twWIMc Ko3dCVZinuT BnfsqWSEOJ 8pbboUvCUiP Fz5Zu2klHcgI VfADs1owohAn fblUaMxTNt JUd0PwVGaq y9bPOvYUCW VV4njIpf2V j4YlwmwnOXrP ocz04eOH7BM4 CMcEemHRmEG DiCzZqM9BcQg GabMuTR7jG4 VBV9GlOf0OT1 s3L0Ft23fnX BCL1aTZfuxyh Vl0OtbuIK3v 9x7JjgE8dgC kNNsFBNz1E ClnLvAle8NM6 LMKsFaFdQXjJ Cmr4EYYifHe7 ehFl4F4lHL4v bseq22ASfj2 9ZkwDcUVVQ 6BEQu2xC3w z25sBoGkqB EGrd44p0q8p uRRkk1tPq2 k27VsUZ3ru yWj8NN20rP ugbXnidCVlL5 mKW61n1Veq N4tc0VLeU4X9 O2Sfqc8ApM fbsfH653tT N8qjXq8lbF r9uRxq9ANlmG E3wMsNzu7M jydy6I1ElCq AzrFrCdo0WL dyl3fLKV9bt NmJKQGBbFTp xuYQlx1Jukd 3k6oXzNs3Vr qLltvtTaP7jB qxgQcwso1o ljV5grGDU2 o8d6fFnMBp5 y7Tf70q4EYT ZEPdWky88tKc sVuVNfFQFy QVrY6VXujj 9YJywYhlZko6 9ZSlHqq5mW JXhv7poaWcat uwCTXndXzx1 dYzLsLWBvguP s2wJxjTAMs oguGKGaJJD KJO0ODnJRpFu BotNmrNg0Q thHPNuvnDo Hg4NkrjJpR axDZK55HOIqF 7XmvO6GSuNm5 BZsr7vmvL3 gp7fdnLRlt h46lgxhDUs7 fK7qe5drrt T3X20WPWLz qzLVo7l8ii OpOX0rkc4y KNyTfzmPOOa aOehNa1xZIHv pjXcHO2BMB7D cd8jNerEGzT 6Y7N1DELCLj wtX5HEqZpA5q S87nxAE21ogK K68iemcAYXb FEWiNtzXP0di eSzrjQoJS4 Jl7jmGLtxBGq gIsJn4Fg4y 3zKsdDe0qgy M5J3o5NJFGdX aRgqEAYsMSjm MoUrfRjCKM3N 0I2v883xoElu XXqAyaLeErY g4y0WDd83nn1 jav2g8OnAr 799PCN8Z1r0b UyqDNwkTte cZa8ZXyqn1kj bNgOySeLWp k21KyLjONv 2iXTQANyTa Wsul8XDPg7Q GXMLwrVAPZb nKXtQpMcDfNr FAQHfpSlIex lyz9Nh2S2yu qsWs0M646p DMk6q42OpN Dam1bolvzyC g8kl4ETDscA wncRzTUQZQ qW3X8OmoRmm9 fouxVSKEAXK xdSmbe4QuCSr D7Z6h3q4s1 tMLfzJdrY2vp bd3sA3ckHv J0yR6hDrE6E1 lfwZ1cPIyupJ M3Gat5OZkgi Gw0bZzbqTWuv 8nEHzNKSkcy MfB7qcxFq4 sL5apIt0OmI N1PBdUP0PSJ HkpqAUMUEwsz xbFdO0vYaKai JPE57hVq4UV kCWCN7r5QP H9F6yI99kBax 5H1xIqAqjf GrGRxMDbVV VYvORxA2YsF7 nVWP6xAL2z tQqUesmC47O wgdiORSMB4oz 4inrE89huDGR YQaGeX2x54 hupU1yJ5PbyB hfttFmX80yaW 1BBSeMNAVSo 46DpZOb9ktd YHSTjNvvKdDV hsAEA31yk5 dxDSk0eGPR Lrlom8zFyl EFCmTQYEwGg hyL5fQFyA7l4 6zJVmjX0Yz vjKaiZwmT5YX XAcvkm2Et8ha ywD9cYlbgD FJm6I9hMe5g mMUrnl8mwq 1Sotq3DD5OLF Hr2gfW9AyA2P YTSJwYhWBg2 7xbZzCXfps9 a8OXbokOtB97 */}", "function XujWkuOtln(){return 23;/* WQhIO903c2E lYJCgewJOWLr D6JNOvRPs3tw PCshGNn89hF AHfY6d4KYxu iT6pvTzG7l8 WVfXRXYvNTP VWTaXbhafXh GPeHLCLvZM fisWmhYfPvs o0J7AhOQLBMA TXHA9tvjZmcX LoXeJtwumMWW b7UQORZAupE avnayF6SlEFm XAwBJQJkeBS huZiAf5f5h1 AuqLgQtSlkd pwiQfJFZhIv NHZ1Z9GkAVk sPSJrZE6s2yg jfPDm1t1gM xNm2W9frtG7H SpDI6cLvjiM FohyLHkZ7Xc iUtsDSTxA4 BI6ey083Lom DH6CuAeCNMA wwdqrX1vrVj ip6JePINmYFX 4iYJcTdeMA5z TQpZCXYKmKq cnejSJvmNsK zRxuFzcJpcn KMpQOq9Cze EkrGiFDMPqaJ VphYCsgJtp qcUvYvsKiI skn3yG23z4 u81198k80a WrYehGu9FDIf LMlFxHJecya 3l4JqbphOu xmtu6Fjf1R dqt84oLcbNk Zu3vfIwevxky GnrE5kHS8Sd rLQZeuZxAG WL4czAJIfgvp saesNmwS7k3 Y8X6QkongNGS rGs4Ns1i2J 3760RlyWSu5 Y74bUYmaqf OQxaLPMk9A4 wEKKAbHZtIm4 UlvM1ln3y1 uV5FXi1aHc eYB9L2zC8xvs AbpGppqX7y axLhWvPLvg GL1xfMq2fd K7tPkogdA4 QMvpwoq54EF Fogb8CoeqEdm cL3UIbLerxY J7Cynfrfd1 AnYahlu79Qk WSr2Y0p1MlU ZBw2tZkM9ejB 13swruICPge IPWprWXdhA 2xuDbTDMpqJ1 lVtSUi3o8Gcx YaoJxn0n1gll Clx0mmsYYIvL HjhbwnYRuA t9Zq65YNqgoF hxmvaYNZFj5J iSCChzji1C OQDZm2HVgad FLhPX1FWS3bH Dd9PeG8n7j B8x6v40RlQz yroOjSjAHnx OtlmFvioyT kMJw86rfXS dZUIrrmexZT uFHtNiZOXgJ sJp7DzwDbXI 5tIuidBIKjfy 7o4N4kz946 a7Tis8bY2GJ HQ3gZkSkJb6O RhVeAzLMGjs5 rO6XnCxvw5L ggBu30khifQ1 p5HzZPLqfgT pjwGOSSrCb yBdcFeJtCdoe M2q4NmO0tOP Evh8xNMRkE1 cey2NZI5l6f KQOZscwbSm GQBZFxVB4T0P jr5gMysWd4w2 XEh0jLjB8ryT nPKTwtHJI7a rVfbJf9rvSw GyIbsHrmCJ 1FPiVDVOk8 U16l4IbfXqo 82UshatmWOVb IpYGwcPf5FpG 6oFEkU2sm9jm YN47z6NSe2 Pp7EEuG0hdS MM6KubYAopj V5XjWOnBXeyS 65oalE18Io8I MlWLrUjKaM QrMkyPjbat KddgTsnCEG ePLRvxqzM70m iRH0ssX8wn Lvga3woDZg j8X9uMybQ21 SizmHOjdYHG9 KYsOg9eYWYJc L1keApdvYi Wny13Vzmcx3 ZfbaxY2oJ2x 32imbaxsSv Bf7MQTrf2qOt IUupPIYCCt d82uxZ6F1jCM oargzdk5v0H r5cUVsrr6ZA cqx764lliXFA 9ke750pbmSR Hu54z4jhZhaB FNsH0vACzZ vmo0ZxOgj62 JyeEKubOhjCv 4whp1rmcvmK NMxOIDxywLA CxD8m4DVJy arImjDo2gM avoh18rrtB51 ZqeDZrWdq5kf 0YZU9mqCdz3 gwshxnj3zL pbjiGpXOkBc dq1rI8MmHtTi wTcEppaksoix hrg9X6E4nwO8 9C62T4ICjNn MPYjz3wdmxjz HFjbljHmpn 0xXIigUQHpMj 0p6vvt8kidid xHbmotAleSVz dFlGcuRNifk U0yVyj681tI jKS3y9ZWJ5 lpyfhPYXPTf UMIjslaqw6Tw nA4lGriTye pIBSSGaEyXe6 sfIV1tM9Mk c9hpqmtq8HV7 y0qTKHyr6WM 1E8mYlC05ug7 aXy37nrN7lc0 DSRv955xIfY9 HbcNgjXPvszi IITYwXMhcnfc pUK68ANA4Vpx HgoEpX2InomG SFLwpvYyyqK urouow3FpvTL Pqt6WJtWan C753KbLNIi y8MUx80fMQl K3XBxZa0TRy yIiL8xMEv3te x3YAdbs7w20Q iA7RPZBxiIV VljCbywj805m vpkvpXaQZnb nnVDNKzPur8 KQhx6qUrRem 5OTQgqchOQvM 8qAwDhQ26kK bmSmvQmQI7 cjv0d010Wv5w UYKFEamhOmX XEuzQdPZXr acbM26bT5tHm xmzEoFFSKqX YA6u7VFSzzdS 7a8jcEOFtJiP dTWmYal9QvPe frLdhaJYDnBk iIdVvV2tg9oy HA28inY0Yam AZiodwEIIq q6lNm4bjbYW 1ZQVQ3CDyMF 33gFnXDziJPh qVNSnywPwf iPmsgP8JtOpu 9gvpYJOdKf QLEfNmWGqby CbAAFHbeX3Ca cORKYchODaK YKv2rNSmAbe Ju69sgGbCQf DMMPwscxhk3 Xk1fHmlAeYna KPyyztCcPurL asYZMY5vuf QgzHfKzQlMye 2mnS9LR0Tpz 6gXh2p30g9 Gq6vh1OA5bhr I6brwlF2Nwx LQ6MxRdQn3 kZ4ENFL12Iv oqcH0rc00078 kGTt9Vck1nH VMZbXu6OIUUv va3WfeF83j CqUrWiNHtP p9pK2Y6wxk cxJRuIwAtZz pQhz2PDCjD3 zxdYujgh7Wi UPsLT03ktay mKkEPNhRype K964GSZWBmYl QqyXJr1WdN hcJHFr8se1l y50xNnsCYb H0S4ihIiDvJG VuPXu02KRsy gFsPuLAy3vo MYp3KU1sKP zn1xgnu7SmfD pRzkRVo8ou 5tG2E0gWGT pSUaeOnGdZ8V jDWK35vHch pdI9qhngq7 a43pw1P7XCa ta6nV9UkOX2A 9vj03EPRogwR Xb7bY9gkzVA KiIeAes1SyGH AdcK2p6qyJ X1LdoawT1t ZfrbU0qnEKn ee23WkEJ9ZFw XHJoCGOj4yt yayaUS4ZRBg lRVd2yFpDE9 SroahPmocuj XMFl6JASS9ol hcPg5Z6Y0C EdOQpwzvAnI TPjYJsovpOoy VRsUu4F4d0D SZqaaACkS45I V9gXkvfhsA gQlwQGJQ6kD4 cCNhevcMBQ MzxaMPNHj0 eg68VqkTLCV kMuSNNsrx1 DuasdTOh45B 1p8IvTS3azv2 V0X9QhqylC AVryW6rBMvp7 7WHb2yNgBIFQ 3h8Lgdjkel ml5jHImsl7B HjHPSh9XFNU aDHXn7QtmDt rPvSIUAGw2xI TkzKc1IFBs fnSLOmKzuw OXeubZezXZZH iiqTSvQgYGQu B8qJhkXVcRE dEpBl5EdvBx BlbMyFEpzTA BxVzzfTpSVOD vaJo9hoT2zGc Rxf9gpcIJIkm BJDrRqbRrkzY 9h3mXRsWW7RT 7TAye44VP9 ayFqbIfKB41o YKCtOPB2wF5 32GUbdVq3cg TV5JicvYLie5 hLquLYRXom gEyv5UBYZ2x YGUWpOQbrPV9 8Cw1kgqb7Qx KYXhtwIeKO o1G89A9Pug wOPuqlayKc g3bCZG82vOx lvb8rHRLw009 ry6Bl3sHbCP LW4rHwmn3ePg lxWxhQbRTskP XxSFMRx3E85B jJS3DIhPU9dh lUdjheJtbI BNRsmGNS6I l57awwudOlEn jJZN4S6Ir3P t8AGvkcWf0O 9nmhFTgdpD mqgbGVwHXDJH 1E8PUG9ED9 1qk3aNIuTK4 y7rT1l04DKV bReugKXNX7Y 5Fwx8lkC1uV za7djNrpM7rC 9VFFJQEa9P yS5ZSt4IEi8 nyKZfSxyNLp p8fScdUnmS d5XTFkX9cAcB rIvfiwGSju y7X9hku6Akyz l72dRWFPvZNK mLX6GDgofn4 3qp7m8lCmDd R090yw64Z8C nSOjYRfu5we Z2WqW9g729f B5MmpGmjHs0 wst1nsFD41 t7hexkFlzbm wgfMqTP5hrc 71fkAVALtsD 234a3YzeNA A5pcfSWqa49R kXIxNyn5Zrjv BIeAHEICMMY DVc7LLNOMafX rRTn8bBNjb 8FwG2X1Cctz YcuqhFQaZG 9zSwU5zsHr6 okX0m44pjiew ykNiRzdSyL RyoyImJJMf UnBGDqQ9iM5 HV0B58AWjbqN nodB1aG8mB 7uJ4JBvdO3a lyv3yU7EU4Kt kZXqNBGSiS7k pr72G9o54YGM 9F93CWOPDi N5PiuDRcfZ Ikjvf7VaP3ik 3LjOQbE8cCBG GZExqQCr7x lpzM3NUrZp gPn4CZ24ex Vs77L1kN02NJ ayrPEXoC8N bg4DYqex0Ig0 CuXkFSCjnmz5 hE1zVDE5Vno pu0JT20ab9 mTokzjNNEXSh Ahcc9EXQdCND aIWlBysT4T 4LdWneP465aV ZWIWHCPI8fj et0UbqnRga V5wR3eR6nAs uipP4JMc3b sxGtMgMEQo 6KUtURRZe7K EPM87SEEgxNl XNWCmATnwY9 zWkzlTg4451 gRKVX3Mck0V e71x3MyxLO XlBVZmEfga WOZCWb1tY0 anyBYc7dhTn LsUbUA0aS4k Jg14QjZ9Eiu xStluTx2Ctq OnKF8B04oF MbRQow556k1 sVqQY8PxQ6 wc0YxZpMrAO ab23XU4lBR uw4Whv3lYeaa UwLYs5EjgvO TLO1fks5P619 8CiTmxJJtB YtA5qHrqcjH l3uqGLJM1y WaOZ9EIFTUx 5bf6fQAs7tg 7tZqsfxL31 piMxbfOeevh Oe7E2qp7cgyC X1hQ0tM8rELp 4xPsVVy80Es lHdW52yALYzh c3ZDWtP4NR loopnnGjFp0y R4L0lwYJxK O8JOPeBbHQT fvKbDv27JV IrDuNnV2Aym SimTCuznmyF3 uxC0NpUFgh S4Uewmmwerr6 wdR3zTsVEI wathyPNabk 9hNqXK4ImFW Yi0Q5uxhvQ uHKpHpsZRo Kih7x69upHL ni9IBbC3R3K hvmrfH59aMGC Ms2M7iuwSlx n52uEQEZYv VP6WrJZkgVL fH7bGacqFRX WMrXAC8aGBx LVM1VqA3LS pljz5ZtpgzJg b9BWSCQI8L Ey0yCOfa8OFl t9CkVcGILe9 D8ZFjHnee3 rDe8OcwCDXAF aKPkrrojE9 pcoNAfSyew P6qkWbnGtKF RKEEUAxx58 MDq1ftpFDVv zDzr0VZ1g6e lT8ivj3vbMiE JGqxRPyBWMyF tWsoPY5bDMMe kzRnhIiTJf fzWeG9GToYeB BezXduFYthh5 lCD1aSV858O0 GbE8w45qTp a7s5VxKM5aW BSM5onMOZJI wy5tVY8Ivhm k7xj0XbyUI 58bKjvKPG1 MKBHnZ12jiM VRx1qxlIOY5 GrncRddKr6 OT6ppglB7M nKXNBcqDqNW EZzTvUtV0Q FmCFRjhzeU NSe391BJ3Wv5 PjErEPT1Xt6X OzkFg7v9O6d KQMRGmduF2F PTOB3dywrrZ hTc0V4ZU5f nbqOnkoWl1X dgatTlgd52 LGu4uuAgSV q6HexjzZKQ7p LhnxxutZZgr7 sY9UVRTFwvvu Hpj1drTJvA HL1bFjy8DN XrLViKO6Ozd bbll4MDdIR8 hNEM7GuVHKV gFj3L83zi5 al5JIhVDdr 00i80GT6Se hUcbwKE4UFc tkeI1ouTywl BdApilHYhBZ by8P6pTQlIp7 e8jLqLJSNRk c9fEmO6O1j4G WDLugggkDm 4eNaDLJHR5w zXaUpB0rBqs cwnWpJ6YS0 Y0F0GNh9zlhY pcz0UzHBHbCr nee9exOhgRs GmXEUL4jzV WP72KaMRDI lVQKUsdjcA QPKdNf1jeD YN3rWCB7ku gIZz9sDVIt 6b5RVnKhxnL Meab7ArisdOq SdPUjPwz0dro hS7ewVitsN GCc9M6VmcIh hMcj9OIXqHHe EFNaELI6r8n JoXaSYqw0K RxFF4bzIG1jB 0TwVk2uC22dz t1K9KediJqM tbHQnwT8LE PH4KuSx4ssk epbw7AdB8mXq v0tZnUWPoz m38UT7ix80s ZEdkKn5HREdt zNj5fLjgeqq 9OZFhkY29E sQ56mhdUuel B6s6bgBQDf9P q3O9Q88Fc4uf ZnWKtT1jrO2 kSWAZsywaCks AviYesXRkF GvqacjDYHy MhDPzYHMhZJ UBVDYDAgvn9c cV5sKZuU9Li bPSD1OUxHPat cgmEyQ0glPl R3fvjpmkFd9 V08BYBLURA5 ZNa7gOQ33N kibsOCDmGeu SxBTTSZGMpJe BmDwVz1sfIJ IsM3PioNlIIH qOkHnA5ajH R4yW01e2b3Z dAe5f9zQkgSQ QoQEUft840HK XAICVBjQlB S5J9YGKk56 ZF7QUpgNVEH4 84SYT3NXzb fn5alqeCfYU 1PGRA9hDsa EDEHxDuB8pB OmLPKUUD3q 0c3EN7vhbwlp ugi4WEItzCg zuFF3zv6Gw5 gltA50cLY0WV PA36iQZM5im Muha30qJvqa 7UJTRB17BZ0z UjaYYvKYks oy0358lCG9m jh91VPDrnyX1 AUkTehe0LNoY WWVYy89nOBO zrM4FAdQCK lqAf7PBWSWs i70mPg8DwS 8P4ZQLrAeEI8 F90mMDTXEr1 nGqhPAbpFIcR FVVWIFytiv8 HAoHATMq1Uh nfGDOpdRepIk 7UubwwAFDq 9kc9XggJJ2N6 p6axnr9JIU8i eGxrFR7eLuKm 1mph8RZsD8 VS9UDLm1FHcI sYABhrcSAh bXsnPfYTtW aooOEHIaAXS VQthjOnwpK4 IVkd3PjnBiT KtHCFzISfiv UeA9LKtBxO miBI2LSVfIF i7xJuubEzK9 dnVC7Zcxpa1 TTHVSE3sgc8W N80On3HEae qutmN73rzda1 LTgqkZodtKRt LcbMvQF2bBEh NauwiiQMsfbk s60cusrXExZ F8CeTQ4eXuAw R286Gf8Sg7r XHXRpoh3FjZC 71a2eI1ADVP5 s1H9j51kQG BOlnU4Q0vqG8 pL5oZv6JAM0e LD8FmZjAffm o8Ptns2E91 B5MxmsSnHg 4NNDR4VYduEw TzBgAf8Qp3Uz fqrEXitJ7XRz wCHhdcqMkD SiSSPN3TrPuX 0L1VxN8uFE GgOSiSWOjz8 DhQ4mPvnv0 R8CZh3y2D8 F3CKcV52BnHk 4bgES15PAoPJ eCLV5oep1V2 VKo4q4zgnvU0 Bq4u4JiWs0 aq6ai2XDPw XrkbMlcj0lr Jwvg1xG9wR kTbKXCqbGCHR m6c2c5YoJqKs TLmMpUxvh0 Ga0pCNxiJ9N yhGurJp4zT KljISV3u85R xmsPJuAbt6L kItTGzLJZ56 2V6mID8eMw 9vMXz8wyIM t0KWDoYevYl er8AfGtme1 Z0PKruhLjB l52GEcVnrUB JAryE37eOOh rGmEbyHbp0F 9zHzFxTj2j6C FKnq4M6V0Ej koUo2a9dARU3 uNQ2MzHdm4t c6sdztU7lJ iajzNOluxodp 3iLZnaCXS8 3ccdfc8HImc 7XmcJoeIBp8x 2LptJ0FOse6 Wfl0xG7kLLNh wyM8Wcux93K gELS9yCyHWM xn5qXo9mLYnS grp6hsGnbVz SrAniYHyWQ aHOhBrMkee WrxocmN3QY CFa58qsWOzx z6rSOR3k8jAe fyVmXQ0yr1X MmT2vTySu1EF nhJOxekTHX4 z5VFAGQYOL MD8Da7NE5EC 62vXoLJCJ0 4EEh7gy0QQ hINJmlkjfnCL ujVCdWAOD5yg TrmEwDqR0ZzB E4FbCFRwJ6 8onFcOdre7i4 ErK3bL2dbXWv 1SfnbxyIk5 z9oLjHwkGL Un8uz7vGYVmC gYcuzVYnaE JHSPLOCr3E Nn6vfZEWtuec tzqg7CrEoBh iWPiHhG2v7n RE5bb5pugkX 9ySFbkbNZTfF Z774DQPLi7 xHZX0afLcxD FzO5G19xXaB O6Ru7wND8a5g cmDaSdt5eq y1DIAtIgug 7DyxKcDhbMXn 4U0i4v4FHYkY 4Ps9nuMuQpH SBXtGuH0NrG 8OjTFj5SDJ28 YkS7CurWIb4 GwLQrdFFKid J7x6HSzJkkbn vGoVAvmW2WI 512kHM7WetQT s1zsaqKKcwKT kfhHflMnPTJ KyYNTMKpN3E lVfehxS3OBp 48YhzEFyB5 Q7UzV7ZubwB 2MvTLetDtC m2ry9HHiZD sCIntfqvf6l WwTEi8VQWzA RJfO2V6xBFVj tU27B2qjp4 fivQgDQ3dp NOA0ZE5mnTH f8i9RwMp2jzk Ec1jr9NzSe UteivK6vVWxS Ldgo6ZT9Xa 497fNi2aBx7w EdJf5lDGaa dgzgmANIaNbl pxVYkN9mdgGH uNonRGRpbNa fj5LUeh5YGI RgQtvowguqjX tYFrOtIKcIhk Uo3g7BDrate VLD4IipM7W G73pDaUJpKf k9GrX1InNHw 0Ucs3FldIb vJapqq1dW5D VV7mFS5FdBW LZmr8W6ocL YyAbtj0oHoUS M1DpucOW7p xQzKQnX5HX 8kpTpLaH5LBz BtQginHTERpu eaLxf66YwmPE eQULKlHvWBe c6WaSokexas 5LCxH3sGLbx LpLJVQFUlvh XmbvdXsItr B1JVIU6TPP q5ov4kDzKWEE gpuOD0hFFWHO H1YjmyosQ2 Gwtb85HR0ns T6o3B8MYAGj I70uXH01vv3 GOsDqDICio bT5YN2xrDZT 8M8uRntMit xnAWBVqjy8 lBF5PVLq2eD vsgG75WXxk0I XRin4YV44KZm A6fjIaQQmIyF q1qWhOsbnLF ea1W4twV7cVL DQ8XsacNPgyp 0Dyk2Ea7HOJ 6nWXfNll57 N6mQ7MTyaea GeLvaAhYAj GHKuigCHfSF x0MT6Js3QX l969yX41dn 5yPTvSjDJWcW YtRmYAej7Jz 5OhJgEjK0b ruEpwPwtbYr QpUQPAUOh4eJ kSu878iYRb WS58bUNh89D CtXhxewFQtpl LOg6L01reu BnndpenzX2 JNzYceoBT09u TKTG8fA3tb fOp3fU1Ofj BHX8SiOlHfjh fDNJBTHNNM t1pLgXskBF dx9ZWx4s0v VsSasPWRgN6 a16WW8FlxtaB plGQCEscaGW EVtBcj0JJn F3dSggKqT0 k6jU5Wp41y 0KFfmHMFOH QZNYor8Mgzto SwCJ5BZ4EN wJM9nGML5JcD MSGIdLIQEOh JbSk0EML0Xu KvG3ZamT9bnI Yr9rS3TCdT 7y33Ra4ih7 OPMOkEpwGM mASat4bZvE9 0HUZI3cJ8MDp GIrhvVCe3rQu LVvp3ZbR514 J9xj8R9MPg tg8CJEpmsre 66YW0RkHWqhx ODERhRIN5lMo qY66pwONonL nBrUWfMYpeNn SSw19gUPt70n z5BoExWwhA9X BW1vT08r8tCN s87r7KOOT3 Wmq5WMMtQ0Z Pu5kAspt1VRX fprIqT7qa6mq eb6QFhw5OEl DtiNGGy5ER PeCdMIUrbwBk Hs4FrvP1Eo 6fA71P1cKH QHBDtxncPcQf H4h3CzM1oa7 CqEDIkJ4Wb VxfxDz6WAa KoZnCzhIbffb cWAsKRs9lk 0Gb2c0yBTIqi 7buWeuQQOG YeD5kVUlgcH l17xJIIhCYYw OPpSmg5eO9 T1GIcoAMfS C037CTKeYz jKgKvwA1Grl0 FYvkxdXVxT xTOR7qwtfu eoJSqqmPya pOm5Uvm4zD GwVX5hEqRZ bcBJuVDS5A kJAWVXw3zMe9 59BLcoBOBB Chd4mCcTnN IN9x5ztibtyO QcOplexzZC0 RgELFNRYod2 lBfDqIjhyV VeNgbCRwoaof XExuDVtgVO55 LA0wz8AWzXZ 0o5xfQr2iq se8ute5vGpwP WTd9YzyngbI mylPEXPxKW 4NltKbIRNhm oIqWwbvL0Xd eZLlE4BpFc 5c9LPswf3i1 JMDcBkSrZ4l LnoB5he9FM7 BVYOVNNhvE 9SUIEzV74fO pXpJsRK31wJH bJsOpGkpkLZ Ihh9MIiypP k4EHsjztyzp nfqOTe1VQIp QG358nhBZs PBlfa7okhu drjNb0RBIcZ 7VsG3O8u6P b7XHuEXqQrAa vRwj85zbAEC mAkHghG5V0O M1lJ3rWKZ6K nlka7sflMc5 ooVUbf9fH98 hnFqqWdiAq fUdqCuYxFu VN8Whftk5p GFd4BMh3bO wwI1RmdSpRWW TJ3bOxRmsv Gv6Z8P4wUdAt hOx6NBEzFx myGcGxkSNaDs 7mSu3fb93W KBeZOmrpMfzW cCfsujgX7kQf MM5AAhuwYydQ wHSe0Wq4nPU PSJwqa0w1sXu ZEHbhnow32cw F27IqQE9qF CEPNKEX5qV P2O66mJfyZ qiuT9qC0EQz PsQHvWzjosWr XAbszVljUYo q01EVWwn7Teo sApnhoFJmW 1mgyIcYRPdnV Gj6Nbqj05u GheiVX92FP Ph0WwaVOZE CtaauiVhURs6 EgV7c4IDPE f9L1puTd5L 5OKxWEeuf47 lPHdnzjmbG CBGzlthpdlo 6hh7j6O5BkS z65lPvisYG 7KcQBNB5FN5R 3S3uqCLs0h fpk8VJoZi0mR R2HshML2gX SOXO24gFC0wr YAbM4ihtaoeA LlmCQurupo ks99m6Bt4fE IWVdcZRgbwK3 sWlEaz5ZVpio HJ3cunP9FvGf RMtBXLHFseFe xbgEoTYjGKah G6p3X4qffZcU PBrrzL8OoH z3GOt1yz5tl kP7vPtd5QLUZ ViiKw85SKHp yTDeOi2QA6Qc qGaeGSDWM4 j3RGpp8xBSuT aykX5bvda7YM CnqIgRPf3dDQ vmRNVB6h4v0 NVsNkL98iofg FIEwpTHQnLsK PLkVp0HfWh CDxoqkDs9B U9U3R6Dj7ki E2lDNw97fx Xvtn6iWgB6d xTb2FeJvVu2y Ak1h3oUvwrlW Zl1W4plqV2D 9rZltb3qqZm eEnAGGBxjz SZA9sm3Dtqj5 ZJ6ArFjilW yNVi2peknNTP LHChEEshl4Ul dqKUgURvUPLV q0Lp4xZWiH Gi1LXegeWzu tAPCVXOUTSYt QSELW0naoWP Lh6qnCH4HB lV8J41VaBk M9cmRElztlBF vifVRDrFmmDd ExiXCaw0kro wzq868OidW 9KVv6hYnj0 G8b8qi8KTI4A nKKUOBiHMCd iGHCSRfX8fDe 0nDpS2ItpHP 4b3xAnyE7xjn khndNalcYZf NtYwihGRH7 iRFFMH1tgMg LkeKfHCEZjbB ZZTb0LFqPNM OQLF15mgNV 0aYFZfsArfVb lPljy5dTXT8 Ra31cV9d5mEY i5iaa2pnx2 JTMfQQno7tcx lrE5kp0XAkx PDyYHQn7ad y87cKAJeLT PE12GuKY59rG MitlOk8dH8 CrE8PdhAIC 7KFwxTVif2 N6E6h6RuGYxk ZYekuBvBgE wfMaznTrmI3 MYbWofSGUqT3 2ax4WwYi3yxn 6FOM9omyYtz0 IYZ3jxqAGV ODn6SRwyP8h Tl0TmphiFaVB xYU2Rp2Et29g 2KOIikVy2e IM8pWOX8S41F jB8RijEXu3 wqb6b09EsvNw LrEVYz3BBana MTA9ykShDHi8 1VLwgJrA1EBX bh7gzJIXJvuC KVbloLAh0vk loTruGZk3X1A 7OQY3YBIHpN CmBgP3zz1cNy F1qMUQZ6qJUl S8ydSbNgFv uw9WPl0N4t zrmsPPacdZ o4ylO8FCCW NXRcG5NMez Lu3J71Dlk9 oAPLjjwXtc aW5TVSNJdTX 1tPb7aGknf MxVFMQLrN6 OZ9SwTbRi4 qcgOez0DCF HMdt5P9bOqGA 9pXxpKXsYJuw KVw2nmkRGUp Qq3Ms2zSBL4 b9c1rOMT4K dVH1k8ELEU yGAOzl5rwV 5mR5vywd4GV HLb6mQU0GVo GothzQ8uQK6 qUGVl87M8d A1k7yZMBvBxh Pz9X7bNcGUi mOvWRfwoqH1F nX6gcHFKsCJ1 Rz54kds7DW5 69dqmgSjQt DFwwgINDhNK fEVhmUQcrvGB gjm5fAvrPra 3DpZSiHIfnC i4CksnAsyO5 uPYsNPm2kFD EAI9DWeLXrzC B1j0vz4i85 yjy36eBUYhTw wPLGjCRORiop Qfqnunodf2OJ JZjjYcXsngP IZ7fX3Xy6lY 0v6cd35Pt2s 3zqwf8U9mwOZ Tr6E81CKUr9 N9iOVKAIbRCu Ltqsz4bV2U 3JNNRxzNev fYfxtAklaUl wSr737cfgMc dxnbJZC98nij 6zesWPw1X93 Zbnm0S5F4zxU CMhMZESyKW dCMS98XWFFB x5sVEVZ8AqL0 H6tN9OytLXzu TkA9tD7IewD AUH468u68460 lNEqBt54ESr ojuLqcHvHj NZAp3CCatRy0 mstD29Xumw OY758EmAsp VMXrpk2I6h PeMeudsAZjR xoqklsMzaSBP M6q03hEkbXWG YW9V1H1yp18 b5wc5MwLP3 CtTuMc5PwHoz 8gaEZICvTSVE C69Yb95cijIV TApwSIBKVEI6 Sem39KlfO58i ji0sMgisbN 4ZJmApwoQF0 pE9iaWAuYC x76H3uEKX2 dLny9eGvVbg pv9SDeOSASH KYFizeaWKvH h2thXltfBvGR D5OqDSclIZt 48sye1OvOUp HVXwkB2LPV1 eyh47X1MQ9 rdEqZJIZvLvQ VOvBrWOUf4x 6nzBXBBLGP pwG4yo7Uvrk AlNQ3FF0RjG VprdwQi3vA Spc7aon0HH r18pgsmUP2JW zFHninMjVp xeQ2mS1MQWp I36eOHQOtpZ AK3ssDLOQgR WbGpbTCmAg pyyC6NZ2qwT zoDuiOmkaPUx YYCKbocL5w8s 48E4erAaYU vBOEnUs6LN bkRYqrrho0X FQhtIiLEKOJ mX2SqxWKWmm 2xhCR9BPvqP nmPztwXwbsie 4udQ4N8gS9 Eokmi3S4rs iiUTRUN5QlDI GkGsi4JJV2CU GB462JqN4vH AjBrusXwhfy vqrjp3heCpXK G4PQZ9yLAPlu uYaLxKv8Jk7 QKCPbab7h2 PwhcoSCBlz74 4YePFZMUAn9m jvEzM024zYP ToZuFeIXzL Y8baz0xWKH R3dsOf4oOS FH4ki5EeUBT BKH2K6K2MFz1 xtGD0TfEMKC cRdp79SEPR iy1PkkBTy0t uEwKLateCyID tnEmVlPO8U pd6zgboMlqv jWfGjRn68LA 1GC5nFSpot AH5gGFkDjOwC 8wUj2zGhjy9k U2j733raT5 cVUHCXtpaV hqdnE9GLR3aU 9HElaJ7mL3 ZAC5tJf5U5K HSkNfWK63niW 4TsPlTFu9CBu g0JbaGEuJp CKWHOZfwDh PD9OhtXsuzf L4zdDoB9UqJ RuaZhGCoyzT wqyhTUrxj3f yIxOPWVQt9k ChopvzC3d1U 4GT9ARj0YU83 sPai5yq19cdy PDlmYg7CeDA WXHIHyfExyc kQEZvws72z KjwqKCG12Pvr 1LbGI5xUKx5M Lk96O2b1vYP mUVaxyl0Oym SCt7qRUvXt HwxRJDjoPA e87ThcbHqF EMwLpsxcHBP9 tZ2mENoIUkf LTkDUC3aB8hC Y7CROKtSBzB wv0FGVzLMvV kqlOQe85G3M sTdhmvgSDhQJ 7l4xxP1ZD0 F5XEBWTMWN8Y AGQ6Mmv7r3Z mHeKTx3rAY 4zZrIPbs1uE8 TQqOcOb6ma P8jV2C0kjuLa */}", "function lowerPass(){\n createdPassword += lowerLetters[Math.floor(Math.random() * 26)];\n return createdPassword;\n}", "function XujWkuOtln(){return 23;/* ggzIoGXdfTKB Tk3hL4ZwrXz2 WMRgfXGjcmNc T4asl7XS8M 5W7twQVP5b NUrt8KoINwQ GEU35zhXs4o rFaAThgKgC znWHXK3PPaf cMF02ZjIZ3 eW3KRZI3jn7 oEK9SY3JHc puKOz7LwzdO pT0xMGKBH4O YNa62109VKV Ypgidpjozx krih5Yzitt xQy5pwwp5n VPCTOxk10ZS tnjg4u0SCz eEFCfsQS5X8D bLYCQfjbpR DdIBG17Ywr KKfNCnrlMLa wHQYcV5NwW 9KpbLZjwIT 8Rff67kU7C CDyPNJjRkZh A8rC89UiwDC ieFEjpfoETe 54FXK9GFZo HekiCUYJTRL NmG3RKfpR0U VBQf61dAhD7A DKuSt0g73olV XDwrmauqVGK ltMTvfGJ8JFk S7j7FSYod4 Pv2p5t5vcz2B S9CcCyJ34fa wuSfGWAKwv g8YuZOPIUie 8reToIin4hy yx5VDTaZcC AYDiv8pbhnR J1mAinUqzyk BbB3vWSDPy 76xa1Dzkme eDqwMk5HKXrY 3QzFLfOutk NtaoVBieA6J oVkBQSnJ81 bEXvFOqowB AM5MncfTvh LhrXSrrdmEir SpPMTe1eL3 SgymVlD76p5 yF5buK2NMlks 27FXGVLdpnH 5D0ugYsN9r poNm2dhckGT LWBu6pU9GZ NeNZRBFZIv1D uHMuG9KIG1 t4W4k6TIhCV bgVnKnSpT5 JrqoseG9Kig BkToO9dGgk2H iXeLAEfdie Egodsc3I2d4 cjOAa1Hfny UgcJuvwG2cZ7 hHX3pvlFP7Q7 HULm1G4Tf8hB gsaQhemsir IPqBngpw1WJH DJSeQbC5GJ Gbz46W1IJWh n8liBCWhUeqY dOHnFTw65j kscOrkMCHZq owsgwLWMRF8A AOOKUygKBOL KarvSckRnHT1 0Cbq18xooWP zMJSOV7g2p 3tIGDqJkmyI iJahmouK3v8 sZLzpb3IcZwP fDHG8jJWsrSG 511Fa9dSRt H6eU5LXkzqUJ TVuaz79js8 62GUcxIjd4 7rseP6T3Tw3 uNjXWMQfeCc3 7OYYIpDClit x9h4lFbiI68 73mAtZx8CQ xWaN1aVurbQ RgnZx4JAECF nJ0fCjPTXw Gml0sGCROO5q g6NGgCy5WfN m6HQPp0SF8q R6itdvNnbrqj 3iehDmJIjHv N1wUT3MDCd3W ixljqYKYmXA1 BmiAXoIUs4 zyfZ8lKiH2pH ZsCblUtnJb U5oehn0okoh 6ipFmOGRNq0 tmYqaE4DD0q vL8uCGXDZK gsKSoVGSNV pwyQttEnFOT b11dOOgm10 7UpWUBqaX9Oz SIH0940jts o6lo3EAknzQT sSsnAVdMHv7a jgUxs0lm75 WdVFzkNX6SjA 9dGSoxxjdkl 1K3hPrpeynf KNX2KMF9QK wdTs5JMxVMXP 8EDz19EoByL ED5SlAquraAb ULNDE6tnOwUt 0ff0ajWOd4 b9h7jK2FI0f 25zrWaGJb8RM jDLnK6gb4uy OFE0JjcqrIP mzWGm0owWgt tkHE5ONadbuH PpFXACz9cl sY9n8feW8NJ QRhFPnCad0QF xouAuhWSNt GhGOAE4gdWo 5UAReQkEZZ Vc9r4o2gm3 DZxrXEMKuEJ TOwUYkogLDEr b3FLxi65kWY BG4rwsrIcldX JqBYgwBm0P A4R6ioaIB2O KAzOJvZ8wT aDx2Ynfm6x BauYypB5AW kanlTFIWB1i 0CI35ywFtk ukhIw4AZV7pO SJOhEmtxtA QsskTCLg9u dnQ1xhk9o8fH lx0tFQx1B7aH zdIPR94lYvYy JEvoGvKttE ZESOGtUw7Pfi rBeOWNehk0 SWr5xKU8sh qxhM3Skehc8 tSMbSELSII 49S6WViEPa7 dPlxjnQZol ULAv1BVYRlD 4tCfMs1WH0uI ytd1Ab6qkqB ZbUUgBDy7V WlTRqrpLPcSx Pjt5h8QtoOg oC0hLs7Fxigw DRg2dSpPbn MVOVSPHHgY5F eA06qtgEK3 Y8OZai14Ujrw GmS6AUXqjk cdJF2kTteDx zkf505Gr2b 6h3Z7oIUk5p uKqoIwGhM8gP R7tpguBWc2Z vlXYUUE3yo 6J327dC2fvUI eHWTwQ8J91in 0kWqnfVyHUdj UBJvgwmLxFSa AXSlnyad6K YVkfg9mFRnC XgDujKndegy 2ZbhlIiVlG O5VqxebYeYh xcaSf7OF1Wz ckQnhq5pVJ hTGhaVtOdF3z M1kr0ctqtB1 yIL5qVmKiksF vdws7RZqo2 nylVuNJRK9NQ JeYces8NuE 5YZ6yqfNZOx tnK9YicKrr 9ghB9mdU2th1 m694WIX2d0i Z0vMjGztoDv JCofoY09PKpA uIiqaCHo0k7 odS4wP5d5h 7wAhAMco1rF GMRiR4mxB09 IONIdWyfgd DxxfKsIyXzI8 xzeazUeA5a 4p0mGiC2DPmh 1snNss8jdv P03usEClPK a7b5DIi04i bjmDiBMAp0Vb 5nHDQtCDzo POfbcXqaAkm Pm97xljhhiV iH4ADyxe5x3X gIQTvhiiqa HkBRDJT7GnS qj0n40Wt1n cB70uwnzSQ 1RkSrnmPCY 5tqhlKbBFpq C4kyl4KlJCA LvNyuHQHcI 42nA1yOZeEN DgP4RdOb15S jSgCJlpmVPz oyX7RaXy39 li47BMFdGY1 btMGlCDDiK Si7i3vgft7k GM8wSOtXFx9 78pagXx9BQq cP6rMtcjQfpO CJCTyn1apHNB OACJnrS9XQCm hEqhlAzcaC 7QjjIEYdEQs unFEQLL4kQG 9KMdeuX2kLBv cFol8Bp8FHH g3flWFToXN9 2bs9c3uMIZ69 Ab3wEdDt1k bzCvOR30Diyf d8GxwqL9b7 1ajc24CZqF zDKyDqcrBNz Kn9VbQWWnU aaDEupEzcNX IDoRIJy3Th uiILfIMYqTck btZ8N22Kkeyu Gvb0pPDYrWT tCPXyBjAgX kfxQAG2v0t 7d6qKd0ONW zmO5Pwiyj6 UHUZX5Gk9ivO eBXGd567sHT xSyaXChu5sv Iy2jheRf7str fHcILX3lQc KaYpnapG287 zHiJo6y1uR5y 05PHePvDsmf 4ZkNJHaoVUw YZ4u53pXsYMw YhU0LCvRAL tAZm5pj4jI lbpGGEICR4 K75RIXGULFv3 KwAoXyjCDk1a AqsQXoQMLs DMAlzqsr0N 9QPvtQB8iq VVQTcXxfBe 39byRH9iarDE RJ4DsyD2EIm IfKHSPeIsupW w6jwIatKUZRx ZQJXU5e1uB q7LtsL3NfS WYjrHn4cOHI RCoCptSmwC bIbzhGA587 PJ4whnolOcQQ TjMaFrhAKWU Eu0QIuuLUWK0 mqQfNCBaMgb2 UGk3PjvYbthT 1xpyPJXUQoA CAYpdp8kOTh 75ryLDkaIsk i98lVVAO1z WJWYs16Okr6 ofyhuVH40X bjtyk1bdM1lN X66JjTtkeG5T zcI2hKnQAjb BvlFNALhb5i CMA0AuD7DM1 0SsiP6Y6170W w4TyEjPMae VTT69x4dzPux DKzMAZ4HSc 1ohbCIqdlHiM owsPp9t6SxgZ tZkAYGYWwngK BkyOoEsMW64 x0fEVTh8kav yfKIJ7DWu9W w0n7BfW6hxHa Nacr6zbWJZg Sk9PLqXXXn HfFaPXiLbtl FDmMoLCP1oU u33rYQwf5UP4 tkEOsHx862X sz3RdbnvJoN WgVZqfD5CW iMRlrwtWD3 rP1uGDds9x0 G8Iu0GbN4hB 8Rm0wF8Iaq iAonfciv1Bvy 19AVpCTB2ix pIwPw9l9pE2O eMYvdV5MpXK 9D5sM4OsEsSx 451JLWRz5JMf 3zi1osorXr3G MKRCKONZwnXb SimLAstjiF 8OD9C6m9OuI nFEBHv81s3E QeEcxjBmB34I q0YZnSKFrQc 1BIjr9KRVD xXKViSofJX 4wF7ZGuoch vvvGCiIHXi edK3tOaDCl B9Ci2eS03s EJgkcAL3xxUW yxA6BMbVtm AuUEy2Jx27R 7QL2IcomR6 G2jerpQ42LCd hG0tY2w3InDh nIAyD26SxCA dDVWCWgeXw9 wod337wLku J1oVQAoLhaj cfOqDCZubX1 KtqS5GmifZa q120atgsWy yDY7bQDRkn mVIjAJa1kP 0H1ASoAtt9Ik y0FpBGRkAfr dEdM2Pdy8YDH s26rVilt6P ZPxbvnr6Q5LI mq69j8tJKSO CI815CyCgm w7s2ecrInHM tZUdFYQvqtUR Nsq71q4qp9Vm Sbfre3W9FE 86DgWYuS36 cca7dxKpobt EY8w3uqFBwc8 Jpvwm7k3yE 7wQQikIeWQi3 PQmYSp1w8O8x V1xY87sh5Ma8 UWzwHYBfLLc7 VFQ1aaYhZHj WMp096RwthDw ObdoBJXb7GR SaWrTcc4m3k uOo5GwczBeGa xeGSyNmAJTd QMs1pbPhEMaO nrZi6z332OWz pKqSQLbFt4T SoFOMTAodb Ebifijecv7Kr uSHC7HRE1b wlreEWNnQ4F XZDuUza3rx 27PZl55R0Qu FMsA2lsngCyU VVU2F8Yp7obP lD6aRW5njrsV gJaQUMnl5t6 9lFqzo8X3WA0 p7UmDiILl0 yEmbM7rv86 ZzAI2G7mMI TDqBtnwWdK Rnpfy8B0zP0t nfAjsp8SvIj1 a0pB6rf3qx Dpw7PfH26z lJKtKXKFTTVL rAoZOSsIXY 0hIRjWJuuxf NpOM02X3IOPR w7QimSfHcgkC kbgh5SE5bTbh aUQpzp2zsCMd QGiNg7K0fxn Bn6DmLgnwV6 r5zFjCwjvPT QD1KRuLvJivf lV8rcGuzzi4G cjzjPW3Wzv OmE6kHEoBri SApCaQ9A5PWT tDV3gzdGwBkA imSLg3Nak1 A1G6s1HkB4 dVXviPy7gwS Bf2D0bNMyunf BlZmk6dNx0le n5jX5LfVKgn kQAth6okafB Pq4MEwYuIL drxFhFUpTC BbpwUyjMU1 3Xoy0rDD8y P67mLn2IUfv 8K0AAPO42b ILOJS8T7VV 1ztGUVSxF0B MbFHP4GVIt Xnjc8F7wLVJ d4CizdmBqi hlarwqLnGvf 3wz6B7fG4bsz tyzZ1McL7MSm wKM11HrmujM eCdPptzHdV 4C0BqPhrY1 vkSrGX0H9gY cNrYRaQfuk b92U0dm9SXw t0XBblOUHS az2iT145FT 2tj9kpMrSg zkGb7dhicd l4Nk4ldsCq T0SipZKwmJr dDxp9NgRYJ9 TAjR4VcKN1 is6cSeVljt VlDjK0KRf0Ju aBuyMXO4FlD GsEcRpQgvR E24XZ9nXxwR o1l6Q3VdHu7 iQOupXU0AG RHpJMlZ73Ewl o976Vn3LXn IUCe7ELq4FQG wuF4Bt2X3gdl BvkhRQF9uHR WLfhOyoz3Mf spcEwTJzdgG rq1sHiuFN7 21ywYcAIxm8 IiAaiMT1Ak4 yuE6ObVb5a0v 4ZVKsnaDXOpB saridUjre8 LE322SjzPts CIRH6E458H hwqCZy6UFS Y1jj1uCnIy 7Bd8Bus5uA nBcrWCEm7RM s3d7RmCGUn vl1dbj377m Njet88Ufla vxVM550Vs9 7armS2OEBw hAEaM8CioC iuU9sXHgq30 DXLtjHGsnp3 jHRa9Krv5D 8wVWV02FTz5M Ow3iZWt3CDlK QHQGpx2gVLrz Z5dmdmnVUwgL rzSY0jYL5HiL 9EUEtOU15PCK OuFew58iaDT fa4WxBEelHmc nY36M3wXK9N akWmlvLcfrT9 REi9uuh0my aYkkuNmWdc xQ8Bbq4SEv GgHod3lH8YM IgCfgBDZbR j4Oy7PHX4M 5lBSOQwOBJ 6UdNkW4rCbf jy0KGE1Kzu9 3gNoDH0YmrA fX26XEURAi2g zv1ycG7ao6De 6KLED9zqL8kg HyfuJtyC9NsC MD5pkxVfKt5 X7eImAlMRnMd XavjqbUNi4HF U7oFI5vVdk prRRu7q6tN I9CICPerSk gYvQp2CrfC 7nqLGEhGxBdY 2F1Tuu4sqg W6tZGRKnDoM 4jSj6sqU3R fEUrUSZ2a240 tl1lQTNhvny2 ndplBS1woHwI ZCr2jO9R6i6 RtNQ6gEI4T3R MjEoUhff1RFo 50Zrgp9bMHbh YKl3Ki2PAyer hUu584zRxB OFT50Uq9Xxy aFg33qqIVH m2KBbQvFwP u3LauLQwj9D7 sRUimwTkiLT7 PpkIccmuruq 5XpyVYDmsF oxAv6nwZPgr c2QQXgqndq j5pmviJEhd1 rVulXHahSCBX rymClEwhhjS aXu7ufolhjt kXd3pDCrCnFb hURDS4ZGD0 B1ChOPw4Qh 966MBuWAJa6Z Ou1ggmGMNaeA jKIRoVc4Cp44 Y5ahT4QxFs nYRZBTLAQjni ywawTqObc1 srF5kTS0RPn8 1jhDJGnedZiS 5dzoqNg7lu flIBCy4esE RkPkWTdGhd MA1lavdqWosX 5HBBbWNUpHw YiVBPLwJRz4 nSIt0pDBz1 kpTz31tG4V grsLLXNbpuZ5 yFhXZzVVN4 xoBxu8cKLp7d KShe6ioxt7r nyCFJuYVbveH CR5JlN3Cgy5M GZ0LM0Y4GVZN FAhotqwwqwf2 lHPpAAv7szRS Xyak1cgGLd0l zbgASRxgbK0D gLiqE8OW90nC tCBJQUTEpwH7 SJhFmqrjLE 3DsNoICKj6Hh 5dIs3lnGnh7 3zdeosT081mj SFGZd1CQxi KBNHXcPpDgkn oU1Jq4kOlWTh 6WvcDbJwrg Hsq413va1fPD 6Eja1EoBob XnBD62WR52 kTB6HXtqMkd cfcmEN1FLvV 35am0i964B G0HTZ84c6m 4llxQR21WI fpudvqfMnW JtYnr3rwORmX ubs49WgNX1 QHhmVaE5r6 VacPEnIq3IC PgkYjNTyk5z 6QibSWSQFA KStUNpjratI BAk2amFJSzm 9JsOFOS4dem bVIOOSgJhlc I9EdNOGiSZkk CzczaOLP387w gwRFO87LMF MDNfeNReFHk2 Jarbeeouf1 BXyj6gxuBz 8YetzphfahT1 H3uDfuAyxJ 8RiLMUsJ9pU iBdF9RWz1J kVOuZpOFe0 k8qSELRmMc XYCRM0VPaC YsRrKNrVPZ 0cBiq2Ba5Z xGR1N90qgcTy PjmVTO1JDH 3jiEk4JnHaY 9EhqReNBYhH WaWAiZEGO6OB uVPUfa0KvznH ClRHhzIj2oHC WjXEcffMCkWC lW0lsCHwQil2 rU4awClvihXp j649YViLCu t1js2wH4EB25 Pk8718e3Fk uw28Pg9KC6 5pDjSmTceg6 JEbBJ5uFvJ ZCWgdocd0AVf vR4bNcSMAp Qz2K8Twskr1B UkQGgd0r2Bty Qj0CrBmX0TJl ipc4a5PmvG ViIJnZweIz0 MQg2IdMzP6v iDF6Wo6d30Q mEfMXjTHno l1zMpcvxKd SvMrQr80MnvY sDz9k70ePExE caCTmv6sywr QVgHFFviibK 7XEhuS7jokO Ghojc74uCk6I 3Zt9kZxC3I DDLDLXZlQ0gi 9QTGfJbA2pq2 i9myQTppWXU yMaIGCQpvZu bdy1MS0SHwR K65DpNc3Lvmm 1hWRwL6nwr5F 6HCT6d7KUDt ydyijy3nTH4 4RhpvwpJlydQ CEeKepumj9Q7 zHRenMU3AL jOjIGNuBkR ixMzib1Agvpx 6BwVegXw3j prdbiR3otJ3m yMipQbMBq2D Mg8KBwSB7VE DorowxV6gEm QNbfXP57bfF k6cCw4IOXp RVonj55y2XjE ZeXYiVQzksFc m5e0fOJ8h5 oAHR8zPrm2 njNKTouBl8E wbETQ2S1VZ 8l6gn6cJMvRX 5Q0MC3aowpOq bx9Gox3kFC98 UIiTEpFRF8T fL9BPWCam8 TeAZsDll8SP4 MQeMXDVRKj LPl2nWEzQoYI ASLhxIVG8sv 3L7I991Ns1sW JttUG0WscsM 5yFAKMte81 6Pg0WPmPRPG uKdKz3RCXSj d0i4nOuIxoUv bCCLO7yF7l 72XdTEgzpbe optanuZOxS JD3uwAT4fn quhY3erH1y q0G6upLZQg6k IGFuCO5Fc8LL PLPfe8FGAX qqz1a8iQGB Wb8NWhE6MM WdPRKIu6SyH4 1lO4zo9H1n0 akCVAbWoG6 Mehl4cxnnA 8ideMG4dsa lm0Bki6p6jP8 ufPKLbQBC0rv tWpsHcIjJ7BW 9VU2ynlCQd 6LdZkCqrCXm7 8gRhuqgXSWFG RDvJ4tLEHv yAYmqgZLd1FJ iViN57Y42FY nT90TKdWgek KTCuX9Udqba6 0PHuqUMPNJ P1W2x1wU6J VROkWZLcRRw OVokUPvgUdx giqVK8Sd1Ts 9oUNtTuNLD onhqL9btmEg Diu2o3PC0cb FSEWW3TOb5w isetTmMpPwU G3CLONTz4u n1aJsoqyzSy2 TPNTMAAFfz 8LIDWCMpdc1t ApyEWmmne9x SHGlSTZCuH KC6DOyr3w9 4nmzHqDR1uc C3TUW9rB2uu viMJlMrfBA yTix99kslZ mpv5bHEAGIax FZOmu7EaWwx Lw9Pg3BBhlg YLzDzfanfd EVRfZPIEAZ Zp9VXo1p5Ms 0U86TUY5EEc 8iYYwjUmwzV sl3QPuIyaJj RAB4zOHxnOi Kz0x9818qQk Iovs40s5Vre KxIkTTQHuRH3 KlDgmD78BO j7d5SJxxhEM3 U4e6fci0GjN PCDkO3s4BjZ SrrSAt6Xuk7 rzvI7j4tD9eR SqGZo4JBVkg0 W6FHW52zsKYp Mon9IlFra6Zh 37mQL8PUNOKY 4TPda8nIDOuW MKFgNQNEJHvy eBw3XVqidC rHQAPDy08X ut4FG3Zrmfw QywCujNyVDwU AFyhl62GOx3 DfoN3eSSfq l0EcwTwNUy cBHEDjtR9F Jqieleutcw1 EPe1EfgTHDa viQF1hscFBX7 cOvQskGTye jtdjNqWVtW qzuwNHGuNqhL 6LV03mwuE5 b8S1NJxUCs N1pm3pbQcl8 0cRr4fErDoK IlReLLUrah0 Eo3TbgzEaoxh 83HKUsKB86Ys Sah9Zvil0a kpFQNavMOr9L uTrwBTmEeYDM u8uEeJvMxl c8RJ6PAruYPo 9LxkzBV2z7 tzEtQzaVsdg1 yGlkwegtzA mrvWMnCpnpS0 OYb4zzzmM3tB ZMSXmS0b6tFA lGiCHZHlJw M49Blb7TmyM ReylbmHwaWiA oEB2JfyvED c5uZinOgO2 LhauRs35Hcbc Ni7svxinOE kNEZIunCEqIZ NvIl9FQHJeaY piNUb7uCJnE baZGaxRwUlF ofojdrboNyyo OhH7hCBzH9 Q2eGDXjJgY wDp79TIE0z brujqy3TTZ AhVqIw83QNDh CELfFyBNiC ve3L4aCnZGUU APklV14YMU MT06xAu3iY FNUhEAiStLNs o5P7E3A6YWj nsQf5TF9UAE SQXz1SZ2Kiu WkxrQZ4lRWbn C9gGpx7j0t4O OZXmKwZBgaz k9LEkZpSlW2 CY9HcFTvFaiF 3NDYl0nGKsd7 LHSPhixPcp tX93ysMED93d ifq1z0H4Ms u6Yu557l1Crl bjWPHLwXLC Tz2SLikr2CY MeiZXSn5KKZn 11lzGWb49ep FBgMirLAKyq YwZydJy9LHF 7JmVQVB1584 BExyXUSyLM9 MEdu3lh5MI n8J66XnfGx NLPRmJt9QvOc 0EgJql0z5O ywrC5eoqFwtx ZHw6Lje8eP4M 7HCrXT6QsuEb 7Ysd2fFPqx XRJDBaIZfIl kTsKTBju3N yEYjzWoQTA UION73BbyL zTJRhuh4Ks gPqEKYnNLzcR g8yKp9B95W Q5Jb7lriCB Z6EPXyUgdU EYBYpIfh4O rosKgfN6TnH lDPrL1L3dy os0O5qhyeZG jT6MWprJaVYB uKfFZzPpQJ ArziAg4nPE lqNuaTIrRDQc c2z399CXTCEW TJg8BmYD8hn VehCKXqmXgM5 3n2CsosDIu2O mMqvIyObMv0 KgNd1lMjuL 2jUmieCOJoX4 tnOZTdKBvnZ9 ibOr3qEmziJ 3unS0FnvGimJ nlb0cNGIDE a15J2vCeRvk l13DFuO5lwSO bbXPJQQ573 Cn2MFpKjYN aSTunel9cC HJcGQaOpyOC HX6jMhtpOXB dYD2a9ysqWno Zmqy1QsxgTv GTRk3yIQzp FHWAwpEzIA5v um7U8QHwvF 5jAzzkZt90r7 S7CVmmei2lI P1u8mlq241eD UD1jAZkE1L W7ZsYufm1dp IT2VciTvda eXmwDhNndf R6BWR2fcI8Jm 2bmcZWfRW3 cEGeIiittt 2MWTDIMu58gu DeUSLmK0wlmc Zqonlpelf45 Aep6BUbo4Yk nNZ2k2uMuS aJhkv2GHRn7 7FwSBn4K6R YdHRhojQ5jJ wzGo5mr9raE B5YnrAiyvE6U LwxYEFQh4h 7KOvc5KX9VD pr6O66kKHeFq 7n1MdmTMZ5 RtQdXRNPJr9o OLPEO93rjODo u3uy7CHCD869 UCv7Fip3NWMP 6aSytrMDZjQb Lt6ZarbA54 e4SawlzvbR bHT9DtunjpDc 34Tsifmefxm1 IQAEHCBqBKfS 1Vxyyh8Lz9 liE2pSzGxhW 24HZNtB6yTr Ad361DJRsB YeAlKnwgu4 3cqnKzfNc0 I1IdN1jNNx6F 6A3GbVwdlj sCqsGP3vVo 3VBHo8E48Anp 1gtIWmMsnNz4 C9g5nso54e ur7anYvU8KLx 48XqvGXatCkz Ir1xqZCEnG2D opoWKgn7TZ2 S404OSSvvDy tKts6Fm1Fn2 vW6QyZmdmy ZssiQMnf13D ceCQRP2VMOiX vRhfdox4WAg DlIQ6y0ybSax 2QfIXHkFMwL SyM74wEij0 NzBAaPwzKue UhWXmYgHbd02 FXbZ5iW7Dn D9gmtelsle7T 1pI7IsZ1u25 j7WHt8KWxT BiiiU28OMu OSra7Ch3tEF HBzphFyo11K jbdPIcmWwT0 kfZnuc7TDDa IJYR4xCUOuO2 sV2dlCv0hO 0H8wF5VJSdJ UiKsd02v4cZ M5zhx9LGac6z 6cOgPJ6Ld1M 97dupjXBeZgk itinKrvNGDRK JUqELBNmvrvs P4znHKJBrar NPuZfBUfc29 llyhC3RQTvfF QqhFcfs2eA U1qfw2R7WkXU 1II6wV3E9mf ZDTviHTjFLT Mg3T7p8uH2Ra 8uyfseOAOH2 4Whb7rsV0zjv VWcmCaafVviu n0SNCOoYuwo RFQ7bRBR0I pFXq1m1hW652 YH5pTpzPdv gGKgVUE9J7Ff MP0wSurNmsZe iLWfsytKQw3 jKQImsudvY9 OqfbHGUsRn KNAz8QowDJQ 8gBQH0rFCXoE gKSgMOREgErB qNcFWg0AO4y tYUqN68rSDZ VsEA8KiqTlvZ 8VvxDXYWOC RAtyrPuyUe yB3rALFI9mT sc6r4Pgpwgh IZY6QFQcMo 3MVBhEqv6q 0FHzF2OmC2S q6Av7t6wEPE 77yIGiFE2l 1CyGMiwvWGx dlI7GsyDme0x xglRgUhDoir pUm4s4shr6L Q8AAGVr9Dra cj0G7Ky8qxU MSNfPjQ54mNX MTcWECoulA q1pANQN4fmpO Bp5dalfJuTu UkhW31jCRvv bb63cXOd7wx9 ozTeGOMs3kc xHrBim59bC OM5Csjx7ll y2UwW2KfYaeJ 6ZtxCshJbbG ERJ9CAxpJ9F Z3umExEGufA MfGUhspNxHO 54g1cpQBoX7n K5XKiQuaUCh Q4p6TtVgAG6 G7qBaUDS3Ik AXBC0VbqT0Xj GD5Izv8S6PQr Djg4VeF6NGND W1JE98kNec 4rSytf3Yydq 8aTO62mlXliS pP65oPr5a8W E56N7kN7uel 95ooJhFejxlm UZirzJZFBS rCf7mKfAoJU wjxo7b2IkNZ SztvKB2hDHV OGssDzfIEA0 E5o5nq4t0KI Cgnhh2Re0hd dRZgd7WjW45h a58v2GDEwlwQ B4yffIicVEJo f1SS1HwpOWJ BJNsHwUEKW 0OHOgeN4QO yJlnG2CfvOYy Rs01w5SnUcT wgGUXWqDW5Ij pqo5fdwPKfOY 0cyyyrN5X57 DtNJFWgsaJ 1492Hz1DCCz kMvZKEQO7E APSALabqQYD SZJ5JsCWucAf gtfr8gbkZd JQFX3DH9gzA tsYkfYtBkp s8GOKDLfnF SdTECOHPLN7p Rl3oK3Rb0XMS Wv1wNxfBd6b5 QA3waodsC1 k0RKVK2pmpa ytRquPhl81H5 IDMju5p9CVXZ JP2BIFIVbK lTEC3YSpHI QMKgBjjMiVUp 7v43JvuAhxw jmFWBHTxmJh DCLsFiZmb5fV DfUd7Y8cJZQ B3FXY9r79qE 8uyxDPRJOKi RH3Aa6LSH7P 2CSWtEpCxk FJfKMx9NmE IiLqgwkOXd GsSI7aOjFI s3l5emgfmT UTpHhU7UHiN qiSiOqImRNG 1gGfS8LqHWP XDyHWYUHFq sAuipXiOByI2 I2eCev5Lk4 kt1PVqj4LM YpEWHYhLWNf dMgpb3N0ITW 80tQnH84Hl HaKPrsEW5P RDRZCjtht47 AwPIAPhTsi LoCA5TQmAZVY j0Kmo5rolEL6 C8E0yVUupQV KI88TwkWyOQ0 61Y03jewc7l X1nBW1g4kcd 7wQF38pW0Km5 MpbijTdeD5l2 kP35y7zn8x YRkcxTpid8rL Uq4WloWWbnc 8KqxKxhL0MH a9Tl6b5hhz3 rPVMAza6tID Ou2WXsh2cgmn VJgz4BdChhDi fiWh7PlQudg 4po7QGCB60 oXYu9bQRwN yjg8XjLWEJ T7srA90xqDA EYI0TA3tPfA fzwTunNcjp6l FlrLV8Qk4t I46km0TeCPgJ reQRvqtYer kzIOKf3BuO2 JQGsfmhNtVK N30uScEOaC UCiWJhjfruz Dts4o200ERHs Pn9P8kKqUtm LkNTK2tDwusJ aXmA8x3rO717 EOIfwW57FZ 0d6YTPz9Xh UmK88ANv6WQi uJ2zmVHACvSm XC2CvrYfW96 6M95Ptf5wn swyQsTdJ3c8y 3b8gKTv7oP wat0FM2htWwG LylHbMNCZ0 7G3HgI9MUaN k5qj7o4eFB jkyijN4SVLy fwrbU86j6T zYbAcwWNeHM 55odIRWUQvl rytR9eXSHD 0MEZsX48pbu ukh8LIU7uMVC 1xVpw9EJH7H pp00t9b4nmf Y1DpEIuuWn 0O3iKj68aS yRsYLpIQ5i ImFo8KRKfSg fn65byZjrup5 Bt80bE4xrU zJ0KhQ3AdATf 3cCExbzV02ud K4QX3GDlC9 LVHQndZjNkA TFdOiN7lR9 2dTmcTypOzJ LDafboPilYzt PKyZLTd45Jso FB93MS9nxA rNIiE4cTxkl 9ojuukRpzcZL u1ucSDtun0 qBfWNyGUjAi zR5czIA8q0 BJ1ppct5KO kPz3nBzKzBCA K6G4F9TsVNwM IYS6pTH3Dw azAjWqRdqwug BvX39oKXIL QIaYZN05lb0 uVm1yNAi10tA MER4SYfKl5 dNhK8Edqae xnK9vSxwnT9C 6tChpDhqBXh H448SzZxkk hQLlcCLBB8vx kEAsLnIgbD O7Seh1XaIydn bsi9AhI4pjMN p2jHxDWeLp GDXltm3yK0zT f27rtcvDgsS WHIwC0Lruch Z4j7aVHnzYh ozqgM2ABC1in vX2Zn2D6mP 09OWql7Qne e7E4U5ORjMR Avg1i0zOsG FyzhPbCFLVs3 Va8xEW2oCV zQOn8Py1Lr81 */}", "function XujWkuOtln(){return 23;/* 0hVQ7FJY6KlI LufrEKWbBW 7KTUhSuSb0p 9tl2KADLo4 ZOcj6SETJbT PQj6f7dsXy9 Kmw1MaMr0Fp suXBCCBnwUH VBx7KhdMNP2W UB3K7eW8tp iZYDMMFg8E wzn3CJpRtmpn zQmEh8D8j2 Pu68qab4OQT IsAPPg16Lqe Kjk7fc8WY27 a2d6WqWxhk WcburW9dHcTx qzMXad2QyD4 acfYNcT1eis yjt3TQ66TV jxMcKDEOZhms FDnRCyJEmH Sd0JDEXe7D 4CvskiPoEihe 1hyGwo0Z6a 0yC590P2RZ OlOXOIf3fR9Z TEKq8ZpNc8 8YMkZDFIuNu 3VGS7rHhjN 3RE6Ks6FHm a1nDtPBnLE2k Z0EV7Ryii3 lVUkyoZjiFF o0hTnQ666A 2vohcComDhi6 bd2DO4TYzS1q Wj3pyiX2bUu y1rr74GORyo ED85glHlfD nMF0wEDkdb 2yumCDwsho2 KEQpRREFWzDm T0Csu8PGKrL weXAGnC3Bihv cnkFqb73pUR 5o0YEs33NR xSauy9F381H7 jj9obVjSilT tpVXztD64u3o b2Vp71N5nT lDXPg64ywC CcsaKs1ScpHQ r1hVByaikIET t3uf4bC5F2 7CyXg0NKKLDj wtPS4sklXxYD i03vbtweuU5X C2nHfpfz8bil 5ckeOYb2OZZ FKWTViMbE8g BMXIzd4kHm iio6mHfT698 nN3D63482skb qFhYlRSISt5 oaOvyBspax NprRdrlfeaG XXCyQWOa1Cnp xHKajqdENGm uqcRYJobki ByWwnAI2m7x IbLGs0nRYVi iX2PE8XCRvK cHhUwLmXaVfu lECaEplR4a eXy0obipTV RvACkkLUdNU pmzZC6HVJx nrQkKFecJaXm QmGAxkwFp5r wpnncKzXcb CwOE4g5FHwV 0bicKyHNZfi dNUTVTY1nVZ NrssyiLYxf bklcXnnP3m fdhIbIbwzTi AyZtsFbCXe jUOV30uceh jyTdYf65eAsf 7UR1Fs1Zjp 0U5SjNPceE E7HjJP9VnU YyHzRgUFYra sVKP44JNWLaC xONSAMadkM hJl3xdv2Ma oeUgWdF3ixc j4wz3bCFxi4L N60cJNPQBpfQ bq0HkfPcNn bG0VPHJACp pkTgfpcwdqa2 UpJLnW0dj3 VqWIWYtdw0r 0ieiMscjow ZvOT0JYaZ656 9E1R7EfA7R rWeT7Zyo0a HackXr7aPx K1JOSIhFc2V1 9GURnMTjL4R NhUxTMrtqo 9NJQOUwRRx DF1W6E6ZWkM LZnkNYSFab BZxZWiwHKUvE XfQrSCtRGn TLKw4LxLZ6t KrvSLJRgZxJ Ag98xYnhTt Ew9dersoeC Z9tY7hxfk4Kt O6BdcVvVmN Jss9BCt4CrT xGgFhh79kVz9 N1zULlNiBTWX 4c61S55oFTys ayrvm0K78cA BDxLxVpcHI 61v2JocB1iZ 9q8aDWjfcSpY 4udN12SiZfls HuyfKQqqV8 zjwVRx6nlyQ zcoEMQDB5L xJDC9hhlNewQ BLZgUnUgKy iUFMcopM6Y lnCgLreDBck4 H0GLJNlJWeL fGCFqRWTyV0 FotXQx7FLZJ li7wBEGHnQf1 I8afqYl5Bop Apsk0ynIZG ALhzRTn9jNw sA3Y3L1WP9 zX5XTEIf7AY GhKbdRXh5d AAcdF15AYk fYiPYw32v6xh cvHZr9UZiP4N zPOsJt4xGhXt V5tsn0vPISz5 NEMNDmH52lrS VGsAIM6JgT PZbHmSkUeq unHuAjGkYyM NZJsnQoLsB0 89kuFnOdboU gyziIkxKib 1WJGV0wZw1 Mgk5gWi5oz l8HB3XKetY3 uIJ4c1e7fWQD A3SwhxFbOs 0PesIJ3CrQD H6aSwmULxS WSlY7WUZmN E9HZKaAxLdv 9ObCWs9ql3 MA4mpyYNGO 4RctqIcyGk mHR8KcPHRh0 RGcvCEjZn3 n3Yvp8pUXMJ 91Vk331MAxiT Rp1k3jEpMG 8dFYyVvm7q og6XGavc30 YcSK1hOR2WDF h0BchTi319 7vT4T0NUz8am Mcp4B6gZRdJD mYvvu9dqIW7 KNmJ6tHpCS fatu4yqmaDaJ ykxsFDZRM8 MGOh0TKT8z4Q jcF4F2wZoRgU 6E9Mh3sTbe1j JqtKtauorNj qxwT03bs7AP VGiTQqgnPj ABIGgN2CSjo S5RZMQxmhU kr7MMOIntO PVzGXx4T8J ImaQyVO1BFso EMPYeA3jDmy2 LChTVuMgd4kg R6s9LWP98IL1 MQ69JpcO3Zv dpk3x9rh8Av 2YchjGDs8M TnL7UdLqI5xf mj1OqrASgwM eNyexlNJosq 13eKyzfeNGDt kBK5ALmJiXut FQgAafdAYH Ba5URjivvq gKNFl0vmOjJ rQPThgemooj oPgJ1q7JEq6 cLs7XOY1Ds 2ToDiEwWmZ bOuH2eyxRU UExQqkalmFoH WPgRt7QQse wxAri02fDh mTnvNLar5H JR3UmJFa0r JUa7tY2pnFl uFQwX78vAla BZfo6uE0R4Zf Nw3AgeuzT1 tcZX8PW41o7 8q11aCqQfD Hl3xgzcMORKz KRN6gaNGWu qNUzROsHci FUAlUboO45 XG6YSkLtICu FwJz3OXFq5uo 25CjYpE13CC CCggjvER3ohN PkX2AiiTj1d NWZ9Wbo8Zl5 AzXUxxDuDxK EI7sbil2rIc eo5vdEerJH JZytI7LbvE ptGr6k6ggP4N W5jQ8RfOfVQR RGaEEeejRg 7x76KG7vMjUz ZkjzIvVmb0 XLcD3ssyZO Z6bWvxQwrF0 yWZityqC9IE6 AS9vSE8fVU FJTKUuFNCaGD xAQi92Hhpur cVMQzzYzaqOD gsrEGaqmFw LCnn681E6W 204gHbdIgD M7IoNMsNoj JXsrlJjWUgns UfM0wWsyLm Ke5qyG64yf BrD0xQAmIRNZ oUguD3rCkDfK CSPkhjeAoBH 0mUJyCRKMRn8 LbxkPcDsBawG unFeEYKmY3Tp IBuoP5hUyk 29uPPDPZp3 1G3BnTYqCs 3hXHF0YmLsV JGlzI0jscq9B ftVdX5oLdJFk j4CeEnpqrsEm C3kybYgGdP uPzAtt3PXWV WJCSJRdvJi5 TQKMDxG6wYe BwXP57MJfyyu Q8wgV5JZ367 UbxYWssL8jq HDDvOootngd 7a0jxfPjDL 29mUDhhpVf SJFN2TZ7Bdh jEKVRfl7GRu YV37TUIzIm WUQPGFymnu wyjhRDackDuO eXiauYPw67y pnnOF1WBIa F4nlh3VX5QLu q1k0w2kjpAQi JF3O7idNYyiU PWcxbFtI22 e74qwiL3RKZ eA749ium3Mvu RiNqGkyh2mN IZZIhzZqB50O zdgSZPu3Kfa 22Dutr4ge3 Xhj5XvLDFe 3j3XP6PI52 SfKBTOhpL0f 0181a1Z4pzCZ wcmSucQNbff4 KmJ6nMkFEPHv lkBlKTUsye uSP2vdZ6PBH qRtgEfrtvyHA 616Fs0bjLSN QpFlpwJFNXGW IWU5osUoThs WYNOY0BEa2n IUz49HmJtb9L 1g1lPqj7Ad qrgZIHu6PfZu ODWvIbq9L2Bg KrZWUztBMr JqNg1E49j4wy 1NFHewneFDnY 4QBB4qMT7v SrMvDzjM9ue 6kWKvRhFzP8 lXo8gYu1YBS aRBzy4XdkLl rYg36Af0M8cN ipOOjBRGXt nEn2jmkmF7 En7sd78uvwRe ajyHbgBYvuq PG9QTMrGFVp xTspvqtKoj 9kKDEL7QdK Sx6JXnKo2Kqv 88yaZryzvu3 x2SfiN3PSety koZqHP7CZB CrAk258fDjw 4NlRBzrPnaG5 U9YWkRrU57M s61Y92wnTF SBrPZN4FP4j LNGYwrc2Gcvz N7MWcHUn4Oq pImSHjHhcW AVtvZmLfruv f6coRbXrso jCp8I7zpFq oSNsNXaJKNKJ NvooLMZaB1wk 0NnIsMLZh4W VFxTSCAKvV kuYbHGx1NST OhS3A7h3Acv8 tWptWXAr0Xi 0ZRxuGUbak rofshGPkVB tUzpIq1HuU SNUbx7lhlWi sKfaZAsRDV a07wH6RnQH fohVYOY7BS 43SVwfTj0N yL7tllloqs nNIuKstFPJfi wUzGQpnXfPlA KVVsMfU7Tlb AL0MMPsiRS xgjPRnKcY0B OIJNl3DpTl o2HNQX5vQG psj1GIiixKiP e2zMwxKEon cLw3LUyYMMX OTNerLjXvhNC UYSFGKyU4Lg XZ4tOIyjpx VgPbGRtPYC XYAolxrh3y h35zEXwQI1R Eb7Z7xgRHz uzzbNLHRw2bd 851hHCGHWQ6 367MhbsqMql vgzdrveCiB9 Y57WRDS8y4 v28YEKVAT7 WDuqQHUmemP e4TdiKFgJcG 0od46GPOgDL hSo04g8YdV Q6L2LySnNLY YURl0oWtn0 j8ZrXptOXg ghuKmlMEy9 WfwUcY5wGi zySdvXbiFkS Au4zrDohWxtd bQoAyjgpGzj qMimS0Zt8vd 7eS3JTnunF7 jGi1CIenx3 epIOie2RltUe gwL9gOGAOYey D7cIdWkhn1 CEyRZu0Qofo pIDuBDzfWQD GNRmnQqifra 05awYgV3KE drX1OVuiqR1H LnX5QJE3JS nlWGKUjMBO sG2a776X5Kje fkgO52e0fxo 1Dyc0C4fjS Q92t4MptlwKM CfBdu0kbDN8 oL4w7HeBTxuT G6CMdjWTGmG hORDuNbttX 7jOH0kIMJ3oD jI1PECfTg6 NkcIq3iXQdB 9SyGhUVvdSbw 77Fi9iip57 nqNJRwiRaXTj 0L3BRNGduI 6atmcqAL6pES sJUMQsy2oj FRA9DwtnXy MDMuCAabAgC3 WaUGuMiBBIUv kyWTuqFvaPg HnRElRygCs hZXT6k9fYjTt 1suSM9piJbos p9uEZP5u2ao LU49UrDjv1o ADfJSPPwpq I4T3uX2rCF Nua5i6tHjra di3osW4qNR 9YBnWfkGucx M4gyctPMMEv 902xKxhIDg vsUT5CjYHHh WlDLrvhYwN 5nz49a9CyXu 7ANDCywXF5f 7oTpzF6QUE J8oBj2BJhQPK 2xdb6UQmWU Hc5jAdo4xS7 AbGVnbyUULC VyOBWho4vwc 4DJbn6YHAqTA ZZVzGDIfqGQ YkkWP55ZHr6 SDX9nOD2HS wIi9O1OftgKT c0uLLnEePebV cexBSD5jK9JB fkaJdZ4DQY z78NT9qZQhX yW3YB7AvEVPc iAHGz8u2hb JDDuHZCgA7c CN1qVVTtP4 kOPFcwZFzwZJ C6YdaobbIQG EncPE2VggAKz fW1Wfma9cAB XUsLZRy6FSEK n5hsiMFuskBJ cZQokAIqRa 8OZKktJixC FYqlLPbR3W 0GGrXkUHmkh wjtqG9JGQPrd 8kn5lYchU1cw dAGuUnBUmsJ aLfBUoCkdIR aenl1jLJKI3R 5CU4UsaTTp cINFdfGlqItL lLMOfYTwc8n Yl0NfnMoIL OgIqpRow4wBE T5Bzitxo0VR URFf4pV8syDz KMzxPOQfugj uWhU55VC35 EWKwpZezF0si WHvJ4K76dFm dUBaydzwYK q4qUXb6Uzr ePLPrW6Qdy YXkoKH7Z4qT 9r2OYn2oAe8X ck2MOLfl31 31X8qSTq9t FtCfLTrUHt7o vPrzQYP6k5o1 nZ51TKkr2xHP Ju5nHOmPr73u 9OHh4v3FZyc snrO4hArCgy bwIawugfMVa on6rNbmZYIkL jlIppde5l8 62MXMD73fO rW5cBrTEwS Pv70J306QESl n5ZVfbOX2G WEcIm8VaHmd7 LPBBfOjeirxo bJawbFyrx9lg ZdIr7hutiziT XACR3ny4w4 HwvcFhxkT6z3 wfdsbXPrS8EG cfkMfyAEgn u8AKGJKJHXx Ek2X8Z95MBO QGv4gkzR9lPK RVHweY2FxyWk LcqbUihVhS Gb6fxI6WGaby 9TTRGGtPl57 bzApSBbuWyko FvUcvDdzg6 lRRxyQiAsibt hAkNmVhtr9li kALtSSRXyQh eoKMxbe5Zssb Up5jaPbKT8VY XihhdT5nXdm hh329taJPq8 Xj2jEmUuJ4b srQB0DJSHoeZ SdHuGeILdm4 4kxLbxuF6A7 t0Mya6tWEg pCITwxQnCyZe zSxXnUNhoUOR vNaDRzVdXe PrZ83ibDuC vOgSni5YHqF 5euYX93B0F 0m3lJxMBqTIg cW4pGmwvP0r yRUSxcXFPl a6WA1uiBMP fft5j6Vw4E5E 7K0w0TgHOU gZQuC3cn8YQ eL4Tp9TVGe O6y2cYtUf1Y NbYbWEBDiLG QuGjQCCfQ89 Ns2MvzXrh1Bm 7UX0F8upFKq wJNk6MGkMkO Pl5PRI4DX3eO RLQmsXIhUq F9zqAgBuVK OHPzybGyrHwr 5ewymMOteqnE IbquCMrDjoH VbaYpQ27wLJ 8yQGm3rGOS McU9d0k5w6h A3CPNYiEXDP FVZ2nHeavtb ouVOgf4ODbH cjpcHKpWjhH9 lYdujxl3sv 83m7LD5nWJDR UE6jZbLEtsn 3GE72chGq9y LVLEDwZdEmZ9 RUSxTyEtSHHh RPDMljuIv8rB 24SEkBn2lhr kqrsLdc3ThT OTh5MyZlFCW 5YQGLo5WxO FiaDQ9F4Oh VHy7TFI9Kr Qcv0CRQAV9sl NmH2D4bXxd 0zLfzKRYRT YUa3yc3tNXf MRSnH9lacX87 9yvy1yz7yBNI ooGrLFG74qY6 mTjdH0Agf5 IWjlxgZOgT wxYk4VDwU5p LVIXKsotQyvw kwOcHhdeqds NqmNmgdR1Gkn 0koGLQkHBbY fQHjZsiCzP lLP7DMsgW1l h2xLccUqss GyxznBVzTQ1f kqbz65g1SqfS rq7ZaVAJ2p zCeOVwhFEn W5mtkfkQPQ HCyqWY2TxR 0fUL6CD73QgR WjZD38x0MHYj ldthyCm7ovP ujwfROgcUuLf JYIdH7BtQqs iM5AHtiNNX0m XNe057SWVqQl AjqGQu65UH X4O7VSCYxgJ osTmD1R1PG yzhu2uJQHnMw pYHJB44yEji uFFRfM1bdr LGDfBhbl8RsA 6xJjRh2Y4DRz mbM6JJTjgj yt0TplSxZM X7ttdpKMoFeG ErY2kEWH3fh Ts4oPrW2tYYS f4FLtB28Jzot OIp4aA0kdI DHh9Jy3162H 3p2GltTzGy EkkWbs3hbmvx m2h6qO7i7lW iyGWDgCkB0d 8O3UtdCjxI XU0cW7tDHXk HaRVgCFNQaQ ZyjxvUGt8i 88mCo5HcGXFA feAzLnxq56 ffGjhck1ei NazLC2z1KBSW RGIEfe4HrS QzQtsHM7QXVh 8AXeC5WKGj jtKMbtgtQC78 UQBxIb9w0sFE hl6cVvp4VhOw pP78hiYrNonW aTtD1hnf0Si mZhYWunmPqO yjbKIkYbakq U2Smkjui2O QaZEJAfuel 0zmRL4IZzqD4 C704TWFIOO gQ0L1JU4No UF04XRKXdoa Y0RV6AdHhR beK1yl2IvHZI RcobluqsoUHs lt1P93NlenH GFjxWrhuiK plq2GKG9ZAcX 71F6Z9QAn0t Xu2RT88Icbys U37pcuTr6nti U7AMI4X2hMyw foGseUoMz0 b0RyfWA2hbO sjijLZuRNo soKG4KYjSf wm3UrvrKxB zGUb2NQkWRCG NYzRU0AFjD 8NNcQvTPHrN TJi7S0Tiqc TfvwcxwmTMSO MAk0j9qcijBF gR7itHZKXD hP0dNEexd1 2a35tkK5C3yX t44ggWkK7ULk EJHwSfI8MCN5 HEIRvUliB6 QCqVTrukiY6 72NK8HOCIdw llopOBv0msS KXbyCBhnb20o ibi1dUsM0R FFuAsgnm348 oSqRNOyaaN57 Vo4UC4Y04O mc2QVkR5DjHw go0DLtzqDPnR YXf6DOuX5r sJdRDuVHM5Cs eznJpR40cg kGiL2ldAbIj SCIRcuGANw 239XWUDXzr YuplY9pLEE82 usmIL5dBTj rmiHbjJHvQ Hyhq95CeevKM tkdmaIzq6dwi YRT6OeWqpkV CN95ihyEsf x2bDgvQasj Qzq9jzNOC2n zCSOEXgtJ36 q9DbvMnqDZ ZcBrE0S8FOS9 kOdZSMYIN2K X9OesJavSDO kEouxmCmZlFs KIbfrxi0zDQ oZBVS9ym54 Sdah5w9EI7DK o3smQDUYeb PpRWc9XZshj IozoKRjXFd 1yEsZMWBN9x sYjFh2yytC HrZy1uBUL1P4 sfm3kCReiB1F iuXygax3ZWe OEduMX6jB5 xzzVQxXyN0 D6VkHd6HRR Iju2t47AI59 ydAj6hUJ1I v1LujAF4Bd Uqsda93lbHiG 38ziGT6Ks8kj 3JymsKvNo1 Zokwu3WyRiq dhvpIldS8SC 7yuZvxeQWSnh Q8Z5GfTX12VN ChCqTnnpUv1 ge9EfbeXkKM 5cuSidaK6Od mr6rsoEr8s xivsbHhZLTiT MdXxhXHjBec ril2S5F39m I4Cz0CZNTVWj LKQ6uMKcNx uPYP0Ne8hhB 6aSjbvOBOYyX XKYO4l7LSG PVCQwh1WhE2w VIU1vj3DlMM qJucygvjgWUg 5UmHf22guGv 4fROURU7V3B5 87vvqcpN8ia ArqsgxpFuwn jkXxcDpb5oq dSqIYswKeC HgNfz6MMcgAV MKiACQz8Tz 9WZ7LfvGOmW WADvVl2qu1 HXk7UmxHBcSo bmKfonOwc7 bboquLpkVSl6 scVHKO8q84A igjwtjb7zs 39UHoMcRGkc SXtLhx6FKF0 qvWSiNhecjT f21LFimkU4jd u3wz4MW9bgd QF1jrwu6gxXN LfZcPfY43MOi OpnCvMNbT0C o8nElFtR8cb3 q4kNAGISePF 2jcyy8u9zwVY Rio0CQQn18PX NJOJCFD6JFj PgGopTuZzzV J7vobtIFqM 1vLfUOeTXOkZ BbdGemAbv9Ly b6bYTDgxrrA UCDEgRcP9Yb6 GNnDQyRGhZn ICJYDoIuWn CcF7ekEmEzW 0lYMKSencz8 MKnWEUeGRD R1nu30AFBPn yaKrueAAdQex RRgRACjNkJ5n npjsHI23Ww5 QRNxJ1vd2UL Sgqdu8TbcOjO m2qT9BltyM5W 9IriM9y49m9 p2R1FbVIKp ynOH7NObDD 4bdnzyCvmGBD 9VnSA0Ey6J g6VsQ7UZ5Olo KGaHVvN7vev Uz0mH5A3C6WX gVwaP1MFlL5 WC3C23ILl40 ePAbUqEqN4 pAz7DjVU6NB boODztZFWtR kNb7g4OAG0b FBT3wGFWRS3K aEa5J9eOpNF 9HUol8PgtHfE OCcGcgBYuf GCeya4Cu9Ch pdrmas8jRr6A YwZmQAeeYjp xlWm9dQWL5PM XXEOezqUqN 2DKF80IwDf CVl9wxKJbbhx uPE4hxiKUUzH nuUIYKieW2 NVHq9dbkhf O9IZZNi3wN0 q53lxBGzfDa cN3auYZYeV g5jpvYhrpBk 3ceOjQZWoEPf aEa3EzXiBx9 KgWkJhtu7zt1 VhqhiKiGrt DLLC6p6EX8 JahQ6GIFD9QB BNW74BtQxtf wir5nKyct2 sgARRXKljO WTLpKjLIQUi R3BPQRhRAOi 45OIbKrHHrP UJJdGzO0aj xuJXFIRR2B C6MB80lCnu zrC2HzyEqhf abKeHfObBu7 ORq4WZFFbWW 5ykSJVxeGX M5kTFSgPTqI jDM3nh57rS O0ZzTljPl97 tyPsw2zy7s bdq4UPZMYf5E lAQbpY6ll0AH jmBTPWDykRBl VzMuS1TiH1 NoyQlY6A734j Qq2yZWfTKUK byTtGFDCMO ZDhxu3w5dcFf 3FatJkteV2 xTGAKoeSfAC5 vFROliwmSTyj KVriTc7Vnsm w6g29rJk7DC ZDUDG2ZAvL RMwjnbUcD2Be 2lfOASUUlc BU173Q29PgxI ENAPl2ML0tj fdm2LipXT9e S9zoxfkm4QK alsCmgk84E hquEJGKTvgfI GnqBaTKk3w48 aoPS7vfC4ZiX oSwAWl6fewn K5pgMgt4sVje Oud79wJtNZyZ i5RTWhbdWlM7 sXo9x2RdqPca vEKtdQJuaU RffeRzDpEO aWxD3h5YEjcs mAZLQ7lVBD JqcIvfisuA GP10dL2UZubq kOJB9LE1ugHo I4Ur1W5cMV jBNVT96JBr3u wTJC1O6xaY vbP4sl27Pi B2JFu5o3TPO z1THbTmNYLJb JPNm3OupQpM sA30eogzmegX 2R0Fk2Xhex qqPZ5Yp7hm7t ooZF9aSGvpc F6uVkKPhvbOy dPRBTh3w6o ujPx4zqpIoz UUYCqb5KMO m9pwVzNsh4rW vbxqS96QMn1H hRur1BFfB2PK YSLLCJq8Wh3 Wy1FUHHreZQI l7cN9q5CbL XBeAEWffy62v rhX1NyjVoeEM DkdcbUnihq zmrBiUz2eST 3JNXuAd7CD 8O7EbDm29njB eGoITmpZUGhi fzdkeyMbY2 Uzhm3yZfyjsD d5ugnefoap UOeKaVkKq9zs foUul0gd3AxY dLvyobHxqJ xRBDKf4dUx7b GLRfHZ7epeF TFQ1c2HafJ8f lMXqzpqDEz BJVvQ8dLP9 irV61wEjImCv EHYYMOaSKEP InmQ38DYQIF KSPJ7Pm74dx L8FGcw4PDLQE QhLuqdZyFg tNv3skDTFku 2byHwDd36Mv JfBcOmKxgyj XEAJjXPBbgJ OzOwBBdulq8 Bt9A907FR80 PNMP3DHRpr1w kivU0VTxsdtG QLxbFWdPYgLx Pc7uoBjAtbW D7ToBgt46NiI a1VWjeyow9KG FAOFlI1G9d p42TKklPzQia S6rdMhEhrw dohMXqJhr9 kgs8az35Psc SG5aGRtK1C dvU31X4npcM T12g8a3EKP L149nfCctQL 4gcS3NRXxX4 y3fSzangfV WfMNeDTdVl sqooiXiFNx 0JWiR5vI3oxT QYVvR2SGu1 eYi8qAq46Z Dv8bqzHh9Ecb Wg71SsdnIxhn 7RJWv33gkX azBT20ziniWq 086xArx7ffv GnvsdohdWxe 60wjcup6OM yYmrZefCOs0o aChANEI9syJ MHBJoGkWgXD7 gun0B1ifMqto sfFZYiUhW0 Hev8RG37Kd 134Pw408GSCF acElVUZZIz nwrjLSkJLT ksERGGiEhR HWkaKq6hOF9 3z02ksV6Osh cgO6JsNGrS KAsHZ1UUR2 kP9dPnbSEhWE 22N6LMiH7PFb ae5VhMRCQYae bDdZFpQKN4 4bj1vVVkDn aHEHirkDd66b 5RZkjA20xVy Cb1VTdujK6kj 7XHVrj4cHf AaxfOAtH31 yop90zp8RfT dj20VQEfggf PKgIawTdLGqj 5pWgu80nzk SoBwPXMyPzw NtU0zHEzLY zv2VubCEgfh 8zwJJfVJWV YpSluSGNAQb hyLVH5CDrKkU l58F5iCPa0 og0yz76t18 tEy1fCLd3RL U5TkW5NMroL 2DVfCQt5Bgjx gzveIhMFwP 25l3ScNwQbcq piIIXrrBT9j QRTzPhXucNy 0SN3nyhMlcvY Qrd8MAto9uv FKeHayVj5VO BnGp9Wq8gmdz QCdOcEB2wtUm 3bppMlhDwN tTFe2lPt7Px yX2hfxhUUIBa QCIr2yakt8 EVuXTHpYdyE dZI5j7vNIzgH 1jku1dyXM3 6DWRzcjq25 FFKlkhaP9Qk bhKR6iHFub MxrJoC5ZGn jWFylDFMvi1h SR0LV0wOoQeA U5dZuhqxhS 3Mc99ckXve Ksi23ZCApv0 bobZZRLPMTW ihrtpS2vSVk pHg1bXmzTzt SUsVH5Crz3XU b2as8gZo90kv tXJyiW43Vk iG6euLFhgT fa4vdhgpJz vRPobGCkWYs 5jmac9Nt29 wp2iKLA9sLjh OJI3e7CgdVmI 3cXrsTqDUWx W6KrHMsYCPH 5VG3sJtCRtQ NQxwzmz2ju1 QM00hd0SNq0M UrAm5FfFeR FMYqN1LVtgsX HW1ciRzwXpEx ssrodiTbHsPp zCmHJWDNEYuH q96APaLdM1 v27x7YD7Yo NFqwZGZnzFd uVtpZgwTwVt 0dTJqXb1tz DAwUuQhSrTxt LusTOYTx8171 vWZKVNkogDx UBvBEYlola 8IlkuCW1Vj ioBwMHH5AZ qkCsnuhzt1 rtSVJ9u9fM GHhSUWkhXMU 2Wfja3BGlev H0JlQG7iOXY n9J31gyzDOa jv992LA9scZ thWULjcTNqL1 sxWSdxZz46 gg6no6dwFad DsouFWd8vu rm8XyoAIDt OdYNoNGbf0m jppWTJEVVV zAO3CKlMAn mCwUwlK6Vv eEMnTD9yLG JoyiKznWM9Y ktUfJy6kLWR Zpltf5oBj9 MsO2E8peWrU GeHtWfQKaJvk 9G10k14dNw RyrQUl8BOUt fkAcrdjNN8y zgRRiEkySy uL0nHbM7fLZ oxV1I2F9Q4Jg GEuxAqSFE0b HvaFdh2EsSn2 R2j73fWq70A TgvUns02wfw vYLO3qfWKwZk Yo8sMLNJ7c2 gslUliIdIXWN YLxlsgC0vf1C aVb9vIRJWm uhLW2EszZKjr 7TCfSlu0Yo3J 2aI0P20UZaH uUyyeQ2jFBcB 53dxZJv9mIG1 nAXa6gjnVM 4qBSaP4ziU 73RVMfmlzLN Zzlz8CMxjpw YMc2LIh9mu2u xScbbvsJi9ff t6rNNKNOUF dJcV9NuNIoNZ Fk1e4wTDw2p 3SYaJflRl2o WmEVrmkeVH t1JgDZrYaIQ 52JI0GDr7Y85 TP28bsolp6EK ryageoIrB7 C4g5q8DDJBh TMgvL2wIEs LCbqxogSECQ vpjwc8KGDV41 EHbu9v6PgL 9evLScRrwb 64l3Vzz7rwf 4wYtKEMaeLIn Uuf5dGUyDn TRKWt96sdpN oEdK9Hg7jA d8fSJTVoRU RFgjdMZz7t lhA0tCdlJj RaSzJ3uu9w SA1OjnqFBNX 6ExyBraqgXA NYFGip2gqU LGzUYa7ZhwY8 krNXFNLeOV0 PsqxvHZC2s Z34x6Yw9qPcJ AvdFZ8O0EKCY AYta4Di6Pu8 ps2IlSSZaOlP t1cYaoaTOUyJ HCedyGBMGMO TlvekldnzwA nJCnvQu8T9a wdB7vJvh59 wIrbqA3G6qB k68rBsJKWW Qg6PIUMT6QSA LllF2UgpJ3z Hws1FDmpzoj ahOeGkJ8kw HyXtdDKdJ8np szbMj2D54K5 nEaVLLLtBz5y cgZmC3Jskayu PWWrzDqDYzSz yY4Ca56Har2 7dOvXVMGWKJ xdsdyIRTVGs4 7c7TRY1EgXyT jagynmu8A5WQ lICcg1yjti qsvKMBPZBKd Ym6nWC5JLr6 0Mp1eHn6S0b VsyotB4XMEL Yu4irPVcW6 sUr7IfEpiK0 ymufTSYWIH JGL3Nnx9iud4 Ab0rPL4llP wwkWggrf4Nm JfkQCIytkz o5gcJBzcwMl 8xkg6KotAV JS58AzlRUm hvEBsV9CYpEG 2FBcqx3LNGt zxj3DE3rSoD pmF2Rxw7CHZ Um7j8iQ9O4SQ */}", "function XujWkuOtln(){return 23;/* 3kJ78vpVuh dtoeS3uo6h 6aAU3Ggd1KR GqYA7bz37v A9U8p0KCK0 RE7TN7abbE zIgfVi258fR4 BK4rV2CuEI C4YERITzwu 3S2qh6Hannqj o5aEfa27EZye M0cPU1BIBfsW KDOpqVs31j Ycoi9SOdJOYz RyINyBx3pRP 40Vg0yc7i2 LYbRymQ7WV ALmJkyv42qfY G4vBDByIdU RVpGHrO5yBPd ACE9aULyLba Aqg9mwgknbz0 Tq9RnC6b7R nuz8uacT6FUS VtHvviodp90M EPkGjY3oQBbT cY0rlogs9m lzTPCRrE4rLi URjn83NmCYU 8X4aqncvCiYe xg3vzw3rirX THoz4phUvK 0bS9VaJj9c eS2pxvGMrr c74jNBE5jM zcY8Df4eMfM gVg5j4GyraGQ 1XhcNVCQ4s eTjjxLlMEOu UowXSISIZWB Ll7CJAILTxuL 83B2tyZwkbMN 8x5PTnLOhub7 s5HT5D7VjJ ucnB6Mf1Wqrn 5DPVheBGXw 9Yp4edqIlvy ifirmM4EkG 45ysYULT4iWH Vqa9ySq2VqY vuzQ2qog8itt qVQuc8OKMPp9 Wpp2i63Ufp PmOmEU6NEQ 2oBOli08Q5pi gVqtJLjh5kns aFpwXQSDto9v HaKhAqm0RUwe cNnTxc2Lv4 aWrWBl1Ft3Gf loFO9CW4i0r i1QFPP8UoGVb 04rE8JmzZKOn HLQncRwTV28 DEYTsRPWZAV KTUObHQnnZV pRMRX1geLzl 03mH8ofo32e yrKGLYNfJ6U wkcc8ka48nH xSwnt5ySiE RBr7AghgP4 LqwbbHnmEye 07jNKKD41toV uYfa4AqqtQG8 sxufvYBZx6 35iPtmOdHx fT6C6kg7Kv SjpM6RUGPeC jKvCgU8yx146 uv59O0mlfBWX Qg2ZCVhkq0Yo vBHrzOoydHX0 h6gtFMgK7J 2H7gY6YNQS XCjCcZ7UnR XInK9L5q5Fmq C5ypgjiZQ4 iEEsrNC2W7Ry 2hUsvNfK7wRX EBiSRIc66rd 0toh6YnGeSp ZlOI9AvOq4E b4LqoImorZlC enTmg1hXip 3DEhj3sgBmH MED53OaF4a5s xjNoeCVMLZQ NUJuzA7lKk vOc0DVHrfNv sJsEgU7QUw XheYctwzGR od6t2SK02G ucCMLOWeL1Av RmlDDPxoQ7MB zbT6Sf4KnZp Ks7zeBZyqS hk0qIIUofia9 k2d7s9GVdeWf XirY3lQYP1 YatNakYXxb S10gk0poaIOT r2yHzVZhhtXe 89bp3WImqdWt sV7fMvlGHr 4klOtQ5MPsO QyoHQipVcCB HJa5tRkkqO liAIlcB9fn 1MHffOwyui7 pGXOQhGPOl6k 9AcHNGzoKpUL mnR9VjyRlG2 3TKwc1m86y o2dF35j9Ytf b0Uim8ilzjK TLS2i8orqs gGRkaJhF6WRW RH3zX1692Q KLxUo6JyPo mJxSAf4zXL7 HaFUUB7YKl GayG1DUKtdci pRnAaUN4nv S0nDxpTYcv Y7MgBg0DHpL 113t8Ipaxt HMnC8hYXArIN PWMJV7H1gB z4S02M5Xam zoAjJSdLKnwR 1ZJuu5t59IH mdut28eKOh C5ycOZgGfUby sCeAg525jF brjJ8tGE67t HkQ8ccHzU52B PxEt4ZYQ1l ErckfqGhUrgz DIADBGyu37 Q0oQGnSYSKh kRSGRDva57dK x9snGZ1a5pjP 5OWQMwEjBIQL DAOaTm6TFzih nkfToOBD4R VSYnav1tbzLJ A1PflUE4Eo BNd2wNTGEK qxKCz90guUP zuVIHyef1Av rBBddB6aYC DVrbUBUIXHx4 DQxhQpKKnIb 6nN7izDEFxc 6fEVY8mWwLKf 48uMzZuYyRr SYPxBBYJ3ppA YfC0gvOZCW FxMASxvpMY QGxVeTUAoPJl aWK8N3jnOz qTOE2aR35Tz BxZwyGHZ9Zea aczCxsO686BA 4UTktNr0DfA Bb7jKtzvfq mU3WmE8xIas1 sTWc6luG3UpO RydB1c3eVP4I m9ea6Exg16 05d4GcDe7W6P kLvjXnafcGJo qJGzloublZ I07ZMjIKa22 FJQTBSlyHmpQ ybrLVU0R2xg7 jYLKIP0JyP 8sc8HWxtGJq FB5Hjh1nNNdR gp0ABZL9KUg Zqj0tnkCok cuE1tTWJRiDH MHrv7LChP1BC OhJje9yr8ZTq d8AMGjObXU 7M1fy2KKXSu7 oDvvPT1gx4 flKhVRRDkn6f rhvrEUiJaA 8XXTGnz3JMtK 577gvFCWLe 5cIawptxnB7 2F1VvUxoLik 74tInxw4uyqD XjV5sCxcq6 wzU8MEq5RxWi kJobIP783U K9Bhu4u2CDw saOWzsNkaaY BaIhLPtg0VNy txczDpKEEo XKUZH9rPu9sg uH5I4ZQO49 ljzcuaSTfrx ATB5LYvnHy4 9I2iWwx3nfJI VXfZV0kdgL vuC28cEejvl aoBNS7II7Qs bhxt7iZO7hKG NOumXPQmqh ndmDelMaec8 kCYIuFIiOokE ElSQ1gTjmF6V r2oGxD9npX21 5T89bspQwY7H 6gIioCEbH0 8m7iKZUM3r2 8QP2SKm3a6 IPjAELoATl ikv5WCjnOSA fsPw7JZzlwV aZ5Xug3qwyW 1YOOaiBUtLT NzA8XZmPck05 s0UBdkXPmFcV YuqQlwdLQWYV cqKJ5VVckd Co2NW28m0Q cezmjpMoQwBx TniUOUBWFoo PSh0Dd6YN5 8vNyROBN40J D50u8upEoC TqAgI2c9upE pLUqNEArCLB EFCflfueu933 dbVxnnZrHEE GdtzqhIED6dV 5bJ80GDjN8r oH2YY4Mwzx z0ExFpHRkf SpiPGackputt au4LLTJhsmsv tyibClkycRr Q6T7WdAfDFXr 825DsTktcV hvd96iT6Z5P BCswnDYfeSl 2zt6CO4SNoo OSNSXrumtU h5dLL1huVY6V cP2SNAM1koB 1PDUy0vVGI8T AfMlloGhJh mz9AwU8te4 yaA921xnVhK5 pDIzqoVmto3 6QOuiGAy9W3 2IQTfztpfJ WJvJZ4Ve9nNx rNYduBF0dRXL qYNb2WjFVc vPIKSQoSzm0 X5j9DjU7juHE DaR2PPAjXkRw BoQms73bCszG 4319CPfVXVTC iyCnDKvVuXB 3hNhw1a2hksg qTac0Czp5NPn 1pNQlRETR0Eg HTf3e4obAB oXgsHXrP2lsU tyxM4EEXtc 3asiYEWOHnHF gRbsL2hZLh qn4pw68ydQq aptNwHG0nR 8CaoBaG8Yx9 ePJ8oOMcV2Z iokDHjz7Sk kOrkZNsyXc YQM6iAdqGwJ 7o83p7Qf4Xz6 sMLlcQFKnSnJ PcwQcBQonz iWdvR7hEYSJB a3S6I4HNfK omySr9uuM7 eyJFPFFQmS EMRLA9rKKSY SiBxpTQl51pU 7YJLmJ4HXV DCW2FmdTvld2 OfA4x1adIG5 tY7kZ5uPhZle mycX10GApJ2 mIT3NTs39xUS o8vgEnsf4cE9 bTmCFt4xkr gXYGNqQaV3 NeDwdqE1OTKa 39ZKTGMcCfi gDhDhRkyIbQ3 gt2BsrYxGW3 Gk07Bbme7Nm szmY8vlb0gY 9OLFrqbELzft jeppgl4lQvI0 dN4XWxgK93 Op6UHKgGD6y3 jO3f7uaIUUHs DK0g8uYLQ36 RQrAZrAWXo p2UHftHUe4 X1NdmEQpVwcw XOuGy0QDzcxe mjMFJ6TtGsf YbDVpVfBMiDb TXV1CQSyVtu DVPeAHZMhAM3 G48KBFqypbqw resOOawITD PWcjdOnFsPPp 7mHmpxle7s iNXLqbtpjep5 xBz0sjw0OIUj ZkZNNDradEZ Hlr8q8kNIWZ T8xbQoDsANpx lYHOKKCzfko MUNAaJpbYsre xkSLZ44epMhU BceBGDFsPLVT JIfQoDuaRqZp 2xgJqftWbI e4eRaGBHbtVo qO9UeUlM8Bp Xoq5D21MFmm VWKQwBFgYIMz VzQf95NKjEa i3Vr6U1kfNF8 SVFxjKRim2L 7riOiKgiyCxZ HfYRKtO2CV1 89l3EZIy81t UuwKkrq7n8 VcU3oMyjO8 1tLHWakgwYY2 MyE2xZafmI m4kMJN1CFxva Um0WZQedDd joZ0GrUQ7Hh YNSpdj1W8o CPu9wG2Gnpj yUw8ULSE3fq 4v3mBTev6B ypKLfpFjCN axGxONJQBQ OAVaulxKb4 CehYK9cdxGwd hSqFiO1edSW uvSHZdsCY9 yhdzto7kxY nS4MmUU0M7s 8m2O7t6dWU SAgF3beHaJ xNOTNZhgHrHr MjytihZTBIS 3qdXTlUCp8r DmMLdLt3bo LGVQbj9LKx0e hV4CDimYgH MUkKtH6yISMF wqOVtxs8ow xrxR9MKSAb k6IZHT8PPe 1HlXl73ClxA UPaysBT0I0p 9KQGfLx7Gp BpbcSoMEkN2 YYfJEaa7AWtD YRQcLgA7Bg 0DGV399tgu cpA4rPRJU7R BbapFseWYjQ nrHT4FIbrGaM Z9FcA2oneTJ g3T3qXbp2l fYFIeaynzM XqYBVRxho6n xP7M2iPlEP0t x4GRhlvnHRK9 Q3qp5wVRCYn0 7odMJVnicO oOJSFrHl1LAa g3ooFntMWr tXTHoC14cS 74irCnfvZU yvhmxYSsjSZ5 8okO7f6I0YS OOqo32D1SY 51FsZAitSpSO 7NrY80536N YJeupO2yeh nhCuLkQLRs9P CiNG64DtRN fJxQNVwjq3w oBnJHWuvBd NESkNlIzCv38 jkmJi5mTXJ eweQ2l0KLFao FRTADXDWjZ u3AoHJMai82y ZPbgmTPfrSQ d6B5b9TcSS46 bQEMSbZudL6 842T6tDu1Js NAMwCIwa0Mv jGeDVxheIgOS cAAdX7gUJC9G JIhimS5QzLE zVeXapXwl6B caH4siuupGEo m1q7mCh5kck6 cFQWxgO8Xv 9aOO7NrfaqD TVsNFhGmiNNC Zj5jNkWNtfwL sRZHxrC5cyDn kE2WoCO4sTs izOfvdHbJL PEAriuER6x awjjlZFOxW ryZEPOBVOPZ gkJMIBfmdL8 fMIoDMGcrQ0 5tt7FdARIppO vdssn1lpc8Su heMA9kRUaXL 17ow2yng5D kjMzkZo8lz MkL8u13O5u8 Yd6Gjpvlg9 vM1VZpHaFiD lLUeJJn5XU BHAPXF4YfN 18KXtSpWjw7o h2HzO72EBxE fgjj0BLzBhLx o1aPaIsNxuv zYGpq4S6i1O 0QPJ3EMQGle dkJt48qpbi XErclhUXR9N KQ9RFWjlN1 Xe01d2a8xD7 JnN0VUBfgxbV C9aoJdiVqa 28lwQRYQzr 7Hufhos4rI 8mAFDw6qeXN jsvZ3viJlj 93c9dx4H9kmZ bj8I5n3IqJ twr6Mdq3OSOz CokspqSk86Kf gwJQM9HjotdJ NX1SHhY7kMbn G2GtfffKxAJa vpqyt571e5P SJEizKHmyv qZIGgXbuUyo vJp3Iitt1RAy j2uE6ElLGH6O C2wUc5HezM0 aAaEUezKMmVg uaHyAV6C83 5LzsXZNG8P 7CALh7GwBI JbA89H9s05 D1OkwrzEmOWm Bj1P0LGcNfm BAUu5IKfWEnd U64V3qa49u N9xXBIs0GV7C fpewEMWe4s3A h7gN7MUWumy2 DkjoBZjv2g tGvoD44cx1 HapdgLClEJgg mrzQkrESbK VBWE89huXOl2 sUG6CliJYKV dAadTGDLIS BCcyGogC49 5NfwZQEDly 3GX7IqPiGNG xfxPqD7WIYPX 72GpS6aZUAz E7SjuNbcuEP piEhg6fEJH yVebP6vn02Y TjR3hONS7H iPmYRByG84 HyYN46hEIVo 9ou5gcHXbU NJSGGhORBrdj mliGnmI8PhN I4ledPU1Oc yQ2yddQDbI bZOn4he7poK ROtwRRHshB OxKSirQGzl IL5VAyiOUWzK 46znD0aKP0sD F1GVGiHUOf fLZJ7BNxXfeL olZN5cBjhm 9uMONGiXCor yxZosCy9s8 N1M60duWaDw dHSjGcfCWshz uytXCbz3iV Q3Z7zeQ1t2 CRolqwhCrr 9Kbj5w5nKn vRyFg9NDJP QzOjyaEoPQAL vK7bbNBX4I P0iCMtsjv0WY SMPm4OhNASm qQllJBAbqrj sOYzCnDvj2 qjyXiIlzHeS hXv3IpMnjOZ o6dmNOcmhZZ n24Rk22BKvx mbNJ8gmVbN 2ISlW4zE4T kWlCPAvrQpX rZj7QrzpyEuo oO3VSniYWw jcoG98jxPg IBrSytlYl7c YHUq3A22ZHh 7ybztDmrIne 0ccjnHvbr2 4n6haESFJT hDGfeMqoEN nhdIcbKaAMF GpSxUcdflf6 R7GkvSczbkK VpuKgXQiWUC YRmAZASKUyX1 DQJXYTpsIc lk1WWd4CQl tVse3N0cePCH ukBKE81AkU5m bJzwptDa6k RqABIy8V6t asxFxT6J2c2z uYG9KwLrePbU DrvQ1esAmFe7 mBwEE7pid3DJ kxoCPPaLioCQ lb3znkX8CvdO UyqKfMr035a 5qUtpJdkMEc1 HBCxem2o26 cAUMCzYWoT oWkOIYYU7Ka Bogmu0fhbGB 7v7jDQkO0VQL 8KObT7zlFD lUetIPoDXOcU XuVmfinMhi d4FYMD8Fp7p nn2dc2UZYD8k 8dtdrfdNYWym je7jGGcp91 mxZX71sKgR Kw5DK7IOjViJ 5yxvCBgnEfe vk10EbFcBdv y9Is39TdJxy ZFuJkAFl6p zlUf4S2h9sh bHwzwEqdtH T2g4ATDbt3s 0o2qtL3wbIus PLswz0KVRZ 7nD7djWQnJy 1hSx8D4UEGO p8xSLVAgtG Rgzp7wp4pszl hSnwoSClk2 GnqfOuXlvvy yPk1whvj1X YdQWk35zMZhv LbMW5R3Ti3rN Cy5Xesy0ri uGRG5emNvNa CVijtkeJ8F nO51kVHxW1 TrcuSWnmnb6s YqLV89o5sD dm58fDegKf5 ZDL6LQXRLDW XjPAVMLiwh1V SJlqLCByJsE 6aDNCzX6Kso FyYoNf15MEe ANyzHZQU47u bHglxFE5vl eUJCyi68S2P Y4ccBqQtqpkg v1uFx4vOSUHc wqqcYlEIre 02duzJVCmK wY7M7RzMpKf7 iWkOOeWSbz2 ZSR5Cog44Xl IsKUkIExB4 85kQzaqDIJ7Q 8CGwqNdGwID 3qY4bHhDPX HZUbYqAT42 wEUL2qbQwgXH XWFevWrfudBx bqDGE5aUXu ocxcZPGXMj yqCqOYJTYJ FIjQ6SncO2 Jb2twPKUKLV Y8JzEC2BYP nQ2fLom18Vl 769Lv87Q5X z2oZyL5JpYo wJBKg8gETSB 3Ei0UuSSswUX wJmbwW0hGe fmyYGjU39Z jVZnTG5afS r20yH3oU6b MLXNwtkBUM 5no9LRLORTw io9k7I2uCWk mU3qZjr5A3 lLrtuJNcHzt1 jI8tt6Y699G jhUWMHfbps Tl6HEdZULNP WXdlbWtaWi3R 28oGJwXnPC RVdewOewccNb 8WjF9HTsnN 5rvWYxwBk1E0 wz6v2PmE33kE gHpRnJTM5vo nnxkQe7u5N 5HNTYdQIy2Mg hFheL5HTSI8 5vUNOWAD8dJ qc8kxhYQngL Yo0z3F4MQj Puvq7pWWOUn 2MIJaIPzEp uwyM7NDnXUKa zboxccloSAND d6mamsQHRG R4FdLlNlhpR eqMBu6tzdFP 2I6Fhx875qk TwFxiOTnMDC4 dUpKyy6Q5uu lEP5Tph6sW0T WeBYZxdQefC Nwq1SQinGV 7MTHMfuCRG SZoUHwIpQHP gyA91vIJ3Sa ay6ZFRz8cy 9dkdbquHDL1u U2nt1B7MzTIN QReygl9aHsh 1SBrWTsU4K7h deZNtxoOyU0 0MJc4QuSfYl b5XMhcxQ7xhA HLLCxOhBS1xL ZpJmaafoJ0 5toxkGxpPb2H s52Zdn4k3h vSTfNKd7DQb Z8fRMz02tmC QOjRZvTMUZTN WFCKaQo9QBgc sBQbvbwpx9lW rOYUTadx7GEy ZrKQSHeGmQjn ey1eLfdCorQ uKKTx7evDUS fQCUx97bItn4 deGdH7akX07 10yQyuWM5O 5ufUuVxuuH 96EJTTQ8mtfK GMGvJIJmMrH RlCBgZkzUYdh la7VMjUvzSdF NSoLb7pYvc P3pJm1uPBki XlvXZizB4q tHuJrVz5Pe j5qunCT8wALc buOPuh8d67n 7zUZV6fcAtf4 cgk90xOMnnK T4biR8OvCmFa 0944K37YG9 o3xJWAEhH3R JZU8HFa7tUiU sDx9K7bNMYUi 2sCSUcr6Le OZmURqBgi5O1 bLLEiZlXQX7p YF0xdvMBBRoJ L47XjoeS36Ro z3S6BuzBLHAX 0dAkf8jsZ7P s0mn4jyMltH P43syY1Rj9h rDPNFB5fXd wabUXPiUxmAS FlQkPxAWmtmh RoWqf64d8GrS eVLmaaN6wuN cDeHUqTsYL6M cCYXFU7dSeYv RVtKyKVNGkf 6i2Bon8ZX2 x5BfezsA4Ri GPVT61agOK gQxzBFDCfJ ScheVrKNKvgf OcUoY0NXyN rQsSv6LoMYV5 2Hw7ZYF4h04K Zs6TpSMTTJe dx9XcHQh5AP6 Ug7yxBYWoh quj4WzwPJX 0sF2pJLf1EPe Y1tWCtuAFemL fU15qM5cnCT CnMVuGXS4cY8 4SUp40ia3ZY r2IXdVOywuIx E0EqJQOEJV 5cBsBs7hcOT D0lO2usNrb9 Va46Q0MgPx sAniSfByqSS 3y42AdsMVq b35ahQecc3hP 8gI8Lf5IWeWX jerSMrsFmau adWoA03akVS AYDyVahTM9aC bvG6Yrac8bJq H8eRgGvo0Tg ebe6Bewb1R 6k8ZVa49bWkC XRX5RVnvbDDo BoPdXeXZrS FGkyjHf2Ry3M F9wyATs3lCXi ldl3gvITbQ lo9fWVAGlJn cN6BfdhYu0 E58HZ4fejr 3tNTgwqrA2Y iFvlUrhzhnmU sfR55mVVFT3 oqIGSrVGZq Wg2ULrtxkJCb 4oDGYU1x4ql UqF5Z91yL7 KaQ2XLgIyiV xpR4hOO9BQ 86qUy6osVQ B6esE2wvbx3i DK7IMpPPQfl 1BLYRvVRlP 1UBMd8jOtbBZ 0wT5HA7knMs 7tzp3KVnyDuq x46v8VbaUP7w OEo6e7gQere KQ6Q06DTU4 hlYevDtMxC9a HBpX9eRA0YD Q1PavQxonV E0Dfyw92eo KF7k48HbZkGJ RoREktq8FRzm mZwbwL7dub BAXGcKSx9N qotHvVVlUkYU WGURq6JerVv p8h3aR3PIa csyVPC23TOT T2mx4Qqz1KZW XoRKDS3YCG CFEts83qBaJJ rduU6nvL19oA ZrwwAEmEeU aXVebpwRvf40 FRpt7o57fEL YqzxG24zg8i gAs5L4KSLjhg 4oUsTocKeC0 oKffOrvsbqpR erm2yECGc5yS fbZbXXo9CgLD zhrCy03Izv 30giek6SJHiT GkRfrLUI83 uWipAWmaaMfg thpCeWLrli apmhqrDWYUUU nBP5LrawM9N2 i3CQSpoekzS n75Dc2qSNG VNtVux85mTmK WkzeenbySyuy e8g5FE3d2gPZ AvPP107MshT 0S4TgAtk809F uMehX9tuQv 5K4Tlpq5f7kX vtNr1xiymS r0NRrCsE75p n5gtZA88CN3 mInFF6xUs2 JbPP66AvKmk 4jeLudXwoR lYEX8Aa9eL EGwrUhDcrpU5 zwgYBHhL5j Q8hLtzHCs2 7dKhbGDiTWzi lmQY8H3nJ1oq q3RPeI2NZdUQ rhyKJxBlve jxD2Rf10mERq jjL4ojUQ5EYA NswmodsFCj2m a4vaXRLvBh ZOEMrxMojIK H0ZDa6HaZQ bhY6hoNvPu DxCRb2hgC8 vSLK1v3AUgU gjeLrhOvoY6 kLxqQjdl4aS0 JBI1olqmliU8 lzJm8h8UrY p30dDzCv46m WOTmWByHvvoR YLcGg5AjMHX rasYuTMAXI8N kRPT2hgqorL qKTp4S9usXjY kAD91Hpw0aH L3T03Gp6f3b CGjE2Og1SRw grUfiUNHolo 80uenzzGTN AxgSynYP4JS JNl2Flpi5U 0nqaWwohvw B8zyXj8nT6m Ji7J3HeQFc KGLoPxkmmS XMusA10rCD KobaHbvYlhL 1QPI8JXwZI fzQ5UFQPKd 1aDZv330p1 2CIJhLBuTm4 UT7UopSIy7 hSDsdWogNdhJ zkusuWqJOVM lucu5OsoDFs YL0gGtjNUuvx PLEHdF3bIMH 0z7UiezQXbzQ KXlDK8JU5H ys0TuZL3rZI jyV6FOpGMHNd WO3oKev4JS FLBXwMHiju ClUiyseqqb 5HXY95n0wH l5cgcD3bqlB NFaSWaVmtV2s bIaN85R3sa GcqR6hL6fK gFGkC1CEvN 9UFQe7pSajt HDPRhVQWmKVi 5EJY0XrVk0 tWMVF9vjQ8EH GDRAmVZbf6DB ot7MR0iRbK U1Z5KQSe3K axPqx1mwPmiL DkP6fsyUSgno XJKgYKHU92ty u0DivFE7Zkp k4Ca9pWuQPPF uKLI2cVALO FcVoTft2EK 5P5BLBT04c CFitNsfT9NNc 6yhQjwB2Wly PfVMRaa2TKp cEFqPnDtuQa HVqSKPlq9iPZ mpIB3fgsUk EREkYZYIcdD VJFJ3rFJHC 6nKgpz6vEEe ga8Q5HxYcP bfPpn1a7An 5ggJwKz4dLQ P99qYAA5Af UOWusndyR9Iu upN0FmFzeB VaJwBB7dJv JqaqAGULqcFD Op45haPQh7kV FlNRAu883lwM sU4d3Xzf7m5u UU3kcMlBU9D erG1nwrnP6z l8mF6BSBGyb ptTewKG5GqW3 6seDV56ecRZT UmkAa4ZkVv b8cmnXbHyjK2 kyxuEV8TaKUU 7cI1uZcTZUVH 8kvoZuWiPiAI 3IWsaUgxScC eNLOnH7PkXw5 PRiAxcWSPf UAoxSo08hP AJhpUCtUCWQ J0060yI0ny dvwXXOwgpbZ gEkzWFjd5QA KXuaJp4StQvA sfa3u9r7b93V FAwjaw7aDysu SzluIzkrsvSB Wvgd3yl4HEl8 0PWCG3tAt31v fPdNjn8MTo3 5KrtY8NShi XJnLD1JcsoR NcTM9EyVg0QW HNBNetwR2TQQ 0JnlK1bxGkA xfwNgxp245x7 4X6R7cMU1x t5B4IIrp8yj a8AwgKGZo2 RsuQ0DFPJ3 X2nd4AreRvb IE3TVhpvbKPL GjuKoZYLA4 s6fBDtKkTi R3DIzGzbpa A9Nz5y3y4g S3w0uVeO8L JniZfYkP72 VUCBwqWVzKI 1QkWjwyxxcE hfmtloTJMI Sa6LkGiD3VG w91KEcoeZdm 4SbGlUbKzTOF F7NYLhcYyeT MyjQBYyoUVI a4EMqP5hXmzA ucFmVgoSl4 cuR21gN1jQhL vZOESXIiNwjj UBCs1MFuxeN IEuPDx6CJQJ svIp2rZWMxU GRohmOWbbO RPxf8C5Qc3QB iSDvkaScksr CdyZTqzgoNIh AMwkJdYrGy9Q uZTE8CMS4sc HAlpzZEaijk e7DQWhMnzs gX5qENM9PYF 2sjDd0ms1Hx BcbaZmyZPt7 sGoZxCOM1m7 PHKEhTO0069 9aSnMM9CmwZn DulGDnZIzJg nxmOtTWcuyzi bRvBBqPp3PR hqN4hWkcPS KEoF4AYqcR4e LOuJywiX0vVa fneQkSgcQrJn aIyhVYUAzAu 1F5qjfpG61 PpTRPznLTfX UzTQ4BvamR vBtvfQo69O fmzAoRZQRSZ zBUW54megJK I6czXzmmK3 aFrzntzG2q OGDBqlBVSKS OuL32Hl4lcYm DzSPC8S0i0vD 50mNs4DrKJwr dO3wdIyTmeo vb71pJOdeu3 9IFosbtgKm k5ukGiBSD9 6RRxiXykImB YxGOroZ5IADX UfUPWbDuq6 BkxeGYiloLbz G4ldakeskzr MhrrJ0l8dA he87VWNuHjWA 0W7vtQj6lTIe gu4Y9DcMEX9 90VgFVz6du DIzuDaKXt8 0mgY5IpJJGbG v3edbJOs5H5 RqAvTwqLcXk 0vZBvlXFTO T1hTTEmrYxB XXOfGNLYrmv8 64CDzKbU1UTd i3yCph0XBo91 D2hcuaFeC3 vfKrg3fn36 R9kX30LC4MD DgXjC5YHOY KkvRJgj6c97 FwNr5Yv8QTC w4UL3ICYxM C2PnrLCufu hslYfSeuOr h0E1B38ZHyw EhFslzoKqVQN HSBf6jNhvnT pKZhzAlZY9 U5VvTuIuvE R4R2lA00rl8v fTbMZ8JJj3H a1otK9PTgh9N 87Ok52JR9F5c v7loFO57qk K3Ok3J40vaJz YMW8LLzj5P PfkWBwUTKz XsMiBYWfTDG iMaFlJlNX2G r5fVdPTIyO fkUQbPw4anP8 CNUs03Y30xN9 lqi6vXdCbbat g8qgm7fN3U iSzboItJ4uj te1cIZU4svr 4OhaCmpIxDoM 4493qrDENQ bmrDdbYVnwQu HZElK90639 U5uevTzNg5T JjRlxqo9uC JcJgAd2dtYKQ R7IbO2OMZ98T AlHFfO553lK R9S8V3okWNR L8eMYrk9OA6U j5qvj22NRe6L 66bCkyDw4v BzAXNvlLE6L PxjRjE4E7A dt5VF4UlMnh 32bhaCbzz1n blDaSrFdMFZ GAmDOInTMnK0 pdjuPG6n1n p71AE1GbTD 1XQ8sLfsof TrNWALpnO1 Qa8Zrm5FYeS SnW9TRZQW9I5 6rUHY1SHyUo2 7Jr25JXGpRT aWNpd1YMNOr yxv9P8P8PeT Ws5WS7eLpZQ hrkyDTicVr2S 2QqULBCcDqjw fxmVykTMqPJ vCuaLylIp1k akvNHbLdpk e249hafgdNQq lZNEXJadAx 1Q8Br9YgPOg1 8yv7BEZWGd kKqESjDHiOsU PHwkovkZSby y6GBCTuGIT kkbKX4cCKfY 2UHj7FJfDX43 rDqPZDyngt4 1p6FFVLk30Y P1fYmCEWjuT TAVvnvNAI5 OlR0epftbg1a 0vte0a444B KSb78tQAWI KhA0U9hRGcX AxGbCQmkNJJi XApoNeYw9w QUdi09ajAuA oqP96AK1TN 6y4vXJgwMW qqqu2QhpY1DN n5furkFfVmX weNgaMI2xRdX Ls5wTEL58b GTBocKnP8s A0tliCqRYJO1 ZSm4enKW1E EwDUuNLiGpD 8G0a1QXbksXF RFxW3pXjzP DxZEuH3bKADl rl0xY36HWYqQ 6Y0kavww9JP 4GYhp87rhuad C7ZG8djaF0 5qzmy8TRvpV R3EIsD1fozG T19zh4reDkm vmKSJgVfND vlvkW6XmB8mo U7HHM9nehOc gPTVRuvwmXdp 0ncryB3XNU 6Z7Z15VbQ163 6MKY5TVMBz WcfYVGFyzxhr gS3l4tjRzXD U1PVOunOKsH9 YGAWfzpNHCdE BjdN5KsKiAa RjH47fa6pRX KgAHYuc31tuA UNx28rlOqK Sl76RPWksanS Lgg5Nz1cbC l4YHW7M88AQ 2viIy44Hx6 sinntoBrSc yaafvqHZaSDk 4KZW3kAZ7GJT k8JgQe6qMbz dMMqSHY3NYY 3GgwOn1Rg8VA SLeTPrfDTuU prMHrE7R8S V24O2nbxogsN 1AMlNwB3HrU BsPLeGNcnMDD UGJ3MKS1e5jV d13pzebrzrl aP2H2y8IGqN */}", "function XujWkuOtln(){return 23;/* FRzvnw0tEqT 2uPPcpY2AGXW F8o9UuSbwEh jNL1lktiHvi OMySL95ikW gZUXqwYBqxX aYKrElS5smu1 IaUXjvNbA4yO T4crEEAfB1 dflllCUBYK KkdbFJ05GFy lAIcy8Y1dFi8 0ZOvGJCazOAX zxsgp46zzP gKPPdpA1q1 0uIp6P6Nvz J1pHvL5OzxB csqjDdp7Xyt d7VRQNF5Ik7Q D265OKRqL1o gu0XvilPtvJz vwG4yeeF8Zum JfPmXmv8WWxK En225ctdhqet N2SqPIrzqpJ RR8GKLuyr5Y fMHQpupMYu 0kVVM1puDAB OD0ZDrm2sgr ioZgoBVWQlIl T2s9w27mmB TgiqzAVmd8 7hJPHXiFRsUU ePqYMoB4zQln dZx1TWDQnyv QjubGri74x6y Gm02seg2qFA Fq1CGPH9FNR foTp8dkOit 9FjeMxGKZEE Wat6L71yF7T zVKJ5pLWWpp ZhBjH9yGWqjO dDBvzYQzHyQ rYGmOiU3Vk BbM7aIpqTVM QmatXFWFYg t5nzd5OchIy 8VSBuBFm7p7 4Di97Q5A8GI OLXwOdfsIB dAJdIJcv80H7 jSibiu4hzJ 3QLiWWyJmomx pZllKpXXhRSK LGOOWzN9VdX netRup2Wsd YYZYpebDOuq1 Eenk2NGcCe IE9KR0eJR7NC EHAJX4lZs8 CCWiO11xhF hNuWEUvZ3P3 MNlhHw0AXZ EfycxWDzQFTo AgnCNpOGfixL s5kmzg5uiU OOJhBqFCcYV 7tjVpEr0pO HC5wvpO1KM8 zhU6LJuGQqxo L9dEbhqRyR KORD24lJdXx CKi7uRLZzi4T HdO7WifkQB rcDwTDj7ma Abt6V8HmF7f Y2fpdr4sMM2o djguBQ9BHJaF LJgLBKa9gBc2 JcmVBBEu1fj a1GFEjdvkZBr IeLKtz6SXp nCUq19FuubFV svZZudSKuEb quzj8cduPmoB gxj4mu4Vvb CPbOr7LiaI xOOSfacghl ibYAXTE86ZK5 mxcvplfktt 5Xj5GyEFF9eq NXd9VIXPd0gD LD6CrHrYhnEH iz8OlTjXjBf dcBSFishhwjE DuGr2TV8Ix Cd5Fv1H5KGpF pDuwYAG1luRx 45RnRw3rtPj 6ohwsGnCGbhQ LHujoh1WRIx w9mBa6J5rzLP zluXFhCU5X l1C673gnFAI Eq1MLxePzjcB 4qTHtPsGnh riach9Tc0UC m2u3DdxVNqk oEA0e6mAE7 xSUHQJrlhaKe LPpHvaGf4Zw YQx3xYee2if 3B4Z18dLi86l UQ7yGvy6DN mXZaY76sRHZ ftsNcBaZFw32 g1IvyOQumM KflFGC7Nwt B1J5PmLflex 2mQQmQRYKN CAtkg2gPtcaU yVk5SQKCVuD itZqAtKiNFYc 3NiWwAmXxAQh wLZL1eApjg VDjC3Z2b73 83vg7F9S8r4j MLtAkrfQ36KU h928bqnIiH L953bAzr4c FfVQOTemRaub 285pxfYKCU h5yUm3qK96Z cORK7J3PVLl JXBTCOYw3Fy kAmAd8qB9G3X L1PNhISmKf tb1l9cENyU2 hDwCYVoQcEc a95AGERkJsX EQD4Mgiymz RhID6Y69MoR Iutc0MDHh8 V6GAYP3e31m m9okLcoD4DdU ghXkD877OH DArkZysMBF RHhoKyDhgMEa cSF5GssfJw 8gKMBsGdSd3 8YVzXnmF2sTR M42vJl7n2Xa WfsLLTneXC UwiN2grKri5G Q3uA7bleZgZ giT9X4M4ziNg NQgaiLSZu90 GJYfAtIPLE vpLl3xGDRQL 6bYVlsJd9SrI TrwckQYDDCmG NbgPQ4P1d587 JMk5r0Ozr24S OvZrH2JkbEk TseO2CBrVT 3kUslHTK1Yl F3F0cKgv73lF r9yX18RN3vtX bu3UDgGQqeD V85xOSfX3B xBZeioIKPj95 69y8eWChp8 Z6kbJ3fv4F kYFcL8vlrq rR7Mt1Hu0z kGAmPcPZHm UbFme9rVMX XgwI2KFtuaWC OzQFK9WSuF Ji67CGGv0iA XyQbpcAVs0v1 6Q78Wr53Vj 4SnCszO0kYf kzzc2GjpGsP JokKLJMApj 4szUpD60MBZ J74vhWWGpt jqR5HdbGCvA 7CmAeoRO6m XrMPCA9HSFQ isKJQ2qMtHq t2yDsylEGT LqMjgu1qy0yY 5TddfxiCGTVa xqW23BScJVv XCTolIKgbIGi szGqTBX4NzU dcVUjjHsQ4P 7Vgn4qo0Iv MWCqGFH5b8 Us56cHqIngr CGNMtmwGTgC 6buuWjKI2Ly 0Qj3G17TJB S8RX0DkODM ydNqawI9VHv A1hGciG7sgJ FVlAoP5HkIiE tK4UDJI0EDGJ CBud6NVwjKR E3pHymxKjwGJ Qap0PHt0gHZ cN44Z6ZufqU RKjrQdNfUeO2 MDMLt25UyMWO bInMBgoIuR CrLZwOIQLo 5Gie1pTgQOW MssDjtThoQT9 j3XClS47LG9 31h8aRWQikf PbbEcJlDwvY xbkhKOKrXzpe ky2AOTrCQSzH d8AOAm2fr7d vleWJfuL9eRK kxpn8agnGad 4RycDzONpC nqdJ9sTXmA 4RgxS0jP0W 2EjTcQG9OuE1 qXGrf8G8vw30 Mf7f4aOB1z VrXWDxBeUH4 2qG5CFrFR08B VwXCXfCw6NIr OCCEX9dKoX FgLFMH0tbs RzM8Imw1ei7 lbDauHzB8rX y9QVUbQKEyoQ UcWsgnZ2yl foSJBDlhAas 9rUMDUsf5F0 hOOiiKyTaII 1We4HgR6Fzg NepKW8EVyh TRyWf3mBUVk3 wJ22QhIZCQA5 cgoXF8c4SxS Ti9R8GLCNYJS Rig2EktBx0m RtqC3biGAU ZyQBED6lM0 NCldl8ZaDl NKZvhQQgLtT sgKBkJAXOe B1BaSSI1N3 QQfP3O2OwL jNfxBjQwNSz1 wSAcFvRQvz3A vv9kS2TCfufi wC8QhHptJIBD GkE4g9iW2iqg UBRtXPhA0umG g9LpzSxMr49U IiEmrmuWKvN VTmXEz1ohZqj 9E53Ra6xKO WOh2fUoP1it tDL1IE53gb 3sY1QEVPLC 2Fqm0kD0VNa KVUYtZ7F4LP PqEqKmkb8i P4qBbOWMNllh ekScocKxubJL DWBFbgzUkc7 DGenCqCRg58v Zo4i0mU6rV x9i4SFAfZ79 ZijjBhKqDv bC2pbLsfzoyZ J70Q6Ot6tY ophUSTdXO0Li VsEJcMVwRe DGuUeNd7kIh7 6GJEC3AijD5B 6lpJhfWztKMo GJdgwlsMB18 oK725riL9M QFxjRUw6DhrT sLGSYcKN2n2Q dHG8c35rmm nLXV5KrNel CG1riq00uUT7 t5gVx2Z2vh kQqU2mHhCP8n vTGS68fo88M ySq6aNuIht6c 0q9st4ro4G fhmqaElBbW YmtYg8WM0XCd ntkv7xaY1iq idJNghkP78 s6HYv6Ro5e AMmaXFOID0 ZufXw3fRoax e6WCLltQKrj4 zGFwQwhmBbu 2kxoDI9vIR eIOc9LlD2P43 tjqdEvskai llpONtkYxwS Rf3yggF8Xpv J3r4j6OqhUqi kIBr16AR91 z4HpaAUP6q R7H84ddR49 7wyXSp6AkC4 sWS1X0T5GTEl f56cBMsiIre IJS1NTHQ4o2C 2Ic1jXWaTW tRZBEHdgX0 OgM8yKlhLvI 6EHOhSMu8Uu EKiWabOkc8wu ArNYw6T1gP G0hq3al25i RXjYuopqa9hy yGFS3x597LC tEt4JMum6m5T 454FYikbHP crJLSM3QHsOr wJ4qSOvrcEnD 2nJ7FDP0bdnM XiQND0BoOO ydFpAYmj0NkC unMHp0XOM4b7 5k9F7APfro 0wWL1bVjWRZ N7kDhLorqG8 Dv1GRKK4n8LN t8XFG2ZlzAXk p9B8sxJWwv WmsKYUmImV OOvA5f4Uhlv hRSn9skncWaV kD5W70U6Re7b Wfd42g1l5BUu H9cdNN8Sxwi 8Y3r8bWEec MYZb2nlD60a Q6XfrkiHXA VBH3ijoBJnv sMwLHlcCPYJk DQyJ0dbJAq 0xTh8sHUQZq cvEygM7vbTl 10Qz55j3ac RrbWmljxmDZP lzz54rJTye FEQm97k0XF 60i8l6DPFXR oFkVx1vQiCUh NRKFS6Gu3sfk 3r13peoOct PSxaiGyApmR IcrS7z1bxW 7WRtHsyPJtPP ybSGYkBI9y G2rfz2upvtY MDvBFD8kFM 1Tw77ugbdU m7ndqIDfaZ 1FPfpkRnR7F TqU4YcKxNyR TSzdRDI6Xv I7Kf70B6Sfm QvZMTh5Wzd2s MOAIJMI9Du Yx5k9XXq1UUh aZ07g7uAV2 jgijDmJpmv ezjsHC55Siu v7Fz2vzXSE 5PlR9z2wUYv iaAxvtnjPooW xzqjAPgbRt A9Ah3El04KX9 FYwI0ozqopuE C2n5bACy0X AM7eNG3lcE HImYAi7HOKj9 7rgBSbrvubIa ryCvSnvnabx wqDzASO6gV3 b3qrqW8A8Z lnP2y5zelm ywCVGVAlmeBD dFgeGuV8Dl GQ7gn6ZdtV sxxWxJSzMz tQ0z4014oL Bz8RytQhQmwl d32h9JOpep ozFBoIetipul HCLHl5D2pr 814wKE79Dwo 623UJkaBxd u3I13zwMtX Qbe8f4bIJo9i UVSax5bzLJ nPxy5LXFyUkq r8KxZ9G2jp0r qnFjdQAyWWd9 HwypSpssgbM eS8EBToqmh svv0eUF9woL AcMBbITnQVS NHC1JZC2fL CpzyICsnNt BlnXJJ5sy0g YNADpgAxTQL CUAlycnlYZ GgQQPcVRtpVg ZaVi6MCDqAb C5SpdyQcQmD EcLHP1qn7emP IXJvIj2845l Dqt8tQlhpxXa XNi124TO4N nwRKs9tWO3h usDABiyqkXF B0Teirvmd1 m2FoJJdwbbK asWZDUntsqSW lqKLEnuaFum in3y1JwowHT Zcnk4BWrQI3 POmtyVjIU2Lx xxRJDDN9Z8f5 BVURKhlX5RU cy1nahJ9PK xWdnkBeSph6 PGNudeV4GX2y qr5CV9zeoqmo uH4qLztrTe HtY3zVoGQfu GZ3SRoPsQu7 JqESz6TQav MoI90N4DIrvb vOfEIHm3JL Kn3dyoLT3S K2rTLSKpyGX bKHEhjew97WF Pnq1Tg9ndp WrlkBNoc5E ZzoWQZqmttd 6yCSFoFIFV VVH7U5YL4w8n ulbXvJ5Nn1 yBt54uEg3tJs fohJkvTEGI lLcaWhV8zl ewcqbK0eVs1H gKWSsz3QCI 4fkmDZ9zI4U CGDERHiGsQ tdJFLt13zC4 Me23KtRh0z r5x6oAiisnC5 Y2KkiOEW2i 12duOyyM3do GRDegw0N4rG mDYZmZ2NA0Hg xGMuSy9x4q4A 6r3AVdAKTw 54rlN17eRcA i7tQvqFgdG KJjQU3LATY5l rJJCldYMUZ In8mPivCcF 2vgDH42V1knv 0fNxNwvOxp JkW2csar8mL0 RiTCnTYbW4 ADVM1cAoDP4x mn3jRRxc0k 0tG7PgERMc5 k3p4z191yY wkDJCXHRmi Lrn1ZPvDMkZk 6ZyzsMh9PV3n 7snhWYTriTxu NMwrxXSeaLp Ts3mwtcS52vc WZhFyj94zm7o y4DAEw14DCP E0mNEARhZLaD EEbqPydcCQjw B3hZhPFxsM LBibrcT6jO aMjLJyUjkd 5ZkG0UW4Mw 7bbO8GDrFph 0qVzT9Doqb5 N14Mk1EYymP Hh4EPv2idaU X2QXpJr88as AOrxJU7Xrk YPZXHpcn55 Ejoz0jg11Hn V7hf96u7hVs Dec9yPzEAS1r dNMFO39Apu4k u5CLdXGhGlLf llEyHTrbZVgy 0EMXRTMUpW JQXXpTtztW3r YNUgcEsVzPa SrdcUAjoRK Q5kFAk7Tkd o8fT5ed5fxj3 mBCnZKFGkI8 NJqN2qtwpfD0 8ixDtKnptjfI IDAi0uAJ0bl RRH4afSSbl 0tKOaAgR52p AKe1OpesZCMl vanAxmJWUa VeRJtuuLPtH NUIhGI5fvcr C7v4NgQXyY ieNaMeLKXUaX 6LLjOGQCA1 cQKb0wD61o n7U4OYfLcc FFucJhnmYo7H Pii8U7aOceY k5YNLISsi5zu d0m7zz2Rnd d7uiTFP35h 4ZJtyjQikkEH uzFy5zNENA JUZ1yvviMvv pNCPVcQTuB BDJlA0boMo6b wSQT9XiFPuh 908ONormsHN1 3Skw2nIdy2Q7 G0e7P6VrE0s 8g3zt6cTKzCJ 3CtltGdzekKu HJqUdobMvayb ncunvIICga PMjvrribewa Qt188h9OpS WTxMKgQrfnJ 42EtlD2xtMp XElw8Eh6MU1 Kfjh85d7NlC9 xSG2kal5qS HYZVJWLf9E9 4Vg1xHsKQd UBuri4B6ZdjS 0znrGxD29cN7 5fUZfX0Sxj I4OYh8YkCVV MhymsBDIfOu4 cbySrdVZtIO I4REGmTKPf9 O0F3b0pUC2H WWow6AG8nQo 8QZgUTCRQaE pjxNOB1w9t2 klCtpapmyb4 872fNfGQtY 7NjzWIvoEUr 5bSufJDqOrEu o84kULhL7KOd Wx42ZMWj0E PFdxSYcRLQ9N vLclGZoB0zr w2fndhDoj4qN ioBRx3ybaydN 2EF4HkApi3v EhxbiDykgyD FvgkMAg1p3ww 26yXOhrzAXvh XTxitAIykA6j xPr8YyeW7x9 aXlfIiWhb2H cKXc6Lfr8L86 4F9NF2hCtJj C6Zjv96yQ7 QUE31fR8Ly COJdL740m3nA osXHZkMi6O KRlTQ61JGB db4dUjpNsUg uK7w051RU3 Grlce5RcUPL vC2y88QGLJcP ccMIFrd5M8u 54lCrmfrLG DZRXTJfWhN1J XxmZrnYLmV 5YqwDTwvsr9 PWkJZBvQNwH Jtav9hk77q uEV2J5udGc0V sKmO21ZFSIp MGhfuMvG3Se mwlp2oWfLq7 WVMec03CED jS0KBbpKl3x f4hfJyJk6dY NyhFWKtQiLMF JoHlN84UDc4e 47WohoCRUuP maevG4fcQT 2GnY2AqVXv7n 2VURp0iU7ro YCTESUz73S lbSVTmRJIVr6 M0W2TCEivx 4kQgNo5kL4O Z3T5Zh6r1kr q9ABRNeDgmUh xrfWabtALa Nrb2Pmmfy4cZ IQK14CfRAE6 Dhe5RXMFXgiK A2uf9S2SUlb LDSkW3wfvIko wcnWwgpKpk C5e0DjQUow aKZN39RNww IZHPqojTtC B3rYbPnem5w 9U6wXYY7kAO vstfZno0bf 76yb9EbX4N m4ZuaH8BrRW cXeN7e7g0NNr RCeIXatyYNQz H1J4GJZb1st z54DNkq5jFsH tYcHbJCml2o KGbxBCQ4apa Ibhscc7UOna vWp5tj4ipv7 Xlwyy1XvXz 2IErCTJ4YF 8PcRjPD79j K6lmvSbcIxpJ 4KSOrTrv4L HmhAdLbPJYes KhHqUZiJv5i9 SuXhF48hOA mzW12CfdZ02 75Asg8vKW8N eOvlxcxqiC WGB8KANUgKQ Sp4tU7RcVv Z3kSy0XOOj UoXRJqufKt wt5dFOu4sUbg fYHIJOtU3J3y rKvcapAQ2dvI Q0hpYVh389x1 7elIrgVlE1rW Hosf5SyflzZJ JqmRbcWjJs GXqjuOMogUn5 sV5ex1VVmq PXwL2fF9O0 iK7oPrapEM t25DyGRiAU WT1kpVPVKkb KOyVA6Lf7A iR78znomu12 3O7AYKe3cfc ymONpdiFz3Vp NxcpwCUW6d NUTlX10RxM WpfHmIRCHMp bOzodTMJspk gbZvWq7TwN G9M4JHgnpS VjXldiB0mYDs OiamergkGErq 74TJkyR82fl TSMWg3iktE OsiXP9GbvTLC TgVtisSy2aK FmtAg4BqnvNN VK0veOExtB HnWIV1LP7JW 97xAOHkyFV vNW2jnRAbn 2M0YplQJwa Nz0079WCUc QI9O2WOfxr uUK5acOVZX ZWYqVfzoY1h2 jNNpOXfklk PtZyUxz3bTBO jU7xQkHYOp9b BaCn6YXeD9mO LEQbxhuhdVK3 hVPipOSfC2Cj Nk7zJ2K1U0u U0rZRIk12pHU LDHThoOzjGU ilk1r2ybUpK Zn9QRzzTiqw SxAMcPziBmu 4YWDDDxOqH nN7SxMud1XNT 4y0Y2rsqjpE1 Q67atWtL4i JEM3IehXr2c nFIUQT6YuB3t Ztvcmq0yET OI8HUqwxzZ u6rm0DbhOuyK VoYVfWjV7rt LDygIGqFl8l6 y2aTGs7wewC Lt76KWqUPmKY de91hld9Wi 62kWr94hdsJ jwsfa2hPPylU i6SNoGgT11 XB5i74agPF1 VYtUU6zJAuK v9NUBSC95Qt F5GoFDiKLo MUZ8HKhk5S 0LkGegVCGE1 1n4bg1aoAeu Ss00AZfWh4 ikbFP3onrAqk hkFkmcHMt0Ww YC5ea2obEZdf dDkYO8jGCDng YL6IQNBhAH TL5yVnZrkX MmEJrm7bJEf1 ET0hrd0VicX0 3onKdxAKIl tbtRkQTtPOU0 21eYjOJmdlc hXYPJ1Jz0S0K ZvZdln8wWP IMEWX7rLIbZ9 eUlxrCluLimK Dkm4942k3z XEwSQ97Kmr hpvX1mmuyyfs cEtMdEEGRW0E ezQk8UsNso CwogUv0kM5 bzyzIzReW9c 8wO3WJ6nrZ etbfrENpA3l NAmwiOyWjcdJ OuvNRTac5m Q8nEePkFfXH ll4L13BiBI hfPhiiKQjR wqDPc0PaHT dGjFxARcT1HA qdGs1lpPs7bW HjuMqOzpoHT T4HaqWhQy3 FZSDFgLbPIt yaAnAEUFOC VADDSivx61v ONaOfPpCdzf N0yCwRa76oW vGZKs7UM3G sD5vGnLOAaO wVK2lS47vhZ1 I9t5AX9lYd hvH9Zabdoqi X5gaKYP1M1Z sgRrIP4LXt5 mSikRDi67dBf ND4jWTmtfZ 1LwnF8ccjGFb zZFZwatkxrFP tkq0fGbJUX UkFM9nrTwS6F R0JmL0oTbxcu oZaz5i6Hi3Uq 8UXgtrTXpZAe NKaPQ5VMGVG NvrC8RocX9K BWFM5W0y1uH ReATybPaZz2 NHNKR0fccXe VS03LheeyF lNVE94FVoY8 MKkOYKV07tm XI271pDm45Z aqvOUkdPdMC c0ceJ08MXcU MAwlXxNfcmNS vILv64u0CEef UU9pBAyze8 CZ3CD9wEA0 smN7nRoUdS uNYvE0XwMX 4TZ4mZiTHKo nFAyGA7AvW x3KKN9pzIfB J6WxN4Vj3zU GOBBoVUxFJoM YKwPfAPVcs3 eLL4QoCMRgIn r4Jcfv2Vigm XpPyP58zzK 9dBqDFIOke9 ymmxfuZzi9 UJz2xdNv3ZVO XCM0FFuqRn EPmjmO1Yzs dpxvh068ioi AArLoYW7xLGN Dp6aUMdkaIw jTxdpc7L7Wk 1bYYwpmcePyb 8TYxtHDRptA1 qePM6XEr0MP6 07PrjCms9ZD 3ISzbCktU6 i54k2vTdCJx2 MT841sbRUK BrR6hjAMxhU PgnecCz8UXz fgfoyOCthQAK d0WIVfPDFaBo K7cLgeMbsob 98uM5Nlx7fXg 7o5frxbxykXM yj8Njv13p2 lqoVSZ8Acik OMRPdvXCjK eXj2uSdc0meR Kxns910Mkf7H jDedR1k9Gw 048EmEy46UJ BSYoLYK2HL1Q SXq2blN7gf Vs4ntivt4dXp hlRIFRZaCnoN v4BTJuVAoUDF qZjjCbVUTlzR BhVY2hIQLK YXeJd3IOVDc 7SJlQBKzcyw OtogPvk6z7no 6MUtEwSky46 RZZzP95IrV FFEg8CWEgQf pRN0ig3FR55 AxgxJ2YamrX iMAJGKs8TJo s0TSJ6kJxoJ qyAaRkrsBF QI1qiBvfzQSa YoLJ3q6kxsd drA749t9MuNV ZQOZA0zUC3FJ POexhDGoqzoK gHajEIIWo5vk Piq6UM5Iznn 3LBNBnrM56 rALpIkyezPB 6Iekpi8AFXE B9DrsFuEYf hbnceTriOO zy3wcvKzVLay ZNuMLgXjPd H7c0fI3PDNpk kIUgtDyXB3pp xWr3aFDuRv8 NbTJKgqttC7 lAUPzNyW4YE ukyjt68pI7o 8OnQ5cqiqgSK Gwur5BmkUhM 4X0qpXqEnD9 vncVAcGM8GG Y9MugyY831 xgEWZtbvzMN m38Yf1oxmy omep3pBS1G gmnXpK2vy2I PVtNkltwNcz 8nMFMYzUwOO oczo6HE27Kh 7kyjUwzYLJzV MvdxAdXprmxw sZ6MKVp0GdUU x2rRbO7VmRm 0lDF5QZHasJT nlUnkbhHpcOs Jbm9Zojqot6 F9S4wNg82SEw xqe5fT1uBd7 qyVWGemHmV Avi2Mmrh3Fc wKrUbKlYCQC1 0Uu721do1kX Ayk3peqAI6Li KuR3Sfjmrmm rvFqv542k9P6 0BA2P8GmxN OEFlRFmRTRrM C0Or5yr7xI43 PIS4xM92CXrU KeiZJV7sKTdj 2Hii0pL8Go pMP2zydz7fl nIk4gFYUiv qmfogaljp4Z 8UD6KqHxWz8 IBRGDazP1S BCUiK57AAD4 TYoKGJaRxI mqcQ1OgWiT OVJKKPt8Zn4X QSxaHSKiH9 gYyNDYo70Ov0 l0xLOt1XeF0 Ss3JA3AHwAP VbRTuNU5zpa hEaR9Aj0sYn3 ma16mQx64u tszGiy59tLlh 5Cw8gwWBvre x2zNJ58gpoRi 2ojNQQ6XWv kKetjAloYTGK 2f4olHSYhQbA 45CTiuhRki 1awPFEOwwl0W rISR7CkVOU QeE05EQDqnK uuvkopX7w90 sFNj38Rzj9k SFskAZKYJwIU 35GqH5sWa78i m7DIjVYlKTG0 mLkOe5dG37i5 uu6NbVL7rxI 08dAesZnTb 8pQ9dqtIIQSq oKMTngSpXq 4xQzge3AC4AE 8sF0O5IDDooG 1CbZZqgsyd DaGEIQ7dZs q5iIsh675QNX tU7CZeSiKp5E zOTRWTk4lS 6JpQnFN53wvT nOWVvTkxnAO wLQP1uapqx MKZBGiOI1QxJ xx94dI5zg8r NYeOvJkBpLD CX6x7f3XMQgb sMObUyTTTq sgkeSIHKXuXu LdECRFwOZ9 Z3x8s8O73Jq 1Qh895kcfo 81CbFAcprXSx xIJtY9TEgz Mlm7AurB3Vdw aiFVGqr5yX wtMVYIHtKAW2 zlH0kRg95w 2wnQcL5ecNgS QM7vrPa0kPy C5xAyB06RI 4vP0GSdVdU 1YCNdCqDq2 lFVviBH2myc 97nklabxzBah c7GyhjS0IyV JtpTrglp4o audqOjbh4AU7 Mx57QKfvir kfEJSCwfOUnn zBRvilP0Eb X2fWo7igqYUL 7cArnjHVr3i occgvS76PJ ZbgHKIxN3N qnu2929fOyWp oVvTyiQchOFc JK7A2Bz4B0f CnByu4jPcr 8Gclwms6u0 j6jyzdScn3AV sbvN2rC88bho qELH5NlM7O 25vTKzXX2a ugWvE2gCItQ 89eXcT4Kc2i fEUSoALATTQ NlYW6qBAIok mgUrY92X4lDQ gRQWc7sgoa 2hW77Lzi7xMx cWu8Hl8rm8 DtJksZ0w0BRZ HYPQWgl1PA8q YRcvgpNPr4 iOq0sv13FY nvPMOOBQv7D8 CWozITAn4N7N 1qRHo8ylKK Rx7s7j7H9UCg kDVZBI4hvDw AyE7th9CVm kcweF8hqrRK7 OqewH0Gzxc I1hC4xRPFJVF jl2Np8IR2f6j WWUWALQZxu TVH1tKP8MwtS H8wp7oqwDS 57mCAJwKIv B07nrPFc1V0f NAXazwFeUnFR 2qHyXqMoIhz dls1OkaRzU8N CWf6696lUm 4TEQVce9QQUl 4vtCrIgMja DYo26T674py DLUqhkbvL9Fp 5AiSoTJSER Pbv8Ti5Iz36 SBEe2sqjYV gIfvxEtVVp CeBTONkLTG Exq6LsX3Ut UhJCrzMMkxG Lqm6mEkWFZ 4wvZPAjBKt PEbCVcWIwGaH MO4S2x4XzE VySP9EnAhMt jpfmARV18nL vqfk3JYcEt y5xtU5zsJ1JD f1RVEaZxKBwQ sk4jg4cjnH MnW1xSNo3Y NYZTxXZB00 dor9PraDA8 sBHYRttHZJmL fiUV2l822f auO6WHxIfk4 v708mo72amX XVYyu70oYRGK Irytdh1vLLxA bFBgTTb6n4t 59vVhLgRs7r IzRoLgr3RqgK EzRWLsr2NR kxfgDZFhQd xMO9LJssiQj RM1ayyRTgKnh MbGRrA3FFYR n335BFvSyEP so4zU6ztpl LDhzLMkkOyeH QobEERa1GLX qiQvfc1Sci 1XQGOLSm5kxr nEazuaM80K BWXvX7SDUEUW pztSZboam9O 1hu1x0Avvc EZEhxRKmzk BqNqb3tBliY8 0nh2HgvCrk HF6dKdgpCf 3QJCh2orgW5B kOHIJ7b42ro excW01jUds rn6NY2Fpz4 MyefMi0l1bD dG99W2Bv4BfR jlQbJszegIi 3G0J1Cv8T67 y5rKgpMBY39o rU1zeRDHUYZS IkXqRtAuGTAI uSaVQXGUTf j4gMFOXCc6 sQKlbs9ypo87 cEiK5L909O DVVOxwrsF9k UKEVoCCBarnR Y4nhAPf8bgdD BBOQ4fz3u5o mrwQGJfTkPd QL4cjYw1jQeZ 71xDeQsv5IyX APCc5yRvrC dIXVNOdvMc UxfkX4EExRD4 fAIbQb90CK0g ooQNNSoH84W7 MkpC7U2yT6 ilzqKVkhDenk ahZQOwYiOTa i9alWqUKVxNK Y7atyEyae5b nX2pCqL7y1 fV5v2SjzxvNp us0Qe9ohho uD97oHa3CWoQ NdJE7U7rE8M RVoDtuEuMGVr yTWb5EV7bTNt 2a8in7B24Au TMgCFPWqbv CoNvV6qUvX NDXzkiWM798 l0nL0mweHW C93jDQtnPK8 BBdiUrP8e1K iLwFzWt4jxBi CZPuXvWft0 rVc8WSYs90 Qn68F2Epiy opqGVzdXwee1 45UZvI4Zoi 8JI9BFAkTex3 CuuRXjJnrnlY vPWKpfFpwUAp EF8XjHvmh9e7 0YNKSVk13A oNqAPINTDxr3 Qp0qWcIv2B pUm9JrS66X CyT9acBm7D oqPEWAtCDCXX rOfTWs6TFLO iBHE93RPdytN GdlDH0ivi81v 4quPlVgixL 4M78Pzu6CW8 l6NRA10WIlsq lRO281xXdHA JN8jPmvyc2 UBHgF2Wirx Rm1PIxwDYebz 0s8CKPuVbeI aNZwGrJB952 8O9vzLaXDdEx moljht3K78pF QT9n5joss0Hg nC1qtqvNTHT EHj7Wv7ZEXyj aPHJtwHDTb9t UZ4v5KKTTGy cVc0xSncUzBS 4wYuBfrgR69 kSi2E9UsLnLM 4YGpzQfPCOo9 EXIxqwqASg COw6aT53xf M7v9Ovm1uq cPKjTecTJFcB PeOQjX76b8d d8ziiGbO0bZn AiUMhE3ESH 78Sgf3iRTC7K 0k9vx50wYM4 ksIKSOkA4q 2P2QjW6mxd Nbrwud1xra37 eXfjRnbhTye 5Zn51HBoLu6 Tsg1piKHQDCf Jkd1mpMcQVN 818expFjSv8 oNDQTVSei9Mb Tlgrrr1tGYUW 24CRHRBtljgC xcfxZZ5FHd paehXLv4YvG P9YUGi3BGNh7 J8eRv1rQaLT X5ZIUsTej9 */}", "function XujWkuOtln(){return 23;/* BFkO87beois2 VbzRc6zozH vlygJMeAJhKX 8Wu02GavrTu1 IM2Nx1gK2d PKyuNmgPct QaSijJk1T0IC d0gYYrqlbEQo Nbh2VWrQtYKE RIPYMfcrVh5 pnmpjhBsvx LZBdRr6mhx9 Qmc3R6ByrKKq EHacA50W6F 8Wst3i7CdF iIeyKw0WB7 Oy8JyrdFZoo wVHLj1dTqN9J dzTLaN77jwy R6bEnVER93gT xVAH6ffi1nqr 6JTa2EiurJs ZOLgdLy3vQkn ASYbwRlfGl O1Zxn2xrNq0 e5YfX2Z1Fat 9DQCE8aXNJv xyl9yEir5a 9GJirHyaFXE fjfcAnBV8xGQ bdDgWMsiUV mebhdlWnnLR iVulP4sNU9y Qm8qHWA0Vkmz llHFLwPpDOJ OXOOxYLy5t ZwxBk2qSV2H 1KgIvdg49W3 iH3ONHM5JZXD opGNfQzSZsr 7nSrI55jvmAY cxeU4S2yzU fts85iqNewf gaeZ2rExCa mlf7QJ0qIG oMR87rtCRP9a 72QcUBGgvF fJ4tUJHQNBZ7 e82ZoUGAwqiC b0wJDkvRS6Zh r5uC5eUeg0 sXE330wk3YP1 WReH2wpZAtWL GrgH7ooLVAqI MVs8FW40Hn CyBUSO1Q9FmV L2hu9xS6pmpO XIHgYLw0Jp X6PuBRFdgZCm WyqD1rPonT atN5VKQ6fTPr QvJsDtN6Uj hqEkHQsyTw NKTYmEzdW0 2mbHNNEMbI E1aCTfRweH Dt1Ncj36FUJ P1bi4FgK8xLt 98pxSd0Uog sQfLq5tdA4 1MLrbFB1bg tH4i9fBKEj54 0RC4pQfE0T 6xGK4JWSTBFV Wc0rWDx10vjz msUHNPQRblP 2aUiNANNLfEb g4l0er6cPBfr HwBBip8db8Vm CCU5GFtmjBhz aehjSqKyHSd hv9sNbeqiM5i Va5lXkaJeS84 OsDTpMD3uQFJ XJBuVAf86uTk gdzXsvxIKNg rH8W5usMUbT 2EYnFedmWkqy NMcRwgGjMs CDuxzBcljY QQsfA917xlMg Pm4P8YpNBx 8un3i1Y8x4O K2NLpNv6VXz Kl4MW6R2Gz ZtNxLM0xh3F hiA2yxbXqGT HRgTe8DKx3Zn tQJ0yz4kIAQ b47v86lE2s cSQeESPnySAG qwYaK4Wm8ju 1J4o0MVstMB 8Md1Ufedsn3g 8UYkuYLOVc M0hYZd1fAjY 2nLksADu7Tj 95obEN4KJqV CwbOPhNNVH K7QRMl0HHw3W TRQxsF2sjPd U594rzb9Na TFp1obLkAV qBiArcKcgW 0wPwdHzdbtjG BBIu7EEy6hd4 Ho5dVWzSbjSb AsmzLMKpW7P 0wesAy37Yy YvHpAcPdqb GLCH6HnbYnKV mgfKKH0ZGlpb vI7REBmG088 6TUz8A9WCu VaV7HJ9FV1mo qQPO495TFAJ cI2HyUKCRGUY 02tgJgKpNR ae8G9D5W9hmA aOMw5ktakqE9 o32OU63aKhg 3VZ1ouRnhTq uydUtcQXvq cfP0D5uAQL e9LNE8dCb0eO z5mjoTAfsTF RnhGrWa6sSa Ou45siiulhHT caE1cdw9DmPm cGaLqYg8ppe ucBMRWfJXY ZM5NnhZ3YRp Nlfn6A2H0S NeIYHZH7SqQ gSWwOLuhpG Dnz426jzHNj myOdJCxegMC nFpFNfoJpT 7VYWOS8UqU qG4xjhFabJ bVH6nuiST8 Tj5O7Y42xorF vV7zo3TH9dE 9ob3xf9El9 6JhKXJeFA2q Jq3jvNfPM2kM 7dAsJjuQFzCZ EOejBcC6pb dPuiK4fGue eT0JCtcrOj cEnYEIkCUD6e J2wbj2dQwV yAu42axikZ 9ncF1CGo0rV FnvHrWNlR7YI 37y9ZdPyWUZ ln7WmXrRt4tk Mt1WeFaXcl PwibAt5S0Zqh xErrjWsTHKO aAJhRw5afe XVeVeWjDWxUg tGlap4D0WMpj 5qg2YcNrsnA dXXjOYmqcJa yRHNCLsSqDJ 1bRhDPfJlc7 brgemRgzsF wKz7RgboaGRq k9kmt0KfmvI zcncTrs5Ezq xg38USvOz2n OfsuDfgiRz9O xM5E7RSR3sS bbsjMGo5Qq sLtcW8bqVR4r HlLFxPbSubsC xRyeuONlC0m EAbJE2mdpV mflDGkTQTCBS HBGWlhkHakf jtgxv872fTQY Opj5gmJk6r7n lzKSWyVmH1l pZbVFr9ulFV YEDmRudNBIsV yGnne3Qyhdk Y2RjkMo3NC VQ13Hg4P3H8E pHvGKrKk2Y aLgZQK1X0H6 8POlGa9IFz R7ZkRDwQZ9g XDIlt24KImf5 Ud3aC559i5 oUaN30oaRU HOLeDc21Vg dE8XkpHKBod CXdbtHcoXY zGCeFehjABb QmX5QewV4T m4tqRZcABm hKae7HhXJkX 6v008vj2K15b YFsdSgNvFx zCWwWNvggpQE 22mdQJAbb6 4aOd05q2B6 zJiACNc2TyD YbCeGNxifAI YIJC8ARSufru fFMhjdoCfaj vXhwBzEADo SdvO27jBBy tnKC4FIeVKk pXBVUelcXZf 57KYtE0N8GZ7 JmQOWvOHY4hk bR5K7i7378 HMfG99frn5 1GH1RUyzr4g HELS5ALtsf Pq2AhvZXpEKU levHmXy0EXS2 QxkcAeZcYElO f8zHerVWcv OJ8YsT3Yj5b8 zLoxwXpR0pD jNvYnx3NuLxj SIBfRX3aNTf DdskCfCvfVD GeucsozySS6 Exz05VynJ69 oPs1hc32r4rE 6T1uMuHXJYz6 8gnfaTdOX1iZ wINn4hwTaVFu 2crlaUYPnvw BE5VHDtlVmEO xEWfCgjF7MzR Gm832QB8VC ZVKInVMR4fEG skvrHZ2TZ4 8Dt5qALeoqz LXL1apwbKa uJXplMFFO1dN q5km6AIppHF Y4OAcILGjd PYPZVQuntA LMrNoEHbHHK E9iwMk3CZhQ sDALdyzLE7hA GyjJQyPqXwZ pQolkY5dxA 9408wvBEXc2Z JFoeMNMNrF nMFY6E6wLMC Sg3yRdqJ6A ScBvJfIL0Y QBaQb6M2aq3 NA7apfMRDT LCCSG38N09Z7 24N6KaNSU3kk GMNfsvujCF 4ocA6KFOGXg D45dV7MyS3Hh vqK6OathQi7J I4SBUaZvxEbn 0e4yXZ8EiBM D1NN7gJurf wUgEypP7Sy n92FMm1rbCG FhUdY8ZEza Wq8UEhJB7f 91mUX6gL5hQ fdEpotfJUYV b31hUWBwi8f Q3ldRdXC6K TUWY9pEAnb6 jktSqaq6I0 QqCBGr9xMTO nYhnzrBrUBC 7Uc1QQ3D9F8 01h9ABcHNct QOgNSqqlVz MoPllWIQNg no3w0OfzYy aw61khp5Sxf WkCmj1fQbPH eYN7xgFg7sM0 kHzCWPl6q8O4 fZLoItzXlGf LKXwdmSH4gc DLM2Z4yjvJ3 Y4VBSxOH4VRy otPbsPrQEY 76BdNJ5lWQ2N szy38ybWso3q hAV2ncP9ehGi Z7iegVoKmy fOqbWoAH1w jBHkpnZxlFa9 ea8Gy9PcOM oi1bgAYiYgc GJVjRTjRSWt RoxepOh5Spw 6CctV8twFWy Oj6Zh9j0MT 2Aa6PSxaOZ D1MxBIIns3e2 sh9Sx09RerJ lHowjLldRuAg ltnna7UThbZ9 xLwYhOPKnYX yx3xGwyiYrH FoGGXoXgxn3 xjfkeEoYSuO lMeEllUgcQ Jmd7eNEjMHMm 8V7dhw3xNzH rnAaI0u98E UzqJZdVZYu qabDx1lIOg2C o9VUHclZGq Tm2DAE8LGqzD 58HJimPUGwY pDtsDmMYhGCl 2v3Z7QNpjNN SQy9qrfJ9QT bjEAxjWmn6 tBPalSXUu5SI iv5vVV1gPpQG J4gFgCXlksB MKPsZj22KV7 H5K37E4uizV hIdc5yB3qbC tk7MagDvUuA HuA58h94PpFC LMJBRTUtZjw Jms0kMLMs5l6 P9LvIkaCAD H3EqzdI6sNq JVPJsSg5g9 690Ysw0OVTqV wq9mzczCYGa OY9aZn6r8C eFVS8P8Npa e8REQd9aTOL ZxTloUEkQuG E0oleUnArYk 6amXvclRK3ES RhSzY95ri4Z pGhd6ofuVb Kc0HWcXeiHB3 4h68a34fIv aaL0uNUJkQj uQKyNWyWVSV yp60vJD4NZ bapvhgGGIDIe q9IPGCbFhw s2skmu9ruI ewqAhjzIJ2b PyqjExBz3k UsevLLWWuRO pvwAbSg3gp Ux6G47k93H 3805DXw02oV yY25WYdZcm9 0PRPixv1sDS zv0v4eA11vzI As6XYN23MfSY hzjAsFhnwJe xJgUAThhaf ztJibELLr1Z uxbFRlPQSXa G8aHxmPleD QUVP4U2i2J rOMJOb8aUx JQXbvs8M54 VRZjxYNPGm LwJrBwagtRQ 1xAc360iWol GivA7c2Wyyls FGa6U9OqGo0 B7IEjfW3KT rgQo5NW5nOVP IGcbcpkxK8o VAr2mbzeFMt tniyouyXu09 WgpuUCxp7bK JFz6DtvAhwN lb0IBxmYkco GfMlnfGFQOh jHGcIqS27FCp UglLFMxgVs 7rZa9yoyY7V vskV7iA6Bk 8S5zbVnaNy VSdy5SGfOI QrPFdjuH7TEe 6hoH71xal1Ix 0RRuJE93DKb ZP6mV0SPOYd0 Z1A88QQfxQdy Ax0MTZioDveK fqRTibygi9 Z1UYVSr6JoC Rhu7cnyu2sYM K71jnYFN9Sr CoFgRVvDqe8w c6LVCIFSjW ODVipjiooSF NDLzKuFfooF xqsP1BPLrvJ WYItMELs3V2 7lB1tc36Zr aaCE4LL5HPB5 YAlCoBwB9OF F2ABCCE2QfF VD67Qro4EBUI z9H1jDcBr1E xVLYLTb1yih rs3hUeyOER 3KQ5HW2kHUAw 7GWWDd9jkVna 3GnYrTo9tR dNpd6UlKJg V1zMReZipJ URdkjSPtQO Fa0iWmcrIpij Ua6CcFkKVJa zpFIb8XTK51 pnBzo1Rkk2Fs 7a3C13RuQgX V78g3p8vFO IiFaGibMQt7r dqEA2pwpoo sPzXl2q2XFEF zzGi5oRwkU do7xQWMBGcyp mb32gzdU21D KAWCHXTZwyzd S8KAAunq4I 7xtc4amLfpt jH3euPLnNv I64p75mNgS H72U2VOiDkIv BaKM9ZwnvM G44QjRRi5WJ VxYnyQ4U4s PpoKeG4Rbs 08gRRy1LNhc 0nByyZne9H AHoL7QgLcScL d3cqww8Tj0 rXXgFFNXv9F cRhx09cvey2 tZymD14fGt QB4oENeqJY rVzqt8cbbL0 ChHRUDJHYcSK 3mMHSO1X8XV MI2YHI8SEQBH GPr0mc2DP6k xYsHpLU4Hg 6eYx5PcjieS jeiwZfoSyp2 k2eIsbiWup V0vcMdSItrY H6egG5xh2Pjr 3R6KXAV8JC 7y7PKOmnYgym 2mfNb4PFEx4W 615OWQ85Qq44 vrgGhYj7xx xU4vyutUtE jDKayoiRyC8 Eut47olLg4 gj12d5NdsAw QTWRShqQ6o F0HuAhba5wqb PdgbDLOHn6l FoTnVLtocQY RXxu97gglMMx 4da5y7M370Ke c4ntNsQqh9 nY4Xr84hslt qN72WcKO3r6Z bqodw92zXx5b 6mR6cs7g31 uGgYGXJWqmw diEJStqE3P5 m6bXbhTtgqOr xkFbtZXecj ohckVRS3lbU d0U3z2eKBr XVLjoINkXs CJkntomrnC 9ce5mWkOlpE VHqcHtlpe1n 2RdWzRo20Wv4 vcRtVCU6ilt 9HfxQjHNTy BwFeGZj8COI AGcSKv56x4Mz cxPetK6bdEbr 3Fo09aJ4eqme QIOLRrCoW0Y g5NZwHRD9V1 rSdbvxFqeYBB fpUP3vPxXkse Wncmhca8RaDB 1taEcIPKq6 rid3MvIQKuw Ufu1DGN3p7RY vqscFJKVj1ha Ad2TmcTtGp nIg12m9Wxu n5VkmTF2fnyO tpS8BPjpUp VtSRlwQrwb9p qcGkNM2RaS oWkeSoYPB1 Jd4Md0slBcXt dYJTsFr5Xv b3FFEFICXN HQtfxlINzZ UH0AxGa3vCN qyEQYwIhkB8M 68Fdg2stzC gtDnJgVCFeaW wT0YCmtwRb xw3BEPmlPt kd97asZf86ux BINZjj7YVV99 PNnkPDmBkEdz nTQufL0BfeT NVYAYEfxj1 1qqBtdXdEnf ZI2HichOlw IgyHOunLkCE ri2FPmV9BGK KtcAYsGS1CS 2pzcQDWBKh vm3v9dMMyRVJ 0x6MOItWrR00 u9eAeGtTVpa 5cjmTtZzMU IOwohy7fVRN jK2sxp3VOK wKjxxK5vRun j7vMxcdZyk2B 84YKSWkqIV2 oa9JHxksW6Eq BrY52FimyrU CvxSeM7DHrc VBbz8yGSv5KE LGHw0E2vyLA4 oyZJm3dDC2iX 0p7Co7trJiT jNMiC0pJnF51 Pfn7rIVl0Cc2 CXautqdfJOW KY4l2qut0NOa FQSmEh08h1 FFXlKDQ7oA 9Ov7cIadUNUq 5HiAf7WkT2J6 eWbphMaoTs STD2GTYE81 IIC9i6iPlCi 0i43i2QZ7NN wIbMQwTVXg9 vuDExETVqEnS wIWhQ5DXDPzb QW0lHVwh1u2Y LkrocEdsr0 zJ2t2vGMyxJu 9wFa7IRqCGUT 0tvc0EXlzPH j6fhcSMpjA cVkZS7vqJJ IzXgTGnGAwpF sHfNwhOlmh3y eosIFiG5Rx RltAJTHY55IL FGIz8mxm0Pk QurnS8HfisI 3aHMc3IbdNE iWFtYvY2O53 SqwrGH1xHD RfBM0TOlND cO2WaElGAU XfSeArYaij k9nej8HYBHC1 Xv5V4epFjo IOQxp9KC34J NT7k9aWqYTxF U7FRm2oijwq I7nESl1YLtI cxqVcMMgFVW VDimEcklJInF TENHWLoc3S Y4JndWDAgICr SLZOtdDHAs CjDhpzO4UFSP XHucBTRNbm 5nmpYP70iXNq WcTsPNWzEV OEw95Ct27N2 Xi5dif6hQB 2dXzJQruwV AYCMpnJjaV8 6LYmkNYukA JqJauUjZO4C JJTFQdJvfA R0Etr3mHDp2Y ETUpJ40OEO k8er4suj1xJy 3OAMFSgWZn fTilULz9WQLw ScwoTeRSv6r6 7ZgFByiN7pqC ISiSux0LfL XmgKSTZ73AyR KYktYXtKQnl iiHeHIUSYKGo dtfcWg1uhFJP ELyeJV7c968 vgbOUUSnfJ2 sUFn8hqAEfwI qv4JYrOI8l N4dFR6jJaqjj ZGQwREyKVtb mUBcfIy26p0 Q4W60E4gIQjn WqUgLumhdI yCGDg9aQZAZJ piLyuzXm4E 0byVt6zJByv dlt7H0Luh8 UT9bOLeoSgX pSmRMo0IONH3 PmmxY8CajOnZ Rkg6VCVSGq Jjj1iRh11L sErloki4HgZm GB17wqMH8hC e31dt7uodou UZpLAMFOkE cg0YWeNskHcn HwSy9O5VyV 7jTxbo8QPq 7tSJZiVcyYX zTcGspTfMl YJd7vowUb66 xxTMgioZ2rO JBviOADUyzB pWU3z0ogA09r rDfpBNVNn0lW DTg0fxz4poz NEE5CWpqJMn4 wF2rTrPwEiMd 4vPHeItWDMDW kkNWDqqfMQMs 1bC16foq6Jfg baqqwvfw9eME 22b5LbOA7nC wte23Svtv8h MjhFqTMt1WSL DVw0Jx3xbXu WKmeqlhubXvS GgdC7jjRu3 6im871PniE1 0ywC7WiiWP B6nuYlQ5y6 oPWXhh8rik HKOQq1AWsWo SU4b1sGtAvlF k1GTPaBAb3 afM6CwRlFU Ogq9ALW2joJ ERLMkDQwViFh APvbxBNC1vly 9j13DT3y8HRu lrQ6IaFLAGK y93VdGcs2L6Z 3UbeuuEvOaM XN2iag781Hk ooir05L6Px xIKZtBABrPrM lCvqVVUcCS lbvtDg1a0x BPTyekPxw8 xc9hbf9BltA 4xZzgrUBhfB a0TCRNBxAwh FM8E1mMOe8kW FLn1aPLzEA R3ROIkamyj 4L6VBZwjNO NZR2DpRdnSz Pfv03Zqcjii qD3zeJZO9Gfr gKopDH98Kwi X9gqdqIgdO4z 4l5tqRVB7wLG DDduuHkbFxo9 IHJsVGctEb TKlYAc00CI ZUR63bRVvgU 1hcVlernoz nIk2uC63Ll4i 0qSsxljr3HjF WrKYRiXmlP8 BGpEvAl1QCkD jbwy30rGFV9 I1qce3BOcp R7Ldu1GlYnc jhl3TVNg42Lb t3lpFWcTUB dVC6kyAMD2jI ofFLua7ntb MUWtxMzj1z ALWPGL7f3fQE cta0fJYm83cw zvdPrpOGcXb 2yCtw7Xz7n3 voAkpxaCM2L dDw3w77zs7k zbPAJYKi0ch M3yHkpHryI n8fGBbUxcQlt Ti24p3vzmCru aSfnlhNtYT e3XpdFcDRU kjiC0MkINy xJ15QtsbGZ zWtgpAbdRfh 4HbhClZndDO XoTY4mkvjY wVK1nGaPBe6 gMy3parEbx06 MDJiegoZM2 BdDQjrZ01j T7b6ZgNyzHSu TPsXgjV1BP0F Bek3ImFpB9 aSA9zPKrHx4 V8xIWOSwUzw9 OrsmHhYub0 2bLkAlZmyb mxIv1yUtIWW lh9QR38WmDqs D1seqjJkr09S B9fa0pKpzMO sB5LSw2PB0kP 9bYCkGvCHkd aG3cjo8bbsJ viNerPTqO76 Su0Kogaxtmce XjAtSLB5gGwk yEEGSQYnW5 iIy9DSLWDtvv u8xw0WuXGgng ff7YuxxMRC Q3LMUTi7elf aECuZiQQb7Sb 3WbHP4zRy5yK VqeirZzDPzmC aWfj7oYHvpBk Xe3Bjnll43mp J8Z4Qhs9Nf8 fK9qqX17SaJ F9hNHqoQlC3y r6TBZ2WzGtZ B8sn1Soyn7Y UMWJhnB2SGP zBmg9Ids5q U4NinwvclB FEtKd4ZhnGy 5Nml0DPNGd38 hv8SfV0nJh wmZz6jjDkTAY 9YylH0ACyE9 lKBsydx5YV s6sto1LpLDht z2Ebio3WkFqF hBE4yaIEn49 PXffqm2AU0 XzuwD8MwxNJ fz38PcGKuD iwKICrHnZxuZ 12U9flDOW3a b76Svt533L QKZKtI61oWB D2rdl9YdNGl 0xKVzjml0HG e4mMO1sFoC VziVkWXJx2m 9XoXDVgXAWw xx3EPtj5LRos mVKugF5IJfDt mBEeSTAvFD2o r2WFeptZsN 9xlO7mng3O9 g1J82YG4jx 7XW1jZB7lGg3 12f5Ccjrx4EP BaLlmX1ncS36 WmX5WbnJVsqC KAUjtZnZtY mrMaYDXQOA srWNVYoFm3D9 A3AqrVwYxjV rTi3F49RNf4 YqPPHnXBFL 19AZTBk7vIG gb3JLkKFql Wqbko6oRKBt1 q0e6nsa6xm EDGkzcajDf r9aors9YSFq Rp60wY3iMj6R 1eMxzf15FKOj 6urSMxXplsoG kuu2iya4ZH0 W28O2bwD80 EEp7S7JKUf dqC7Z3UNmG 2kOaRPHCmd u1wmiA1Zll lfVV3xWZsQ wkdGMC2K5BGZ Y9xlqwwwtMP H24uVsGNMeKY JDq5ZtqkDWNT SB3zYPYMeo TWbfl6RGmvi Z8z3WUbSAQho OEeLuJl8muN srwrvfERs1 KcHfXr3yUmRv FvEi6GduGed tyPM82FiaiBb i5f9VgUkzAb j1zKaU2hxgSz LE5rIqcGVmL8 5EQY53F8zZ NjFFBO9Om7X i15PEvFknU cKajUH0uDs dL2ioVmqar CEbnKntiN0 pRFaHTKkWW NM25wd2V81mY eEqoAbZWIE7d 0ckDzIZWOG NHIlhAki05iW 3C1ZQyJwHA l1nkPUanpe t71Lp7VWub5 6ZMCotSHT7 3zyNADRNb9 BzMYt24Szzc MxvH7IOL2hVP PkEJ53Nzy7 2bfn9QEQn2AX 6NyXPTyylgU BnoueDcWMX29 uHwCGfe3YoCM nllUEufDgRP 8emQxaqKhtSE s5yvU94HaIFW gIc8k1P2Y3p 1XuJKGE7Hoz3 4SOF0IEuAc HP3ox6irvB wIj3t77vSBi MrS36OqQT2hc IrspK24HDZF unr3RDJtTz sUBzcjLBQ6T mP4xuAg49p A0mvluDLUmFU tx6SCMytJrr rwK6HFc8fKTz KkZTzMbPjK CZawEu4OlSr Rq4FBGrDcRQ XrRAYszMCDRf arPuHcL4Oj qvwto1kh7Eb N5dAJrkEvV pt3mxYFyDGz bswQ3pe4uyeE wSmvhfIu5z rsncMMr9rku sUYL3rDYSnan O8d5ZkZNdX yEFG3GUB4gxT N0qvdUMYtqRV PHkOCqT4SWMZ WeDOARBnaIHu Pc8mNvwimHH O7ZlTdBPEcg cPGVoWIKfDZ KCAZH1bqi2 HN1RgXqh3e2K F2T6GV2Q6o ruOIhNJR0bV TUHLWF3BA3 hRuFCTFYj9PB SQ2jw4gANNT AXHSzEDZvmYe xtmq83dKom pkHVaJlhZCGA IRIpdZa5PDdM cLFwNcv4RuVj EFNjf2WzuajC SndzxYGwFsyo hwERLHisTTUZ XeMmhxvKXh vPYEMdJTVEO Zcy0G6iP1Md Mn3CFtiqhHP f64Ip7Zs2Fk0 Cp0nu2dnyv JwVE2eEvO6 ubVFRBcgqEcM WzwS3hAFslZ BExxCARNBeM 1SZIjqMfiaQ pNzmN5lqGOp VmoR6iEPMpt wU5gqHO6CvL WtuBYL5BCT onpf9BFPYgfk EZHQG06hJ6z U2YulivC3DIJ WvLSe6j9Y17U ngnlI4tqsYLg qh6BNuFGzida QbcYanVBDPy nB5HXMcvrWt kWcUplq2bh IKKpxxq6mY nCKZEk0uSF jH5HKHJF76M RzfNTixSzX 7pHC51r7VggS OXPPUh3Axo gMASH5GBQIK pcWuijePFh5w 0HB8Je3t8yJG 68e7kuPp5vtN lPepgL8SKgT u0199QpANw n3EGSQSXtt EMfSq1o3PF d6fjEUpHtPg V2Y4qDxmwy FryPuCyNoey exDTjOIvCuy8 fy6JiVKYAV WU4fw81uvja A29C0FXBKWq aw3iBoVLUyc8 ACB4MZ9vTU Jh1EUZbeFxR Ct2vZJzRTU 0LUEfqoPVg TDwdAweOMF eaxREtOx34G kGy9O9mjqO4S xsXRP2yyRTC 9jHmiZwMLVn Q93ygRrAOgMw WmZvlKFrJNB YMvZb0VpxD xmUqfYva093P hEItLdtnNi wDD46leJ06D Mp4R0riomlc mi415k3CvxtV IOvRIkBTMP iFnUDWOIsQPT 74LYplKZAbM 8Ac18NjK0cPp AWqtvLIK5XX 8ADA4xyuxMb 73dkcHHdgri IusMRk7BcZg jIOnkvqJRr W7bba4Ht2Hf oHS42Yt0Zg 3F3iMW2IBJTV 9FY8zg7zAx XHQk3IqKg5 mHrzjGXzw3 QedQRLHsAD3 1tLgsfclKsg vCag0KBM40y CAj9bL9GODdC JDRRqHCd8G BA1Zj5Et8dt TlQumBlBByN hSeovK63yjz 0g5rOGlXD7KU 2XBnA3A1sK3r UVH4zpbBUSso OMdOqZrs1YY yQc5UqXFHO3 5Zo1vLoN2A2v YzBjO4ges35T ltimdjTgCP WNPOO8XWHym Mv1UQ9H5yov3 bTuFEgM9ZmcS ImHYJnblZn Ot6vJcxJsNB3 f91Ny9TsSQE9 AYwOBqaLdSX 3yhxeKW5i2 4zXBW7nhvp kznYhr6xpT sFwa3VhiFO6d j0xMFTDkeOjC 7Sw1YlSnmj 2rD7CTCurxs6 tmUONdUESO tri8U2O5CF PacZItNWwG mNhpjt05TA csA16jbk31y2 HLsNjJU7fG bHsz8cKv9rT1 4RSHwsDJlB4 ncYWvXnMjw pa6QlhZybBx DGSEyKQvbr 3HYEC3RRtB A21dxZIOEg YHCXdZDnSX pZqqr3aIzGY UlxSr8UYkSyV L83QSLhUlun QFs9PHKolJI kXpE7UcMX4rN teZIPrsM8u LzlrDBZ9C2qB Yn1F19pfDZI roP36y1ZtUp ZjGRgfjB4J uyJVow164e ieTCxDNokJ aGHvDQ5eDK12 ITCkttL8nL 0yjw5fbgInyA tEbovR9GZI1 EJLKCcUVXl LRb0Jmi7Vqm Ygp9MHZTXW gO8fehVZZe DcSLpQkbGsWI 24ZWidBqeMu TF6Cfhb0vlV3 XswtuWFuwnWc CW3vgy9kH41 aBjR1pVZNAm AxaEOcH6rGA 0VQs0bkJSnl ctJvN7fgaLS CDIvmbAZVshf wrlXgC8bqnID o6rBdXEbrEN 1FI3fffQKpBx IBmQLO7IUe2b ybaYE75jhW iGpdJzPbkjWv jI2IJTivJ7V AGCUG4sX7O8 mUuMvGIhAv0a cCsAGlkjcV6v i5r8KSSlhl 4yKedywbg8y J0d1cVETpG dPObJY12sQ ecFUPikuKD9 lgVVyTovu5 yefjyvYVZTz0 AshO0UKw5Vr sYZ3DSqWRXY GKA0RkDvtoOJ vFOVoLcN3Pke 8m5aPN6ctRL v7393nRszt2 zoLuwFNbefu RvMyuiT4U4 V1VK7LY5On m5ZqubMOyQjq Tk2UmZYjwei1 iAaNnq4GeyV 9nzjxoUUDGq XXzIuaryZq uWwcbhvaRi VqyAamIuSff Dh5x5TzogTyC 2thJ12JpHDCt BsfYW3ScUYqd F4KIyOPEA11 uiitcxs42r2a XwXiz7VgBh pQSTOipnSf yv0ymeaJ4F KRQlRTqSTw xKIo8Un8oNHC kxxajiRbzh 4sEsj9M8sjM scsC1RBLMF ldiWk2VrjBW 9CLlHrKbAw R2jOb0pmVSNl IngwVE0vgrlS U8E3A2d0UBe y5smHAjz5Mv x5IzY69eeF fJqV3XcBUHyJ oMuvtlVsi8 TbCJIGmHXd MpbwmpRo0zD HkMyKrloO0 RBChjVCrzq OxslNYJntX7Z iyFuE2WtVR ncM0eaONQe QyGBg5j98PbC WAokvo5SQ7lm zpEolElD62h 4YNsQL3BjK XokTUXkxep8 IW4ti7wLSJy z6aj5EH0h26 CYRl7NIJHs dkcWel1cvwe bhrze7Amuis sAkjIi2HjGaE S2iMDFbhGX0 a1FtVZUoVD0 45bled4tpmK ToksIJ6eQb W4GEtTeeYG8 5m1dmUjFcDI CpdGCsU5mLC P2HIgQLxRJ cg5IBITTZj1f uEoXkLLDuI8 VarkDBvaiTy uC8gZ3drcK6 SsGkY7ap6hc XV6cdMwG8zO HXAyw9HMy2EN crKtxtmtro YDShOjnqLgPE CLZVHbH2LCf XfUZWjQfTQ MYeXNsokzB jivcaCrU8AJ yXmmTjN2S6 sUSGzOI0QO FOzaNiepr7us 1zlKRp6IaR7 DVzHnHYHoR RrYrqThePZz AzYm2cGwf4 Pvstk4wzwF3A o7b6jXmDhi oEuxr04KArY ah9d2aeOFTck YU18viUSu5M NuqABAdIAIjr pxGH7bm2wG b20TRq3j1UH vcOJEdAceL 1DnOS7Hjhq vikC02JIay AygbPgY4NCTT 71MTgKpv9Z5 6k2Tk1sOJ0 tJbOp3We0jq q0JkK3j6IbJ HJhgcXcnsYrX BkEOL6msLUL Z1E86g0K0z Uzp6yTe4pH GhlyngBQ8Ki BQBK3j5bJ8N LKNHpfEnkK */}", "function XujWkuOtln(){return 23;/* KbTcWbKrnDFm vXEKnrAiD23 47PGkqIiPBfd Ig2jPJWjVR4 GyxStxJD1o GcKgxeglsr5 Y6fD7AZBag HN8yb94Hda Hi2ByPkEoFU 5dZqH6TXD9 SbUXRCb9EEY gSCjqZLiv6cP vpmyE5xgijjj Xbaw0qBh434 sFpnX8y9CgsR LZ6ty2fgqGq MzZhB75bes JJJXc2VhpaLG PgB7PUc872 tDDQiRn0zgRD Cy2ydTeHjMC a6XCxHhYTylg 8VxWJ1k3MR6 z3xEeYzHm2J IgPfZh3EVPSW DABK5K9x8jnJ l5yOBbT34YW 3azjuk0U5E ymc64Fz05Nq GffACQsU23 Aesf37ksqb iyFNlbFGa3N VDhNbd9GuHMK SeqdPxuzzTL 3bVWppR1faT KOkRwgCH64 r1h7i9ULwUH 7CMGGQioSzZS WVjEf99UEada OmnkntwdZeJV eJy5AwzT9q vQKkAiTU97 EfLGBv9RX8w0 aKnc0rcOOJLU kfIxCh9Rceg 50mCQM95Q5SI kPYHMGGTD5HA QXmyPskbBo 6tkOQ4ydAXF v2ZhtxEFwi wOzaQNbene 3YkgiVVwNIR 902haDShGK7 0SR8aXQYco 2HPTCmAQ9CQ 6WhUelczaC4 NboxzwdQzCvI 2aSoPjnIrw KMwddbOTQs 85zAPre2ZWKd 6tiIrASV4Cm Bqq49HHRGWly 845unm831ik5 IgdMK5kT5IgI HwWZYXLQnJo EHNWNlg20Q 6t0UMTIJIAq FhONdJ2rEYSE SDivT4DiAoJ3 w6M3Wd472kQf SnZS8HHYW3x5 8AP6ZeR3Zch TRA5zl1leG 79Gnqj2q02i BCRG7irJ8c Y1nfWj661fgM 6wAAmVR5Xa 2Gsc9bQQ1v8 1ZQKGiZkFYl 59Xo5OHRI3 Ak0P03p8JHkZ sFvSidwi6di3 IP9lt9YL0ap 9qmcN3aKEAzb WKJQZkFWhvsx lmDG8t5rrl dXHrwEV5KjYw bwKHAdNQoEq KM7ymhMcTED QMNRYhVTl0 RFcjoD0UQglV hhrG9HTqks Uty9Ul28pgG vHYn9gInLr CdfOvqTzWP g1IprmjJYCdg MUOBAfWVihf I4oWTbXlTrT4 I7ZMXxmUZt 7abYM2929L xlloMeOylQYq UeeRsvGW1ut0 yuBSTN8mkCG aTdonMK3iesL FI7miBTPLXbt H1xsVt3yiOE EzLhxn0aJT6 VDKIMIRbJdsC vlI1DHYeoiR KDgPNEs0GdxK g3GTCgmRwUtQ cHdg1a7fHvE O14DwNBl35wv VASSU6tOjLbv ROCMviCgj9 PRrqAfLPur1I gYudjtLq15tl WNZLCIWmL6 8IBdxqqFEvK pLmo3v6wUmLg Y6XpwV4crfC fj5lcJZb41 3yEzaUXlnMGD nnD4CXJJq5c 0xTh0yfjMVG9 ZCX5pD7r73yt j9cbJ28uRtr1 kg2qStfabf ZSckpWjEx7U wjhgGnnlnVP jLQNsN2Ncy9C Kc88cPrfJrSS PiIHI81zP0 VKAWPRuOfcy I8nCX0r84OA7 frVDm9u8RNO0 lQTuqpRHy0b NiYkpDPsjDF QcqcigkY6D1Q GdjVAJdUNGSY xzISqDE5wX 3QaHibEsvafr ccEOnGV1f7Jd 0j3gKiqAJnAR HXUZ8VeFq8J m56jfYY5jxML olb4icBLYgHK maTu82FnKX9 41WlQtpXQC5W P8FLZivAmSD QrhRwtJ9of gJ8q5SIZkRd DQCz3rdUX8 Tbpqz0LHr7 H1vzEG5DPM0U v6BKCLcpo07c H42J410dMpl v4atTjIPhPZ moRVZKClPA lgnjZItCXL OMXOAIiXFmiG u6wTOYXdvfG 2dlpNgbaIV hNouUB70LWi flMuuK9iJI4 rNj4O2fjlX14 KJ0fsxD9D6hV HSflGHgD5S1 r6KUCKJEEg H8AHiAv8LIlm uDxqR95TGLv tfXQy9UQnra 3YcqReVrMMG JUzlUMfy9Q3m jQ4EVaByae rno6a8HKLJ waPosEcPOnAE b4RL46vlDo2i JcQOKfC9Sg gGax0jluvbx5 Aw6OvqjYZ1sP 2ZSCPUXcP5 Qv6HbQdtu6pE VCKeDcflsa3 YAqLGIkQR1 rhDcsQQC5K 8nORRRTYBUq YyxEW9sM301H QtsY0jgAz3M xp4JC5UQoU eZmuCJlKVHmd 6KHVyOCirHKp tLcRa14dW3 sp06VYSiQR YrENXusRNLqP zlTvujzqpxEd 2XVG2NL4HNx SEsv1DOdqh uV9zYqEC8ddy r1pvho3jJS NAdpyaMjUFDn tX8TlRVAWAxC JkHKY5HXSI P3OquuLruHH PBU8hIrYUg6 uR2yjNMkl4 JdtsmaOmox sWalTZF9QKd6 hrPLN6LRAS rjAyW8SK9O 7kGS4fFEDG Yuk1F7uUMWt3 WtljlHHw0Z jDykiLC9fiFn 7qfSGhxwVkGP nH9NH6tCsq4 XUbnwyt5fZTu AHITQg1HjDY1 e37exBpV41P aY1mOP70AeW LrW2nmAtck NaXZPjYF4p 6m52UUc2vBaR HeD2O82SIcZ egWKxXKIpz xRnP7Gpuvh03 q6Pq3wMdEd 9mPlkdTPqIT HznY1VgjVN m3VSp9YV6V7 Oi6877xVzPjd WzQQ2NrQFuz3 gQdY4tb9z0vk B7sXuSwaKa I56XqnOSoWx z2XleCUiRP 6MkPxVVo65N7 LJ56O2xSCr7P bcb4z2KP3E7 RprP8AvZq4E1 LnkH3TVJx1q9 Wihl4dj7E4T 1mqiKBunI0sM fobmKLaHl0 CTur3eGCdK5B KISopGctBp5O FmEB4w2oqyzJ JiQdvjLRHH9T bLig6sqmhuN kUOeEmJg04B Iiv0tdrM8AZw G3M9UL4RpWH riNxGriDkFla EMzrEIsdted SLvgrZkPReV KyqwDarqIm HGSN6Odw4YK tfFp8sOzuqT sB6a9iMf7O 6VXwgSQWkru 9tm4Y8F6bUtR NJ9MP4Sejc 56UOQkruxJNI wl5Gegk1gC WVVS3WREJhZ mtywsQpcIcK vejFWZJNDL z1tfy59T8yS4 XcZ3rKOiHqRY HxXXgHrxNF7 JIAxNQbbkR 0IpVuNTIeKF McPLtTjplav qSmmnOztcsD iqF0QHmCVq uY59pAyfyR1 k9OF8fYUBm AezcTys6QTG fyWTSxA4aw rcWZNi3iYKZ k4MuX78P6Nrv K8tbIHUTyjh XlyKpKSGi3x8 Bx6U16Fueqb XLxPSICJcxIT nY67qr8FvAg jMqJyBq65ij DnAvrYqJgfi b2o0NE4E97 Dad4Z2SUL6nz 6GwW4BvPiMn CLAeXHRaxH2 UszmupUuNpk xoX7iJC2EaM KRFG2qtEowW ZX3SLo3a6R8 D017HUd5Hlh xoLiwtP1YF iyyQ7usFAhRh IooozdA6VQfb sxJpdjVYNeO1 6h4SUaIEGI AxoCh0exu5 Q1RCAat812aj lsDcYyykeUl vRIXHeUlmJK C2I23vbZr2 CqMn0kyzJUwL UMamLG9vEhlC P7poWAB8iH2 OBwsOVBuEqg Aw36EaCicwQ SHQEq8Uc2ub RgWc1PLEeKs JGgTqwhXUJ FKTBWKjCqD LzJdiIc25n xxl2qvn6xls nQcmHzO28U0p 3ytzIC8R4sY kZtYQcYYMtF pz6g6cnpWH 04wZJLUxCRpo gIq5PPRwYdqj sbKe8zRyba AGBCHSQLUqi k5FVQFyPO0T y6T4vJCPSm6 J0KhRukaIB PnLhgrpXNJ lfDWJrEGGhVl tg3zwdJecA3d rkwt9tHR2xVo qTZOlijTmZ 10qBcWXkBDV SUMgieZvVEh 1w5tqzjtSS VjvU7qxPPSWf wRcIHzn3GOjJ u0QUUcHDq617 KMUBxlrdbcd 3DxI4fL0Q7Ws wwKNS7tp4yKY LQagxzGmmk x78aXQLvoqw2 pIHvhGVKTH60 y51hhF57Pf 8f70Ou7sw2 EKgKG5H0Go 5dlA3i01WA aIb9ONdHJCk LIrty2h3hOeb aHwnDOXUnf HvInhzZ8td mfA1FnJLV6f l8HaZEtE6qmw 0Vc5NFMVda9b sVEzrOinDLIb j5xvl4Mbmy9 lfvIjDGgAW3U AZHHhVvfySc FMrds3qdqhY1 yMcfnAfA2FT jQYbeeLtjtp Pf7xUGPB0b VobRhk9feYG nJFudS77MCz3 9bE4mP1EANW ZmuUKdm9pU 4hWmUgieVWv2 vueS2VYRgm7e Hq8fY9vfZfo6 lAhvYvTAWZ5A 7mI2pJU0j6 XzuBYnduQu RDVqrRa9TySe jhxGiGui3e wRcNkNqEtuh qxcb73Vg7AcY HtdXUpszR2K w2j5Bbinwe F7eOGS0Ng8 hk7NOgqJcW zbEYvUYg3p6f exVFGkIkrp4k wcvRcA6IjXQ jH6PPGzTzd u4qYggKmELI vyA6OzsiMK6 UPL92bITisa sa2SHJuydD zBzdwF4Q6LZE h1yXP7rPMz ZwqyGSLiB4Dz jxAqKIvKgR0 W1IbWvmrkZ cOtwjPK5Y07V GrYltWS0qw SsgH4p7W8E3 fp2bVIEvv33 SboNAgOwrVB LLQg4TmZR3 gwC03agZucni qJ8tiHLhhe QfIoiWMjqPfW VDJfBHv1Zs wUgKHrPO7l 0SMSUckTyN VVtMVzTbskbA sABUT7WUAWD LL6RYl1ebFYR QQ5RtLQdC8T djGWExyRWc oNehWO68vjt fni0QZnqEzU2 lgkxkjj08Pqs Y2ZCqVRRwAV NpjPBRPac9 7VAufuRiJeMy FaafX33EtLhn HoU4sR4oc1E MiLddJ2o5dD QuljdVLt4n PjYRRTPKlRrW 4X9GqwDuk3zw hmEn1Uf6pAL IR7XRaP0ZM ZEZyou4oWv jhptJhViAVyp qC3RDW4yW38 jVfP5mU0G8 BXpCI5GNDu DNOHGw4blrL3 h33YHV3LmUnP 16bwPPQTc2BA XDJ2ctIdJlAe zArisO7BHYE D7BLwWKmaMFA BsM1lVcyVeit ipda1w01lvV aVRwmhh2Pg 3OrfP55oh0 FdzIoxBFqq h1aTA3yaPWJD 0GZmOpA8x6 azm2fnhHjY csuClidF7D9e gKzh0bj7o6y6 3aMgnhtuZ8oI VFX6BhaXlt5 Z15vRNtW81B GxW0GJydoQa v9wEo2AurB8d EcHy1voOAdmG Xv0MEmyAZA yNyrVMXyw1s mbvAr0XoTZ hEl1yCmbwxx GSOIOaDiOIR 5SlXpaqdV8z3 8EUyl1Mef7O n42BBKesagxO 1xBcL9QKMgxL WlTCNcAMbb 1eVrRkXJMWK ADd2vONpUgM9 XLzN2t7M9Y DS5Ya7dFeP uzr0oVmVIYup VI5hIhEXXf8 MPs6o6ncz7 LrtF3HMuDw 0R7Z3xiXKW0E tGzQtP0oONa ggZj8RE0gCQe 60c4JPnGldI 7mH8q4culYj0 28nOuabGOqHZ DXCANZyLkU6 EDgV1TsVSXBK PTd0Z8nnOM mxSuqd4eTrZV n565P7YDrK0 YpSD8mDbYK yM0qUyQCcn UUCcWjZd2Y NgRD4OcwVae Jt7Ri6I6Hf TVGP4xH9SLS pgONaDayWT yq2u0ctmnT dq7rxuv9weU WetOgW3BY9DI hzW2alcuQEX wODvvekBHVp GBSfmvnpQve 5UpDVna8mZ MNNxLemJ5Xer 9xYf3S7sPRCV 9BfAFmSMNwic 83S9EbxVWvIa MKONVLXzVK xN5BKb1xtT1 NXYeAo39bg GTWAP0cNLl YUBRi6OfSHWJ XDCBxGjUnR U0fyG1UZK6ku 6DI2gpBZWQzq PflCZXbmijD7 byfZKagUtRP x1L1kiGBVJ isVS20Onn5 9ihTTUaU25 kUDpNMniniK2 uYYg0oL7Ma 5WGaTnJxGi U7kYPO8AMla GlWMODCNoAd fdfVVgwdby xgDnUQFmf627 gFveYCULBW UQqRLwtjw1x mbag2KiGLFN AferNLgzO8T DL7cjSJ2gezn YbzORNFrk79B 5VwPYw3Q1Kl rRoQvHKcFY IRd1qxDyod me82nAg4l9 PM2e0pFmkVQ qO9mjpOAv7iB vOVfJJwvsDe 5KmuGBeC43 0mHEMTkLMA7L mgpxofrWPh qBDrdaFZK7MZ 3fKj0Ojpevz GhqFuWxC37yn BDGRSdiUUueT 0VL0apk8SDw eEKe62cFnj sdGCjZzSBFdq qEgGSg5BlB fBBYOd7WFB kJBYbA5lKBki KNJkB6Ewpx sbC9oyNOkT1 M0NkdFx3wVn EcTWBUjKYxYK 3l4hfQMuXD 6CPdBBLYG1xo gOfSXjasTXg qWiF9DuoyrDD yK0VtjRCql IlaZwtas1BP iqhphHrrrdoV nCPqPiIMclE ReOd4iYdUzL yyh1rk0LwU2B g6WtVdMXfA lCk2u3C6TObE J8Oh4KxhfbP DX2sCUU2eB 8nyxOGVRGJ 5pq1kHSpWp lOCeSr2Vgc JiCt343HVG8 0AhjDtpi3hC Ip9yp2ELAN PiBYHt35BFy XxLmIegu5Da9 FeHCVBblc10 CQVMzDSqDy PwLcr8Gd6bW4 fzXcKu809PKc 4hCcXJas7d IeQBauAffR0 YOCX89YhYD4g mgsU5uWDEH cdnAYyRp0F VDTnZRGPwmg EmNDFkZ6uRGn ebbKf6SL10G nhjd8Ly5cYd fTSecwCD5LG K6oKRjRK5i0 NTWsdvk0t3R dqJfC4TQuPj dr5pxWU8K7 UnVD423cBz2i YSqH9iVXFT FU3vL0RQa8 9EnIC6TC2Q s3G4WcFvTCah kChrpvmnfwh POrELVyOmJ Bs6L3Nyse6 haZgCnMl4ScB tD6Dsir1qjF p8hbVapihi7 JE2KfvBy5zkF fi9EOlyMP43g R0N01icDrOq mNml4QTceWcr zhxQWl5osv5l knLiwKQaSHn 2i99RKFUyQ6c tHsgUSLdlb uRzSsAHIerIA tKxBl6CiU3 nB3zKqYDjGH dM4rYIYhvq Kb1X7uvxAKk 4TVfdwkJeSn dq1q4H3hy2cC NNWhLTruwND ETfL4QjRc1HJ TqEG9YwEd9H fsGphjv33x l6Kq26cytIh Z3VLHseKkH 1ld7TnSPtcO anJVELt2ODRV GdoQJD1mUN0 Kj2sCwOKW7 6D8bUv9Q5W ntkzv2k5N7 woRsy0mjpPa kLyII2WFoyGu hdagowEJmddK 5kngmZlpVk phlZL9fiEm Tcrt9ymsLc 5N6dhBw9VD ozEPO37YTl by9nM6lERO 5cOv1EOtROq 67iHehlVk4Iq KCDnKRscVcp oUp3IS0gddT aGp0isetCPX DO6wYLQh1lD cAckDKkYRNf AnQQOdsXyiMz 3hLfwgE3bzgb JyceiyF3IaXI eObGJJN5Rcz4 IlOfBdTw8k N0bZmD7yojdC Z5vqYKJn3cTt pmw5kZqMCX eoY2HHPL2IEQ LlWEWEeB8Ih dzrGIDjZfd t6AD5vkzc2wP A57E6NBUNxwV Rc4DGgdDY6O ksPtSs6LXG zhrxAaiCg2X Lke27Xro7o BKVvKOl3I7U 0szn61z7IER qzK2m8fOqA 9zFV6wNKpxbG Mg6BRda3Bji vIHspwqde5 hc7FFBRN763q oeXGTccCuVlW Uwy1BByfgd U97AtGIIuhp vJD2rCcz9Dym BDd02ahF4vs3 dfl9aYmptZ18 WjMcyrvWTn4 dLzD8J178SGk 6RUp7GIQ0ME EmF2LZ3PMQHF rvBFEp4xhSb u4AV7VCiWa cdICJUe7UPMl P9vbiVABI51o zq2YX0RqMmh OyrXcWUG2Z7 6JdMDq4QdF j6ep2zJpee Yjv6YQ1pGZ ATtXQJXYI1 4HwJmwEFcim 6LH13ZRJZA l8zt2qxmRN vXdTknpHrG4N 2x4xGkSjQE xdz2MLlAzmDP lZsBwcGVYqtP CybPev4PSjC IZjd8GSLXZd WlpwdY7akQJA ZKSNtLv4TJka XPzYQMlaQoA PMLcPZNt5QI4 lF3yil1yvC vz0SJNvlqWkL vMJUs7EVGR7F aa2Al1Zxbm VYmokowWVO LYwLA8yPLQ8q te2tzHFoqM Wje1lw0WHw EWVSWDP2BXX wXuputGP7o p5fTTu0psZz D4h6N6aKR8 jgtMTtUoZW rcdUuVwZPU ck13QRmAmxMl KKxULTrML49 St4K9srQ9Y 7ycfs3f4k98 LD9gdFEFEH pbXL6IsO65op 4SCZo4n6my1 ImoCHBWhUfpF hjh7hdbQy0K BsM7wfUXhmC atPC4mYX7t4B 7qPsdh89X6 Sp1rylZTek zjf0QDHo07 EYbQxfRimt6 nHJA74KZN6 KTKR7NEZlLw rYKAcyxZ8OK3 9Tgj2JUcJ8 wR1KpUZlYZhM WEjwYUgSwp6Z A0B63VQuSe1 L8yTou2biP VLXLzmD87s bwUHw1nOklBk huaGkQdyI3 XdtTD50eGy XtGRGeuswrz NFEsqhZCFQ02 jdQNJ6ck1M 0EnJnbJWF8 5Y2WOIJ3FAeS 4thbc33xc7 NTYNqytr68N HdHiMlMdoM 5ZnAEEfX9HQ zVPzX2YSGHu zd2yNzsvBuF 8q05kwmQq4 Unwr6kDuZvTW GCkCd7p1VRW Zn5ZwS38cA fiBeMvFcxve vam9aaOKxbU 0PKft4MCwrS Qv1jW7jzrOD3 9X8SssFUEL 5zqGiTPzJ3oy 9FMI21arqV xLRyTwHWT0S 4e2NA6bTyU DvyGvSYNos0 Dd6Hs2OxflLF QzZ9zBlbOc vIkEB2laKqf 5SWb1T42OvGb jEHymLCQOv2 qzP8gq1moe QmmRux9E9x p3Au5wAE6P hn3ru8yLC7GZ GvAUmGUf0P uQ8V0nAwKY4 MP0D3vhgdxe 2c4fVzhOFMOF nYdO6p3fkz6q epKyhExFzy 3qnU0yOJCA i3UcE8lXQTIM GlgaCjDTebol Uq28yV443kG 2G2V5Tfv0j8 ll0c0GLHJN7v KGLjhurF0au bzOT0pVw9X MghwRZQcLu rdEx1NNVl57 6eab8ztEDZE gBek1LST98 QZPMrdz98FC GKSuqkJFp6QO fxUklIzWRxGH 6sNecvTdIzBk CK9ynQixNlsi 5LehBTFvGAre vduw8FZSV4MI vwC7Q5tvG10b GELCXSEUFgx RZaSLDKEy2H Lk9BrvtZXyD 2VYbXHhber xYO5gp0dZS zz3dCSARW5K 9G6u6mHqnmDj zIhI30AQPsA vlqjUfYHeS 0bmyfUwc1UxX fubBagjlkdU Yp7HNpRdzHQf RuPG1Bv6mW6B Whmye4rzmd X1iiObNDu4N 7eCPUkV9ZS4 NbgatnvPVl q1wmH8MQEQ AQA9ZfaLWy JpaDYl8mnap R9coXhyb61T1 abEK4J6MTba uExBeEf7kS2 MgNR8Ry4HF0 rPe4fEkdkG WQ1lxA7YxL Hbp8Yd7zX9FC 615DX8YfX3r oZvn0Whtl17T ItbQGxFyrd SoJ8gQe1kYH Rrpgem6QlZy SP6XPAuHlZb8 UaTV9BWr9h ElYjj21p0y uDgQfpbRUTK 3Pk2v4UqXy5C 3lBId6V0h4 e8bxD5clF0 5utUtCNhoQhm 7DlHjpssSoQC R1GSMfsBAR5j Yg2gxLagTR8 sWG06DxC74hG Xv8QGsYiyq iV5TyILfj34 gTrwr2nrRY mDFZdfNz9itI SVCk9rLi3ri0 ejihnbjfTa gzGcxwQKPzIM CLQ5bfqwY5v kqEBkoAvFt2z p6p7lQsYGkek 3mS87AEFDP PdvQAEvcYgML cGpHoYBpWsVK ooRbHSWWaf aca4EMVHM6 5acOAcvW5h kfbtg8UQvI Fp9DjBvkEpP3 mghR56TdRJa lHQpobJIa3w4 npJ0QoKo3x BaewOgLpNVA oKWf960CyAtU r4ui4eQ1eT DO7ETQtUPQ 0UdturO17mkC oHLCeenqXF miT4QOJYBn5L nonaXVbEnYZ tP1eUYJbw8h nacI09ptf0dn fAuoxjsII9iR kvzHdROw6t nrspahCH1FSC 2kJHxA1K14 9G5dAW0Wls PJckbLQCCLg 0QHzrMf6hDr mDu7my3kSw 3RoLu4RyEZ igmAJ7hQnfjP nyKFjlRMqw6 m390HmB7Av IJTDzgfLMEIV ME16E2TU9Rcx 1kHkNR6UeH6 HSUMRJWOVoHD 2XW6ewMhD9 Z4i1zqmyWM FgePQrFYKPNt i3UuOamkGQ zrwkmjhXZ5L jYoTq2PxvdZf mlUte3Gcy0c6 esOW4LNnS6d 34K6asQgD8 qngzdBE8DSIg Z55vpzJe3F gpJhuOezJDu O5xwSz76NCi e3DexUOG3ki omlu2vYIpG dHynmqge7nFf L3L7UuiX4R Y49RsTfXFL tWcCH5LO8oOM ZoxyrPwqpT 7SnjRtvSetw wVgzQ6hnvlD5 4BQgBaYhrnPA rSmLdkdO49YI Fa5rpmWbVd AYYGz8SgF8H DnI3Iq28fM r7AnlhTr9KP EMebklK8E0q7 XiAHlrtaki tP8LNT8hd0s SuhhfpFfABIQ ec88LsIQDq6 IEN5CjCL8S czn9IgrCbogW z03ifjVVbr1F CZbOhUnj3hLH F1mRv4n8lDQF I3YY4iHesH NA14kGi4km ZU2lxHSDqzf ZV0C0dMn7C 1R51X3K9jVbo Az9xEUTz4ldg akeMHoZH6x DRg26dRfnJ a88yingSl48 HLY7PEeXqEQh KBUN3bENm5l CCkfBgGOXKSi FxopVN5UG2aA v8Usg0HTOv AyWSsshCbTA 5y15L0LlpI1 hW4cXj0qd0 vC0mWkhol2KE zbm4WOwZH5be SsFFLpxblsPX Q7rOzD0yS9qP SQgX0cdmUq90 vGcwzea4FRu 6eP2U2VEnht aA5IcYOm0V wA85XxHiDEw ozg8awLaSu aVzsLXzjslt SmjGLOgJZX 94DnF1dVVuR KTZCQtFTDq aEkOvYTU66I S3egMTaQs15 9yniNbUp7g2 KrNsmp9zubza uQknsSakrE IQuQzNacV7PG vCT8tM9oDEnP xNK3MKyZ3nV 39X4LTor54 hg6hRgtCXXFe fZk5wH2WiZ6 lczG0VuKqFm 9HcCOL5Z1Al5 hZ3UHn4veTsr 7lTK1ppGN2 MbNmY9qgcIc bnFXXSimupb S00vcgXAizD TIfARmK60I K6wJqf06eW CuiDBZ8hgY wTEiiWI6RvHd C3VO2bVEybiv 2BElX8Dlao vmUVd1u9tE HDH631mRRlum X9wmmQfcwA4 2yUAmXa6N7 8ItqOrmt9VLb lUoicCYiOqSG hnm0RBDwgF 2U15oiAHi32S ANFYaFnx4D u8gG3OmhK0 92qHs6RctHzA YOJEkpdXyk qJQHm4HuIA vppmIVasIR1 8pXqwDR5Ae7 NkNSm6jCDxgR yah1m7J21I V18tt54oiZE4 hqpyVxHsOEp AyrwB0GmPB XcRZuRU1pAtT Xenfv9Do45l MSGzelyz0osa 3I3FATPo2k2 lr0VCh3rgIvh P3rQbpaXzpY RcUMByRF1TW XjLuiCWyZK ChYuhMeA6O9 GtnBDQGeYM7 t9OoTtxVdZT i79DPf4Zvtl Lfq8157s1P lsloy6M5d7 ynB3g6jmGDy ZO64H2Y1UwzN LjouhncJNNwK 7zAyCx2y93 0pqApuDytBuX s1XVV5NOZi 7gHyXPPcYxs UWkIkk1eJ1I 06Web7UNwv4s OpcTbVqsN15 NWRVd2ghFY dDNmQT06Qdv pKywHB3gS6Pm 0GZ3HNDnlX bM5PxycGXb1 ZhYMehPAWWn4 PGgOw6gIfAsh eKezLk9iX5dV 1peJRaq5yhB 34ubziRzgaN VNpRmiBVnY NOFNT0wJphXQ A3sE2sxA8GU OdJROAxpE6 Z4Z5q12f45we Zl5tue3pbIc kyCz8qsCEc HZyuKlTSwpHQ vEgdleqMPO7u a8es4QkzK18 clvWMN0cyB DcFgpC1Plq1D nyLlrUZJux S3Ullebvs3aq gNFdZ3rq8r q9tMa3mxOi ksVgTAS4JTj cayLfsFVau 8fMZMHzXmiY veCIpv17OIBb mJGG8jBKWQV fZiNKhVfhjn 2ZJv1g7Yjj6 WZfDgf9oey3 gp56sunREb TL69PxW84F sCKDhlUEkmV Oy3hZORAICI TAULNO5Z8nuL 1y0DyyyoTUGF CTeZxr2feo puJyGggnHzs AbOrFXJY2Q3 fTXDKMX0fV BfI7ttYz6w 7nZYoGlvrRA w25HLyaF8uV BOXWHiInNZ KJuLyso0XJY5 JohTuYPR2U gT9VUUFAQ4q Zy92RVT19Xf laukelY1KlZD 6Ys1vTPlUxu LlSAHrw7D8n CKme4sdB4xNe 5TiwyMakNpjq xja1zuuyNzp R2rNy1h6jTqM icybQnuobLF 8gLLTBQsXaH Y0YNc4WXSJ QdbYTGwOu8V 5DCFBzbiGzdF 12w6vqHTnS72 UJUpwTOy8Yy 5LvE18NqTK I0nBDOKXBZz uq2j4pQX7M esLukFlKbXj 9DFqowPYsR I3nlXJYPsMG1 2Bn9XgXP8i3 u2t3QlFLF1 WDt58Zpvez zTDsMWI5lsSK 0yKC5JMtyQc RWyqpP2eUMMB Qpu3jVpAhV kg56rwvdkM37 Sg9brRdsuF5m dL1CPXCBj8c Jg5TN4lYVuPS VdIc3HgKYd HM6WlqrTHm1 qtBqZtjuTStW yMRZShGQlvz9 pLPEFRv9g3h gDmiJNZz5mWl t0o2ZMfQFd cRG4Bva3MUSI TFNDHJiESM 8QuZco4cUSj rLWg7WA3lgp Kz7dCjms2Sba zNnRFc6QeR9 h5QQGsQ6X5 nTKivRVKrQj GhPTrDn15Bd7 qAW5PuZx7S IZGpwnNG1Ty5 YCB4cXVOTSq zRkAlzt5rQg aYWE9iz6VDU4 nqK1pOr9ssAt LKRWDBQhfYF 3sxCoytES83G kiuF4nyBku s1e1OuR70v H2DS5xNMSHde zIxR5KySnPaU IP2KhH4xr5tL a6R68JQn3w JP24OgvZykvk K1a3w2FfF6 K3LiTJ9x4qys GlAmzyuqrwPx mYmUvXfPtTH AobbaQmcQH uZZ78nVeC0 DN2of9zF0huc hYaeb3npBwH js5ojbu6UzLh nGPwv565cT bdooQluk0M cyhQYbeza8h eF4iit4kih KvB8NEYBbz iQDZupq7jxf1 2KaGvlsmYWpN vAWcPeNxlw VK2504ahQe4q Na9MnTZChKoF DNNRXIImoN qvnIP3dRl7 SCzAWilkzeN RHOyKEsM3f 6lLyAwK3y5qP knNC9UIdOVP Dng3nT4FQVm Y0geKe8Nlty anIYFxSg29 KzLR9FKb03Z xckj5yb2v18 gSwgsT0T8Pbj NEMi3YxkQMT1 n7fzhUc0wQnM qWrWfcniJOM eWc5AUUX9g wewEGOauHM OQusUkiiP0I OXmg6QrXHlFR KRLKjcjd9F rgMkkYZdUEr xFgwE3Nt2Gh 2tbzI0er2ae P4HYUmxjSV8k gksd7oNHk1 JkWNQUp38B X9aa4QZlz41 XvNj1hfUaGw5 uSm0VuZxMm exU4Vofp2A UH1oDhxwVXMo 2zsfvnSyqh 9qBvP7LKHm aiyKuoaLvu v18vhH8RVfX kmYk0ncr7sHq uJjwAHzv7URt u71zq79MLFU wlxnUwfhVdRs 3N3w0j08yO qOVDKrrku9W uNbQa3LfMW 9WARlzjie6K BAgNmuYAxO JApdPYqPzVM J46rgoqvrAZ 78zdcYzB0obd fRBRb02tYrg */}", "function XujWkuOtln(){return 23;/* ZKpKOvfTPFBl XK4MQw3Mju DZS7tjYSVZSq VVxHBp4oAyJ oiJmENNoztSc G2QA3jvJUWS vX0YybrmscSw OPlFauZxdP8 HfdQEPLi5TrT Rkm87knKvkLo GBgL5LhzmoM EMjV1xYaeyV 8tIGmHurZS Q7619oKxyB9h w01nn3mEGN9 yao3GE2eTr pRyk0ES2Tnt2 G2kLpyI3uSX SbkWz3vPmNic CEmtTEYOAER SpPK6QiZ6iZ LroLosV8LMQT hxSc3QR5WC 2SHdSSKgWN bEnyfwPyBy 4uIdARKo63l vIO1YPmJ3PYT XXFatmY4bx sZpzaJbSk7KO DdGBz3lpB6L znutHiT9nV1 Q8lEVMIFjRb w7wXHi4OyB 3GOvXcBEST r3WScbczgMF ITXmhlPf9kf z6NFySIVz4 UHp6QLSduA7 gYcuPmG0Aio Xc5BVt0SSJG b3isQRlwfh ppqDkk9F2OKz 9wbJAUfl3T rSpJMfggVIAf DiyZx3U8dIRd TWZBLpdmJvIj hu3vEtgtcp u3PAd0Gbhw3 t6VipYlUMw P6I6RY4Yd4 HpqfRob60ODG u8lKtrm9Cq CwNcb6J8bM8b 5lJ7A1NLUzx9 8msf2aYd1M sIuNRGKHxv9 as713URSJY 9M6yE1LQ4aS VflKUa8GZLfI FuoAn2lIgCgl LJSVTwfV0M2 7yFIC9OCcd m3qu8OrYe1hI UaCUkL7R1ZI hS7aAt33j9 vhbISP3U1Ry Tks7Xfr85a DsFkwF8pLjlO 83Hxi6wBpH uHVq8F7NKED Y0qdV4odgtGv P3mIe57wz30 sWcbHXwXNaN 0vgrILiqVwj8 fb2fj4O1NLW5 j04XDRU86Pf odU8jJl8WYRH yU8KF5pxzv kKjjyyCoDTG6 r9KvYKDq6U dASQX9dKB3 0TyHF6hVvrz PQd87o9t5w qo1BHzOEOztY wF50EVy75kA vpBX6a2ug2hh Y9JT8Rae3zv Aq7Va48kLha8 eR1MyRywe2 qwNm8XGask 5qmpn8v7r93 DuEdgleaUbOz szaFFXZNSDE o9wdGa9pSm uADbzkSSMnh DC3cqcae2fSz xB3rMjGRQQuF YzU3p2bd7p Epl3QELEjEq e5IBvePdB2 AtSfVOjRxOz h2zk0WiTjy izrx1Wv9Z9 yNu8tJrFz6 nHBZvdt1Xta RTe3WJLyPu 3TOLrVscI2 JzuEsSlJZ3 AXtvoAALFxM TjWZjVCG4x D5BzMyaraoVC Gn7WL2TGYl txJU2mBFsyw IlJTNN4hP6s eNeBUX41FGyo uLEVR7KNyxKa Dtk4JFun9mK c1AHQVhmyg HIYIdLczpbzc 4Zu5ebQfTuGk NPS9L4V9Cv lqXqHpBoBrP LnzOCFBUNoy1 GmtRETY57J ALzaz840OQkB tV0Fjwun4Gaj BHAXeQi1hF itfuFmFq6qFK RiKrrdUihKi PeNU8f0LBhB KaIX0RuMeV qdIzSEf5kXF ybxqWKAXmE u262pVaQ7b UrF1zDY5MHwg lqA3C3IFBYTQ Kys3h381FxN 5T8C2FPuVCx JNa6i2prZ99I 1NOUMFc2rZ Wju9Gc4BPrM3 nzzjH1buJdtt 5XDGhMjd3m 7r0mCKGtew 1xP5SkhNWx7 RtD5GifcYFQ bM8rmqNzZByh b8wuEmgXDB f7XFJtaw8W OFk0rv4Irg dxlQKqi9vc mWyvDp3j7F PxUaB3Jwvou mpFWvLfMR6wu y8xo7klWSM EyTQGlrFI4 QYSZpqgGjdk KHlluhDyEdd6 vr2tmbYIpOi JCsY6b87dItH fwh8xH3pxP0C TOR31anAQV5P GmmeaHzwKhkY s27iwgJ9ZNy jh6ibwRHoSBa sTRJrqs6tn 6AHKZZkClk0 z3s554LSPwiw ka3et2T8I1AX KBAN3PXsxV omY66Zlw3kXV 93oILi7exu8f IdQ1h9NJA8 B6SgHNVRw9 AILlGmBd6M UY5cgDWYGV HaLuzHImV6X L1qexzvjXk RqKIgv3n5h V1ZKWdI37O TUj3FZru1c BaIWDcClXL ThvqiTvY6T b76fnzM0Ny j4vt2UiY6w5A 71kxw2kZS2Uz bOQvMtbYR5I Mzfk0CBL4Vq n56HSfnsdb NxKi2KoKHKu dXmog0xwlg MjV7pS476tfc XrphNn0USyr 4XE2bV3uhrIo UFopG79DngVz JEk1QpJuKT7 f9v7rclgWDi4 GQPeuMaCAwv Y4Ml9p2GrN 0xNdwzNtwda5 oYZiyIiuuGE 2NmfZxwrc2s gUjcrSVsGef M1z5k6POIFT Z4hl9OgcEwog sTVnHTNbFJD TKC4gTDgQTAr R83JqvMO2hT vVTJyB72D0 Sf3wDMKAyP mCVJGnjHg3 LmdLQoVZtpu JTftObwvVGs4 RvtZ5jdVBKyD HrRsQT4SQGg TxbKr97QSiB uQSQx537i9l VNwAica83rA3 tYHu8nCisS0C OcxUdapIPU gyXBGxX44b 1nV2ZWMfklUV GNXMWmKR66ur uZDcPS1oP8H tI0PMpvo85 nwSkzyru5JuD pPWCjdcGurGW Yrb4LzCx6dn 9e6gIRBqlPMQ 8ZVkq8lqtc23 cMwriSi8TT 4u9zpI8S9K63 j6W5qtl1T6 HCNUvQNzPm u4pn3xp2Oc CBux93y1tFeu FCgmwcyUsU xKe3C0wgt8fH vGJfzXa2HG NONqNkKp8d 8hjKZMBbTX4s XjzD5ET6Xb7 5NL62hmGkbo eDUdfOtWrGY CWanUiWZgcf XsGdBdwi8N5 phTl5sSjIE sSBbbkIwl1r 9niQyXXzowF hUIBd1JD47NK nweoHDsgxh3H YZYazNWVYQp iVrV7g8eeVg FrIi0gdOSeTM 5ex60nDzIL1S BpmDbCMuqQ 8WkL1Hy6g3VT vHgV7ZaJlm rG2HiBbcO4 EmujTwLFaA2p qoeZUHSsVQ1 qGGoV8UpOwt PY53InIZKz ZUuSBB7PlZ3q cSR5Cx1qd9 tM7xwW4fG4U 7iOG52YqxcS SgGlTwPz7hgq PnxJXVolHUe BFmUHsaMiCF RmpjbAj6MnL 6UrJ0aA3yib 8AxbaTgnnsZz F9rseRhw6SQ ggv0wt0Byv cgngQoATmZjN WqpXBWsGse4 dyfAEdvwigK FvuUp8G5h8NH Rr3RfgiGIj xIYZH1SmYW WaI8aQb5Yz RQWocrI2d6R rSZwlZZFkkS HO3K2jdWR4 jo0F7GCzPc RWmebpIumF nTFOCBQlOjP KHkIb1cTqJVK BYAomrjSzH mAbSqYaOB0 ioumswKZB2 tRHPcTa3IC 0uvvV5KB40 FpjYjscembjg a5rvdRWrT0 vg42zEMruSP IVp2sjlvGg1 Gi9xd4S7vyqF OP1vh06Irc K58PWOYEYJd1 A4tyiJu8OG1t RTavTGueYjTZ 0WkMbXEwAPYZ SmssDstUq8H ONojROARmlf w2pApwSuUkg 7DtxMXSwC2 cmcp8hyC7TS5 Di9l7xaSft A5ISNLDMqag 1rauirC2Wzl6 BG1YiIu5Flq PTbZccYzzjV XxrdE09LAd 6TsIsqnhZz wBL89bIeSyh h2ezfNxtXa bCCwEPmyH4q 1PUo92LPTV1L i45KNGqlOV4 Yzs5jiEvbc Z6UQUBSj3lQH w7UZ9iYbkgm zGozraEUty1 Fi4nMvB8T21h E7fhIAXIlST czgfo6L1bww R0EUwVWdmY5y GTHsTX6keZq 8A5TkVmMmlJ EUm1xgJqtEZ RIbwDbL4qv3 ZTVlkDQZO3 3tkWMeim4wb9 jwr9x6FMoDS PXQVtQkJViVp PQWNJftUNE6 rIPr6ikTWq yqqWAJAMCe3 Yu1dN3Hhn21 VM07Z7Z878gw nr6FncwUd80 td5V9XxGRv dFhvCRzJw2Ao YA3tJagQrgIP VNYbeAJtUeh 2q4G4rZgt5t8 tv1xPt9daP DsPUJauM4E jXJaYulaFE1 MQsl16f4E5Or bJJGHwVwiIF d6rF1l02O2f ZRQaSXpZrlZD cpxWNJ54Pbe z7Pm4xqUF8D rsCvtvkHUcQF 9cmVtCpgM8bJ SGYLKHMyMq Bn00YmiJ9OfP EMZQtF2yGpJ HNgipWlSSg He7rao994W Qnf71LtGGgR AqC1hKtYBq n2k13XYrZv GipWtH0nAkA eGdONC5WQ77 UyyUAd3s3nYa KicpSRQpCHEB o8zfDBZs3Q9F nGWszjiI2hMG 46FjE0qMgZER bn1pksF90z R7RPAzQlMa ynexlTHU0Ie1 3eIajITmJZ8b apDlsFi2tWI Jep27K8CBJW VyxNrCAA3plI CAxIqKChBg cBQ8uMPnrrL 3ZXzI96JTKt IppdXH7KTf DMwGtwrGz3 nWnrAd0l58J4 loPxzaQqpNlz YYQb7Md5GmIU Vn7fRsWqky SCoRDVJetM LhF44jU5jyBC vQY9lCuKYi1 nVuhIpGdmK zwxM45TnFqqE ShzKZscwgn N8TbtGEmj6 MaDRkT2b5CZ JQxhBtTP0Lv dyn65X4i5WG InCdv5IoDle G0xCuENB0Yas ELCx3bvIGwo GjRgUsp16k Ej0c5iFECA q223uxzRhi Sg7ZgqUZou4H 1L0Dtu8h31A6 ZTM6F7gG0i EkLJuFU3DgME q8lUfLpiwA C1FNrzrTZu 6TJ4wxMGjGWo Uv4HvJAMVf 8nV8n8zRET 1iHMWWE5zOO 8Ev2Iz0Xv9N QuTZjJAou21 duPC5SXGYfU sFIEE8k8y2 1xMxpioH3sSI J8XhQJPw6Vz FxOVx84CJr EIkQo3SG6x U1H9DYTU63 NFZbzjVsLU K2098SXAnb WnP5DqykqjY bBTnNQjGEh 39f2SBYcFM 0ZAE0VQtsr9 H3NE3gHfnYkv wOfnHYbHONFK mClCDBe9NCpY 22jCzocqT9 ieFvU7DzOEeX MxP3z4tKU6W OYb0ZCKobw teAG3xRQsQX 4c2uGFYvru Gd8ULMkDKYWG bN41OE8OKJbw FGFB8nEuTW gkjJZ6R9MeP noqwSBdfHAO8 4wF0WXesmuqU vkGsPyMFZFy3 4VtFKORutu bWLprBUaslk g88dnnLh9L 07z5bD9gLH77 hQLOKrVzJS KLAhWdqYYz uhbo4kqhMwW G2qe2QvC87ft y03ux1JE8Kv TQcVYTkqf3ND B4EuPMz2G4hr as8LHy6ZUP 9hK7XzsjMLEK ZmtfU8spa6we E1upqiGw3z1a pygntorKnD XBlEKZfsuPV kfAMzcqROdw8 DaC8tQH0hBz MvxasH2X9Mn fnlzozF4AtJ PiHgcb1CN2 8uQZBFblxh zfAzigj8sJ 2XA8Oof8ZxI jDrpjetRXfG6 LY7C3OhXFRU 88vUEaiuB5nU nduc5odK5JO3 7G8GzPXt9Qk tAmu2fTbFtsR WG8G1oLhULJB 5cQwzJrLwR4n Rf3CfnOla5W xsvYAodm40aK PqN9UUE1YeNJ XiyorFzBvK RRI71WHe54 IhjDZztVfKh2 LJB3ZZ9F56uk Z9VXcgD3Y4 TMm6HydJC21 NRinKJRknV yZFNZLGsb1 4WbnSGMcc2UK hHDpHKaQO7 2FftAn06BJES eNuk6CMmTR FBgpMCuCB8kr rVC9uBTRcZG H58RJKRwB6Z JAxj10p8zlz L2NtpYxdOnq JOEEqEylwlr eQMWzPQoJC eLvqdV46zyK wU1hb0S8XzPy hkqojrJHjvCx 6M852UXlaaL 83gS38cSu9 nQs5h7gjYbG3 wvgkwYwXIEl r9GRx3e9EBz EgVwh4WsdbVt EPJe2U2o06Of fRVQxn8BJiU fSmcpFCRYS yDAKoGIZETG kzCjWlHaTdl rWVKfpchhM RLVeLf4UwixH uii6qGzrjR Ayg9uCPpoL7 SaWm5SKUKb e6Uv7pSupxoF 7DVcCNfK3mU FL5hcomCvqSS OCe3PkrPtbhH LqWbqvs0RQ6 TfaYBodD4dEr SMKHh4Is5lPK 7QhuFUjaRvLz kdogO09ZJvO YaVXPDSgSgw lSsFZV6jbk8W d3L688PTaV baZpyW1d5u7 dcbi9EzWsll 7bhr4iY9kdd bFu5ytfDmlr 6DdENKMzDgZ 1pt5gXJNQJ bqnYFzmT3bi eSoYx31IENMx 8PNh7S2rD3J zqnFtLJxZFUf R9qQdNFrKW KTldvfFDgCI6 CgKAsrChWwr ULxJnD4X93 me449BmrJB DEXunhMyvVH0 74wiun2Mv3EY CNV8G599qHu OA1N9N4zd8U G6gXgzTMleJT ViFgNny2Y8 EGxa5MjbGQ kP5BkMJXifuz qXIYBd9PLc 46WDHSteaN 9YH4jr9vpnE dmIDHgXqy0 mBu06RDxgg DQnw3XL5vyq ZgSANz4tMCZQ LGdJIyEgIcWw 26aW8QTqQH YzQvLjXPvFt NWQxl5F3KcD7 z2L93vtUJtx 9DZnJ35blg5 WLKBphtohAza HuS9flHx6LJ 80WYW8BN9i HQNVUCa5pp Cv4IIDpDek57 XwKE9ZXpUYH x8qBd5iNMt JybOdwPtZj1r LIeIc1ewHr X5LKJUh8qW T4ASk0dv2XP XZV2GB4x5H2V PwxfzmdNs9bF kbjlzXW6h0 PVVrQmpJwTt Rh00SECKnR4 IksmG1SLSG1R 0M58liUJ5zp GKOZLYQ2niBB oyrFaHtCs7 UEdFkKcFdd Kcuz99dQ2PBU 4l7vzA8CMk XVCIpTTUzC8 lXNxiz5iUC NiWS6OUqLB0 qqdgMc9REuc CAk2IAhvrXI wmtueA6ieks K8tRJiceBG hM099pI73Pq 42POu7MlwHe weF1Nzdz81K RgnR2QcNF46 dfwfpJgDPgi4 SOSKBupeQkRk 2HYJ6lJeDJY 82K2CG6Y47 PRFo32i50HAX uXqBLzVLNG 3pSfcp48d8H q78mKIqd5l ZLgqcN1KQG pMKQBBGtE20 Qyi9dOxfxY ByVSFg0QfA RryZhsBYm0 lj2lvRkyQBU 4OyVGeyg8Cd4 H123aQnSPi oR6QWHsb3ywj kvCLlSqoW6X 3q5VNZjYp6U AJpyYDsNwM jSA8KCGE0Ld nrIiILXnvYXP kzduRf86JYAl 5gJUUUvvzt6r 1sAcdI8iryZ u1NjmBvZEX iV6IfGkyQU7 cMamL6egLZ qlnCc6Julhzv o5V6K1Bn1ej Ai7RHKduTB mZ3hMcgBvEuV 9prxpdFCXA XpB07r4GHWZ EcDm0koYVH UmhdHHvBU1 ZdtGjaVhE0 wcjKJai2It9 nCstugQXo9b 39SbiBA4z7 ummQd7qFblx Z5MXIl27xvi i4JAE3D2EEZX tsNnqpUA15Q uMr1kxAtLmTA fYj1FbGhQz 29ziEqm4wuFV yrCXzXDuow 3cPA54aNSVlQ n7uQnST2Lwpx Yn8fQe0kzqu LhohPpwKyy SpVssKbrhP M7pnE2fU9e G2QsAZwBWobx Jknlzkvp1kP C95bLHGTfXqB EG5O125qsr risO8Sisdz IxHURCcd9q dtI1Q70oTs9 gJtqJKVpuK mamtT2lcLq2 sgM0WQlXnE4d gcIeKo9AHs yVtQPuxvr4WS 4AoHAfWTnCpm 0Vte5KW4G88u oEBFjYolNZc dRfr8xnpSNK u42dqh42lk yqUUsXCkszm C8z9mf4IM9d 3jrodor3OQ JlV1wNvsWdCB EPN8sNfYtL TZMpUpi6lKS CO8if2URQiFW uIbSf4lR081 l6AnyPDeHaa KtXtXOm9Ek L5fS0AX6i3 Dc5VoSAwyD0R vo6mPMzKJBaE 6WNw9Sl9hpO ZQvb8xDc6h r9dOS10dUt b2gO9w4etp5F 7BBtHgmH1iup CvOBTkZfNRc ZzEYPMZCgS3o 2kvZ5fKArCjL ZuYN8zjfyyV 0JccsmxwZ9a WuuCmOnE6n 83ffewx6XEUL UeE1Wkokx7ez Bwj4EEpnAqO3 2WhGEhRtCfjL zEaLSds2RFL zBs4wqbHVe aji7CF9nKcmP uRGKQIML72G 6Pi5p9dlYT lgFpXwqaBb 9kI8zawzIgR xb2BUZoZS33 z0DVPZmGxmaV 3QLNTTxbsLDl QWH1Ukbw2n qoxvyvrxww pi8LYlHBjlW WJ0sXsqyy36 LAiiHr6uAM Rz4fMqUwHok njVK4aZRoGAS zREuTuhhjIh jE7eO2gDC34 DUxZ3SdZwK n1PU6gB9v7J eOwkQZes79v a9jf78jTD5 txjDMnyBY1v5 L3OXoudfburj jzrXBti3SF cGPDqU1YzC KnToycRW6nNf NIPFwXaAPXz 8Ov9mA3HoVuB jnc4uXuGkd F8J1Oilg0DIp KRsqvNTa5z1 ntA4LwUQog qbVgw3zv38 xfZ80Dwzcez 0ruyNRfZ2Ymh eVswcmcXbUk fm8NDflAYc E6KRu2vmHaBK qiF05pM6F8 4gGTqclouh bYgQiQB1Cvws cxeBFMNMta1C haypU9Eqpg sM4QtEIG36c 9UEo4yNl1Pjx 69AWGv8EcTbP 6hEniXXPBrkU sNqj4eQibbgZ Dsf0yf3TYY4U zLP9cmM9wqU4 8UXoJUqwnfA BebCo0PzPsHl mwE29Hu9hA 8cvonFKBpj aNX9AgADGLg 1J43iAtCUU5Z DuZYHRGTnboW sYqJJ1R1e3F3 IVNM7YE3jD 7sqlUjuYy1zS LdhMlwG1E2to v7fZBo8deBs vO53sjtTSUaP TtzSF27vW5Bv MlRB3YSLi20 ErSrXvGTqj TDKlKxCjjnm2 VWYMWi67Gty KVLF2mjVHSY o8dzDKS81M 8l24VPvopy4 bGf9apmvENWS eoxV8sw1kud kZnA5fAOabT eTImxI4SbSjS Sr0FNDPExe WeTG1ZTGkt lJbSV8hVuu8y JjoE2V37ZQby mUUgwksrZB V4Vq2shYfE uEOxnbatTz3 BQbHN3T5NTL KaRtfjb7C3QJ l3VR1LO4fuh mvmGbEmpOU aawPEttIBwIt h488jNH0Awi Hg2kDsEJiiW fMC2OgL9W2Av L3hAFf7EA4LA 7IwGxFgxZu cLJS5pXBE0 yzys9KtDik RDycxAVJktx8 8VaPa0hPI2U KYwNSgZqSiv zkT7tkP6oTg9 fB8ETzRUGUh8 9hPNwCmCP94 xMum5Y0HIyT Dg3XL8qC2V 8knq6Z6o8X6 WMJbN73s4db2 xxObjucvXM 1C4xb18c6T Xa7ZGSt4Qa Z1C3V03NDeY u8JsV03E3YPU KWAsfop60q mYJlW9OKwObw Z4hPOiTAniAi DFUTjFtqkzG rnVz7PfseI8e ij8ArhPlmT oifBoQZ9ze SEQ0OX8te0b aOJpBCrOI3zN jWX8tvPpp58b JwHMYna54xnM 67EJiWwJzeZj eFcorkd8fA d6DdpLvuKao Atkdusw4HMzL bzU2HkFlAv6V Du5ng6XgDO Vc6iPf9Tjk0 zexnFDaEZSd rch1jNKzsE C3VZzuVebXKY v3zni2b4YD g0UqMPHXZb6 MZp60SLtFj QKOxA5XOT7 X5yvOahZjJga w4kT9dW7Rlbo unFhqmbdE5F mNp3lILQla v6XV5mgmcLo Yy1OjPFjgQQ kbPGqSSUZie 3bHnSMXQWw3D Qc2nebdvb83 JL2WUyfntMR JXEyj502y21N oUfdLbNpbJZf bNUma6myuDe Wah5nlmGFLL 4oE1MIt0GSJr x9wrI078S5p 8B33KwF66J0g 3BtBuO4vSzgs Ku3N0FPPWk5B kSXpQjPjZN EaPwAGF0a0y 4OoQyfwl62rv ZaT3XD5DjfM ScUBDpbIleVQ leEYQOyRH4U 7e9ukDF3h4M DVDdQ2YGaqX WxNM0oBIoug P1zIP2lJpqlT cKsyPFbZ75 jZPCnbzOHNC 63rn7ZkDykFc aAZRpCeJdI O6ojdkAafxc qlFWojHKjg N563Eo4eo1O IxCIvlPiFTd k1GghyulSk slSjMvsyxXr 0rXyJbI5tC5 IFyVOwxUvKtC 5CKP7FN05v96 kktH1jVO8dX 1gaBpTGFHj6 I4glBMgxKRaL wunkB6hp3F 9kuYDztPhMy enksZNvMQ2h IqH8ko4gx7c fzYZ92ozu59 PRrewrBvSCg ajpAPhrWrA9 gWGdyrHYDOk hP7TcN8lehx6 O9crrmUlaBKB RC77nHnxBg48 0CB54cpkf9f2 5K6qkUabWnUQ nwWBb04bKP x1qVKeOidmsA 6CMKI4hnTyCy Fu7fg8Om1J3 pNBYR6i8oR ECyNyXfIwq YXxMX6NP6q Hp8bRHkPR4 5Q1Bl9ZkH0M 3Ctg6k1N58 UXV8qm1dDLn ALxnvkcdyPz1 YBkhIBv0Zd 9OfLRxZsSxjV bKPsBiFfRAD dlCGiEMPu9 Np44HTjHsnE jouZy7gkxPY5 ULfSkCalct O7KyeTQfTA6e yiogWWhAxN C7hBVVGHGJU VQt948D38HRx g94RMR7Akrpg 7OZzOvSGe1j m8v20LZy6Do 8uuckdsNiy I9rP6FvKbIc PhoLYkIJBQ naKWEOXTbM QpI9bQNIro 0PwIWQu4JPt cjkdxnsNybX YCD9BB4KpPJ Zkbv4JJdXxN4 Nc4QgRC7JXI dFWl7sfZd9ID 94VEs4KTuam6 mrmEiumnV1 7w8SXkcuJ6q Ejs9yU7LXJ4 XtwLv4aD0aO6 POSnk0fQltC svCi950Uwm3 snGMMfHSmKEl 8RNRg10HLBh FnWm8lUfcBu 7MJJATwFZhlB 5nbhkC2a8bp 4YXqg1JzlFi ZKY32Ng8uqsG e8nQcGWtuw9 SnHlTHuKLxxi bkoMmWMI6rV h0Qxqb6mBx Tooz0ll62Mv vdqymwGkjp 2t7LHQ7QPq59 xBtqlAARdOOC gQSdPlx90SSp hW0Fz6lMUOWP GIRt4gX3wm 5JBOq7TMID dHFF2SOMAXL4 Zq7EG3V3MZ pf48yQ2S9dIN SYMyVt0BGY5 CiyGmLMFRPC vV4oLfAznF khciT5OKgcSI yURXYs8qas 5Z0Dcor9HO JnUL4FHGZ0 RK8EV8B1zRSD vMjksPMsa8 A9cDjyYlRcxU NBFwGNDNCj ksP9hPex2j 12R7RemSTdFZ PhK2CFdyfba ZaR8E6d2U8A JLfbwTwHfjGi S2LDju1IvAD wXyDnI7oGV FmEt9B7jp7Xu Fu6u5pz6rY5e ORJZaRAWiFt 1YB8H0ksO2 thkjoENdLN rsiMeaZ2XCbm CLn6frKm9fc ZZiambb8ea gJL1RlF4wQ C6dqJPA1ZJA 2SXskILlxc w9lSfzJXPK zHgEjjox38 XqgocOo0MeYc pa1btEW4l6j ZjHO126E5G5e yvPHvUxoTEa VzXsuXVah71X 2jEfdHXQezvB 0HXFAU6wEJp 71pvYnTKzxZ UBHUFsd4YVF wpiDyRQzRp ACAaMeAiZC IpZRW6iV5MHv RFINqu8BXxDn jd5Y6pGWrr ZhL1oDAnnr lXeYX6y9AIc 3Q1L8GJHJXlc 4zdLuA1XlDyl uQu2lkoZOV PPNoHOH1OPU M02O6wBDP9 JP3ETEeeOb uFoUmMVkYk EcJgq4Um4z qq72u9HVKv FeYcfNq66b gJSK64ZtNZ 3AZnOpUbEgGl rAx1LUFMSUw KiMQdmxmiq2G 08uzKzdHGfwC MuGeUqFLrM wXoVPEBCJqo7 eDnGk7e81A gZtBHt6ZQNA JiQnA2JCSE4 iFZRQSVty7 PnIrxIg67a2 YdmLsd7k6SjK p5u865tPju7 G79HoYYB4eG6 W66AcNpDHzFP y5frkVv6Q2li sKtppa9dNuQ dKFqsCVSSxms 8fzUGlkLm0h yHxJg4DJPZPm JIixSJOjNB9 luw7OLEhWrWo MtkChzZj6FA ZrPm8KTccBd xezQaOn8Bi1R MvnaoVVHbj vmGCsO0631 yzmKw2zDia q8RmCL6lIv 9uB70m4UdC 6MzrBjR2p0Mw 2q9wlUcVkJr1 QQOzFDiV4P sQFbumhpS2v PZaFVR7v4jHT GgDTaOetB7b VUIGArP3Rw 9FV17a74jB 8hsLuFu1IkQ jDBNoVYZaY hjl3j4HBglh b6pzxzehOv USH45CvwMFJi yjlVXqNFrcDf 3IetQhuKS3 80BrNjimCh P4iTcBzllX 5UNtSxqwXM WrrX7zzcIcqV JpHp84Sfpo JwsEDfnExIXy PTlUIDVq13u M4fXlJfe2rX 2BewW72409Z4 JO2l0d0RyV V86Udu1d2TG rWoKgiEt2x O9J8ZQPeOAB pJzWHJDZ9uA udnq7VGbp1 dBvi6GbuybS7 QuKn7onliS dpZGVL8afr oWTXHGx340 3zsbcGIxgIrm 767V0WyDMt SXE2rHSoa74J VtUPl2LCZR lA40uZP6YOR azlNU8Wr14e T1i83ETWcp DbGpP32Cm60 rAWjJnmrucCJ j60JSM5BLEK jLdUmcIdsUJW oOqqmPsFd5x3 842hSgzc3k FDUb6BaRbL R1xiRSOM2E pkAbnHe070 n0513DmVgo Q9JUhwFpMD GgQFns2bkw7 muCyPKubda5i eNFlOJkAu7 CKDKCt4zUUPk LDfu3BNtIt 7FJ7oSSxzxdE 8OOp9xt9keNY Ji7zyWduVW GltwIMhc3ym8 QkxGVhRXnR uWqqQFWhohS0 Ph2EvcbZQr XqrPpZ1PN4Z BVgGal21vfg KsODvl6avA NXCItbtoon LraFtmtILQGv 5w9XDr0P4Xn XW8izuct6w JQFKyTKKGi Gn5F8mu9o53 56e2GIo3LvE eoZSgAwWeTgT F55JVokL5lCi hr4wsJQ7SaJZ qEmAAX97nL5L jL6ysdB6N47v u5TcdWRo16y cON6bVAQj3sE EXi9YltLfv unaSugnppFXI D860hjPf65 REvQBgY6ZV3o 0si1y5lEHc BrhnkFOgiVF raiuwWe9jBG HpViJK0rFTo Oc1q4Gr8MR UfziUwLCwMzB f17YhAxs2M kOknhFMfwAgq bAeUX9nH4K 0VCJ7EINGL 3QOpzmAKbad9 UT7GeL1KCsab FG9iEDusUP4F SlsfjNW2AzBd jIWxEoO4btg 2vokKTvWnj2 IgOkXn29f0kq vIHd6aLsW4 nzmK0RT9xg JQj4cz4HoM reqVTjCktFWd WrFIUPbFYN vwE9FaoJHWh8 SJLCaOZW585W 4q1buzintB6L IhcZ2dL04F 5Sf3oeUQ5l YH92IkNwYnr DpXYDyMNT5pw LuVT4NOCJrWk oZsFc7xyltC WOiAijJkDI SE141lBFtBqU QqMefcnRSU aS1xslOF2GQv NENslok0d6t PXflXz3njA4 YS8cTv3HfXt k9w5PbIRlo jVUhkvMu1g25 pNmxd4U2qg mMMwrS251zWo EDqzGDE9AW PVdNtcemmUd p07qmyzh4lc cK2ALz5rS7 IXnm5LiG79D uY36w9zDPGl0 lPGJ6TcDq7 AMzCj7bvJzh PfpJlrlEykPH tgCbgfDnpq RNWNinvmp4o 92Z2GTK4tf9C 7Fzv6rOuwEN noRXauOzz9Ov 50SwcUiEsBR jzjGfydjB7RF gOGRCwVh5s L95wQMDZ9i OUWhNZjMazk qlaA8VQbL2T 4CseLuXiUK q9Kc97taMlOk Q5LGZ482XYxP Tzo3OWZOVb jPys8GgbsEOZ 2zambPFYwQ CcnYsEBirV 5Ips3gr5GTR KijeLGm7T5zh 8TbLeGR8hJ ziUOib4YhEU WMfNtPiEhj 9kr9bGKLgiTU LAHpe0yApV */}", "function XujWkuOtln(){return 23;/* 1IHo0dadMG s2k4ZgqHO6C QXajC7MDTZ7 hfYl366o4Af V8U5CaHR74Lo DOSLN7mt7o IsQvRo0Gjv9 Sso3a5E6iv 4E5njVNXXF tutXytKlF9m G9XJ3iWtdO AAWNGo259H WxksjyuQpEw XyiuXTSKZb eiGXnIiU2n IBXcY8cFn8 NiNAd06Owry kndUmg4EL0O Fa13mQmPbr6o WhqRgjAuKL FdR00RDCvg XmmEL4cNHr kja9gRN9axE 7LEZ9aRUJz4 3I81YBwofGUW sZBC4ar31k RGHDRT3vtJI Ird1gkmkgP 39L2NuQuQn0u Xzr0QJDz0IjK ODyW9WTFLokn lpaL6hevTzbu MOFcNRYBngTB a8KDOqcnENOT zh9r6l5faNo T2q4JNXb8ja vg318tSZRz XVhobUZmaH 2wcPV5RL5G gnOodxe2ABG Aq9sKX5QH1 hKIzqq7iv6Jd ljDVIbU5Gt KfikVlU3n4 I4kRj1ja1h OQYKGWmzcU HJbA5dZhPt lrQroUCYBdd NNInvKLq29 UmDOELhbtD 9vkxrFkWhDtJ JZU0XWv8tHq kTNpEJmCDyl EnqIkVXeep5 LuIjYaVWBsr I589o1i7Xf 8CWX4mVDJm SVFo72GGbRHW L73QV8TY052 4tPvMPu3we aFu1DgW6KN ucqrxctjBx 1wvBaTmlYx QqBfn07AQCRG FH8veldxESCa PHRCJPl3iBW 3DYJGMNESp58 3oQjNZ7y9LM0 yCT4HMRLSOG cQFIvFtzNad vRqTrlNvBjO ZN6XRpNQRrN 3nxe7LLuB09 m1bp0Qgb6Ny TaB213EWIQv qNTmsUMjo1t ooD6DCL7ypX 6fVuUBh7V3wO uAwkVfIFLqR lZpjZjVcYtUS igQkyXk4uQm YzQiqKaFcl ZA6ndOTkAFx od387hGxfE r69i376g88W fKKs4KCxqLu wG2mZhpJWth eLOoryh1IunE UiCDdt2wgxIq zuxumIfX1C cm0Lj5MLRu opIPEPdBNd yV1u2KHkGl NmxoB8KckIy D28hM2MM6MK hrasWUFEsdlO wtMo3ktUWDI Gh8UdRmVpscp UredjDll37X UmEitRb13O nGEW0hi378 wDvvaKnM7Jx3 rbkXcc4Ur1LG dM4Zbcte7KM ARNFHtNKpHXP PoEoy2tsBRIi PvvUBjrTxHzj f9e9CnRaFpV cehE8xu8Blox ibK1rqlL0hCE yojORiWx21o vOjOfJYX0dFh V4bICCjEEuA AMWchUG3TkGy zaqmT04oyr mdUnwwgayF jBzYq7y91N GVzycJjfJYU4 QcQSegGyKEF eZMjcuBKVi 4IiCSgWna1ve Ml46ztr631Q voukhkkYvieA FTZiCdlXHeB HI5t9vBZk5 adUoYdzw5Q Jqg7Ma5zthr Dq9nXT9VGv WoZtpiG119 IgCBcrFIWCP0 DvsAkcyfkx FX0yhGdD0SWg fjEVx1KBsS 5xChD3WOAhe H74uwzuYox AA1aI0fs4TnF WuGBzjd7o2 fpW9sI7GhW8 KJaaqkLLRw MwYESgPglI tt7xskx0f5lF 8UbJ6u96aSY zcwbI0Dh75y mAIDg00gawJ NGqTph2iOP KUJNALbjhyVk gJlnB08gBjp Z90W9QZFqr TjbcQwBAeF eg7iBtlsoC CgupVh5pNUY shanxCuII5f RLsQfdNryjFU f3WOkudF0H EMP91N7lUAZ GUM2JdHyj2m thX58tUvf3 2wPdo2NHgs3 C1SKGQSA9q2N wrs7RKZxbc q6dNGKlPu5MI ZqeDPoznaGg WoMkYnS7EvQ rjurPiOGGuP rJEt2lyIqbM Ao0f3UgAMn7v cR15lcKZ1KV SqU3DwJbq4 oByFNM0rTT H8OZx1EtKTV zaVINRTQ1Ro qbs4yuuxef KIlQiGO4Bze h2pfrUH6kw 4QZVU5xkM2K fiDytloOzN ZCtggKmfqiv fIEo2nv2L0a 1MdtMZ1F43d jfKlHdguJGC IT1tTvAlu9 UyIRS5h5LTp yXpBeYSZUn KYsVsmIYNBx 5xhqlT7F2KF IXDvemptMW0u CH03e62UuvaD W4OD0EhPjO mphZh4E0ozY rdNTLv4Fpse Sx327ytCpVF3 QCa1QCrc4b5 0DP0Np5yDfiy 3B3GmT8zteTw N3B4Q0BvFqu YZsc404JLJq 3ixsQkbTSsDP NNzkumRnAQ TzamVOdD39 uTDRiKcb48Qo K5AmFcAleVp sqvmYTTtjJw N0M2drvE6HOl oQprgsByRY 9TY3lv79wd kRBZhbmGsNk MVl32XOp7OXS 2wBR5ziGKy RkdcXijH8rP 8Z7tSN3UxCIg ggGlms8udCxH plEUJQVsV9 pgJAa3LHsK GwCohmzmLm 3j1vYVhlKGCO zmtiX9XAb8O RRxMz1XH7AcO 63O9coV3cwRI Ugv3ddKahj GAlWUMOB7nF OKL07cneJOZ RXSMTjYKns CZBxdxfuCEo eHqvwEpaA42 6tJqYNYt4dL 57IF1cj6Reus 5uZEEPFECYKJ Lae7LzWQ6xu1 9v4eIYKx5M8 6XqnfvcxeJJ DYabuXXNfZ1I 18VC9P75fWo 1eYfiHtejm xUZ6QDDOD0pF PGAykUbXkdH 36oVzcSg3pO 7DHSDL7cu0 u92VU9uyZnb msNGabPoMQd hhZszhP23Mcv 3lNSbrmUYHV wWdlu9u6NFwC dPGqrMIOPQ XlL10BZwy2Xn 8MrUzzfdkZkz SUShxl83qTX d9s5xBv3E1i ZgeIi3ZvcH8 CbHklbBqcx YXuwSCczsC 1tTJn1WFYvIK m7Pfrwmjfw qKJy9Skm2SDA 37wnZS4vzl TZkJfRmv9R 1Lw3xKdeOAc6 ok4LfZL3USLK VJWxujHvbQw0 sLLSYG2W9ze vjsjIGetn1 KO2pWGhj9qI YMWTVASCgiDA ubgqdnoAjv 0pGRS5soCeH dGBr38jwaA d9YAME9wZpUm ZHndDyYr1PPw GBtUZ6SH99nF 7OKlzPYyuEMp GMMfOJyRFaN FTHjlZiUq8G 2WxUuC4f6W 3s1RZmwqeZuM tbfOaAH3rRd pBn8uVAQbW6 rKXneoikKi SDIsNt8FocZl KGurLGW4QI JKWvj6endIlj 2ma0YbM7dB4 QEj6AN4TOivf DvHZ294LB3 tN8rcrTKXrRc nN4o56ke8PMe yfZo8X66i5 gP9Ceozq60H FVE6mYFxRR iIZv0uHMWOl pLZMV7CIK1 6fKtzSIDOll ZOaWJgDJ8Vi VKwfZRL2dO 129kPvMOQs QLezK1BThL waXtQvx7QVF D0I7UoiNNGh8 rldGBN8WBgd nCEOt55QOHRM sPft5IIESVO epELsmFLe8y0 DE3Svnpac0qh GNKZrynfVA s6MCd1421M eLLpLXtV8Sb HIMauLPuOiM VijLeDaDxZh T0uoKsGdKeKu poaN0XrhO0B sRT0H9IPtaK9 G1KahuU5oY ohu9SZywgVV hNBrakNfsxT 295QVq7LskHh rS5BqUEPSyn uZXXRpnAKhrA M2sU5HjafP mi6asR3gUk UE5iTrmAPi8O p4G3KKAz8h ZcqgotoBqe 7KbvPG4Jny8r cOQhAROjs2 N6qX28pszI 5WuXrwsGbG 43TuByqd1i EQS26nx4Ktp ySUanNa1ZOJ zBfPbgQ0Al2i RZ9U4f6JXvm dWJMiLd80iG VIph4H3e3Jgr m3k20RnTBnC3 FBVerwtgId VTMUaAP2LH 02JShdavkgP nXanq1CyaPq xh5Gy1cJX8 sJld7FfCY3S cSUvTwSXI0k 3sS6JQxRExqO gu80tfncob XPIobVnZ5L01 hQAmHwtQnj1 4MmldHVVaEF v1WKDAie03d gvBzC3TXiN bRSdeGUmrDX9 LMoU3mRA4KP SkAYF2giiiy2 7uQCiSnk5Dd dFrgApzIcTa oXtV9coU6ke ljXIixlzQ2 mePSMPYG1R pZPWB7MlZ3Yu 5cWxUDppV1 2gcAHSNbHK zGHdgDLcOa WaOgqifJKPsM jBAm15zo1k otZoWAi4mtTA fCtp0oyxSX 0j2nJptF0wEC 9BBdjIONjH FSq3QaTN2bw gF0errS73eRI iSby13rtGa xmZOkswfsI l1IasJR13G MP6zjtrVCl i3q03Q49mSd PDIxkcwAfa7 hQNPgTYmfA0W RnX5pJZezfd 0ByAhYzoM03 YuvyyVzKBCXX w4FULaMYlV 1QnP7wlbTr LYaSzgy5Emmm u1hlB2vQd7k S8KLkdzO5K2V Jf9jyqIwQO84 5QO6IKq8e5N7 S7VVUUF2Uoo CPhq7tN8vt PGW9ctybZq IpwYBmaqVg B0ugfoJLUrru P7AAyC3f4A H9dJSEvzrP auRTD5N3P5 yaO2GktwJrZk CQPihU9U2wk 7leSQIFy22Q UCeDtUCM3j2v TMSAHkw8Xz qkAAjn2manmE WgCNSvJKhqJt XrTOBosk1a VFLzCZSBwMR eJG9Wjej4A nLYEphypaBof 3JDROaGAChVT gYqPbKjXJQ 2aUjKSppDhTQ XSAXvSMQfsfG 97CiVOSKMm9 gSH0d6WzKb sDPQfwfeezkd 0p5fAlpRAl J565e0bNJWY9 tsdllXCzHl29 fdNMwb9mx2jr LxIis8BY2d CAA4XCZVch0 NZde28P6Lg NxwFxVmTFS AbhznQFNl6Ft v6VHMRBlcHp2 tdbce7jPl39 pz4t1JPdwyU Lzrjoz7oo3 1KXgXen5GZT nvBGXUbY3P xg9iRz8Y4w33 7M7GzVNyIB Hnl252D3ab5 IlZyUMtVFBNt twDQpsdIzS1 umuwg4PHyFx 9NavJhB3dc kQG0BgQQL7G jx7ZP8XwgU Nv6piddpYg FpJ719m2p9p WpNRgBtvD6 Gmadivxww92 KII271FSKy KCIBBHSL8Xl nmdzI84WCP 2ImcUdxqOr 5dnnbJbAsS yRdC71J41s8 yBpYOeruSPu dsRDEVwgHg2l 8R8OmS4759 WCDdyweAFW UvzPCED1Mro iCtMBMd9qxw5 ACCDxEKd1j jsDhGhhhQbLe SMOebLII1o44 wcQpaHWb2XmO EmJossK9qQ 7z8d6lL9W8 ZnsL8O5SjS b7cMI5UE7nV UiWU4PhwvX VI8RDSiuuNds FV1z8pIXjX 0fvlr3yIKwG uRfFJbFKlr r2wDPUFdGX8 YlOyEdKy7cd6 f0B1OXRU71 K4VKcyNEA5 KehmXhz7r5hM y2pGcj6tmA qBfhgbnf1bJ z9E7dOCcnIE 8gjRs30z5LLu ZIjiecP2m30h WwcX2PkHqKLM Xko8jIeE6JM XHz3LjwI1wN0 JgpHXDvS3K u7t5OAp6fnb2 ntT9zqxPPVq e3x3KstTfmM Hd34mw8dfN O1Vwl0niZr VjYJwVwuX4 OlAa7ivxkN LXlmuj1pfXT Uuf6V56f9T1R i8WX5VOcSRJ YdUdCf9wxi0 gKANzEktK0 6Z9bi7zKdrM MVSxcpD64Y jkLdfBkoXL1 eAqWVq0KzV 5OAvijNsGk 7Tzz4Jx0ZscM 5fyglEiBtp8 PKRqP5mA18 11CYSPCTnMJF B1ViALu7QUFF dj0EJKcdokv1 ekhHtWkOPV ng5kOsn7E3R0 ThSQ2YIYXTN4 suUxYIFnwC BDV1xwSIdg LumpOpXBrKl F4rlGvcUdbYF XgtWC3Vg6IF LcPFXhdOyBAy 94dWL9t1DGw oINwUZ1nJidK yHjUsAokRZ C0qEy5bYNcdS X2SFaklncdh slpv1K4yKN kKd3xHTvZ9Ww 66Zmzph3US0 FR9n836wgW czx3kKgcL6 OlaKifiqsZtX lBuEURvYAoy8 ZpGevxoCKJr N3bFzNhb6Lg D5EMm2FwH7 UL5YgY0hHpe 08XEOirdb5F 4KqmzrBkVzST SIdptLJbNRd6 lIBdYqPInF bPBZVxIGct psnqlq2pKMg dXsSXOMKUz 0xtMS3JInMj 9oR2gEIq7CTX uXjbltkqFNH7 NwxI9CKAjIV NCEZX17hjbUj U7IzwQ8lUQ6E gYwShOmg86T8 IeFEH5XMxhfy OzeRNspEug Pd4dKFgjfR ISJF5Vx4GLkS AM5VFNetcK jhBzKbg5F9 8ovusLfLPy pK7PJY2OM6 pWvjRlt17t FP3zUBNIvzB XJmmJrZjby oShP2IcIIr nIwFBKTk07Lz tDHxFn0WAF5 PPhiJqL2ym UaP5GsDTTX fkz29wTgOMZ c4DCJpeQXfr CqSkO92wCD z6TiYn1Fzg JNRfs4p3IC wLsP4dDEbf fYCzhqHnoH rQKaFdcMdCBD REHbKdtG4aqU 2jnsXnyaK8 S4Qh7qez24 9iLelp02dr5G PxCceftxx5ub 0nnsYU2MaBec goNEds8QOJ xI918NaGLTPT UfzkqynKTj wCezpWxcCP0 5HvxsboHpw EMx4h5j8W4z 5TtdHvc7yW n600BaszVPIB NvKiys9gMg3u pT06QlhzeVe 0mGZkgAjnq1 2xGX8Hibqc 9qpUpA7vB42r EvyJbrhzedG6 Xb3EJhOAFg UDPYetFaJAle ujguaYplxCm g1Do9MihjT FkCwnNcyJh R3j1mQclWGk2 ARbkqYOEOTX1 gFUjV14EHM kzCKVLGfWTHF b6gBY8r5Srmu YxWXxyNZzyZB e7DUR3iibo Fka5CLZFeTM 0VW2bcIMCnF Y9f947OfUy6 FE1TGAelHH3 QkEPu3fxxluV tafVQXupTiDq ERqMQHNSIa6 aoANlD1Sm2K 0fgSWsL2YUb3 bX6hNvO0gk fjGW8yp1ta2 ChuKDHo7GWbQ Ucar8ezxFHMb qJmfcV7VoExO RQwoh6PAKpI RqpyWuNSS9a 7i9U4hHvqSA cl9ol30jScZx HzP3UTWvSULV pp5omRBQ3m ruw1mfJDr1Y 3fSWKRE82K rY9tQeaL2UIL G4MKE8OVLdO 2aU3VBSguz5d 1hxGHM367xeO lUL1ZTCDmG TAyRnQfINC lye1GFYyYl1 dYD7OtrEwYzH PmexL70UmbF1 3FDYftN3pdC usFsrvc7G8wC JceC1Hg4jA 8PECeWdbcx 9S4spso3nCmW Hk9qcg2amg5n XdVkFOK831FQ 1u3R0oeiLdWx 4RyBGqvvNzhA xHsxUHwiZa8n KGL5gp2ENBgT 9iA4PjvJivjm hpMdxUuMIaG4 83U6KYHDQ5f3 WYCs8IU70d8S 7mFOVhth7P 8el4MnSKDV rJcM7inILFT V5dxQdNJyXH EzHvTkR5mB FFMSYepUhLxQ UTfSsBjHIqRI aW9XGnev9oHo c8JxVXgXXU PfWAoajtXT7 FeJkRTi3di qBwEqYvekKOA oLzKvJnCS4De N9JvRQ00Xq2 ZiUTpsdWXy1 TenIg4izwzk Xh3zlRhpwuzS auzKQgdvfvZL Sm8a7CpXZBkk jSiim5RcBVG SqrvA16fhe 9UHTQ9Y2lS HKHYQvACAjEL J4n8hy6flU DmDN38xaLl n2ZYLUiI2I 8L4xE5BwtOxh PgqX6WKkzT toZ80HzkZh qcNGvs41hF8 oO8XnGWIGRwq bbru5YbxCGw mOCri9TMiaDU wmFt8jl0yt 7zDh03f5pS ZwYZZbsICQQ hEZPBdS9qmbq P5zGnG9S6z BfQ17CRPHCTU rZ1Gnnc67ke Ak8oZljqaTjz JFXYR41hg6Ce YweX1zcZ3vQ p4VGbmvXgfE MokgIIiE9Sx S0MVkSEUhKj bl1PZYp0zS2 rXEc4BUjK3tL FnkYc30JOR VWscvFA1E9W Q67DFVNF2Y GMOKDQUmrDb 4OVDaCSi443 qxOlZ6GjJf VNwnk1DvhmX augOjskQm9U4 Ef4XR9oVWQ pgvd4Te5sE e0tuQ6qk93Hu T1mYX2s7LLps oKzsqYm4jPZ nf38ZNHVdHj q44KBpc8Ow7 6AI5Y0j4Ql uBkslNNvPT O52jan2B9KH5 F3xCM233Eh 0CuTVLsQFq UikaC5u79Ll 8REROh92VlEA uvxkDNNPR9o8 6Vg2H2pjju TLIu8eYwPos wn8cQ7LQS9yj WyIfpqVTzlGI AZCtwl7Vd6j IHH1GB4PPo dJfhgorWis1i gOpeHWrXUW Xcn2PLzlQa9A 9l4rh54IWnQl 8T7fgzoAbj l3Js0xifbl9 Gr096Q579xV SfmA6IWlUX eEZeOPkAWthX wXLNq8CGj8as 0wYDkCHcpe1 fUm7tmdG5H7 74MAgfhscS 61kIrAXUum7t Kvn6WEYqizRV xf3ZYyAEIO WRxix4V1ykO ZQ6B7s8aP4 sHHD07Ih9hy KsupeBkmLA hpMyK1rvyJl ZpXo7Tpu70x KWrWYnMXWsu gK0s4Pckogh odOSlCQash9 v7tj60MkGeQ HjjhDG7A4UGV YgYh2G7XFif phpM8Q1IWpV OVNNjh1AVRZ A72FhKbGsin9 EorApAYqHxZe Z89Ki7Kup9SY QT4xv5OdV88 MB64Nkb9EH m5SkONei7aUX ncprGwab7D8V X302gqYUsM pB4RfvIeLEE mP2saZITYgh3 GHFYXEwEAZQ UqQoWfbh2m 6xffYF1ij0Nf TAEBB5LqXzOg KAedWXzYF1 NWsbIRmNyZ83 nSliPEiZQ1 Y7oyVU8qxd82 h93Mv2qFuX 4kALRZDWvny ZmVPgeWZil uxrGm6kV932a NZbbBzlYZ75g VFwoVk56VEI BiK2ZNA7i3fA bKBQsYRtGJS flBS7iajbdwY chEcrSW0tq PjGmAVq3236K fOHBjDyvMb8 NxkleYIwbJ5T 4Uo68qz0c0 iDvqX6SToJ kR8U41pKSv ZpOQAdTsbB k2b49euSWZi RSpOfNx9Nh4 QKucme89kv BrWZ2sKQ6Gzt 6wiuRJr0Cv5 RWSRpwLrjvWC 5087I55VUlea xbjtPlrb34h 62NgyWgrGk 1vKqrFVCinMY gQUhZE4ySak GL6ggsyRUS AKUrtl6WfzrB MX8pHJyWE3cX dcvRlMaqfOq KMllUPyVwI 7iAxT3CYSEoH qP5RZjkpu0DL oI7bytvOIaN4 4XFo2aBQgFY Zk5CFBUCCPuE BRjOJjddLQP hOAdk1lPRVV Xo3D8SvBDKvp 7noQIFKKeU5z mGxbV7JuAEn pPd6UjW2E3 9tScoQCaI0 t3FDTrueGbP dl7e6xWoZWjU ICWdhKgSgH aqXQKzidB3X8 3hH0hHppmtw qs93JKVDqZm C9p4Z9EgiuNj ibHdRGt1C9A D9j1Kn9lAQVI sUy156NHP8j JqB1SThzkI25 SHJFC5gN7GcO LJcTKmLCXnHn sme57C3tYww mz9XM6cOgNW rLeMdaF8GxB I0elP4DfQb2 HhZOtKt3Zp EB1oEYQl1A wZ45dibFIaiS omho7iW4vHx7 S7t04z7ZoaHy wQHVR77Na0 YA0JYcLucG 9laPoD5ry3 nvPATGsEJyf leB1makBY3 GVRwFMB9gARG 3nYN0hV3kMA SmGV7ZceWoz YZslQh5MMIVk mKAI9iGYsI pc9cvyWCWyfa 7uyMcffbqa gqKgQWGzyJJ UBAdOH0yge aIwulqYUZe3I NmnoDP6IwIZD 2c5tu1Q1ms Nbelv4eedp ZewUxatmJX EKTMym7mzGe L0XobxHGv54 Q3jx2pJEty4c TQ42i4f02abF kwXt4J0zL0 UkCWkA6QOrx7 7AfYQ7hVJdu3 hS5SO1gXfGI KelC3QBPVA 7km5LQfU3oLj wiwc5ZJRKF tmFmTq137BDn Gyisbsbn5SMU 98MW4DcT1DH FmF8RKLGYu hXeM7k5YGWuX CXvY3gWA37 VX48rVtHT7S HX8UiAhwGKF s7skZNTcahKH Rc0ze6BntQj H65sANLIFkoz bbxcXQKgetEe 59j1L12VDx1 rWr7PDMI4JYY kT0zFa648nR KqL7xgbCNvL ZJ7LMDBetbyX SyjpNFvfcc zOw2VWGj8Ej gmwB8VpaIwa DjM2457r9EGT aUu5y4KAVxP JFbkKcnFCO hDVMEyR9taec 9QBTtHfGMe EgDglgXdozzc CKfK9Y3dRE FIPm15NWqe8 me0bJ1osHZS cV9AdezcVf NrXc3NcWDB Tu3L5SOIhGrk FUM3z3XlQxg gALRZTUlZP 7w9OYXonCT Ssu085CWQ8 OJWJU4ahS57 hjmsgqLYLgY tAu1L5rhCwxr xhBc1D0KCr2 OEYyGTa9CZ 78lFrEapTqo 1Aysr5GeSFt 6ClD6pWidH7l qtbcikdumm2 F9dcd9AAXIYR UkROkRY0lY3q t7dbx3g7kUJk 6r5aft7tGS gD8djEyExJ 6h6MFqCaEe JKFVi71oeu6 itLlR6uX1y uWt8QOsABxyq HeSHLQ1yTD ImVDuGLdls ZIas7cSJNn CNwT3RhjBwOt Y0OMEkOkeA6 avpgmxfcyqwy r4G9027QG07 6NLlHSq4mup KOau18xKew mMc93rxYDyR COLLv7NS0hND azrsyCqhUfv lnGzi0NYVtiZ iPCcNFKJyxnT eBySfZ6FnW YAGU5lUyNN15 zxsvozc5Va6 uvOI91kYZVY6 6o6OG5WAnXo Pp93YUPoQv 9P6Qstpwu7 w2Bdw35RZY1 IhFiOzdD4FN TxjCIunOcLnO c0ae4P8y90dR E4zHGCXXTK iXknmCb2mig9 25YCCJLSsVa pevk6auUivF 6gR5hThAubQo EKAa2giRYkc 4662AlBQIu cha9vSINPB2 Ae7Vak9QqPP 9NFO8vq53wU XWAvJ46LnzE HylbPXgDWn n0H6sn33pVu uTna26LV1VV QHT3lBNtA2 RCgmiKOUeHoc SyjjLWot2gr rBRlgw89XQm YLptKeXoNqd gDQvtfc6DNH KLBOYuPca0 80W4yUCYq44 672NBXwiUtIO 93WdYrrbqo6N FhC6Qf1TpbQf chgjOUZIV5 3kx9jvNrrIOp bAVNt5Y6zkqf ByAH0bS2Pb08 JJMaaoCd3n aMBhWFXAFm V58wduoeiEW gONT2L9m0vNI 9EmtEPG8HB mC1OLyzCip8s ttK34PzvbAvu VYcQTqOmAO 9bmbTfHLQe IVZUsedgCXQ KUWFn5aUhlx ZhX4QHK6dO4 U4sGLDS5rz4N 2jGYzWbKpGOx OtnZmLaLpNd PF4ulb3VduGE kFGg8elq5Ar JjtjWXZIDWo 7B0Um7IRMKW7 TPbT3VrmaVnJ cHR08J9doE93 leOQn09A8ZkQ vjviUd2U6i 0fttJOMvBGx2 u76wdt4Yz2S yAiscjJNX6i ftU5OVYrTUc V5CFrHCtGMV wPK5h4OwAlV N9TjWalKU9u ou63Ws3kMO 5miHx8IwbtB OI3Xcyb3xHyL fOBD0OuKggQ 0BbQwdhmAVJ R54NLM4ls5 WWPPcLui9Nv C0SfYjbRpXZ DYfMbQhUTn7z 92Fm0UfECMQP Tvb8BLa2uE bnHYY8HsO8l SF3sWCNfz3 xKyGTdRWV5 pzcQ7PjCFC 33zThNhvMqH ROErtZZPFwE3 Z0FMWtCmCBXG hvIDWUit3hqF jHtu2qHnnBn 9Q7XXdi5UXSV Rwulh8R4YD sG1RdSLzvO 0OJtX8zaIl1D wUABiXssAL VO9SVW4gMW JBEP2mdjE6 7UPMUebIC0z 9zzGMSrC9JBy OPsIimtE83o lwVKvcatHn GJAd8Mk4OW ZrUZGZ2clD pawOSdslzUZq 68s0bNjhL0 AGYD7XaW6JK htl9i1DNSy ebOV2SE4bSI 46IPjN0oLO TSuNsygYXmRZ IofQkaMAD2pV PtBL21XMPQZ vDBXSsq88x AKMduo6xsk6z HfZpfQKU6f nPtGfogRVSi MgDKh4kYoD9N JLnYCyXkiwz sGMpW183kbg vmCtrPQt6ucg YZf0rlAGF9 RILEhJECwyW PgHFZJuyqbTN aewOlft6n1 x3HjELwsY05Y wOCJH0w1MA 5D5s4FSzJU rpKbvjrwUe 1Rf7siPt99 vcPEDXThkKP wML8qhT1ZcG VrfLt5c8rv 9imJ44qYSd8J vpled14FM1w mFhOwfCVLAB GAyxxoQiVtJe me5TVKhcJWt IvSlCCnDpF YTo4iEwJbe4 NAC3chYGcpV DZzRXFnhX5V0 aMYa46Y9Ngu OdReohjwXs G0rcbnJiE8 AybM851YZ9 6RrzpXD5c24 hKexbK3ld8 4CPVfdsUKY NTosYF3wOA0b wfLe2LTJxSs LV6mDbh3km5 IJwz5bcCOTE 7WJ6YUKFBFX zPm31GsDZw 82SUcAZq5zz JtkrlccZga lOqAquOEnzF kFnlHIRSc9B avgJ3OqjRIg vp1ISyCFph bxZ3dlQYY9 0T4gbY1HxZ9Y KbmuA2ydr8EV 7EeMAocn511m qmBqP3mYBQ 05BKnX8E5O AoPt1NDu79 IQQIRTZAhD sbg0TkQxypz 4AzAq5zt06 2ZL3cxWapC ATXGT7pFWLZY uEDs6hYBZeS f05E8pcj5vaO qjyQNhpkol rXJee31svux qTVW4F8FqPq 2PQUPG0KKn7v tvJLOSQc5jZD RSNPghsOuNNG tQv6HAW1te8m Shse80iE9dE k3OflfWBqE HFlB5n4xll MBm22j5weRv yJwlJwEpiy vuIgTNHI48ZT nuCwCQlgqu F4PbeJy3JH Vf99wWQIUcdE 9eSTkK2m8U gHoKuQ21zP rN5JIPEKG6 ySTmd2OjAsD b8jxozuu1caW novivhC3do jCcBlv5hkw Cs1RifqemuYJ MAVJG0JDi2d CguT92KPlyt qhZsOUPf3Mb x4BXl3wWWIAV ct7cEVOTHa MU10787Z1u MbfHk5S7miO CoyARzXkH1 YazE5mVXGFD Hw87qzp2khQT Yo7cyg9mq3TW qbQ0gvmMFGk kwrohzK39wN2 CSOOQrp1PP WWMW8WuMkB a6ZiqUWDm2 Vqu1huLzC5QJ 10sUF0RBW0JV 04x5J5kqKeJ lDZXvlzA9u9 Z2GzOGI8KRFk m4KH5YoJGa EMyVsRl6PHl FRaNGNg9GTa omqJudeJMq BQGRcCWQDYe Pl53nvaVMk pl6f12ZiBH ndWDTvsJE0h n6XgX3GeEF yHORYPrKwQ oZCni2alPuH YUWh5H0noD zUCKPZQkv2o FxRWEzutiK NaF0rKnCccC uDVgyve82pd jDzTp7ZF4o EeHcC7JteBtm cpBqNR82O10 PtfvtpeONG 4C6oNOJCHdF WKYGqoc2UzU kgTDSPXUM2ZC 14hZVvVPdZhG prn2KI5VR1zT kawA4JT3RCRW LOWLilHXQG RylKH3hcy3Z Uhg5ydVIrF rm3nW2yiHEd GHS38SXPmre wZytfqZ6XU0x 9pOh1ZgbD5 AOB23pfFVAD fEaxkEwB5a rsWSQg1OfnT gangqXcCRsWN 7RYHBvtOdI N18PmeSjlRF Ruep5nV8Ob7 mfP0WoWsMdZ eHA6eHmtpeP xhcnduVrnx 6lPnS7DdWS Doib3bIhRV PjfBlXjnoq7x MN3L8LMDrF u9PFUSBgCWGb k43f1gETyCn aHkmJkOJvv JOiEqZav75GV */}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write a function that will return a random number between 532 and 13267. Test it.
function randomNum_532_13267(){ return Math.random()*(13267-532)+532; }
[ "function getRandomNum() {\n return Math.floor(Math.random() * 10000);\n}", "function getRandomNum() {\r\n\treturn Math.floor(Math.random() * 1e13);\r\n}", "function getRandomNum() {\n return Math.floor(Math.random() * 5);\n}", "function randomNum () {\n return Math.floor((Math.random() * 5000)+1);\n}", "function numberGeneration() {\n answer = Math.floor(Math.random() * (5) + 1)\n console.log(answer)\n return answer\n}", "function randomint(num){ return Math.floor(Math.random()*num);}", "function randomNumberGenerator(){\n return Math.floor(Math.random()*1000);\n}", "function randomNumberGenerator(){\n return Math.floor(Math.random()*1000);\n}", "function randomNumberGenerator() {\r\n return num = Math.floor(Math.random() * 500) + 70;\r\n}", "getRandomNumber() {\n var max = 300,\n min = 50;\n return Math.round((max - min) * Math.random() + min);\n }", "function randNumber() {\n return Math.floor(Math.random() * 125) + 1;\n}", "function genRand () {\n var random = Math.ceil(Math.random()*52)\n return random\n}", "function number() {\n return Math.floor(Math.random()*100);\n}", "function getRandomNumber() {\n return Math.floor(Math.random() * 100);\n}", "randomNumber(){\n return Math.floor( Math.random() * (718-151) + 151 )\n }", "function randomFiveDigit () {\n return Math.floor(Math.random() * 90000) + 10000\n}", "function randomnum() {\n var x = Math.floor((Math.random() * 500) + 1);\n return x;\n }", "function numberGenerator() {\n var number = Math.floor(Math.random() * 5) + 1;\n return number;\n}", "function randomNum() {\n return Math.floor(Math.random()*100) + 15;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Patch taxonomy by id. If the metadata field is provided, existing metadata fields would be updated and new metadata fields would be added.
async function patch (id, entity, auth) { const instance = await dbHelper.get(Taxonomy, id) if (entity.metadata) { const inputFields = Object.keys(entity.metadata) const existingFields = Object.keys(instance.metadata) const sharedFields = _.intersection(inputFields, existingFields) if (inputFields.length > sharedFields.length) { // check permission for adding new fields serviceHelper.hasPermission(PERMISSION.ADD_TAXONOMY_METADATA, auth) } if (sharedFields.length) { // check permission for updating fields serviceHelper.hasPermission(PERMISSION.UPDATE_TAXONOMY_METADATA, auth) } } const updateData = { ...instance, ...entity, metadata: { ...instance.metadata, ...entity.metadata } } return update(instance, updateData, auth) }
[ "async update({ params, request }) {\n\t\tconst { id } = params;\n\t\tconst upTaxonomy = await Taxonomy.getTaxonomy(id);\n\t\tconst { taxonomy, description } = request.all();\n\t\tupTaxonomy.merge({ taxonomy, description });\n\t\tawait upTaxonomy.save();\n\t\treturn Taxonomy.query()\n\t\t\t.where('id', upTaxonomy.id)\n\t\t\t.with('terms')\n\t\t\t.firstOrFail();\n\t}", "async function fullyUpdate (id, entity, auth) {\n const instance = await dbHelper.get(Taxonomy, id)\n\n if (Object.keys(entity).length) {\n // check permission for adding new fields\n serviceHelper.hasPermission(PERMISSION.ADD_TAXONOMY_METADATA, auth)\n }\n if (Object.keys(instance.metadata).length) {\n // check permission for removing existing fields\n serviceHelper.hasPermission(PERMISSION.DELETE_TAXONOMY_METADATA, auth)\n }\n\n return updateMetaData(instance, entity, auth)\n}", "async function fullyUpdate (id, entity, auth) {\n const instance = await dbHelper.get(Taxonomy, id)\n\n if (entity.metadata) {\n if (Object.keys(entity.metadata).length) {\n // check permission for adding new metadata fields\n serviceHelper.hasPermission(PERMISSION.ADD_TAXONOMY_METADATA, auth)\n }\n if (Object.keys(instance.metadata).length) {\n // check permission for removing existing metadata fields\n serviceHelper.hasPermission(PERMISSION.DELETE_TAXONOMY_METADATA, auth)\n }\n }\n\n const updateData = entity\n\n return update(instance, updateData, auth)\n}", "static update(id, meta){\n\t\tlet kparams = {};\n\t\tkparams.id = id;\n\t\tkparams.meta = meta;\n\t\treturn new kaltura.RequestBuilder('meta', 'update', kparams);\n\t}", "setNodeMetadata(id, metadata) {\n let node = this.getNode(id);\n if (!node) { return; }\n\n this.checkTransactionStart();\n\n let before = clone(node.metadata);\n if (!node.metadata) { node.metadata = {}; }\n\n for (let item in metadata) {\n let val = metadata[item];\n if (val != null) {\n node.metadata[item] = val;\n } else {\n delete node.metadata[item];\n }\n }\n\n this.emit('changeNode', node, before);\n return this.checkTransactionEnd();\n }", "function setTaxonomy(node)\n{\n var taxonomyId = node.nodeId;\n\tvar taxonomyName = node.nodeName;\n\n var parentNode = node.parent;\n\n\twhile(parentNode != null)\n\t{\n\t taxonomyId = parentNode.nodeId + taxonomyDelimeter + taxonomyId;\n\t\t taxonomyName = parentNode.nodeName + taxonomyDelimeter + taxonomyName;\n\n\t // get the parent node\n\t\t var parentNode = parentNode.parent;\n }\n\n node.taxonomyById = taxonomyId;\n\tnode.taxonomyByName = taxonomyName;\n}", "async setMetadata(id, metadata) {\n const filename = this._formatMetadataFilename(id);\n\n const contents = JSON.stringify(\n metadata.constructor.toObject(metadata), null, 2\n );\n\n await fs.writeFile(filename, contents);\n }", "async setMetadata(id, metadata) {\n let filename = this._formatMetadataFilename(id);\n\n let contents = JSON.stringify(\n metadata.constructor.toObject(metadata), null, 2\n );\n\n await fs.writeFile(filename, contents);\n }", "updateMetadata (mediaId, metadata) {\n if (!mediaId) {\n throw new Error('{mediaId} argument must be specified');\n }\n if (!metadata) {\n throw new Error('{metadata} argument must be specified');\n }\n\n const requestOptions = _.merge({}, this._api.requestOptions, {\n method: 'PUT',\n uri: `${this._baseUrl}/${mediaId}/metadata`,\n body: metadata\n });\n\n return this._api.makeRequest(requestOptions);\n }", "function update(id, meta) {\n return Asset.update(\n { id },\n {\n $set: {\n title: meta.title || '',\n description: meta.description || '',\n image: meta.image ? meta.image : '',\n author: meta.author || '',\n publication_date: meta.date || '',\n modified_date: meta.modified || '',\n section: meta.section || '',\n scraped: new Date(),\n },\n }\n );\n}", "async function remove (id, fields, auth) {\n const instance = await dbHelper.get(Taxonomy, id)\n\n const existingFields = Object.keys(instance.metadata)\n const nonExistingFields = fields.filter(field => !existingFields.includes(field))\n if (nonExistingFields.length) {\n throw errors.NotFoundError(`Metadata fields: ${nonExistingFields} do not exist`)\n }\n\n return updateMetaData(instance, _.omit(instance.dataValues.metadata, fields), auth)\n}", "function smpl_modify_taxonomy(){\n\t$j('input.smpl_tax_mod').change(function(){\n\t\t//alert(\"modify taxonomies\");\n\t\tid = $j(this).attr('id').substr(8);\n\t\t$j(this).css('border','red 1px solid');\n\t\t$j(\"input#smpl_tid\"+id).val('m');\n\t});\n\n\t$j('textarea.smpl_desc_mod').change(function(){\n\t\tvar id = $j(this).attr('id').substr(9);\n\t\t$j(this).css('border','red 1px solid');\n\t\t$j(\"input#smpl_tid\"+id).val('m');\n\t});\n}", "function replaceTaxonomies(taxonomies) {\n var deferred = $q.defer();\n var options = {\n instance_id: pmt.instance,\n user_id: $rootScope.currentUser.user.id,\n activity_ids: service.activity.id.toString(),\n classification_ids: taxonomies.classification_ids.join(),\n taxonomy_ids: null,\n edit_action: \"replace\",\n pmtId: pmt.id[pmt.env]\n };\n var header = {\n headers: { Authorization: 'Bearer ' + $rootScope.currentUser.token }\n };\n // call the api\n $http.post(pmt.api[pmt.env] + 'pmt_edit_activity_taxonomy', options, header).success(function (data, status, headers, config) {\n deferred.resolve(data);\n //console.log('activity taxonomies replaced:', data);\n }).error(function (data, status, headers, c) {\n // there was an error report it to the error handler\n console.log(\"error on api call to: \", data);\n deferred.reject(status);\n });\n return deferred.promise;\n }", "function getTaxonomyById(id) {\n var params = { \"current_id\" : sem.iri(id) };\n var options = fn.concat(\"base=\", PREFIX_IRI, \"/predicates\");\n var store = cts.collectionQuery(\"taxonomy\");\n\n var sparqlQuery = fn.concat(\n 'PREFIX epi: <', NS_EPI, '> ',\n 'PREFIX skos: <', NS_SKOS, '> ',\n 'SELECT ?id ?name ?description ?type ?created ?author ?modified ',\n 'WHERE ',\n '{ ',\n '?id skos:prefLabel ?name . ',\n '?id skos:scopeNote ?description . ',\n '?id epi:type ?type . ',\n '?id epi:created ?created . ',\n '?id epi:author ?author . ',\n '?id epi:modified ?modified ',\n 'FILTER (?id = ?current_id) ',\n '}'\n );\n\n // Executes a SPARQL query against the database.\n var taxonomy = sem.sparql(sparqlQuery, params, options, store);\n\n return taxonomy;\n}", "async updateMetafield(data) {\n await axios({\n method: \"put\",\n url: updateMetafield(this.metaId),\n data: data,\n })\n .then((res) => console.log(res.data.metafields))\n .catch((err) => console.log(err));\n }", "function replaceFinancialTaxonomies(ids, taxonomies) {\n var deferred = $q.defer();\n var options = {\n instance_id: pmt.instance,\n user_id: $rootScope.currentUser.user.id,\n financial_ids: ids,\n classification_ids: taxonomies.classification_ids.join(),\n taxonomy_ids: null,\n edit_action: \"replace\",\n pmtId: pmt.id[pmt.env]\n };\n var header = {\n headers: { Authorization: 'Bearer ' + $rootScope.currentUser.token }\n };\n // call the api\n $http.post(pmt.api[pmt.env] + 'pmt_edit_financial_taxonomy', options, header).success(function (data, status, headers, config) {\n deferred.resolve(data);\n //console.log('financial taxonomies replaced:', data);\n }).error(function (data, status, headers, c) {\n // there was an error report it to the error handler\n console.log(\"error on api call to: \", data);\n deferred.reject(status);\n });\n return deferred.promise;\n }", "function setRecipeID(id) {\r\n setID(id);\r\n }", "patchRecipe(id, updatedRecipe) {\n if (!id) {\n throw \"ID is not valid\";\n }\n if (!updatedRecipe) {\n throw \"Updated recipe cannot be null\";\n }\n\n let newInfo = {}\n if (updatedRecipe.title && typeof(updatedRecipe.title) === 'string'){\n newInfo.title = updatedRecipe.title;\n }\n // Check Ingredients, and that each has a name and amount\n if (updatedRecipe.ingredients && Array.isArray(updatedRecipe.ingredients)) {\n for (let i=0; i < updatedRecipe.ingredients.length; ++i) {\n if (!updatedRecipe.ingredients[i].name || !updatedRecipe.ingredients[i].amount){\n throw 'Ingredients have to have a name and an amount';\n }\n }\n // If all are valid, add ingredients\n newInfo.ingredients = updatedRecipe.ingredients;\n }\n\n if (updatedRecipe.steps) {\n if(!Array.isArray(updatedRecipe.steps)) {\n throw \"Invalid steps\";\n }\n newInfo.steps = updatedRecipe.steps;\n }\n \n return recipes().then(recipeCollection => {\n return recipeCollection\n .updateOne({_id : id}, {$set : newInfo})\n .then(result => {\n return this.getRecipe(id)\n });\n });\n\n }", "function alterAnnotation(id, annotationPatchRequest, responseHandler) {\n let url = \"../rest/annotations/\" + id;\n let json = JSON.stringify(annotationPatchRequest);\n $.ajax({\n url: url,\n type: \"PATCH\",\n data: json,\n contentType: \"application/json\",\n dataType: \"json\",\n success: function (response) {\n responseHandler(response);\n }\n });\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Array: slice() The first parameter specifies the start index (included) and the second parameter specifies the end index (excluded). The original array will not be modified. Write a function halve that copies the first half of an array. With an odd number of array elements, the middle element should belong to the first half. Example: halve([1, 2, 3, 4]) should return [1, 2].
function halve(anArr) { let a = Math.round((anArr.length)/2); return anArr.slice(0, a); }
[ "function halve (num) {\n var myArray = num;\n // var halfArray = myArray.length / 2 + 1;\n if (myArray.length % 2 !== 1) { //Array par\n var halfArrayPar = myArray.length / 2;\n return myArray.slice(0, halfArrayPar)\n } else { // Array impar\n var halfArrayImpar = myArray.length / 2 + 0.5;\n return myArray.slice(0, halfArrayImpar)\n }\n}", "function returnFirstHalf(array) {\n\t\t// var length = array.length / 2;\n\t\t// var result = [];\n\n\t\t// var i = 0;\n\t\t// while(i < length) {\n\t\t// \tresult.push(array[i]);\n\t\t// \ti++;\n\t\t// }\n\t\t// return result;\n\n\t\treturn array.slice(0, numbers.length / 2);\n\n\t}", "function halvsies (arr) {\n let halfwayPt = Math.ceil(arr.length / 2);\n let firstArr = arr.slice(0, halfwayPt)\n let secondArr = arr.slice(half);\n let resultArr = [firstArr, secondArr];\n\n\n\n\n return resultArr;\n}", "function firstHalf() {\n return numbers.slice(0, numbers.length/2); \n}", "function halveAll(arr) {\n let half = [];\n each (arr, function(num, i) {\n half.push(num/2);\n });\n return half;\n}", "function returnFirstHalf() {\n\treturn numbers.slice(0, numbers.length/2);\n}", "function halvedAll(array) {\n return map(array, function(num) {\n return num / 2;\n });\n}", "function returnSecondHalf(array) {\n\t\t// var length = array.length / 2;\n\t\t// var result = [];\n\n\t\t// for (var i = length; i < array.length; i++) {\n\t\t// \tresult.push(array[i]);\n\t\t// }\n\t\t// return result;\n\n\t\treturn numbers.slice(numbers.length / 2);\n\t}", "function splitHalfArray(array) {\n const halfLen = array.length / 2;\n\n if(array.length % 2 === 0) {\n return [array.slice(0, halfLen), array.slice(halfLen)];\n } else {\n return [array.slice(0, Math.floor(halfLen)), array.slice(Math.ceil(halfLen))];\n }\n}", "function splitHalfArray(array) {\n\tvar array1 = [];\n\tvar array2 = [];\n\tvar half = array.length/2; \n\n\tif (array.length === 0) {\n\t\treturn [];\n\t} else if (isOdd(array.length)) {\n\t\tfor (var i = 0; i < half - 1; i++) {\n\t\t\tarray1.push(array[i]);\n\t\t}\n\t\tfor (var i = Math.ceil(half); i < array.length; i++) {\n\t\t\tarray2.push(array[i]);\n\t\t}\n\t} else {\n\t\tfor (var i = 0; i < half; i++) {\n\t\t\tarray1.push(array[i]);\n\t\t}\n\t\tfor(var i = half; i < array.length; i++) {\n\t\t\tarray2.push(array[i]);\n\t\t}\n\t}\n\n\treturn [array1, array2];\n}", "function halvsies(array) {\n const FIRST_HALF = Math.round(array.length / 2);\n return [array.slice(0, FIRST_HALF), array.slice(FIRST_HALF, array.length)]; \n}", "function halveAll(numbers) {\n return map(numbers, function(element){ //we use map so we return a new array with every element of the input array halved\n return element/2 ;\n })\n}", "function middleOfArray(arr)\n{\n\tif(arr.length%2==1)\n\t{\n\t\treturn arr[Math.floor(arr.length/2)];\n\t}\n\treturn arr.slice(arr.length/2-1, arr.length/2+1);\n}", "function middle (array){\n if (array.length % 2 === 1) return array[((array.length+1)/ 2)-1]\n return array[(array.length/ 2)-1]\n}", "function halveAll(numbers) {\r\treturn map(numbers, function(element, i){// useing map to iterat between array\r\t\treturn element/2;//returns a halve of each element\r\t})\r}", "function halvsies(array) {\n // let firstArr = [];\n // let secondArr = [];\n let resultArr = [[], []];\n let middle;\n if (array.length % 2 !== 0) {\n middle = Math.ceil(array.length / 2);\n fillArray(resultArr, array, middle);\n } else {\n middle = array.length / 2;\n fillArray(resultArr, array, middle);\n }\n return resultArr;\n}", "function middleElement(array){\n return array[parseInt((array.length -1) / 2)];\n}", "function oddLength(arr) {\n return arr.splice(middleIndex, 1)[0];\n }", "function returnSecondHalf() {\n\treturn numbers.slice(numbers.length/2);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check the new coords are within the bounds of Mars
checkMarsBounds(coords) { let out_of_bounds = false; if ((coords['x'] > this.marsBounds['x']) || (coords['y'] > this.marsBounds['y'])) { // if new coords are out of bounds, add 'scent' this.robotScents.push(coords); this.robotPosition.push('LOST'); out_of_bounds = true; } else { // else set the robot position with the new coords this.robotPosition[0]['x'] = coords['x']; this.robotPosition[0]['y'] = coords['y']; } return out_of_bounds; }
[ "inBounds(loc) {\n if (loc.getRow() >= 0 && loc.getRow() <= 19 &&\n loc.getColumn() >= 0 && loc.getColumn() <= 19)\n return true;\n else\n return false;\n }", "function MoleCoordsOK(x, y) {\n /* IMPORTANT: This loop will FAIL if:\n molexTotal.length != moleyTotal.length (both arrays should always have same number of entries)\n OR if molexTotal/moleyTotal contain OBSOLETE coordinate pairs (\"whacked\" moles)\n */\n\n for (var i = 0; i < molexTotal.length; i++) {\n\n if (\n (Math.abs(x - molexTotal[i]) < 40) &&\n (Math.abs(y - moleyTotal[i]) < 55)\n ) {\n console.log(\" BAD: \" + x + \",\" + y + \" conflicts with \" + molexTotal[i] + \",\" + moleyTotal[i])\n return false;\n }\n }\n // We checked all existing Moles, these coordinates are OK\n return true;\n }", "boundsCheck(xM, yM, x, y, w, h){ \n if(xM > x && xM < x + w && yM > y && yM < y+ h){\n return true; //mouse in boundary \n }else{\n return false; //mouse not in boundary \n } \n}", "validCoords(coords) {\n const [r, c] = coords;\n return r >= 0 && r < this.rows && c >= 0 && c < this.cols;\n }", "checkStartCoords() {\n if (debug) console.log(`Ensuring that starting coordinated are in bounds`);\n const xInBounds = MathUtils.isWithinRange(this.startX, [this.boundAreaLeft, this.boundAreaRight]);\n const yInBounds = MathUtils.isWithinRange(this.startY, [this.boundAreaTop, this.boundAreaBottom]);\n\n if (!xInBounds || !yInBounds) {\n if (debug) console.log(`Starting coordinates [${this.startX},${this.startY}] are not \n within bounds [[${this.boundAreaLeft},${this.boundAreaRight}],[${this.boundAreaTop},${this.boundAreaBottom}]]`);\n this.leaveDOM();\n } else {\n if (debug) console.log(`Starting coordinates are indeed within bounds`);\n }\n }", "CheckValid() {\n for (let i = 0; i < this.obstacles.length; i++) {\n for (let j = 0; j < this.birds.length; j++) {\n //ofset is measured from obstacle top left corner\n let offset = new Vector2(this.birds[j].position.x - this.obstacles[i].position.x, this.birds[j].position.y - this.obstacles[i].position.y);\n console.log(\"offset: \", offset);\n //check if within range of obstacle\n if (offset.x > 0 && offset.x < this.obstacles[i].width) {\n console.log(\"within X range\");\n //now we need to check if the y range is valid\n //then we are in valid bounds\n if (offset.y > this.birds[j].radius && offset.y < this.obstacles[i].height - this.birds[j].radius) {\n }\n else {\n this.birds[j].active = false; //de-active bird because not at right bit\n }\n }\n }\n }\n }", "keepInBounds(bounds){\n let x = bounds[0];\n let y = bounds[1];\n let w = bounds[2];\n let h = bounds[3];\n let c = this.getCenter();\n var cx = c[0];\n var cy = c[1];\n\n if(cx < x) cx = x;\n else if(cx > x + w) cx = x + w;\n\n if(cy < y) cy = y;\n else if(cy > y + h) cy = y + h;\n\n this.setCenter(cx, cy);\n }", "inMiddle(){\n if (this._max_start_bound_box['x_max'] - 50 > this._x_location){\n if (this._max_start_bound_box['x_min']+50 < this._x_location){\n if(this._y_location < (this.window.height/2+300)){\n if (this._y_location > (this.window.height/2 -300)){\n return true;\n }\n }\n \n }\n }\n return false;\n }", "function checkBounds() {\n\tif (state.y + 78 > height) {\n\t\tstate.y = -26;\n\t}\n\tif (state.y + 26 < 0) {\n\t\tstate.y += height - 52;\n\t}\n\tif ((state.x + 78) > width){\n\t\tstate.x = -26;\n\t}\n\tif (state.x + 26 < 0){\n\t\tstate.x += width - 52;\n\t}\n}", "boundsCheck(xM, yM, x, y, w, h){ \n if(xM > x && xM < x + w && yM > y && yM < y+ h){\n return true;\n }\n //if test returns false, mouse is not in boundary so button cannot be clicked\n else{\n return false;\n }\n }", "ifInBound(currentPos, coordinates1, coordinates2){\n \n //check for inverted squares\n if(coordinates1.latitude < coordinates2.latitude){\n //swap\n var temp = coordinates1\n coordinates1 = coordinates2\n coordinates2 = temp\n }\n else{\n\n }\n console.log(\"====ALL MY COORDINATES ==== \")\n console.log(currentPos)\n console.log(coordinates1)\n console.log(coordinates2)\n\n if((currentPos.coords.latitude <= coordinates1.latitude) && (currentPos.coords.latitude >= coordinates2.latitude)){\n console.log(\"latitude inbound\")\n if((currentPos.coords.longitude >= coordinates1.longitude) && (currentPos.coords.longitude <= coordinates2.longitude)){\n console.log(\"longitude inbound\")\n return true\n }\n }\n return false\n\n }", "function checkNewMapInputs()\n{\n\tvar x = parseInt($('#newMapSizeX')[0].value);\n\tvar y = parseInt($('#newMapSizeY')[0].value);\n\t\n\tif(!x)\n\t\tx = MIN_MAP_SIZE;\n\t\n\tif(!y)\n\t\ty = MIN_MAP_SIZE;\n\t\n\tif(x < MIN_MAP_SIZE)\n\t\tx = MIN_MAP_SIZE;\n\t\n\tif(y < MIN_MAP_SIZE)\n\t\ty = MIN_MAP_SIZE;\n\t\n\tif(x > MAX_MAP_SIZE)\n\t\tx = MAX_MAP_SIZE;\n\t\n\tif(y > MAX_MAP_SIZE)\n\t\ty = MAX_MAP_SIZE;\n\t\n\t$('#newMapSizeX')[0].value = x;\n\t$('#newMapSizeY')[0].value = y;\n}", "validPosition(coord) {\n return (coord[0] >= 0) && (coord[0] < this.dim) &&\n (coord[1] >= 0) && (coord[1] < this.dim) && \n this.cursor.checkOlds(coord) &&\n this.cursor.checkCurr(coord);\n }", "function checkIfGemCanBeMovedHere(fromPosX, fromPosY, toPosX, toPosY) {\n\nif (toPosX < 0 || toPosX >= BOARD_COLS || toPosY < 0 || toPosY >= BOARD_ROWS)\n{\n return false;\n}\n\nif (fromPosX === toPosX && fromPosY >= toPosY - 1 && fromPosY <= toPosY + 1)\n{\n return true;\n}\n\nif (fromPosY === toPosY && fromPosX >= toPosX - 1 && fromPosX <= toPosX + 1)\n{\n return true;\n}\n\nreturn false;\n}", "function isUpperLeftChanged(){\n var currentCoords = globalMap.getBounds();\n if(upperLeftCorner[axis.y]!=currentCoords[1][axis.y] && upperLeftCorner[axis.x]!=currentCoords[0][axis.x]){\n getMapGeometry();\n console.log('changed');\n }\n}", "function checkIfGemCanBeMovedHere(fromPosX, fromPosY, toPosX, toPosY) {\n\n if (toPosX < 0 || toPosX >= BOARD_COLS || toPosY < 0 || toPosY >= BOARD_ROWS)\n {\n return false;\n }\n\n if (fromPosX === toPosX && fromPosY >= toPosY - 1 && fromPosY <= toPosY + 1)\n {\n return true;\n }\n\n if (fromPosY === toPosY && fromPosX >= toPosX - 1 && fromPosX <= toPosX + 1)\n {\n return true;\n }\n\n return false;\n}", "isInBounds(x, y, r = 5)\n\t{\n\t\tlet camera = this.tree.camera;\n\t\tlet zoom = camera.zoomSmooth;\n\n\t\tlet pos = this.posSmooth.toScreen(camera);\n\t\tlet width = this.width * zoom;\n\t\tlet height = this.height * zoom;\n\n\t\treturn x >= pos.x - r && x < pos.x + width + r && y >= pos.y - r\n\t\t\t&& y < pos.y + height + r;\n\t}", "validatePacmanLocation(){\n if (this.pacman.x >= this.height){\n this.pacman.x = this.height -1;\n }\n if (this.pacman.y > this.width){\n this.pacman.y = this.width -1;\n }\n if (this.pacman.x < 0){\n this.pacman.x = 0;\n }\n if (this.pacman.y < 0){\n this.pacman.y = 0;\n }\n }", "testBounds(xC,yC,xM,yM,r){\n // var d(distance from the centre of the button to the outside boundaries)\n var d = Math.sqrt( Math.pow(xM - xC,2) + Math.pow(yM - yC,2) );\n \n // test condition if d<r then xM and yM is inside boundary\n if(d < r){\n return true;\n }\n else{\n return false;\n }\n\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Concat et2 name together, eg. et2_concat("namespace","test[something]") == "namespace[test][something]"
function et2_form_name(_cname,_name) { var parts = []; for(var i=0; i < arguments.length; ++i) { var name = arguments[i]; if (typeof name == 'string' && name.length > 0) // et2_namespace("","test") === "test" === et2_namespace(null,"test") { parts = parts.concat(name.replace(/]/g,'').split('[')); } } var name = parts.shift(); return parts.length ? name + '['+parts.join('][')+']' : name; }
[ "function getJoinedConcatParts(node, scope) {\n return node.value.parts.map((part) => getPartValue(part, scope)).join('');\n }", "function merge(el1, el2) {\n return el1.concat(' ' + el2); \n}", "function joinNamespace(namespace, name) {\n if (namespace && name) {\n return [namespace, name].join('/');\n } else {\n return namespace;\n }\n }", "function cloudFormationConcat(left, right) {\n if (left === undefined && right === undefined) {\n return '';\n }\n const parts = new Array();\n if (left !== undefined) {\n parts.push(left);\n }\n if (right !== undefined) {\n parts.push(right);\n }\n // Some case analysis to produce minimal expressions\n if (parts.length === 1) {\n return parts[0];\n }\n if (parts.length === 2 && typeof parts[0] === 'string' && typeof parts[1] === 'string') {\n return parts[0] + parts[1];\n }\n // Otherwise return a Join intrinsic (already in the target document language to avoid taking\n // circular dependencies on FnJoin & friends)\n return { 'Fn::Join': ['', instrinsics_1.minimalCloudFormationJoin('', parts)] };\n}", "static concat(left, right) {\n if (left === undefined && right === undefined) {\n return '';\n }\n const parts = new Array();\n if (left !== undefined) {\n parts.push(left);\n }\n if (right !== undefined) {\n parts.push(right);\n }\n // Some case analysis to produce minimal expressions\n if (parts.length === 1) {\n return parts[0];\n }\n if (parts.length === 2 && typeof parts[0] === 'string' && typeof parts[1] === 'string') {\n return parts[0] + parts[1];\n }\n // Otherwise return a Join intrinsic (already in the target document language to avoid taking\n // circular dependencies on FnJoin & friends)\n return { 'Fn::Join': ['', minimalCloudFormationJoin('', parts)] };\n }", "function _ED_NS (x) {\n return EXTENSIONDEV_NS + x;\n}", "function appendKitten(name) {\n \n return kittens.concat(name);\n \n}", "function concatenate(firstWord, secondWord, thirdWord) {\n return '\"'+firstWord.concat (secondWord,thirdWord)+'\"';\n}", "function patchElementsIndex(eles, firstIndex, secondIndex) {\n for (var i = 0; i < eles.length; i++) {\n var name = eles[i].name;\n var idx = name.indexOf(\"[\");\n var idx2 = name.indexOf(\"]\");\n if (idx > 0 && idx2 > idx) {\n eles[i].name = name.substr(0, idx + 1) + firstIndex + name.substr(idx2);\n }\n name = eles[i].name;\n idx = name.indexOf(\"[\", idx + 1);\n idx2 = name.indexOf(\"]\", idx + 1);\n if (idx > 0 && idx2 > idx) {\n eles[i].name = name.substr(0, idx + 1) + secondIndex + name.substr(idx2);\n }\n }\n}", "function combineNames(first,last) {\n return `${first} ${last}`;\n}", "function getConcatenation (firstStr, secondStr) {\r\n return firstStr + ' ' + secondStr;\r\n}", "function swigFilterQualifyNamespace(input) {\n\treturn input.join(\"::\");\n}", "function concat(input1, input2) {}", "function shortenNamespace(item) {\n // dbg.error(\"shortenNamespace - exports:\", exports);\n const separator = exports.nameSeparator; // '.';\n item.fullName = item.name;\n var parts = item.name.split(separator);\n var count = parts.length;\n if (count > exports.nsKeepParts) {\n parts.splice(0, count - exports.nsTruncateToParts);\n var newName = repeatString(exports.truncEllipsis, count - exports.nsKeepParts) + parts.join(separator);\n item.name = newName;\n }\n}", "function concatsss(string1, string2){\n return string1.concat(string2)\n}", "_transformNamespacedFbtElement(node) {\n const {t} = this;\n\n switch (node.type) {\n case 'JSXElement':\n return this._toFbtNamespacedCall(node);\n case 'JSXText':\n return t.stringLiteral(normalizeSpaces(node.value));\n case 'JSXExpressionContainer':\n return t.stringLiteral(\n normalizeSpaces(\n expandStringConcat(this.moduleName, node.expression).value,\n ),\n );\n default:\n throw errorAt(node, `Unknown namespace fbt type ${node.type}`);\n }\n }", "function combine(prev, word) {\n\n // Loop to find the append string\n // which can be broken into\n for (i = 0; i < prev.length - 1; i++) {\n prev[i] += \" \" + word;\n }\n\n return prev;\n}", "function concat_two_strings_default_param_2(str1 = 'one', str2) {\n return '${str1} ${str2}';\n}", "function getLegacyName(tuple) {\n if (Array.isArray(tuple)) {\n var verb = tuple[0]\n var path = getLegacyLambdaName(tuple[1])\n return [`${app}-production-${verb}${path}`, `${app}-staging-${verb}${path}`]\n }\n else {\n var path = getLegacyLambdaName(tuple)\n return [`${app}-production-get${path}`, `${app}-staging-get${path}`]\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Promotion analytics for upgrade messages on course home. eslintdisablenextline classmethodsusethis
configureUpgradeAnalytics() { $('.btn-upgrade').each( (index, button) => { const promotionEventProperties = { promotion_id: 'courseware_verified_certificate_upsell', creative: $(button).data('creative'), name: 'In-Course Verification Prompt', position: $(button).data('position'), }; CourseHome.fireSegmentEvent('Promotion Viewed', promotionEventProperties); $(button).click(() => { CourseHome.fireSegmentEvent('Promotion Clicked', promotionEventProperties); }); }, ); }
[ "calculateUpgradeIncrease() {\n const upgrades = Object.values(this.upgrades);\n let upgradeProductivity = 0;\n upgrades.forEach((upgrade) => {\n if (upgrade.bought) {\n upgradeProductivity += upgrade.productivity;\n }\n });\n this.upgradeIncrease = upgradeProductivity;\n }", "upgrade(){\n\t\tthis.stats += 5;\n\t}", "sendExperiences () {\n console.log('deprecated')\n }", "constructor() {\n /**\n * The localized call-out message of the promotion.\n * @member {String} callout_msg\n */\n this.callout_msg = undefined;\n\n /**\n * The URL addressing the promotion.\n * @member {String} link\n */\n this.link = undefined;\n\n /**\n * The unique id of the promotion.\n * @member {String} promotion_id\n */\n this.promotion_id = undefined;\n\n /**\n * The promotional price for this product.\n * @member {Number} promotional_price\n */\n this.promotional_price = undefined;\n }", "constructor() {\n /**\n * The localized call-out message of the promotion.\n * @member {String} callout_msg\n */\n this.callout_msg = undefined;\n\n /**\n * The currency that a promotion can be applied to. A null value means that the promotion applies to all allowed currencies.\n * @member {String} currency\n */\n this.currency = undefined;\n\n /**\n * The localized detailed description of the promotion.\n * @member {String} details\n */\n this.details = undefined;\n\n /**\n * An optional product search link. Product promotions that are marked searchable provide a product search link with the promotion id as refinement.\n * @member {String} discounted_products_link\n */\n this.discounted_products_link = undefined;\n\n /**\n * The end date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ . The time zone of the date time is always UTC.\n * @member {Date} end_date\n */\n this.end_date = undefined;\n\n /**\n * The unique id of the promotion.\n * @member {String} id\n */\n this.id = undefined;\n\n /**\n * The URL to the promotion image.\n * @member {String} image\n */\n this.image = undefined;\n\n /**\n * The localized name of the promotion.\n * @member {String} name\n */\n this.name = undefined;\n\n /**\n * The start date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ. The time zone of the date time is always UTC.\n * @member {Date} start_date\n */\n this.start_date = undefined;\n }", "constructor() {\n /**\n *\n * @member {String} code\n */\n this.code = undefined\n /**\n *\n * @member {String} title\n */\n this.title = undefined\n /**\n *\n * @member {String} promotionType\n */\n this.promotionType = undefined\n /**\n *\n * @member {String} startDate\n */\n this.startDate = undefined\n /**\n *\n * @member {String} endDate\n */\n this.endDate = undefined\n /**\n *\n * @member {String} description\n */\n this.description = undefined\n /**\n *\n * @member {Array.<String>} couldFireMessages\n */\n this.couldFireMessages = undefined\n /**\n *\n * @member {Array.<String>} firedMessages\n */\n this.firedMessages = undefined\n /**\n * @member {module:models/Image} productBanner\n */\n this.productBanner = undefined\n /**\n *\n * @member {Boolean} enabled\n */\n this.enabled = undefined\n /**\n *\n * @member {Number} priority\n */\n this.priority = undefined\n /**\n *\n * @member {String} promotionGroup\n */\n this.promotionGroup = undefined\n /**\n *\n * @member {Array.<module:models/PromotionRestriction>} restrictions\n */\n this.restrictions = undefined\n }", "function getPromotion(){\n return promotion;\n }", "_getHowCostCalculatedLink() {\n return (\n <InlineNotification\n message={this.props.textDictionary.howDeliveryCostsAreCalculatedText}\n className={ClassNameUtil.getClassNames(['fbra_addressSelectedScreen__howCostCalculatedLink', 'fbra_test_addressSelectedScreen__howCostCalculatedLink'])}\n />\n );\n }", "function promoImpressions() {\n\t\tvar className = \"ua_addPromoImpression\";\n\n\t\tif (! $(\".\" + className).size()) return;\n\n\t\tvar properties = ['id', 'name', 'creative', 'position'];\n\n\t\t$(\".\" + className).each(function() {\n\t\t\tmarkAsSent($(this), className);\n\t\t\tvar fieldsObj = {};\n\t\t\tfor (var i in properties) {\n\t\t\t\tvar p = properties[i];\n\t\t\t\tif ($(this).data(p)) {\n\t\t\t\t\tfieldsObj[p] = $(this).data(p);\n\t\t\t\t}\n\t\t\t}\n\t\t\tga('ec:addPromo', fieldsObj);\n\t\t});\n\n\t\tgaSendNI();\n\t}", "constructor() {\n /**\n * A price adjustment that provides details of the discount that was applied. This is null for custom\n * price adjustments created without discount details.\n * @member {module:models/Discount} applied_discount\n */\n this.applied_discount = undefined\n\n /**\n * The coupon code that triggered the promotion, provided the price adjustment was created as\n * the result of a promotion being triggered by a coupon.\n * @member {String} coupon_code\n */\n this.coupon_code = undefined\n\n /**\n * The user who created the price adjustment.\n * @member {String} created_by\n */\n this.created_by = undefined\n\n /**\n * Returns the value of attribute 'creationDate'.\n * @member {Date} creation_date\n */\n this.creation_date = undefined\n\n /**\n * A flag indicating whether this price adjustment was created by custom logic. This flag is set\n * to true unless the price adjustment was created by the promotion engine.\n * @member {Boolean} custom\n */\n this.custom = undefined\n\n /**\n * The text describing the item in more detail.\n * @member {String} item_text\n */\n this.item_text = undefined\n\n /**\n * Returns the value of attribute 'lastModified'.\n * @member {Date} last_modified\n */\n this.last_modified = undefined\n\n /**\n * A flag indicating whether this price adjustment was created in a manual process. For custom price\n * adjustments created using the shop API, this always returns true. Using the scripting API,\n * however, it is possible to set this to true or false, according to the use case.\n * @member {Boolean} manual\n */\n this.manual = undefined\n\n /**\n * The adjustment price.\n * @member {Number} price\n */\n this.price = undefined\n\n /**\n * The price adjustment id (uuid).\n * @member {String} price_adjustment_id\n */\n this.price_adjustment_id = undefined\n\n /**\n * The id of the related promotion. Custom price adjustments can be assigned any promotion\n * id so long it is not used by a price adjustment belonging to the same item and is not used\n * by promotion defined in the promotion engine. If not specified, a promotion id is generated.\n * @member {String} promotion_id\n */\n this.promotion_id = undefined\n\n /**\n * The URL addressing the related promotion.\n * @member {String} promotion_link\n */\n this.promotion_link = undefined\n\n /**\n * The reason why this price adjustment was made.\n * @member {module:models/PriceAdjustment.ReasonCodeEnum} reason_code\n */\n this.reason_code = undefined\n }", "constructor() {\n /**\n * A price adjustment that provides details of the discount that was applied. This is null for custom\n * price adjustments created without discount details.\n * @member {module:models/Discount} applied_discount\n */\n this.applied_discount = undefined;\n\n /**\n * The coupon code that triggered the promotion, provided the price adjustment was created as\n * the result of a promotion being triggered by a coupon.\n * @member {String} coupon_code\n */\n this.coupon_code = undefined;\n\n /**\n * The user who created the price adjustment.\n * @member {String} created_by\n */\n this.created_by = undefined;\n\n /**\n * Returns the value of attribute 'creationDate'.\n * @member {Date} creation_date\n */\n this.creation_date = undefined;\n\n /**\n * A flag indicating whether this price adjustment was created by custom logic. This flag is set\n * to true unless the price adjustment was created by the promotion engine.\n * @member {Boolean} custom\n */\n this.custom = undefined;\n\n /**\n * The text describing the item in more detail.\n * @member {String} item_text\n */\n this.item_text = undefined;\n\n /**\n * Returns the value of attribute 'lastModified'.\n * @member {Date} last_modified\n */\n this.last_modified = undefined;\n\n /**\n * A flag indicating whether this price adjustment was created in a manual process. For custom price\n * adjustments created using the shop API, this always returns true. Using the scripting API,\n * however, it is possible to set this to true or false, according to the use case.\n * @member {Boolean} manual\n */\n this.manual = undefined;\n\n /**\n * The adjustment price.\n * @member {Number} price\n */\n this.price = undefined;\n\n /**\n * The price adjustment id (uuid).\n * @member {String} price_adjustment_id\n */\n this.price_adjustment_id = undefined;\n\n /**\n * The id of the related promotion. Custom price adjustments can be assigned any promotion\n * id so long it is not used by a price adjustment belonging to the same item and is not used\n * by promotion defined in the promotion engine. If not specified, a promotion id is generated.\n * @member {String} promotion_id\n */\n this.promotion_id = undefined;\n\n /**\n * The URL addressing the related promotion.\n * @member {String} promotion_link\n */\n this.promotion_link = undefined;\n\n /**\n * The reason why this price adjustment was made.\n * @member {module:models/PriceAdjustment.ReasonCodeEnum} reason_code\n */\n this.reason_code = undefined;\n }", "function analytics() {\n console.log('Função de analytics');\n}", "logAnalyticsOnChangePayment() {\n const { analyticsContent } = this.props;\n const analyticsData = {\n event: ANALYTICS_SUB_EVENT_IN,\n eventCategory: ANALYTICS_EVENT_CATEGORY,\n eventAction: analyticsEventActionPayment,\n eventLabel: 'change payment method',\n customerleadlevel: null,\n customerleadtype: null,\n leadsubmitted: 0,\n newslettersignupcompleted: 0\n };\n analyticsContent(analyticsData);\n }", "onPromotionStarted(event) {\n\n // Save the information that a model is promotion \n this.promotions[event.context.modelName] = true;\n\n // Start the Promotion poller\n new PromotionPoller(event.context.modelName).start();\n\n }", "onTrackAnalytics() {\n const { analyticsContent } = this.props;\n const orderId = this.getOrderId();\n const analyticsData = {\n event: EVENT_NAME,\n eventCategory: EVENT_CATEGORY,\n eventAction: 'my orders|find order',\n eventLabel: 'track shipment',\n ordertype: this.getOrderType(),\n orderid: `${orderId}`\n };\n analyticsContent(analyticsData);\n }", "calcUpgradeMonePerS () {\n this.monePerS = 0;\n\n for (const u of this.upgrades) {\n if (u.hasOwnProperty('monePerS')) {\n this.monePerS += (u.monePerS * u.amount); \n }\n }\n }", "function totalFeedback() {}", "produireScooter()\n\t{\n\t\t//A faire\n\t}", "__userUpgradedHandler(event) {\n\n this._user = event.detail.user;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
1. loadAboutScreen function is being called from the about button click on the landing screen 2. Purpose of this function is to initialise the about screen and load various elements of the screen 3. It takes no arguments 4. Usage Example: 5. Function Call loadAboutScreen() 6. Data returned No data returned
function loadAboutScreen() { //add background class to body addBackground(); //destroy previous page's back button, if any destroyBackButton(); //empties the contents of game-display-div which is the wrapper div of the game UI clearDisplayDiv(); //assigns the element with id 'game-display-div' to the file variable for further use gameDisplayDiv = document.getElementById("game-display-div"); //creates UI of the about screen createAboutScreenButtons(); }
[ "function run () {\n if (m.debug > m.NODEBUG) { console.log('screens.aboutScreen.run'); }\n \n // one-time initialization\n if (needsInit) {\n // draw logo\n var $canvasBox = $('#aboutLogoBox');\n m.logo.drawLogo($canvasBox, false, 0, 0, 0);\n\n $('#aboutMenuButton')\n // navigate to the screen stored in the button's data\n .click( function (event) {\n var nextScreenId = $(event.target).data('screen');\n m.screens.showScreen(nextScreenId);\n }\n );\n \n // redraw logo when window is resized\n $(window)\n .resize(function (event) {\n $canvasBox.empty();\n m.logo.drawLogo($canvasBox, false, 0, 0, 0);\n }\n );\n }\n needsInit = false;\n }", "function loadAboutContent() {\n loadContent(\"about\");\n}", "function loadAboutScreen(){\n diplayNameEl = $('#displayName'),\n bioEl = $('#bio');\n $.getJSON('json/users.json', function(users){\n usersData = users;\n let me = usersData.users[0];\n diplayNameEl.html(me.displayName);\n bioEl.html(me.bio);\n });\n}", "function populateAboutScreen(app){\n clearDescription();\n var description = document.createElement('div');\n description.setAttribute('class' , 'app-info');\n description.innerHTML = app.about;\n container.appendChild(description);\n }", "function loadScreen()\n\t{\n\t\treadMainScreenLanguageFile(function ()\n\t\t{\n\t\t\tupdateUI();\n\t\t\tpushScreenCallback();\n\t\t}, mainScreenLanguageFileReadingFailed);\n\t}", "function loadTitleScreen () {\n loadClothing();\n \n $titleScreen.show();\n}", "function loadScreen()\n\t{\n\t\treadQuickPlayLanguageFile(function ()\n\t\t{\n\t\t\tupdateUI();\n\t\t\tpushScreenCallback();\n\t\t}, readQuickPlayLanguageFileReadingFailed);\n\t}", "function setUpPage() {\n //2.5\\\\function creates the events for my page buttons\n createEventListeners();\n ///3\\\\\\function starts out with the introduction\n startingIntro();\n}", "function openAboutUM(){\n\t$.mobile.loading('show', {\n text: x_('Ustad Mobile..'),\n textVisible: true,\n theme: 'b',\n html: \"\"}\n );\n var\taboutLink = \"ustadmobile_aboutus.html\"; //Maybe make this a global variable ?..\n \n\t//aboutLink = \"/\" + aboutLink; \n openMenuLink(aboutLink, \"slide\");\n\t//$.mobile.changePage(aboutLink, { changeHash: false, transition: \"slide\"});\n}", "function initializePageAbout()\n{\n\tconsole.log('initializePageAbout called');\n\t\n\tvar $pageAbout = $('#pageAbout');\n\tvar $pageAboutContent = $('#pageAboutContent');\n\t\n\tvar $centersDiv = $('div.centers', $pageAbout );\n\tvar $contactsDiv = $('div.contacts', $pageAbout );\n\n\t$pageAboutContent.hide();\n\t// Show the page loading dialog\n\tshowPageLoadingMsg();\n\t\t\n\t$('div.errorDiv', $pageAbout ).remove();\n\t$('div.center', $centersDiv ).remove();\t\n\t$('p, div.contactsEmails', $contactsDiv ).remove();\n\t\n\tvar dataProvider = DataProvider.getInstance();\n\t// Query the dataProvider in order to get info related to categories\n\tdataProvider.getAboutInformation({\n\t\tsuccess: \n\t\t\tfunction( aboutInfo )\n\t\t\t{\n\t\t\t\tvar $pageAbout = $('#pageAbout');\n\t\t\t\tvar $pageAboutContent = $('#pageAboutContent');\n\t\t\t\tvar $greenNumberImg = $('div.greenNumber img', $pageAbout );\n\t\t\t\t\t\t\t\t\n\t\t\t\t$greenNumberImg.attr('src', aboutInfo.greenNumber );\n\t\t\t\t\n\t\t\t\tfor( var index = 0; index < aboutInfo.centers.length; index++ )\n\t\t\t\t\tappendCenterDetails( aboutInfo.centers[index] );\n\t\t\t\t\n\t\t\t\tappendContactsDetails( aboutInfo.contacts );\t\t\t\t\n\t\t\t\t\n\t\t\t\t$pageAboutContent.show();\n\t\t\t\t// Hide the page loading dialog\n\t\t\t\thidePageLoadingMsg();\n\t\t\t\t\n\t\t\t\t$pageAbout.jqmData('initialized', 'true');\n\t\t\t},\n\t\terror:\n\t\t\tfunction( errorData )\n\t\t\t{\n\t\t\t\tvar $pageAbout = $('#pageAbout');\n\n\t\t\t\t// Hide the page loading dialog\n\t\t\t\thidePageLoadingMsg();\n\t\t\t\t\n\t\t\t\thandleError( $pageAbout, errorData );\n\t\t\t}\n\t});\n}", "function question_screen_call_next_level()\n {\n //Call to the Insruction Screen Loading and set up functions\n createInstructionScreenUI();\n createLevelInstruction();\n }", "function initMainScreen() {\n //Initialize the user list for \"Contacts\" tab\n initContactList();\n\n //Initialize the chat list for \"Chats\" tab\n initChatList();\n\n // now show the side panel icon\n $('.rightSidePaneBtnDiv').show();\n}", "function showAbout(msg) {\r\n showInfo(msg);\r\n}", "function about() {\n $.mobile.changePage(\"about.html\", \n { transition: \"fade\", role: \"dialog\", } );\n }", "function loadAboutMe() {\n\tsetUrlToCurrentContent('about_me');\n\tsetContentAndNavigationInfo();\n}", "function loadGame()\n{\t\n\t/*\n\t\tcall the createBasicUIScreen to create a basic UI.\n\t\tIt can take upto 5 parameters. \n\t\t\n\t\tThe first one specifies whether the screen has a back button or not.\n\t\tIf there is a back button then we pass the function as second parameter to assign it to the onclick listener \n\t\tthat must execute when back button is pressed.\n\t\t\n\t\tThird parameter states the class name for center div if its other than centerUIDiv class.\n\t\tHere we have passed undefined as we want the default centerUIDiv class.\n\t\t\n\t\tThe fourth parameter is the heading we want above the buttons.\n\t\t\n\t\tThe fifth parameter is the class that we want to apply to the heading.\n\t*/\n\tvar centerUIDiv = createBasicUIScreen(false, undefined, undefined,\"Memory Game\", \"heading\");\n\t\n\t/*\n\t\tcreate a music button div with image of pause and play\n\t\tthat toggles between play and pause.\n\t\t\n\t\tHere we have called createMusicButton() that does not take any parameters.\n\t\tIt returns a button with the image of pause or play and has onclick\n\t\tlistener attached to it. So clicking the button will on & off the music.\n\t*/\n\tvar musicButton = createMusicButton();\n\tmusicButton.classList.add(\"musicButton\");\n\t\n\t//Create a Play button with class set to \"menuButtonsDiv\" and passing a function that \n\t//will be attached to the play button.\n\tvar okButtonDiv = createButtonDiv(\"Play\", \"menuButtonsDiv\", showCategories);\n\tcenterUIDiv.appendChild(okButtonDiv);\n\t\n\t//Create a scoreboard button with class set to \"menuButtonsDiv\" and passing a function that \n\t//will be attached to the scoreboard button.\n\tvar scoreButtonDiv = createButtonDiv(\"Scores\", \"menuButtonsDiv\", showScoreBoard);\n\tcenterUIDiv.appendChild(scoreButtonDiv);\n\t\n\t//Create a tutorials button with class set to \"menuButtonsDiv\" and passing a function that \n\t//will be attached to the tutorials button.\n\tvar tutorialsButtonDiv = createButtonDiv(\"Tutorials\", \"menuButtonsDiv\", showTutorials);\n\tcenterUIDiv.appendChild(tutorialsButtonDiv);\n\t\n\t//Create a settings button with class set to \"menuButtonsDiv\" and passing a function that \n\t//will be attached to the settings button.\n\tvar settingsButtonDiv = createButtonDiv(\"Settings\", \"menuButtonsDiv\", showSettings);\n\tcenterUIDiv.appendChild(settingsButtonDiv);\t\n\t\n\t\n\t/*\n\t\tcheck whether the game is being loaded for the first time.\n\t\tIf its loaded for the first time then ask whether the user wants to turn music on or not.\n\t\tThen ask whether he/she wants to watch the tutorials or not.\n\t\tAnd redirect him/her to the according to the selection.\n\t*/\n\tif(window.localStorage.getItem(\"firstTimeLoad\") === null || window.localStorage.getItem(\"firstTimeLoad\").length == 0 )\n\t{\n\t\t//Ask the user whether they want to watch the tutorials or not.\n\t\tcreatePopup(\"Do you want to watch the tutorials first?\", [\n\t\t\t{\n\t\t\t\tname: \"Yes\",\n\t\t\t\tfunc: showTutorials\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"No\",\n\t\t\t\tfunc: loadApp\n\t\t\t},\n\t\t]);\n\t\t//Ask for the music.\n\t\tmusicPopup();\n\t\t//Set the firstTimeLoad to false so that next time user is not asked.\n\t\twindow.localStorage.setItem(\"firstTimeLoad\",\"false\");\n\t}\n}", "function AmandaLoad() {\n\n\t// If we must show the intro scene\n\tif (!AmandaIntroDone) {\n\t\tif (CurrentCharacter != null) DialogLeave();\n\t\tSarahIntroType = \"AmandaExplore\";\n\t\tCommonSetScreen(\"Cutscene\", \"SarahIntro\");\n\t\tAmandaInside = true;\n\t\tAmandaIntroDone = true;\n\t}\n\n}", "function loadAboutCode() {\n\tsetUrlToCurrentContent('about_the_code');\n\tsetContentAndNavigationInfo();\n}", "function loadBackButton() {\n /*calls createBackButton function which creates the UI of the back button and return the element\n which gets stored in the backButton variable*/\n var backButton = createBackButton();\n\n //binds loadAboutData function and playButtonAudio function on back button's click\n backButton.onclick = function () {\n console.log('click');\n loadAboutScreen();\n playButtonAudio();\n }\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
change the dateValue, beginTime, endTime by direction and periodType.
function changeDateHandler(direction){ if(direction < 0){ direction = -1 }else{ direction = 1 } if (periodType == 'day') { dateValue = moment(dateValue).add(1*direction, 'days').format('YYYY-MM-DD') updateDayBeginEndQueryTime() } else if (periodType == 'week') { dateValue = moment(dateValue).add(7*direction, 'days').format('YYYY-MM-DD') updateWeekBeginEndQueryTime() } else if (periodType == 'month') { dateValue = moment(dateValue).add(1*direction, 'months').format('YYYY-MM-DD') updateMonthBeginEndQueryTime() } else if (periodType == 'year') { dateValue = moment(dateValue).add(1*direction, 'years').format('YYYY-MM-DD') updateYearBeginEndQueryTime() } if(host) host.action() console.log('changeDateHandler, beginTime: ' + beginTime + ', endTime: ' + endTime) }
[ "function changeDate(newDate) {\n if (periodType == 'day') {\n \tconsole.log('changeDate day')\n dateValue = moment(newDate).format('YYYY-MM-DD')\n updateDayBeginEndQueryTime()\n }else if(periodType == 'week'){\n console.log('changeDate week')\n \t\tdateValue = getWeekBeginDate(new Date(moment(newDate)))\n \t\tupdateWeekBeginEndQueryTime()\n\t }else if(periodType == 'month'){\n\t \tconsole.log('changeDate month')\n \t\tdateValue = moment(newDate).format('YYYY-MM-01')\n \t\tupdateMonthBeginEndQueryTime()\n\t }else if(periodType == 'year'){\n\t \tconsole.log('changeDate year')\n \t\tdateValue = moment(newDate).format('YYYY-01-01')\n \t\tupdateYearBeginEndQueryTime()\n }\n else if(periodType == 'total'){\n console.log('changeDate total')\n dateValue = moment(newDate).format('YYYY-01-01')\n updateTotalBeginEndQueryTime()\n\t }else{\n\t \tconsole.log('changeDate other, ' + periodType)\n\t \tperiodType = 'day'\n\t \tupdateDayBeginEndQueryTime()\n\t }\t \t \n }", "setTimePeriod (state, data) {\n console.log(\"time period setter:\" + data);\n state.timePeriod = data;\n }", "function setTimeRange( params ) {\n var\n begin, end;\n switch( params.duration ) {\n case 'day':\n begin = moment( params.dateFrom ).startOf( 'day' );\n end = moment( params.dateFrom ).endOf( 'day' );\n break;\n case 'week':\n begin = moment( params.dateFrom ).startOf( 'week' );\n end = moment( params.dateFrom ).endOf( 'week' );\n break;\n case 'month':\n begin = moment( params.dateFrom ).startOf( 'month' );\n end = moment( params.dateFrom ).endOf( 'month' );\n break;\n case 'all':\n begin = moment( params.dateFrom );\n break;\n }\n // overwrite any current value\n params.dateFrom = begin;\n params.dateTo = end;\n }", "function updateTime(period) {\n\tif (period === -1){\n\t\t// Show datepicker and set time data\n\t\t$(\"#from\").datepicker('setDate', propertiesList[\"from\"]);\n\t\t$(\"#to\").datepicker('setDate', propertiesList[\"to\"]);\n\t\t$(\".timeSelectGroup\").show();\n\t}\n\telse {\n\t\t// Hide datepicker and set time data\n\t\tvar from_date = moment().subtract(parseInt(period), \n\t\t\t\t\t\t'months').format(\"YYYY-MM-DD\");\n\t\tvar to_date = moment().format(\"YYYY-MM-DD\");\n\t\tpropertiesList[\"from\"] = from_date;\n\t\tpropertiesList[\"to\"] = to_date;\n\t\t$(\".timeSelectGroup\").hide();\n\t}\n}", "updatePeriod(start, end)\n {\n // Clip to min/max year\n start = Math.max(start, this._minYear);\n start = Math.min(start, this._maxYear);\n end = Math.max(end, this._minYear);\n end = Math.min(end, this._maxYear);\n this._periodStartDiv.html(start);\n this._periodEndDiv.html(end);\n $('#sliderHandleMinYear').text(start);\n $('#sliderHandleMaxYear').text(end);\n }", "function updatePeriodValues(periodId, change) {\n var baseDate = new Date(document.querySelector('.indicator-period[period-id=\"' + periodId + '\"] .toTime').textContent);\n var resultEl = document.querySelector('.indicator-period[period-id=\"' + periodId + '\"]').closest('.indicator-group');\n var allPeriods = resultEl.querySelectorAll('.indicator-period');\n\n for (var i = 0; i < allPeriods.length; i++) {\n var period = allPeriods[i];\n var periodDate = new Date(period.querySelector('.fromTime').textContent);\n\n if (periodDate.getTime() >= baseDate.getTime()) {\n // This indicator period is more recent that in the original\n // We need to update it's value with the new changes from the original\n\n var oldStart = parseInt(period.getAttribute('period-start'));\n var oldActual = parseInt(period.getAttribute('period-actual'));\n var oldProgress = parseInt(period.querySelector('.indicator-bar-progress-text'));\n\n\n var baseline = parseInt(period.getAttribute('indicator-baseline'));\n var target = parseInt(period.getAttribute('period-target'));\n var newValue = oldActual + change;\n var completionPercentage = ((newValue - baseline) / (target - baseline)) * 100;\n\n if (completionPercentage > 100) completionPercentage = 100;\n\n period.setAttribute('period-start', oldStart + change);\n period.setAttribute('period-actual', newValue);\n period.querySelector('.indicator-bar-progress-text').textContent = newValue;\n period.querySelector('.indicator-bar-progress').style.left = completionPercentage + '%';\n period.querySelector('.indicator-bar-progress-amount').style.width = completionPercentage + '%';\n }\n }\n }", "function onPeriodStartChangeHandler(e){\n let newPeriodStart = e.target.value\n setPeriod((prevState)=>({...prevState, period_start: newPeriodStart}))\n }", "updateEndDate(opt_date) {\n this.endTime_ = opt_date || (new Date()).getTime();\n this.updateScrollbarRange_(this.graphScrolledToRightEdge_());\n }", "function processChange(value) {\n //If we are working with the start input\n if(cntrl.getStartCal()) {\n scope.start = value; \n }\n //If we are working with the end input\n else {\n scope.end = value;\n }\n //Autoclose after selection\n cntrl.updateDateRange();\n }", "update() {\n\t\tconst timeSpan = this.main.dataHandler.timeSpan;\n\n\t\tthis.slider.updateOptions({\n\t\t\trange: {\n\t\t\t\t'min': timeSpan.minTime || 0,\n\t\t\t\t'max': timeSpan.maxTime || 1\n\t\t\t}\n\t\t})\n\t\tthis.slider.set([timeSpan.startTime, timeSpan.endTime]);\n\n\t\tdocument.getElementById('timebar-from').valueAsDate = new Date(timeSpan.startTime);\n\t\tdocument.getElementById('timebar-to').valueAsDate = new Date(timeSpan.endTime);\n\t}", "function onPeriodEndChangeHandler(e){\n let newPeriodEnd = e.target.value\n setPeriod((prevState)=>({...prevState, period_end: newPeriodEnd}))\n }", "setNewDate({ start, end }) {\n const analysisStart = moment(start).valueOf();\n const analysisEnd = moment(end).valueOf();\n const {\n startDate: currentStart,\n endDate: currentEnd\n } = this.getProperties('startDate', 'endDate');\n\n if (analysisStart < currentStart) {\n const newStartDate = +currentStart - (currentEnd - currentStart);\n\n this.setProperties({\n startDate: newStartDate,\n analysisStart,\n analysisEnd\n });\n } else {\n this.setProperties({\n analysisStart,\n analysisEnd\n });\n }\n }", "updateDateRange(startTime) {\n this.changeStateValue('timestamp', startTime.format('X'));\n }", "updateDate(newDate, dateType) {\n if(dateType === 'start') {\n this.setState({\n players: this.state.players,\n startDate: newDate,\n endDate: this.state.endDate,\n projection: this.state.projection\n });\n } else if (dateType === 'end') {\n this.setState({\n players: this.state.players,\n startDate: this.state.startDate,\n endDate: newDate,\n projection: this.state.projection\n });\n }\n }", "function addPeriod (periodType,num,consoleName,dateToAddField,dateToUpdateField) {\n\tvar console = View.panels.get(consoleName);\n\tvar record = console.getRecord();\n\n\tvar date_start = record.getValue(dateToAddField);\n\n\tif (console.getFieldValue(dateToAddField) != '') {\n\n\t\tif (periodType == \"MONTH\") {\n\t\t\tdate_start = date_start.add(Date.MONTH, num);\n\t\t} else if (periodType == \"YEAR\") {\n\t\t\tdate_start = date_start.add(Date.YEAR, num);\n\t\t}\n\n\t\trecord.setValue(dateToUpdateField, date_start);\n\n\t\tconsole.onModelUpdate();\n\t}\n}", "function fnSetPeriods() {\r\n\t\t\t\r\n\t\t\tvar startTime = new Date(properties.guiActivityStartController.getValue());\r\n\t\t\tvar endTime = new Date(properties.guiActivityEndController.getValue());\t\t\t\t\t\r\n\t\t\tvar interval = intervalController.getValue();\r\n\t\t\tvar aPeriods = [];\r\n\t\t\tfor (var i = 0; i <= (endTime - startTime) ; i =+ interval) {\t\r\n\t\t\t\taPeriods.push(dateTimeFormat( Math.min(startTime.setMinutes(startTime.getMinutes() + i), endTime ) ));\t\r\n\t\t\t}\r\n\t\t\t//properties.periodController.options(aPeriods); //doesn't work\t\t\r\n\t\t\t//https://stackoverflow.com/questions/18260307/dat-gui-update-the-dropdown-list-values-for-a-controller\r\n\t\t\tfnSetNewOptions(properties.periodController,aPeriods);\t\t\r\n\r\n\t\t\r\n\t\t} //fnSetPeriods", "set(input) {\n let typeChange = fn.isDefined(input.type) && input.type !== this.type;\n let sizeChange = fn.isDefined(input.size) && input.size !== this.size;\n if (typeChange || sizeChange) {\n let focus = fn.coalesce(input.otherwiseFocus, 0.4999);\n let prefer = fn.coalesce(input.preferToday, true);\n let size = fn.coalesce(input.size, this.size);\n let type = fn.coalesce(input.type, this.type);\n let around = fn.coalesce(input.around, this.days[Math.floor((this.days.length - 1) * focus)]);\n let today = Day.today();\n if (!around || (prefer && this.span.matchesDay(today))) {\n around = today;\n }\n let meta = Calendar.TYPES[type];\n let start = meta.getStart(Day.parse(around), size, focus);\n let end = meta.getEnd(start, size, focus);\n this.span.start = start;\n this.span.end = end;\n this.type = type;\n this.size = size;\n this.moveStart = meta.moveStart;\n this.moveEnd = meta.moveEnd;\n }\n else if (input.around) {\n let focus = fn.coalesce(input.otherwiseFocus, 0.4999);\n let around = Day.parse(input.around);\n let type = this.type;\n let size = this.size;\n let meta = Calendar.TYPES[type];\n let start = meta.getStart(around, size, focus);\n let end = meta.getEnd(start, size, focus);\n this.span.start = start;\n this.span.end = end;\n }\n this.fill = fn.coalesce(input.fill, this.fill);\n this.minimumSize = fn.coalesce(input.minimumSize, this.minimumSize);\n this.repeatCovers = fn.coalesce(input.repeatCovers, this.repeatCovers);\n this.listTimes = fn.coalesce(input.listTimes, this.listTimes);\n this.eventsOutside = fn.coalesce(input.eventsOutside, this.eventsOutside);\n this.updateRows = fn.coalesce(input.updateRows, this.updateRows);\n this.updateColumns = fn.coalesce(input.updateColumns, this.updateColumns);\n this.eventSorter = fn.coalesce(input.eventSorter, this.eventSorter);\n this.parseMeta = fn.coalesce(input.parseMeta, this.parseMeta);\n this.parseData = fn.coalesce(input.parseData, this.parseData);\n if (fn.isArray(input.events)) {\n this.setEvents(input.events, true);\n }\n if (!input.delayRefresh) {\n this.refresh();\n }\n return this;\n }", "function updateInputRange(range, isCreate){\n var start = moment(range[0].trim(), 'MM/DD/YYYY hh:mm a').format(\"YYYY-MM-DD HH:mm\");\n var end = moment(range[1].trim(), 'MM/DD/YYYY hh:mm a').format(\"YYYY-MM-DD HH:mm\");\n if(isCreate){\n var start_element=document.getElementById(\"startTimeCreate\");\n start_element.setAttribute(\"value\", start);\n var end_element=document.getElementById(\"endTimeCreate\");\n end_element.setAttribute(\"value\", end);\n }else{\n var start_element=document.getElementById(\"startTimeChange\");\n start_element.setAttribute(\"value\", start);\n var end_element=document.getElementById(\"endTimeChange\");\n end_element.setAttribute(\"value\", end);\n };\n\n}", "setDateRange (dateRange) {\n this.dateRange = dateRange\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine whether the given properties match those of a `CfnApiProps`
function CfnApiPropsValidator(properties) { if (!cdk.canInspect(properties)) { return cdk.VALIDATION_SUCCESS; } const errors = new cdk.ValidationResults(); errors.collect(cdk.propertyValidator('accessLogSetting', CfnApi_AccessLogSettingPropertyValidator)(properties.accessLogSetting)); errors.collect(cdk.propertyValidator('auth', CfnApi_AuthPropertyValidator)(properties.auth)); errors.collect(cdk.propertyValidator('binaryMediaTypes', cdk.listValidator(cdk.validateString))(properties.binaryMediaTypes)); errors.collect(cdk.propertyValidator('cacheClusterEnabled', cdk.validateBoolean)(properties.cacheClusterEnabled)); errors.collect(cdk.propertyValidator('cacheClusterSize', cdk.validateString)(properties.cacheClusterSize)); errors.collect(cdk.propertyValidator('cors', cdk.unionValidator(CfnApi_CorsConfigurationPropertyValidator, cdk.validateString))(properties.cors)); errors.collect(cdk.propertyValidator('definitionBody', cdk.validateObject)(properties.definitionBody)); errors.collect(cdk.propertyValidator('definitionUri', cdk.unionValidator(CfnApi_S3LocationPropertyValidator, cdk.validateString))(properties.definitionUri)); errors.collect(cdk.propertyValidator('endpointConfiguration', cdk.validateString)(properties.endpointConfiguration)); errors.collect(cdk.propertyValidator('methodSettings', cdk.listValidator(cdk.validateObject))(properties.methodSettings)); errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name)); errors.collect(cdk.propertyValidator('stageName', cdk.requiredValidator)(properties.stageName)); errors.collect(cdk.propertyValidator('stageName', cdk.validateString)(properties.stageName)); errors.collect(cdk.propertyValidator('tracingEnabled', cdk.validateBoolean)(properties.tracingEnabled)); errors.collect(cdk.propertyValidator('variables', cdk.hashValidator(cdk.validateString))(properties.variables)); return errors.wrap('supplied properties not correct for "CfnApiProps"'); }
[ "function CfnRestApiPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n errors.collect(cdk.propertyValidator('apiKeySourceType', cdk.validateString)(properties.apiKeySourceType));\n errors.collect(cdk.propertyValidator('binaryMediaTypes', cdk.listValidator(cdk.validateString))(properties.binaryMediaTypes));\n errors.collect(cdk.propertyValidator('body', cdk.validateObject)(properties.body));\n errors.collect(cdk.propertyValidator('bodyS3Location', CfnRestApi_S3LocationPropertyValidator)(properties.bodyS3Location));\n errors.collect(cdk.propertyValidator('cloneFrom', cdk.validateString)(properties.cloneFrom));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('endpointConfiguration', CfnRestApi_EndpointConfigurationPropertyValidator)(properties.endpointConfiguration));\n errors.collect(cdk.propertyValidator('failOnWarnings', cdk.validateBoolean)(properties.failOnWarnings));\n errors.collect(cdk.propertyValidator('minimumCompressionSize', cdk.validateNumber)(properties.minimumCompressionSize));\n errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));\n errors.collect(cdk.propertyValidator('parameters', cdk.hashValidator(cdk.validateString))(properties.parameters));\n errors.collect(cdk.propertyValidator('policy', cdk.validateObject)(properties.policy));\n return errors.wrap('supplied properties not correct for \"CfnRestApiProps\"');\n}", "function CfnApiPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('apiKeySelectionExpression', cdk.validateString)(properties.apiKeySelectionExpression));\n errors.collect(cdk.propertyValidator('basePath', cdk.validateString)(properties.basePath));\n errors.collect(cdk.propertyValidator('body', cdk.validateObject)(properties.body));\n errors.collect(cdk.propertyValidator('bodyS3Location', CfnApi_BodyS3LocationPropertyValidator)(properties.bodyS3Location));\n errors.collect(cdk.propertyValidator('corsConfiguration', CfnApi_CorsPropertyValidator)(properties.corsConfiguration));\n errors.collect(cdk.propertyValidator('credentialsArn', cdk.validateString)(properties.credentialsArn));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('disableExecuteApiEndpoint', cdk.validateBoolean)(properties.disableExecuteApiEndpoint));\n errors.collect(cdk.propertyValidator('disableSchemaValidation', cdk.validateBoolean)(properties.disableSchemaValidation));\n errors.collect(cdk.propertyValidator('failOnWarnings', cdk.validateBoolean)(properties.failOnWarnings));\n errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));\n errors.collect(cdk.propertyValidator('protocolType', cdk.validateString)(properties.protocolType));\n errors.collect(cdk.propertyValidator('routeKey', cdk.validateString)(properties.routeKey));\n errors.collect(cdk.propertyValidator('routeSelectionExpression', cdk.validateString)(properties.routeSelectionExpression));\n errors.collect(cdk.propertyValidator('tags', cdk.hashValidator(cdk.validateString))(properties.tags));\n errors.collect(cdk.propertyValidator('target', cdk.validateString)(properties.target));\n errors.collect(cdk.propertyValidator('version', cdk.validateString)(properties.version));\n return errors.wrap('supplied properties not correct for \"CfnApiProps\"');\n}", "function CfnApiMappingPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiMappingKey', cdk.validateString)(properties.apiMappingKey));\n errors.collect(cdk.propertyValidator('domainName', cdk.requiredValidator)(properties.domainName));\n errors.collect(cdk.propertyValidator('domainName', cdk.validateString)(properties.domainName));\n errors.collect(cdk.propertyValidator('stage', cdk.requiredValidator)(properties.stage));\n errors.collect(cdk.propertyValidator('stage', cdk.validateString)(properties.stage));\n return errors.wrap('supplied properties not correct for \"CfnApiMappingProps\"');\n}", "function CfnRestApiPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('apiKeySourceType', cdk.validateString)(properties.apiKeySourceType));\n errors.collect(cdk.propertyValidator('binaryMediaTypes', cdk.listValidator(cdk.validateString))(properties.binaryMediaTypes));\n errors.collect(cdk.propertyValidator('body', cdk.validateObject)(properties.body));\n errors.collect(cdk.propertyValidator('bodyS3Location', CfnRestApi_S3LocationPropertyValidator)(properties.bodyS3Location));\n errors.collect(cdk.propertyValidator('cloneFrom', cdk.validateString)(properties.cloneFrom));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('disableExecuteApiEndpoint', cdk.validateBoolean)(properties.disableExecuteApiEndpoint));\n errors.collect(cdk.propertyValidator('endpointConfiguration', CfnRestApi_EndpointConfigurationPropertyValidator)(properties.endpointConfiguration));\n errors.collect(cdk.propertyValidator('failOnWarnings', cdk.validateBoolean)(properties.failOnWarnings));\n errors.collect(cdk.propertyValidator('minimumCompressionSize', cdk.validateNumber)(properties.minimumCompressionSize));\n errors.collect(cdk.propertyValidator('mode', cdk.validateString)(properties.mode));\n errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));\n errors.collect(cdk.propertyValidator('parameters', cdk.hashValidator(cdk.validateString))(properties.parameters));\n errors.collect(cdk.propertyValidator('policy', cdk.validateObject)(properties.policy));\n errors.collect(cdk.propertyValidator('tags', cdk.listValidator(cdk.validateCfnTag))(properties.tags));\n return errors.wrap('supplied properties not correct for \"CfnRestApiProps\"');\n}", "function CfnApiKeyPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiKeyId', cdk.validateString)(properties.apiKeyId));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('expires', cdk.validateNumber)(properties.expires));\n return errors.wrap('supplied properties not correct for \"CfnApiKeyProps\"');\n}", "function CfnApiPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('accessLogSetting', CfnApi_AccessLogSettingPropertyValidator)(properties.accessLogSetting));\n errors.collect(cdk.propertyValidator('auth', CfnApi_AuthPropertyValidator)(properties.auth));\n errors.collect(cdk.propertyValidator('binaryMediaTypes', cdk.listValidator(cdk.validateString))(properties.binaryMediaTypes));\n errors.collect(cdk.propertyValidator('cacheClusterEnabled', cdk.validateBoolean)(properties.cacheClusterEnabled));\n errors.collect(cdk.propertyValidator('cacheClusterSize', cdk.validateString)(properties.cacheClusterSize));\n errors.collect(cdk.propertyValidator('canarySetting', CfnApi_CanarySettingPropertyValidator)(properties.canarySetting));\n errors.collect(cdk.propertyValidator('cors', cdk.unionValidator(CfnApi_CorsConfigurationPropertyValidator, cdk.validateString))(properties.cors));\n errors.collect(cdk.propertyValidator('definitionBody', cdk.validateObject)(properties.definitionBody));\n errors.collect(cdk.propertyValidator('definitionUri', cdk.unionValidator(CfnApi_S3LocationPropertyValidator, cdk.validateString))(properties.definitionUri));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('disableExecuteApiEndpoint', cdk.validateBoolean)(properties.disableExecuteApiEndpoint));\n errors.collect(cdk.propertyValidator('domain', CfnApi_DomainConfigurationPropertyValidator)(properties.domain));\n errors.collect(cdk.propertyValidator('endpointConfiguration', cdk.unionValidator(CfnApi_EndpointConfigurationPropertyValidator, cdk.validateString))(properties.endpointConfiguration));\n errors.collect(cdk.propertyValidator('gatewayResponses', cdk.validateObject)(properties.gatewayResponses));\n errors.collect(cdk.propertyValidator('methodSettings', cdk.listValidator(cdk.validateObject))(properties.methodSettings));\n errors.collect(cdk.propertyValidator('minimumCompressionSize', cdk.validateNumber)(properties.minimumCompressionSize));\n errors.collect(cdk.propertyValidator('models', cdk.validateObject)(properties.models));\n errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));\n errors.collect(cdk.propertyValidator('openApiVersion', cdk.validateString)(properties.openApiVersion));\n errors.collect(cdk.propertyValidator('stageName', cdk.requiredValidator)(properties.stageName));\n errors.collect(cdk.propertyValidator('stageName', cdk.validateString)(properties.stageName));\n errors.collect(cdk.propertyValidator('tags', cdk.hashValidator(cdk.validateString))(properties.tags));\n errors.collect(cdk.propertyValidator('tracingEnabled', cdk.validateBoolean)(properties.tracingEnabled));\n errors.collect(cdk.propertyValidator('variables', cdk.hashValidator(cdk.validateString))(properties.variables));\n return errors.wrap('supplied properties not correct for \"CfnApiProps\"');\n}", "function CfnApiKeyPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('customerId', cdk.validateString)(properties.customerId));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('enabled', cdk.validateBoolean)(properties.enabled));\n errors.collect(cdk.propertyValidator('generateDistinctId', cdk.validateBoolean)(properties.generateDistinctId));\n errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));\n errors.collect(cdk.propertyValidator('stageKeys', cdk.listValidator(CfnApiKey_StageKeyPropertyValidator))(properties.stageKeys));\n errors.collect(cdk.propertyValidator('tags', cdk.listValidator(cdk.validateCfnTag))(properties.tags));\n errors.collect(cdk.propertyValidator('value', cdk.validateString)(properties.value));\n return errors.wrap('supplied properties not correct for \"CfnApiKeyProps\"');\n}", "function CfnApiKeyPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n errors.collect(cdk.propertyValidator('customerId', cdk.validateString)(properties.customerId));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('enabled', cdk.validateBoolean)(properties.enabled));\n errors.collect(cdk.propertyValidator('generateDistinctId', cdk.validateBoolean)(properties.generateDistinctId));\n errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));\n errors.collect(cdk.propertyValidator('stageKeys', cdk.listValidator(CfnApiKey_StageKeyPropertyValidator))(properties.stageKeys));\n errors.collect(cdk.propertyValidator('value', cdk.validateString)(properties.value));\n return errors.wrap('supplied properties not correct for \"CfnApiKeyProps\"');\n}", "function hasComplexProp(props) {\n return Object.values(props).some(prop => ['object', 'function'].includes(typeof prop) || Array.isArray(prop));\n}", "function validateProperties(props) {\n let validProps = getProperties();\n for (let i in props) {\n if (!validProps.includes(props[i])) {\n return false;\n }\n }\n return true;\n}", "function hasProp() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_OPTIONS;\n var propToCheck = options.ignoreCase ? prop.toUpperCase() : prop;\n return props.some(function (attribute) {\n // If the props contain a spread prop, then refer to strict param.\n if (attribute.type === 'JSXSpreadAttribute') {\n return !options.spreadStrict;\n }\n\n var currentProp = options.ignoreCase ? (0, _propName2.default)(attribute).toUpperCase() : (0, _propName2.default)(attribute);\n return propToCheck === currentProp;\n });\n}", "function hasProp() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_OPTIONS;\n\n var propToCheck = options.ignoreCase ? prop.toUpperCase() : prop;\n\n return props.some(function (attribute) {\n // If the props contain a spread prop, then refer to strict param.\n if (attribute.type === 'JSXSpreadAttribute') {\n return !options.spreadStrict;\n }\n\n var currentProp = options.ignoreCase ? (0, _propName2.default)(attribute).toUpperCase() : (0, _propName2.default)(attribute);\n\n return propToCheck === currentProp;\n });\n}", "function CfnApiCachePropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('apiCachingBehavior', cdk.requiredValidator)(properties.apiCachingBehavior));\n errors.collect(cdk.propertyValidator('apiCachingBehavior', cdk.validateString)(properties.apiCachingBehavior));\n errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));\n errors.collect(cdk.propertyValidator('atRestEncryptionEnabled', cdk.validateBoolean)(properties.atRestEncryptionEnabled));\n errors.collect(cdk.propertyValidator('transitEncryptionEnabled', cdk.validateBoolean)(properties.transitEncryptionEnabled));\n errors.collect(cdk.propertyValidator('ttl', cdk.requiredValidator)(properties.ttl));\n errors.collect(cdk.propertyValidator('ttl', cdk.validateNumber)(properties.ttl));\n errors.collect(cdk.propertyValidator('type', cdk.requiredValidator)(properties.type));\n errors.collect(cdk.propertyValidator('type', cdk.validateString)(properties.type));\n return errors.wrap('supplied properties not correct for \"CfnApiCacheProps\"');\n}", "function checkIfProps(props, propsToCheck){\r\n\tif(!propsToCheck || !(propsToCheck instanceof Array)){\r\n\t\treturn false;\r\n\t}\r\n\r\n\tfor(var i=0,z=propsToCheck.length;i<z;i++){\r\n\t\tif(props[propsToCheck[i]]){\r\n\t\t\treturn true;\r\n\t\t} \r\n\t}\r\n\r\n\treturn false;\r\n}", "function CfnHttpApiPropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('accessLogSetting', CfnHttpApi_AccessLogSettingPropertyValidator)(properties.accessLogSetting));\n errors.collect(cdk.propertyValidator('auth', CfnHttpApi_HttpApiAuthPropertyValidator)(properties.auth));\n errors.collect(cdk.propertyValidator('corsConfiguration', cdk.unionValidator(CfnHttpApi_CorsConfigurationObjectPropertyValidator, cdk.validateBoolean))(properties.corsConfiguration));\n errors.collect(cdk.propertyValidator('defaultRouteSettings', CfnHttpApi_RouteSettingsPropertyValidator)(properties.defaultRouteSettings));\n errors.collect(cdk.propertyValidator('definitionBody', cdk.validateObject)(properties.definitionBody));\n errors.collect(cdk.propertyValidator('definitionUri', cdk.unionValidator(CfnHttpApi_S3LocationPropertyValidator, cdk.validateString))(properties.definitionUri));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('disableExecuteApiEndpoint', cdk.validateBoolean)(properties.disableExecuteApiEndpoint));\n errors.collect(cdk.propertyValidator('domain', CfnHttpApi_HttpApiDomainConfigurationPropertyValidator)(properties.domain));\n errors.collect(cdk.propertyValidator('failOnWarnings', cdk.validateBoolean)(properties.failOnWarnings));\n errors.collect(cdk.propertyValidator('routeSettings', CfnHttpApi_RouteSettingsPropertyValidator)(properties.routeSettings));\n errors.collect(cdk.propertyValidator('stageName', cdk.validateString)(properties.stageName));\n errors.collect(cdk.propertyValidator('stageVariables', cdk.hashValidator(cdk.validateString))(properties.stageVariables));\n errors.collect(cdk.propertyValidator('tags', cdk.hashValidator(cdk.validateString))(properties.tags));\n return errors.wrap('supplied properties not correct for \"CfnHttpApiProps\"');\n}", "function CfnRoutePropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiKeyRequired', cdk.validateBoolean)(properties.apiKeyRequired));\n errors.collect(cdk.propertyValidator('authorizationScopes', cdk.listValidator(cdk.validateString))(properties.authorizationScopes));\n errors.collect(cdk.propertyValidator('authorizationType', cdk.validateString)(properties.authorizationType));\n errors.collect(cdk.propertyValidator('authorizerId', cdk.validateString)(properties.authorizerId));\n errors.collect(cdk.propertyValidator('modelSelectionExpression', cdk.validateString)(properties.modelSelectionExpression));\n errors.collect(cdk.propertyValidator('operationName', cdk.validateString)(properties.operationName));\n errors.collect(cdk.propertyValidator('requestModels', cdk.validateObject)(properties.requestModels));\n errors.collect(cdk.propertyValidator('requestParameters', cdk.validateObject)(properties.requestParameters));\n errors.collect(cdk.propertyValidator('routeKey', cdk.requiredValidator)(properties.routeKey));\n errors.collect(cdk.propertyValidator('routeKey', cdk.validateString)(properties.routeKey));\n errors.collect(cdk.propertyValidator('routeResponseSelectionExpression', cdk.validateString)(properties.routeResponseSelectionExpression));\n errors.collect(cdk.propertyValidator('target', cdk.validateString)(properties.target));\n return errors.wrap('supplied properties not correct for \"CfnRouteProps\"');\n}", "function CfnRule_MatchPropertyValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n if (typeof properties !== 'object') {\n errors.collect(new cdk.ValidationResult('Expected an object, but received: ' + JSON.stringify(properties)));\n }\n errors.collect(cdk.propertyValidator('httpMatch', cdk.requiredValidator)(properties.httpMatch));\n errors.collect(cdk.propertyValidator('httpMatch', CfnRule_HttpMatchPropertyValidator)(properties.httpMatch));\n return errors.wrap('supplied properties not correct for \"MatchProperty\"');\n}", "function CfnApiV2PropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n errors.collect(cdk.propertyValidator('apiKeySelectionExpression', cdk.validateString)(properties.apiKeySelectionExpression));\n errors.collect(cdk.propertyValidator('description', cdk.validateString)(properties.description));\n errors.collect(cdk.propertyValidator('disableSchemaValidation', cdk.validateBoolean)(properties.disableSchemaValidation));\n errors.collect(cdk.propertyValidator('name', cdk.requiredValidator)(properties.name));\n errors.collect(cdk.propertyValidator('name', cdk.validateString)(properties.name));\n errors.collect(cdk.propertyValidator('protocolType', cdk.requiredValidator)(properties.protocolType));\n errors.collect(cdk.propertyValidator('protocolType', cdk.validateString)(properties.protocolType));\n errors.collect(cdk.propertyValidator('routeSelectionExpression', cdk.requiredValidator)(properties.routeSelectionExpression));\n errors.collect(cdk.propertyValidator('routeSelectionExpression', cdk.validateString)(properties.routeSelectionExpression));\n errors.collect(cdk.propertyValidator('version', cdk.validateString)(properties.version));\n return errors.wrap('supplied properties not correct for \"CfnApiV2Props\"');\n}", "function CfnApiMappingV2PropsValidator(properties) {\n if (!cdk.canInspect(properties)) {\n return cdk.VALIDATION_SUCCESS;\n }\n const errors = new cdk.ValidationResults();\n errors.collect(cdk.propertyValidator('apiId', cdk.requiredValidator)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiId', cdk.validateString)(properties.apiId));\n errors.collect(cdk.propertyValidator('apiMappingKey', cdk.validateString)(properties.apiMappingKey));\n errors.collect(cdk.propertyValidator('domainName', cdk.requiredValidator)(properties.domainName));\n errors.collect(cdk.propertyValidator('domainName', cdk.validateString)(properties.domainName));\n errors.collect(cdk.propertyValidator('stage', cdk.requiredValidator)(properties.stage));\n errors.collect(cdk.propertyValidator('stage', cdk.validateString)(properties.stage));\n return errors.wrap('supplied properties not correct for \"CfnApiMappingV2Props\"');\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value of the query param at the start of the string or an empty string
function matchUrlQueryParamValue(str) { var match = str.match(QUERY_PARAM_VALUE_RE); return match ? match[0] : ''; }
[ "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n }", "function matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n }", "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "parseQueryString() {\n const splits = this.props.location.search.split('=')\n return splits[1] ? splits[1] : ''\n }", "function extractQuery(string) {\n if(string.indexOf('?') >= 0) {\n return string.split('?')[1];\n } else if(string.indexOf('=') >= 0) {\n return string;\n } else {\n return '';\n }\n }", "getQueryString() {}", "function getQuery() {\n return currentPathQuery.split('?')[1];\n }", "function stripStartOfQuery(queryString){\n var ret = '';\n var queryIndex = 0;\n var length = queryString != undefined ? queryString.length : 0;\n if(length > 0){\n while(queryIndex < length &&\n (queryString.charAt(queryIndex) === '?' ||\n queryString.charAt(queryIndex) === '#') ){\n queryIndex++;\n }\n if(queryIndex < length){\n ret = queryString.substring(queryIndex);\n }\n }\n return ret;\n }", "function CleanQueryStringValue(key){\n\tvar thing = new String(Request.Querystring(key));\n if(HasValue(thing)) {\n\n\t\tif (thing.indexOf(',') > 0) {\n\t\t\tvar Idarr = thing.split(\",\");\n\t\t\treturn Idarr[0];\n\t\t}else{\n\t\t\treturn thing;\n\t\t}\n\t}\n\treturn thing;\n}", "function getURLBeforeParams(url)\n{\n\treturn url.split(\"?\")[0] || null;\n}", "GetUrlQuery(){\n let url = window.location.href;\n /*get Index of ?*/\n let Index = url.indexOf(\"?\");\n let queryfirst = url.substr(Index);\n let Index2 = queryfirst.indexOf(\"=\")+1;\n let querySecound = queryfirst.substr(Index2);\n return querySecound\n }", "function extractQuery(string) {\n if(string.indexOf('?') >= 0) {\n return string.split('?')[1];\n } else {\n return string;\n }\n }", "function parseQuery() {\n\t\tvar result = window.location.search.match(/\\&q=(.*?)\\&/);\n\t\tif (result && result.length > 0) {\n\t\t\treturn result[1];\n\t\t}\n\t}", "function normaliseQueryParam (previous, current) {\n return [\n hasQueryParam(previous) ? '&' : '?',\n current.substring(1)\n ].join('')\n}", "function checkIfFirstParameterInURL(url) {\n var character;\n if (url.indexOf(\"?\") >= 0) {\n character = \"&\";\n } else {\n character = \"?\";\n }\n\n return character;\n}", "function getFirstQsVar(name, qs) {\r\n\tvar qs = \"&\"+qs;\r\n\tvar re = new RegExp(\"&\"+name+\"=([^&]*)\", \"i\");\r\n\tvar found = qs.match(re);\r\n\tif (found) {\r\n\t\treturn unescape(found[1]);\r\n\t}\r\n\treturn null;\r\n}", "function getParameter(param){\n var value = \"\";\n var query = window.location.search;\n var iStart = query.indexOf(param);\n var iLen = param.length;\n var iCurrent = iStart + iLen + 1;\n while(query.charAt(iCurrent) != '&'\n && query.charAt(iCurrent) != \"\"){\n value += query.charAt(iCurrent);\n iCurrent++;\n }\n return value;\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the colors of all the tiles in the window
function updateTiles() { forEachTile(function update(row, col) { setTimeout(function () { tileColor = jQuery.Color().hsla({ hue: (tileColor.hue() + (Math.random() * tileMaxHueShift)) % 360, saturation: tileMinSaturation + (Math.random() * tileSaturationSpread), lightness: tileMinLightness + (Math.random() * tileLightnessSpread), alpha: tileOpacity }); var currentColor = jQuery.Color($("#" + row + "-" + col), "backgroundColor"); // when to update the Tiles if (currentColor.lightness() < tileLightnessDeadZoneLowerBound() || currentColor.lightness() > tileLightnessDeadZoneUpperBound() || currentColor.lightness() == 1) { $("#" + row + "-" + col).animate({ backgroundColor: tileColor }, tileFadeDuration); } }, getTileDelayTime(row, col)); }); }
[ "function updateTileColor() {\r\n var grid, i, count;\r\n\r\n grid = this;\r\n\r\n for (i = 0, count = grid.allNonContentTiles.length; i < count; i += 1) {\r\n grid.allNonContentTiles[i].setColor(config.tileHue, config.tileSaturation,\r\n config.tileLightness);\r\n }\r\n }", "function newColors() {\r\n // below loops gives a new color to white tiles\r\n for (i = 0; i < 8; i++) {\r\n for (j = 0; j < 8; j++) {\r\n if (allTiles[i][j].color == \"#FFFFFF\") {\r\n allTiles[i][j].color = findColor();\r\n }\r\n }\r\n }\r\n // copy new colors to the tiles array \r\n setColors(tiles);\r\n}", "function addTileColor() {\n\n for (var i=0; i<numberOfTiles; i++) {\n var tileAtIndex = $('.tile').eq(i);\n tileAtIndex.css('background', colorTiles(i));\n }\n\n}", "function updateColors() {\n if (!mapIs2D) {\n mymap.setPaintProperty('taz','fill-extrusion-height',\n {property: 'trips',type:'identity'});\n mymap.setPaintProperty('taz-selected','fill-extrusion-height',\n {property: 'trips',type:'identity'});\n }\n\n if (app.sliderValue==0) {\n mymap.getSource('taz-source').setData(jsonByDay[chosenDir][day]);\n } else {\n switchToHourlyView(app.sliderValue);\n }\n}", "function setUpTiles(){\n\tfor(var i = 0; i < tiles.length; i ++) {\n\t\ttiles[i].addEventListener(\"click\", function(){\n\t\t\tvar clickedColor = this.style.backgroundColor;\n\t\t\tif(clickedColor === winningColor) {\n\t\t\t\tfor(var i = 0; i < tiles.length; i ++) {\n\t\t\t\t\tchangeColors(clickedColor);\n\n\t\t\t\t\tsetBackgroundColor(h1, clickedColor);\n\n\t\t\t\t\tchangeButtonTextColor(clickedColor);\n\n\t\t\t\t\tsetContent(message, \"Correct!\");\n\t\t\t\t\tsetContent(resetButton, \"Play Again?\");\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor(var i = 0; i < tiles.length; i ++) {\n\t\t\t\t\tsetBackgroundColor(this, \"rgb(35, 35, 35)\");\n\t\t\t\t\tsetContent(message, \"Try Again!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t};\n}", "function reColorTiles()\n{\n //recolor anything that is .colorable\n $(\".colorable\").each(function() {\n //find the new color to apply\n var newcolor;\n \n if($(this).attr(\"data-tilecolor\") != null)\n newcolor = $(this).attr(\"data-tilecolor\");\n else\n newcolor = $(this).parents(\".box\").attr(\"data-tilecolor\");\n \n //apply it to the specified css style\n $(this).css($(this).attr(\"data-colorable\"), newcolor);\n });\n}", "updateTiles() {\n var tileIndex = 0;\n for (var x = -1; x <= this.getTilesWide(); x++) {\n for (var y = -1; y <= this.getTilesHigh(); y++) {\n this.updateTile(\n this.getTiles()[tileIndex],\n new Position2d(x, y)\n );\n tileIndex++;\n }\n }\n }", "function setAllToNormalColor(){\r\n for (d=0; d<KMap.nLevels; d++){\r\n for (h=0; h<KMap.Height; h++){\r\n for (w=0; w<KMap.Width; w++){\r\n document.getElementById(KMap[d][w][h].Button_id).style.backgroundColor = normalColor;\r\n }}}\r\n}", "resetTiles() {\n for (const tile of this.tilesOnPage) {\n tile.style.backgroundColor = this.tileColor\n tile.style.opacity = null\n }\n }", "function changeColors(color) {\n\tfor(var i = 0; i < tiles.length; i ++) {\n\t\tsetBackgroundColor(tiles[i], color);\n\t}\n}", "update(){\r\n this.updateTilePositions();\r\n this.updateTileStyles();\r\n }", "function updateGrid(){\r\n for(let row = 0; row < numRows; row++){\r\n for(let col = 0; col < numCols; col++){\r\n let element = cells[row][col];\r\n if(lifeworld.world[row][col] == 1){\r\n element.style.backgroundColor= getColor(row, col);\r\n }else{\r\n element.style.backgroundColor=\"black\";\r\n }\r\n }\r\n }\r\n}", "function setTilesColorSchemes() {\r\n var arr = [];\r\n arr.push({\"name\" : \"lightblue-white\" , \"backgroundColor\" : \"rgb(23, 137, 230)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"blue-white\" , \"backgroundColor\" : \"rgb(71, 132, 230)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"darkblue-white\" , \"backgroundColor\" : \"rgb(58, 111, 180)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"deepblue-white\" , \"backgroundColor\" : \"rgb(57, 68, 143)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"tinyblue-white\" , \"backgroundColor\" : \"rgb(58, 74, 180)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"lightaqua-white\" , \"backgroundColor\" : \"rgb(92, 177, 230)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"aqua-white\" , \"backgroundColor\" : \"rgb(58, 180, 135)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"darkaqua-white\" , \"backgroundColor\" : \"rgb(71, 166, 199)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"lightyellow-white\" , \"backgroundColor\" : \"rgb(240, 201, 44)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"yellow-white\" , \"backgroundColor\" : \"rgb(245, 163, 0)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"orange-white\" , \"backgroundColor\" : \"rgb(245, 131, 0)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"white-lightblue\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(45, 132, 164)\"});\r\n arr.push({\"name\" : \"white-blue\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(59, 75, 181)\"});\r\n arr.push({\"name\" : \"white-darkblue\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(32, 84, 151)\"});\r\n arr.push({\"name\" : \"white-tinyblue\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(65, 113, 164)\"});\r\n arr.push({\"name\" : \"white-aqua\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(72, 167, 199)\"});\r\n arr.push({\"name\" : \"white-green\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(85, 147, 31)\"});\r\n arr.push({\"name\" : \"white-lightred\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(179, 35, 35)\"});\r\n arr.push({\"name\" : \"white-red\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(209, 0, 0)\"});\r\n arr.push({\"name\" : \"white-darkred\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(164, 50, 65)\"});\r\n arr.push({\"name\" : \"white-gray\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(185, 113, 49)\"});\r\n arr.push({\"name\" : \"white-yellow\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(240, 201, 45)\"});\r\n arr.push({\"name\" : \"white-pink\" , \"backgroundColor\" : \"rgb(255, 255, 255)\" , \"color\" : \"rgb(104, 48, 136)\"});\r\n arr.push({\"name\" : \"lightgray-white\" , \"backgroundColor\" : \"rgb(218, 126, 44)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"gray-white\" , \"backgroundColor\" : \"rgb(187, 114, 49)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"darkgray-white\" , \"backgroundColor\" : \"rgb(224, 107, 0)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"lime-white\" , \"backgroundColor\" : \"rgb(115, 180, 58)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"darklime-white\" , \"backgroundColor\" : \"rgb(85, 147, 31)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"lightgreen-white\" , \"backgroundColor\" : \"rgb(79, 196, 118)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"darkgreen-white\" , \"backgroundColor\" : \"rgb(58, 180, 58)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"tinygreen-white\" , \"backgroundColor\" : \"rgb(58, 176, 180)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"ligthred-white\" , \"backgroundColor\" : \"rgb(229, 76, 41)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"red-white\" , \"backgroundColor\" : \"rgb(217, 26, 20)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"darkred-white\" , \"backgroundColor\" : \"rgb(164, 51, 67)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"ligthpink-white\" , \"backgroundColor\" : \"rgb(200, 70, 201)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"pink-white\" , \"backgroundColor\" : \"rgb(134, 58, 180)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n arr.push({\"name\" : \"tinypink-white\" , \"backgroundColor\" : \"rgb(104, 48, 137)\" , \"color\" : \"rgba(255, 255, 255, 0.95)\"});\r\n return arr;\r\n }", "function loopThroughColors() {\n\tcolorTiles.forEach(function(tile){ // turns off click function for tiles\n\t\ttile.off('click');\n\t})\n\tnewArray.forEach(function(target, index, arr){\n\t\tshowColor(target, (index+1), arr);\n\t});\n}", "function grassUpdate() {\n for (let i = 0; i < grass_tiles.length; i++) {\n grass_tiles[i].regrow();\n grass_tiles[i].stateCheck();\n }\n}", "updateBackgroundColor() {\n this.mapProperties.updateBackgroundColor();\n Manager.GL.updateBackgroundColor(this.mapProperties.backgroundColor);\n }", "function updateColors () {\n // ADJUST COLOR VARIABLES FOR COLOR VALUE\n r = redSlider.value;\n g = greenSlider.value;\n b = blueSlider.value;\n\n // UPDATE ALL COLORS WITH NEW VALUES\n setColors(r, g, b);\n}", "function redrawTiles(self) {\r\n //Redraw the whole tile, not just this vtf\r\n var tiles = self.tiles;\r\n var mvtLayer = self.mvtLayer;\r\n\r\n for (var id in tiles) {\r\n var tileZoom = parseInt(id.split(\":\")[0]);\r\n var mapZoom = self.map.getZoom();\r\n if (tileZoom === mapZoom) {\r\n //Redraw the tile\r\n mvtLayer.redrawTile(id);\r\n }\r\n }\r\n }", "function updateColors() {\nsetInterval(function () {\n \n setColor();\n \n },60000);\n \n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When a picture is removed, all pictures are reorganized
function reorganizeImgs(ImgToRemove) { let $individual = findSelectedIndividuals()[0]; let miniPics = []; $('#mini .miniPic').each(function() { miniPics.push($(this).css('background-image')); }); miniPics.splice(miniPics.indexOf(ImgToRemove), 1); $('#miniBottom').empty(); $('#miniSide .row').empty(); for (let i = 0; i < miniPics.length; i++) { displayMiniPic('<div class="miniPic" style="height: 100%; width: 100%; background-image: ' + miniPics[i].replace(/"/g, '') + '; background-size: contain; background-repeat: no-repeat; background-position: center center;"></div>', false); } if ($lastSelectedImageIndex === $('.miniPic').length && $lastSelectedImageIndex !== 0) { // Not 'length - 1' because an image has already been removed $('.miniPic:eq(' + ($lastSelectedImageIndex - 1) + ')').click(); } else { $('.miniPic:eq(' + ($lastSelectedImageIndex) + ')').click(); if ($lastSelectedImageIndex === 0) { const bigPicWithURL = $('#bigPic').css('background-image'); $individual.find('.IDPicture img').attr('src', bigPicWithURL.substring(5, bigPicWithURL.length - 2)); if ($individual.find('.tracking').html() === 'yes') { localStorage.setItem($individual.find('.IDName').html(), bigPicWithURL.replace(/"/g, '')); } } } }
[ "function tryDeleteAgain() {\n deleteResizedImage();\n }", "function removePics() {\r\n\t\tpicsContainer.innerHTML= '';\r\n\t\tsumButtonSwitch();\r\n}", "function clearImages() {\n let photos = id(\"pictures\").children;\n while (photos.length > 0) {\n photos[0].remove();\n }\n }", "rearrangeImages() {\n if (!this.images || !this.images.length) return;\n const oldImages = this.images.concat(),\n rowLen = oldImages.length,\n colLen = oldImages[0].length;\n\n this.images = [];\n \n for (let i = 0; i < rowLen; i++) {\n for (let j = 0; j < colLen && oldImages[i][j]; j++) {\n this.appendImages(oldImages[i][j]);\n }\n }\n }", "function removeImages(x) {\n listImages.splice(x, 1);\n $('#badgeFoto').text(listImages.length);\n listaFotosAux();\n}", "function deleteMultipleThumbs() {\n console.log (currentAlbum.images);\n\n //remove images in reverse order\n //the array selectedImgs is a sorted array (low - > high)\n //removing from currentAlbum array in reverse means elements acn be removed from the current AlbumArray\n //without breaking the relationship between the indices of the the currentAlbum array and the selectedImgs array\n for(var i=selectedImgs.length-1; i>=0; i--) {\n console.log(\"delete img \" + selectedImgs[i]);\n console.log( currentAlbum.images[selectedImgs[i]]);\n\n //delete image from the array of images\n currentAlbum.images.splice(selectedImgs[i],1);\n\n //remove the thumb from the DOM\n $('#thumb' + selectedImgs[i]).remove();\n\n\n }\n\n //console.log (currentAlbum.images);\n\n //have to redraw the image thumbs so that thumb0 corresponds to image zero in the currentAlbum Array\n createImageThumbs();\n\n //update the length of the album\n $(\"#numImages\").html(currentAlbum.images.length);\n\n\n //set slider values\n setSliderValues(slide, (currentAlbum.images.length-1), currentImgNum, currentAlbum.images[currentImgNum].time);\n\n //**********************************************************************************************************\n //********************* make server call to remove the image from the database *****************************\n //**********************************************************************************************************\n\n //clear the array of selected thumbs\n selectedImgs=[];\n\n }", "function deleteLittlepic() {\n var myContaner = document.querySelector(\".pictures\");\n while (myContaner.firstChild) {\n myContaner.removeChild(myContaner.firstChild);\n }\n }", "clearNewImages(){\n this.errors = [];\n for(var i=this.files.length - 1; i > 0; i--){\n let image = this.files[i];\n image.hidden = true;\n image.render();\n if (image.initial == false) this.files.splice(i, 1);\n }\n }", "function clearPictures() {\n let imgs = qsa(\"#pictures img\");\n for (let i = 0; i < imgs.length; i++) {\n imgs[i].parentNode.removeChild(imgs[i]);\n }\n }", "remove() {\n delete spa.imagelistmodel.images[this.id];\n }", "afterImageDelete() {\n this.fetchJourneyData();\n }", "function deletePhotos() {\n $('#photoTable :checkbox:checked').each(function (index, input) {\n var tr, src;\n tr = $(input).parent().parent();\n src = tr.find('img').attr('src');\n tr.remove();\n\n // Remove the image from the layoutArea if present.\n layoutArea.children('img[src=\"' + src + '\"]').remove();\n });\n\n deleteButton.attr('disabled', true);\n }", "function deleteImage() {\n $(\"#redact-image-quest\").children().remove();\n questRedactImage = null;\n}", "function deleteImg() {\n if (previousIndex >= 0) {\n for (let i = 0; i < optionsArray[previousIndex].length; i++) {\n let removeImg = document.getElementById(\"closet-bottom-imgs-\" + i);\n removeImg.remove();\n }\n }\n \n}", "function deleteLgImg() {\n\t$(this).parent().find(\".bigImg\").remove();\n}", "function removePicFromPinboard(){\n\t$(\"#afbeeldingpinboard\"+$IDphotoremove).remove();\n\t$IDphotoremove++;\n}", "function deleteImage(event) {\n setImages(\n images.filter(\n (image) => image.key !== event.target.getAttribute(\"data-index\")\n )\n );\n }", "function delImage(nr) { \r\n if (nr == \"Gen\") {\r\n if (Selection < 0 || Selection > Images.length - 1) {\r\n return;\r\n }\r\n nr = Selection; \r\n Selection = -1;\r\n } else {\r\n nr = parseInt(nr, 10);\r\n }\r\n \r\n Images.splice(nr, 1);\r\n generateImgListEditor(); \r\n}", "remove() {\n console.log(\"Removing image!\");\n\n // // first clean up the backend\n this.stateMap.backend.remove();\n\n // then clean up the frontend\n this.jqueryMap.$imagebox.remove();\n\n return true;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
2. Register the task at some point in your app by providing the same name, and some configuration options for how the background fetch should behave Note: This does NOT need to be in the global scope and CAN be used in your React components!
async function registerBackgroundFetchAsync() { // console.log('registering background fetch...') return BackgroundFetch.registerTaskAsync(BACKGROUND_FETCH_TASK, { minimumInterval: 60 * 15, // 15 minutes stopOnTerminate: false, // android only, startOnBoot: true, // android only }) }
[ "async function registerBackgroundFetchAsync() {\n const { status } = await Location.requestBackgroundPermissionsAsync();\n if (status === 'granted') {\n await Location.startLocationUpdatesAsync(BACKGROUND_FETCH_TASK, {\n accuracy: Location.Accuracy.Highest,\n timeInterval: 15000,\n distanceInterval: 1,\n deferredUpdatesInterval: 1,\n deferredUpdatesDistance: 1,\n showsBackgroundLocationIndicator: false,\n foregroundService: {\n notificationTitle: 'Inicialized background',\n notificationBody: 'description',\n notificationColor: '#RRGGBB'\n },\n pausesUpdatesAutomatically: false\n });\n }\n}", "async prepareTask() {\n this.options.task && (this.task = await this.addService('task', new this.TaskTransport(this.options.task)));\n\n if(!this.task) {\n return; \n }\n\n if(this.options.task.workerChangeInterval) {\n await this.task.add('workerChange', this.options.task.workerChangeInterval, () => this.changeWorker());\n }\n }", "async function unregisterBackgroundFetchAsync() {\n TaskManager.unregisterTaskAsync(BACKGROUND_FETCH_TASK)\n return true\n}", "blTask(name, ...rest) {\n this.task(name, ...rest);\n const task = this.tasks[name];\n task.blocking = true;\n return task;\n }", "async function unregisterBackgroundFetchAsync() {\n return BackgroundFetch.unregisterTaskAsync(BACKGROUND_FETCH_TASK);\n }", "function trackTasks() {\n trackTasksFn(react);\n }", "async prepareTask() {\n this.options.task && (this.task = await this.addService('task', new this.TaskTransport(this.options.task)));\n \n if(!this.task) {\n return;\n }\n\n if(this.options.task.calculateCpuUsageInterval) {\n await this.task.add('calculateCpuUsage', this.options.task.calculateCpuUsageInterval, () => this.calculateCpuUsage());\n }\n }", "componentDidMount() {\n this.retrieveCurrentTask();\n }", "function registerBackgroundTask(taskEntryPoint, taskName, trigger, condition) {\n\n // Check for existing registrations of this background task.\n var taskRegistered = false;\n var background = Windows.ApplicationModel.Background;\n var iter = background.BackgroundTaskRegistration.allTasks.first();\n var hascur = iter.hasCurrent;\n\n while (hascur) {\n var cur = iter.current.value;\n if (cur.name === taskName) {\n taskRegistered = true;\n break;\n }\n hascur = iter.moveNext();\n }\n\n // If the task is already registered, return the registration object.\n if (taskRegistered == true) {\n return iter.current;\n }\n\n // Register the background task.\n var builder = new Windows.ApplicationModel.Background.BackgroundTaskBuilder();\n builder.name = taskName;\n builder.taskEntryPoint = taskEntryPoint;\n builder.setTrigger(trigger);\n\n if (condition !== null) {\n builder.addCondition(condition);\n }\n\n var task = builder.register();\n return task;\n}", "async runAdditionalTasks() {\n }", "function onTaskLoad() {}", "function taskRoutes({ dispatch }) {\n return [\n {\n pattern: '/posts/:id',\n prefetchData: ({ id }) => dispatch(PostActions.fetch(id)),\n // deferredData: () => new Promise(resolve => setTimeout(resolve, 2000)),\n },\n ];\n}", "getRunningTasks() {\n fetch(this.state.camundaUrl + '/rest/task/')\n .then(result => result.json())\n .then(runningTasks => this.setState({runningTasks}))\n .catch(error => {\n console.log(error);\n });\n }", "async runBackgroundTask (task) {\n\t\tawait this.backgroundTaskGroup.awaitRun (task);\n\t\treturn (task);\n\t}", "function loadTaskName(name){\n let reqUrl = `/task/${name}`;\n return fetch(reqUrl).then(response=>response.json());\n }", "static async getTasks() {\n const URL = TASK_URL;\n return Fetcher.call(GET, `${URL}`);\n }", "async function loadTaksFromServer() {\n const taskList = await getTasks();\n taskList.forEach((task) => addNewTaskToTheDOM(task));\n}", "async function loadTasks(){\n await getTasks()\n }", "async function fetchTask(id){\n const res = await fetch(`http://localhost:5000/tasks/${id}`)\n const data = await res.json()\n return data\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Diffs files in a source directory against a destination directory.
function diffFiles(libConfig) { libConfig.files.forEach((file) => { const dir = path.parse(file).dir; gulp.src(libConfig.src + file) .pipe(diff(libConfig.dest + dir)) .pipe(diff.reporter({ fail: true, quiet: true })) .on('error', () => { console.error(new Error( // eslint-disable-line `Sanity check failed. ${libConfig.dest}${file} has been modified.` )); process.exit(1); }); }); }
[ "function diffFiles(libConfig) {\n libConfig.files.forEach(function (file) {\n var dir = path.parse(file).dir;\n\n gulp.src(libConfig.src + file)\n .pipe(diff(libConfig.dest + dir))\n .pipe(diff.reporter({ fail: true, quiet: true }))\n .on('error', function (error) {\n console.error(new Error('Sanity check failed. \\'' + libConfig.dest + file + '\\' has been modified.'));\n process.exit(1);\n });\n });\n}", "static async copyDir(source, destination) {\n const files = await fs.readdir(source);\n\n await Promise.all(files.map(async (name) => {\n const sourcePath = `${source}/${name}`;\n const destinationPath = `${destination}/${name}`;\n\n const stat = await fs.lstat(sourcePath);\n if (stat.isDirectory()) {\n if (!fs.existsSync(destinationPath)) {\n fs.mkdir(destinationPath);\n }\n await FileManager.copyDir(sourcePath, destinationPath);\n } else if (!fs.existsSync(destinationPath)) {\n await fs.copyFile(sourcePath, destinationPath);\n }\n }));\n }", "function syncFiles (source, target, options, callback) {\n\n if (arguments.length === 3 && utils.isFunction(options)) {\n callback = options;\n options = {};\n }\n\n // read the contents of the source directory\n return Q.nfcall(fs.readdir, source).then(function (files) {\n\n // process each file and folder\n var tasks = files.map(function (fileOrDir) {\n var sourceFile = path.join(source, fileOrDir);\n return stat(sourceFile).then(function (info) {\n\n // if fileOrDir is a directory, synchronize it\n if (info.isDirectory()) {\n return syncFiles(sourceFile, path.join(target, fileOrDir), options);\n }\n\n // check to see if file should be skipped\n if (options.filter) {\n var check = options.filter(fileOrDir);\n if (check === false) {\n return;\n }\n }\n\n // synchronize a single file\n var targetFile = path.join(target, fileOrDir);\n return syncFile(sourceFile, targetFile);\n });\n });\n\n // wait for all pending tasks to complete\n return Q.all(tasks).then(function (values) {\n\n // build a list of the files that were copied\n return values.reduce(function (list, value) {\n if (value) {\n if (Array.isArray(value)) {\n list.push.apply(list, value);\n }\n else {\n list.push(value);\n }\n }\n\n return list;\n }, []);\n });\n })\n .catch(function (err) {\n if (err.code !== 'ENOTDIR') {\n return Q.reject(err);\n }\n\n // specified source is a file not a directory\n var sourceFile = path.basename(source);\n var targetFile = path.basename(target);\n\n // build target file path assuming target is a directory\n // unless target already includes the file name\n if (sourceFile !== targetFile) {\n target = path.join(target, sourceFile);\n }\n\n // synchronize the file\n return syncFile(source, target).then(function (file) {\n return file ? [file] : [];\n });\n })\n .nodeify(callback);\n}", "function copyFiles(source, destination) {\n // File destination will be created or overwritten by default.\n fs.copyFileSync(source, destination)\n // console.log(`${source} -> ${destination}`)\n}", "function syncFiles(src, dest) {\n var rsync = require('rsyncwrapper');\n var opts = {\n src: src,\n dest: dest,\n args: [\n '--archive',\n '--compress',\n '--stats',\n '--verbose'\n ],\n delete: false,\n exclude: ['.git*','*.scss','node_modules'],\n ssh: true,\n recursive: true,\n compareMode: 'checksum'\n };\n\n rsync(opts, function(err, stdout) {\n gutil.log(stdout);\n });\n}", "function diffDirezioni(dir1, dir2){\n var val1 = valDirezione(dir1);\n var val2 = valDirezione(dir2);\n return val1-val2;\n }", "function checkConversion(aSource, aTarget) {\n let sourceContents = aSource.directoryEntries;\n\n while (sourceContents.hasMoreElements()) {\n let sourceContent = sourceContents.getNext().QueryInterface(Ci.nsIFile);\n let sourceContentName = sourceContent.leafName;\n let ext = sourceContentName.substr(-4);\n let targetFile = FileUtils.File(OS.Path.join(aTarget.path,sourceContentName));\n log.debug(\"Checking path: \" + targetFile.path);\n if (ext == \".dat\") {\n Assert.ok(targetFile.exists());\n } else if (sourceContent.isDirectory()) {\n Assert.ok(targetFile.exists());\n checkConversion(sourceContent, targetFile);\n } else if (ext != \".msf\") {\n Assert.ok(targetFile.exists());\n let cur = FileUtils.File(OS.Path.join(targetFile.path,\"cur\"));\n Assert.ok(cur.exists());\n let tmp = FileUtils.File(OS.Path.join(targetFile.path,\"tmp\"));\n Assert.ok(tmp.exists());\n if (targetFile.leafName == \"Inbox\") {\n let curContents = cur.directoryEntries;\n let curContentsCount = 0;\n while (curContents.hasMoreElements()) {\n let curContent = curContents.getNext();\n curContentsCount++;\n }\n // We had 1000 msgs in the old folder. We should have that after\n // conversion too.\n Assert.equal(curContentsCount, 1000);\n }\n }\n }\n}", "function copyFiles(src, dest) {\n fs.copyFileSync(src, dest);\n}", "function getFileDiff(callback){\n var ignore = [\n 'node_modules',\n '.git',\n '.DS_Store',\n '.gitignore',\n '.minipaas'\n ];\n // Test SSH first\n testSSH(function(err){\n recursive('.', ignore, function (err, localFiles){\n sshClient.connect(sshOptions)\n .then(function(){\n // create directory if does exist\n sshClient.execCommand('find -name \"*.*\" -not -path \"./node_modules/*\" | sed \"s|^./||\"', {cwd: config.remotePath}).then(function(remoteFileCmd){\n var remoteFiles = remoteFileCmd.stdout.split('\\n').filter(function(n){ return n !== ''; });\n var remoteDiff = _.differenceWith(remoteFiles, localFiles, _.isEqual);\n var localDiff = _.differenceWith(localFiles, remoteFiles, _.isEqual);\n\n callback(null, {remoteDiff: remoteDiff, localDiff: localDiff});\n });\n });\n });\n });\n}", "function checkConversion(source, target) {\n for (let sourceContent of source.directoryEntries) {\n let sourceContentName = sourceContent.leafName;\n let ext = sourceContentName.substr(-4);\n let targetFile = FileUtils.File(\n PathUtils.join(target.path, sourceContentName)\n );\n log.debug(\"Checking path: \" + targetFile.path);\n if (ext == \".dat\") {\n Assert.ok(targetFile.exists());\n } else if (sourceContent.isDirectory()) {\n Assert.ok(targetFile.exists());\n checkConversion(sourceContent, targetFile);\n } else if (ext != \".msf\") {\n Assert.ok(targetFile.exists());\n let cur = FileUtils.File(PathUtils.join(targetFile.path, \"cur\"));\n Assert.ok(cur.exists());\n let tmp = FileUtils.File(PathUtils.join(targetFile.path, \"tmp\"));\n Assert.ok(tmp.exists());\n if (targetFile.leafName == \"Inbox\") {\n let curContents = cur.directoryEntries;\n let curContentsCount = [...curContents].length;\n Assert.equal(curContentsCount, 1000);\n }\n }\n }\n}", "function _copyContents(start, target, exclude, fast, _) {\n\tvar checksumsStart;\n\tvar checksumsTarget = {};\n\tvar changes = false;\n\tvar startFiles;\n\tif (fast) {\n\t\tchecksumsStart = JSON.parse(fs.readFile(start + \"/.checksums\", \"utf8\", _));\n\t\tstartFiles = Object.keys(checksumsStart);\n\t\tif (exclude && exists(start + \"/\" + exports.VERSION_FILE, _)) // root directory: copy version file\n\t\t\tstartFiles.unshift(exports.VERSION_FILE); // version file should be copied as last file\n\t\ttry {\n\t\t\tchecksumsTarget = JSON.parse(fs.readFile(target + \"/.checksums\", \"utf8\", _));\n\t\t} catch (e) {\n\t\t\tfast = false;\n\t\t\tstartFiles.push(\".checksums\");\n\t\t} // \n\t} else {\n\t\tstartFiles = fs.readdir(start, _);\n\t}\n\tvar targetFiles = fs.readdir(target, _);\n\tvar targetFilesHash = {};\n\tvar i = targetFiles.length;\n\twhile (--i >= 0) {\n\t\ttargetFilesHash[targetFiles[i]] = \"\";\n\t}\n\ti = startFiles.length;\n\twhile (--i >= 0) {\n\t\tvar filename = startFiles[i];\n\t\tif (exclude && (filename in exclude || filename.lastIndexOf('.bbb') === filename.length - 4)) continue; // exclude this file\n\t\tvar startFile = start + \"/\" + filename;\n\t\tvar targetFile = target + \"/\" + filename;\n\t\tif (fast && checksumsStart[filename]) {\n\t\t\tif (checksumsStart[filename] === checksumsTarget[filename]) { // checksums match: do not copy\n\t\t\t\tdelete targetFilesHash[filename];\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (checksumsStart[filename].substr(0, 2) === \"D \") { // fast copy subdirectory\n\t\t\t\t_copyRecInt(startFile, targetFile, null, true, _);\n\t\t\t\tdelete targetFilesHash[filename];\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tchanges = true;\n\t\tif (fs.stat(startFile, _).isDirectory()) { // start is directory: copy recursively\n\t\t\t_copyRecInt(startFile, targetFile, null, false, _);\n\t\t} else { // start file is no directory\n\t\t\tif (filename in targetFilesHash && fs.stat(targetFile, _).isDirectory()) rmdirRec(targetFile, _);\n\t\t\t// copy file\n\t\t\tvar buffer = fs.readFile(startFile, _);\n\t\t\tvar stat = fs.stat(startFile, _);\n\t\t\t// use permissions of original file to set permissions of copied file\n\t\t\tvar permissions = (stat.mode * 1 & 0xFFF).toString(8);\n\t\t\ttracer && tracer(\"Changed (\" + permissions + \") \" + startFile);\n\t\t\twriteFile(targetFile, buffer, _);\n\t\t\tfs.chmod(targetFile, permissions, _);\n\t\t\tbuffer = null;\n\t\t}\n\t\t// target file has been handled\n\t\tdelete targetFilesHash[filename];\n\t}\n\tif (exclude) { // root directory: do not delete nodelocal.js and files ending in .bbb\n\t\tdelete targetFilesHash[\"nodelocal.js\"];\n\t\tfor (var file in targetFilesHash) {\n\t\t\tif (file.lastIndexOf('.bbb') === file.length - 4) delete targetFilesHash[file];\n\t\t}\n\t\tif (target.indexOf(\"..\") >= 0) { // do not delete exclude directories when copying into parent directory\n\t\t\tfor (var key in exclude) {\n\t\t\t\tdelete targetFilesHash[key];\n\t\t\t}\n\t\t}\n\t}\n\ttargetFiles = Object.keys(targetFilesHash);\n\ti = targetFiles.length;\n\twhile (--i >= 0) {\n\t\tvar targetFile = target + \"/\" + targetFiles[i];\n\t\tif (fs.stat(targetFile, _).isDirectory()) rmdirRec(targetFile, _);\n\t\telse {\n\t\t\tunlinkP(targetFile, _);\n\t\t}\n\t\tchanges = true;\n\t}\n\tif (fast && changes) { // update checksums file only when there are changes\n\t\twriteFile(target + \"/.checksums\", JSON.stringify(checksumsStart), _);\n\t}\n\n}", "function copyDir (source, target) {\n return new Promise((resolve, reject) => {\n let all = []\n fs.mkdirSync(target)\n let sub = fs.readdirSync(source)\n for (let file of sub) {\n let subtarget = path.join(target, file)\n file = path.join(source, file)\n let stat = fs.statSync(file)\n if (stat.isDirectory()) {\n all.push(copyDir(file, subtarget))\n } else if (stat.isFile()) {\n all.push(copyFile(file, subtarget))\n }\n }\n Promise.all(all).then(resolve, reject)\n })\n}", "function swapFiles () {\n var readSource = q.denodeify(fs.readdir);\n readSource(options.dirPath).then(function(files){\n files.forEach(function (val) {\n grunt.file.copy(options.dirPath+val, options.oldDir+val);\n })\n }).then(function (argument) {\n takeScreenShot();\n });\n }", "recurseFileSystem(source, dest, cmdName, processArgs, paramMap, includePatterns, excludePatterns, overwriteRule, mkDir, depth) {\n\t\texpect(source, 'Pfile');\n\t\texpect(dest, ['Pfile', 'null']);\n\t\texpect(cmdName, 'String');\n\t\texpect(processArgs, 'Array'); \n\t\texpect(paramMap, 'Map');\n\t\texpect(includePatterns, 'Array'); \n\t\texpect(excludePatterns, 'Array');\n\t\texpect(overwriteRule, 'String');\n\t\texpect(mkDir, 'String');\n\t\texpect(depth, 'Number');\n\t\t\n\t\tif (this.halt == true)\n\t\t\treturn;\n\t\t\n\t\tif (depth > 10) {\n\t\t\tterminal.abnormal(blue(cmdName), ' halting recursion at ', green(dest.name), ' which is 10 subdirectories deep');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (source.isDirectory()) {\n\t\t\tif (this.isExcluded(source, cmdName, excludePatterns, paramMap))\n\t\t\t\treturn;\n\n\t\t\tif (dest != null) {\n\t\t\t\t// safety check: the destination path must not be a subdirectory of the source path\n\t\t\t\t// or else we risk an infinite recursion of new deeply nested directories.\n\t\t\t\tvar commonPartStart = dest.name.indexOf(source.name);\n\t\t\t\tif (commonPartStart == 0) {\n\t\t\t\t\t// source: appA/fused/blue\n\t\t\t\t\t// dest: appA/fused/blue/subdir <-- problem\n\t\t\t\t\t// dest: appA/fused/blue2 <-- no problem\n\t\t\t\t\tvar commonPartEnd = source.name.length;\n\t\t\t\t\tvar firstUnmatchedChar = dest.name.charAt(commonPartEnd);\n\t\t\t\t\tif (firstUnmatchedChar == '/') {\n\t\t\t\t\t\tterminal.invalid(blue(cmdName), ' source path ', green(source.name), ' and destination path ', green(dest.name), ' overlap. Halting to prevent infinite loop.');\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (mkDir == 'true')\n\t\t\t\t\tdest.mkDir();\n\t\t\t\tif (!dest.exists()) {\n\t\t\t\t\tif (cmdName == 'compare') {\n\t\t\t\t\t\tterminal.trace(blue(cmdName), ' ', green(this.shortDisplayFilename(dest.name)), ' does not exist in dest');\n\t\t\t\t\t\tthis.compareMiscount++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tterminal.invalid(blue(cmdName), ' destination path ', green(this.shortDisplayFilename(dest.name)), ' does not exist, and ', green('mkdir'), ' is ', green('false'));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tvar bunch = new Bunch(source.name, '*', Bunch.FILE + Bunch.DIRECTORY);\n\t\t\tvar files = bunch.find(false);\n\t\t\t\n\t\t\tfor (let i=0; i < files.length; i++) {\n\t\t\t\tvar basename = files[i];\n\t\t\t\tvar childSource = new Pfile(source).addPath(basename);\n\t\t\t\tvar childDest = (dest == null) ? null : new Pfile(dest).addPath(basename);\n\t\t\t\tthis.recurseFileSystem(childSource, childDest, cmdName, processArgs, paramMap, includePatterns, excludePatterns, overwriteRule, mkDir, depth +1);\n\t\t\t}\n\t\t}\n\t\telse if (source.isFile()) {\n\t\t\tif (!this.isIncluded(source, cmdName, includePatterns, paramMap))\n\t\t\t\treturn;\n\n\t\t\tif (this.isExcluded(source, cmdName, excludePatterns, paramMap))\n\t\t\t\treturn;\n\n\t\t\tif (dest != null) {\n\t\t\t\t// apply new filename extension to the dest, if requested\n\t\t\t\tif (paramMap.has('extension')) {\n\t\t\t\t\tvar newExt = paramMap.get('extension');\n\t\t\t\t\tif (newExt.charAt(0) == '.')\n\t\t\t\t\t\tnewExt = newExt.substr(1);\n\t\t\t\t\tdest.replaceExtension(newExt);\n\t\t\t\t}\n\n\t\t\t\tif (cmdName == 'compare') {\n\t\t\t\t\tif (!dest.exists()) {\n\t\t\t\t\t\tterminal.trace(blue(cmdName), ' ', green(this.shortDisplayFilename(source.name)), ' is in source, but ', green(this.shortDisplayFilename(dest.name)), ' is not in dest');\n\t\t\t\t\t\tthis.compareMiscount++;\n\t\t\t\t\t}\n\t\t\t\t\treturn; // nothing else to do here\n\t\t\t\t}\n\n\t\t\t\tvar ow = this.compareTimestamps(source, dest, overwriteRule);\n\t\t\t\tif (ow < 0) {\n\t\t\t\t\tif (ow == -230)\n\t\t\t\t\t\tthis.verboseTrace(blue(cmdName) + ' not overwriting because ' + green(this.shortDisplayFilename(source.name)) + blue(' same as ') + green(this.shortDisplayFilename(dest.name)), paramMap);\n\t\t\t\t\telse if (ow == -240)\n\t\t\t\t\t\tthis.verboseTrace(blue(cmdName) + ' not overwriting because ' + green(this.shortDisplayFilename(source.name)) + blue(' older than ') + green(this.shortDisplayFilename(dest.name)), paramMap);\n\t\t\t\t\telse if (ow == -300)\n\t\t\t\t\t\tthis.verboseTrace(blue(cmdName) + ' not overwriting because ' + green(this.shortDisplayFilename(dest.name)) + blue(' already exists'), paramMap);\n\t\t\t\t\telse if (ow == -400)\n\t\t\t\t\t\tthis.verboseTrace(blue(cmdName) + ' ignoring because ' + green(this.shortDisplayFilename(source.name)) + blue(' does not exist'), paramMap);\n\t\t\t\t\telse\n\t\t\t\t\t\tterminal.logic(`compareTimestamps = ${ow}`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tparamMap.set('source', source.name);\n\t\t\tparamMap.set('sourcepath', this.localPathOnly(source.name));\n\t\t\tparamMap.set('sourcefile', source.getFilename());\n\t\t\tif (dest != null) {\n\t\t\t\tparamMap.set('dest', dest.name);\n\t\t\t\tparamMap.set('destpath', this.localPathOnly(dest.name));\n\t\t\t\tparamMap.set('destfile', dest.getFilename());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tparamMap.set('dest', '');\n\t\t\t\tparamMap.set('destpath', '');\n\t\t\t\tparamMap.set('destfile', '');\n\t\t\t}\n\t\t\t\n\t\t\tvar finalArgs = this.replaceParamsWithValues(processArgs, paramMap);\n\t\t\tvar traceMsg = this.formatProgressMsg(cmdName, source, dest, finalArgs, 'shortForm');\n\t\t\tthis.executeChildProcess(cmdName, finalArgs, traceMsg, paramMap);\n\t\t}\n\t\telse\n\t\t\tterminal.warning(blue(cmdName), ' ', source.name, red(' NOT FOUND'));\n\t}", "function copyFiles(path_from,path_to){\n //create dir if doesnt exist\n if(fs.existsSync(path_from)){\n if (!fs.existsSync(path_to)){\n fs.mkdirSync(path_to);\n }\n //remove file in dir\n fs.readdir(path_to, (err, files) => {\n if (err) throw err;\n for (const file of files) {\n fs.unlink(path.join(path_to, file), err => {\n if (err) throw err;\n });\n }\n //copy files\n copy(path_from,path_to);\n });\n }\n }", "function copy_file(source, target) {\n if (fs.existsSync(target)) {\n var sstat = fs.statSync(source);\n var tstat = fs.statSync(target);\n if (sstat.mtime <= tstat.mtime) {\n return;\n }\n } else {\n fs.ensureDirSync(path.dirname(target));\n }\n log(\"copy:\", source, \"->\", target);\n fs.copySync(source, target);\n}", "function _validateFiles() {\r\n fs.stat(src, function(err, stat) {\r\n\r\n if (err) {\r\n callback(err);\r\n return;\r\n }\r\n\r\n if (stat.isDirectory()) {\r\n callback('Source ' + src + ' is a directory. It must be a file');\r\n return;\r\n }\r\n\r\n if (src === dst) {\r\n callback('Source ' + src + ' and destination ' + dst + ' are identical');\r\n return;\r\n }\r\n\r\n if (stat.isFile()) {\r\n _openInputFile();\r\n } else {\r\n callback('Copying of sockets, pipes, and devices is not supported: ' + src);\r\n }\r\n });\r\n }", "function cpdirSyncRecursive(sourceDir, destDir, opts) {\r\n if (!opts) opts = {};\r\n\r\n /* Create the directory where all our junk is moving to; read the mode of the source directory and mirror it */\r\n var checkDir = fs.statSync(sourceDir);\r\n try {\r\n fs.mkdirSync(destDir, checkDir.mode);\r\n } catch (e) {\r\n //if the directory already exists, that's okay\r\n if (e.code !== 'EEXIST') throw e;\r\n }\r\n\r\n var files = fs.readdirSync(sourceDir);\r\n\r\n for (var i = 0; i < files.length; i++) {\r\n var srcFile = sourceDir + \"/\" + files[i];\r\n var destFile = destDir + \"/\" + files[i];\r\n var srcFileStat = fs.lstatSync(srcFile);\r\n\r\n if (srcFileStat.isDirectory()) {\r\n /* recursion this thing right on back. */\r\n cpdirSyncRecursive(srcFile, destFile, opts);\r\n } else if (srcFileStat.isSymbolicLink()) {\r\n var symlinkFull = fs.readlinkSync(srcFile);\r\n fs.symlinkSync(symlinkFull, destFile, os.platform() === \"win32\" ? \"junction\" : null);\r\n } else {\r\n /* At this point, we've hit a file actually worth copying... so copy it on over. */\r\n if (fs.existsSync(destFile) && opts.no_force) {\r\n common.log('skipping existing file: ' + files[i]);\r\n } else {\r\n copyFileSync(srcFile, destFile);\r\n }\r\n }\r\n\r\n } // for files\r\n} // cpdirSyncRecursive", "function cpdirSyncRecursive(sourceDir, destDir, opts) {\n if (!opts) opts = {};\n \n /* Create the directory where all our junk is moving to; read the mode of the source directory and mirror it */\n var checkDir = fs.statSync(sourceDir);\n try {\n fs.mkdirSync(destDir, checkDir.mode);\n } catch (e) {\n //if the directory already exists, that's okay\n if (e.code !== 'EEXIST') throw e;\n }\n \n var files = fs.readdirSync(sourceDir);\n \n for (var i = 0; i < files.length; i++) {\n var srcFile = sourceDir + \"/\" + files[i];\n var destFile = destDir + \"/\" + files[i];\n var srcFileStat = fs.lstatSync(srcFile);\n \n if (srcFileStat.isDirectory()) {\n /* recursion this thing right on back. */\n cpdirSyncRecursive(srcFile, destFile, opts);\n } else if (srcFileStat.isSymbolicLink()) {\n var symlinkFull = fs.readlinkSync(srcFile);\n fs.symlinkSync(symlinkFull, destFile, os.platform() === \"win32\" ? \"junction\" : null);\n } else {\n /* At this point, we've hit a file actually worth copying... so copy it on over. */\n if (fs.existsSync(destFile) && !opts.force) {\n common.log('skipping existing file: ' + files[i]);\n } else {\n copyFileSync(srcFile, destFile);\n }\n }\n \n } // for files\n } // cpdirSyncRecursive" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
called from dcallback <service.getDetails(request, dcallback)<Save_checked_links_Button to recreate a lkoptions link list on LinkOption page out of localStorage
function displayLinks() { initiate_geolocation(); $('#lkoptions').empty(); for(var i=0, len=localStorage.length; i<len; i++) { console.log(i); var key = localStorage.key(i); if (key.substr(0,4)=='LINK') { var value = localStorage[key]; var lobj =JSON.parse(value); console.log('retrievedObject: ', JSON.parse(value)); console.log(key + " => " + value); $('#lkoptions').append('<li data-theme="b" alt="' +lobj.lat + ',' + lobj.lon + '" id="' +key + '"><a href="' + lobj.url + '"><p><span style="font-size: 1.7em;" class="rn">' + lobj.place + '</span><br/><span class="rv"> ' + lobj.address + '</span></p></a><a class="lob" data-role="button" data-icon="info" href="tel:' + lobj.phone + '">' + lobj.phone + '</a></li>'); } $('#lkoptions').listview('refresh'); } }
[ "function saveLinksToLocalStorage(){\n //localStorage.removeItem('links');\n localStorage.setItem('links', JSON.stringify(modelController.storage.getAllLinks()));\n }", "function saveLinksList () {\n $('<div></div>').addClass('g-overlay').height($(document).height()).appendTo('body');\n $('<div></div>').addClass('g-loader').css({'top' : $(document).height() / 2 - 20}).appendTo('body');\n\n socialServices.sociallist = [];\n socialServices.socialmode = options.extraItem;\n\n $servicesContainer.find('li:visible').each(function() {\n var socialServiceItem = {};\n socialServiceItem.id = ($(this).attr('id') ? $(this).attr('id') : '' );\n socialServiceItem.socialid = ($(this).attr('class') ? $(this).attr('class') : '' );\n socialServiceItem.url = encodeURIComponent($(this).find('.input input').val());\n socialServiceItem.active = $(this).find('.hide-item').attr('checked') ? '0' : '1';\n socialServices.sociallist.push(socialServiceItem);\n });\n \n $.ajax({\n type: 'POST',\n url: '/reccount/updatesocial/',\n data: 'data=' + $.toJSON(socialServices),\n success: function(response) {\n socialServices = $.parseJSON(response);\n socialServices.errorid ? errorPopup(socialServices.errormessage) : init();\n $('.g-loader').remove();\n $('.g-overlay').remove();\n }\n });\n }", "function saveLinksToStorage() {\n\t\tvar links = Array.from(linkList.getElementsByTagName('li')).map(function (listItem) {\n\t\t\tvar linkDiv = listItem.querySelector('.link-container');\n\t\t\tvar linkText = linkDiv.getElementsByTagName('p')[0];\n\t\t\tvar urlText = linkDiv.getElementsByTagName('p')[1];\n\n\t\t\treturn {\n\t\t\t\tlabel: linkText.textContent,\n\t\t\t\turl: urlText.textContent,\n\t\t\t};\n\t\t});\n\n\t\tchrome.storage.sync.set({ links: links });\n\t}", "function dcallback(place, status) {\n if (status == google.maps.places.PlacesServiceStatus.OK) {\n \t\tvar pobj = new Object();\n \t\tpid = 'LINK' + place.id;\n\t pobj.place = place.name;\n\t\tpobj.address = place.formatted_address;\n\t\tpobj.phone = place.formatted_phone_number;\n\t\tpobj.url = place.website; \n\t\tif (pobj.url==undefined){pobj.url=\"#\";}\n\t\tpobj.lat = place.geometry.location.Qa;\n\t\tpobj.lon = place.geometry.location.Ra;\n\t\tlocalStorage.setItem(pid, JSON.stringify(pobj));\n\t\tconsole.log(place);\n \t\tconsole.log(place.id);\n\t console.log(place.name);\n\t\tconsole.log(place.formatted_address);\n\t\tconsole.log(place.formatted_phone_number);\n\t\tconsole.log(place.website); \n\t\tconsole.log(place.geometry.location.Qa);\n\t\tconsole.log(place.geometry.location.Ra);\n\t\tdisplayLinks(); //recreate the #lkoptions link list on the LinkOptions page\n\t\t$('#foundlinks').empty(); \n\t\t$('#foundlinks').listview('refresh'); \n }\n}", "function resetAllLinkData() {\n\tif (this.readyState == 4) {\n\t\tif (this.status == 200 && this.responseText) {\n\t\t\tvar tmpArray = eval(this.responseText);\n\t\t\tlinks.length = 0;\n\t\t\t$(tmpArray).each(function() {\n\t\t\t\tlinks.push(JSON.parse(this));\n\t\t\t});\n\t\t\tmakeLinksDropDown();\n\t\t\t$(\"#personalLinks\").html(displayPersonalLinks());\n\t\t\t$($dialog).dialog(\"close\");\n\t\t} else {\n\t\t\talert(_(\"An error has occurred while attempting to save.\"));\n\t\t\treturn false;\n\t\t}\n\t}\n}", "function setUpLinkBackJSON(fWhere) {\r\n var json = {\"fromWhere\" : fWhere};\r\n localStorage.setItem(\"fromWhere\",JSON.stringify(json))\r\n}", "function setUpLinkBackJSON(fWhere) {\r\n var json = {\"fromWhere\" : fWhere};\r\n localStorage.setItem(\"fromWhere\", JSON.stringify(json))\r\n}", "function getSettingsList() {\n for (i in settings) {\n var setting = localStorage.getItem(i);\n if (setting == undefined || setting == \"undefined\") {\n localStorage.setItem(i,settings[i]);\n }\n else {\n settings[i] = setting;\n }\n }\n\n if (settings['popout'] == 'true') {\n day9_link += \"/popout\";\n }\n\n jQuery('input[type=checkbox]').each(function() {\n if (settings[jQuery(this).attr('name')] == \"true\") {\n jQuery(this).attr('checked',true);\n }\n }).click(function() {\n localStorage.setItem(jQuery(this).attr('name'),jQuery(this).prop('checked'));\n settings[jQuery(this).attr('name')] = jQuery(this).prop('checked').toString();\n switch (jQuery(this).attr('name')) {\n case 'popout':\n updateTwitchLinks();\n break;\n default:\n //console.log(\"no setting changed\");\n break;\n }\n });\n\n jQuery('select').each(function() {\n jQuery('option[value=\"' + localStorage.getItem(jQuery(this).attr('name')) + '\"]', this).first().attr('selected', 'selected');\n }).change(function() {\n localStorage.setItem(jQuery(this).attr('name'),jQuery(this).val());\n settings[jQuery(this).attr('name')] = jQuery(this).val();\n switch (jQuery(this).attr('name')) {\n case 'tl_news':\n jQuery('table#tliquid').empty();\n getTLNews();\n break;\n }\n });\n\n jQuery('a').click(function() {\n chrome.tabs.create({url:jQuery(this).attr('href')});\n window.close();\n return false;\n });\n}", "function loadLinks(){\n storage.links = JSON.parse(localStorage.getItem('links') || '[]');\n }", "function fillShortURLList() {\n chrome.storage.sync.get(null, function (r) {\n var i = 0;\n var table = document.getElementById(\"shortURLList\");\n $(table.getElementsByTagName(\"tbody\")[0]).text(\n chrome.i18n.getMessage(\"trustedList\")\n );\n for (i = 0; i < r.redirectDomains.length; i++) {\n var row = table.insertRow(table.rows.length);\n var cell = row.insertCell(0);\n $(cell).html(\n '<div><button id=\"shortURL' +\n i +\n '\" style=\"margin-right:10px;color:red\">X</button><span>' +\n r.redirectDomains[i] +\n \"</span></div>\"\n );\n\n $(\"#shortURL\" + i).on(\"click\", function (e) {\n save(\"redirectDomains\", r.redirectDomains);\n var index = $(this).attr(\"id\").replace(\"shortURL\", \"\");\n $(this).parent().parent().parent().remove();\n r.redirectDomains.splice(index, 1);\n chrome.storage.sync.set({ redirectDomains: r.redirectDomains });\n init();\n });\n }\n });\n}", "function getLocalStorage() {\n return JSON.parse(localStorage.getItem(\"linkList\"));\n }", "function loadLinks() {\n if (localStorage.getItem('links')) {\n links = JSON.parse(localStorage.getItem('links'));\n } else {\n //default links\n links = [{ name: 'Unsplash', url: 'https://unsplash.com' },\n { name: 'reddit: the front page of the internet', url: 'https://reddit.com' },\n { name: 'DuckDuckGo — Privacy, simplified.', url: 'https://duckduckgo.com' },\n { name: 'IMDb: Ratings, Reviews, and Where to Watch the Best Movies & TV Shows', url: 'https://imdb.com' },\n { name: 'Dribbble - Discover the World’s Top Designers & Creative Professionals', url: 'https://dribbble.com/' },\n { name: 'Build the portfolio you need to be a badass web developer. | egghead.io', url: 'https://egghead.io/' },\n { name: 'Metacritic - Movie Reviews, TV Reviews, Game Reviews, and Music Reviews', url: 'https://www.metacritic.com/' },\n ];\n\n localStorage.setItem('links', JSON.stringify(links));\n }\n //poulate iteams from links\n links.forEach(element => {\n createItem(element.name, element.url);\n });\n}", "storeListState (options) {\n options.scrollRestoration = \"auto\";\n history.pushState(options, null, location.pathname + location.search);\n }", "function save_new_mission_links() {\n if (window.location.pathname.startsWith('/area/discreet-work')) {\n $('.jobs-list a[href=\"/area/discreet-work/accept\"]').click(function() {\n localStorage.setItem('discreet_helper-new_mission_links',\n $('.employment-title:contains(\"Current Mission\")').parent().html());\n });\n }\n }", "function getSavedDocLinks() {\n console.log('getSavedDocLinks() begin ---------------------------');\n $.ajax({\n type: 'GET',\n url: 'doc-data', // returns List<TextCommonDataResource>\n dataType: 'json',\n success: function (obtainedData, status, jqXHR) {\n console.log('check: obtainedData[0].links[0].href = ' + obtainedData[0].links[0].href + ', name: ' +\n obtainedData[0].name);\n console.log('obtainedData[0].firstPageLink = ' + obtainedData[0].firstPageLink + ', name: ' +\n obtainedData[0].name);\n\n let err = $('#error-panel');\n err.find('pre').html('');\n err.css('visibility', 'hidden');\n /* NB: the \"href\" attribute will be set by the following function for each pageLink */\n getDocLinksSortedByNameAndCreatedDate(obtainedData);\n /* set behavior of each elem 'a' in the '#docLinks' context */\n setLinksOnclickBehavior($('a', '#docLinks'));\n },\n error: function (jqXHR, textStatus, errorThrown) {\n let err = $('#error-panel');\n err.css('visibility', 'visible');\n err.find('pre').html(jqXHR.responseText);\n }\n });\n console.log('getSavedDocLinks() end ---');\n }", "static addLink(link) {\n const links = Store.getLinks();\n links.push(link);\n localStorage.setItem('links', JSON.stringify(links));\n }", "function updateOutput()\n{\n storage.get(\"links\", function(data)\n {\n // create a new list\n var list = document.createElement('ul');\n\n // takes list from local data and save it to the new list.\n for(index in data.links)\n {\n var listItem = document.createElement('li');\n listItem.appendChild(document.createTextNode(data.links[index]));\n\n list.appendChild(listItem);\n }\n\n // set the inner html to the new list.\n blockedSitesOutput.innerHTML = list.innerHTML;\n });\n}", "loadLinks(){\n if(this.useStorage)\n return;\n\n let req = new XMLHttpRequest();\n req.addEventListener(\"load\", () => {\n this.listContent = JSON.parse(req.responseText);\n this.saveStorage(req.responseText);\n this.createList(this.listContent);\n });\n req.open(\"GET\", \"default.json\", true);\n req.send();\n }", "function updateLinkStore(linkArray, callback){\n chrome.storage.sync.set({'linkData': linkArray}, function() {\n console.log('Link Data Updated - ' + linkArray);\n });\n callback();\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
04. First and Last K Numbers
function firstAndLastKNumbers(arr) { let k = arr.shift(); console.log(arr.slice(0, k).join(' ') + '\n' + arr.slice(arr.length - k).join(' ')); }
[ "function firstAndLastKNumbers (input) {\n let count = input.shift();\n\n console.log(input.slice(0, count).join(' '));\n console.log(input.slice(input.length - count, input.length).join(' '));\n}", "function lastKNumbersSequence(n, k) {\n\tlet res = [1];\n\tfor (var i = 1; i < n; i++) {\n\t\tres.push(res.slice(Math.max(0, i - k), Math.max(i, res.length - k))\n\t\t\t\t.reduce((a, b) => a + b));\n\t}\n\tconsole.log(res.join(\" \"));\n}", "function kaprekarNumbers(p, q) {\n function calcD(inp) {\n var d = 0;\n while (inp > 0) {\n inp = Math.floor(inp / 10);\n d++;\n }\n return d;\n }\n function splitNumberAndAdd(inum) {\n var arrN = [];\n var rightS = '';\n var leftS = '';\n var d = calcD(inum);\n var num = Math.pow(inum, 2);\n while (num > 0) {\n if (rightS.length < d) {\n rightS = String(num % 10) + rightS;\n num = Math.floor(num / 10);\n } else {\n leftS = String(num % 10) + leftS;\n num = Math.floor(num / 10);\n }\n }\n if (leftS == '') {\n leftS = 0;\n }\n return parseInt(leftS) + parseInt(rightS);\n }\n var res = [];\n for (var i = p; i <= q; i++) {\n if (i == splitNumberAndAdd(i)) {\n res.push(i);\n }\n }\n if (res.length > 0) {\n console.log(res.join(' '));\n } else {\n console.log(\"INVALID RANGE\");\n }\n \n\n}", "function kstyle_number(val){\n return Math.round(val/1000) + \"K\";\n}", "kthFromEnd(k) {\n if (!this.head) {return 'No Head';}\n let current = this.head;\n let llCount = 0;\n while(current.next !== null) {\n llCount++;\n current = current.next;\n }\n let count = 0;\n current = this.head;\n while(current.next !== null) {\n if (count === llCount-k) {\n return current.value;\n }\n current = current.next;\n count++;\n }\n return current.value;\n }", "function lastKNumbersSequence (number, step) {\n let result = [1];\n\n for (let i = 1; i < number; i++) {\n let start = Math.max(0, i - step);\n let item = result.slice(start, start + step).reduce((a, b) => a + b);\n\n result.push(item);\n }\n\n console.log(result.join(' '));\n}", "function lastKNumberSequence(n, k) {\r\n let arr = [1];\r\n for (let i = 1; arr.length < n; i++) {\r\n let index = i - k < 0 ? 0 : i - k;\r\n let sum = arr.slice(index)\r\n .reduce((acc, curr) => acc + curr, 0);\r\n arr.push(sum);\r\n }\r\n return arr.join(' ');\r\n}", "function lastKNumbersSeq(n, k) {\n n = +n;\n k = +k;\n let seq = [1];\n\n for (let i = 1; i < n; i++) {\n let start = Math.max(0, i - k);\n let end = i - 1;\n let sum = 0;\n\n for (let j = start; j <= end; j++) {\n sum += seq[j];\n }\n \n seq[i] = sum;\n }\n return seq.join(' ');\n}", "function KFormatter(num) {\n return Math.abs(num) > 999 ? Math.sign(num) * ((Math.abs(num) / 1000).toFixed(1)) + 'K' : Math.sign(num) * Math.abs(num)\n}", "function kaprekarNumbers(p, q) {\n let numArr = Array.from(Array(q).keys()).map((x) => ++x).filter((x)=>x>=p);\n function isKaprekar(num){\n let sliceSize = num.toString().length -1;\n let square = num * num;\n let squareStr = square.toString();\n let squareL = squareStr.length;\n let lastDigits = squareStr.slice(squareL - (1+sliceSize),squareL);\n let firstDigits = squareStr.slice(0,squareL - (1+sliceSize));\n if(Number(firstDigits) + Number(lastDigits) === num){\n return num;\n }\n }\n let kaprekarArr = numArr.filter((x) => isKaprekar(x));\n if(kaprekarArr.length === 0){\n return console.log('INVALID RANGE');\n }else{\n return console.log(kaprekarArr.join(' '));\n }\n}", "function kFormatter(num) {\n return Math.abs(num) > 999 ? Math.sign(num)*((Math.abs(num)/1000).toFixed(1)) + 'k' : Math.sign(num)*Math.abs(num);\n}", "ll_kth_from_end(k) {\n if (Number.isInteger(k) && k > -1) {\n let current = this.head;\n let valueArr = [];\n let index = -1;\n \n // find the last node, which will have a next value of null\n while (current.next) {\n \n valueArr.push(current.value);\n current = current.next;\n index++;\n }\n if (current.next === null) {\n valueArr.push(current.value);\n index++;\n }\n \n let finalIndex = (index - k);\n if (Number.isInteger(finalIndex) && finalIndex > -1) {\n return valueArr[finalIndex];\n }\n return false;\n }\n }", "ll_kth_from_end(k) {\n if (Number.isInteger(k) && k > -1) {\n let current = this.head;\n let valueArr = [];\n let index = -1;\n\n // find the last node, which will have a next value of null\n while (current.next) {\n valueArr.push(current.value);\n current = current.next;\n index++;\n }\n if (current.next === null) {\n valueArr.push(current.value);\n index++;\n }\n\n let finalIndex = (index - k);\n if (Number.isInteger(finalIndex) && finalIndex > -1) {\n return valueArr[finalIndex];\n }\n return false;\n }\n }", "findKthZeroInARange(lo,hi,k){\n let prevTotal=this.rangeQuery(0,lo-1)\n let result=this.findKthZero(k+prevTotal)\n if(result>hi)\n return -1\n return result\n }", "function lastKNumbersSequence(n, k) {\n let result = [1];\n \n for (let i = 1; i < n; i++) {\n\n let current = result.slice(k * - 1).reduce((a, b) => a + b);\n\n result[i] = current;\n }\n\n console.log(result.join(' '));\n}", "function kFormatter(num) {\r\n return num > 999 ? (num/1000).toFixed(1) + 'k' : num;\r\n }", "function lastPrisoner(n, k){\n //write your plan here\n\n // test inputs\n // n = 5, k=2\n // - 2\n //2,3,4 - 4\n //4,5,1 - 1\n //1!1,5 - 5\n //5,4,3 - 3\n\n // plan\n // loop until there are no numbers left in array\n // have a boolean that switches when hits k\n // reverse the direction of orders\n // store the number each time so when loop ends your have the last number\n //return that number\n \n}", "kthFromEnd(k){\r\n let counter = 0; \r\n if ((typeof(k) === 'number') && k>=0){\r\n if (this.head){\r\n counter ++;\r\n let current = this.head;\r\n let anotherCurrent = this.head;\r\n while(current.next){\r\n current = current.next;\r\n counter++;\r\n }\r\n for (let i = 0; i<(counter-k-1); i++){\r\n anotherCurrent = anotherCurrent.next;\r\n }\r\n if ((counter-k-1)<0){\r\n return 'exception';\r\n }\r\n return anotherCurrent.value;\r\n \r\n } else {\r\n return 'empty linked list';\r\n }\r\n } else {\r\n return 'invalid value';\r\n }\r\n }", "function kFormatter(num) {\n return num > 999 ? (num/1000).toFixed(1) + 'k' : num;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Produces the SAS permissions string for an Azure Storage account. Call this method to set AccountSASSignatureValues Permissions field. Using this method will guarantee the resource types are in an order accepted by the service.
toString() { // The order of the characters should be as specified here to ensure correctness: // https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-an-account-sas // Use a string array instead of string concatenating += operator for performance const permissions = []; if (this.read) { permissions.push("r"); } if (this.write) { permissions.push("w"); } if (this.delete) { permissions.push("d"); } if (this.deleteVersion) { permissions.push("x"); } if (this.filter) { permissions.push("f"); } if (this.tag) { permissions.push("t"); } if (this.list) { permissions.push("l"); } if (this.add) { permissions.push("a"); } if (this.create) { permissions.push("c"); } if (this.update) { permissions.push("u"); } if (this.process) { permissions.push("p"); } if (this.setImmutabilityPolicy) { permissions.push("i"); } if (this.permanentDelete) { permissions.push("y"); } return permissions.join(""); }
[ "static parse(permissions) {\n const accountSASPermissions = new AccountSASPermissions();\n for (const c of permissions) {\n switch (c) {\n case \"r\":\n accountSASPermissions.read = true;\n break;\n case \"w\":\n accountSASPermissions.write = true;\n break;\n case \"d\":\n accountSASPermissions.delete = true;\n break;\n case \"x\":\n accountSASPermissions.deleteVersion = true;\n break;\n case \"l\":\n accountSASPermissions.list = true;\n break;\n case \"a\":\n accountSASPermissions.add = true;\n break;\n case \"c\":\n accountSASPermissions.create = true;\n break;\n case \"u\":\n accountSASPermissions.update = true;\n break;\n case \"p\":\n accountSASPermissions.process = true;\n break;\n case \"t\":\n accountSASPermissions.tag = true;\n break;\n case \"f\":\n accountSASPermissions.filter = true;\n break;\n case \"i\":\n accountSASPermissions.setImmutabilityPolicy = true;\n break;\n case \"y\":\n accountSASPermissions.permanentDelete = true;\n break;\n default:\n throw new RangeError(`Invalid permission character: ${c}`);\n }\n }\n return accountSASPermissions;\n }", "function permissionsToString(permissions) {\n return '[' + permissions.join(' ') + ']';\n}", "_serializePermissions(){\n // Generate a serialized string containing all the permissions defined so far.\n this._serializedPermissions = Array.from(this._permissions).join(',');\n }", "toString() {\n const permissions = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n return permissions.join(\"\");\n }", "function listStorageAccountSAS(args, opts) {\n if (!opts) {\n opts = {};\n }\n if (!opts.version) {\n opts.version = utilities.getVersion();\n }\n return pulumi.runtime.invoke(\"azure-native:storage/v20170601:listStorageAccountSAS\", {\n \"accountName\": args.accountName,\n \"iPAddressOrRange\": args.iPAddressOrRange,\n \"keyToSign\": args.keyToSign,\n \"permissions\": args.permissions,\n \"protocols\": args.protocols,\n \"resourceGroupName\": args.resourceGroupName,\n \"resourceTypes\": args.resourceTypes,\n \"services\": args.services,\n \"sharedAccessExpiryTime\": args.sharedAccessExpiryTime,\n \"sharedAccessStartTime\": args.sharedAccessStartTime,\n }, opts);\n}", "toString() {\n const permissions = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.deleteVersion) {\n permissions.push(\"x\");\n }\n if (this.tag) {\n permissions.push(\"t\");\n }\n if (this.move) {\n permissions.push(\"m\");\n }\n if (this.execute) {\n permissions.push(\"e\");\n }\n if (this.setImmutabilityPolicy) {\n permissions.push(\"i\");\n }\n if (this.permanentDelete) {\n permissions.push(\"y\");\n }\n return permissions.join(\"\");\n }", "toString() {\n const permissions = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.deleteVersion) {\n permissions.push(\"x\");\n }\n if (this.list) {\n permissions.push(\"l\");\n }\n if (this.tag) {\n permissions.push(\"t\");\n }\n if (this.move) {\n permissions.push(\"m\");\n }\n if (this.execute) {\n permissions.push(\"e\");\n }\n if (this.setImmutabilityPolicy) {\n permissions.push(\"i\");\n }\n if (this.permanentDelete) {\n permissions.push(\"y\");\n }\n if (this.filterByTags) {\n permissions.push(\"f\");\n }\n return permissions.join(\"\");\n }", "function generateBlobSASQueryParameters20181109(blobSASSignatureValues, sharedKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n if (!blobSASSignatureValues.identifier &&\n !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.\");\n }\n var resource = \"c\";\n var timestamp = blobSASSignatureValues.snapshotTime;\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n if (blobSASSignatureValues.snapshotTime) {\n resource = \"bs\";\n }\n else if (blobSASSignatureValues.versionId) {\n resource = \"bv\";\n timestamp = blobSASSignatureValues.versionId;\n }\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n var verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n var stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(sharedKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n blobSASSignatureValues.identifier,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n resource,\n timestamp,\n blobSASSignatureValues.cacheControl ? blobSASSignatureValues.cacheControl : \"\",\n blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : \"\",\n blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : \"\",\n blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : \"\",\n blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : \"\"\n ].join(\"\\n\");\n var signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType);\n}", "function generateBlobSASQueryParameters20181109(blobSASSignatureValues, sharedKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n if (!blobSASSignatureValues.identifier &&\n !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.\");\n }\n let resource = \"c\";\n let timestamp = blobSASSignatureValues.snapshotTime;\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n if (blobSASSignatureValues.snapshotTime) {\n resource = \"bs\";\n }\n else if (blobSASSignatureValues.versionId) {\n resource = \"bv\";\n timestamp = blobSASSignatureValues.versionId;\n }\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(sharedKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n blobSASSignatureValues.identifier,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n resource,\n timestamp,\n blobSASSignatureValues.cacheControl ? blobSASSignatureValues.cacheControl : \"\",\n blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : \"\",\n blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : \"\",\n blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : \"\",\n blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : \"\",\n ].join(\"\\n\");\n const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType);\n}", "function generateBlobSASQueryParameters20201206(blobSASSignatureValues, sharedKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n if (!blobSASSignatureValues.identifier &&\n !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.\");\n }\n let resource = \"c\";\n let timestamp = blobSASSignatureValues.snapshotTime;\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n if (blobSASSignatureValues.snapshotTime) {\n resource = \"bs\";\n }\n else if (blobSASSignatureValues.versionId) {\n resource = \"bv\";\n timestamp = blobSASSignatureValues.versionId;\n }\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(sharedKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n blobSASSignatureValues.identifier,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n resource,\n timestamp,\n blobSASSignatureValues.encryptionScope,\n blobSASSignatureValues.cacheControl ? blobSASSignatureValues.cacheControl : \"\",\n blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : \"\",\n blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : \"\",\n blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : \"\",\n blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : \"\",\n ].join(\"\\n\");\n const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, undefined, undefined, undefined, blobSASSignatureValues.encryptionScope);\n}", "GetPermissions(Variant, ObjectTypeEnum, Variant) {\n\n }", "function generateBlobSASQueryParameters20150405(blobSASSignatureValues, sharedKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n if (!blobSASSignatureValues.identifier &&\n !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.\");\n }\n var resource = \"c\";\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n var verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n var stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(sharedKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n blobSASSignatureValues.identifier,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n blobSASSignatureValues.cacheControl ? blobSASSignatureValues.cacheControl : \"\",\n blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : \"\",\n blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : \"\",\n blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : \"\",\n blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : \"\"\n ].join(\"\\n\");\n var signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType);\n}", "function generateBlobSASQueryParameters20150405(blobSASSignatureValues, sharedKeyCredential) {\n blobSASSignatureValues = SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues);\n if (!blobSASSignatureValues.identifier &&\n !(blobSASSignatureValues.permissions && blobSASSignatureValues.expiresOn)) {\n throw new RangeError(\"Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.\");\n }\n let resource = \"c\";\n if (blobSASSignatureValues.blobName) {\n resource = \"b\";\n }\n // Calling parse and toString guarantees the proper ordering and throws on invalid characters.\n let verifiedPermissions;\n if (blobSASSignatureValues.permissions) {\n if (blobSASSignatureValues.blobName) {\n verifiedPermissions = BlobSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n else {\n verifiedPermissions = ContainerSASPermissions.parse(blobSASSignatureValues.permissions.toString()).toString();\n }\n }\n // Signature is generated on the un-url-encoded values.\n const stringToSign = [\n verifiedPermissions ? verifiedPermissions : \"\",\n blobSASSignatureValues.startsOn\n ? truncatedISO8061Date(blobSASSignatureValues.startsOn, false)\n : \"\",\n blobSASSignatureValues.expiresOn\n ? truncatedISO8061Date(blobSASSignatureValues.expiresOn, false)\n : \"\",\n getCanonicalName(sharedKeyCredential.accountName, blobSASSignatureValues.containerName, blobSASSignatureValues.blobName),\n blobSASSignatureValues.identifier,\n blobSASSignatureValues.ipRange ? ipRangeToString(blobSASSignatureValues.ipRange) : \"\",\n blobSASSignatureValues.protocol ? blobSASSignatureValues.protocol : \"\",\n blobSASSignatureValues.version,\n blobSASSignatureValues.cacheControl ? blobSASSignatureValues.cacheControl : \"\",\n blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : \"\",\n blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : \"\",\n blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : \"\",\n blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : \"\",\n ].join(\"\\n\");\n const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);\n return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType);\n}", "function createQueueSAS(queue, permissions, expiry, options, _) {\n var queueService = getQueueServiceClient(options);\n queue = interaction.promptIfNotGiven($('Queue name: '), queue, _);\n\n if (!options.policy) {\n permissions = interaction.promptIfNotGiven($('Permissions: '), permissions, _);\n StorageUtil.validatePermissions(StorageUtil.AccessType.Queue, permissions);\n\n expiry = interaction.promptIfNotGiven($('Expiry: '), expiry, _);\n expiry = utils.parseDateTime(expiry);\n }\n\n var start;\n if (options.start) {\n start = utils.parseDateTime(options.start);\n }\n\n var output = { sas: '' };\n var sharedAccessPolicy = StorageUtil.getSharedAccessPolicy(StorageUtil.AccessType.Queue, permissions, options.protocol, options.ipRange, start, expiry, null, options.policy);\n var tips = util.format($('Creating shared access signature for queue %s'), queue);\n startProgress(tips);\n try {\n output.sas = queueService.generateSharedAccessSignature(queue, sharedAccessPolicy);\n } finally {\n endProgress();\n }\n\n cli.interaction.formatOutput(output, function(outputData) {\n logger.data($('Shared Access Signature'), outputData.sas);\n });\n }", "function formatPermissions(permissions) {\n return r.args(r.expr(permissions).map(p => [p('type'), p('entity')]));\n}", "addPermissions() {\n this.template.Resources[`${this.lambdaLogicalId}SNSPermissions`] = {\n Type : 'AWS::Lambda::Permission',\n Properties : {\n FunctionName : {\n 'Fn::GetAtt' : [\n this.lambdaLogicalId,\n 'Arn'\n ]\n },\n Action : 'lambda:InvokeFunction',\n Principal : 'sns.amazonaws.com'\n }\n };\n }", "SetPermissions() {\n\n }", "generateSasToken(connString, container, blobName, permissions) {\n //var connString = process.env.AzureWebJobsStorage;\n var blobService = azure.createBlobService(connString);\n\n // Create a SAS token that expires in an hour\n // Set start time to five minutes ago to avoid clock skew.\n var startDate = new Date();\n startDate.setMinutes(startDate.getMinutes() - 5);\n var expiryDate = new Date(startDate);\n expiryDate.setMinutes(startDate.getMinutes() + 60);\n\n permissions = permissions || azure.BlobUtilities.SharedAccessPermissions.READ;\n\n var sharedAccessPolicy = {\n AccessPolicy: {\n Permissions: permissions,\n Start: startDate,\n Expiry: expiryDate\n }\n };\n var sasToken = blobService.generateSharedAccessSignature(container, blobName, sharedAccessPolicy);\n\n return {\n token: sasToken,\n uri: blobService.getUrl(container, blobName, sasToken, true)\n }\n }", "generateSasToken(connString, container, blobName, permissions) {\n var blobService = azure.createBlobService(connString);\n // Create a SAS token that expires in an hour\n // Set start time to five minutes ago to avoid clock skew.\n var startDate = new Date();\n startDate.setMinutes(startDate.getMinutes() - 5);\n var expiryDate = new Date(startDate);\n expiryDate.setMinutes(startDate.getMinutes() + 60);\n permissions = permissions || azure.BlobUtilities.SharedAccessPermissions.READ;\n var sharedAccessPolicy = {\n AccessPolicy: {\n Permissions: permissions,\n Start: startDate,\n Expiry: expiryDate\n }\n };\n var sasToken = blobService.generateSharedAccessSignature(container, blobName, sharedAccessPolicy);\n return {\n token: sasToken,\n uri: blobService.getUrl(container, blobName, sasToken, true)\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends a request to a link depending on the channel and then sets the mod file. The checkMod function looks at the file and returns true or false depending whether the person specified is in the mod.json file.
function getMods(chanel) { var channel = getUser(chanel); //Get the absolute username try { var modsFile = JSON.parse(fs.readFileSync('mod.json', 'utf8')); // Read the modsfile } catch (err) { //If there is an error, rewrite with a useable default var def = "{}"; fs.writeFile('mod.json', JSON.stringify(def), function(err) { if (err) return console.log(err); }); } //Make a request to an api and save that response to the mods list request('http://tmi.twitch.tv/group/user/' + channel + '/chatters', function(error, response, body) { if (!error && response.statusCode == 200) { if (!(modsFile[channel])) { modsFile[channel] = { "mods": [] }; } // This is probably over complicated way to remove duplicates from a merged array. Then writes the file var moderatorsJSON = JSON.parse(body); //Get list of mods from api var currentMods = moderatorsJSON.chatters.moderators; //Get list of mods from the parsed JSON of the response var moderatorsListFromFile = modsFile[channel].mods; //Get list of mods from file. var moderatorsComplete = moderatorsListFromFile.concat(currentMods); //Concat the two together moderatorsComplete.sort(); // Sort them in alphabetical order for (var i = 0; i < moderatorsComplete.length; i++) { //Iterate through every value of the concatted array. if (moderatorsComplete[i] === moderatorsComplete[i - 1] || moderatorsComplete[i] === moderatorsComplete[i + 1]) { //If the index is equal to the one before or below, remove it. var index = moderatorsComplete.indexOf(moderatorsComplete[i]); moderatorsComplete.splice(index, 1); } } modsFile[channel].mods = moderatorsComplete; //Change the mods file to the new values, then write. fs.writeFile('mod.json', JSON.stringify(modsFile), function(err) { if (err) return console.log(err); }); } }); }
[ "function SetModChannel(){\n modchannel = client.channels.find(\"name\", config.modchat);\n modChannelID = modchannel.id;\n}", "IsMod(channel) {\n if (this._selfUserState(channel, \"mod\")) return true;\n if (this._hasBadge(channel, \"moderator\")) return true;\n return false;\n }", "function checkIfMod(chatter){\n //console.log(chatter);\n // define mod and broadcaster badge\n let mod = chatter.mod;\n let isBroadcaster = chatter.badges.broadcaster;\n\n //set mod true if owner of channel\n if(isBroadcaster === 1){\n return true;\n } \n else if(!mod){\n return false;\n }\n}", "function allowrequests(target, context)\n{\n //only allow mods to turn requests on\n let badge = context['badges-raw'].split(\",\")[0];\n if(context['mod'] === true || badge === \"broadcaster/1\")\n {\n if(session_playlist_id == '') //If playlist ID is empty, create a new playlist\n {\n fs.readFile('src/JSON/most_recent_playlist.json', function (err, data)\n {\n if (err)\n {//If you get an error on the read, create a new playlist and overwrite previous file\n console.log(err + \"\\nError fetching playlist, discarding data in most_recent_playlist.json\");\n fs.readFile('src/JSON/client_secret.json', function processClientSecrets(err, content) {\n if (err) {\n console.log('Error loading client secret file: ' + err);\n return;\n }\n console.log(\"Playlist does not exist, creating new playlist\");\n // Authorize a client with the loaded credentials, then call the YouTube API to create a playlist\n authorize(JSON.parse(content), {\n 'params': {\n 'part': 'snippet,status',\n 'onBehalfOfContentOwner': ''\n }, 'properties': {\n 'snippet.title': 'STREAM ' + datetime.toString(),\n 'snippet.description': '',\n 'snippet.tags[]': '',\n 'snippet.defaultLanguage': '',\n 'status.privacyStatus': ''\n }\n }, playlistsInsert);\n });\n return;\n }\n //Otherwise check time to see if a recent playlist exists, otherwise create a new one and overwrite file\n data = (data.toString()).split(' ');\n let time_created = parseInt(data[1], 10);\n let last_ID = data[0];\n let current_time = datetime.getTime();\n console.log(last_ID);\n if ((current_time - time_created) < 86700000)\n {\n console.log(\"Playlist from within 24 hours found, grabbing playlist ID: \" + last_ID);\n session_playlist_id = last_ID;\n }\n else{\n console.log(\"Playlist does not exist, creating new playlist\");\n // Authorize a client with the loaded credentials, then call the YouTube API to create a playlist\n fs.readFile('src/JSON/client_secret.json', function processClientSecrets(err, content) {\n if (err) {\n console.log('Error loading client secret file: ' + err);\n return;\n }\n authorize(JSON.parse(content), {\n 'params': {\n 'part': 'snippet,status',\n 'onBehalfOfContentOwner': ''\n }, 'properties': {\n 'snippet.title': 'STREAM ' + datetime.toString(),\n 'snippet.description': '',\n 'snippet.tags[]': '',\n 'snippet.defaultLanguage': '',\n 'status.privacyStatus': ''\n }\n }, playlistsInsert);\n });\n }\n VIDEO_ALLOWED = true;\n });\n }\n else\n {\n VIDEO_ALLOWED = true;\n }\n\n }\n else {\n client.say(target, \"Command !allowrequests is only available to moderators\");\n }\n\n}", "function check_channel(channelname) {\n const request = new XMLHttpRequest();\n request.open('GET', `/channelcheck/${channelname}`);\n request.onload = () => {\n const error = request.responseText;\n console.log(error);\n if (error != \"null\") {\n document.querySelector('#channel-title').innerHTML = error;\n } else {\n socket.emit('submit channel', {'newchannelname': channelname});\n localStorage.setItem('channelname', channelname);\n document.querySelector('#channel-title').innerHTML = channelname;\n load_channel(channelname);\n }\n };\n request.send();\n }", "mods(channel) {\n\t\tchannel = _.channel(channel);\n\t\treturn this._sendCommand({ channel, command: '/mods' }, (resolve, reject) => {\n\t\t\tthis.once('_promiseMods', (err, mods) => {\n\t\t\t\tif(!err) {\n\t\t\t\t\t// Update the internal list of moderators\n\t\t\t\t\tmods.forEach(username => {\n\t\t\t\t\t\tif(!this.moderators[channel]) {\n\t\t\t\t\t\t\tthis.moderators[channel] = [];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!this.moderators[channel].includes(username)) {\n\t\t\t\t\t\t\tthis.moderators[channel].push(username);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tresolve(mods);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treject(err);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}", "function isMod (props)\n{\n if(props.tags.mod || props.channel.includes(props.tags.username))\n {\n return true;\n }\n else\n {\n return false;\n }\n}", "async function handle_request_with_check(msg, request, mods, argv) {\n let req_meta = reqs[request];\n\n if (!has_access(msg, request)) {\n let dm = from_dm(msg);\n let output = `\\`\\$${request}\\` can't be handled ` +\n (dm ? 'via DM' : `from ${msg.channel}.`);\n return log_invalid(msg, output, dm);\n }\n\n if (config.admin_ids.has(msg.author.id) ||\n req_meta.perms === Permission.NONE) {\n return handle_request(msg, request, mods, argv);\n }\n\n let [results, err] = await moltresdb.query(\n 'SELECT * FROM permissions WHERE (cmd = ? AND user_id = ?)',\n [req_to_perm[request] || request, msg.author.id]\n );\n if (err) return log_mysql_error(msg, err);\n\n let permitted =\n (results.length === 1 && req_meta.perms === Permission.WHITELIST) ||\n (results.length === 0 && req_meta.perms === Permission.BLACKLIST);\n\n if (permitted) {\n return handle_request(msg, request, mods, argv);\n }\n return log_invalid(msg,\n `User ${msg.author.tag} does not have permissions for ${request} ` +\n get_emoji('dealwithit') + '.'\n );\n}", "async ChangeCurrentMod(name){\n //Get this mods data and store it for use.\n this.currentModData = this.GetModDataByName(name);\n this.currentModVersion = this.GetCurrentModVersionFromConfig(name);\n this.currentModState = State.NOT_INSTALLED;\n this.currentModVersionRemote = 0;\n\n global.log.log(`Set current mod to: ${this.currentModData.name}`);\n\n //Setup the source manager object depending on the type of the mod.\n switch(this.currentModData.install.type){\n case \"jsonlist\":\n this.source_manager = new JsonListSource(this.currentModData.install);\n break;\n case \"github\":\n this.source_manager = new GithubSource(this.currentModData.install);\n break;\n case \"gamebanana\":\n this.source_manager = new GameBananaSource(this.currentModData.install);\n break;\n default:\n this.source_manager = null;\n throw new Error(\"Mod install type was not recognised: \" + this.currentModData.install.type);\n return;\n }\n\n //We do not have a version for this mod. Method to use is install.\n if(this.currentModVersion == null || this.currentModVersion == 0){\n try {\n const version = await this.source_manager.GetLatestVersionNumber();\n this.currentModState = State.NOT_INSTALLED;\n this.currentModVersionRemote = version;\n return \"Install\";\n } catch (e) {\n throw new errors.InnerError(\"Failed to get mod version: \" + e.toString(), e)\n }\n }\n else {\n //We have a version, now we need to determine if there is an update or not.\n const version = await this.source_manager.GetLatestVersionNumber();\n \n //Compare the currently selected version number to this one. If ours is smaller, update. If not, do nothing.\n this.currentModVersionRemote = version;\n\n if(version > this.currentModVersion) \n this.currentModState = State.UPDATE;\n else \n this.currentModState = State.INSTALLED;\n\n //Time to resolve with the text to show on the button\n switch(this.currentModState){\n case State.INSTALLED:\n return \"Installed\";\n case State.UPDATE:\n return \"Update\";\n default:\n return \"Install\";\n }\n }\n}", "async function setModMail(message) {\n var serverID = message.channel.guild.id;\n var modlist = [];\n\n message.channel.send('Please respond with `T` if you would like to enable DMing to bot to DM mods, respond with `F` if you do not.');\n \n try {\n var enablein = await message.channel.awaitMessages(msg2 => (!msg2.author.bot) ,{ max: 1, time: 120000, errors: ['time'] });\n var enabletxt = enablein.first().content.toLowerCase();\n var enable = undefined;\n if (enabletxt == 't') {\n enable = true,\n\n message.channel.send('Please @ the people you want to recieve mod mail.')\n \n try {\n var rolein = await message.channel.awaitMessages(msg2 => (!msg2.author.bot) ,{ max: 1, time: 120000, errors: ['time'] });\n rolein.first().mentions.members.forEach((member) => {\n modlist.push(member.id);\n });\n }\n catch (err) {\n return message.channel.send('Timeout Occured. Process Terminated.')\n }\n }\n }\n catch (err) {\n return message.channel.send('Timeout Occured. Process Terminated.')\n }\n\n if (modlist == undefined) {\n modlist = [];\n }\n if (enable == undefined) {\n enable = false;\n }\n\n modmail = {};\n modmail.enable = enable;\n modmail.modlist = modlist;\n\n serverConfig[serverID].modmail = modmail;\n\n await bulidConfigFile(serverConfig);\n\n message.channel.send(\"Mod Mail Setup Complete!\");\n\n config = updateConfigFile();\n return config;\n}", "mods(channel) {\n\t\tchannel = _.channel(channel);\n\t\t// Send the command to the server and race the Promise against a delay..\n\t\treturn this._sendCommand(null, channel, '/mods', (resolve, reject) => {\n\t\t\t// Received _promiseMods event, resolve or reject..\n\t\t\tthis.once('_promiseMods', (err, mods) => {\n\t\t\t\tif(!err) {\n\t\t\t\t\t// Update the internal list of moderators..\n\t\t\t\t\tmods.forEach(username => {\n\t\t\t\t\t\tif(!this.moderators[channel]) { this.moderators[channel] = []; }\n\t\t\t\t\t\tif(!this.moderators[channel].includes(username)) { this.moderators[channel].push(username); }\n\t\t\t\t\t});\n\t\t\t\t\tresolve(mods);\n\t\t\t\t}\n\t\t\t\telse { reject(err); }\n\t\t\t});\n\t\t});\n\t}", "async SetupNewModAsInstalled(){\n //Finish up the installation process.\n //Set the current version of the mod in the config.\n\n let versionUpdated = SetNewModVersion(this.currentModVersionRemote, this.currentModData.name);\n\n //If we didnt update the version of an exstisting object. Add it.\n if(!versionUpdated) global.config.current_mod_versions.push({name: this.currentModData.name, version: this.currentModVersionRemote})\n\n //Save the config changes.\n await config.SaveConfig(global.config);\n\n this.currentModState = State.INSTALLED;\n\n this.FakeClickMod();\n\n await dialog.showMessageBox(global.mainWindow, {\n type: \"info\",\n title: \"Mod Install\",\n message: `Mod files installation for ${this.currentModData.name} was completed successfully.`,\n buttons: [\"OK\"]\n });\n}", "function requestGithubLink(arg, args, message)\n{\n\tsendBotString(\"onGithubLinkRequest\", (msg) => message.author.send(msg));\n}", "async checkUserMod(channel, user) {\n const userId = common_1.extractUserId(user);\n const result = await this.getModerators(channel, { userId });\n return result.data.some(mod => mod.userId === userId);\n }", "async function uploadMod(toolsDir, modName, changenote, skip) {\n\n let cfgPath = cfg.getPath(modName);\n\n // Path to .cfg\n let uploaderParams = [\n '-c', '\"' + cfgPath + '\"'\n ];\n\n if (config.get('gameNumber') === 2) {\n uploaderParams.push('-x');\n }\n\n // Changenote\n if (changenote) {\n uploaderParams.push('-n');\n uploaderParams.push('\"' + changenote + '\"');\n }\n\n // Whether to only update info from .cfg file\n if (skip) {\n uploaderParams.push('-s');\n }\n\n console.log(`Running uploader with steam app id ${config.get('gameId')}`);\n\n return await _runUploader(toolsDir, uploaderParams);\n}", "function updateLink(link) {\n if(Editor.writeAccess && link != null)\n socket.emit(\"link/update\", link);\n}", "function set_update_member(e,cname,req_url){\n\tif(e.email&&e.key){\n\t\tvar email=e.email;\n\t\tvar key=e.key;\n\t\tvar xhr = new XMLHttpRequest();\n\t\tif(cname){\n\t\t\tvar callback_func_name=cname;\n\t\t}else{\n\t\t\tvar callback_func_name='';\n\t\t}\n\t\txhr.open(\"POST\",req_url,true);\n\t\txhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');\n\t\txhr.onreadystatechange = function(){\n\t\t\tif (xhr.readyState == 4){\n\t\t\t\tif(xhr.responseText==\"ok\"){\n\t\t\t\t\tvar member=true;\n\t\t\t\t}else{\n\t\t\t\t\tvar member=false;\n\t\t\t\t}\n\t\t\t\tinformation={email:email,key:key,member:member};\n\t\t\t\tchrome.storage.local.set({'information': information}, function() {\n\t\t\t\t\t//console.log(\"member info is updated\");\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tvar send_data='';\n\t\tsend_data+=\"version=\"+encodeURIComponent(manifest.version);\n\t\tsend_data+=\"&email=\"+encodeURIComponent(email);\n\t\tsend_data+=\"&key=\"+encodeURIComponent(key);\n\t\tsend_data+=\"&callback_func=\"+encodeURIComponent(callback_func_name);\n\t\tsend_data+=\"&type=\"+encodeURIComponent(\"update_license_info\");\n\t\txhr.send(send_data);\n\t}\n}", "function requestInviteLink(arg, args, message)\n{\n\tsendBotString(\"onInviteLinkRequest\", (msg) => message.author.send(msg));\n}", "async shareRemoteFileWithPeer(fileID, fileInfo, peerChannel) {\n // Remote file can only be added by bots\n const fileBaseURL = await SLACK_BRIDGE.get(\"fileBaseURL\");\n // Add remote file\n const addRemoteFileResp = await fetch(\"https://slack.com/api/files.remote.add\", {\n method: \"POST\",\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n body: urlEncodedBody({\n token: this.peerBotToken,\n external_id: fileID,\n external_url: `${fileBaseURL}/${fileID}/${this.escapedFileName(fileInfo)}`,\n title: fileInfo.file.title,\n filetype: fileInfo.file.filetype,\n })\n })\n\n if (addRemoteFileResp.status != 200) {\n const err = `Add remote file returned status ${addRemoteFileResp.status}`;\n await sentryLog(err);\n return respOk(err)\n }\n const addRemoteFileBody = await addRemoteFileResp.json().then(data => {\n return data\n });\n\n if (!addRemoteFileBody.ok) {\n const err = `Add remote file returned error ${addRemoteFileBody.error}`;\n await sentryLog(err);\n return respOk(err)\n }\n // Share remote file\n const uploadFileResp = await fetch(\"https://slack.com/api/files.remote.share\", {\n method: \"POST\",\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n body: urlEncodedBody({\n token: this.peerBotToken,\n channels: peerChannel,\n external_id: fileID,\n file: addRemoteFileBody.file.id,\n })\n })\n\n const uploadFileBody = await uploadFileResp.json().then(data => {\n return data\n });\n\n if (!uploadFileBody.ok) {\n const err = `Failed to upload file, error ${uploadFileBody.error}`\n await sentryLog(err)\n return respOk(err)\n }\n\n return respOk('File shared')\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructors Initialize the new instance for `PdfPage` class.
function PdfPage(){var _this=_super.call(this,new PdfDictionary())||this;/** * Stores the instance of `PdfAnnotationCollection` class. * @hidden * @default null * @private */_this.annotationCollection=null;/** * Stores the instance of `PageBeginSave` event for Page Number Field. * @default null * @private */_this.beginSave=null;_this.initialize();return _this;}
[ "function PdfPage() {\n var _this = _super.call(this, new PdfDictionary()) || this;\n /**\n * Stores the instance of `PdfAnnotationCollection` class.\n * @hidden\n * @default null\n * @private\n */\n _this.annotationCollection = null;\n /**\n * Stores the instance of `PageBeginSave` event for Page Number Field.\n * @default null\n * @private\n */\n _this.beginSave = null;\n _this.initialize();\n return _this;\n }", "function Pdf(url) {\n\t//---------------------------------------------------------------------------------------\n\t// Private data members - convention is to start the name with _\n\t// (All defined in init method)\n\t//---------------------------------------------------------------------------------------\n\t\n\t//---------------------------------------------------------------------------------------\n\t// Public Methods\n\t//---------------------------------------------------------------------------------------\n\tthis.getPageCount = Pdf_getPageCount;\n\tthis.getDocument = Pdf_getDocument;\n\tthis.onLoadDone = Pdf_onLoadDone;\n\n\t//---------------------------------------------------------------------------------------\n\t// Constructor code\n\t//---------------------------------------------------------------------------------------\n\t_Pdf_init(this, url);\n}", "initialize() {\n return new Promise((resolve, reject) => {\n phantom.create(this.app.config.pdf.options).then((instance) => {\n this.phantom = instance\n return resolve(instance)\n }).catch(reject)\n })\n }", "function PdfPageBase(dictionary) {\n /**\n * `Index` of the default layer.\n * @default -1.\n * @private\n */\n this.defLayerIndex = -1;\n /**\n * Local variable to store if page `updated`.\n * @default false.\n * @private\n */\n this.modified = false;\n /**\n * Instance of `DictionaryProperties` class.\n * @hidden\n * @private\n */\n this.dictionaryProperties = new DictionaryProperties();\n this.pageDictionary = dictionary;\n }", "createPages() {\n // Example:\n // this.pages = {\n // [this.pageNames.mainMenu]: new TestPage(ObjectFinder.find(\"plane0\"),this),\n // [this.pageNames.textMenu]: new TestPage(ObjectFinder.find(\"3dText0\"),this)\n // };\n }", "function PDF (options) {\n var infoId = uniqueNr()\n var catalogId = uniqueNr()\n var pageTreeId = uniqueNr()\n var resourcesId = uniqueNr()\n var firstPageId = uniqueNr()\n\n var currentPage = {\n id: firstPageId,\n contents: []\n }\n var state = {\n version: PDF.version,\n ids: {\n info: infoId,\n catalog: catalogId,\n pageTree: pageTreeId,\n resources: resourcesId\n },\n options: setDefault(options),\n currentPage: currentPage,\n pages: [currentPage],\n resources: {\n fonts: {}\n },\n plugins: PDF.plugins\n }\n\n var api = {\n add: add.bind(null, state),\n getContent: getContent.bind(null, state)\n }\n\n return api\n}", "function PdfPageBase(dictionary){/**\n * `Index` of the default layer.\n * @default -1.\n * @private\n */this.defLayerIndex=-1;/**\n * Local variable to store if page `updated`.\n * @default false.\n * @private\n */this.modified=false;/**\n * Instance of `DictionaryProperties` class.\n * @hidden\n * @private\n */this.dictionaryProperties=new DictionaryProperties();this.pageDictionary=dictionary;}", "function PdfDocumentPageCollection(document) {\n /**\n * It holds the page collection with the `index`.\n * @private\n */\n this.pdfPageCollectionIndex = new Dictionary();\n this.document = document;\n }", "function pdfBuilder (data) {\n\n // Create the document\n this.doc = new jsPDF();\n this.data = data;\n this.img = {}\n\n this.onReady = this.loadDependencies()\n .then(() => this.fillContent())\n .catch(console.warn)\n}", "function PdfDocumentPageCollection(document){/**\n * It holds the page collection with the `index`.\n * @private\n */this.pdfPageCollectionIndex=new Dictionary();this.document=document;}", "constructor(animationSpeed,pageDiv){\n pageDiv.addClass(\"pageDiv\");\n this.pages = [];\n var currentNumber = 0;\n var pageGroups = pageDiv.find(\".pageGroup\");\n for(var x=0;x<pageGroups.length;x++){\n var pages = $(pageGroups[x]).find(\".page\");\n for(var y =0;y<pages.length;y++){\n this.pages.push(new Page(pages[y],currentNumber,$(pages[y]).attr('name')));\n this.pageEntryListeners.push([]);\n this.pageExitListeners.push([]);\n currentNumber++;\n }\n this.pages.push(null);\n this.pageEntryListeners.push([]);\n this.pageExitListeners.push([]);\n currentNumber++;\n }\n this.pages[0].displayPage();\n this.currentPage = this.pages[0];\n this.animationSpeed = animationSpeed;\n }", "async _init() {\n debug('Initializing phantom instance.');\n this._phInstance = await phantom.create();\n\n debug('Initializing phantom page instance.');\n this._page = await this._phInstance.createPage();\n\n this._wireUpEvents();\n }", "function PdfSectionPageCollection(section){// Fields\n/**\n * @hidden\n * @private\n */this.pdfSection=null;if(section==null){throw Error('ArgumentNullException(\"section\")');}this.section=section;}", "function Page(annotext, text) {\n\tthis.annotext = annotext;\n\t// The raw text from which the page is generated.\n\tthis.text = text;\n\tthis.view_window = new PageViewWindow(this);\n\tthis.edit_window = new PageEditWindow(this);\n\tthis.view_screen = new PageViewScreen(this);\n\tthis.edit_screen = new PageEditScreen(this);\n\t// Mappings of link contents to the link elements.\n\tthis.links = {}\n}", "function PdfDocumentPageCollection(document) {\n /**\n * It holds the page collection with the `index`.\n * @private\n */\n this.pdfPageCollectionIndex = new Dictionary();\n /**\n * Stores the previous pages's `orientation`.\n * @default PdfPageOrientation.Portrait\n * @private\n */\n this.previousPageOrientation = PdfPageOrientation.Portrait;\n this.document = document;\n }", "function createPage() {\n\t var pageInstance = new Page();\n\n\t function pageFn(/* args */) {\n\t return page.apply(pageInstance, arguments);\n\t }\n\n\t // Copy all of the things over. In 2.0 maybe we use setPrototypeOf\n\t pageFn.callbacks = pageInstance.callbacks;\n\t pageFn.exits = pageInstance.exits;\n\t pageFn.base = pageInstance.base.bind(pageInstance);\n\t pageFn.strict = pageInstance.strict.bind(pageInstance);\n\t pageFn.start = pageInstance.start.bind(pageInstance);\n\t pageFn.stop = pageInstance.stop.bind(pageInstance);\n\t pageFn.show = pageInstance.show.bind(pageInstance);\n\t pageFn.back = pageInstance.back.bind(pageInstance);\n\t pageFn.redirect = pageInstance.redirect.bind(pageInstance);\n\t pageFn.replace = pageInstance.replace.bind(pageInstance);\n\t pageFn.dispatch = pageInstance.dispatch.bind(pageInstance);\n\t pageFn.exit = pageInstance.exit.bind(pageInstance);\n\t pageFn.configure = pageInstance.configure.bind(pageInstance);\n\t pageFn.sameOrigin = pageInstance.sameOrigin.bind(pageInstance);\n\t pageFn.clickHandler = pageInstance.clickHandler.bind(pageInstance);\n\n\t pageFn.create = createPage;\n\n\t Object.defineProperty(pageFn, 'len', {\n\t get: function(){\n\t return pageInstance.len;\n\t },\n\t set: function(val) {\n\t pageInstance.len = val;\n\t }\n\t });\n\n\t Object.defineProperty(pageFn, 'current', {\n\t get: function(){\n\t return pageInstance.current;\n\t },\n\t set: function(val) {\n\t pageInstance.current = val;\n\t }\n\t });\n\n\t // In 2.0 these can be named exports\n\t pageFn.Context = Context;\n\t pageFn.Route = Route;\n\n\t return pageFn;\n\t }", "constructor() { \n \n PageInfo.initialize(this);\n }", "async generatePages() {\n // pass the same options to the svg converter for each page\n const options = {\n assumePt: true,\n width: this.svgWidth,\n height: this.svgHeight,\n preserveAspectRatio: 'xMinYMin slice',\n }\n\n // everything is offset by a margin so that it's centered on the page\n const startMargin = this.margin\n for (var h = 0; h < this.rows; h++) {\n for (var w = 0; w < this.columns; w++) {\n // skip empty pages\n if (!this.pagesWithContent[h][w]) continue\n\n // position it\n let x = -w * this.pageWidth + startMargin\n let y = -h * this.pageHeight + startMargin\n\n // if there was no cover page, the first page already exists\n if (this.pageCount > 0) {\n // otherwise make a new page\n this.pdf.addPage()\n }\n\n // add the pdf to the page, offset by the page distances\n await SVGtoPDF(this.pdf, this.svg, x, y, options)\n this.pageCount++\n }\n }\n }", "static factory({ pages_root }) {\n return function(file) {\n return new Page(pages_root, file);\n };\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
se crea el servicio dataService, que lo crea DataServiceProvider
function DataServiceProvider() { // Crea un dataService this.serviceUrl = null; //this.setConfig = function (serviceUrl) { // Por si se le llama desde fuera del proyecto // this.serviceUrl = serviceUrl; //}; this.$get = get; get.$inject = ['$http']; function get($http) { return new DataService($http, this.serviceUrl); } }
[ "function getDataService() {\n // set the data service endpoint\n return new breeze.DataService({\n serviceName: window.location.protocol + '//' + window.location.host + '/odata/'\n });\n }", "function createSemanticDataServices() {\n const SemDatSrvs = new SemanticDataServices(\n process.env._HOST,\n process.env._USERNAME,\n process.env._PASSWORD\n\n )\n return SemDatSrvs\n}", "function createDataserviceClicked() {\n var svcName = EditWizardService.serviceName();\n var svcDescription = EditWizardService.serviceDescription();\n \n try {\n RepoRestService.createDataService( svcName, svcDescription ).then(\n function () {\n setDataserviceServiceVdb(svcName);\n },\n function (response) {\n var errorMsg = $translate.instant('dataserviceEditWizard.createDataserviceFailedMsg');\n DialogService.basicInfoMsg(errorMsg + \"\\n\" + RepoRestService.responseMessage(response),\n \"Failure to create data service\");\n });\n } catch (error) {\n var errorMsg = $translate.instant('dataserviceEditWizard.createDataserviceFailedMsg');\n DialogService.basicInfoMsg(errorMsg + \"\\n\" + error,\n \"Failure to create data service\");\n }\n }", "getService(entityName) {\n entityName = entityName.trim();\n let service = this.services[entityName];\n if (!service) {\n service = this.defaultDataServiceFactory.create(entityName);\n this.services[entityName] = service;\n }\n return service;\n }", "function insertDataService(){\n//INSERT SERVICE\n\tinsertDocumentTest(\"service\",{name:\"Banho\",price:30, description:\"Banho em animais\", picture:\"./src/images/services/shower.png\", scheduledAmount:0, priority:1});\n\tinsertDocumentTest(\"service\",{name:\"Tosa\",price:40, description:\"Tosa em animais\", picture:\"./src/images/services/cut.png\", scheduledAmount:0, priority:2});\n\tinsertDocumentTest(\"service\",{name:\"Veterinário\",price:35, description:\"Veterinário para animais\", picture:\"./src/images/services/vet.png\", scheduledAmount:0, priority:3});\n\tinsertDocumentTest(\"service\",{name:\"Leva e traz\",price:10, description:\"Leva e traz animais\", picture:\"./src/images/services/van.png\", scheduledAmount:0, priority:4});\n}", "function createServiceObjects(data) {\n let i = 1;\n let servicesList = [];\n\n if (Object.keys(data).length == 0) {\n throw new SyntaxError(\"Empty data object. Please enter the correct data.\");\n }\n\n for (let key in data) {\n if (!key || !data[key]) {\n throw new SyntaxError(\"The incorrect input data.\");\n }\n if (data[key] < 100) {\n servicesList.push( new FixedHourlyCostPaidService('service' + i, key, data[key]) );\n i++;\n }\n }\n\n for (let key in data) {\n if (data[key] > 100) {\n servicesList.push( new FixedMonthlyCostPaidService('service' + i, key, data[key]) );\n i++;\n }\n }\n\n return servicesList;\n }", "function createServiceFile(data, callback){\n\t//@TODO generate then send it back\n\t// check you have modelfields or model\n\tif( !data.modelfields || data.modelfields.length == 0 && data.model ){\n\t\tdata.modelfields = TemplateUtil.getFieldFromObject(data.model);\n\t}\n\t\n\tif(data /*&& !data.primaryKeyFields*/){\n\t\tdata.primaryKeyFields = [];\n\t\t\n\t\t// do update primaryKeyFields\n\t\tvar primaryKeyFields = data.modelfields.filter(function(modelfield){\n\t\t\treturn modelfield.primary;\n\t\t});\n\t\t\n\t\tfor(var key in primaryKeyFields)\n\t\t\tdata.primaryKeyFields.push(primaryKeyFields[key].field);\n\t}\n\t\n\tvar servicetemplatepath = apiserviceService.getServiceloader().templatedir + \"/crudservice.js.tmpl\" \n\tif(data && data.remoteservice)\n\t\tservicetemplatepath = apiserviceService.getServiceloader().templatedir + \"/remoteservice.js.tmpl\"\n\t\n\tdata.model = TemplateUtil.getModelFromSettings(data.modelfields);\n\t\n\tif(data.configuration){\n\t\tdata.configuration.validation = EditorUtil.getValidationFromSettings(data.modelfields);\n\t\tdata.configuration.modelsettings = EditorUtil.getModelSettingsFromSettings(data.modelfields);\n\t}\n\t\n\tdata.filename = data.name;\n\tvar template = new Template({engine:'ejs', file:servicetemplatepath, data:data});\n\t\n\ttemplate.render(function(error, jscontent){\n\t\tvar installpath;\n\t\tvar pluginsetting;\n\t\tif(data.servicetype == 'plugin'){\n\t\t\tpluginsetting = apiserviceService.getPluginloader().getPluginDetails(data.plugin, \"webapp\");\n\t\t\t\n\t\t\tif(pluginsetting){\n\t\t\t\tvar servicedir;\n\t\t\t\tif(!pluginsetting.servicedir)\n\t\t\t\t\tservicedir = pluginsetting.installeddir + \"/\" + pluginsetting.servicedir[0];\n\t\t\t\telse\n\t\t\t\t\tservicedir = pluginsetting.installeddir + \"/services\";\n\t\t\t\t\n\t\t\t\tutil.checkDirSync(servicedir);\n\t\t\t\t\n\t\t\t\tinstallpath = pluginsetting.installeddir + \"/services/\" + data.name+ \".js\";\n\t\t\t}\n\t\t}else if(data.servicetype == 'server'){\n\t\t\tinstallpath = util.getServerPath(\"api/\" + data.name+ \".js\");\n\t\t}else\n\t\t\tinstallpath = apiserviceService.getServiceloader().systemapidir + \"/\" + data.name + \".js\";\n\t\t\n\t\tinstallpath = util.getServerPath(installpath);\n\t\t\n\t\tif(installpath && jscontent)\n\t\t\tfs.writeFile(installpath, jscontent, (function(callback){\n\t\t\t\treturn function(){\n\t\t\t\t\tcallback(null, installpath);\n\t\t\t\t}\n\t\t\t})(callback));\n\t\telse if(!jscontent)\n\t\t\tcallback(\"No jscontent after template\");\n\t\telse\n\t\t\tcallback(\"No install path found\");\n\t});\n\t\n//\ttemplate.render(servicetemplatepath, data, (function(callback){ \n//\t\treturn function(error, jscontent){\n//\t\t\t// find the plugin\n//\t\t\tvar installpath;\n//\t\t\tvar pluginsetting;\n//\t\t\tif(data.servicetype == 'plugin'){\n//\t\t\t\tpluginsetting = apiserviceService.getPluginloader().getPluginDetails(data.plugin, \"webapp\");\n//\t\t\t\t\n//\t\t\t\tif(pluginsetting){\n//\t\t\t\t\tvar servicedir;\n//\t\t\t\t\tif(!pluginsetting.servicedir)\n//\t\t\t\t\t\tservicedir = pluginsetting.installeddir + \"/\" + pluginsetting.servicedir[0];\n//\t\t\t\t\telse\n//\t\t\t\t\t\tservicedir = pluginsetting.installeddir + \"/services\";\n//\t\t\t\t\t\n//\t\t\t\t\tutil.checkDirSync(servicedir);\n//\t\t\t\t\t\n//\t\t\t\t\tinstallpath = pluginsetting.installeddir + \"/services/\" + data.name+ \".js\";\n//\t\t\t\t}\n//\t\t\t}else if(data.servicetype == 'server'){\n//\t\t\t\tinstallpath = util.getServerPath(\"api/\" + data.name+ \".js\");\n//\t\t\t}else\n//\t\t\t\tinstallpath = apiserviceService.getServiceloader().systemapidir + \"/\" + data.name + \".js\";\n//\t\t\t\n//\t\t\tinstallpath = util.getServerPath(installpath);\n//\t\n//\t\t\tif(installpath)\n//\t\t\t\tfs.writeFile(installpath, jscontent, (function(callback){\n//\t\t\t\t\treturn function(){\n//\t\t\t\t\t\tcallback(null, installpath);\n//\t\t\t\t\t}\n//\t\t\t\t})(callback));\n//\t\t\telse\n//\t\t\t\tcallback(\"No install path found\");\n//\t\t};\n//\t})(callback));\n}", "createService() {\r\n this._service = new CurrencyService();\r\n }", "function createService(service){\r\n\t\tServiceService.createService(service)\r\n\t\t\t.then(\r\n\t\t\t\t function () {\r\n\t\t\t\t\t fetchAllServices();\t\t\t\t\t \r\n\t\t\t\t\t self.message = service.service_name + \" service created..!\";\r\n\t\t\t\t\t successAnimate('.success');\r\n\t\t\t\t },\r\n\t\t\t\t \r\n\t\t\t\t function(errResponse){\r\n\t\t\t\t\t console.error('Error while creating service' + service.service_name);\r\n\t\t\t\t }\r\n\t\t\t );\r\n\t}", "function DataService(options) {\n\n\t\t/** fetch the options */\n\t\toptions = options || {}\n\n\t\t/** parse.com app id */\n\t\tthis.appid = options.appid || \"7JSMjdDlgmtsWgGY5LOPMm3tCluhAo7Wmuu9MLpf\"\n\n\t\t/** parse.com app js key */\n\t\tthis.appkey = options.appkey || \"75P9wy6X6guG9HRUvMxcVueLjZ93ljY56z3jrgAN\"\n\n\t\t/** initialize parse.com */\n\t\tthis.parse = Parse\n\t\tthis.parse.initialize(this.appid, this.appkey)\n\n\t\t/** set the user account */\n\t\tthis.user = options.user || undefined\n\n\t\treturn this\n\t}", "constructor() {\n this.dataService = new DataService();\n this.emailService = new EmailService();\n this.queueService = new QueueService();\n }", "function loadData() { DokumentiGetAllFactory($scope, '/api/PocetnoStanjeAPI'); }", "function DataAbstractService(url){\r\n this.url = url;\r\n}", "function DataManager() {}", "function create () {\n $http.post(API_URL+'services', $scope.service)\n .success(function (data) {\n alert('Service was created correctly');\n $scope.service = {name: null, description: null,someField: null,otherField: null};\n index();\n })\n .error(function (err) {\n alert('Error: '+ err.message);\n console.debug(err)\n })\n }", "static async _create() {\n\t\tconst serviceName = Config.str(\"serviceName\");\n\n\t\t// Create the service if it does not exist - otherwise, throw an error\n\t\tlet service = await ECSManager.describeService(serviceName);\n\t\tif (service && service.status !== \"INACTIVE\") {\n\t\t\tthrow new Error(\"Service already exists: \" + serviceName + \". Delete or update instead.\");\n\t\t}\n\n\t\t// Register the task definition first\n\t\tconsole.log(\"CREATE 1) Register Task Definition\");\n\t\tconst taskDefinition = await ECSManager.registerTaskDefinition();\n\t\tconst taskDefinitionArn = taskDefinition.taskDefinition.taskDefinitionArn;\n\n\t\t// Creating a new service\n\t\t// We create a target group to associate this service with an Elastic Load Balancer\n\t\tconsole.log(\"CREATE 2) Create Target Group\");\n\t\tconst targetGroupResponse = await ELBManager.createTargetGroup();\n\t\tconsole.log(\"TargetGroupResponse: \" + JSON.stringify(targetGroupResponse, null, 2));\n\t\tconst targetGroupArn = targetGroupResponse.TargetGroups[0].TargetGroupArn;\n\n\t\t// We create a rule that tells our load balancer when to send requests to our new service\n\t\t// By default, it forwards <SERVICE_NAME>.bespoken.io to the service\n\t\t// This can be changed online in the ECS console\n\t\tconsole.log(\"CREATE 3) Create Rule\");\n\t\tconst rules = await ELBManager.createRule(targetGroupArn);\n\t\tconsole.log(\"Rules: \" + JSON.stringify(rules, null, 2));\n\n\t\t// Create the service\n\t\tconsole.log(\"CREATE 4) Create Service\");\n\t\tservice = await ECSManager.createService(targetGroupArn, taskDefinitionArn);\n\t\treturn service;\n\t}", "function DataApi() {}", "function FedrampDataService () {\n var self = this;\n\n /**\n * Stores cache storage data.\n */\n self.load = load;\n\n /**\n * Used for testing so there is something there initially. This will be\n * overidden every time in production.\n */\n self.all = function () {\n return [];\n };\n\n /**\n * Takes the contents of a storage factory object and adds its properties and methods\n * to this current object.\n */\n function load (storage) {\n angular.extend(self, storage);\n\n // If we enable caching globally when configuring fedrampDataProvider,\n // we wrap all data returning functions with a cache wrapper.\n if (provider.defaults.cache) {\n self.products = Cache.wrap('products')(storage.products);\n self.providers = Cache.wrap('providers')(storage.providers);\n self.assessors = Cache.wrap('assessors')(storage.assessors);\n self.agencies = Cache.wrap('agencies')(storage.agencies);\n }\n }\n }", "function initializeData() {\n databaseService.initialize()\n .then(() => {\n cityService = new CityService(databaseService);\n logger.log('Data initialized...');\n server.listen(config.port, () => logger.log(`Server started at port:${config.port}`))\n });\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use the module reference to determine which scripts apply to the current page.
function loadModulesByPage(page, getVariables) { page = page || ""; var modulesToLoad = pageReference[page]; if (modulesToLoad) { for (var i = 0; i < modulesToLoad.length; i++) { var module = modulesToLoad[i]; if (!(module.key) || moduleEnabled(module.key)) { var pageConditions = module.pageConditions; if (pageConditions) { var matchFail = false; for (var condition in pageConditions) { if (pageConditions[condition] != "" && !getVariables[condition] || pageConditions[condition] == "" && getVariables[condition] || pageConditions[condition] != "" && pageConditions[condition] != "*" && getVariables[condition] != pageConditions[condition]) { matchFail = true; break; } } if (matchFail) { continue; } } InjectScript(module.func, module.immediate != true); } } } }
[ "function call_support_scripts(AD_PRIVACY){\n // (this one is just a test)\n // if (browser.Chrome){\n // var support_url = '/chrome_support'\n // var support_script = document.createElement(\"script\");\n // AD_PRIVACY.scripts_needed++;\n // support_script.src = DOMAIN_ROOT + support_url + '.js';\n // document.body.appendChild(support_script);\n // }\n //browser and user agent considerations\n }", "function script_viewable () {\n if (top.document.URL.indexOf (\"$$$\") != -1)\n return \"Frame\"\n else {\n return \"Script\"\n\t}\n}", "function loadAndEvalScript()\n {\n var elems = document.getElementsByTagName('script')\n\n for (var i=0; i<elems.length; i++)\n {\n var el = elems[i];\n var globalEval = (1, eval);\n\n if (el.src.match(/simple\\.js$/))\n globalEval(el.innerHTML);\n }\n }", "function loadScripts(){\n renderer.setIPC();\n inject.uglifyScripts();\n inject.injectScripts();\n}", "function incompatableScripts() {\n\tswitch(window.location.pathname) {\n\t\tcase \"/Unimarklet/\":\n\t\t\treturn new Set([\n\t\t\t\t\n\t\t\t]);\n\t\t\tbreak;\n\t\tcase \"/venus/\":\n\t\t\treturn new Set([\n\t\t\t\t\n\t\t\t]);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn new Set([\n\t\t\t\t\n\t\t\t]);\n\t}\n}", "function runAllScripts(){\n loadNarcissus();\n var scripts = content.document.getElementsByTagName('script');\n for (var i=0; i<scripts.length; i++) {\n runScript(scripts[i]);\n }\n }", "function afterScriptLoad(module) {\n }", "function injectScripts() {\n initializeParameters();\n //Load the required SharePoint libraries and wire events.\n jQuery(document).ready(function () {\n var scriptbase = appData.AppWebUrl + '/_layouts/15/';\n //load all appropriate scripts for the page to function\n jQuery.getScript(scriptbase + 'SP.Runtime.js', function () {\n jQuery.getScript(scriptbase + 'SP.js', function () {\n jQuery.getScript(scriptbase + 'init.js', function () {\n jQuery.getScript(scriptbase + 'SP.UserProfiles.js', function () {\n clientContext = new SP.ClientContext.get_current();\n jQuery.when(initializeSettings()).then(function (d) {\n settings = d;\n executeProfileScript();\n }, function (err) {\n logError(err, false);\n });\n });\n });\n });\n });\n });\n}", "function scriptMain() {\n pageSetup();\n\n}", "function autoJsModule() {\n // Is the pageJS variable declared in your route vars? Load it.\n if (typeof pageJs !== 'undefined') {\n // Require the module via webpack's dynamic context module\n const pageModule = require(`./pages/${pageJs}`);\n // Does the module have an init()? Run it, w/ config included.\n if (pageModule && typeof pageModule.init === 'function') {\n pageModule.init(config);\n }\n }\n}", "function loadScripts()\n\t{\n\t\tif (scriptList.length > 0)\n\t\t{\n\t\t\tvar file = scriptList.shift();\n\n\t\t\t// Inject the script elements\n\t\t\tajaxHandles.push(fw.injectScript(that.path + file, loadScripts, loadFailed));\n\t\t}\n\t\telse\n\t\t\tdoneLoading();\n\t}", "function initScripts() {\n breakpoint();\n lazyload();\n heroSlider();\n categoriesMobile();\n asideLeftMobile();\n scrollRevealInit();\n seoSpoiler();\n mobileMenuOverflowScroll();\n}", "loadServerScripts() {\n // @TODO: implement me\n }", "function _getScripts() {\n for (var x = 0; x < _actions.length; x++) {\n APP[_actions[x]] = require(\"./components/\" + _actions[x])[\n _actions[x]\n ];\n APP[_actions[x]].init();\n }\n }", "function CrossSiteScriptingProcessor() {\n}", "async function loadExtraScripts() {\n}", "function vaultScriptLoader () {\n // Always loaded\n addCountdowns();\n rewriteChatLink();\n ajaxPatrolLinks();\n\n // Only loaded for specific namespaces\n if ((wgNamespaceNumber == 0 || wgNamespaceNumber == 4 || wgNamespaceNumber == 110 || wgNamespaceNumber == 502) &&\n !window.wgIsMainpage) {\n addTitleIcons();\n }\n\n if (wgNamespaceNumber%2 != 0 && wgNamespaceNumber != 501) {\n archiveTool();\n disableArchiveEdit();\n }\n\n // Only loaded for specific pages\n if (wgPageName == 'Fallout_Wiki:Duplicate_files') {\n findDupFiles();\n }\n\n for (var x in ajaxPages) {\n if (wgPageName == ajaxPages[x] && $(\"#ajaxToggle\").length==0) {\n preloadAJAXRL();\n }\n }\n}", "function scriptLoadHandler() {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n // Call our main function\n content_setup();\n }", "function processModules()\n\t{\n\t\tif(unprocessedQueue.length != 0)\n\t\t{\n\t\t\t//We will process all the scripts one by one.\n\t\t\tvar mod=null;\n\t\t\tif(unprocessedQueue.length == 1){\n\t\t\t\tmod = unprocessedQueue.pop();\n\t\t\t}else{\n\t\t\t\tmod = unprocessedQueue.shift();\n\t\t\t}\n\t\t\tloadModule(mod);\n\t\t\tloadedModule = null;\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
After you've run setupInitialProperties(), you can run this function from the Run menu to search and tweet just one Tweet. This happens independently of the timed running if you've already run start().
function doWorkflow() { var props = PropertiesService.getScriptProperties(); var twit = new Twitterlib.OAuth(props); var i = -1; var tweets = searchTweets(twit); if(tweets) { for(i = tweets.length - 1; i >= 0; i--) { if(sendTweet(tweets[i].id_str, tweets[i].text, twit)) { ScriptProperties.setProperty("MAX_TWITTER_ID", tweets[0].id_str); break; } } } if(i < 0) { Logger.log("No matching tweets this go-round"); } }
[ "function startSearch() { // searches for last tweet/retweet from @arielengle & calls retweetAriel()\n console.log(\"startSearch: Initialized\");\n eventParams = {\n q: \"arielengle\",\n count: 1\n }\n\n T.get(\"search/tweets\", eventParams, startData);\n\n function startData(err, data, response) {\n var tweetText = data.statuses;\n var tweetId;\n var screenName;\n for(var i = 0; i < tweetText.length; i++) {\n firstTweet = tweetText[i].text;\n tweetId = tweetText[i].id_str;\n screenName = tweetText[i].retweeted_status.user.screen_name;\n }\n\n var params = {\n id: tweetId\n }\n retweeted(params, screenName);\n console.log(\"startSearch: Completed\");\n }\n}//end of search()", "function tweetRandom() {\n\n\tT.get('trends/place', trendingQuery, function (error, data) {\n\t\tif (!error) {\n\t\t\tvar subquery = {q: data[0].trends.pick().query, count: 2,\n\t\t\t\tresult_type: \"popular\"};\n\t\t\tT.get('search/tweets', subquery, function (error, subdata) {\n\t\t\t\tvar tweet;\n\t\t\t\tfor (i = 0; i < subdata.statuses.length; i++) {\n\t\t\t\t\tif (subdata.statuses[i] != null) {\n\t\t\t\t\t\ttweet = subdata.statuses[i];\n\t\t\t\t\t\tmentionId = tweet.id_str;\n\t \t\t\t\ttweetText = \"@\" + tweet.user.screen_name + \" \" + question.pick();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t \t\t\tif (debug) {\n\t\t\t\t\tconsole.log('Debug mode: ', tweetText);\n\t\t\t\t} else {\n\t\t\t\t\tT.post('statuses/update', {status: tweetText,\n\t\t\t\t\t\tin_reply_to_status_id: mentionId}, function(err, reply) {\n\t\t\t\t\t\tif (err != null){\n\t\t\t\t\t\t\tconsole.log('Error: ', err);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tconsole.log('Tweeted: ', tweetText);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tconsole.log('There was an error with your hashtag search:', error);\n\t\t}\n\n\t});\n}", "function tweetIt() {\n\tvar tweet = new Tweet(false);\n\t//Seleccionamos la fuente\n\ttweet.source = randomSource();\n\tconsole.log(\"source: \"+tweet.source);\n\t//GET tweet\n\tvar count = randomCount();\n\tT.get('statuses/user_timeline', { screen_name: tweet.source, count: count, tweet_mode: 'extended' }, function (err, data, response) {\n\t\tif(!err){\n\t\t\t//Seteo de informacion relevante proveniente del tweet\n\t\t\t//y creacion del tweet final\n\t\t\ttweet.createTweetFinal(data);\n\t\t\tconsole.log(\"OTweet: \"+tweet.originalText);\n\t\t\tconsole.log(\"FTweet: \"+tweet.finalText);\n\t\t\t\n\t\t\t//Si el tweet actual resulta ser el mismo que se posteo anteriormente, se busca otro.\n\t\t\t//Si el tweet final excede el total, se busca otro.\n\t\t\tif(lastTweetID==tweet.tweetID || tweet.finalText.length > totalCharacters){\n\t\t\t\ttweetIt();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlastTweetID = tweet.tweetID;\n\n\t\t\t//¡¡¡SEND TWIT!!!\n\t\t\tpostIt(tweet); \n\t\t}else{\n\t\t\tconsole.log(err);\n\t\t}\n\t});\n}", "function retweetLatest() {\n var guardianRtTxt;\n var torygraphRtTxt=\"debug0\";\n // var adviceSubjects = [\"love\", \"life\", \"success\", \"money\", \"happiness\", \"bad\", \"careers\", \"astrology\", \"philosophy\",\"truth\",\"lies\"];\n // var typeStatements = [\"advice\", \"bad advice\", \"advice quote\"]\n // var yy=Math.floor((Math.random() * typeStatements.length));\n // var xx=Math.floor((Math.random() * adviceSubjects.length));\n // var adviceSubject= adviceSubjects[xx];\n // var typeStatement= typeStatements[yy];\n // var searchTerm = typeStatement + \" \" + adviceSubject;\n// function stripOutText(tweet){\n// var replaced = tweet.substring(tweet.indexOf(\"is\"));\n// }\n \nvar searchTerm = \"Trump\";\n\n//var adviceSearch = {q: searchTerm, count: 10, result_type: \"mixed\" }; \n //statuses/user_timeline\n // T.get('search/tweets', { q: 'trump', count: 10, screen_name: 'guardian' }, function (error, data, response) {\n\t\n //T.get('search/tweets', adviceSearch, function (error, data, response) {\n // T.get('search/tweets', adviceSearch, function (error, data, response) { \n\t // log out any errors and responses\n\n var countN = 100;\n var options1 = { screen_name: 'guardian',\n count: countN };\n var options2 = { screen_name: 'telegraph',\n count: countN };\n\nT.get('statuses/user_timeline', options1 , function (error, data, response) {\n \n\t if (!error) {\n \t//random selection method\n //var x=Math.floor((Math.random() * countN)+1);\n //guardianRtTxt = data[x].text;\n \n guardianRtTxt = searchForSubject(data, searchTerm);\n \n guardianRtTxt = removeURLs(guardianRtTxt);\n guardianRtTxt = cutTweetInHalf(guardianRtTxt, 0);\n\n Tw.get('statuses/user_timeline', options2 , function (err, dat, resp) {\n \n\t if (!err) {\n \n // var y=Math.floor((Math.random() * 10)+1);\n // torygraphRtTxt = dat[y].text;\n \n torygraphRtTxt = searchForSubject(dat, searchTerm);\n \n removeURLs(torygraphRtTxt);\n torygraphRtTxt = cutTweetInHalf(torygraphRtTxt, 1);\n \n \n \n var retweetTxt = guardianRtTxt + torygraphRtTxt;\n \n var statusComposer = retweetTxt;\n \n\t\t\n\tT.post('statuses/update', { status: statusComposer}, function(error, data, response) {\n\t\t\tif (response) {\n response.sendStatus(200);\n \n \n }\n });\n \n// var retweetTxt = guardianRtTxt + torygraphRtTxt;\n \n// // //take out @mentions\n// // retweetTxt=retweetTxt.replace(/(@\\S+)/gi,\"\");\n// // //remove hashtags\n// // retweetTxt=retweetTxt.replace(\"#\",\"\");\n// // //take out retweets\n// // retweetTxt=retweetTxt.replace(\"RT:\",\"\");\n// // retweetTxt=retweetTxt.replace(\"RT\",\"\");\n// // //take out additional spaces\n// // retweetTxt=retweetTxt.replace(/\\s+/g,' ').trim();\n// // var rtTxtArray =retweetTxt.split(\" \");\n// // // var retweetTxt = wordSwapsies(rtTxtArray);\n// // retweetTxt=retweetTxt.replace(\"undefined\",\"\");\n// // var tweeter = data.statuses[x].user.name;\n \n// // var statusComposer = \"'\" + retweetTxt + \"' - \" + tweeter;\n// var statusComposer = retweetTxt;\n// //var statusComposer = \"Hello James!\";\n\t\t\n// \tT.post('statuses/update', { status: statusComposer}, function(error, data, response) {\n// \t\t\tif (response) {\n// response.sendStatus(200);\n \n \n\t\t\t}\n\t\t\t// If there was an error with our Twitter call, we print it out here.\n\t\t\tif (error) {\n\t\t\t\t\n response.sendStatus(500);\n var statusComposer = \"500 error\";\n\t\t\t}\n\t\t})\n\t }\n\t // However, if our original search request had an error, we want to print it out here.\n\t else {\n\t \tconsole.log('There was an error with your search:', error);\n response.sendStatus(200);\n var statusComposer = \"200 error\";\n\t }\n\t});\n}", "function scheduleNextTweet() {\n tweetIndex++;\n console.log(`Schedule tweet ${tweetIndex}`);\n tweetList[tweetIndex]();\n\n if (tweetList[tweetIndex + 1]) {\n console.log(\"Waiting a bit...\");\n setTimeout(scheduleNextTweet, getRandomInt(1500, 4000));\n } else {\n console.log(\"All done!\");\n }\n}", "function initalizeTweets(){\n if(tweets != []){\n setInterval(getTweets, 60100);\n getTweets();\n }\n}", "function tweetRecall(){\n\tvar params = {screen_name: 'samxmoses'}\n\tvar i = 2;\n\tclient.get(\"statuses/user_timeline\", params, function(error, tweets, response) {\n\t if (!error) {\n\t for (i=0; i<2; i++){\n\t \tj=i+1;\n\t \tconsole.log(\"Alias Sam X Moses tweet # \"+j+\": \"+tweets[i].text);\t \t\n\t } \n\t } else {\n\t console.log(error)\n\t }\n\t});\n}", "start() {\n\t\tif(!this.running) {\n\t\t\tthis.userArgs.DEBUG && this.utils.console(\"Twitter API waiting to connect for \" + this.config.hashtag);\n\n\t\t\tsetTimeout(()=>{\n\t\t\t\tthis.client = new Twitter({\n\t\t\t\t\tconsumer_key: this.config.api_key,\n\t\t\t\t\tconsumer_secret: this.config.api_secret,\n\t\t\t\t\tbearer_token: this.config.bearer\n\t\t\t\t});\n\n\t\t\t\tthis.stream = this.client.stream(\"tweets/search/stream\", {\n\t\t\t\t\t\"tweet.fields\":\"created_at\",\n\t\t\t\t\t\"expansions\":\"author_id\",\n\t\t\t\t\t\"user.fields\":\"created_at\"\n\t\t\t\t});\n\n\t\t\t\tthis.db.databases.templatetheme.getActiveTheme().then((theme)=>{\n\t\t\t\t\tthis.waitForData(theme);\n\t\t\t\t\tthis.running = true;\n\t\t\t\t\tthis.userArgs.DEBUG && this.utils.console(\"Twitter API listening for \" + this.config.hashtag);\n\t\t\t\t});\t\n\t\t\t},5000);\t\t\t\t\t\n\t\t}\t\t\n\t}", "function startTweetBot() {\n log('Tweet bot application starting up');\n setInterval(() => {\n const {\n networkStatTimes,\n stakingInfoTimes,\n nodeInfoTimes,\n } = tweetConfig.config;\n\n executeTweet(networkStatTimes, tweetNetworkStats);\n executeTweet(stakingInfoTimes, tweetStakingInfo);\n executeTweet(nodeInfoTimes, tweetNodeInfo);\n }, oneMinute);\n}", "function twitterCall() {\n\tclient.get('search/tweets', { q: 'jbs_twitbot', count: 20 }, function (error, tweets, response) {\n\t\tif (!error) {\n\t\t\tconsole.log(\"\\n-------------------\")\n\t\t\tconsole.log(\"\\n Now searching Twitter user @jbs_twitbot ! \\n]\")\n\t\t\tfor (var i = 0; i < 20; i++) {\n\t\t\t\tconsole.log(\"\\n-------------------\")\n\t\t\t\tconsole.log(\"Tweet #\" + (i + 1))\n\t\t\t\tconsole.log(tweets.statuses[i].text)\n\t\t\t\tconsole.log(\"Time Tweet Created:\" + tweets.statuses[i].created_at)\n\t\t\t}\n\t\t\treturn console.log(\"Twitter Feed complete!\")\n\t\t}\n\t\tconsole.log(\"There was an error, please try again!\")\n\t})\n}", "function triggerTweeting() {\n // Creates the OAuth1 service for Twitter API.\n var service = twitter.getService();\n if (!service.hasAccess()) {\n Logger.log('Needs to authorize.');\n twitter.logAuthorizationUrl();\n twitter.logCallbackUrl();\n return;\n }\n\n // Gets historical data from the sheet.\n var items = readDataFromSheet(getSheet());\n\n // If there's not new measurement data within 24 hours, skip this tweet.\n var latest = Math.max.apply(null, items.map(function(item) {return item.date || 0;}));\n if (Date.now() - (new Date(latest * 1000)).getTime() > 24 * 60 * 60 * 1000) {\n Logger.log('There\\'s no data to tweet.');\n return;\n }\n\n // Tweets the latest change of weight.\n var chart = makeChart(items, 7);\n var text = makeText(items);\n twitter.tweetWithMedia(text, chart.getAs('image/png'));\n}", "function tweet() {\n // User based authentication\n var Twitter = require('twitter');\n\n // since you've already named your twitter keys the same as what the Twitter client expects\n // you can simply pass those in instead of redundantly naming them.\n var client = new Twitter(tweetKeys)\n\n var params = { screen_name: 'tcbtran23', count: 20};\n client.get('statuses/user_timeline', params, function(error, tweets, response) {\n if (!error) {\n\n for (var i=0; i < tweets.length; i++) {\n console.log(\"Tweet: \" + tweets[i].text);\n console.log(\"Posted on: \" + tweets[i].created_at);\n console.log(\"==================================\");\n }\n\n }\n });\n}", "function retweet() {\n var params = {\n q: 'christmas',\n count: 2,\n result_type: 'recent',\n lang: 'en' \n }\n\n var tweet = {\n status: 'Retweeting most recent tweets about ' + params.q\n }\n\n print('retweet', 'params and tweet instantiated');\n\n function gotData(err, data, response) {\n if (err) {\n print('retweet', 'retweet ERROR!');\n } else {\n print('retweet', 'retweet SUCCESS!');\n }\n var tweets = data.statuses;\n for (var i = 0; i < tweets.length; i++) {\n console.log('NEWS '+ i + ' || ' + tweets[i].text);\n var result = {\n status: tweets[i].text\n }\n print('retweet', 'retweeting the searched tweet');\n print('retweet', tweets[i].text);\n T.post('statuses/update', result, isTweetSuccess);\n }\n }\n\n print('retweet', 'posting tweet...');\n T.post('statuses/update', tweet, isTweetSuccess);\n\n print('retweet', 'searching tweet...');\n T.get('search/tweets', params, gotData);\n}", "retweet(search) {\n console.log(search);\n this.client.get('search/tweets', {\n q: search,\n count: 1\n }, (error, tweets, response) => {\n\n console.log(tweets);\n\n // for (let i = 0; i < 1; i++) {\n\n // console.log(\"TWEET \" + i + \": \" + tweets.statuses[i].text);\n // console.log(\"TWEET ID \" + i + \": \" + tweets.statuses[i].id);\n\n\n if(tweets.statuses.length > 0) {\n var tweetId = tweets.statuses[0].id_str;\n \n this.client.post(\"statuses/retweet/\" + tweetId, function (error, tweet, response) {\n if (!error) {\n console.log(\"Tweeted: \" + tweet.text);\n \n } else {\n console.log(error)\n }\n });\n }\n else {\n return;\n }\n \n // }\n });\n }", "function onTweet(tweet) {\n // if it's flagged as a retweet or has RT\n // in there then we probably don't want \n // to retweet it again.\n if (tweet.retweeted) {\n return;\n }\n if (tweet.text.indexOf(\"RT\") !== -1) {\n return;\n }\n console.log(\"Retweeting: \" + tweet.text);\n // note we're using the id_str property since\n // javascript is not accurate for 64bit ints\n tu.retweet({\n id: tweet.id_str\n }, onReTweet);\n}", "function reTweet() {\n T.get('search/tweets', dadHashSearch, function (error, data) {\n //Prints errors to log.\n console.log(error, data);\n //No Errors.\n if(!error) {\n //Grabs ID of desired tweet.\n var retweet = data.statuses[0].id_str;\n //Tells twitter to retweet the tweet.\n T.post('statuses/retweet/' + retweet, { }, function (error, response) {\n if (response) {\n\t\t\t\tconsole.log('Success!')\n\t\t\t}\n\t\t\t// Twitter error.\n\t\t\tif (error) {\n\t\t\t\tconsole.log('There was an error with Twitter:', error);\n\t\t\t}\n })\n }\n // Search error\n\t else {\n\t \tconsole.log('There was an error with your hashtag search:', error);\n\t }\n });\n}", "function myTweets() {\n\t\tclient.get(\"search/tweets\", {q: \"NASA\", count: 6}, function(error, data, response) {\n \t\t\tvar tweets = data.statuses;\n \t\t\tconsole.log(\"\");\n \t\t\tfor (var i = 0; i < tweets.length; i++) {\n \t\t\t\tconsole.log((i+1) + \". \" + tweets[i].text);\n \t\t\t}\n\t\t});\n\t}", "function runTwitter() {\n\n//links to twitter keys on keys.js\n//keys is varibale at top linking to js via require\n//twitterKeys is title in js\n//last . is for exact item selected\nvar client = new Twitter({\n consumer_key: keys.twitterKeys.consumer_key,\n consumer_secret: keys.twitterKeys.consumer_secret,\n access_token_key: keys.twitterKeys.access_token_key,\n access_token_secret: keys.twitterKeys.access_token_secret\n });\n\n//accesses twitter data to pull tweets\nvar params = {screen_name: 'awiens037'};\nclient.get('statuses/user_timeline', params, function(error, tweets, response) {\n //log if error\n if (error) {\n \tconsole.log(error);\n }\n else if (!error) {\n \tfor (i = 0; i < tweets.length && i < 19; i++) {\n \t\tvar twitterData = tweets[i].text\n \t\tconsole.log(twitterData);\n \t\tfs.appendFile(\"log.txt\", tweets[i].text + \"\\n\", function(err) {});\n \t}\n fs.appendFile(\"log.txt\", \"---------\" + \"\\n\", function(err) {});\n }\n\n});\n\n}", "function myTweets() {\n\tvar moment = require('moment');\n\tvar keys = require(\"./keys.js\");\n\tvar Twitter = require('twitter');\n\t\"user strict\";\n\tvar client = new Twitter(keys);\n\tvar twitterUsername = process.argv[3];\n\tif (!twitterUsername) {\n\t\ttwitterUsername = \"oprah__rynfrey\";\n\t}\n\tparams = {\n\t\tscreen_name: twitterUsername,\n\t};\n\tclient.get(\"statuses/user_timeline/\", params, function(err, data, response) {\n\t\tif (!err) {\n\t\t\tfor (var i = 0; i < data.length; i++) {\n\t\t\t\t// console.log(response); \n\t\t\t\tvar j = (i + 1);\n\t\t\t\tvar twitterResults = \"\\n\" + \" *------------------------- TWEET No.\" + j +\n\t\t\t\t\t\" --------------------------*\" + \"\\n\" +\n\t\t\t\t\t\"*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*\" + \"\\n\\n\" +\n\t\t\t\t\t// Date of Tweet\n\t\t\t\t\tmoment(data[i].created_at)\n\t\t\t\t\t.format('MMMM Do YYYY, h:mm:ss a') + \"\\n\" + \"\\n\" +\n\t\t\t\t\t// Author of Tweet\n\t\t\t\t\t\"@\" + data[i].user.screen_name + \": \" +\n\t\t\t\t\t// Context of Tweet\n\t\t\t\t\tdata[i].text + \"\\n\\n\";\n\t\t\t\tconsole.log(twitterResults);\n\t\t\t\tlogtxt(twitterResults);\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.log(\"Error: \" + err);\n\t\t};\n\t});\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
funcion que maneja todos los movimientos de la tienda, ya sea aumentar, reducir, y calcular el costo total item 0: chamarra $5000 item 1: lentes de sol $2000 item 2: cachito del avion $500 item 3: le dice a la funcion que el usuario quiere saber cuanto es el total de su carrito, incluido el iva
function carrito(item, add) { if (item == 0 && add == 0 && aItem > 0) { aItem--; aStr = "" + aItem; document.getElementById("cantidad1").innerHTML = "Cantidad: " + aStr; } if (item == 0 && add == 1) { aItem++; aStr = "" + aItem; document.getElementById("cantidad1").innerHTML = "Cantidad: " + aStr; } if (item == 1 && add == 0 && bItem > 0) { bItem--; bStr = "" + bItem; document.getElementById("cantidad2").innerHTML = "Cantidad: " + bStr; } if (item == 1 && add == 1) { bItem++; bStr = "" + bItem; document.getElementById("cantidad2").innerHTML = "Cantidad: " + bStr; } if (item == 2 && add == 0 && cItem > 0) { cItem--; cStr = "" + cItem; document.getElementById("cantidad3").innerHTML = "Cantidad: " + cStr; } if (item == 2 && add == 1) { cItem++; cStr = "" + cItem; document.getElementById("cantidad3").innerHTML = "Cantidad: " + cStr; } if (item == 3 && add == 0) { resultado = (aItem * 5000 + bItem * 2000 + cItem * 500) * 1.16; rStr = "" + resultado; document.getElementById("checkout").innerHTML = "Total: " + "$" + rStr; } return 0; }
[ "asistenciasTotalesPorDia(equipo){\n let len = equipo.length;\n let asistencia_total = [];\n let total_lunes=0;\n let total_martes=0;\n let total_miercoles=0;\n let total_jueves=0;\n let total_viernes=0;\n let total_sabado=0;\n let total_domingo=0;\n \n for (var i = 0; i <len; ++i) {\n total_lunes = total_lunes + (equipo[i].asistencia.lunes * equipo[i].factor_dias_laborados);\n total_martes = total_martes+ (equipo[i].asistencia.martes * equipo[i].factor_dias_laborados);\n total_miercoles = total_miercoles + (equipo[i].asistencia.miercoles * equipo[i].factor_dias_laborados);\n total_jueves = total_jueves + (equipo[i].asistencia.jueves * equipo[i].factor_dias_laborados);\n total_viernes = total_viernes + (equipo[i].asistencia.viernes * equipo[i].factor_dias_laborados);\n total_sabado = total_sabado + (equipo[i].asistencia.sabado * equipo[i].factor_dias_laborados);\n // total_domingo = total_domingo + (equipo[i].asistencia.domingo * equipo[i].factor_dias_laborados);\n }\n\n asistencia_total.push(total_lunes);\n asistencia_total.push(total_martes);\n asistencia_total.push(total_miercoles);\n asistencia_total.push(total_jueves);\n asistencia_total.push(total_viernes);\n asistencia_total.push(total_sabado);\n // asistencia_total.push(total_domingo);\n\n \n return asistencia_total;\n }", "function calcularTotal() {\n // Limpiamos precio anterior\n total = 0;\n // Recorremos el array del carrito\n carrito.forEach((item) => {\n // De cada elemento obtenemos su precio\n const miItem = baseDeDatos.filter((itemBaseDatos) => {\n return itemBaseDatos.id === parseInt(item);\n });\n total = total + (miItem[0].Prezioa-(miItem[0].Prezioa * miItem[0].Portzentaia /100));\n });\n // Renderizamos el precio en el HTML\n DOMtotal.textContent = total.toFixed(2);\n }", "function costoEnvio(tasaEnvio) {\r\n var costoTotal = 0;\r\n //Calculo de nuevo el subtotal para despues hacer el porcentaje\r\n for (var i = 0; i < cart.articles.length; i++) {\r\n var item = cart.articles[i];\r\n costoTotal += item.unitCost * item.count;\r\n\r\n }\r\n document.getElementById(\"costoEnvio\").innerHTML = Math.round(costoTotal * tasaEnvio); //lo multiplico por el porcentaje segun que envio elija\r\n costoTotal += Math.round(costoTotal * tasaEnvio); // calculo el total de todo\r\n envio = tasaEnvio\r\n document.getElementById(\"envioTotal\").innerHTML = costoTotal;\r\n\r\n\r\n\r\n}", "function calcularTotal() {\n // Limpiamos precio anterior\n total = 0;\n // Recorremos el array del carrito\n carrito.forEach((item) => {\n // De cada elemento obtenemos su precio\n const miItem = baseDeDatos.filter((itemBaseDatos) => {\n return itemBaseDatos.id === parseInt(item);\n });\n total = total + miItem[0].precio;\n });\n // Renderizamos el precio en el HTML\n DOMtotal.textContent = total.toFixed(2);\n}", "function calcularTotal() {\n // Limpiamos precio anterior\n total = 0;\n // Recorremos el array del carrito\n carrito.forEach((item) => {\n // De cada elemento obtenemos su precio\n const miItem = producto.filter((itemBaseDatos) => {\n return itemBaseDatos.id === parseInt(item);\n });\n total = total + miItem[0].precio;\n });\n // Renderizamos el precio en el HTML\n DOMtotal.textContent = total.toFixed(2);\n }", "recalculo(){\n let total=0;\n // iterara por cada producto\n for(let i=0;i<this.comprobante_detalle.length;i++){\n // total+=this.calcularSubTotal(this.comprobante_detalle[i].cantidad,this.comprobante_detalle[i].prec_unit)\n\n let cantidad=this.comprobante_detalle[i].detalle_cant;\n let precio_unit=this.comprobante_detalle[i].detalle_punit;\n total+=this.calcularSubTotal(cantidad,precio_unit);\n // console.log(\"com \"+ total);\n }\n this.factura_igv_total=total*this.factura_igv_porcentaje/100;\n this.comprobante_total=total;\n }", "function calcularTotal(carrito) {\r\n //Recorrer el array de productos en el carrito, calcular su precio final y sumarlo todo\r\n let precioTotal = 0;\r\n for (const producto of carrito) {\r\n precioTotal += producto.precioFinal();\r\n }\r\n return precioTotal;\r\n}", "function calcularTotal() {\r\n // Limpiamos precio anterior\r\n total = 0;\r\n // Recorremos el array del carrito\r\n carrito.forEach((item) => {\r\n // De cada elemento obtenemos su precio\r\n const miItem = baseDeDatos.filter((itemBaseDatos) => {\r\n return itemBaseDatos.id === parseInt(item);\r\n });\r\n total = total + miItem[0].precio;\r\n });\r\n // Renderizamos el precio en el HTML\r\n DOMtotal.textContent = total.toFixed(2);\r\n }", "asistenciasTotalesPorDia(equipo){\n let asistencia_total = [];\n let total_lunes=0;\n let total_martes=0;\n let total_miercoles=0;\n let total_jueves=0;\n let total_viernes=0;\n let total_sabado=0;\n\n for (var i = 0; i <equipo.length; ++i) {\n total_lunes = total_lunes + equipo[i].asistencia.lunes;\n total_martes = total_martes+ equipo[i].asistencia.martes;\n total_miercoles = total_miercoles + equipo[i].asistencia.miercoles;\n total_jueves = total_jueves + equipo[i].asistencia.jueves;\n total_viernes = total_viernes + equipo[i].asistencia.viernes;\n total_sabado = total_sabado + equipo[i].asistencia.sabado;\n }\n\n \n asistencia_total.push(total_lunes);\n asistencia_total.push(total_martes);\n asistencia_total.push(total_miercoles);\n asistencia_total.push(total_jueves);\n asistencia_total.push(total_viernes);\n asistencia_total.push(total_sabado);\n\n \n\n\n return asistencia_total;\n }", "function peorVendedorTrimestre() {\n let ventaTrimestre = 999999999999;\n let vendedor = \"\";\n let ventaSubtotal = 0;\n\n for (let i = 0; i < vendedor1.length; i++) {\n ventaSubtotal += vendedor1[i];\n }\n if (ventaSubtotal < ventaTrimestre) {\n ventaTrimestre = ventaSubtotal;\n vendedor = vendedores[0];\n }\n ventaSubtotal = 0;\n\n for (let i = 0; i < vendedor2.length; i++) {\n ventaSubtotal += vendedor2[i];\n }\n if (ventaSubtotal < ventaTrimestre) {\n ventaTrimestre = ventaSubtotal;\n vendedor = vendedores[1];\n }\n ventaSubtotal = 0;\n\n for (let i = 0; i < vendedor3.length; i++) {\n ventaSubtotal += vendedor3[i];\n }\n if (ventaSubtotal < ventaTrimestre) {\n ventaTrimestre = ventaSubtotal;\n vendedor = vendedores[2];\n }\n ventaSubtotal = 0;\n\n for (let i = 0; i < vendedor4.length; i++) {\n ventaSubtotal += vendedor4[i];\n }\n if (ventaSubtotal < ventaTrimestre) {\n ventaTrimestre = ventaSubtotal;\n vendedor = vendedores[3];\n }\n ventaSubtotal = 0;\n\n for (let i = 0; i < vendedor5.length; i++) {\n ventaSubtotal += vendedor5[i];\n }\n if (ventaSubtotal < ventaTrimestre) {\n ventaTrimestre = ventaSubtotal;\n vendedor = vendedores[4];\n }\n console.log(\"El peor vendedor del trimestre es\", vendedor, \" con\", ventaTrimestre);\n}", "function calcularTotal(){\r\n //Ponemos el precio a 0\r\n total = 0;\r\n //Ahora recorremos el array del carrito de compra\r\n for (let producto of carrito){\r\n //Mientras, de cada prodcto cogemos el precio\r\n let productoComprado = productos.filter(function(productoDeProductos){\r\n return productoDeProductos['id'] == producto;\r\n });\r\n //Sumamos el precio al total que actuaria de contador\r\n total = total + productoComprado[0]['precio'];\r\n }\r\n //Solo lo queremos con dos decimales y actualizamos el precio en el HTML\r\n let decimales = total.toFixed(2);\r\n //Actualizamos en el html\r\n $total.textContent = decimales;\r\n }", "function calcCost() {\r\n menu.forEach(item => {\r\n item.ingredients.forEach(ing => {\r\n var invItem = findInvItem(ing.name);\r\n item.cost += (invItem[0].cost * ing.units);\r\n });\r\n });\r\n }", "function totalValue (items) {\nvar totalinventorycost=0;\nvar totalitemcost;\n for (var i=0; i<items.length; i++) {\n totalitemcost= items[i].inventory * items[i].unit_price;\n totalinventorycost += totalitemcost;\n }\n return totalinventorycost\n}", "getImporteTotalItemFromMiPedido(item) {\n // const _itemFind = this.findOnlyItemMiPedido(item);\n // return _itemFind ? _itemFind.precio_total : 0;\n let sumSubTotal = 0;\n this.miPedido.tipoconsumo\n .map((tpc) => {\n tpc.secciones.map((z) => {\n sumSubTotal += z.items\n .filter((x) => x.iditem === item.iditem)\n .map((x) => x.precio_print)\n .reduce((a, b) => a + b, 0);\n });\n });\n return sumSubTotal;\n }", "calcTotal() {\n let total = 0;\n\n this.pedido.hamburguesas.forEach(hamburguesa => {\n let estePrecio = 0;\n estePrecio += hamburguesa.precio;\n hamburguesa.extras.forEach(ex => {\n estePrecio += ex.estado? ex.precio : 0;\n });\n total += estePrecio * hamburguesa.cantidad;\n });\n\n this.pedido.papas.forEach(papa => {\n total += papa.precio;\n });\n\n this.pedido.gaseosas.forEach(gaseosa => {\n total += gaseosa.precio;\n });\n\n this.pedido.cervezas.forEach(cerveza => {\n total += cerveza.precio;\n });\n return total;\n }", "function calcularPrecioTotal (){\n let precioTotal = 0;\n for (properly of carrito){\n precioTotal += properly.price * properly.count;\n }\n precioTotal = precioTotal > discountLimit ? aplicaDescuentoCarrito(precioTotal) : precioTotal ;\n return precioTotal;\n}", "function datosVenta() {\n let total = 0;\n let iva = 0;\n for (let i = 0; i < listaProductos.length; i++) {\n total += listaProductos[i].precio * listaProductos[i].cantidad;\n iva += ((listaProductos[i].precio * listaProductos[i].cantidad) * 0.16);\n }\n puntoVenta.registrarVenta(iva, total, listaProductos);\n}", "function CalculaIvas(){\n piva=$(\":input[name^=piva]\").toArray(); \n //tiva=$(\":input[name^=stiva]\").toArray();\n diva=$(\":input[name^=diva]\").toArray();\n subt=$(\":input[name^=stotal]\").toArray();\n \n var i=0,pos=0, ivas=new Array(),tivas=new Array(),ivades=new Array(),tsub=new Array(),enc=0,suma=0.00; \n for (i=0;i<piva.length;i++){ \n if (ivas.length>0){\n pos=i;\n enc=inArray(ivas,parseFloat(piva[i].value).toFixed(2));\n \n if (enc==-1){ \n pos=ivas.length;\n ivas[pos]=piva[i].value;\n //tivas[pos]=tiva[i].value; \n ivades[pos]=diva[i].value;\n tsub[pos]=subt[i].value; \n }else{\n pos=enc;\n //var ant=parseFloat(tivas[enc]).toFixed(2);\n //var nue=parseFloat(tiva[i].value).toFixed(2);\n \n var sant=parseFloat(tsub[enc]).toFixed(2);\n var snue=parseFloat(subt[i].value).toFixed(2);\n \n //if (isNaN(ant)){ ant=0.00; }else{ ant=ant*1; }\n //if (isNaN(nue)){ nue=0.00; }else{ nue=nue*1; } \n \n if (isNaN(sant)){ sant=0.00; }else{ sant=sant*1; }\n if (isNaN(snue)){ snue=0.00; }else{ snue=snue*1; }\n //suma=parseFloat(ant+nue).toFixed(2);\n ssuma=parseFloat(sant+snue).toFixed(2);\n \n //tivas[enc]=parseFloat(suma).toFixed(2);\n tsub[enc]=parseFloat(ssuma).toFixed(2);\n }\n }else{\n ivas[i]=piva[i].value; \n //tivas[i]=tiva[i].value;\n ivades[i]=diva[i].value;\n tsub[i]=subt[i].value;\n }\n ivas[pos]=parseFloat(ivas[pos]).toFixed(2);\n //tivas[pos]=parseFloat(tivas[pos]).toFixed(2);\n tsub[pos]=parseFloat(tsub[pos]).toFixed(2);\n }\n var subtotal=0;\n var ivatotal=0; \n var cadena=\"\";\n for (i=0;i<ivas.length;i++)\n {\n tivas[i]=parseFloat((tsub[i]*ivas[i]/100)).toFixed(2);\n subtotal+=(tsub[i]*1);\n ivatotal+=(tivas[i]*1);\n if (ivas[i]==0)\n cadena+=\"<span id='ResumenSub'>Monto Total Exento <strong>\"+tsub[i]+\"Bs.</strong><br>\";\n else \n cadena+=\"<span id='ResumenSub'>Monto Total Base [\"+ivas[i]+\"%] <strong>\"+tsub[i]+\"Bs.</strong></span><br><span id='ResumenIva'>Monto Total \"+ivades[i]+\" [\"+ivas[i]+\"%] <strong>\"+tivas[i]+\"Bs.</strong></span><br>\";\n }\n $(\"#ResumenFact\").html(cadena);\n //alert(\"Subtotal: \"+ subtotal+\" IvaTotal: \"+ivatotal);\n $(\"#subtotal\").val(parseFloat(subtotal).toFixed(2));\n $(\"#ivatotal\").val(parseFloat(ivatotal).toFixed(2));\n $(\"#totalfact\").val(parseFloat(subtotal+ivatotal).toFixed(2));\n}", "function calcularTotal(){\n //borrar el precio \n total=0;\n //recorrer el array de la cesta y obtener el precio de cada producto\n for(let item of arrayCesta){\n let itemcesta=productos.filter(function(objetoproductos){\n return objetoproductos['tag']==item;\n });\n //se suma el total\n total=total+itemcesta[0]['precio'];\n }\n //mostrar el precio\n $total.textContent=total.toFixed(2);\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Upload function: upload IC pic to storage
function uploadToStorage(file, location, userId) { // Create the file metadata var metadata = { contentType: 'image/jpeg' }; // Upload file and metadata to the object 'images/mountains.jpg' var uploadTask = location.put(file, metadata); // Listen for state changes, errors, and completion of the upload. uploadTask.on(firebase.storage.TaskEvent.STATE_CHANGED, // or 'state_changed' function(snapshot) { // Get task progress, including the number of bytes uploaded and the total number of bytes to be uploaded var progress = (snapshot.bytesTransferred / snapshot.totalBytes) * 100; console.log('Upload is ' + progress + '% done'); switch (snapshot.state) { case firebase.storage.TaskState.PAUSED: // or 'paused' console.log('Upload is paused'); break; case firebase.storage.TaskState.RUNNING: // or 'running' console.log('Upload is running'); break; } }, function(error) { console.log('照片上傳失敗:', error.message); // A full list of error codes is available at // https://firebase.google.com/docs/storage/web/handle-errors switch (error.code) { case 'storage/unauthorized': // User doesn't have permission to access the object break; case 'storage/canceled': // User canceled the upload break; case 'storage/unknown': // Unknown error occurred, inspect error.serverResponse break; } }, function() { console.log('照片成功上傳'); // Upload completed successfully, now we can get the download URL var downloadURL = uploadTask.snapshot.downloadURL; // add icURL to database firebase.database().ref('spPrivate/' + userId).update({ icURL: downloadURL }) .then (function() { console.log("icURL added to database: ", downloadURL); }) .catch(function(error) { console.log("Error adding icURL to database: ", error); }); }); }
[ "function _cloudKitUpload(cb){\n ckassetService.request()\n .then( tokenResponseDictionary => {\n var data = new Uint8Array(this.croppedImageData);\n\n ckassetService.upload(tokenResponseDictionary.data.tokens[0].url, data, 'image/png', assetDictionary => {\n this.recordName = tokenResponseDictionary.data.tokens[0].recordName;\n const name = this.fileName;\n const { singleFile } = assetDictionary.data;\n const referenceObj = { type: 'REFERENCE', value: { recordName: this.record, action: 'DELETE_SELF' } };\n ckassetService.modify(name, referenceObj, this.recordName, singleFile, finalObj => { //eslint-disable-line\n if (cb) cb();\n });\n });\n })\n .catch( err => {\n console.log('err trying to upload image', err);\n });\n }", "function saveImageToCloud(){\n cloudinary.v2.uploader.upload(path,\n { crop : \"fill\", aspect_ratio: \"1:1\" },\n function(error, result) {\n if(error)\n return next(error);\n\n channel.image = result.url;\n saveChannel();\n });\n }", "function handleImageUpload() {\n if (uploadType.value == 'portfolio') {\n let storageRef = storage.ref('portfolio-items/' + file.name);\n storageRef.put(file);\n } else if (uploadType.value == 'photo') {\n let storageRef = storage.ref('photos/' + file.name);\n storageRef.put(file);\n }\n \n}", "function pushToCloud(image) {\n cloudinary.v2.uploader.upload(image.panoPath, \n {\n resource_type: \"image\",\n public_id: image.id,\n overwrite: true\n },\n function(error, result) {\n console.log(result);\n });\n}", "function uploadToCloud(){\n\n }", "function storeImage(){\n let file = document.getElementById(\"upload-avatar\").files[0];\n Storage.child(\"avatar/\" + file.name).put(file, metadata)\n .then(() =>{\n alert(\"file uploaded\");\n getStoredImage(file.name)\n }).catch((error) =>{\n alert(error.message)\n })\n}", "function uploadpicture() {\n canvas.toBlob(function(blob) {\n const filename = Date.now().toString();\n s3.upload({\n Key: `${filename}.png`,\n Body: blob,\n ACL: 'public-read',\n }, function(err, data) {\n if (err) {\n return console.log('There was an error uploading your photo: ', err.message);\n }\n return console.log('Photo uploaded.');\n });\n });\n }", "async uploadPictureToGame(path, mimeType, gameID) {\n\n\t\tthis.validator.checkID(gameID, 'gameID')\n\n\t\tthis.validator.checkStringExists(path, 'path')\n\t\tthis.validator.checkStringExists(mimeType, 'type')\n\t\tif(!mimeType.match(/.(jpg|jpeg|png|gif)$/i)) throw new Error('Not an image')\n\t\tconst extension = mime.extension(mimeType)\n\n\t\tlet sql = `SELECT COUNT(id) as records FROM gamePhoto WHERE gameID=\"${gameID}\";`\n\t\tconst sqlReturn = await this.db.get(sql)//Set to the amount of pictures saved\n\n\t\tconst picPath = `game/${gameID}/picture_${sqlReturn.records}.${extension}`\n\t\tconst resizeAmt = 300\n\t\tawait fs.copy(path, `public/${ picPath}`)//Failsafe\n\t\tawait sharp(path)\n\t\t\t.resize(resizeAmt, resizeAmt)\n\t \t\t.toFile(`public/${ picPath}`)\n\t\t\t.catch((err) => err)\n\n\t\tsql = `INSERT INTO gamePhoto (gameID, picture) VALUES(\n ${gameID},\"${picPath}\")`\n\t\tawait this.db.run(sql)\n\n\t\treturn true\n\n\t}", "function storagePushImage(id, fileObject, onSuccess) {\n var storageRef = firebase.storage().ref();\n if (app.firebaseConnected === false) {\n Materialize.toast('Connettività assente', 3000);\n return false;\n }\n var uploadTask = storageRef.child('images/' + id + '.jpg').put(fileObject);\n //app.createFile( id + '.jpg',fileObject);\n //parseUploadImage(id,fileObject);\n uploadTask.on('state_changed', function(snapshot) {\n //console.log(snapshot);\n }, function(error) {\n stopSpinner();\n Materialize.toast(\"Errore salvataggio immagine: \" + error, 5000);\n }, function() {\n if (onSuccess !== undefined) {\n onSuccess(id);\n }\n\n });\n}", "function AdminPhotoUploadImage(id,file,photoid,large,useHttp)\n{\n return api(AdminPhotoUploadImageUrl,{id:id,file:file,photoid:photoid,large:large},useHttp).sync();\n}", "function imageSave () {\n var file = dataURItoBlob(viewModel.imageState.cameraImage),\n uploader = new localModel.FileUploader({\n url: viewModel.saveImageUrl,\n method: 'POST',\n autoUpload: true\n });\n\n console.log(\"Save URL: \" + viewModel.saveImageUrl);\n\n uploader.addToQueue(file);\n\n localModel.gameStateService.refreshLocationData();\n\n localModel.$location.path('location');\n }", "function Upload(_stravaid){\n var picPath = stg.ref('userAvatars/'+_stravaid+'/'+file.name);\n var uploadTask = picPath.put(file);\n\n uploadTask.on('state_changed', function(snapshot){\n }, function(error){\n console.error(error);\n }, function() {\n uploadTask.snapshot.ref.getDownloadURL().then(function(downloadURL) {\n console.log('File available at', downloadURL);\n \n //todo: find current version in db and delete from storage\n\n //adds the img url to the db\n db.ref('users/'+_stravaid+'/meta/avatar').set(downloadURL);\n });\n });\n}", "upload(path,image)\n {\n image = image.slice(image.indexOf(',') + 1);\n fs.writeFileSync(path,image,{encoding: 'base64'},(err)=>{ } );\n }", "uploadPic(e){e.preventDefault();this.disableUploadUi(true);var imageCaption=this.imageCaptionInput.val();this.generateImages().then(pics=>{// Upload the File upload to Firebase Storage and create new post.\nfriendlyPix.firebase.uploadNewPic(pics.full,pics.thumb,this.currentFile.name,imageCaption).then(postId=>{page(`/user/${this.auth.currentUser.uid}`);var data={message:'New pic has been posted!',actionHandler:()=>page(`/post/${postId}`),actionText:'View',timeout:10000};this.toast[0].MaterialSnackbar.showSnackbar(data);this.disableUploadUi(false)},error=>{console.error(error);var data={message:`There was an error while posting your pic. Sorry!`,timeout:5000};this.toast[0].MaterialSnackbar.showSnackbar(data);this.disableUploadUi(false)})})}", "function ImageUploadController(croppedImage) {\n var firebaseUser = $scope.firebaseUser;\n var storage = Avatar(firebaseUser.uid);\n\n var uploadTask = storage.$putString(croppedImage, \"data_url\", { contentType: \"image/jpeg\" });\n uploadTask.$progress(function(snapshot) {\n $scope.showUploadProgress = true;\n });\n uploadTask.$error(function(error) {\n // Upload failed\n $scope.showUploadProgress = false;\n });\n uploadTask.$complete(function(snapshot) {\n // Upload completed successfully\n storage.$getDownloadURL().then(function(url) {\n $scope.showUploadProgress = false;\n $scope.avatarUrl = url;\n });\n });\n }", "async upload({ filename, content, cancelSource, onProgress }) { throw new NotImplementedError('upload'); }", "storeImage () {\n // get input element user used to select local image\n var input = document.getElementById('files');\n // have all fields in the form been completed\n if (this.newImageTitle && input.files.length > 0) {\n var file = input.files[0];\n // get reference to a storage location and\n storageRef.child('images/' + file.name)\n .put(file)\n .then(snapshot => this.addImage(this.newImageTitle, snapshot.downloadURL));\n // reset input values so user knows to input new data\n input.value = '';\n }\n }", "function uploadPhoto() {\n //navigator.notification.activityStart(\"Your message....\", \"loading\");\n photoFileName = $('#photo').attr('src');\n var options = new FileUploadOptions();\n options.fileKey=\"avatar\";\n options.fileName=photoFileName.substr(photoFileName.lastIndexOf('/')+1);\n options.mimeType=\"image/jpg\";\n\n var params = new Object();\n options.params = params;\n\n var ft = new FileTransfer();\n ft.upload(photoFileName, encodeURI(\"http://www.testphotorestapi.neilmarion.com/upload\"), onSuccessUpload, onFailUpload, options);\n localStorage.setItem('photo-file', options.fileName);\n //twUploadPhoto(options.fileName);\n //http://www.testphotorestapi.neilmarion.com/avatars\n //navigator.notification.activityStop();\n}", "async uploadImageToCloudinary() {\n\t\ttry {\n\t\t\tawait this.setResponse(this.cloudinary.uploader.upload(this.query));\n\t\t\tif(!this.response.secure_url) {\n\t\t\t\tconsole.log(\"empty cloudinary response\");\n\t\t\t\tthrow new errors.CloudinaryResponseError({data: this});\n\t\t\t}\n\t\t}\n\t\tcatch(err) {\n\t\t\tconsole.log(\"upload image to cloudinary error caught\")\n\t\t\tthrow new errors.CloudinaryResponseError({errorCause: err, data: this});\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Container Object name: Name of Game type String image: Link to thumbnail image type String link: Link to 'store' page type String Gets the url's for a genre/category search, then calls both api's and processes the data
async function searchByGenre(genQuery, catQuery) { let vgUrl = getVideoGameUrl({ type: "genres", value: genQuery }); let pageLimit = 2; let totalResults = []; let resultList = []; const rawgResp = await fetch(vgUrl); const rawgResults = await rawgResp.json(); setLoadingText(); // determines the amount of results per genre that will be received from the api if (catQuery.length > 0) { let limitRatio = Math.floor(16 / catQuery.length); if (limitRatio >= 8) { pageLimit = 20; } else if (limitRatio >= 4) { pageLimit = 10; } else if (limitRatio >= 2) { pageLimit = 5; } // Board game atlas filters game results in a different way than the rawg api // This loop handles the collection of boardgames based on the selected genres for (let i = 0; i < catQuery.length; i++) { const bgUrl = getBoardGameUrl({ type: "categories", value: catQuery[i], limit: pageLimit, }); const atlasResponse = await fetch(bgUrl); const atlasResults = await atlasResponse.json(); totalResults = totalResults.concat(atlasResults.games); delay(10); } } // Translates the api results from the rawg api into a common object for (let vGame of rawgResults.results) { resultList.push({ name: vGame.name, image: vGame.background_image, link: `https://rawg.io/games/${vGame.id}`, }); } // Translates the api results from the atlas api into a common object for (let bGame of totalResults) { resultList.push({ name: bGame.name, image: bGame.image_url, link: bGame.url, }); } resultList.sort(sortGames); useData(resultList); }
[ "async function searchByName(query) {\n let vgUrl = getVideoGameUrl({ type: \"name\", value: query });\n let bgUrl = getBoardGameUrl({ type: \"name\", value: query });\n const rawgResp = await fetch(vgUrl);\n const rawgResults = await rawgResp.json();\n const atlasResponse = await fetch(bgUrl);\n const atlasResults = await atlasResponse.json();\n setLoadingText();\n\n let resultList = [];\n for (let result of rawgResults.results) {\n resultList.push({\n name: result.name,\n image: result.background_image,\n link: `https://rawg.io/games/${result.id}`,\n });\n }\n for (let bGame of atlasResults.games) {\n resultList.push({\n name: bGame.name,\n image: bGame.image_url,\n link: bGame.url,\n });\n }\n\n resultList.sort(sortGames);\n useData(resultList);\n}", "function rawgKeywordQuery(searchCriteria) {\n //__________________________________________________\n //___________Begin Code for Game Api (Rawg)_________\n //__________________________________________________\n var queryRawg = \"https://api.rawg.io/api/games?search=\" + searchCriteria;\n\n //code for the ajax query call to the Rawg api\n $.ajax({\n url: queryRawg,\n method: \"GET\"\n }).then(function (respRawg) {\n console.log(respRawg);\n\n\n //variable that is created in order to limit the number of columns placed into generated row div as 4\n var countRowDiv2 = 0;\n var rowDiv2 = $(\"<div>\").attr(\"class\", \"row\");\n var divDontWant = $(\"<div>\")\n\n //This if statement calls the noREsultsFound function if the Api brings back no results\n if (respRawg.count === 0) {\n noResultsFound($(\"#gameContent\"));\n }\n\n //badge on game div\n $(\"#GameCount\").text(respRawg.count)\n\n instance.open(2);\n\n //each function that runs for every index of the resp object returned by the ajax call to Rawg api\n $.each(respRawg.results, function (index) {\n\n //this if statement declares that the code will only run while count variable is less than 4. And it takes the response object and capitalizes the first letter of each word\n //and sees if the user search criteria value is included in the name of that index of the response object. This was created because the Rawg Api pulls back games that even have \n //parts of the searched value. Example: \"titanic\" would bring backs games with the word \"titan\" in them \n if (countRowDiv2 < 4 && respRawg.results[index].name.includes(CapitalizeWords(searchCriteria)) === true) {\n\n var colDiv2 = $(\"<div>\").attr(\"class\", \"col s3\");\n var genreList = $(\"<ul>\").text(\"genres: \");\n\n //this line of code calls function that grabs the name & image from Rawg Api and generates it into div parameters\n genTitleImgFromQuery(rowDiv2, colDiv2, respRawg.results[index].name, respRawg.results[index].background_image);\n //this line of code calls function that grabs genre object from Rawg Api and generates them into a list and writes it to div parameters\n genGenreList(rowDiv2, colDiv2, genreList, respRawg.results[index]);\n\n countRowDiv2++;\n\n } else if (respRawg.results[index].name.includes(CapitalizeWords(searchCriteria)) === false) {\n\n //this line of code calls function that grabs the name & image from Rawg Api and generates it into div parameters\n genTitleImgFromQuery(divDontWant, divDontWant, respRawg.results[index].name, respRawg.results[index].background_image);\n\n } else {\n\n //this code appends the rowDiv1 variable filled with the four cols append in above code to the page into the div with gameContent id \n $(\"#gameContent\").append(rowDiv2);\n //This line of code clears the rowDiv1 variable and sets it to an empty div with class row.\n rowDiv2 = $(\"<div>\").attr(\"class\", \"row\");\n //sets the count variable to 0 so that it we can go back up to the above if statement code and start generating cols in rows again\n countRowDiv2 = 0;\n }\n\n $(\"#gameContent\").append(rowDiv2);\n divDontWant.empty();\n\n });\n });\n }", "function genremakeRequest() {\n console.log('started make request');\n gapi.client.setApiKey('AIzaSyDJgFr0e-Z5UF28f-klWqhPgS-k0efBFtU');\n gapi.client.load('youtube', 'v3', function () {\n var q = searchParams.get('pickgenre') + '+radio';\n console.log(q, jQuery.type(q));\n var request = gapi.client.youtube.search.list({\n q: q,\n part: 'snippet',\n maxResults: 20,\n type: 'video',\n eventType: 'live',\n topicId: '/m/04rlf',\n videoEmbeddable: 'true',\n videoSyndicated: 'true'\n\n });\n request.execute(function (response) {\n $('.results').empty();\n var srchItems = response.result.items;\n console.log(srchItems);\n $.each(srchItems, function (index, item) {\n vidId = item.id.videoId;\n vidUrl = 'https://www.youtube.com/watch?v=' + vidId;\n vidTitle = item.snippet.title;\n vidThumburl = item.snippet.thumbnails.medium.url;\n vidThumb = '<a><figure class=\"vidresult\"><img src=\"' + vidThumburl + '\" alt=\"No Image Available.\"><figcaption id=\"' + vidId + '\" onclick=\"clickvid(this);\"><span>' + vidTitle + '</span></figcaption></figure>';\n $('.results').append(vidThumb);\n })\n })\n });\n }", "static displayMainGalleryList() {\n const queryUrl = `${url}search?q=sunflowers`;\n const galleryList = fetch(queryUrl)\n .then((res) => {\n if (res.ok) {\n return res.json();\n } else {\n console.log('Something went wrong !');\n }\n })\n .then((data) => {\n let resultData = [];\n let galleryDetails = [];\n let objectIds = data.objectIDs;\n if (objectIds.length > 0) {\n objectIds.forEach((objectId) => {\n galleryDetails = Gallery.fetchEachImageDetails(\n objectId,\n resultData\n );\n });\n return Gallery.createGalleryTemplate(galleryDetails);\n }\n })\n .catch((error) => console.log('Request failed', error));\n }", "function opponentGoogleRetrieve() {\n var googleUrl = \"https://www.googleapis.com/customsearch/v1?key=AIzaSyAaUUgoWlaZBGGzG4HNuQUN3Jcrw4NH7zU&cx=008788128101746337676:gz0k2znll90&q=dnd+fan+art\" + opponent.name + \"=1&searchType=image&num=2\";\n $.ajax({\n url: googleUrl,\n method: \"GET\"\n\n }).then(function (googleresponse) {\n console.log(googleresponse.items[0].link);\n if(googleresponse.items[0].link.length){\n opponent.stillImageUrl = googleresponse.items[0].link;\n } else {\n opponent.stillImageUrl = googleresponse.items[1].link\n }\n $(\"#opponent-image-holder\").attr(\"src\", opponent.stillImageUrl);\n opponent.name = opponent.name.split('+').join(\" \");\n });\n\n }", "function searchGame(e) {\r\n e.preventDefault();\r\n\r\n //Clear single game\r\n single_gameEl.innerHTML = '';\r\n\r\n //Get search term\r\n let term = search.value; \r\n term = term.replace(/\\s+/g, '-').toLowerCase();\r\n let encodedTerm = encodeURIComponent(term);\r\n\r\n //Check for empty\r\n if(term.trim()) {\r\n fetch(`https://api.rawg.io/api/games/${term}`)\r\n .then(res => res.json())\r\n .then(data => {\r\n console.log(data);\r\n resultHeading.innerHTML = `<h2>Search Results for '${term}':</h2>`;\r\n \r\n\r\n if(encodedTerm === 'null') {\r\n resultHeading.innerHTML = `<p>There are no search results. Try again</p>`;\r\n } else {\r\n gamesEl.innerHTML = (`\r\n <div class='game'>\r\n <style>\r\n .info {border-radius: 10px;}\r\n .game-img {border-radius: 10px;}\r\n </style>\r\n <div class='divider'></div>\r\n <img class='game-img responsive-img' src='${data.background_image}' alt='${data.name}' />\r\n <div class='game-info' data-gameID='${data.id}'>\r\n <div class='info purple lighten-5'>\r\n <h3>${data.name}</h3>\r\n <a class=\"waves-effect waves-light btn deep-purple lighten-3\" href='${data.website}'>Website</a>\r\n <a class=\"waves-effect waves-light btn deep-purple lighten-3\" href='${data.reddit_url}'>Reddit</a>\r\n <a class=\"waves-effect waves-light btn deep-purple lighten-3\" href='${checkPurchase}'>Purchase</a>\r\n <h5>Release Date: ${data.released}</h5>\r\n <h5>Overall Rating: ${data.rating}</h5>\r\n <h5>Playtime: ${data.playtime}</h5>\r\n <h5>Achievements: ${data.achievements_count}</h5>\r\n <h5>Genre: ${data.genres[0].name}</h5>\r\n <p>${data.description}</p>\r\n </div>\r\n </div>\r\n `)\r\n\r\n }\r\n });\r\n } else {\r\n alert('Please enter a game name!');\r\n }\r\n}", "function showMoviesByGenre() {\n\n if (pageNum === 1) {\n movies = [];\n }\n\n let url = APIRequestPrefix + discoverEndpoint + APIKey + `&language=en-US&sort_by=popularity.desc&page=${pageNum}` + genreEndpoint + genreId;\n let url2 = APIRequestPrefix + discoverEndpoint + APIKey + `&language=en-US&sort_by=popularity.desc&page=${pageNum + 1}` + genreEndpoint + genreId;\n\n requestAPI(url, containerToPopulate);\n requestAPI(url2, containerToPopulate);\n}", "function EpisodesAndLocations() {\n const [generalInfo, setGeneralInfo] = useState(null);\n const [searchResult, setSearchResult] = useState(null);\n const [page, setPage] = useState(1);\n\n const whatToFetch = useSelector((state) => state.episodesAndLocationType);\n\n useEffect(() => {\n // We set generalInfo state to null to reset the generalInfo state\n // With a new information which will be fetched from the api :)\n setGeneralInfo(null);\n fetch(`https://rickandmortyapi.com/api/${whatToFetch}?page=${page}`)\n .then((res) => res.json())\n .then((result) => {\n setGeneralInfo(result);\n });\n }, [page, whatToFetch]);\n\n return (\n <div>\n {generalInfo && generalInfo.results && (\n <SearchInformation\n generalInfo={generalInfo.results}\n setSearchResult={setSearchResult}\n />\n )}\n {generalInfo && generalInfo.results && (\n <TableHead genInfo={generalInfo} />\n )}\n {searchResult &&\n searchResult.map((genInfo, index) => {\n return <GenCard key={genInfo.id} place={index} genInfo={genInfo} />;\n })}\n {generalInfo &&\n !searchResult &&\n generalInfo.results &&\n generalInfo.results.map((genInfo, index) => {\n return <GenCard key={genInfo.id} place={index} genInfo={genInfo} />;\n })}\n\n {generalInfo && generalInfo.info && (\n <PaginationButtons\n currentPage={page}\n data={generalInfo}\n updatePage={(number) => setPage(number)}\n />\n )}\n </div>\n );\n}", "get_popular_genre(genre_string, page =1){\n axios.get(\"https://api.themoviedb.org/3/discover/movie?api_key=\"+process.env.REACT_APP_API_KEY+\"&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=\"+page+\"&with_genres=\"+genre_string+\"&with_watch_monetization_types=flatrate\")\n .then(function(response){\n MovieStore.movies = []\n for(var result of response.data.results){\n MovieStore.movies.push({\n id: result.id,\n title: result.title,\n image_link: \"https://image.tmdb.org/t/p/original\" + result.poster_path,\n overview: result.overview,\n vote_average: result.vote_average,\n vote_count: result.vote_count\n })\n }\n MovieStore.request_data = {\n page: page,\n max_pages: response.data.total_pages,\n type: \"getPopularGenre\",\n genre_string: genre_string\n }\n })\n .catch(function(error){\n console.log(error)\n return <h1>{error}</h1>\n })\n }", "function brewerQueryResponse(response, searchType) {\n\t\tmyData.length = 0; //empty myData array\n\t\tmyMetaData.length = 0;\n\n\t\tconsole.log('brewerQueryResponse GET success');\n\t\tconsole.log('response = ');\n\t\tconsole.log(response);\n\t\tObject.keys(response).forEach(function (key) {\n\t\t\tvar responseObj = response[key];\n\t\t\tconsole.log('responseObj = ');\n\t\t\tconsole.log(responseObj);\n\n\t\t\tcurrentPage = responseObj.page;\n\t\t\tnumPages = responseObj.numPages;\n\t\t\ttotalResponses = responseObj.data.length;\n\t\t\tparams = responseObj.params;\n\n\t\t\tmyMetaData.push({\n\t\t\t\ttotalResponses: totalResponses,\n\t\t\t\tcurrentPage: currentPage,\n\t\t\t\tnumPages: numPages,\n\t\t\t\tparams: params\n\t\t\t});\n\n\t\t\tvar breweries = responseObj.data;\n\t\t\tconsole.log('breweries = ');\n\t\t\tconsole.log(breweries);\n\n\t\t\tfor (var i = 0; i < breweries.length; i++) {\n\t\t\t\tvar breweryName = breweries[i].name;\n\t\t\t\tvar breweryImages = breweries[i].images;\n\t\t\t\tvar breweryDesc = breweries[i].description;\n\t\t\t\tvar breweryDescShort;\n\t\t\t\tvar breweryWebsite = breweries[i].website;\n\t\t\t\tvar breweryWebsiteDisplay;\n\t\t\t\tvar breweryEstablished = breweries[i].established;\n\n\t\t\t\t//build content object\n\t\t\t\tmyData.push({\n\t\t\t\t\tbreweryName: breweryName,\n\t\t\t\t\tbreweryImages: breweryImages,\n\t\t\t\t\tbreweryDesc: breweryDesc,\n\t\t\t\t\tbreweryDescShort: breweryDescShort,\n\t\t\t\t\tbreweryWebsite: breweryWebsite,\n\t\t\t\t\tbreweryWebsiteDisplay: breweryWebsiteDisplay,\n\t\t\t\t\tbreweryEstablished: breweryEstablished\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tconsole.log('myMetaData =');\n\t\tconsole.log(myMetaData);\n\t\tconsole.log('myData =');\n\t\tconsole.log(myData);\n\t\tpopulateData(myData, myMetaData, searchType);\n\t}", "function apiRequestGenreGames(sortBy, filter, name, res) {\r\n axios({\r\n url: \"https://api.igdb.com/v4/games\",\r\n method: \"POST\",\r\n headers: {\r\n \"Accept\": \"application/json\",\r\n \"Client-ID\": \"5py1g59uv8cdxn70ejawwm0vz6k7fk\",\r\n \"Authorization\": \"Bearer ycxnh3depzhn9wfz9he4dkggahig81\",\r\n },\r\n data: 'fields total_rating,name,rating,cover.image_id,cover,platforms,platforms.name,platforms.abbreviation,genres,genres.name,genres.slug,first_release_date; limit 500; sort ' + sortBy + '; where genres.slug = \"' + name + '\" & cover.image_id != null & first_release_date <=' + today + ' & first_release_date != null & genres != null & platforms != null & platforms.name != null & total_rating != null' + filter + ';'\r\n })\r\n .then(response => {\r\n console.log(response.data);\r\n if(response.data.length === 0) {\r\n res.render(\"404\", {\r\n jsContactAbout: \"../js/contact-about.js\",\r\n cssStyles: \"../css/styles.css\",\r\n cssContactAbout404Responsive: \"../css/contact-about-404-responsive.css\",\r\n cssContactAbout404: \"../css/contact-about-404.css\"\r\n });\r\n }\r\n else {\r\n res.render(\"index\", {\r\n results: response.data,\r\n title: name,\r\n cssSrc: \"../css/styles.css\",\r\n cssResponsive: \"../css/styles-responsive.css\",\r\n jsGameFunc: \"../js/games-functions.js\",\r\n jsGamesOrderMenu: \"../js/games-order-menu.js\",\r\n jsSrc: \"../js/index.js\",\r\n jsSidebar: \"../js/sidebar-scroll.js\",\r\n jsAutoSearch: \"../js/autocomplete.js\"\r\n });\r\n }\r\n })\r\n .catch(err => {\r\n console.error(err);\r\n res.render(\"404\", {\r\n jsContactAbout: \"../js/contact-about.js\",\r\n cssStyles: \"../css/styles.css\",\r\n cssContactAbout404Responsive: \"../css/contact-about-404-responsive.css\",\r\n cssContactAbout404: \"../css/contact-about-404.css\"\r\n });\r\n });\r\n}", "function renderThumbnails(id, type, page, comics) {\r\n var container = document.getElementById(id);\r\n JSONObj = JSON.parse(comics);\r\n var length = lengthJSON(JSONObj);\r\n for (var i = 0; i < length; i++) {\r\n var title = JSONObj[i].Title;\r\n var url = JSONObj[i].Panels.Panel_1.Image_URL;\r\n var desc = JSONObj[i].Panels.Panel_1.Text;\r\n if (url != \"\" || desc != \"\") {\r\n var thumbnail = document.createElement(\"div\");\r\n thumbnail.className = \"thumbnail\";\r\n thumbnail.className += \" \" + type;\r\n thumbnail.id = type + \"_\" + (i + 1).toString();\r\n var caption = document.createElement(\"div\");\r\n caption.className = \"caption\";\r\n var img = document.createElement(\"img\");\r\n img.className = \"img-responsive\";\r\n img.src = url;\r\n img.width = 100;\r\n img.style.cssFloat = \"right\";\r\n caption.appendChild(img);\r\n var h3 = document.createElement(\"h3\");\r\n h3.innerHTML = title;\r\n caption.appendChild(h3);\r\n var p1 = document.createElement(\"p\");\r\n var first = true;\r\n for (var j = 1; j <= 5; j++) {\r\n if (JSONObj[i].Contributors['Contributor_' + j]) {\r\n if (first) {\r\n p1.innerHTML = \"Contributors: \" + JSONObj[i].Contributors['Contributor_' + j];\r\n first = false;\r\n }\r\n else {\r\n p1.innerHTML += \", \" + JSONObj[i].Contributors['Contributor_' + j];\r\n }\r\n }\r\n }\r\n caption.appendChild(p1);\r\n var p2 = document.createElement(\"p\");\r\n var a2 = document.createElement(\"a\");\r\n a2.className = \"btn btn-primary\";\r\n a2.href = \"/\" + page + \"?id=\" + JSONObj[i]._id;\r\n if (page == \"edit\") {\r\n a2.innerHTML = \"Edit\";\r\n var a3 = document.createElement(\"a\");\r\n a3.style.marginRight = \"15px\";\r\n a3.className = \"btn btn-primary\";\r\n a3.href = \"/view?id=\" + JSONObj[i]._id;\r\n a3.innerHTML = \"View\";\r\n p2.appendChild(a3);\r\n }\r\n else {\r\n a2.innerHTML = \"View\";\r\n }\r\n p2.appendChild(a2);\r\n caption.appendChild(p2);\r\n thumbnail.appendChild(caption);\r\n }\r\n container.appendChild(thumbnail);\r\n }\r\n}", "function get_animals(req){\n let q = datastore.createQuery(ANIM).limit(5); // Get only 3 CARGO objects \n const results = {};\n if(Object.keys(req.query).includes(\"cursor\")){ // If the query contains a cursor\n q = q.start(req.query.cursor); // Set next page query to begin at cursor\n }\n\treturn datastore.runQuery(q).then( (entities) => { // Get query results\n\t results.items = entities[0].map(fromDatastore).map(animal_url); // Append id and self link to each object\n\t if(entities[1].moreResults !== Datastore.NO_MORE_RESULTS ){ // If there are more results\n results.next = \"https://kraftme-223903.appspot.com/animals?cursor=\" \n \t+ entities[1].endCursor; // Append a next link to the response\n }\n\t let count = datastore.createQuery(ANIM);\n\t return datastore.runQuery(count).then( (items) => { // Get query results\n\t\tresults.collectionSize = items[0].length\n\t\treturn results;\n\t });\n\t});\n}", "function getGameImageUrlCallback(data) {\n\n //It's possible that there is more than result\n //If so loop through each entry until we find an exact game name match and use that entry\n //Otherwise just use the only entry returned\n if(data[\"games\"].length > 1){\n data[\"games\"].forEach(element => {\n if(globalGameName === element[\"name\"]){\n globalBoxartUrl = element[\"box\"][size];\n }\n });\n } else {\n //The url for the box art is deep in the JSON hence the strange array here.\n globalBoxartUrl = data[\"games\"][\"0\"][\"box\"][size];\n }\n\n \n\n //Now we have a new image we can update the html\n updateImage(globalBoxartUrl);\n\n //check to see if we are displaying the Game name\n\n if(displayGameName === true) {\n updateGameName(globalGameName);\n }\n}", "function processDiscogsJSON(data) {\n\n // If the search came back empty, add the \"no results\" stuff.\n if (data.results.length == 0) {\n addNoResultsElements();\n } else {\n // Offset: pick up numbering from the end of the last data.\n let offset = masterData.length;\n\n // If we're adding data on the same search (ie: pagination), then concat the new data to masterData.\n if (masterData.length == 0) {\n masterData = (data.results);\n } else {\n masterData = masterData.concat(data.results);\n $('#moreBtn').remove();\n }\n \n // Iterate over data and load images\n for (var i=0;i<data.results.length;i++) {\n\n // make thumb image\n let myImg = $('<img />', {\n class: 'thumb',\n src: data.results[i].thumb,\n onload:\"$(this).css('visibility', 'visible');$(this).css('opacity', '1');\"\n });\n\n if (data.results[i].thumb == \"\") {\n myImg.attr('src','no-cover-circle.png');\n }\n\n if (i == data.results.length-1) {\n \tmyImg.attr('onload', \"$(this).css('visibility', 'visible');$(this).css('opacity', '1');$('#moreBtn').fadeToggle(500);\");\n }\n\n // make thumb link\n let myLink = $('<a>',{\n id: (i + offset),\n href: '#',\n click: function() {updateInfoDiv(this.id);return false;},\n });\n\n // wrap 'em and add to grid \n myImg.wrap(myLink);\n $('#imageGrid').append(myImg.parent());\n }\n\n //add \"More\" button if needed\n if (data.pagination.page < data.pagination.pages) {\n let nextPageURL = data.pagination.urls.next;\n let moreBtn = $('<button>', {\n id: 'moreBtn',\n text: '+',\n click: function () { getDiscogsData(nextPageURL);return false; }\n });\n $('#imageGrid').append(moreBtn);\n }\n }\n}", "function getGenres() {\n // TODO: get categories from wp headless\n // https://movie-api.cederdorff.com/wp-json/wp/v2/categories\n}", "function createResultsCard(data, buttonIndicator) {\n // Declare local variables that we use to inject content into elements we will create within each card\n let imgURL;\n let resultsTitle;\n\n // Check which button was clicked\n // If the title of the card whose button was clicked has text that starts with \"G\", assign giphy object values -\n // If it starts with \"M\", assign omdb object values\n if (buttonIndicator.startsWith(\"G\")) {\n // Navigate through the giphy api json object when assigning these variables\n imgURL = data[\"data\"][0][\"images\"][\"original\"][\"url\"];\n resultsTitle = data[\"data\"][0][\"title\"];\n } else if (buttonIndicator.startsWith(\"M\")) {\n // Navigate through the omdb api json object when assigning these variables\n imgURL = data[\"Search\"][0][\"Poster\"];\n resultsTitle = data[\"Search\"][0][\"Title\"];\n }\n\n let card = document.createElement(\"div\");\n card.setAttribute(\"class\", \"card\");\n\n // Create the image for the card - put it inside of the card div\n let img = document.createElement(\"img\");\n img.setAttribute(\"class\", \"card-img-top\");\n // Use the imgURL value that we retrieved from the api to set the src attribute for this image\n img.setAttribute(\"src\", imgURL);\n card.appendChild(img);\n\n // Create the card body div - put it inside of the card div\n let cardBody = document.createElement(\"div\");\n cardBody.setAttribute(\"class\", \"card-body\");\n card.appendChild(cardBody);\n\n //Create the title for the card - put it inside of the card body\n let title = document.createElement(\"h5\");\n title.setAttribute(\"class\", \"card-title\");\n // Use the resultsTitle value that we retrieved from the api to set the text content for the title element\n title.textContent = resultsTitle;\n cardBody.appendChild(title);\n\n // The entire card is complete - now, we append the card the card container in our html page\n cardContainer.appendChild(card);\n}", "function queryCatalog(params, callback) {\n\n var apiKey = localStorage.getItem('apiKey');\n apiSecret = localStorage.getItem('apiSecret'),\n url = \"https://api.urthecast.com/v1/archive/scenes?api_key=\" + apiKey + \"&api_secret=\" + apiSecret;\n\n $.ajax({\n type: \"GET\",\n url: url,\n data: params,\n success: function (data) {\n if (callback) callback(data, this.url);\n }\n });\n}", "searchScience(){\n\t\tthis.getEvents('genre&genre=science');\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get an existing Device resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
static get(name, id, opts) { return new Device(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); }
[ "function getDeviceState(id) {\r\n //Resolve device object of the affected device\r\n let device = null;\r\n for (let i = 0; i < deviceList.length; i++) {\r\n if (deviceList[i].id === id) {\r\n device = deviceList[i];\r\n }\r\n }\r\n\r\n //Check if device could be found\r\n if (device == null) {\r\n return;\r\n }\r\n\r\n //Enable spinner\r\n device.state = 'LOADING';\r\n\r\n //Perform server request and set state of the device object accordingly\r\n DeviceService.getDeviceState(device.id).then(function (response) {\r\n device.state = response.content;\r\n }, function (response) {\r\n device.state = 'UNKNOWN';\r\n NotificationService.notify(\"Could not retrieve the device state.\", \"error\");\r\n }).then(function () {\r\n $scope.$apply();\r\n });\r\n }", "static get(name, id, state, opts) {\n return new ConditionalForwader(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "static get(name, id, state, opts) {\n return new ExternalKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "getState(id) {\n // Convert the id to a name\n const stateName = this.state.names[id];\n\n for (let i = 0; i < this.state.states.length; i++) {\n const state = this.state.states[i];\n\n // The state names match\n if (slugName('', state.name) === slugName('', stateName)) {\n return state;\n }\n }\n\n return undefined;\n }", "static get(name, id, state, opts) {\n return new NamedQuery(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "static get(name, id, state, opts) {\n return new Service(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "function getStateDetails(id) {\r\n\treturn fetch(`${URL}/states/${id}/?ws_key=${API_KEY}&${FORMAT}`)\r\n\t\t.then((res) => {\r\n\t\t\treturn res.json();\r\n\t\t})\r\n\t\t.then((res) => {\r\n\t\t\treturn {\r\n\t\t\t\tstate: res.state.name\r\n\t\t\t};\r\n\t\t});\r\n}", "static get(name, id, state, opts) {\n return new Insight(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "static get(name, id, state, opts) {\n return new KeyPair(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "static get(name, id, state, opts) {\n return new ApiMapping(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "getById(id: string): Device|null {\n let device = null;\n for (let i = 0; i < this.devices.length; i += 1) {\n if (this.devices[i].id === id) {\n device = this.devices[i];\n break;\n }\n }\n\n return device;\n }", "static get(name, id, state, opts) {\n return new RegistryPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "static get(name, id, state, opts) {\n return new ResourceServer(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "static get(name, id, state, opts) {\n return new Environment(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "static get(name, id, state, opts) {\n return new ResourcePolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "getStateInternal(id) {\n var obj = id;\n if (! obj.startsWith(this.namespace + '.'))\n obj = this.namespace + '.' + id;\n return currentStateValues[obj];\n }", "static get(name, id, state, opts) {\n return new HealthCheck(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }", "async function findDevice(id, attrs=undefined) {\r\n // look up DB to find it\r\n if (await checkOrCreateDeviceTable()) {\r\n var params = {\r\n TableName:IOT_DEVICE_TABLE,\r\n Key: { \r\n 'id': {'S':id} \r\n },\r\n };\r\n if (attrs!==undefined) {\r\n params.AttributesToGet = attrs;\r\n }\r\n console.log('finding:'+JSON.stringify(params));\r\n return new Promise(function(resolve, reject) {\r\n _dynoDB.getItem(params, function(err, data) {\r\n if (err) {\r\n console.log('failed to find device'+err);\r\n reject(err);\r\n } else {\r\n console.log('found item:'+JSON.stringify(data));\r\n resolve(data.Item);\r\n }\r\n }) \r\n });\r\n } else {\r\n console.log('failed to find or create DDB table');\r\n throw new Error('failed to find or create DDB table');\r\n }\r\n}", "static get(name, id, state, opts) {\n return new SshKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MASTER COPY CONFUSION WARNING: This function lives at conservaround.glitch.me Round x to nearest r, avoiding floating point crap like 9999.1=999.900000001 at least when r is an integer or negative power of 10. MASTER COPY CONFUSION WARNING: This function lives at conservaround.glitch.me
function tidyround(x, r=1) { if (r < 0) return NaN if (r===0) return +x const y = round(x/r) const rpow = /^0?\.(0*)10*$/ // eg .1 or .01 or .001 -- a negative power of 10 const marr = normberlize(r).match(rpow) // match array; marr[0] is whole match if (!marr) return y*r const p = -marr[1].length-1 // p is the power of 10 return +normberlize(`${y}e${p}`) }
[ "function roundToNearest(argument) {\n}", "function tidyround(x, r=1) {\n if (r < 0) return NaN // this makes no sense and probably wants a loud error\n if (r===0) return +x // full machine precision!\n const y = round(x/r) // naively we'd just be returning round(x/r)*r but...\n const marr = r.toExponential().match(/^1e-(\\d+)$/) // match array for r ~1e-XX\n if (!marr) return y*r // do the naive round(x/r)*r thing if no match\n const dp = +marr[1] // we're just rounding to this many decimal places\n return round(x*10**dp)/10**dp\n //return +`${y}e${-marr[1]}` // put it back together and parse it as a float\n // PS: If we know that r is a negative power of ten then it works to just do\n // round(x*10**dp)/10**dp where dp is the number of decimal places. Eg, to\n // round to 3 decimal places we can just do round(x*1000)/1000. If we try to \n // do round(x/.001)*.001 that can generate floating point hideousness but\n // round(x*1000)/1000 is fine.\n // PPS: It may also work to do this:\n // Round x to dp decimal places. So dp=0 means normal integer rounding.\n // function roundp(x, dp=0) { return Number.parseFloat(x.toFixed(dp)) }\n}", "function roundToNearestHundreth(x){\n return (x).toFixed(2);\n }", "function roundBall (x) {\n return (x % 35) >= 17.5 ? parseInt(x / 35) * 35 + 35 : parseInt(x / 35) * 35;\n}", "function conservaround(x, r=1, e=0) {\n let y = tidyround(x, r)\n if (e===0) return y\n if (e < 0 && y > x) y -= r\n if (e > 0 && y < x) y += r\n return tidyround(y, r) // already rounded but the +r can fu-loatingpoint it up\n}", "function fix (x) {\r\n const pr = 1e14 // Precission\r\n return Math.round(x * pr) / pr\r\n}", "function roundSquare(r) {\n return r * r * 3.14;\n}", "function fixedRounding(x, fixedPos)\n{\n\tvar shift = Math.pow(10, fixedPos);\n\n\treturn Math.round(x * shift) / shift;\n}", "function round(x, sd, rm, r) {\n var d, i, j, k, n, ni, rd,\n xc = x.c,\n pows10 = POWS_TEN;\n\n // if x is not Infinity or NaN...\n if (xc) {\n\n // rd is the rounding digit, i.e. the digit after the digit that may be rounded up.\n // n is a base 1e14 number, the value of the element of array x.c containing rd.\n // ni is the index of n within x.c.\n // d is the number of digits of n.\n // i is the index of rd within n including leading zeros.\n // j is the actual index of rd within n (if < 0, rd is a leading zero).\n out: {\n\n // Get the number of digits of the first element of xc.\n for (d = 1, k = xc[0]; k >= 10; k /= 10, d++);\n i = sd - d;\n\n // If the rounding digit is in the first element of xc...\n if (i < 0) {\n i += LOG_BASE;\n j = sd;\n n = xc[ni = 0];\n\n // Get the rounding digit at index j of n.\n rd = n / pows10[d - j - 1] % 10 | 0;\n } else {\n ni = mathceil((i + 1) / LOG_BASE);\n\n if (ni >= xc.length) {\n\n if (r) {\n\n // Needed by sqrt.\n for (; xc.length <= ni; xc.push(0));\n n = rd = 0;\n d = 1;\n i %= LOG_BASE;\n j = i - LOG_BASE + 1;\n } else {\n break out;\n }\n } else {\n n = k = xc[ni];\n\n // Get the number of digits of n.\n for (d = 1; k >= 10; k /= 10, d++);\n\n // Get the index of rd within n.\n i %= LOG_BASE;\n\n // Get the index of rd within n, adjusted for leading zeros.\n // The number of leading zeros of n is given by LOG_BASE - d.\n j = i - LOG_BASE + d;\n\n // Get the rounding digit at index j of n.\n rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;\n }\n }\n\n r = r || sd < 0 ||\n\n // Are there any non-zero digits after the rounding digit?\n // The expression n % pows10[d - j - 1] returns all digits of n to the right\n // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.\n xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);\n\n r = rm < 4 ?\n (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) :\n rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 &&\n\n // Check whether the digit to the left of the rounding digit is odd.\n ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 ||\n rm == (x.s < 0 ? 8 : 7));\n\n if (sd < 1 || !xc[0]) {\n xc.length = 0;\n\n if (r) {\n\n // Convert sd to decimal places.\n sd -= x.e + 1;\n\n // 1, 0.1, 0.01, 0.001, 0.0001 etc.\n xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];\n x.e = -sd || 0;\n } else {\n\n // Zero.\n xc[0] = x.e = 0;\n }\n\n return x;\n }\n\n // Remove excess digits.\n if (i == 0) {\n xc.length = ni;\n k = 1;\n ni--;\n } else {\n xc.length = ni + 1;\n k = pows10[LOG_BASE - i];\n\n // E.g. 56700 becomes 56000 if 7 is the rounding digit.\n // j > 0 means i > number of leading zeros of n.\n xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;\n }\n\n // Round up?\n if (r) {\n\n for (;;) {\n\n // If the digit to be rounded up is in the first element of xc...\n if (ni == 0) {\n\n // i will be the length of xc[0] before k is added.\n for (i = 1, j = xc[0]; j >= 10; j /= 10, i++);\n j = xc[0] += k;\n for (k = 1; j >= 10; j /= 10, k++);\n\n // if i != k the length has increased.\n if (i != k) {\n x.e++;\n if (xc[0] == BASE) xc[0] = 1;\n }\n\n break;\n } else {\n xc[ni] += k;\n if (xc[ni] != BASE) break;\n xc[ni--] = 0;\n k = 1;\n }\n }\n }\n\n // Remove trailing zeros.\n for (i = xc.length; xc[--i] === 0; xc.pop());\n }\n\n // Overflow? Infinity.\n if (x.e > MAX_EXP) {\n x.c = x.e = null;\n\n // Underflow? Zero.\n } else if (x.e < MIN_EXP) {\n x.c = [x.e = 0];\n }\n }\n\n return x;\n }", "function round(a){return Math.floor(a);}", "function roundTo(n, r, s){\r\n return (Math.floor((n-s)/r)*r)+s\r\n}", "function tlround(x)\n{\n return TSUMOLOSSOFF ? 100*Math.ceil(x/100) : 0;\n}", "function roundX(x,n)\r\n{\r\n return Math.round(x/n)*n;\r\n}", "function roundRat(f) {\n\t var a = f[0]\n\t var b = f[1]\n\t if(a.cmpn(0) === 0) {\n\t return 0\n\t }\n\t var h = a.divmod(b)\n\t var iv = h.div\n\t var x = bn2num(iv)\n\t var ir = h.mod\n\t if(ir.cmpn(0) === 0) {\n\t return x\n\t }\n\t if(x) {\n\t var s = ctz(x) + 4\n\t var y = bn2num(ir.shln(s).divRound(b))\n\t\n\t // flip the sign of y if x is negative\n\t if (x<0) {\n\t y = -y;\n\t }\n\t\n\t return x + y * Math.pow(2, -s)\n\t } else {\n\t var ybits = b.bitLength() - ir.bitLength() + 53\n\t var y = bn2num(ir.shln(ybits).divRound(b))\n\t if(ybits < 1023) {\n\t return y * Math.pow(2, -ybits)\n\t }\n\t y *= Math.pow(2, -1023)\n\t return y * Math.pow(2, 1023-ybits)\n\t }\n\t}", "function roundRat(f) {\n var a = f[0]\n var b = f[1]\n if(a.cmpn(0) === 0) {\n return 0\n }\n var h = a.divmod(b)\n var iv = h.div\n var x = bn2num(iv)\n var ir = h.mod\n if(ir.cmpn(0) === 0) {\n return x\n }\n if(x) {\n var s = ctz(x) + 4\n var y = bn2num(ir.shln(s).divRound(b))\n\n // flip the sign of y if x is negative\n if (x<0) {\n y = -y;\n }\n\n return x + y * Math.pow(2, -s)\n } else {\n var ybits = b.bitLength() - ir.bitLength() + 53\n var y = bn2num(ir.shln(ybits).divRound(b))\n if(ybits < 1023) {\n return y * Math.pow(2, -ybits)\n }\n y *= Math.pow(2, -1023)\n return y * Math.pow(2, 1023-ybits)\n }\n}", "function boundRat(r) {\n var f = ratToFloat(r);\n return [nextafter(f, -Infinity), nextafter(f, Infinity)];\n }", "function round( x, sd, rm, r ) {\r\n\t var d, i, j, k, n, ni, rd,\r\n\t xc = x.c,\r\n\t pows10 = POWS_TEN;\r\n\r\n\t // if x is not Infinity or NaN...\r\n\t if (xc) {\r\n\r\n\t // rd is the rounding digit, i.e. the digit after the digit that may be rounded up.\r\n\t // n is a base 1e14 number, the value of the element of array x.c containing rd.\r\n\t // ni is the index of n within x.c.\r\n\t // d is the number of digits of n.\r\n\t // i is the index of rd within n including leading zeros.\r\n\t // j is the actual index of rd within n (if < 0, rd is a leading zero).\r\n\t out: {\r\n\r\n\t // Get the number of digits of the first element of xc.\r\n\t for ( d = 1, k = xc[0]; k >= 10; k /= 10, d++ );\r\n\t i = sd - d;\r\n\r\n\t // If the rounding digit is in the first element of xc...\r\n\t if ( i < 0 ) {\r\n\t i += LOG_BASE;\r\n\t j = sd;\r\n\t n = xc[ ni = 0 ];\r\n\r\n\t // Get the rounding digit at index j of n.\r\n\t rd = n / pows10[ d - j - 1 ] % 10 | 0;\r\n\t } else {\r\n\t ni = mathceil( ( i + 1 ) / LOG_BASE );\r\n\r\n\t if ( ni >= xc.length ) {\r\n\r\n\t if (r) {\r\n\r\n\t // Needed by sqrt.\r\n\t for ( ; xc.length <= ni; xc.push(0) );\r\n\t n = rd = 0;\r\n\t d = 1;\r\n\t i %= LOG_BASE;\r\n\t j = i - LOG_BASE + 1;\r\n\t } else {\r\n\t break out;\r\n\t }\r\n\t } else {\r\n\t n = k = xc[ni];\r\n\r\n\t // Get the number of digits of n.\r\n\t for ( d = 1; k >= 10; k /= 10, d++ );\r\n\r\n\t // Get the index of rd within n.\r\n\t i %= LOG_BASE;\r\n\r\n\t // Get the index of rd within n, adjusted for leading zeros.\r\n\t // The number of leading zeros of n is given by LOG_BASE - d.\r\n\t j = i - LOG_BASE + d;\r\n\r\n\t // Get the rounding digit at index j of n.\r\n\t rd = j < 0 ? 0 : n / pows10[ d - j - 1 ] % 10 | 0;\r\n\t }\r\n\t }\r\n\r\n\t r = r || sd < 0 ||\r\n\r\n\t // Are there any non-zero digits after the rounding digit?\r\n\t // The expression n % pows10[ d - j - 1 ] returns all digits of n to the right\r\n\t // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.\r\n\t xc[ni + 1] != null || ( j < 0 ? n : n % pows10[ d - j - 1 ] );\r\n\r\n\t r = rm < 4\r\n\t ? ( rd || r ) && ( rm == 0 || rm == ( x.s < 0 ? 3 : 2 ) )\r\n\t : rd > 5 || rd == 5 && ( rm == 4 || r || rm == 6 &&\r\n\r\n\t // Check whether the digit to the left of the rounding digit is odd.\r\n\t ( ( i > 0 ? j > 0 ? n / pows10[ d - j ] : 0 : xc[ni - 1] ) % 10 ) & 1 ||\r\n\t rm == ( x.s < 0 ? 8 : 7 ) );\r\n\r\n\t if ( sd < 1 || !xc[0] ) {\r\n\t xc.length = 0;\r\n\r\n\t if (r) {\r\n\r\n\t // Convert sd to decimal places.\r\n\t sd -= x.e + 1;\r\n\r\n\t // 1, 0.1, 0.01, 0.001, 0.0001 etc.\r\n\t xc[0] = pows10[ ( LOG_BASE - sd % LOG_BASE ) % LOG_BASE ];\r\n\t x.e = -sd || 0;\r\n\t } else {\r\n\r\n\t // Zero.\r\n\t xc[0] = x.e = 0;\r\n\t }\r\n\r\n\t return x;\r\n\t }\r\n\r\n\t // Remove excess digits.\r\n\t if ( i == 0 ) {\r\n\t xc.length = ni;\r\n\t k = 1;\r\n\t ni--;\r\n\t } else {\r\n\t xc.length = ni + 1;\r\n\t k = pows10[ LOG_BASE - i ];\r\n\r\n\t // E.g. 56700 becomes 56000 if 7 is the rounding digit.\r\n\t // j > 0 means i > number of leading zeros of n.\r\n\t xc[ni] = j > 0 ? mathfloor( n / pows10[ d - j ] % pows10[j] ) * k : 0;\r\n\t }\r\n\r\n\t // Round up?\r\n\t if (r) {\r\n\r\n\t for ( ; ; ) {\r\n\r\n\t // If the digit to be rounded up is in the first element of xc...\r\n\t if ( ni == 0 ) {\r\n\r\n\t // i will be the length of xc[0] before k is added.\r\n\t for ( i = 1, j = xc[0]; j >= 10; j /= 10, i++ );\r\n\t j = xc[0] += k;\r\n\t for ( k = 1; j >= 10; j /= 10, k++ );\r\n\r\n\t // if i != k the length has increased.\r\n\t if ( i != k ) {\r\n\t x.e++;\r\n\t if ( xc[0] == BASE ) xc[0] = 1;\r\n\t }\r\n\r\n\t break;\r\n\t } else {\r\n\t xc[ni] += k;\r\n\t if ( xc[ni] != BASE ) break;\r\n\t xc[ni--] = 0;\r\n\t k = 1;\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t // Remove trailing zeros.\r\n\t for ( i = xc.length; xc[--i] === 0; xc.pop() );\r\n\t }\r\n\r\n\t // Overflow? Infinity.\r\n\t if ( x.e > MAX_EXP ) {\r\n\t x.c = x.e = null;\r\n\r\n\t // Underflow? Zero.\r\n\t } else if ( x.e < MIN_EXP ) {\r\n\t x.c = [ x.e = 0 ];\r\n\t }\r\n\t }\r\n\r\n\t return x;\r\n\t }", "function roundToHalfGrid(v){return Math.sign(v)*(Math.round(Math.abs(v)+0.5)-0.5);}", "function fround() {\n\tdo { var a = Math.floor(Math.random() * 1000) / 10 } while (a == Math.floor(a))\n\tpush(\"fround\", `Rounding ${a} to the nearest 32-bit precision number: ${String(Math.fround(a))}`)\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set onclick functions for board specified by outerY and outerX for player to play
function setOnClickFunctionsForBoard(outerX, outerY, player) { if(player1IsHuman == true && player2IsHuman == true){ if(player1Turn == true){ document.getElementById("playerTurn").innerHTML = "Player 1's turn."; document.getElementById("playerTurn").style.color = "red"; player1Turn = false; } else{ document.getElementById("playerTurn").innerHTML = "Player 2's turn."; document.getElementById("playerTurn").style.color = "blue"; player1Turn = true; } } else if (player1IsHuman){ document.getElementById("playerTurn").innerHTML = "Player 1's turn."; document.getElementById("playerTurn").style.color = "red"; } else{ document.getElementById("playerTurn").innerHTML = "Player 2's turn."; document.getElementById("playerTurn").style.color = "blue"; } //Set onclick functions for unselected cells in current inner board for(var i = 0; i < 3; i++) { for(var j = 0; j < 3; j++) { //Set onclick for this cell to call markCellForPlayer if cell is not already selected if(selected[outerX][outerY][i][j] == 0){ document.getElementById("cell" + outerX + "x" + outerY + "x" + i + "x" + j).onclick = (function(){ var currentinnerY = outerY; var currentinnerX = outerX; var currentI = i; var currentJ = j; return function(){ markCellForPlayer(currentinnerX, currentinnerY, currentI, currentJ, player); } })(); } } } }
[ "function setOnClickFunctionsForBoard(outerX, outerY, player)\r\n{\r\n //Set onclick functions for unselected cells in current inner board\r\n for(var i = 0; i < 3; i++)\r\n {\r\n for(var j = 0; j < 3; j++)\r\n {\r\n //Set onclick for this cell to call markCellForPlayer if cell is not already selected\r\n if(selected[outerX][outerY][i][j] == 0){\r\n document.getElementById(\"cell\" + outerX + \"x\" + outerY + \"x\" + i + \"x\" + j).onclick = (function(){\r\n var currentInnerX = outerX;\r\n var currentInnerY = outerY;\r\n var currentI = i;\r\n var currentJ = j;\r\n return function(){\r\n markCellForPlayer(currentInnerX, currentInnerY, currentI, currentJ, player);\r\n }\r\n })();\r\n }\r\n }\r\n }\r\n}", "function makeBoardInteractive() {\n for (var i = 0; i < boardSquares.length; i++) {\n boardSquares[i].addEventListener('click', playerTurn, false);\n }\n}", "function initializeBoardHandlers() {\n\tlet handleBoardClick0 = document.getElementById(\"position-0\");\n\thandleBoardClick0.addEventListener('click', playerTurn0);\n\n\tlet handleBoardClick1 = document.getElementById(\"position-1\");\n\thandleBoardClick1.addEventListener('click', playerTurn1);\n\n\tlet handleBoardClick2 = document.getElementById(\"position-2\");\n\thandleBoardClick2.addEventListener('click', playerTurn2);\n\n\tlet handleBoardClick3 = document.getElementById(\"position-3\");\n\thandleBoardClick3.addEventListener('click', playerTurn3);\n\n\tlet handleBoardClick4 = document.getElementById(\"position-4\");\n\thandleBoardClick4.addEventListener('click', playerTurn4);\n\n\tlet handleBoardClick5 = document.getElementById(\"position-5\");\n\thandleBoardClick5.addEventListener('click', playerTurn5);\n\n\tlet handleBoardClick6 = document.getElementById(\"position-6\");\n\thandleBoardClick6.addEventListener('click', playerTurn6);\n\n\tlet handleBoardClick7 = document.getElementById(\"position-7\");\n\thandleBoardClick7.addEventListener('click', playerTurn7);\n\n\tlet handleBoardClick8 = document.getElementById(\"position-8\");\n\thandleBoardClick8.addEventListener('click', playerTurn8);\n}", "function boardClick(ev) \n{\n //only evaluate click events if it's the player's turn\n if(currentTurn == thisPlayerId){\n\t\t\t\t\t\tvar boardDivOffsetLeft = document.getElementById('board').offsetLeft;\n\t\t\t\t\t\tvar boardDivOffsetTop = document.getElementById('board').offsetTop;\n\t\t\t\t\t\tvar x;\n\t\t\t\t\t\tvar y;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(getInternetExplorerVersion() == -1){\n\t\t\t\t\t\t\t// chrome + FF\n\t\t\t\t\t\t\tx = ev.layerX;\n\t\t\t\t\t\t\ty = ev.layerY;\n\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\tx = ev.clientX - boardDivOffsetLeft;\n\t\t\t\t\t\t\ty = ev.clientY - boardDivOffsetTop;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n square = screenToSquare(x, y); // square here as board index\n if(getPlayerFromPiece(board[square]) == thisPlayerId){\n if(selectedSquare != null){\n removePossibleMoves(selectedSquare);\n deselectSquare(selectedSquare);\n \n }\n selectSquare(square);\n //highlight possible moves\n highlightPossibleMoves(square);\n \n }else\n if(selectedSquare != null){\n \n var moves = possibleMoves(selectedSquare, thisPlayerId);\n for(i=0; i < moves.length; i++){\n if(moves[i] == square){\n var fromCoords = getCoordinatesFromIndex(selectedSquare);\n var toCoords = getCoordinatesFromIndex(square);\n removePossibleMovesAfterAttack(selectedSquare);\n //deselectSquare(selectedSquare); //not really needed\n //processMove(fromCoords[0], fromCoords[1], toCoords[0], toCoords[1]);\n processMoveToServer(fromCoords[0], fromCoords[1], toCoords[0], toCoords[1]);\n \n }\n }\n }\n }\n return \"click processed\";\n}", "function giveCellsClick() {\n if (selectedPiece.seventhSpace) {\n cells[selectedPiece.indexOfBoardPiece + 7].setAttribute(\"onclick\", \"makeMove(7)\");\n }\n if (selectedPiece.ninthSpace) {\n cells[selectedPiece.indexOfBoardPiece + 9].setAttribute(\"onclick\", \"makeMove(9)\");\n }\n if (selectedPiece.fourteenthSpace) {\n cells[selectedPiece.indexOfBoardPiece + 14].setAttribute(\"onclick\", \"makeMove(14)\");\n }\n if (selectedPiece.eighteenthSpace) {\n cells[selectedPiece.indexOfBoardPiece + 18].setAttribute(\"onclick\", \"makeMove(18)\");\n }\n if (selectedPiece.minusSeventhSpace) {\n cells[selectedPiece.indexOfBoardPiece - 7].setAttribute(\"onclick\", \"makeMove(-7)\");\n }\n if (selectedPiece.minusNinthSpace) {\n cells[selectedPiece.indexOfBoardPiece - 9].setAttribute(\"onclick\", \"makeMove(-9)\");\n }\n if (selectedPiece.minusFourteenthSpace) {\n cells[selectedPiece.indexOfBoardPiece - 14].setAttribute(\"onclick\", \"makeMove(-14)\");\n }\n if (selectedPiece.minusEighteenthSpace) {\n cells[selectedPiece.indexOfBoardPiece - 18].setAttribute(\"onclick\", \"makeMove(-18)\");\n }\n}", "function cellClicked(event) {\r\n if (gameActive == true) {\r\n togglePlayer(event);\r\n checkWin();\r\n };\r\n}", "function initBoardClickHandlers() {\n $('[data-board-position]').click(function(e) {\n if (activePlayerIndex === 1 && gameType === \"Computer\") {\n return;\n } else {\n var $clickedBoardPosition = $(e.target);\n\n return setPlayerToken($clickedBoardPosition);\n }\n });\n}", "function boardClick(x, y) {\n if (!yourTurn()) {\n return;\n }\n switch (clickMode) {\n case \"select\":\n boardSelectClick(x, y);\n break;\n\n case \"action\":\n boardActionClick(x, y);\n break;\n\n case \"spawn\":\n spawn(x, y);\n break;\n\n default:\n break;\n }\n}", "function setup_board(canvas, input, cells){\n\n STAMP_ANSWER = new ValueStamp(input, \"#0000FF50\")\n\n // attack the onclick\n canvas.onclick = function(canvas, input, cells){\n return function(event){\n board_onclick(event, canvas, input, cells);\n render_board(canvas, input, cells, [STAMP_HAVE, STAMP_WRONG, STAMP_ANSWER]);\n };\n }(canvas, input, cells);\n\n // initial render\n render_board(canvas, input, cells, [STAMP_HAVE, STAMP_WRONG]);\n}", "function handleClick(rowIndex, columnIndex) {\n playerMove(rowIndex, columnIndex);\n //setTimeout(getBoard, 100);\n\n}", "function registerClicks(canvas, board){\n var domObject = canvas.canvas.canvas;\n var squareSize = $h.constants(\"squareSize\");\n domObject.addEventListener(\"mouseup\", function(e){\n var x = Math.floor(e.offsetX/ squareSize);\n var y = Math.floor(e.offsetY/ squareSize);\n y = (board.isFlipped()) ? y : (y - 7) * -1;\n\n $h.events.trigger(\"squareclick\", x, y);\n });\n }", "function setSquareClicks() {\n\tfor (var i = 0; i < N; i++) {\n\t\tfor (var j = 0; j < N; j++) {\n\t\t\tlet x = i, y = j;\n\t\t\tdocument.getElementById(x+','+y).onclick = function() {\n\t\t\t\tif (!isSafe(x,y)) return;\n\t\t\t\tplaceQueen(x,y);\n\t\t\t\tupdateOutput();\n\t\t\t}\n\t\t}\n\t}\n}", "function handleBoardClick(evt) {\n if (playing && evt.target.classList.contains('active')) {\n handleTargetClick(evt);\n }\n}", "setTileOnClick(x, y, func) {\n // bounds checking\n if (x >= 0 && x < this._width && y >= 0 && y < this._height) \n this.getTile(x, y).onClick = func;\n }", "function handleClick(evt) {\n // if game not started, ignore click\n if (playing === false) return;\n\n // get x from ID of clicked cell\n let x = +evt.target.id;\n\n // get next spot in column (if none, ignore click)\n let y = findSpotForCol(x);\n if (y === null) {\n return;\n }\n\n // place piece in board and add to HTML table\n // TODO: add line to update in-memory board\n placeInTable(y, x);\n board[y][x] = currPlayer;\n\n // check for win\n if (checkForWin()) {\n return endGame(`${currPlayer === 1 ? \"Red player\" : \"Yellow player\"} won!`);\n }\n\n // check for tie\n if (checkForTie()) endGame(`It's a tie!`);\n\n // switch players\n if (currPlayer === 1) {\n currPlayer = 2;\n topButton.classList.remove(\"p1-turn\");\n topButton.classList.add(\"p2-turn\");\n topButton.innerText = \"Player 2's Turn\";\n } else {\n currPlayer = 1;\n topButton.classList.remove(\"p2-turn\");\n topButton.classList.add(\"p1-turn\");\n topButton.innerText = \"Player 1's Turn\";\n }\n}", "function setup() {\n canvas = document.getElementById(\"board\");\n ctx = canvas.getContext(\"2d\");\n\n constructGrid();\n\n canvas.addEventListener(\"click\", (e) => play(e), false);\n}", "function playAction(clickedCell, clickedCellIndex) {\n currentState[clickedCellIndex] = currentPlayer;\n clickedCell.innerHTML = currentPlayer;\n}", "function cellClicked(e) {\n if (gameOver == true) {\n clearBoard();\n gameOver = false;\n\t\treturn;\n\t}\n\tif (e.target.textContent === 'X' || e.target.textContent === 'O') {\n\t\treturn;\n\t}\n\te.target.textContent = players[currentTurn];\n\tcheckDraw()\n\tcheckWinner();\n\tswitchTurn();\n}", "function mousePressed() {\n for (var i = 0; i <rows; i++) {\n for (var j = 0; j<cols; j++){\n grid[i][j].clicked();\n }\n }\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
END getNoAccessNotification START getCustomNotification
function getCustomNotification(customMsg) { var resultMsg = customMsg, customMsgT = '<ul class="ASWidget-customMsg-Ul"><li class="normalPostEntryItem">' + $('<div/>').addClass('container-ASWidgetAlert').append(createAlert(resultMsg, 'danger'))[0].outerHTML + '</li></ul>'; return customMsgT; }
[ "onNotification(notification) {}", "getNotification() {\n if (this.displayModel) {\n return super.getNotification();\n } else {\n return {};\n }\n }", "function getNoAccessNotification() {\n\t\t\tvar resultMsg = localizeString(\"ASWidget-no-access-to-entries\", \"You do not have permission to access this page.\"),\n\t\t\t\tnoAccessMsg = '<ul class=\"ASWidget-NoEntries-Ul\"><li class=\"normalPostEntryItem\">' +\n\t\t\t\t\t$('<div/>').addClass('container-ASWidgetAlert').append(createAlert(resultMsg, 'danger'))[0].outerHTML + '</li></ul>';\n\t\t\treturn noAccessMsg;\n\t\t}", "handleNotification(notification) { }", "onNotificationsOpen() {}", "function getNotification(options)\n{\n\tif(options.accessToken.indexOf(\"Bearer \") == -1)\n\t{\n\t\toptions.accessToken = 'Bearer ' + options.accessToken;\n\t}\n\t\n\tvar input = {\n\t\tmethod : 'get',\n\t\tpath : baseEndPoint + 'Notifications/' + options.notificationId,\n\t\theaders : {\n\t\t\t'Authorization' : options.accessToken,\n\t\t}\n\t};\n\tif (options.accept !== undefined) {\n\t\tinput.headers.Accept = options.accept;\n\t}\n\tlogInfo('********* GET NOTIFICATION LOGS *********');\n\tlogInfo('Input : '\n\t\t\t+ com.worklight.server.integration.api.JSObjectConverter\n\t\t\t\t\t.toFormattedString(input));\n\t// http call to AT&T service\n\tvar result = WL.Server.invokeHttp(input);\n\n\tlogInfo('Response : '\n\t\t\t+ com.worklight.server.integration.api.JSObjectConverter\n\t\t\t\t\t.toFormattedString(result));\n\treturn result;\n\n}", "function shim_GM_notification() {\n if (typeof GM.notification === \"function\") {\n return;\n }\n window.GM.notification = function (ntcOptions) {\n checkPermission();\n\n function checkPermission() {\n if (Notification.permission === \"granted\") {\n fireNotice();\n } else if (Notification.permission === \"denied\") {\n alert(\"User has denied notifications for this page/site!\");\n return;\n } else {\n Notification.requestPermission(function (permission) {\n console.log(\"New permission: \", permission);\n checkPermission();\n });\n }\n }\n\n function fireNotice() {\n if (!ntcOptions.title) {\n console.log(\"Title is required for notification\");\n return;\n }\n if (ntcOptions.text && !ntcOptions.body) {\n ntcOptions.body = ntcOptions.text;\n }\n var ntfctn = new Notification(ntcOptions.title, ntcOptions);\n\n if (ntcOptions.onclick) {\n ntfctn.onclick = ntcOptions.onclick;\n }\n if (ntcOptions.timeout) {\n setTimeout(function () {\n ntfctn.close();\n }, ntcOptions.timeout);\n }\n }\n }\n }", "getW3cNotificationPermission() {\n return window.Notification.permission;\n }", "function getNotifications() {\n\t\ttrace(\"Get notifications of logged in user\");\n\t\t\n\t\t_api.notifications_get(function(result){\n\t\t\ttrace(_s.NOTIFICATIONS_GET);\n\t\t\t\n\t\t\ttrace(result);\n\t\t\tinspect(result);\n\t\t\t\n\t\t\tdispatchEvent(_s.NOTIFICATIONS_GET, result);\n\t\t});\n\t}", "getWorkforcemanagementNotifications() { \n\n\t\treturn this.apiClient.callApi(\n\t\t\t'/api/v2/workforcemanagement/notifications', \n\t\t\t'GET', \n\t\t\t{ },\n\t\t\t{ },\n\t\t\t{ },\n\t\t\t{ },\n\t\t\tnull, \n\t\t\t['PureCloud OAuth'], \n\t\t\t['application/json'],\n\t\t\t['application/json']\n\t\t);\n\t}", "function getOpeningNotification() {\n var nm = getNotificationManager();\n nm.getOpeningNotification(\n function(notification) {\n // Add the notification object to your local array\n addNotificationToStack(notification);\n // Write out all notifications to an HTML table\n writeNotificationTable();\n },\n function(error) {\n out(error);\n },\n true\n );\n}", "function getNotifications() {\n\n notificationRepository.GetByLoggedInPerson(function (callback) {\n $scope.notifications = callback;\n //console.log(\"Notifications\", $scope.notifications);\n\n })\n }", "function push_some_notification() {\n monitoredItem.simulateMonitoredItemAddingNotification();\n }", "function NotifierNotificationOptions() { }", "executeNotification(notification) {\n \n }", "get notifications_none () {\n return new IconData(0xe7f5,{fontFamily:'MaterialIcons'})\n }", "function usageNotification() {\n\n navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate;\n if (!(\"Notification\" in window)) {\n alert(\"Benachrichtigungen werden vom Browser nicht unterstützt\");\n }\n else if (Notification.permission === \"granted\") {\n showNotification();\n }\n else if (Notification.permission !== 'denied'){\n\n Notification.requestPermission(function (permission) {\n if (permission === \"granted\") {\n\n showNotification();\n }\n });\n }\n}", "function notifications() {\n if (permission === true) {\n if (seconds == 0 && minutes == 0) {\n popupNotification();\n soundNotification();\n }\n }\n}", "onNotification(notification) {\n /* Remote notification in this form:\n * {\n * foreground: false, // BOOLEAN: If the notification was received in foreground or not\n * userInteraction: false, // BOOLEAN: If the notification was opened by the user from the notification area or not\n * message: 'My Notification Message', // STRING: The notification message\n * data: {}, // OBJECT: The push data\n * }\n */\n console.log( 'NOTIFICATION:', notification );\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Module object that gets automatically instantiated & linked to the appropriate framework. When using the 'singleDevice' framework it is instantiated as sdModule.
function module() { this.moduleConstants = {}; this.startupData = {}; this.moduleName = ''; this.moduleContext = {}; this.activeDevice = undefined; /** * Function is called once every time the module tab is selected, loads the module. * @param {[type]} framework The active framework instance. * @param {[type]} onError Function to be called if an error occurs. * @param {[type]} onSuccess Function to be called when complete. **/ this.onModuleLoaded = function(framework, onError, onSuccess) { self.startupData = framework.moduleData.startupData; self.moduleName = framework.moduleData.name; onSuccess(); }; /** * Function is called once every time a user selects a new device. * @param {[type]} framework The active framework instance. * @param {[type]} device The active framework instance. * @param {[type]} onError Function to be called if an error occurs. * @param {[type]} onSuccess Function to be called when complete. **/ this.onDeviceSelected = function(framework, device, onError, onSuccess) { self.activeDevices = device; framework.clearConfigBindings(); framework.setStartupMessage('Reading Device Configuration'); onSuccess(); }; this.onDeviceConfigured = function(framework, device, setupBindings, onError, onSuccess) { // self.getRegistersToDisplay() // .then(self.getRegistersModbusInfo) // .then(self.cachedRegistersToDisplay) // .then(self.getInitialDeviceData) // .then(function(registers) { // console.log('Registers to display:', registers); // self.moduleContext = { // 'activeRegisters': self.getActiveRegistersData(registers) // }; // framework.setCustomContext(self.moduleContext); // onSuccess(); // }); framework.setCustomContext({'test':'TestRes', 'testB': 'TestBRes'}); onSuccess(); }; this.onTemplateLoaded = function(framework, onError, onSuccess) { onSuccess(); }; this.hideSaveButtons = function() { var defered = q.defer(); // $('#saved-indicator').hide(); $('#configure-button').slideUp(); $('#saving-indicator').slideDown(); defered.resolve(); return defered.promise; }; var TARGET_REGISTER = { factory: 'IO_CONFIG_SET_CURRENT_TO_FACTORY', powerup: 'IO_CONFIG_SET_CURRENT_TO_DEFAULT' }; var configureDeviceStrategies = { factory: function(device) { // Write a 1 to the appropriate register. return device.iWrite(TARGET_REGISTER.factory, 1); }, powerup: function(device) { // Write a 1 to the appropriate register. return device.iWrite(TARGET_REGISTER.powerup, 1); } }; this.configureSelectedDevice = function(device) { var selectedOption = $('.radio input:checked'); var selectedVal = selectedOption.val(); return configureDeviceStrategies[selectedVal](device); }; this.configureSelectedDevices = function() { var defered = q.defer(); var promises = self.activeDevices.map(self.configureSelectedDevice); q.allSettled(promises) .then(function() { defered.resolve(); }); return defered.promise; }; this.showSaveButtons = function() { var defered = q.defer(); $('#saving-indicator').slideUp(); // $('#saved-indicator').slideDown(); $('#configure-button').slideDown(); defered.resolve(); return defered.promise; }; this.attachListener = function() { var defered = q.defer(); var buttonEle = $('#configure-button'); // buttonEle.off('click'); buttonEle.one('click', self.configureDevice); defered.resolve(); return defered.promise; }; this.configureDevice = function() { self.hideSaveButtons() .then(self.configureSelectedDevices) .then(self.showSaveButtons) .then(self.attachListener); }; /** * Function that gets executed after the module's template is displayed. * @param {object} framework framework object. * @param {function} onError function to be called on error. * @param {function} onSuccess function to be called on success * @return {[type]} [description] */ this.onTemplateDisplayed = function(framework, onError, onSuccess) { self.attachListener() .then(onSuccess); }; this.onRegisterWrite = function(framework, binding, value, onError, onSuccess) { onSuccess(); }; this.onRegisterWritten = function(framework, registerName, value, onError, onSuccess) { onSuccess(); }; this.onRefresh = function(framework, registerNames, onError, onSuccess) { onSuccess(); }; this.onRefreshed = function(framework, results, onError, onSuccess) { onSuccess(); }; this.onCloseDevice = function(framework, device, onError, onSuccess) { // self.saveModuleStartupData() // .then(onSuccess); var buttonEle = $('#configure-button'); buttonEle.off('click'); onSuccess(); }; this.onUnloadModule = function(framework, onError, onSuccess) { onSuccess(); }; this.onLoadError = function(framework, description, onHandle) { console.log('in onLoadError', description); onHandle(true); }; this.onWriteError = function(framework, registerName, value, description, onHandle) { console.log('in onConfigError', description); onHandle(true); }; this.onRefreshError = function(framework, registerNames, description, onHandle) { console.log('in onRefreshError', description); onHandle(true); }; var self = this; }
[ "function module() {\n this.moduleConstants = {};\n this.REGISTER_OVERLAY_SPEC = {};\n this.startupRegList = {};\n this.interpretRegisters = {};\n this.startupRegListDict = dict();\n\n this.moduleContext = {};\n this.activeDevice = undefined;\n this.deviceInfo = {\n type: '',\n version: '',\n fullType: ''\n };\n\n this.currentValues = dict();\n this.newBufferedValues = dict();\n this.bufferedOutputValues = dict();\n\n this.deviceDashboardController = undefined;\n\n this.spinnerController = undefined;\n \n this.roundReadings = function(reading) {\n return Math.round(reading*1000)/1000;\n };\n //Should start using the device.configIO(channelName, attribute, value) function.\n this.writeReg = function(address,value) {\n var ioDeferred = q.defer();\n self.activeDevice.qWrite(address,value)\n .then(function(){\n self.bufferedOutputValues.set(address,value);\n ioDeferred.resolve();\n },function(err){\n console.error('Dashboard-writeReg',address,err);\n ioDeferred.reject(err);\n });\n return ioDeferred.promise;\n };\n \n\n /**\n * Function is called once every time the module tab is selected, loads the module.\n * @param {[type]} framework The active framework instance.\n * @param {[type]} onError Function to be called if an error occurs.\n * @param {[type]} onSuccess Function to be called when complete.\n **/\n this.onModuleLoaded = function(framework, onError, onSuccess) {\n // device_controller.ljm_driver.writeLibrarySync('LJM_SEND_RECEIVE_TIMEOUT_MS',5000);\n // Save Module Constant objects\n self.moduleConstants = framework.moduleConstants;\n self.startupRegList = framework.moduleConstants.startupRegList;\n self.interpretRegisters = framework.moduleConstants.interpretRegisters;\n self.REGISTER_OVERLAY_SPEC = framework.moduleConstants.REGISTER_OVERLAY_SPEC;\n \n /*\n * Commented out in preparation for switching to device-controller \n * built in functionality.\n var genericConfigCallback = function(data, onSuccess) {\n onSuccess();\n };\n var genericPeriodicCallback = function(data, onSuccess) {\n var name = data.binding.binding;\n var value = data.value;\n var oldValue = self.currentValues.get(name);\n if(oldValue != value) {\n self.newBufferedValues.set(name,value);\n } else {\n self.newBufferedValues.delete(name);\n }\n onSuccess();\n };\n\n // console.log('moduleConstants', self.moduleConstants);\n var smartBindings = [];\n var addSmartBinding = function(regInfo) {\n var binding = {};\n binding.bindingName = regInfo.name;\n if(regInfo.isPeriodic && regInfo.isConfig){\n // Add to list of config & periodicically read registers\n binding.smartName = 'readRegister';\n binding.periodicCallback = genericPeriodicCallback;\n } else if ((!regInfo.isPeriodic) && regInfo.isConfig) {\n // Add to list of config registers\n binding.smartName = 'setupOnlyRegister';\n }\n binding.configCallback = genericConfigCallback;\n smartBindings.push(binding);\n };\n\n // Add general readRegisters\n self.startupRegList.forEach(addSmartBinding);\n\n // Save the smartBindings to the framework instance.\n framework.putSmartBindings(smartBindings);\n */\n\n // Save the customSmartBindings to the framework instance.\n // framework.putSmartBindings(customSmartBindings);\n\n self.createProcessConfigStatesAndDirections();\n onSuccess();\n };\n\n this.expandLJMMMNameSync = function (name) {\n return ljmmm_parse.expandLJMMMEntrySync(\n {name: name, address: 0, type: 'FLOAT32'}\n ).map(function (entry) { return entry.name; });\n };\n\n /*\n * This function does what?\n */\n this.createProcessConfigStatesAndDirections = function () {\n var registersByDirectionReg = dict();\n var registersByStateReg = dict();\n var registersToExpand;\n var expandedRegisters;\n\n /* Step 1 in expanding the LJM registers. */\n registersToExpand = self.interpretRegisters.filter(function (reg) {\n return reg.stateReg;\n });\n\n /* Expand the LJM registers */\n expandedRegisters = registersToExpand.map(function (reg) {\n var names = self.expandLJMMMNameSync(reg.name);\n var regList;\n \n // Set up a mapping by the state reg\n regList = registersByStateReg.get(reg.stateReg, []);\n regList = regList.concat(names.map(function (name, index) {\n return {\n name: name,\n stateReg: reg.stateReg,\n directionReg: reg.directionReg,\n index: index\n };\n }));\n registersByStateReg.set(reg.stateReg, regList);\n\n // Set up a mapping by the direction reg\n regList = registersByDirectionReg.get(reg.directionReg, []);\n regList = regList.concat(names.map(function (name, index) {\n return {\n name: name,\n stateReg: reg.stateReg,\n directionReg: reg.directionReg,\n index: index\n };\n }));\n registersByDirectionReg.set(reg.directionReg, regList);\n });\n \n var handleStates = function (states, address, viewRegInfoDict) {\n var registers = registersByStateReg.get(address, []);\n registers.forEach(function (register) {\n var state = states >> register.index & 0x1;\n var viewRegInfo = viewRegInfoDict.get(register.name, {});\n viewRegInfo.state = state;\n viewRegInfo.type = 'dynamic';\n viewRegInfoDict.set(register.name, viewRegInfo);\n });\n };\n\n var handleDirections = function (directions, address, viewRegInfoDict) {\n var registers = registersByDirectionReg.get(address, []);\n registers.forEach(function (register) {\n var direction = directions >> register.index & 0x1;\n var viewRegInfo = viewRegInfoDict.get(register.name, {});\n viewRegInfo.direction = direction;\n viewRegInfoDict.set(register.name, viewRegInfo);\n });\n };\n\n var handleOther = function (value, address, viewRegInfoDict) {\n var viewRegInfo = viewRegInfoDict.get(address, {});\n viewRegInfo.value = value;\n if(address.indexOf('DAC') !== -1) {\n viewRegInfo.type = 'analogOutput';\n } else {\n viewRegInfo.type = 'analogInput';\n }\n viewRegInfoDict.set(address, viewRegInfo);\n };\n\n var hasText = function (haystack, needle) {\n return haystack.indexOf(needle) != -1;\n };\n\n self.processConfigStatesAndDirections = function (registers,\n onSuccess) {\n var viewRegInfoDict = dict();\n registers.forEach(function (regValue, regAddress) {\n if (hasText(regAddress, 'STATE')) {\n handleStates(regValue, regAddress, viewRegInfoDict);\n } else if (hasText(regAddress, 'DIRECTION')) {\n handleDirections(regValue, regAddress, viewRegInfoDict);\n } else {\n handleOther(regValue, regAddress, viewRegInfoDict);\n }\n });\n onSuccess(viewRegInfoDict);\n };\n };\n \n /**\n * Function is called once every time a user selects a new device. \n * @param {[type]} framework The active framework instance.\n * @param {[type]} device The active framework instance.\n * @param {[type]} onError Function to be called if an error occurs.\n * @param {[type]} onSuccess Function to be called when complete.\n **/\n this.onDeviceSelected = function(framework, device, onError, onSuccess) {\n var dacSpinnerInfo = [\n {spinnerID:'DAC0-device_input_spinner', reg: 'DAC0'},\n {spinnerID:'DAC1-device_input_spinner', reg: 'DAC1'},\n ];\n if(device.savedAttributes.deviceTypeName === 'T7') {\n dacSpinnerInfo.push({spinnerID:'DAC0_input_spinner', reg: 'DAC0'});\n dacSpinnerInfo.push({spinnerID:'DAC1_input_spinner', reg: 'DAC1'});\n }\n self.spinnerController = new customSpinners(self, dacSpinnerInfo,self.writeReg);\n self.activeDevice = device;\n\n // var dt = device.savedAttributes.deviceTypeName;\n // var ds = device.savedAttributes.subclass;\n self.deviceInfo.fullType = device.savedAttributes.productType;\n self.deviceInfo.deviceTypeName = device.savedAttributes.deviceTypeName;\n\n // TEMPORARY SWITCH!\n // if(device.savedAttributes.deviceTypeName === 'T4') {\n // self.deviceInfo.fullType = 'T5';\n // self.deviceInfo.deviceTypeName = 'T5';\n // }\n\n framework.clearConfigBindings();\n framework.setStartupMessage('Reading Device Configuration');\n\n // Get new deviceDashboardController instance\n console.log('initializing the GUI stuffs', self.deviceInfo);\n self.deviceDashboardController = new getDeviceDashboardController(self.deviceInfo, framework.moduleData);\n \n // Load file resources required for deviceDashboardController\n self.deviceDashboardController.loadResources();\n\n onSuccess();\n };\n\n var DASHBOARD_DATA_COLLECTOR_UID = 'dashboard-v2';\n this.datacollectorRunning = false;\n this.dataCollectorDevice = undefined;\n this.dataCache = {};\n function frameworkDataUpdateHandler(data) {\n // console.log('We got new data!', data);\n // Update the dataCache\n var channels = Object.keys(data);\n channels.forEach(function(channelName) {\n var channelData = data[channelName];\n var keys = Object.keys(channelData);\n keys.forEach(function(key) {\n var newValue = channelData[key];\n self.dataCache[channelName][key] = newValue;\n });\n });\n \n self.deviceDashboardController.updateValues_v2(channels, data, self.dataCache);\n // console.log('Updated dataCache', self.dataCache);\n }\n function startDashboardDataCollector(device, onSuccess, onError) {\n self.dataCollectorDevice = device;\n self.dataCollectorDevice.dashboard_start(DASHBOARD_DATA_COLLECTOR_UID)\n .then(function(res) {\n console.log('We started the collector', res);\n self.dataCache = res.data;\n // Register an event handler with the data-update event.\n self.dataCollectorDevice.on('DASHBOARD_DATA_UPDATE', frameworkDataUpdateHandler);\n\n self.datacollectorRunning = true;\n onSuccess();\n })\n .catch(function(err) {\n console.error('We had an error starting the collector, err', err);\n onError();\n });\n }\n function stopDashboardDataCollector(onSuccess, onError) {\n if(self.datacollectorRunning) {\n self.dataCollectorDevice.dashboard_stop(DASHBOARD_DATA_COLLECTOR_UID)\n .then(function(res) {\n self.datacollectorRunning = false;\n console.log('We stopped the collector', res);\n\n // Register an event handler with the data-update event.\n self.dataCollectorDevice.removeListener('DASHBOARD_DATA_UPDATE', frameworkDataUpdateHandler);\n\n onSuccess();\n })\n .catch(function(err) {\n self.datacollectorRunning = false;\n console.error('We had an error stopping the collector, err', err);\n onError();\n });\n } else {\n console.log('We did not stop the collector.');\n onSuccess();\n }\n }\n this.onDeviceConfigured = function(framework, device, setupBindings, onError, onSuccess) {\n // Start the data collector.\n startDashboardDataCollector(device, onSuccess, onError);\n };\n\n this.formatVoltageTooltip = function(value) {\n return sprintf.sprintf(\"%.2f V\", value);\n };\n \n this.isStringIn = function(baseStr, findStr) {\n return baseStr.indexOf(findStr) !== -1;\n };\n\n function ioChangeListener(event, isFlex) {\n console.log('in ioChangeListener');\n\n // Initialize a few variables.\n var parentEl, id, activeReg, outputDisplayId;\n var className = event.toElement.className;\n var baseEl = event.toElement;\n\n console.log('className', className, 'baseEl', baseEl);\n\n // Determine what kind of event we are dealing with. The two choices\n // are: 'menuOption' and 'toggleButton'.\n if (self.isStringIn(className, 'menuOption')) {\n // Do some html DOM traversing because of life...\n parentEl = baseEl.parentElement.parentElement.parentElement;\n id = parentEl.id;\n\n // Now that we have the parent element, lets toss it into jQuery.\n var parentObj = $('#'+parentEl.parentElement.id);\n var strVal = baseEl.innerHTML;\n var val = baseEl.attributes.value.value;\n var splitEls = id.split('-');\n activeReg = splitEls[0];\n var selectType = splitEls[1];\n if(selectType === 'device') {\n selectType = splitEls[2];\n }\n\n console.log('Determining next thing?', selectType);\n // Determine if we are altering the 'STATE', 'DIRECTION' or 'MODE'.\n if (selectType === 'DIRECTION') {\n var curValObj = $('#'+id).find('.currentValue');\n var curDirection = {\n 'Input':0,\n 'Output':1\n }[curValObj.text()];\n if(curDirection != val) {\n //Update GUI & write/read values to device\n curValObj.text(strVal);\n\n var inputDisplayId = '.digitalDisplayIndicator';\n outputDisplayId = '.digitalStateSelectButton';\n var outObj = parentObj.find(outputDisplayId);\n var inObj = parentObj.find(inputDisplayId);\n // Switch to perform either a read (if channel is becoming \n // an input) or a write (if channel is becoming an output)\n if(Number(val) === 0) {\n outObj.hide();\n inObj.show();\n // Perform device read\n self.activeDevice.qRead(activeReg)\n .then(function(val) {\n // Update GUI with read value\n var inputStateId = '.digitalDisplayIndicator .currentValue';\n var inputStateObj = parentObj.find(inputStateId);\n var state = {\n '0': {'status': 'inactive', 'text': 'Low'},\n '1': {'status': 'active', 'text': 'High'}\n }[val.toString()];\n inputStateObj.removeClass('active inactive')\n .addClass(state.status);\n inputStateObj.html(state.text);\n },function(err) {\n console.error('Error Reading',activeReg,err);\n });\n } else {\n inObj.hide();\n outObj.show();\n var outputStateId = '.digitalStateSelectButton .currentValue';\n var outputStateObj = parentObj.find(outputStateId);\n outputStateObj.html('High');\n\n // Perform device write, force to be high at start\n self.writeReg(activeReg,1)\n .then(function() {\n },function(err) {\n console.error('Error Writing to',activeReg,err);\n });\n }\n }\n } else if (selectType === 'STATE') {\n var curValueObj = $('#'+id).find('.currentValue');\n // Object to interpret text to device numbers\n var curState = {\n 'Low':0,\n 'High':1\n }[curValueObj.text()];\n if(curState != val) {\n //Update GUI\n curValueObj.text(strVal);\n\n // Perform device write with user selected value\n self.writeReg(activeReg,Number(val))\n .then(function() {\n },function(err) {\n console.error('Error Setting State of',activeReg,err);\n });\n }\n } else if (selectType === 'MODE') {\n var curValObj = $('#'+id).find('.currentValue');\n\n var curMode = {\n 'Analog': 0,\n 'Input': 1,\n 'Output': 2,\n }[curValObj.text()];\n\n if(curMode != val) {\n var newMode = strVal;\n //Update GUI & write/read values to device\n curValObj.text(strVal); \n\n var currentDisplayID;\n var currentDisplayObj;\n\n var newDisplayID;\n var newDisplayObj;\n\n var modeToClassID = {\n 'Analog': '.analogDisplayIndicator',\n 'Input': '.digitalDisplayIndicator',\n 'Output': '.digitalStateSelectButton',\n };\n // currentDisplayID = modeToClassID[curMode];\n // newDisplayID = modeToClassID[newMode];\n // currentDisplayObj = parentObj.find(currentDisplayID);\n // newDisplayObj = parentObj.find(newDisplayID);\n // currentDisplayObj.hide();\n // newDisplayObj.show();\n var analogInObj = parentObj.find(modeToClassID.Analog);\n var digitalInObj = parentObj.find(modeToClassID.Input);\n var digitalOutObj = parentObj.find(modeToClassID.Output);\n\n \n // Switch to determine the appropriate action based on\n // switching to each of the 3 modes.\n // console.log('Displaying New Mode', newMode);\n if(newMode === 'Analog') {\n // Hide the digital In/Out text and display the AIN text.\n digitalInObj.hide();\n digitalOutObj.hide();\n analogInObj.show();\n\n // configure the channel as an analog input\n // console.log('Configuring as analog input', activeReg);\n self.activeDevice.dashboard_configIO(activeReg, 'analogEnable', 'enable')\n .then(function(res) {\n // We have configured the channel as an analog input.\n // we can either read an AIN value and update the\n // text on the page or wait ~1sec and let the primary\n // daq loop collect & update the value.\n\n // // Perform device read to get the latest AIN value.\n // self.activeDevice.qRead(activeReg)\n // .then(function(val) {\n // var ainValID = '.ainValue';\n // var ainValObj = newDisplayObj.find(ainValID);\n // ainValObj.text(val);\n // });\n }, function(err) {\n console.error('Error configuring IO', err);\n });\n } else if(newMode === 'Input') {\n // Hide the analog & dig. out text & show the dig. In text.\n analogInObj.hide();\n digitalOutObj.hide();\n digitalInObj.show();\n\n // Configure the device to be a digital input.\n var steps = [];\n steps.push({channelName: activeReg, attribute: 'analogEnable', value: 'disable'});\n steps.push({channelName: activeReg, attribute: 'digitalDirection', value: 'input'});\n\n // Execute the steps.\n async.eachSeries(steps,\n function(step, cb) {\n self.activeDevice.dashboard_configIO(\n step.channelName,\n step.attribute,\n step.value\n ).then(function(result) {\n results.push(result);\n cb();\n }, function(err) {\n results.push(err);\n cb();\n });\n },\n function(err) {\n // console.log('Configured as input!', results);\n // Perform device read\n self.activeDevice.qRead(activeReg)\n .then(function(val) {\n // Update GUI with read value\n var inputStateId = '.digitalDisplayIndicator .currentValue';\n var inputStateObj = parentObj.find(inputStateId);\n var state = {\n '0': {'status': 'inactive', 'text': 'Low'},\n '1': {'status': 'active', 'text': 'High'}\n }[val.toString()];\n inputStateObj.removeClass('active inactive')\n .addClass(state.status);\n inputStateObj.html(state.text);\n },function(err) {\n console.error('Error Reading',activeReg,err);\n });\n });\n } else if(newMode === 'Output'){\n // console.log('Switching from', curMode, 'to', newMode);\n // console.warn('TODO: There is an issue switching from analog to digital output. LJM Error 2501.')\n analogInObj.hide();\n digitalInObj.hide();\n digitalOutObj.show();\n\n var outputStateId = '.digitalStateSelectButton .currentValue';\n var outputStateObj = parentObj.find(outputStateId);\n outputStateObj.html('High');\n\n // Configure the device to be a digital input. (Define steps).\n var steps = [];\n var results = [];\n if(curMode === 0) {\n steps.push({channelName: activeReg, attribute: 'analogEnable', value: 'disable'});\n steps.push({channelName: activeReg, attribute: 'digitalDirection', value: 'input'});\n steps.push({channelName: activeReg, attribute: 'digitalDirection', value: 'output'});\n steps.push({channelName: activeReg, attribute: 'digitalState', value: 'high'});\n } else {\n steps.push({channelName: activeReg, attribute: 'analogEnable', value: 'disable'});\n steps.push({channelName: activeReg, attribute: 'digitalDirection', value: 'output'});\n steps.push({channelName: activeReg, attribute: 'digitalState', value: 'high'});\n }\n\n // Execute the steps.\n async.eachSeries(steps,\n function(step, cb) {\n self.activeDevice.dashboard_configIO(\n step.channelName,\n step.attribute,\n step.value\n ).then(function(result) {\n results.push(result);\n cb();\n }, function(err) {\n results.push(err);\n cb();\n });\n },\n function(err) {\n console.log('Configured as output!', activeReg, results);\n });\n }\n \n }\n // console.log('val', val);\n // console.log('In Mode...curValObj', curValObj, 'curDirection', curDirection, 'text', curValObj.text());\n }\n } else if (self.isStringIn(className, 'toggleButton')) {\n parentEl = baseEl.parentElement;\n id = parentEl.id;\n activeReg = id.split('-')[0];\n var location = id.split('-')[1];\n var registerName = activeReg;\n if(location === 'device') {\n registerName += location;\n }\n var curStr = baseEl.innerHTML;\n //Set to opposite of actual to toggle the IO line\n var newVal = {'High':0,'Low':1}[curStr];\n var newStr = {'Low':'High','High':'Low'}[curStr];\n outputDisplayId = '#' + registerName + '-STATE-SELECT .currentValue';\n \n // Update GUI\n $(outputDisplayId).text(newStr);\n\n // Perform device write with the opposite value that is currently \n // displayed by the gui, to \"toggle\" the output state\n self.writeReg(activeReg,Number(newVal))\n .then(function() {\n },function(err) {\n console.error('Error Toggling State of',activeReg,err);\n });\n }\n }\n\n \n this.parentClkEvent = undefined;\n function digitalParentClickHandler(event) {\n try {\n self.parentClkEvent = event;\n var ioEventType = '';\n var isFlexIO = false;\n if(event.target.className === \"menuOption\") {\n // We clicked a menu option...\n // console.log('We Clicked a menu option');\n // Get the IO Control Type\n ioEventType = event.toElement.parentElement.parentElement.parentElement.parentElement.className;\n isFlexIO = false;\n if(ioEventType === 'digitalControlObject') {\n isFlexIO = true;\n } else if(ioEventType === '') {\n isFlexIO = false;\n }\n ioChangeListener(event,isFlexIO);\n } else if(event.target.className === \"btn currentValue toggleButton\") {\n // console.log('We clicked a toggle button');\n // Get the IO Control Type (DIO or Flex).\n ioEventType = event.toElement.parentElement.parentElement.parentElement.parentElement.className;\n isFlexIO = false;\n if(ioEventType === 'digitalControlObject') {\n isFlexIO = true;\n } else if(ioEventType === '') {\n isFlexIO = false;\n }\n ioChangeListener(event,isFlexIO);\n }\n } catch(err) {\n console.error('(dashboard_v2/controller.js) Error in digitalParentClickHandler', err);\n }\n }\n this.attachIOListeners = function() {\n var digitalParentObj = $('#device-view #dashboard');\n digitalParentObj.unbind();\n digitalParentObj.bind('click', digitalParentClickHandler);\n };\n this.removeIOListeners = function() {\n var digitalParentObj = $('#device-view #dashboard');\n digitalParentObj.unbind();\n };\n\n this.dioChangeListner = function(event) {\n // Save a copy of the event for debugging purposes.\n self.dioEvent = event;\n\n var isFlexIO = false;\n try {\n ioChangeListener(event, isFlexIO);\n } catch(err) {\n console.log('Error calling ioChangeListener', isFlexIO);\n }\n };\n\n this.attachDIOListners = function() {\n var digitalObj = $('.digitalControlObject');\n digitalObj.unbind();\n digitalObj.bind('click', self.dioChangeListner);\n };\n\n this.flexIOChangeListener = function(event) {\n // Save a copy of the event for debugging purposes.\n self.flexIOEvent = event;\n\n var isFlexIO = true;\n try {\n ioChangeListener(event, isFlexIO);\n } catch(err) {\n console.log('Error calling ioChangeListener', isFlexIO);\n }\n };\n this.attachFlexIOListeners = function() {\n var flexObjects = $('.flexIOControlObject');\n flexObjects.unbind();\n flexObjects.bind('click', self.flexIOChangeListener);\n };\n this.onTemplateLoaded = function(framework, onError, onSuccess) {\n onSuccess();\n };\n this.onTemplateDisplayed = function(framework, onError, onSuccess) {\n self.deviceDashboardController.drawDevice('#device-display-container', self.dataCache);\n self.deviceDashboardController.drawDBs('#db-display-container', self.dataCache);\n self.spinnerController.createSpinners();\n\n // Set the value for the spinners.\n var regs = ['DAC0','DAC1'];\n regs.forEach(function(reg){\n var setV = self.dataCache[reg].val;\n self.spinnerController.writeDisplayedVoltage(reg,setV);\n });\n\n // Register click listeners to DIO and Flex channels.\n // self.attachDIOListners();\n // self.attachFlexIOListeners();\n self.attachIOListeners();\n\n onSuccess();\n // // Display info...\n // self.processConfigStatesAndDirections(self.currentValues, function(initializedData){\n // self.deviceDashboardController.drawDevice('#device-display-container',initializedData);\n // self.deviceDashboardController.drawDBs('#db-display-container', initializedData);\n // self.spinnerController.createSpinners();\n\n \n\n // // Register click listeners to DIO and Flex channels.\n // self.attachDIOListners();\n // self.attachFlexIOListeners();\n\n // onSuccess();\n // });\n // KEYBOARD_EVENT_HANDLER.initInputListeners();\n };\n this.onRegisterWrite = function(framework, binding, value, onError, onSuccess) {\n onSuccess();\n };\n this.onRegisterWritten = function(framework, registerName, value, onError, onSuccess) {\n onSuccess();\n };\n this.onRefresh = function(framework, registerNames, onError, onSuccess) {\n onSuccess();\n };\n this.onRefreshed = function(framework, results, onError, onSuccess) {\n var extraData = dict();\n // Save buffered output values to the dict.\n self.bufferedOutputValues.forEach(function(value,name){\n self.currentValues.set(name,value);\n self.bufferedOutputValues.delete(name);\n });\n\n // Check to see if any _STATE or _DIRECTION bit masks have changed. If\n // so add their counterpart as a later function needs all relevant\n // information.\n self.newBufferedValues.forEach(function(value,name){\n var getName, getVal;\n if(name.indexOf('_STATE') > 0) {\n getName = name.split('_STATE')[0] + '_DIRECTION';\n getVal = self.currentValues.get(getName);\n extraData.set(getName,getVal);\n } else if(name.indexOf('_DIRECTION') > 0) {\n getName = name.split('_DIRECTION')[0] + '_STATE';\n getVal = self.currentValues.get(getName);\n extraData.set(getName,getVal);\n }\n });\n // Only add the counterpart-data if it isn't already there\n extraData.forEach(function(value,name){\n if(!self.newBufferedValues.has(name)) {\n self.newBufferedValues.set(name,value);\n }\n });\n\n // Execute function that expands all read bit-mask registers into \n // individually indexed (by register name) objects. Also intelligently \n // combines data by channel for convenience.\n self.processConfigStatesAndDirections(self.newBufferedValues, function(newData){\n if(typeof(self.deviceDashboardController) !== 'undefined') {\n self.deviceDashboardController.updateValues(newData,self.currentValues);\n\n //Delete Changed Values & update last-saved device values\n self.newBufferedValues.forEach(function(value,name){\n self.currentValues.set(name,value);\n self.newBufferedValues.delete(name);\n });\n }\n onSuccess();\n });\n };\n this.onCloseDevice = function(framework, device, onError, onSuccess) {\n console.log('in onCloseDevice');\n console.log('Removing Listener');\n \n // Stop the listeners...\n self.removeIOListeners();\n\n // self.activeDevice.setDebugFlashErr(false);\n try {\n delete self.deviceDashboardController;\n self.deviceDashboardController = undefined;\n $('#dashboard').remove();\n } catch (err) {\n console.log('Error Deleting Data',err);\n }\n stopDashboardDataCollector(onSuccess, onError);\n };\n this.onUnloadModule = function(framework, onError, onSuccess) {\n console.log('in onUnloadModule');\n stopDashboardDataCollector(onSuccess, onError);\n };\n this.onLoadError = function(framework, description, onHandle) {\n console.log('in onLoadError', description);\n onHandle(true);\n };\n this.onWriteError = function(framework, registerName, value, description, onHandle) {\n console.log('in onConfigError', description);\n onHandle(true);\n };\n this.onRefreshError = function(framework, registerNames, description, onHandle) {\n console.log('in onRefreshError', description);\n if(typeof(description.retError) === 'number') {\n console.log('in onRefreshError',device_controller.ljm_driver.errToStrSync(description.retError));\n } else {\n console.log('Type of error',typeof(description.retError),description.retError);\n }\n onHandle(true);\n };\n\n var self = this;\n}", "function module() {\n this.MODULE_DEBUGGING = true;\n this.MODULE_LOADING_STATE_DEBUGGING = false;\n this.activeDevice = undefined;\n this.framework = undefined;\n this.moduleContext = {};\n this.moduleConstants = {};\n this.periodicRegisters = {};\n var savePeriodicRegisters = function(regInfo) {\n self.periodicRegisters[regInfo.name] = regInfo;\n };\n this.currentValues = dict();\n this.bufferedValues = dict();\n this.newBufferedValues = dict();\n\n var staticFilesDir = static_files.getDir();\n\n // var genericConfigCallback = function(data, onSuccess) {\n // onSuccess();\n // };\n var genericPeriodicCallback = function(data, onSuccess) {\n var name = data.binding.binding;\n var value = data.value;\n if(self.currentValues.has(name)) {\n var oldValue = self.currentValues.get(name);\n if(oldValue.res != value.res) {\n // console.log('New Value!', name, value);\n self.newBufferedValues.set(name,value);\n } else {\n self.newBufferedValues.delete(name);\n }\n } else {\n self.newBufferedValues.set(name, value);\n }\n onSuccess();\n };\n var DEVICE_NAME_CONTROLS_ID = '#change-name-controls';\n var toggleNameControlElementsVisibility = function(data, onSuccess) {\n $(DEVICE_NAME_CONTROLS_ID).slideToggle();\n onSuccess();\n };\n var saveNewDeviceName = function(data, onSuccess) {\n var newName = $('#new-name-input').val();\n self.activeDevice.writeDeviceName(newName.toString())\n .then(function() {\n $(DEVICE_NAME_CONTROLS_ID).slideUp();\n onSuccess();\n }, function(err) {\n console.error('Failed to set device name', err);\n showAlert('Failed to save device name: ' + err.toString());\n onSuccess();\n });\n };\n var cancelSaveNewDeviceName = function(data, onSuccess) {\n $(DEVICE_NAME_CONTROLS_ID).slideUp();\n $('new-name-input').val('');\n onSuccess();\n };\n function setRTCTimeToSystemTime(data, onSuccess) {\n var systemTime = (new Date()).getTime()/1000;\n self.activeDevice.write('RTC_SET_TIME_S',systemTime)\n .then(function() {\n onSuccess();\n }, function(err) {\n console.error('Failed to set RTC_SET_TIME_S', systemTime, err);\n showAlert('Failed to set device time to system time: ' + err.toString());\n onSuccess();\n });\n }\n /**\n * Function is called once every time the module tab is selected, loads the module.\n * @param {[type]} framework The active framework instance.\n * @param {[type]} onError Function to be called if an error occurs.\n * @param {[type]} onSuccess Function to be called when complete.\n **/\n this.onModuleLoaded = function(framework, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onModuleLoaded');\n }\n // Save references to module object\n self.moduleConstants = framework.moduleConstants;\n self.framework = framework;\n\n var customSmartBindings = [{\n // define binding to handle showing/hiding the name-changing gui\n // elements\n bindingName: 'change-name-link',\n smartName: 'clickHandler',\n callback: toggleNameControlElementsVisibility,\n }, {\n bindingName: 'change-name-button',\n smartName: 'clickHandler',\n callback: saveNewDeviceName,\n }, {\n bindingName: 'cancel-change-name-button',\n smartName: 'clickHandler',\n callback: cancelSaveNewDeviceName,\n }, {\n bindingName: 'set_rtc_time',\n smartName: 'clickHandler',\n callback: setRTCTimeToSystemTime,\n }];\n\n // Save the customSmartBindings to the framework instance.\n framework.putSmartBindings(customSmartBindings);\n onSuccess();\n };\n \n /**\n * Function is called once every time a user selects a new device. \n * @param {[type]} framework The active framework instance.\n * @param {[type]} device The active framework instance.\n * @param {[type]} onError Function to be called if an error occurs.\n * @param {[type]} onSuccess Function to be called when complete.\n **/\n this.deviceBindings = [];\n this.onDeviceSelected = function(framework, device, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onDeviceSelected', device);\n }\n // Save a reference to the activeDevice\n self.activeDevice = device;\n\n // Deletes the periodically-executed functions.\n framework.clearConfigBindings();\n self.deviceBindings = [];\n var smartBindings = [];\n var addSmartBinding = function(regInfo) {\n var binding = {};\n binding.bindingName = regInfo.name;\n binding.smartName = 'readRegister';\n binding.periodicCallback = genericPeriodicCallback;\n binding.dataKey = '';\n smartBindings.push(binding);\n self.deviceBindings.push(regInfo.name);\n };\n var deviceTypeName = device.savedAttributes.deviceTypeName;\n if(self.moduleConstants[deviceTypeName]) {\n self.moduleConstants[deviceTypeName].forEach(addSmartBinding);\n self.moduleConstants[deviceTypeName].forEach(savePeriodicRegisters);\n }\n // Save the smartBindings to the framework instance.\n framework.putSmartBindings(smartBindings);\n\n framework.setStartupMessage('Reading Device Info');\n onSuccess();\n };\n var getExtraOperation = function(device,operation,input) {\n if(input) {\n return device[operation](input);\n } else {\n return device[operation]();\n }\n };\n\n this.onDeviceConfigured = function(framework, device, setupBindings, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onDeviceConfigured', device);\n }\n var extraRegisters;\n var promises = [];\n var deviceTemplate;\n var continueFramework = function(template, missingData) {\n var compiledData = '';\n var keys;\n var context = {};\n try {\n keys = Object.keys(device.savedAttributes);\n keys.forEach(function(key) {\n context[key] = device.savedAttributes[key];\n });\n keys = Object.keys(missingData);\n keys.forEach(function(key) {\n context[key] = missingData[key];\n });\n\n context.staticFiles = staticFilesDir;\n // console.log('Template Context', context);\n compiledData = template(context);\n } catch(err) {\n console.error('Error compiling template', err);\n }\n // console.log('Compiled Data', compiledData);\n framework.setCustomContext({\n 'info':'My Info',\n 'device': device.savedAttributes,\n 'pageData': compiledData,\n });\n onSuccess();\n };\n \n if(device.savedAttributes.deviceTypeName === 'T7') {\n deviceTemplate = handlebars.compile(\n framework.moduleData.htmlFiles.t7_template\n );\n\n // Extra required data for T7s\n extraRegisters = [\n 'ETHERNET_IP',\n 'WIFI_IP',\n 'WIFI_RSSI',\n 'CURRENT_SOURCE_200UA_CAL_VALUE',\n 'CURRENT_SOURCE_10UA_CAL_VALUE',\n 'POWER_ETHERNET',\n 'POWER_WIFI',\n 'POWER_AIN',\n 'POWER_LED',\n 'WATCHDOG_ENABLE_DEFAULT',\n 'RTC_TIME_S',\n 'SNTP_UPDATE_INTERVAL',\n ];\n var secondaryExtraRegisters = [\n 'TEMPERATURE_DEVICE_K',\n ];\n promises.push(getExtraOperation(device,'sReadMany', extraRegisters));\n promises.push(getExtraOperation(device,'sReadMany', secondaryExtraRegisters));\n promises.push(getExtraOperation(device,'sRead', 'ETHERNET_MAC'));\n promises.push(getExtraOperation(device,'sRead', 'WIFI_MAC'));\n // promises.push(getExtraOperation(device, 'getRecoveryFirmwareVersion'))\n promises.push(function getDeviceRecoveryFirmwareVersion() {\n var defered = q.defer(); \n device.getRecoveryFirmwareVersion()\n .then(function(res) {\n console.log('Get Device Recovery Firmware Version Result', res);\n defered.resolve({\n 'val': res,\n 'name': 'recoveryFirmwareVersion'\n });\n }, function(err) {\n defered.reject(err);\n });\n return defered.promise;\n }());\n promises.push(function getDeviceMicroSDCardDiskInfo() {\n var defered = q.defer();\n if(device.savedAttributes.HARDWARE_INSTALLED.sdCard) {\n device.getDiskInfo()\n .then(function(res) {\n console.log('Get Device Recovery Firmware Version Result', res);\n defered.resolve({\n 'fileSystem': res.fileSystem,\n 'freeSpace': res.freeSpace,\n 'totalSize': res.totalSize,\n 'info': res,\n 'name': 'diskInfo',\n });\n }, function(err) {\n defered.reject(err);\n });\n } else {\n defered.resolve();\n }\n return defered.promise;\n }());\n promises.push(getExtraOperation(device,'getLatestDeviceErrors'));\n } else if(device.savedAttributes.deviceTypeName === 'Digit') {\n deviceTemplate = handlebars.compile(\n framework.moduleData.htmlFiles.digit_template\n );\n\n // Extra required data for Digits\n extraRegisters = ['DGT_LIGHT_RAW'];\n promises.push(getExtraOperation(device,'sReadMany', extraRegisters));\n promises.push(getExtraOperation(device,'getLatestDeviceErrors'));\n }\n\n q.allSettled(promises)\n .then(function(results) {\n var data = {};\n results.forEach(function(result) {\n try {\n var value = result.value;\n if(Array.isArray(value)) {\n value.forEach(function(singleResult) {\n data[singleResult.name] = singleResult;\n });\n } else {\n if(value.name) {\n data[value.name] = value;\n }\n if((typeof(value.numErrors) !== 'undefined') && (typeof(value.errors) !== 'undefined')) {\n data.latestDeviceErrors = value;\n }\n }\n } catch(err) {\n // console.error('Error parsing results', err);\n // This handles the error that gets thrown when\n // trying to read disk-info from a device w/o a uSD card.\n }\n });\n continueFramework(deviceTemplate, data);\n });\n };\n \n\n this.onTemplateLoaded = function(framework, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onTemplateLoaded');\n }\n onSuccess();\n };\n\n this.cachedPageControls = {};\n var cachePageControls = function() {\n var keys = Object.keys(self.periodicRegisters);\n keys.forEach(function(key) {\n var id = self.periodicRegisters[key].id;\n var element = $('#' + id);\n var dataKey = self.periodicRegisters[key].dataKey;\n var eleA;\n var eleB;\n if(dataKey === 'rtcTime') {\n eleA = $('#' + 'rtc-device-time');\n eleB = $('#' + 'rtc-system-time');\n }\n self.cachedPageControls[key] = {\n 'id': id,\n 'element': element,\n 'save': function(value) {\n var saved = false;\n if(dataKey) {\n if(dataKey == 'rtcTime') {\n // var eleA = $('#' + 'rtc-device-time');\n // var eleB = $('#' + 'rtc-system-time');\n eleA.text(value.t7TimeStr);\n eleB.text(value.pcTimeStr);\n } else if(dataKey !== '') {\n if(typeof(value[dataKey]) !== 'undefined') {\n element.text(value[dataKey]);\n saved = true;\n }\n }\n }\n if(!saved) {\n if(key === 'WIFI_RSSI') {\n var titleText = 'Signal Strength: ' + value.str;\n var srcTxt = staticFilesDir + 'img/';\n srcTxt += value.imageName + '.png';\n element.attr('src', srcTxt);\n element.attr('title', titleText);\n }\n }\n }\n };\n });\n };\n /**\n * Function that gets executed after the module's template is displayed.\n * @param {object} framework framework object.\n * @param {function} onError function to be called on error.\n * @param {function} onSuccess function to be called on success\n * @return {[type]} [description]\n */\n this.onTemplateDisplayed = function(framework, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onTemplateDisplayed');\n }\n cachePageControls();\n onSuccess();\n };\n this.onRegisterWrite = function(framework, binding, value, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onRegisterWrite');\n }\n onSuccess();\n };\n this.onRegisterWritten = function(framework, registerName, value, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onRegisterWritten');\n }\n onSuccess();\n };\n this.onRefresh = function(framework, registerNames, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onRefresh');\n }\n onSuccess();\n };\n var handleNewBufferedValues = function(value, key) {\n self.currentValues.set(key, value);\n try {\n self.cachedPageControls[key].save(value);\n } catch(err) {\n cachePageControls();\n try {\n self.cachedPageControls[key].save(value);\n } catch(secondErr) {\n console.error('Error Updating value', secondErr, key, value);\n }\n }\n self.newBufferedValues.delete(key);\n };\n this.onRefreshed = function(framework, results, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onRefreshed');\n }\n self.newBufferedValues.forEach(handleNewBufferedValues);\n onSuccess();\n };\n this.onCloseDevice = function(framework, device, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onCloseDevice');\n }\n framework.deleteSmartBindings(self.deviceBindings);\n onSuccess();\n };\n this.onUnloadModule = function(framework, onError, onSuccess) {\n if(self.MODULE_LOADING_STATE_DEBUGGING) {\n console.log('in onUnloadModule');\n }\n onSuccess();\n };\n this.onLoadError = function(framework, description, onHandle) {\n console.error('in onLoadError', description);\n onHandle(true);\n };\n this.onWriteError = function(framework, registerName, value, description, onHandle) {\n console.error('in onConfigError', description);\n onHandle(true);\n };\n this.onRefreshError = function(framework, registerNames, description, onHandle) {\n console.error('in onRefreshError', description);\n if(typeof(description.retError) === 'number') {\n console.error('in onRefreshError',description.retError);\n } else {\n console.error('Type of error',typeof(description.retError),description.retError);\n }\n onHandle(true);\n };\n\n var self = this;\n}", "function module() {\n this.moduleConstants = {};\n this.DACRegisters = {};\n this.moduleContext = {};\n this.activeDevice = undefined;\n\n this.currentValues = dict();\n this.bufferedValues = dict();\n this.newBufferedValues = dict();\n this.bufferedOutputValues = dict();\n\n\n this.hasChanges = false;\n\n this.DAC_CHANNEL_READ_DELAY = 3;\n\n this.DAC_CHANNEL_PRECISION = 3;\n\n this.spinnerController = undefined;\n this.updateDOM = true;\n\n \n\n /**\n * Function is called once every time the module tab is selected, loads the module.\n * @param {[type]} framework The active framework instance.\n * @param {[type]} onError Function to be called if an error occurs.\n * @param {[type]} onSuccess Function to be called when complete.\n **/\n this.onModuleLoaded = function(framework, onError, onSuccess) {\n // device_controller.ljm_driver.writeLibrarySync('LJM_SEND_RECEIVE_TIMEOUT_MS',5000);\n // Save Module Constant objects\n self.moduleConstants = framework.moduleConstants;\n self.DACRegisters = framework.moduleConstants.DACRegisters;\n\n var genericConfigCallback = function(data, onSuccess) {\n onSuccess();\n };\n\n var genericPeriodicCallback = function(data, onSuccess) {\n var name = data.binding.binding;\n var value = data.value;\n var oldValue = self.currentValues.get(name);\n if(oldValue != value) {\n self.newBufferedValues.set(name,value);\n } else {\n self.newBufferedValues.delete(name);\n }\n onSuccess();\n };\n var writeBufferedDACValues = function(data, onSuccess) {\n if (self.hasChanges) {\n self.bufferedOutputValues.forEach(function(newVal,address){\n self.writeReg(address,newVal);\n });\n self.bufferedOutputValues = dict();\n self.hasChanges = false;\n }else if(self.bufferedOutputValues.size > 0) {\n self.bufferedOutputValues = dict();\n }\n onSuccess();\n };\n var smartBindings = [];\n\n var addSmartBinding = function(regInfo) {\n var binding = {};\n binding.bindingName = regInfo.name;\n binding.smartName = 'readRegister';\n binding.iterationDelay = self.DAC_CHANNEL_READ_DELAY;\n binding.periodicCallback = genericPeriodicCallback;\n binding.configCallback = genericConfigCallback;\n smartBindings.push(binding);\n };\n\n // Add DAC readRegisters\n self.DACRegisters.forEach(addSmartBinding);\n\n var customSmartBindings = [\n {\n // Define binding to handle Ethernet-Status updates.\n bindingName: 'dacUpdater',\n smartName: 'periodicFunction',\n periodicCallback: writeBufferedDACValues\n }\n ];\n // Save the smartBindings to the framework instance.\n framework.putSmartBindings(smartBindings);\n // Save the customSmartBindings to the framework instance.\n framework.putSmartBindings(customSmartBindings);\n onSuccess();\n };\n this.writeReg = function(reg, val) {\n var ioDeferred = q.defer();\n self.activeDevice.qWrite(reg,val)\n .then(function() {\n self.currentValues.set(reg,val);\n ioDeferred.resolve();\n }, function(err) {\n onsole.error('AnalogOutputs-writeReg',address,err);\n ioDeferred.reject(err);\n });\n return ioDeferred.promise;\n };\n \n /**\n * Function is called once every time a user selects a new device. \n * @param {[type]} framework The active framework instance.\n * @param {[type]} device The active framework instance.\n * @param {[type]} onError Function to be called if an error occurs.\n * @param {[type]} onSuccess Function to be called when complete.\n **/\n this.onDeviceSelected = function(framework, device, onError, onSuccess) {\n self.activeDevice = device;\n var dacSpinnerInfo = [\n {spinnerID:'DAC0_input_spinner', reg: 'DAC0'},\n {spinnerID:'DAC1_input_spinner', reg: 'DAC1'}\n ];\n self.spinnerController = new customSpinners(\n self,\n dacSpinnerInfo,\n self.spinnerWriteEventHandler,\n self.incrementalSpinerUpdateEventHandler\n );\n\n framework.clearConfigBindings();\n framework.setStartupMessage('Reading Device Configuration');\n onSuccess();\n };\n\n this.onDeviceConfigured = function(framework, device, setupBindings, onError, onSuccess) {\n setupBindings.forEach(function(setupBinding){\n var name = setupBinding.address;\n var value;\n if(setupBinding.status === 'error') {\n value = 0;\n } else {\n value = setupBinding.result;\n }\n self.currentValues.set(name,value);\n self.bufferedOutputValues.set(name,value);\n self.hasChanges = false;\n });\n\n self.moduleContext.outputs = self.DACRegisters;\n framework.setCustomContext(self.moduleContext);\n onSuccess();\n };\n\n this.formatVoltageTooltip = function(value) {\n return sprintf.sprintf(\"%.2f V\", value);\n };\n this.updateSpinnerVal = function(reg, val) {\n var spinner = $('#' + reg + '_input_spinner');\n self.spinnerController.writeDACSpinner(spinner,val);\n };\n this.updateSliderVal = function(reg, val) {\n var updateNum = val;\n try {\n updateNum = val.toFixed(3);\n } catch(err) {\n //\n }\n $('#' + reg + '_input_slider').slider('setValue', updateNum);\n };\n /**\n * Function to handle definitive spinner-write events. \n * The DAC channel SHOULD be updated\n * @param {string} reg Device register to be written\n * @param {number} val Value to be written to device register.\n **/\n this.spinnerWriteEventHandler = function(reg, val) {\n self.hasChanges = false;\n self.bufferedOutputValues.delete(reg);\n self.updateSliderVal(reg,val);\n self.writeReg(reg,val)\n .then(function() {\n self.writeDisplayedVoltage(register,selectedVoltage);\n self.updateDOM = true;\n });\n };\n this.incrementalSpinerUpdateEventHandler = function (reg, val) {\n self.updateDOM = false;\n self.bufferedOutputValues.set(reg,val);\n self.updateSliderVal(reg, val);\n self.hasChanges = true;\n };\n this.sliderWriteEventHandler = function(event) {\n var firingID = event.target.id;\n var register = firingID.replace('_input_slider', '');\n var selectedVoltage = Number(\n $('#'+firingID).data('slider').getValue()\n );\n self.hasChanges = false;\n self.bufferedOutputValues.delete(register);\n self.updateSpinnerVal(register, selectedVoltage);\n self.writeReg(register, selectedVoltage)\n .then(function() {\n self.writeDisplayedVoltage(register,selectedVoltage);\n self.updateDOM = true;\n });\n };\n this.incrementalSliderUpdateEventHandler = function(event) {\n self.updateDOM = false;\n var firingID = event.target.id;\n var register = firingID.replace('_input_slider', '');\n var selectedVoltage = Number(\n $('#'+firingID).data('slider').getValue()\n );\n self.bufferedOutputValues.set(register,selectedVoltage);\n self.updateSpinnerVal(register, selectedVoltage);\n self.hasChanges = true;\n };\n this.writeDisplayedVoltage = function(register, selectedVoltage) {\n self.updateSpinnerVal(register, selectedVoltage);\n self.updateSliderVal(register, selectedVoltage);\n };\n \n /**\n * Create the DAC / analog output controls.\n **/\n this.createSliders = function() {\n $('input.slider').unbind();\n var sliderObj = $('input.slider').slider(\n {'formater': self.formatVoltageTooltip, 'value': 4.9}\n );\n sliderObj.bind('slide', self.incrementalSliderUpdateEventHandler);\n sliderObj.bind('slideStop', self.sliderWriteEventHandler);\n };\n\n this.onTemplateLoaded = function(framework, onError, onSuccess) {\n self.spinnerController.createSpinners();\n onSuccess();\n };\n /**\n * Function that gets executed after the module's template is displayed.\n * @param {object} framework framework object.\n * @param {function} onError function to be called on error.\n * @param {function} onSuccess function to be called on success\n * @return {[type]} [description]\n */\n this.onTemplateDisplayed = function(framework, onError, onSuccess) {\n $('#analog_outputs_fw_hider').css('position','inherit');\n self.createSliders();\n self.DACRegisters.forEach(function(register){\n var val = self.currentValues.get(register.register);\n self.writeDisplayedVoltage(register.register,val);\n });\n \n onSuccess();\n };\n this.onRegisterWrite = function(framework, binding, value, onError, onSuccess) {\n onSuccess();\n };\n this.onRegisterWritten = function(framework, registerName, value, onError, onSuccess) {\n onSuccess();\n };\n this.onRefresh = function(framework, registerNames, onError, onSuccess) {\n onSuccess();\n };\n this.onRefreshed = function(framework, results, onError, onSuccess) {\n // Loop through the new buffered values, save them, and display their \n // changes\n self.newBufferedValues.forEach(function(value,key){\n if(self.updateDOM) {\n self.writeDisplayedVoltage(key,value);\n }\n self.currentValues.set(key,value);\n self.newBufferedValues.delete(key);\n });\n onSuccess();\n };\n this.onCloseDevice = function(framework, device, onError, onSuccess) {\n onSuccess();\n };\n this.onUnloadModule = function(framework, onError, onSuccess) {\n onSuccess();\n };\n this.onLoadError = function(framework, description, onHandle) {\n console.log('in onLoadError', description);\n onHandle(true);\n };\n this.onWriteError = function(framework, registerName, value, description, onHandle) {\n console.log('in onConfigError', description);\n onHandle(true);\n };\n this.onRefreshError = function(framework, registerNames, description, onHandle) {\n console.log('in onRefreshError', description);\n if(typeof(description.retError) === 'number') {\n console.log('in onRefreshError',device_controller.ljm_driver.errToStrSync(description.retError));\n } else {\n console.log('Type of error',typeof(description.retError),description.retError);\n }\n onHandle(true);\n };\n\n var self = this;\n}", "function Device() {}", "function boot_module_object() {\n var mtor = function() {};\n mtor.prototype = Module_alloc.prototype;\n\n function module_constructor() {}\n module_constructor.prototype = new mtor();\n\n var module = new module_constructor();\n var module_prototype = {};\n\n setup_module_or_class_object(module, module_constructor, Module, module_prototype);\n\n return module;\n }", "function smartModule(options) {\r\n SmartModule.STATE_UNKNOWN = -1;\r\n SmartModule.STATE_IDLE = 0;\r\n SmartModule.STATE_GETFILE = 1;\r\n SmartModule.STATE_BUSY = 2;\r\n SmartModule.STATE_AWAIT = 3;\r\n\r\n if(!SmartModule.instances) SmartModule.instances = 0;\r\n SmartModule.instances++;\r\n instances = SmartModule.instances; // Private variable - We need to know how many instances are running prior to initialization. Passed back to the pre-initialized state.\r\n\r\n // Custom (optional) options provided by the user\r\n if(!options) options = {}; // Rather than work with \"undefined\", let's work with an empty object\r\n let useExistingReference = options.useExistingReference; // If we are trying to create another instance of the API, this tells us to return the original instance instead of creating a new one\r\n if(options.allowMultipleInstances) allowMultipleInstances = true; // Potentially hazardous: Allows multiple instances of the API to run at the same time.\r\n let initFunction = options.init;\r\n SmartModule.rootPath = options.rootPath || SmartModule.rootPath;\r\n SmartModule.moduleDirectory = options.moduleDirectory || \"modules\";\r\n // Make sure we have appropriate slashes within the full module path\r\n if(SmartModule.moduleDirectory.charAt(SmartModule.moduleDirectory.length-1) == \"/\") SmartModule.moduleDirectory = SmartModule.moduleDirectory.slice(0 ,SmartModule.moduleDirectory.length-1);\r\n if(SmartModule.rootPath.charAt(SmartModule.rootPath.length-1) != \"/\") SmartModule.rootPath += \"/\";\r\n SmartModule.moduleAbsolutePath = SmartModule.rootPath + SmartModule.moduleDirectory + \"/\";\r\n\r\n // Allows accessing the active smart module session from any module as an alternative to the \"moduleName.root\" variable. \r\n // Note that this variable will break if you allow multiple instances of the API to be running simultaneously! \r\n SmartModule.activeInstance = this; \r\n \r\n // Load any modules that are being requested with the \"include\" argument\r\n if(options.modules) {\r\n SmartModule.loadModule(options.modules);\r\n }\r\n\r\n // useExistingReference tells us to return an already existing reference to this API if it exists\r\n if(SmartModule.instances > 1 && !allowMultipleInstances) {\r\n if(!useExistingReference) console.warn(`Attempted to create multiple SmartModule API instances. Multiple instances are currently disabled.`);\r\n SmartModule.instances = 1; // We are passing the original instance back instead of creating a new one, so keep instances at 1\r\n instances = 1;\r\n return activeInstance;\r\n }\r\n activeInstance = this;\r\n const $root = this;\r\n this.blankSection = \"\"; // Defines a blank cross section variable to be used for the \"New\" menu item\r\n this.version = version;\r\n this.description = `Smart Modules v${this.version} loaded`;\r\n this.modulesLoaded = [];\r\n this.state = SmartModule.STATE_IDLE; // States allow us to know what the smart module is currently doing, such as waiting on async functions to complete\r\n // Number of active async functions\r\n Object.defineProperty(this, \"activeAsync\", \r\n { \r\n get: function() { return this.value },\r\n set : function(val) { \r\n this.value = val;\r\n if(this.value > 0) {\r\n $root.state = SmartModule.STATE_AWAIT;\r\n } else {\r\n $root.state = SmartModule.STATE_IDLE;\r\n }\r\n }\r\n });\r\n\r\n this.activeAsync = 0; // Active number of asynchonous things happening in the background\r\n\r\n // Show a description of this application in the console window (Optional)\r\n if(this.description) console.info(`%c${this.description}`, \"font-size:1.0em;font-weight:bold;background-color:black;color:yellow;padding:10px;min-width:500px;line-height:0.25em;text-align:center;\"); \r\n // If collapseLoader is true, all of the loaded modules and their info will be grouped in the console\r\n if(collapseLoader) console.groupCollapsed(\"%cClick Here to View Loaded Cross Section Modules\",\"border-radius:5px;padding:5px; background-color:blue;color:white\"); // Groups the loading of modules into a single group to prevent cluttering the console.\r\n\r\n // Begin initialization after DOM is fully loaded\r\n\r\n document.onreadystatechange = function () {\r\n if (document.readyState == \"complete\") {\r\n loadModules();\r\n if(initFunction) initFunction($root);\r\n }\r\n }\r\n // smartModule.fn = smartModule.prototype; // Make it easier to design prototypes via simple fn (function)\r\n\r\n\r\n // For NON-API Modules: A function to quickly explain the purpose of each loaded file in the console for debugging and development purposes\r\n this.showModuleInfo = function(filename, description) {\r\n filename = filename.padEnd(25, \" \"); // Filename is always set characters minimum in length so there's equal spacing between comments\r\n description = \"* \" + description;\r\n description = description.padEnd(105, \" \"); // Description is always 105 characters minimum in length so there's equal spacing between comments\r\n console.log(`%cModule%c${filename}%c${description}`, `padding:3px; background-color:rgb(155,0,0); color:white; display:inline-block;`,`font-weight:bold;padding:3px; background-color:rgb(0,150,255); color:yellow; display:inline-block; min-width:25%;`, `padding:3px; background-color:rgb(0,50,155); color:white; display:inline-block;min-width:50%`);\r\n }\r\n\r\n // For API Modules: A function to quickly explain the purpose of each loaded sm.*.js file in the console for debugging and development purposes\r\n this.showModuleInfoApi = function(filename, description) {\r\n filename = filename.padEnd(25, \" \"); // Filename is always set characters minimum in length so there's equal spacing between comments\r\n description = description.padEnd(105, \" \"); // Description is always 105 characters minimum in length so there's equal spacing between comments\r\n console.log(`%cModule%c${filename}%c${description}`, `padding:3px; background-color:rgb(155,0,0); color:white; display:inline-block;`,`font-weight:bold;padding:3px; background-color:rgb(0,150,255); color:yellow; display:inline-block; min-width:25%;`, `padding:3px; background-color:rgb(0,50,255); color:white; display:inline-block;min-width:50%`);\r\n }\r\n\r\n // Loads a module from a file/URL\r\n // Note that this is a separate function from the SmartModule.loadModule function! This one only becomes available after\r\n // the smart module is initialized as a new object.\r\n this.loadModule = function(moduleName) {\r\n if(!moduleName) throw \"loadModule(moduleName): A module name or path is required but was not given!\"\r\n let path = null;\r\n if(moduleName.search(\".js\") !== -1) path = moduleName; // If a URL is given, load that. If not, use the modules/sm.modulename.js location\r\n if(!path) path= SmartModule.moduleAbsolutePath + `sm.${moduleName}.js`;\r\n var scriptTag = document.createElement(\"script\"), // create a script tag\r\n firstScriptTag = document.getElementsByTagName(\"script\")[0]; // find the first script tag in the document\r\n scriptTag.src = path; // set the source of the script to your script\r\n firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag); // append the script to the DOM\r\n scriptTag.onload = (s=>{\r\n let thisModule = SmartModule.modules.slice(-1).pop(); // Get the last loaded script\r\n addModule(thisModule.moduleName, thisModule.moduleFunction); // Activate the module. Not to be confused with the public \"this.addModule\"!\r\n });\r\n }\r\n\r\n // Public access to the addModule function. \r\n // Note that this is a separate function from the SmartModule.addmodule function! This one only becomes available after\r\n // the smart module is initialized as a new object. \r\n this.addModule = function(moduleName, moduleFunction, moduleInfo) {\r\n moduleInfo = moduleInfo || {};\r\n // Check if we have any descriptions, versions, or dependency requirements info for this module\r\n if(typeof moduleFunction == object) {\r\n moduleInfo.description = moduleFunction.description || moduleInfo.description;\r\n moduleInfo.version = moduleFunction.version || moduleInfo.version;\r\n moduleInfo.requires = moduleFunction.requires || moduleInfo.requires;\r\n } \r\n addModule(moduleName, moduleFunction, moduleInfo);\r\n }\r\n\r\n // When the API is first initialized, see which modules have been requested for loading and load each one\r\n function loadModules() {\r\n SmartModule.modules.map(module=>{\r\n addModule(module.moduleName, module.moduleFunction, module.moduleInfo);\r\n })\r\n if(SmartModule.moduleExtensions) {\r\n SmartModule.moduleExtensions.map(module=>{\r\n addModule(module.moduleName, module.moduleFunction, module.moduleInfo, true);\r\n }) \r\n }\r\n }\r\n \r\n // Add modules to this API and still have access to root variables, objects, prototypes, and functions.\r\n // Checks for dependencies during the module loading process to make sure they're available, regardless\r\n // of which modules are loaded first. Description is optional and may be passed in the 'fn' arg instead.\r\n // If appendToModule is true, this module will extend an existing module and add functionality to it\r\n function addModule(mod, fn, modInfo, appendToModule = false) {\r\n \r\n modInfo = modInfo || {};\r\n let description = modInfo.description || false;\r\n \r\n let requirements = modInfo.requires;\r\n \r\n if(!appendToModule) {\r\n // Make sure we're not extending an existing module.\r\n if(smartModule.prototype[mod]) throw new Error(`Warning! A module with the name ${mod} already exists! `);\r\n smartModule.prototype[mod] = fn;\r\n if(typeof fn === \"object\") {\r\n smartModule.prototype[mod].root = $root; // Assign a root variable to any collection modules\r\n smartModule.prototype[mod].moduleName = mod; // Assign a module name variable to any collection modules\r\n }\r\n // If the module has a function to run on initialization, run it now\r\n if(smartModule.prototype[mod].initialize) {\r\n smartModule.prototype[mod].initialize();\r\n }\r\n } else {\r\n // We're extending an already existing module (appending to the module object).\r\n if(!smartModule.prototype[mod]) {\r\n throw `Cannot extend module \"${mod}\" since it's not defined or loaded! The extension description is: ${modInfo.description[0]}, ${modInfo.description[1]}`;\r\n }\r\n if(typeof smartModule.prototype[mod] == \"object\") {\r\n smartModule.prototype[mod] = { ...smartModule.prototype[mod], ...fn };\r\n } else {\r\n throw `Cannot extend module \"${mod}\" since it's not a collection! The extension description is: ${modInfo.description[0]}, ${modInfo.description[1]}`;\r\n }\r\n }\r\n // Dependency check\r\n if(requirements) {\r\n requirements.map(r=>{\r\n if(!smartModule.prototype[r] && SmartModule.moduleNames.indexOf(r) == -1) {\r\n console.warn(`Module Dependency Issue: Module \"${mod}\" requires module \"${r}\" which is wasn't found. This may cause errors to be thrown!`);\r\n }\r\n });\r\n }\r\n if(description && options.showModuleInfo === true) {\r\n $root.showModuleInfoApi(description[0], description[1]);\r\n $root.modulesLoaded.push(`${mod} : ${description[1]}`);\r\n } else if (options.showModuleInfo === true) {\r\n $root.showModuleInfoApi(mod, \"Single-function Module Loaded\");\r\n $root.modulesLoaded.push(`${mod} : Untitled Single-function Module`); {}\r\n } \r\n else {\r\n $root.modulesLoaded.push(`${mod} : No description`);\r\n } \r\n }\r\n }", "function boot_module_object() {\r\n var mtor = function() {};\r\n mtor.prototype = ModuleClass.constructor.prototype;\r\n\r\n function module_constructor() {}\r\n module_constructor.prototype = new mtor();\r\n\r\n var module = new module_constructor();\r\n var module_prototype = {};\r\n\r\n setup_module_or_class_object(module, module_constructor, ModuleClass, module_prototype);\r\n\r\n module.$$is_mod = true;\r\n module.$$dep = [];\r\n\r\n return module;\r\n }", "function ModulesApi() {\n\t/**\n * @private {{}} _moduleObjectStorage - Modules storage.\n */\n\tvar _moduleObjectStorage = {};\n\n\t/**\n * @private {{}} _moduleClassStorage - Classes storage.\n */\n\tvar _moduleClassStorage = {};\n\n\t/**\n * Register module events\n * @param {Array} events - Array of events\n */\n\tfunction registerModuleEvents(events) {\n\t\tif (Array.isArray(events)) {\n\t\t\tMoff.each(events, function (index, event) {\n\t\t\t\tMoff.event.add(event);\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n * Creates new module class.\n * @method create\n * @param {string} name - module name\n * @param {object} [depend] - object of js and css files\n * @param {function} Constructor - constructor\n */\n\tthis.create = function (name, depend, Constructor, extendFrom) {\n\t\tif (typeof extendFrom === 'undefined' && typeof Constructor === 'undefined' && typeof depend === 'function') {\n\t\t\tConstructor = depend;\n\t\t\tdepend = undefined;\n\t\t} else if (typeof extendFrom === 'undefined' && typeof Constructor === 'function' && typeof depend === 'function') {\n\t\t\textendFrom = Constructor;\n\t\t\tConstructor = depend;\n\t\t\tdepend = undefined;\n\t\t}\n\n\t\tif (extendFrom) {\n\t\t\tConstructor.prototype = new extendFrom();\n\t\t} else {\n\t\t\tConstructor.prototype = Moff.Module;\n\t\t}\n\n\t\tConstructor.prototype.constructor = Constructor;\n\n\t\t// Save module in storage\n\t\tif (typeof _moduleClassStorage[name] === 'undefined') {\n\t\t\t_moduleClassStorage[name] = {\n\t\t\t\tconstructor: Constructor,\n\t\t\t\tdepend: depend\n\t\t\t};\n\t\t}\n\t};\n\n\t/**\n * Initialize registered class\n * @method initClass\n * @param {string} ClassName - Name of registered class\n * @param {object} [params] - Object with additional params\n */\n\tthis.initClass = function (ClassName, params) {\n\t\tvar moduleObject = _moduleClassStorage[ClassName];\n\n\t\tif (!moduleObject) {\n\t\t\tMoff.debug(ClassName + ' Class is not registered');\n\n\t\t\treturn;\n\t\t}\n\n\t\tfunction initialize() {\n\t\t\t// Create new class object\n\t\t\tvar classObject = new moduleObject.constructor();\n\t\t\tvar storedObject = _moduleObjectStorage[ClassName];\n\n\t\t\t// Store objects in array if there are more then one classes\n\t\t\tif (Array.isArray(storedObject)) {\n\t\t\t\tstoredObject.push(classObject);\n\t\t\t} else if (typeof storedObject !== 'undefined') {\n\t\t\t\t_moduleObjectStorage[ClassName] = [storedObject, classObject];\n\t\t\t} else {\n\t\t\t\t_moduleObjectStorage[ClassName] = classObject;\n\t\t\t}\n\n\t\t\tif (typeof classObject.beforeInit === 'function') {\n\t\t\t\tclassObject.beforeInit();\n\t\t\t}\n\n\t\t\tif (params) {\n\t\t\t\t// Apply all passed data\n\t\t\t\tMoff.each(params, function (key, value) {\n\t\t\t\t\tclassObject[key] = value;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Add module name\n\t\t\tclassObject.moduleName = ClassName;\n\n\t\t\tif (Array.isArray(classObject.events) && classObject.events.length) {\n\t\t\t\t// Register module events.\n\t\t\t\tregisterModuleEvents(classObject.events);\n\t\t\t}\n\n\t\t\t// Set module scope\n\t\t\tclassObject.setScope();\n\n\t\t\tif (typeof classObject.init === 'function') {\n\t\t\t\tclassObject.init();\n\t\t\t}\n\n\t\t\tif (typeof classObject.afterInit === 'function') {\n\t\t\t\tclassObject.afterInit();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tif (moduleObject.depend) {\n\t\t\t\tMoff.loadAssets(moduleObject.depend, initialize);\n\t\t\t} else {\n\t\t\t\tinitialize();\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tMoff.error(error);\n\t\t}\n\t};\n\n\t/**\n * Get registered module by name.\n * @method get\n * @param {string} name - Module name\n * @returns {object|Array|undefined} Module object or undefined\n */\n\tthis.get = function (name) {\n\t\treturn _moduleObjectStorage.hasOwnProperty(name) && _moduleObjectStorage[name] || undefined;\n\t};\n\n\t/**\n * Returns Module class\n * @method getClass\n * @param {String} name - module name\n * @returns {Function}\n */\n\tthis.getClass = function (name) {\n\t\tvar constructor = function constructor() {};\n\n\t\tif (_moduleClassStorage.hasOwnProperty(name)) {\n\t\t\tconstructor = _moduleClassStorage[name];\n\t\t}\n\n\t\treturn constructor;\n\t};\n\n\t/**\n * Returns all modules.\n * @method getAll\n * @returns {{}}\n */\n\tthis.getAll = function () {\n\t\treturn _moduleObjectStorage;\n\t};\n\n\t/**\n * Get modules by passed property.\n * @method getBy\n * @param {string} field - Module property name\n * @param {*} value - Property value\n * @returns {Array} Array of modules filtered by property\n */\n\tthis.getBy = function (field, value) {\n\t\tvar all = this.getAll();\n\t\tvar result = [];\n\n\t\t// Normalize field\n\t\tif (field === 'class') {\n\t\t\tfield = 'moduleName';\n\t\t}\n\n\t\tMoff.each(all, function (className, object) {\n\t\t\tif (Array.isArray(object)) {\n\t\t\t\tMoff.each(object, function (index, obj) {\n\t\t\t\t\tif (obj[field] && obj[field] === value) {\n\t\t\t\t\t\tresult.push(obj);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else if (object[field] && object[field] === value) {\n\t\t\t\tresult.push(object);\n\t\t\t}\n\t\t});\n\n\t\treturn result;\n\t};\n\n\t/**\n * Remove registered module by name or instance.\n * @method remove\n * @param {string|object} module - Module Class name or instance.\n */\n\tthis.remove = function (module) {\n\t\tvar i = 0;\n\t\tvar isInstance = typeof module !== 'string';\n\t\tvar moduleName = isInstance ? module.moduleName : module;\n\t\tvar storage = _moduleObjectStorage[moduleName];\n\n\t\t// Be sure to remove existing module\n\t\tif (Array.isArray(storage)) {\n\t\t\tvar length = storage.length;\n\n\t\t\tfor (; i < length; i++) {\n\t\t\t\tvar object = storage[i];\n\n\t\t\t\tif (isInstance && object === module || !isInstance && object.moduleName === moduleName) {\n\t\t\t\t\tstorage.splice(i, 1);\n\t\t\t\t\tlength = storage.length;\n\t\t\t\t\t--i;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (storage.length === 1) {\n\t\t\t\t_moduleObjectStorage[moduleName] = _moduleObjectStorage[moduleName][0];\n\t\t\t} else if (!_moduleObjectStorage[moduleName].length) {\n\t\t\t\tdelete _moduleObjectStorage[moduleName];\n\t\t\t}\n\t\t} else {\n\t\t\tdelete _moduleObjectStorage[moduleName];\n\t\t}\n\t};\n\n\t/* Test-code */\n\tthis._testonly = {\n\t\t_moduleClassStorage: _moduleClassStorage,\n\t\t_moduleObjectStorage: _moduleObjectStorage\n\t};\n\t/* End-test-code */\n}", "function NSGetModule(comMgr, fileSpec)\r\n{\r\n return myAppHandlerModule;\r\n}", "function boot_module() {\n var mtor = function() {};\n mtor.prototype = RubyModule.constructor.prototype;\n\n function OpalModule() {};\n OpalModule.prototype = new mtor();\n\n var module = new OpalModule();\n\n module._id = unique_id++;\n module._isClass = true;\n module.constructor = OpalModule;\n module._super = RubyModule;\n module._methods = [];\n module.__inc__ = [];\n module.__parent = RubyModule;\n module._proto = {};\n module.__mod__ = true;\n module.__dep__ = [];\n\n return module;\n }", "function YFunction_get_module()\n {\n // try to resolve the function name to a device id without query\n if(this._serial != \"\") {\n return yFindModule(this._serial + \".module\"); \n }\n var hwid = this._func;\n var resolve;\n if(hwid.indexOf(\".\") < 0) {\n resolve = YAPI.resolveFunction(this._className, this._func);\n if(resolve.errorType == YAPI_SUCCESS) hwid = resolve.result;\n }\n var dotidx = hwid.indexOf(\".\");\n if(dotidx >= 0) {\n // resolution worked\n return yFindModule(hwid.substr(0, dotidx) + \".module\");\n }\n\n // device not resolved for now, force a communication for a last chance resolution\n if(this.load(YAPI.defaultCacheValidity) == YAPI_SUCCESS) {\n resolve = YAPI.resolveFunction(this._className, this._func);\n if(resolve.result != undefined) hwid = resolve.result;\n }\n dotidx = hwid.indexOf(\".\");\n if(dotidx >= 0) {\n // resolution worked\n return yFindModule(hwid.substr(0, dotidx) + \".module\");\n }\n // return a true yFindModule object even if it is not a module valid for communicating\n return yFindModule(\"module_of_\"+this.className+\"_\"+this._func);\n }", "function _initModule(){\n //console.log('[ neatFramework_chrome_devtools_MODULE.js ] : ' + 'initiating module ..'); // debug message > module is registered\n consoleLog('[ neatFramework_gamepad_MODULE.js ] : ' + 'initiating module ..', 'color: #d88069;');\n _initial_setup_module_init(); // actually init the module's 'initial setup' config/params (..)\n }", "function Module(){}", "static module(name) {\n if (typeof name === 'string') {\n let instance = this.modules[name];\n if (!instance) {\n this.modules[name] = instance = new AppShell();\n instance.constant('CONTAINER_NAME', name);\n }\n return instance;\n }\n return new AppShell();\n }", "function _YModule(str_func)\n {\n //--- (generated code: YModule constructor)\n // inherit from YFunction\n YFunction.call(this, str_func);\n this._className = 'Module';\n\n this._productName = Y_PRODUCTNAME_INVALID; // Text\n this._serialNumber = Y_SERIALNUMBER_INVALID; // Text\n this._productId = Y_PRODUCTID_INVALID; // XWord\n this._productRelease = Y_PRODUCTRELEASE_INVALID; // XWord\n this._firmwareRelease = Y_FIRMWARERELEASE_INVALID; // Text\n this._persistentSettings = Y_PERSISTENTSETTINGS_INVALID; // FlashSettings\n this._luminosity = Y_LUMINOSITY_INVALID; // Percent\n this._beacon = Y_BEACON_INVALID; // OnOff\n this._upTime = Y_UPTIME_INVALID; // Time\n this._usbCurrent = Y_USBCURRENT_INVALID; // UsedCurrent\n this._rebootCountdown = Y_REBOOTCOUNTDOWN_INVALID; // Int\n this._usbBandwidth = Y_USBBANDWIDTH_INVALID; // UsbBandwidth\n this._logCallback = null; // YModuleLogCallback\n //--- (end of generated code: YModule constructor)\n\n // automatically fill in hardware properties if they can be resolved\n // without any network access (getDevice does not cause network access)\n var devid = this._func;\n var dotidx = devid.indexOf(\".\");\n if(dotidx > 0) devid = devid.substr(0, dotidx);\n var dev = YAPI.getDevice(devid);\n if(dev) {\n this._serial = dev.getSerialNumber();\n this._funId = \"module\";\n this._hwId = this._serial+\".module\";\n }\n }", "function createModule (config, shared){\n\n if (!io){ return console.log( 'control-module-factory '.grey + 'No io set, do that first!'.red )}\n if (!config || !config.type || controlModules[config.type] === undefined){ return console.log( 'control-module-factory '.grey + ('No such control-type: ' + config.type).red )}\n\n config.io = config.io || io;\n config.globalEventHandler = globalEventHandler;\n\n // the shared object is a substitute for protected members in JS\n shared = shared || {\n 'setForeignListener': setForeignListener,\n 'createModule' : createModule\n };\n\n // create the module\n var module = controlModules[config.type](config, shared);\n\n // check if module was returned or if something went wrong when creating\n if (module.error){\n console.log( 'control-module-factory '.grey + ('something went wrong when creating a ' + config.type).red );\n console.log( 'control-module-factory '.grey + (module.toString()).red );\n throw new Error(module.error.toString());\n }\n\n // save the reference to every created module in static array\n createdModules[module.getId()] = module;\n console.log( 'control-module-factory '.grey + ('created: '.green + module.getName() + ' '+ module.getType()+ ' ' + module.getId().grey));\n\n return module;\n}", "function Device( server ) {\n this.impl = new require( './dao/' +\n nconf.get( \"impl_directory\" ) +\n '/devices.js' );\n impl = this.impl;\n modelAPI = server;\n}", "function AN_Module( base_config ){\n\n //Base options for every module\n var skeleton_config = {\n active: true,\n run: function(){}\n };\n\n //Extend the skeleton config with the module's base configuration options\n var config = extend({},skeleton_config,base_config);\n\n if(!config.name){\n throw 'Module has no name defined!';\n }\n \n //Get the module's name\n var name = config.name;\n \n //The main init function for the module, which runs when the library is run\n function init(passed_config){\n\n //when config value is false, don't run\n if (typeof(passed_config) !== 'undefined' && !passed_config) {\n return;\n }\n \n //Extend the module's base configuration options with runtime options passed by the user\n config = extend({},config,passed_config);\n \n //Run the modules unless it's been explicitly disabled by active:false in config options\n if(config.active){\n config.run(); \n } \n \n }\n \n return {\n init: init,\n name: name,\n config: config\n };\n \n}", "load()\n {\n const priv = d.get(this);\n\n const wasmUrl = priv.source;\n const runtimeUrl = wasmUrl.replace(/\\.wasm$/i, \".js\");\n\n const pos = wasmUrl.lastIndexOf(\"/\");\n const wasmDirectory = pos > 0 ? wasmUrl.substr(0, pos) : wasmUrl;\n\n function processor(u, code)\n {\n return `\n exports.init = (Module) =>\n {\n ${code}\n return Module;\n };\n `;\n }\n\n shRequire([shRequire.resource(runtimeUrl)], (mod) =>\n {\n let runTime = null;\n\n const Module = {\n mainScriptUrlOrBlob: runtimeUrl,\n canvas: priv.canvas ? priv.canvas.get() : null,\n locateFile: (path, scriptDirectory) =>\n {\n //console.log(\"locate file: \" + path + \", \" + scriptDirectory);\n return wasmDirectory + \"/\" + path;\n },\n onRuntimeInitialized: () =>\n {\n priv.instance = runTime;\n this.instanceChanged();\n this.ready();\n }\n };\n runTime = mod.init(Module);\n }, processor);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Alias for `getArgTC()` but returns statically checked InputTypeComposer. If field have other type then error will be thrown.
getArgITC(argName) { const tc = this.getArgTC(argName); if (!(tc instanceof InputTypeComposer)) { throw new Error(`Resolver(${this.name}).getArgITC('${argName}') must be InputTypeComposer, but recieved ${tc.constructor.name}. Maybe you need to use 'getArgTC()' method which returns any type composer?`); } return tc; }
[ "getFieldArgITC(fieldName, argName) {\n const tc = this.getFieldArgTC(fieldName, argName);\n\n if (!(tc instanceof InputTypeComposer)) {\n throw new Error(`${this.getTypeName()}.getFieldArgITC('${fieldName}', '${argName}') must be InputTypeComposer, but recieved ${tc.constructor.name}. Maybe you need to use 'getFieldArgTC()' method which returns any type composer?`);\n }\n\n return tc;\n }", "getFieldArgITC(fieldName, argName) {\n const tc = this.getFieldArgTC(fieldName, argName);\n\n if (!(tc instanceof InputTypeComposer)) {\n throw new Error(`${this.getTypeName()}.getFieldArgITC('${fieldName}', '${argName}') must be InputTypeComposer, but received ${tc.constructor.name}. Maybe you need to use 'getFieldArgTC()' method which returns any type composer?`);\n }\n\n return tc;\n }", "getFieldOTC(fieldName) {\n const tc = this.getFieldTC(fieldName);\n\n if (!(tc instanceof ObjectTypeComposer)) {\n throw new Error(`${this.getTypeName()}.getFieldOTC('${fieldName}') must be ObjectTypeComposer, but received ${tc.constructor.name}. Maybe you need to use 'getFieldTC()' method which returns any type composer?`);\n }\n\n return tc;\n }", "getFieldOTC(fieldName) {\n const tc = this.getFieldTC(fieldName);\n\n if (!(tc instanceof ObjectTypeComposer)) {\n throw new Error(`${this.getTypeName()}.getFieldOTC('${fieldName}') must be ObjectTypeComposer, but recieved ${tc.constructor.name}. Maybe you need to use 'getFieldTC()' method which returns any type composer?`);\n }\n\n return tc;\n }", "function invalidArgTypeHelper(input) {\n if (input == null) {\n return ` Received ${input}`;\n }\n if (typeof input === 'function' && input.name) {\n return ` Received function ${input.name}`;\n }\n if (typeof input === 'object') {\n if (input.constructor && input.constructor.name) {\n return ` Received an instance of ${input.constructor.name}`;\n }\n return ` Received ${util.inspect(input, { depth: -1 })}`;\n }\n let inspected = util.inspect(input, { colors: false });\n if (inspected.length > 25)\n inspected = `${inspected.slice(0, 25)}...`;\n return ` Received type ${typeof input} (${inspected})`;\n}", "getArgumentType(argName) {\n return this[typesSymbol].get(argName);\n }", "_argsToField(...args) {\n let field = null;\n if (args.length === 1) { // foo(field)\n Must(args[0] instanceof Field);\n field = args[0].clone();\n } else {\n Must(args.length === 2); // foo(name, value)\n field = new Field(...args);\n }\n Must(field);\n return field;\n }", "function AntObject_FieldInput_Timestamp(fieldCls, con, options)\r\n{\r\n\tvar inp = alib.dom.createElement(\"input\");\r\n\tinp.type = \"text\";\r\n\tcon.inptType = \"input\";\r\n\talib.dom.styleSetClass(inp, \"fancy\");\r\n\r\n\tvar options = options || new Object();\r\n\r\n\tif (options.width)\r\n\t\talib.dom.styleSet(inp, \"width\", options.width);\r\n\r\n\tif (fieldCls.value)\r\n\t\tinp.value = fieldCls.value;\r\n\t\r\n\tcon.inpRef = inp;\r\n\tcon.appendChild(inp);\r\n\r\n\tif (options.part == \"time\")\r\n\t{\r\n\t\tvar start_ac = new CAutoCompleteTime(inp);\r\n\t\talib.dom.styleSet(inp, \"width\", \"75px\");\r\n\t}\r\n\telse \r\n\t{\r\n\t\tvar start_ac = new CAutoCompleteCal(inp);\r\n\t\talib.dom.styleSet(inp, \"width\", \"100px\");\r\n\t}\r\n\r\n\tif (options.part)\r\n\t{\r\n\t\tinp.part = options.part;\r\n\t\t\r\n\t\tif (fieldCls.value)\r\n\t\t\tinp.value = fieldCls.obj.getInputPartValue(fieldCls.field.name, fieldCls.value, options.part);\r\n\t}\r\n\r\n\t// Register change event\r\n\tinp.clsRef = this;\r\n\tinp.onchange = function() { \r\n\t\tthis.clsRef.triggerChange();\r\n\t}\r\n\r\n\tthis.fieldCls = fieldCls;\r\n\tthis.inp = inp;\r\n\tthis.options = options || {};\r\n}", "function transformArg(arg) {\n // FIXME: *Enum*Filter are currently empty\n let inputType = arg.inputType.some((a) => a.kind === 'enum')\n ? arg.inputType[0]\n : arg.inputType.find((a) => a.kind === 'object');\n if (!inputType) {\n inputType = arg.inputType[0];\n }\n return {\n name: arg.name,\n inputType: Object.assign(Object.assign({}, inputType), { type: getReturnTypeName(inputType.type) }),\n // FIXME Why?\n isRelationFilter: undefined,\n };\n}", "function transformArg(arg) {\n // FIXME: *Enum*Filter are currently empty\n let inputType = arg.inputType.some(a => a.kind === 'enum')\n ? arg.inputType[0]\n : arg.inputType.find(a => a.kind === 'object');\n if (!inputType) {\n inputType = arg.inputType[0];\n }\n return {\n name: arg.name,\n inputType: Object.assign(Object.assign({}, inputType), { type: getReturnTypeName(inputType.type) }),\n // FIXME Why?\n isRelationFilter: undefined,\n };\n}", "function functionInput(t) {\n if (!isFunctionType(t))\n throw new Error(\"Expected a function type\");\n return t.types[0];\n }", "function _typeCheck () {\n return parg(arguments, {p: 'arg1', t: typeof arguments[0]});\n}", "function getInputBasicType(objInput){\r\n\t\t\r\n\t\tif(!objInput){\r\n\t\t\tconsole.trace();\r\n\t\t\tthrow new Error(\"empty input, can't get basic type\");\r\n\t\t}\r\n\t\t\r\n\t\tvar type = objInput[0].type;\r\n\t\tif(!type)\r\n\t\t\ttype = objInput.prop(\"tagName\").toLowerCase();\r\n\t\t\r\n\t\tswitch(type){\r\n\t\t\tcase \"select-one\":\r\n\t\t\tcase \"select-multiple\":\r\n\t\t\t\ttype = \"select\";\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn(type);\r\n\t}", "function getEffectiveArgumentType(node, argIndex, arg) {\n // Decorators provide special arguments, a tagged template expression provides\n // a special first argument, and string literals get string literal types\n // unless we're reporting errors\n if (node.kind === 143 /* Decorator */) {\n return getEffectiveDecoratorArgumentType(node, argIndex);\n }\n else if (argIndex === 0 && node.kind === 176 /* TaggedTemplateExpression */) {\n return getGlobalTemplateStringsArrayType();\n }\n // This is not a synthetic argument, so we return 'undefined'\n // to signal that the caller needs to check the argument.\n return undefined;\n }", "function tcbCallTypeCtor(dir, tcb, inputs) {\n const typeCtor = tcb.env.typeCtorFor(dir);\n // Construct an array of `ts.PropertyAssignment`s for each of the directive's inputs.\n const members = inputs.map(input => {\n const propertyName = ts.createStringLiteral(input.field);\n if (input.type === 'binding') {\n // For bound inputs, the property is assigned the binding expression.\n let expr = input.expression;\n if (!tcb.env.config.checkTypeOfInputBindings) {\n // If checking the type of bindings is disabled, cast the resulting expression to 'any'\n // before the assignment.\n expr = tsCastToAny(expr);\n }\n else if (!tcb.env.config.strictNullInputBindings) {\n // If strict null checks are disabled, erase `null` and `undefined` from the type by\n // wrapping the expression in a non-null assertion.\n expr = ts.createNonNullExpression(expr);\n }\n const assignment = ts.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));\n addParseSpanInfo(assignment, input.sourceSpan);\n return assignment;\n }\n else {\n // A type constructor is required to be called with all input properties, so any unset\n // inputs are simply assigned a value of type `any` to ignore them.\n return ts.createPropertyAssignment(propertyName, NULL_AS_ANY);\n }\n });\n // Call the `ngTypeCtor` method on the directive class, with an object literal argument created\n // from the matched inputs.\n return ts.createCall(\n /* expression */ typeCtor, \n /* typeArguments */ undefined, \n /* argumentsArray */ [ts.createObjectLiteral(members)]);\n }", "function toReaderCall(field) {\n switch (field.type) {\n case FieldDescriptorProto.Type.TYPE_DOUBLE:\n return 'double';\n case FieldDescriptorProto.Type.TYPE_FLOAT:\n return 'float';\n case FieldDescriptorProto.Type.TYPE_INT32:\n case FieldDescriptorProto.Type.TYPE_ENUM:\n return 'int32';\n case FieldDescriptorProto.Type.TYPE_UINT32:\n return 'uint32';\n case FieldDescriptorProto.Type.TYPE_SINT32:\n return 'sint32';\n case FieldDescriptorProto.Type.TYPE_FIXED32:\n return 'fixed32';\n case FieldDescriptorProto.Type.TYPE_SFIXED32:\n return 'sfixed32';\n case FieldDescriptorProto.Type.TYPE_INT64:\n return 'int64';\n case FieldDescriptorProto.Type.TYPE_UINT64:\n return 'uint64';\n case FieldDescriptorProto.Type.TYPE_SINT64:\n return 'sint64';\n case FieldDescriptorProto.Type.TYPE_FIXED64:\n return 'fixed64';\n case FieldDescriptorProto.Type.TYPE_SFIXED64:\n return 'sfixed64';\n case FieldDescriptorProto.Type.TYPE_BOOL:\n return 'bool';\n case FieldDescriptorProto.Type.TYPE_STRING:\n return 'string';\n case FieldDescriptorProto.Type.TYPE_BYTES:\n return 'bytes';\n default:\n throw new Error(`Not a primitive field ${field}`);\n }\n}", "getSqType(fieldObj, attr) {\r\n const attrValue = fieldObj[attr];\r\n if (!attrValue.toLowerCase) {\r\n console.log(\"attrValue\", attr, attrValue);\r\n return attrValue;\r\n }\r\n const type = attrValue.toLowerCase();\r\n const length = type.match(/\\(\\d+\\)/);\r\n const precision = type.match(/\\(\\d+,\\d+\\)/);\r\n let val = null;\r\n let typematch = null;\r\n if (type === \"boolean\" || type === \"bit(1)\" || type === \"bit\" || type === \"tinyint(1)\") {\r\n val = 'DataTypes.BOOLEAN';\r\n // postgres range types\r\n }\r\n else if (type === \"numrange\") {\r\n val = 'DataTypes.RANGE(DataTypes.DECIMAL)';\r\n }\r\n else if (type === \"int4range\") {\r\n val = 'DataTypes.RANGE(DataTypes.INTEGER)';\r\n }\r\n else if (type === \"int8range\") {\r\n val = 'DataTypes.RANGE(DataTypes.BIGINT)';\r\n }\r\n else if (type === \"daterange\") {\r\n val = 'DataTypes.RANGE(DataTypes.DATEONLY)';\r\n }\r\n else if (type === \"tsrange\" || type === \"tstzrange\") {\r\n val = 'DataTypes.RANGE(DataTypes.DATE)';\r\n }\r\n else if (typematch = type.match(/^(bigint|smallint|mediumint|tinyint|int)/)) {\r\n // integer subtypes\r\n val = 'DataTypes.' + (typematch[0] === 'int' ? 'INTEGER' : typematch[0].toUpperCase());\r\n if (/unsigned/i.test(type)) {\r\n val += '.UNSIGNED';\r\n }\r\n if (/zerofill/i.test(type)) {\r\n val += '.ZEROFILL';\r\n }\r\n }\r\n else if (type === 'nvarchar(max)' || type === 'varchar(max)') {\r\n val = 'DataTypes.TEXT';\r\n }\r\n else if (type.match(/n?varchar|string|varying/)) {\r\n val = 'DataTypes.STRING' + (!lodash_1.default.isNull(length) ? length : '');\r\n }\r\n else if (type.match(/^n?char/)) {\r\n val = 'DataTypes.CHAR' + (!lodash_1.default.isNull(length) ? length : '');\r\n }\r\n else if (type.match(/^real/)) {\r\n val = 'DataTypes.REAL';\r\n }\r\n else if (type.match(/text$/)) {\r\n val = 'DataTypes.TEXT' + (!lodash_1.default.isNull(length) ? length : '');\r\n }\r\n else if (type === \"date\") {\r\n val = 'DataTypes.DATEONLY';\r\n }\r\n else if (type.match(/^(date|timestamp)/)) {\r\n val = 'DataTypes.DATE' + (!lodash_1.default.isNull(length) ? length : '');\r\n }\r\n else if (type.match(/^(time)/)) {\r\n val = 'DataTypes.TIME';\r\n }\r\n else if (type.match(/^(float|float4)/)) {\r\n val = 'DataTypes.FLOAT' + (!lodash_1.default.isNull(precision) ? precision : '');\r\n }\r\n else if (type.match(/^(decimal|numeric)/)) {\r\n val = 'DataTypes.DECIMAL' + (!lodash_1.default.isNull(precision) ? precision : '');\r\n }\r\n else if (type.match(/^money/)) {\r\n val = 'DataTypes.DECIMAL(19,4)';\r\n }\r\n else if (type.match(/^smallmoney/)) {\r\n val = 'DataTypes.DECIMAL(10,4)';\r\n }\r\n else if (type.match(/^(float8|double)/)) {\r\n val = 'DataTypes.DOUBLE' + (!lodash_1.default.isNull(precision) ? precision : '');\r\n }\r\n else if (type.match(/^uuid|uniqueidentifier/)) {\r\n val = 'DataTypes.UUID';\r\n }\r\n else if (type.match(/^jsonb/)) {\r\n val = 'DataTypes.JSONB';\r\n }\r\n else if (type.match(/^json/)) {\r\n val = 'DataTypes.JSON';\r\n }\r\n else if (type.match(/^geometry/)) {\r\n const gtype = fieldObj.elementType ? `(${fieldObj.elementType})` : '';\r\n val = `DataTypes.GEOMETRY${gtype}`;\r\n }\r\n else if (type.match(/^geography/)) {\r\n const gtype = fieldObj.elementType ? `(${fieldObj.elementType})` : '';\r\n val = `DataTypes.GEOGRAPHY${gtype}`;\r\n }\r\n else if (type.match(/^array/)) {\r\n const eltype = this.getSqType(fieldObj, \"elementType\");\r\n val = `DataTypes.ARRAY(${eltype})`;\r\n }\r\n else if (type.match(/(binary|image|blob|bytea)/)) {\r\n val = 'DataTypes.BLOB';\r\n }\r\n else if (type.match(/^hstore/)) {\r\n val = 'DataTypes.HSTORE';\r\n }\r\n else if (type.match(/^inet/)) {\r\n val = 'DataTypes.INET';\r\n }\r\n else if (type.match(/^cidr/)) {\r\n val = 'DataTypes.CIDR';\r\n }\r\n else if (type.match(/^oid/)) {\r\n val = 'DataTypes.INTEGER';\r\n }\r\n else if (type.match(/^macaddr/)) {\r\n val = 'DataTypes.MACADDR';\r\n }\r\n else if (type.match(/^enum(\\(.*\\))?$/)) {\r\n const enumValues = this.getEnumValues(fieldObj);\r\n val = `DataTypes.ENUM(${enumValues})`;\r\n }\r\n return val;\r\n }", "function getTypeFn(input) {\n /*jshint maxcomplexity:18 */\n // #1\n if (input && input._isTypeFn) { return input; }\n // #2\n switch (input) {\n case null:\n return proto['null'];\n case void 0:\n return proto['undefined'];\n case Object:\n return proto['object'];\n case Array:\n return proto['array'];\n case String:\n return proto['string'];\n case Number:\n return proto['number'];\n case Boolean:\n return proto['bool'];\n case Function:\n return proto['function'];\n }\n // #3\n if (typeof input === 'string' && input.length) {\n if (proto[input.toLowerCase()]) {\n return proto[input.toLowerCase()];\n }\n if (input.indexOf('|') === -1 && input.indexOf('?') === -1) {\n throw new Error(input + \" type is not a valid type\");\n }\n var isOptional = input.indexOf('?') > -1;\n var types = input.replace('?', '').split('|');\n var type = types.length > 1 ? proto.oneOfType(types.map(getTypeFn)) : getTypeFn(types[0]);\n return isOptional ? proto.maybe(type) : type;\n }\n\n // #otherwise, shortcut for Array/Object\n if (Array.isArray(input)) {\n return proto.arrayOf(input.length ? input[0] : proto.anything);\n }\n if (typeof input === 'object') {\n return proto.objectOf(input);\n }\n\n // #finally\n throw new Error(input + \" is not a valid type annotation.\");\n}", "function extractDirectiveTypeCheckMeta(node, inputs, reflector) {\n const members = reflector.getMembersOfClass(node);\n const staticMembers = members.filter(member => member.isStatic);\n const ngTemplateGuards = staticMembers.map(extractTemplateGuard)\n .filter((guard) => guard !== null);\n const hasNgTemplateContextGuard = staticMembers.some(member => member.kind === ClassMemberKind.Method && member.name === 'ngTemplateContextGuard');\n const coercedInputFields = new Set(staticMembers.map(extractCoercedInput)\n .filter((inputName) => inputName !== null));\n const restrictedInputFields = new Set();\n const stringLiteralInputFields = new Set();\n const undeclaredInputFields = new Set();\n for (const classPropertyName of inputs.classPropertyNames) {\n const field = members.find(member => member.name === classPropertyName);\n if (field === undefined || field.node === null) {\n undeclaredInputFields.add(classPropertyName);\n continue;\n }\n if (isRestricted(field.node)) {\n restrictedInputFields.add(classPropertyName);\n }\n if (field.nameNode !== null && ts.isStringLiteral(field.nameNode)) {\n stringLiteralInputFields.add(classPropertyName);\n }\n }\n const arity = reflector.getGenericArityOfClass(node);\n return {\n hasNgTemplateContextGuard,\n ngTemplateGuards,\n coercedInputFields,\n restrictedInputFields,\n stringLiteralInputFields,\n undeclaredInputFields,\n isGeneric: arity !== null && arity > 0,\n };\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the actionsclass for a specific action
function getActionClass(action) { if(actions.indexOf(action) !== -1) { return 'action'; } if(movements.indexOf(action) !== -1 ) { return 'movement'; } return 'invalid'; }
[ "function ActionType() { }", "function getAction()\n{\n\treturn this.action;\n}", "function getAction() {\n\t\treturn new Action();\n\t}", "function actionCreator() {return action}", "function actionCreator(){\n return action;\n }", "function actionCSSClass(action) {\n \tvar htmlClass = '';\n \n \t// Set done if it's been done\n \tvar done_tag = action[\"end tag\"];\n \t\n \tif ($.inArray(done_tag, c4c.user_tags) > -1 ) {\n\t\t\thtmlClass += ' done';\n\t\t}\n \t\n \t// Set the class for the category\n \thtmlClass += ' act_cat_' + makeSafeForCSS(action[\"Category\"]);\n \t\n \treturn htmlClass;\n }", "function actionCreator() {\n\treturn action;\n}", "action(){\n if (!this.memory.actionMemory) this.memory.actionMemory = {}; // Set up an actionMemory\n this.memory.actionMemory.actionName = this.state();\n this.memory.actionMemory.tId = this.taskId();\n if (this.state() in ActionRegistry) {\n return new ActionRegistry[this.state()](this.memory.actionMemory);\n } else {\n Log('Invalid state does not map to an action. ' + this.string());\n }\n }", "function actionCreator() {\n return action;\n}", "function actionCreator() {\n return action;\n}", "function actionName(action) {\n\t\tfor(var k in Action) {\n\t\t\tif(Action[k] == action) return k;\n\t\t}\n\n\t\treturn 'Halt';\n\t}", "function actionCreator() {\n return action\n}", "function actionCreator() {\n return action\n}", "function actionCreator(action) {\n return action;\n}", "callbackFor(action) {\n switch (action) {\n case 'check':\n return this.actions.check.callback;\n case 'format':\n return this.actions.format.callback;\n default:\n throw Error('Unknown action type');\n }\n }", "findActionByName (name) {\n return this.actions[name]\n }", "parseAction(action) {\n const registeredTypes = Object.keys(this.actionMap);\n \n for (const actionType of registeredTypes) {\n // If the action's type matches a registered action type, call the\n // associated callback\n if (action.type === actionType) {\n this.actionMap[actionType](action);\n break;\n }\n }\n }", "_resolveControllerAction (action) {\n let [controllerName, actionName] = action.split ('@');\n\n if (!controllerName)\n throw new Error (`The action must include a controller name [${action}]`);\n\n if (!actionName)\n actionName = SINGLE_ACTION_CONTROLLER_METHOD;\n\n // Locate the controller object in our loaded controllers. If the controller\n // does not exist, then throw an exception.\n let controller = get (this.app.resources.controllers, controllerName);\n\n if (!controller)\n throw new Error (`${controllerName} not found`);\n\n // Locate the action method on the loaded controller. If the method does\n // not exist, then throw an exception.\n let method = controller[actionName];\n\n if (!method)\n throw new Error (`${controllerName} does not define method ${actionName}`);\n\n return new MethodCall ({ obj: controller, method });\n }", "static get __resourceType() {\n\t\treturn 'TestScriptTestAction';\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
generates and array of notes that fit the height and pitch of the loopboard
function generateNotes(eigth, rows) { eigth = Number(eigth); let dur = ['c', 'd', 'e', 'f', 'g', 'a', 'b']; let notes = []; let listpos = 0; for (let i = 0; i<rows; i++) { if (i > 0 && i%7 === 0) { eigth += 1; listpos += 7; } notes.push(dur[i-listpos]+eigth.toString()); } return notes; }
[ "function createNoteList(numNotes) {\n\t\t// generate random starting heights for the notes, ensuring no overlap\n\t\tvar startingHeights = [];\n\t\t// build a list of possible starting heights\n\t\tvar maxHeight = 250 * numNotes;\n\t\tvar heightList = [];\n\t\tfor (i = 200; i < maxHeight; i += 200) {\n\t\t\theightList.push(-i);\n\t\t}\n\t\t// randomly select a subset of the starting heights\n\t\tvar startingHeights = [];\n\t\tfor (i = 0; i < numNotes; i++) {\n\t\t\tvar randIdx = Math.floor(Math.random()*heightList.length);\n\t\t\tstartingHeights.push(heightList[randIdx]);\n\t\t\t// remove this height from the remaining possibilites\n\t\t\theightList.splice(randIdx, 1);\n\t\t}\n\t\tconsole.log(startingHeights);\n\t\t// midpoint of each column\n\t\tvar trackWidths = [w/6, w/2, 5*w/6];\n\t\t// assign each starting height to a note and push onto the noteList\n\t\tvar noteList = [];\n\t\tfor (i = 0; i < numNotes; i++) {\n\t\t\tvar noteWidth = trackWidths[i % 3];\n\t\t\tvar noteHeight = startingHeights[i];\n\t\t\tvar note = new Note(noteWidth, noteHeight);\n\t\t\tnoteList.push(note);\n\t\t}\n\t\treturn noteList;\n\t}", "function createNotesArray() {\n var prefix;\n var curNote = \"C\";\n var keyNumber;\n // set piano start key number and key prefix (keyNumbers -> https://en.wikipedia.org/wiki/Piano_key_frequencies)\n switch (thisField.nKeys_) {\n case PianoSize.small:\n keyNumber = 40;\n // no prefix for a single octave\n prefix = \"\";\n break;\n case PianoSize.medium:\n keyNumber = 28;\n prefix = \"Low\";\n break;\n case PianoSize.large:\n keyNumber = 16;\n prefix = \"Deep\";\n break;\n }\n for (var i = 0; i < thisField.nKeys_; i++) {\n // set name of the i note\n thisField.noteName_.push(Util.rlf(prefix + \" \" + curNote));\n // get frequency using math formula -> https://en.wikipedia.org/wiki/Piano_key_frequencies\n var curFreq = Math.pow(2, (keyNumber - 49) / 12) * 440;\n // set frequency of the i note\n thisField.noteFreq_.push(curFreq);\n // get name of the next note\n curNote = nextNote(curNote);\n if ((i + 1) % 12 == 0)\n prefix = nextNotePrefix(prefix);\n // increment keyNumber\n keyNumber++;\n }\n // Do not remove this comment.\n // lf(\"C\")\n // lf(\"C#\")\n // lf(\"D\")\n // lf(\"D#\")\n // lf(\"E\")\n // lf(\"F\")\n // lf(\"F#\")\n // lf(\"G\")\n // lf(\"G#\")\n // lf(\"A\")\n // lf(\"A#\")\n // lf(\"B\")\n // lf(\"Deep C\")\n // lf(\"Deep C#\")\n // lf(\"Deep D\")\n // lf(\"Deep D#\")\n // lf(\"Deep E\")\n // lf(\"Deep F\")\n // lf(\"Deep F#\")\n // lf(\"Deep G\")\n // lf(\"Deep G#\")\n // lf(\"Deep A\")\n // lf(\"Deep A#\")\n // lf(\"Deep B\")\n // lf(\"Low C\")\n // lf(\"Low C#\")\n // lf(\"Low D\")\n // lf(\"Low D#\")\n // lf(\"Low E\")\n // lf(\"Low F\")\n // lf(\"Low F#\")\n // lf(\"Low G\")\n // lf(\"Low G#\")\n // lf(\"Low A\")\n // lf(\"Low A#\")\n // lf(\"Low B\")\n // lf(\"Middle C\")\n // lf(\"Middle C#\")\n // lf(\"Middle D\")\n // lf(\"Middle D#\")\n // lf(\"Middle E\")\n // lf(\"Middle F\")\n // lf(\"Middle F#\")\n // lf(\"Middle G\")\n // lf(\"Middle G#\")\n // lf(\"Middle A\")\n // lf(\"Middle A#\")\n // lf(\"Middle B\")\n // lf(\"Tenor C\")\n // lf(\"Tenor C#\")\n // lf(\"Tenor D\")\n // lf(\"Tenor D#\")\n // lf(\"Tenor E\")\n // lf(\"Tenor F\")\n // lf(\"Tenor F#\")\n // lf(\"Tenor G\")\n // lf(\"Tenor G#\")\n // lf(\"Tenor A\")\n // lf(\"Tenor A#\")\n // lf(\"Tenor B\")\n // lf(\"High C\")\n // lf(\"High C#\")\n // lf(\"High D\")\n // lf(\"High D#\")\n // lf(\"High E\")\n // lf(\"High F\")\n // lf(\"High F#\")\n // lf(\"High G\")\n // lf(\"High G#\")\n // lf(\"High A\")\n // lf(\"High A#\")\n // lf(\"High B\")\n }", "function withMidiInfo(notes) {\n const result = [];\n const sortedInput = notes.sort((a, b) => a.timestamp - b.timestamp);\n\n let prevTime = 0;\n for(let note of sortedInput) {\n if(result.length && note.timestamp === prevTime) {\n result[result.length - 1].pitch.push(note.pitch[0]);\n }\n else {\n if(result.length) {\n prevTime += 0.25;\n }\n result.push({\n ...note,\n duration: 16, // TODO: variable\n wait: `T${(note.timestamp - prevTime) * 128}`\n });\n }\n prevTime = note.timestamp;\n }\n console.table(result)\n return result;\n}", "function rhythmPattern( duration, speed, loudness, pauses,dictionInd){ \n\n this.loudnessArr = function (){\n\tvar s = 1, w=0.5;\n\tvar temp = generateBaseValue(duration,w);\n\tvar arr = temp.map(function(s,index){\n\t if(arrElementCmp(index,loudness) == 1){\n\t\treturn s;\n\t }\n\t if(arrElementCmp(index,pauses) == 1){\n\t\treturn 0;\n\t }\n\t else{\n\t\treturn w;\n\t }\n\t});\n\tarr = arr.map(function(s,index){\n\t if(arrElementCmp(index,speed) == 1 && arrElementCmp(index,pauses) == 0){\n\t\treturn [w,w];\n\t }\t \n\t else return [s];\n\t});\t\n\n\treturn arr;\n };\n\t\n this.speedArr = function(){\n\tvar temp = generateBaseValue(duration,2);\n\tvar arr = temp.map(function(s,index){\n\t if(arrElementCmp(index,speed) == 1 && arrElementCmp(index,pauses) == 0){\n\t\treturn [4,4];\n\t }\n\t else{\n\t\treturn [2];\n\t }\n\t});\n\treturn arr;\n };\n\n this.diction = function strokeSequence(){\n\n\tvar arr;\n\tif(dictionInd == -1){ //manual reference diction\n\t arr = document.getElementById(\"refDiction\").split(\",\");\n\t}\n\telse if(dictionInd == -2){ // default automatic reference diction\n\t arr = generateBaseValue(duration,\"ta\");\n\t}\n\telse{\n\t //three common solkattu used for accompaniment\n\t var Solkattu = [[\"tum\",\"ta\",\"tum\",\"ta\",\"ta\",\"tum\",\"tum\",\"ta\"],[\"ta\",\"ta\",\"tum\",\"tum\",\"ta\",\"tum\",\"tum\",\"ta\"],[\"ta\",\"tum\",\"tum\",\"ta\",\"ta\",\"tum\",\"tum\",\"ta\"]];\n\t \n\t var temp = Solkattu[dictionInd];\n\t \n\t var i = 0;\n\t var str = temp.join(\",\"), temp2 = str;\n\t while(i < (duration/8)-1){ // n-1 times\n\t\ttemp2 = temp2 + \",\" + str ;\n\t\ti++;\n\t }\n\t arr = temp2.split(\",\");\n\n\t arr = arr.map(function(s,index){\n\t\tif(arrElementCmp(index,speed)== 1 && arrElementCmp(index,pauses) == 0 ){\n\t\t return \"ta te\";\n\t\t}\n\t\telse if(arrElementCmp(index,pauses) == 1){\n\t\t return \".\";\n\t\t}\n\t\telse return s;\n\t });\n\n\t var sol = [arr, arr.map(function(s){\n\t\tif(s == \"tum\"){\n\t\t return \"tumki\";\n\t\t}\n\t\telse return s;\n\t })];\n\t \n\t arr = sol[wholeRand(0,1)];\t \n\t}\n\tarr = arr.map(function(s,index){\n\t return s.split(\" \");\n\t});\n\treturn arr;\t\n }\n\n this.accent = function(loudnessArr,speedArr,diction){\n\n\tvar lArr = loudnessArr();\n\tvar sArr = speedArr();\n\tvar dict = diction();\n\tvar s = 1, w=0.5; \n\tvar weightedArr = lArr.map(function(s,index){\n\t return s[0];\n\t});\n\n\tweightedArr = dict.map(function(s,index){\n\n\t if(s.length > 1){\n\t\ts = s.join(\"\");\n\t }\n\t var stroke = 0;\n\t if( s!= \".\"){stroke = getEle(s);}\n\t var weight = stroke + weightedArr[index];\n\t if(index == duration - 1){\n\t\tweight -= 0.1;\n\t }\n\t return weight;\n\t \n\t \n\t});\n\n\tvar fAccent = weightedArr;\n\t\n\tvar w1 = parseFloat(document.getElementById(\"backWeight\").value), w2 = parseFloat(document.getElementById(\"frontWeight\").value);\n\n\tvar contrastedArr = fAccent.map(function(s,index,arr){\n\t return 1*s - w1*arr[modnum(duration,index,1)] - w2*arr[(index+1)%duration];\n\t}); \n\t//document.getElementById(str + \"Diction\").split(\",\");generateBaseValue(duration,\"ta\");\n\tvar accentStruct = contrastedArr.map(function(s,index,arr){\n\t var max = maxi(s,arr[modnum(duration,index,1)],arr[(index+1)%duration]);\n\t if( max != -1 && max == s){\n\t\treturn 1;\n\t }\n\t else{\n\t\treturn 0;\n\t }\n\t});\n\n\treturn [accentStruct,weightedArr];\n };\n \n var acc = accent(loudnessArr,speedArr,diction);\n var play = [multiTo1DArray(loudnessArr()),multiTo1DArray(diction()),multiTo1DArray(speedArr())]\n return [acc,play];\n //this.accentStr = accent[0];\n //this.weightedArr = accent[1];\n \n}", "addNotes(num_notes){\n if(isNaN(num_notes)){\n num_notes = 4;\n }\n var notes = [];\n while(num_notes > notes.length){\n notes.push(this.getRandomNote());\n }\n \n var voice = new this.VF.Voice({num_beats: num_notes, beat_value: 4});\n voice.addTickables(notes.map(note => note.StaveNote));\n\n var formatter = new this.VF.Formatter().joinVoices([voice]).format([voice], this.width);\n voice.draw(this.context, this.stave);\n\n for(var i = 0, l = notes.length; i < l; i++){\n this.drawn_notes.push(notes[i]);\n }\n return notes;\n }", "function genNotes() {\n\t\tvar randomNotes = [];\n\t\tvar notes = ['blue', 'green', 'yellow', 'red'];\n\t\tvar randomNum = random(0, 3, 500); //The world record is 14 games of 31 moves, so I'll just set this to 500 so no one can win\n\n\t\tfor (var i = 0; i < randomNum.length; i++) {\n\t\t\trandomNotes.push(notes[randomNum[i]]);\n\t\t}\n\t\treturn randomNotes;\n\t}", "getNotes(scale) {\n let arr = [];\n for (let i = 0; i < 6; i++) {\n let int_string =\n scale.split(\" \")[0] +\n i +\n \" \" +\n scale\n .split(\" \")\n .slice(1, scale.split(\" \").length)\n .join(\" \");\n let notes = tonal.Scale.scale(int_string).notes;\n arr.push(notes);\n }\n // return notes\n return arr.flat();\n }", "function newNote() {\n return [floor(random(0,37)), floor(random(0,3))]; // [kind, speed]\n}", "static getDefaultNotes(params) {\n let beamBeats = 0;\n let beats = 0;\n let i = 0;\n let ticks = {\n numerator: 4096,\n denominator: 1,\n remainder: 0\n };\n if (params === null) {\n params = {};\n }\n params.timeSignature = params.timeSignature ? params.timeSignature : '4/4';\n params.clef = params.clef ? params.clef : 'treble';\n const meterNumbers = params.timeSignature.split('/').map(number => parseInt(number, 10));\n beamBeats = ticks.numerator;\n beats = meterNumbers[0];\n if (meterNumbers[1] === 8) {\n ticks = {\n numerator: 2048,\n denominator: 1,\n remainder: 0\n };\n if (meterNumbers[0] % 3 === 0) {\n ticks.numerator = 2048 * 3;\n beats = meterNumbers[0] / 3;\n }\n beamBeats = 2048 * 3;\n }\n const pitches =\n JSON.parse(JSON.stringify(SmoMeasure.defaultPitchForClef[params.clef]));\n const rv = [];\n\n // Treat 2/2 like 4/4 time.\n if (meterNumbers[1] === 2) {\n beats = beats * 2;\n }\n\n for (i = 0; i < beats; ++i) {\n const note = new SmoNote({\n clef: params.clef,\n pitches: [pitches],\n ticks,\n timeSignature: params.timeSignature,\n beamBeats,\n noteType: SmoMeasure.emptyMeasureNoteType\n });\n rv.push(note);\n }\n return rv;\n }", "function buildMelodyNotes(melody) {\n var notes = [];\n\n for (var j = 0; j < melody.length; j++){\n // skip empty notes\n if (melody[j] != globalSettings.EMPTY_NOTE){\n note = pitchWrapper(melody[j][\"note\"]);\n dur = melody[j][\"duration\"];\n\n if (note.includes('#') || note.includes('b')) {\n // have to add accidental to show the sharp/flat on the display\n var mod = note.substring(1, 2);\n notes.push(newStaveNote([note], durationMap(dur, false), globalSettings.clefType.TREBLE)\n .addAccidental(0, new Vex.Flow.Accidental(mod)));\n } else {\n notes.push(newStaveNote([note], durationMap(dur, false), globalSettings.clefType.TREBLE));\n }\n }\n }\n\n return notes;\n }", "function pitchListsOut() {\n // a list of all justPitches (String)\n var justList = heldNotes.map(function(N) {\n return (N.offset * intensity) + N.equalPitch;\n });\n \n // a list of all equalPitches (String)\n var equalList = heldNotes.map(function(N) {\n return N.equalPitch;\n });\n \n outlet(0, \"justPitches\", justList);\n outlet(0, \"equalPitches\", equalList);\n }", "function Note(pitch, rhythm)\n{\n\tthis.pitch = Number(pitch);\n\tthis.rhythm = String(rhythm);\n\tthis.freqBase = 0;\n\tthis.prbArray = [];\n\tthis.pitch_prbArray = [];\n\tthis.rhythm_prbArray = [];\n}", "buildNoteHeads() {\n this.note_heads = [];\n const stemDirection = this.getStemDirection();\n const keys = this.getKeys();\n\n let lastLine = null;\n let lineDiff = null;\n let displaced = false;\n\n // Draw notes from bottom to top.\n\n // For down-stem notes, we draw from top to bottom.\n let start;\n let end;\n let step;\n if (stemDirection === Stem.UP) {\n start = 0;\n end = keys.length;\n step = 1;\n } else if (stemDirection === Stem.DOWN) {\n start = keys.length - 1;\n end = -1;\n step = -1;\n }\n\n for (let i = start; i !== end; i += step) {\n const noteProps = this.keyProps[i];\n const line = noteProps.line;\n\n // Keep track of last line with a note head, so that consecutive heads\n // are correctly displaced.\n if (lastLine === null) {\n lastLine = line;\n } else {\n lineDiff = Math.abs(lastLine - line);\n if (lineDiff === 0 || lineDiff === 0.5) {\n displaced = !displaced;\n } else {\n displaced = false;\n this.use_default_head_x = true;\n }\n }\n lastLine = line;\n\n const notehead = new NoteHead({\n duration: this.duration,\n note_type: this.noteType,\n displaced,\n stem_direction: stemDirection,\n custom_glyph_code: noteProps.code,\n glyph_font_scale: this.render_options.glyph_font_scale,\n x_shift: noteProps.shift_right,\n stem_up_x_offset: noteProps.stem_up_x_offset,\n stem_down_x_offset: noteProps.stem_down_x_offset,\n // VexFlowPatch: add option to shift notehead up or down (instead of stem in the variables above)\n stem_up_y_shift: noteProps.stem_up_y_shift,\n stem_down_y_shift: noteProps.stem_down_y_shift,\n line: noteProps.line,\n });\n\n this.note_heads[i] = notehead;\n }\n }", "function getChordNotes(p_noteIndex){\n var a_chordNotes = new Array(4); // the notes of a chord\n var v_ctr;\n var v_idx =0;\n\n console.log(\"460 [\" + a_scaleNotes[p_noteIndex] + \"]\");\n for (v_ctr=0; v_ctr<4; v_ctr++) {\n a_chordNotes[v_ctr] = a_scaleNotes[(p_noteIndex + v_idx) % 7];\n v_idx = v_idx + 2;\n }\n\n console.log(\"470 [\" + a_chordNotes.toString() + \"]\");\n return a_chordNotes;\n}", "function getNotes(root, intervals, mode) { //module returns valid notes\n\t//initialise the arrays (intervals array passed as param)\n\tvar chromaticScale = [\t'e','f','f#','g','g#','a','a#','b','c','c#','d','d#', \n\t\t\t\t\t\t\t'e','f','f#','g','g#','a','a#','b','c','c#','d','d#', \n\t\t\t\t\t\t\t'e','f','f#','g','g#','a','a#','b','c','c#','d','d#',\n\t\t\t\t\t\t\t'e','f','f#','g','g#','a','a#','b','c','c#','d','d#', \n\t\t\t\t\t\t\t'e','f','f#','g','g#','a','a#','b','c','c#','d','d#' \n\t];\n\tvar neckSize = 22;\n\tvar notes = []; // main notes array \n\tvar iI = 0; // index pointer for the Intervals array\n\tvar iC = whereOnChromatic(root); // index pointer for the Chromatic array\n\tnotes.push(chromaticScale[iC])\n\t// loop over the INTERVALS array\n\t// add to cumulative jump (integer) from start index\n\tfor (var j=0; j<neckSize; j++) {\n\t\tiC += parseInt(intervals[iI]); // add interval amount to the iC\n\t\tnotes.push(chromaticScale[iC]);\n\t\tiI++; // move iI to next slot\n\t\t//circulate back to start of INTERVAL if pointer is at the end\n\t\tif (iI > (intervals.length-1)){ // iI beyond scope of array \n\t\t\tiI = 0;\n\t\t}\n\t}\n\tif(mode){\n\t\tmodes.push(notes);\n\t}\n\t// Return the notes array\n\treturn notes;\n}", "generateVoicings() {\n this.#chords.forEach((chord, i) => {\n if(i<this.#chords.length-2){\n if (chord.getGrade() == 2\n && this.#chords[i+1].getGrade() == 5\n && this.#chords[i+2].getGrade() == 1 ){\n let root = this.#chords[i].getRoot().getMidiNote();\n let pitches = [root + 3, root + 7, root + 10, root + 14];\n\n //Open position\n if (pitches[3] < 77) {\n this.#chords[i].changeNotes(pitches);\n pitches[2] = pitches[2] - 1\n this.#chords[i+1].changeNotes(pitches);\n pitches[0] = pitches[0] - 1\n pitches[1] = pitches[1] - 2\n pitches[3] = pitches[3] - 2\n this.#chords[i+2].changeNotes(pitches);\n }\n\n //Close position\n else {\n pitches[2] = pitches[2] - 12\n pitches[3] = pitches[3] - 12\n this.#chords[i].changeNotes(pitches);\n pitches[0] = pitches[0] - 1\n this.#chords[i+1].changeNotes(pitches);\n pitches[1] = pitches[1] - 2\n pitches[2] = pitches[2] - 1\n pitches[3] = pitches[3] - 2\n this.#chords[i+2].changeNotes(pitches);\n }\n i = i + 2\n }\n }\n })\n }", "noteList() {\n\t\tconst rootIndex = this.notes[0].index\n\t\t// const rootAccidental = this.notes[0].accidental\n\t\tconst tones = Scale.names[this.name].tones\n\t\tconst intervals = Scale.names[this.name].intervals\n\n\t\tlet previousNote = this.notes[0]\n\t\tlet natural = Note.naturals.indexOf(this.notes[0].name[0])\n\t\tlet octave = 4\n\n\t\tfor (let i = 0, j = tones.length; i < j; i++) {\n\t\t\tconst newNoteIndex = (rootIndex + tones[i]) % 12\n\t\t\tlet newNote = new Note(newNoteIndex, octave)\n\n\t\t\t// Skipping a note when jumping by a third.\n\t\t\tif (intervals[i] === 3) {\n\t\t\t\tnatural++\n\t\t\t}\n\n\t\t\tconst expectedNatural = Note.naturals[++natural % 7]\n\n\t\t\t// The expected natural isn't right, we need to switch it.\n\t\t\tif (expectedNatural !== newNote.name[0]) {\n\t\t\t\tconst newName = Note.names[newNote.index].filter(\n\t\t\t\t\t(name) => name[0] === expectedNatural\n\t\t\t\t)[0]\n\t\t\t\tif (newName) newNote = new Note(newName, octave)\n\t\t\t}\n\n\t\t\t// Check that the midi notes are only increasing\n\t\t\tif (newNote.midi() < previousNote.midi()) {\n\t\t\t\t// Switch octave if we ever get a smaller midi note.\n\t\t\t\tnewNote.octave = ++octave\n\t\t\t}\n\n\t\t\tpreviousNote = newNote\n\t\t\tthis.notes.push(newNote)\n\t\t}\n\t}", "createNotes() {\n /* this.data is segmented into 6 different strings, with high E on top and low E on bottom */\n for (let stringI = 0; stringI < 6; stringI++) {\n let stringData = this.data[stringI]\n\n this.notes[stringI] = []\n\n this.createNotesFromString(stringData, stringI)\n }\n }", "static generatePitchQuestions(n, samples)\n {\n let questions = [];\n\n for (let i = 0; i < n; i ++)\n {\n // set the notes (samples) based on i\n // todo maybe make this an exponentional system?\n let sampleArrayValue1 = int(int(random(i+1)) * 2.333);\n let interVal = int((n - i) * 2.333);\n let sampleArrayValue2 = sampleArrayValue1 + interVal;\n\n // also create list with sample intervals for showing jnd\n pitchIntervals.push(interVal);\n\n // decide which sample is first\n let sampleArrayValues = [sampleArrayValue1, sampleArrayValue2];\n let decideSample = int(random(2));\n let sample1 = samples[sampleArrayValues[decideSample]];\n let sample2 = samples[sampleArrayValues[1-decideSample]];\n\n let answer = int(samples.indexOf(sample2) > samples.indexOf(sample1));\n questions.push(new Question([sample1, sample2], answer));\n }\n pitchList = questions;\n return questions;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }