query_id
stringlengths
32
32
query
stringlengths
7
29.6k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
3ab212d67275632838c26facaff8cace
Removes all keyvalue entries from the map.
[ { "docid": "a1c16153d9285b507b13d1c4bf2b381b", "score": "0.0", "text": "function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}", "title": "" } ]
[ { "docid": "4f4725c7fa4ecb066ed06f33df6b540b", "score": "0.7590112", "text": "clear() {\n var map = this._map;\n var keys = Object.keys(map);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n map[key].clear();\n }\n }", "title": "" }, { "docid": "e286e...
2b364528760b6b02795ae8488b953db7
Computes a final transform result after the transform has been acknowledged by the server, potentially using the serverprovided transformResult.
[ { "docid": "39d273d9de14d4aaa836412f3fbccc55", "score": "0.0", "text": "function Ne(t, e, n) {\n // The server just sends null as the transform result for array operations,\n // so we have to calculate a result the same as we do for local\n // applications.\n return t instanceof $e ? Oe(t, e) : t in...
[ { "docid": "d00a3645bf880b15f565f347b6d6ea3f", "score": "0.6185749", "text": "withResultTransform(transform) {\n _classPrivateFieldBase(this, _transformResult)[_transformResult] = transform;\n return this;\n }", "title": "" }, { "docid": "cdb928f02f006f0e6ec56f50d3e24df2", "...
6467bb0e57befdc97181dbfaf13206af
ECMA262 11.6 Identifier Names and Identifiers
[ { "docid": "c150c4c503cb1894c5969bf6c03d54da", "score": "0.0", "text": "function fromCodePoint(cp) {\n return (cp < 0x10000) ? String.fromCharCode(cp) :\n String.fromCharCode(0xD800 + ((cp - 0x10000) >> 10)) +\n String.fromCharCode(0xDC00 + ((cp - 0x10000) & 1023));\n }",...
[ { "docid": "4d09fbf5711d1cf6902b391c7abd83e9", "score": "0.7452734", "text": "function parseIdentifier() {\n _index3.next.call(void 0, );\n _base.state.tokens[_base.state.tokens.length - 1].type = _types3.TokenType.name;\n}", "title": "" }, { "docid": "a5df2d236cafda4c0e68bc09c7b5dd0f", ...
f20ee5d811c6a51169f57e637a91a7c3
particular li clicked function
[ { "docid": "d61f5c6e8aedd3b1ccb81eeab7720372", "score": "0.708135", "text": "function clicked(element){\r\n let getLiIndex = element.getAttribute(\"li-index\");\r\n musicIndex = getLiIndex; //updating current song index with clicked li index\r\n loadMusic(musicIndex);\r\n playMusic();\r\n playingSo...
[ { "docid": "7af1f16b8d36a848676f274ee501fa0f", "score": "0.7080392", "text": "function clicked(element){\n let getLiIndex = element.getAttribute(\"li-index\");\n musicIndex = getLiIndex; //updating current song index with clicked li index\n loadMusic(musicIndex);\n playMusic();\n playingSong();\n}"...
16d6f1f625330dd4b9fff5a8b9a97150
Get the latest Data published by CDC regarding the current ILI activity at state level.
[ { "docid": "d62f95b4f1ab2b19f7c35de3a6370259", "score": "0.0", "text": "function populateStateData() {\n var data = {};\n\n // craft the URL\n var url = window.location.origin + '/flutracker/guest/api/getLatestActualData/CDC/stateActivity/';\n\n\n // Do a synchronous get request\n $.ajax(...
[ { "docid": "55b8bc741e523b1cb0170b6a9a162ddb", "score": "0.5644796", "text": "getCurrentActivity() {\n debug('retrieve current activity');\n const payload = {\n hubId: this.remoteId,\n timeout: 30,\n hbus: {\n cmd: 'vnd.logitech.harmony/vnd.l...
e65a3dd774fe200864e4667c11f326e0
Determines whether to skip/remove the backtick or not.
[ { "docid": "92b18e94c5b5c634bb91281f5dce171d", "score": "0.7530884", "text": "function shouldSkipOrRemoveBacktick(Editor) {\n var Components = Editor.Components;\n\n var _Components$Selection = Components.Selection.get(),\n start = _Components$Selection.start;\n\n var info = Components.Code.line...
[ { "docid": "eb25f751389ee30df69fcb6904781929", "score": "0.624169", "text": "function shouldCloseBacktick(Editor) {\n var Components = Editor.Components;\n var Input = Components.Input;\n var prevInfo = Input.info;\n\n if (prevInfo && prevInfo.category === CATEGORY_STRING) {\n return false;\n }\...
bada1bc5036dbfa5fd64ee3d73b7e34e
Enable the wikipathwayspvjs custom element
[ { "docid": "7a559b3a872f8737062fcf7601cc8601", "score": "0.68406606", "text": "function registerWikiPathwaysPvjsElement(Pvjs) {\n 'use strict';\n\n var DivPrototype = Object.create(window.HTMLDivElement.prototype);\n\n DivPrototype.attributeChangedCallback = function(\n attrName, oldValu...
[ { "docid": "5d24f9d7ce6aca35ce243056a6a88da8", "score": "0.6006504", "text": "enable() {\n this.enabled_ = true;\n this.removeClass('vjs-disabled');\n\n this.menuButton_.enable();\n }", "title": "" }, { "docid": "1688515638984721de45c82adb35dbc1", "score": "0.59339607", "te...
8b3caffe3ba3bbebcd5405d0a3184d76
translate page to SVG coordinate
[ { "docid": "6ad05fed4c7f094a5486e9251cd70d1b", "score": "0.6320841", "text": "function svgPoint(element, x, y) {\n const svg = document.querySelector(\"svg\");\n const pt = svg.createSVGPoint();\n\n pt.x = x;\n pt.y = y;\n\n return pt.matrixTransform(element.getScreenCTM().inverse());\n}"...
[ { "docid": "203e02400d95f5c9d75a3b9cf5c0ccd5", "score": "0.78892404", "text": "function convertToSVGCoordinateSpace(svgPage,x,y)\n{\n\tvar svgPointForConversion = svgPage.createSVGPoint();\n\tsvgPointForConversion.x = x;\n\tsvgPointForConversion.y = y;\n\tvar transformed = svgPointForConversion.matrixTr...
6eceb702974f794b154cc3205b341c4f
Function: Mounts the controller's request handler.
[ { "docid": "c1702092c2e47e60427d62336564e1d0", "score": "0.0", "text": "mount() {\r\n return null;\r\n }", "title": "" } ]
[ { "docid": "196b32b737d29f6c37c22b961345a329", "score": "0.7365978", "text": "_mount() {\n\t\tthis._mergeMiddleware(this._parent);\n\n\t\tthis._requestHandler = new RequestHandler(this);\n\t\tthis._parent._router[this._method](this._path, util.WrapAsyncFunction((req, res) => this._requestHandler.handle(...
c14645e21c7e33e7cca0a522300f2f47
LOGIC TO CHECK THE PASSWORD AND REPASSWORD ARE THE SAME (newuserpage) $()
[ { "docid": "72e14841c1bda4445d6c6f362f97a1b9", "score": "0.0", "text": "function initialize() {\n var mapOptions = {\n zoom: 11\n };\n map = new google.maps.Map(document.getElementById('map-canvas'),\n mapOptions);\n\n \n // Try HTML5 geolocation\n if(navigator.geolocation) ...
[ { "docid": "885767be4d5fd355ed06290c5298608c", "score": "0.7766336", "text": "checkPwd() {\n if (document.getElementById('newPwd').value !== document.getElementById('repeatPwd').value) {\n alert(getLang('SAME_PWD'));\n return false;\n }\n }", "title": "" }, { "docid": "437fc...
70f4d53f29d928f126e36beb04394182
init(); Generate the random number
[ { "docid": "29ce52b44c915dd26132dfe7c2e2ead6", "score": "0.0", "text": "function btnClick() {\n console.log('Function called.');\n //Do something here!!\n\n //1. Random number\n var dice = Math.floor((Math.random() * 6) + 1);\n console.log(dice);\n //Display\n var diceDOM = document.q...
[ { "docid": "791b3a86f88300db918cfe43a330c036", "score": "0.7871363", "text": "function init() {\n self.randomNumber = 0;\n // WHAT IF this.randomNumber\n }", "title": "" }, { "docid": "9bfce9a693573704cef52f64299b1e2e", "score": "0.75061613", "text": "fun...
64ec7b2e9a81a2d98ad3a9f6728a4aa2
What is a jQuery but a misunderstood object? > What Is A JQuery But A Misunderstood Object?
[ { "docid": "19c815a3dbae372a6e52fa2c75087e5d", "score": "0.0", "text": "function capitalize(words) {\n words = words.split(' ');\n for(var i = 0; i <words.length; i++) {\n words[i] = words[i].split('');\n words[i][0] = words[i][0].toUpperCase();\n words[i] = words[i].join('');\n }\nreturn wo...
[ { "docid": "1acb1766174a774cff4437a1a375686a", "score": "0.66325575", "text": "function isjQuery(obj) {\n\t\treturn (obj && (obj instanceof jQuery || obj.constructor.prototype.jquery));\n\t}", "title": "" }, { "docid": "ab7ee6f5971c549252a6c3f81e05ad79", "score": "0.6607967", "text":...
2439680a46d13dbfb9364428ea31a2f0
genVerts helper : Duplicate and Rotate a set of vertices,
[ { "docid": "b95f5a97ebd94104d3bd57413bb2da56", "score": "0.55866027", "text": "static repeatPoints(buf, offset, cnt, scl, verts, norm) {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n const fn = [() => { }, VRot90.yn, VRot90.y2, VRot90.yp];\n const len = cnt - ...
[ { "docid": "fbf241a5b26bf82c490cd1c8e67b71c4", "score": "0.6157152", "text": "function insertDuplicateVertices(vertices) {\n for (var i = vertices.length - 1; i > 0; i -= 2) \n vertices.splice(i, 0, vertices[i], vertices[i]);\n return vertices;\n}", "title": "" }, { "docid": "f9...
2f44a40eaefa37699abec62f8b417092
Use as little precision as is needed to generate a completely uniform distribution from the PRNG to the target range. Can be very slow to execute. If max is not specified, assume 2^53.
[ { "docid": "e5bc0de0facace7f927fbac8dfe353b8", "score": "0.74500555", "text": "function _randIntUniform (max) {\n if (typeof max === 'undefined')\n return _randInt53();\n if (max == 0)\n return 0;\n var log2 = 0;\n var mult = 1;\n...
[ { "docid": "296c1008f7d5a0c81d9900cc18d268b0", "score": "0.7735634", "text": "function rng(max) {\n return Math.floor(Math.random() * max)\n}", "title": "" }, { "docid": "e76e4aa7c9a03adb82434e8ebacde9e6", "score": "0.7482255", "text": "function r(max){ return Math.floor(Math.rand...
c6ccd9669c91bb1fc3c5f6b62f619228
Expects: DNI number Returns: Letter of DNI number
[ { "docid": "99472617af811dc0d8e8f0694cda4466", "score": "0.74684435", "text": "function getDNILetterByParameter (dni) { \r\n dniLetter =\"TRWAGMYFPDXBNJZSQVHLCKET\"; \r\n position = dni % 23; \r\n return dniLetter.substring(position, position+1); \r...
[ { "docid": "06ede784af491b7a2f86ebef2a4a0823", "score": "0.7212819", "text": "function getDNILetter () { \r\n dniLetter =\"TRWAGMYFPDXBNJZSQVHLCKET\"; \r\n position = $(\"#dniNumber\").val() % 23; \r\n return dniLetter.substring(position, position+1); ...
cf7c4f5d4fb5b23d515c4ff8cc664bdc
Get the data destination type.
[ { "docid": "8019875d090026dc341c980116546efa", "score": "0.714835", "text": "function getDataDestinationType(dataDestination) {\n if (typeof dataDestination === 'string') {\n return '';\n }\n return 'remove' in dataDestination ? 'rdfjsStore' : dataDestination.type;\n}", "title": "" ...
[ { "docid": "98725d825dc18ebedaaea980ffb8b92d", "score": "0.6582534", "text": "get destinationTypeInput() {\n return this._destinationType;\n }", "title": "" }, { "docid": "be6f85d7d17c59d0875850eb61696aae", "score": "0.65191704", "text": "function getDataDestinationValue(da...
88eaf74e22e6c2e85199be3e84f4fff6
408 409 Retrieves a jQuery element's computed CSS value as a floatingpoint number. // 410 If the queried value is nonnumeric (ex: IE can return "medium" for border width), will just return zero. // 411
[ { "docid": "9d2380522aae60ff587687b0ad0ebe72", "score": "0.7516368", "text": "function getCssFloat(el, prop) { // 412\n\treturn parseFloat(el.css(prop)) || 0; ...
[ { "docid": "546397ec2f8a80b5d474eb983359c072", "score": "0.7193292", "text": "function num(elem, prop) {\r\n\treturn elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;\r\n}", "title": "" }, { "docid": "546397ec2f8a80b5d474eb983359c072", "score": "0.7193292", "text": ...
3c7dbb9c95abb0b5f65fa82e58b503ee
validate ajax the category modal in adding stock table
[ { "docid": "c79fbf5210ca34c3c8a2f65e24d9e5bc", "score": "0.7433039", "text": "function ajax_validate(){\n$('#submit').click(function() {\n var form_data = {\n name: $('#name').val(),\n\t\tstatus: $('#status').val(),\n };\n $.ajax({\n url: \"http://localhost/projects/inventory/admi...
[ { "docid": "b2b41d7b159cc501fcfae015eeb1c9b8", "score": "0.7432481", "text": "function ajax_validate(){\n$('#submit').click(function() {\n var form_data = {\n name: $('#name').val(),\n\t\tstatus: $('#status').val(),\n };\n $.ajax({\n url: \"<?php echo base_url() ?>admin/category/a...
21bce911663c0fcce1d9e929cb5aba1c
Lookup by stream, then id to store [values, id]]
[ { "docid": "39b4b21a697858ff5214153c13333db9", "score": "0.5201559", "text": "_addVariableEntry() {\n if (!this._dataPending()) {\n return;\n }\n\n // Lookup where to put the value\n let fieldName = 'doubles';\n const value = this._values[0];\n if (typeof value === 'string' || val...
[ { "docid": "98d2ac71c52400a3b8cc801cd40cfce6", "score": "0.6135192", "text": "getStreamFromId(id) {\n for (item in this.options) {\n var locations = this.options[item].locations;\n\n for (var i=0; i<locations.length; i++) {\n if (locations[i].i...
00c68013629eb189c6d920608b827374
Returns Content 3rd Party Details
[ { "docid": "9a17774b8c3b5d8c1027ac2a5107ed1d", "score": "0.74442935", "text": "function IQ_GetContent3rdPartyDetails(contentid, JSONCallback){\n\n}", "title": "" } ]
[ { "docid": "db3327656c32bf1e176200a26e7929ce", "score": "0.60870594", "text": "getThirdPartyInfo() {\n var _this = this;\n let customAccounts = \"SmartCampus__SystemManagement/1.0.0/getCustomAccountTypeDefinition\";\n _this.callAPIConn(customAccou...
19ed42199c4bc57a36f0e1058fa6ce1f
Find the deepest React component completely containing the root of the passedin instance (for use when entire React trees are nested within each other). If React trees are not nested, returns null.
[ { "docid": "e994ce5cd24cd19d4ccf8e70a46b9ade", "score": "0.0", "text": "function findParent(inst) {\n\t // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n\t // traversal, but caching is difficult to do correctly without using a\n\t // mutation observer to listen for all DOM cha...
[ { "docid": "1d9714f4d7d57cbd57f3e4a3542c1458", "score": "0.68767685", "text": "function findFirstReactDOMImpl(node) {\n // This node might be from another React instance, so we make sure not to\n // examine the node cache here\n for (; node && node.parentNode !== node; node = node.parentNode) {\n ...
b0d649ee5e81aabb20f6f157b1d8b8a0
TO DO: Maybe finished query batching
[ { "docid": "abf5424781086b517fe235353157331f", "score": "0.6456513", "text": "willBatch(query) {\n const now = Date.now();\n if (this.io_stats.since < Date.now()) {\n this.io_stats.since = Date.now();\n this.io_stats.queries = 0;\n }\n else {\n ...
[ { "docid": "99f066f0c7f4996826d9dfdac7ad8b06", "score": "0.6895774", "text": "function next() {\n\n if (pointer >= amount)\n return callback(false, bulk);\n\n var amountParams = bulk[pointer].params.length;\n\n bulk[pointer].batches = new Array();\n\n var i, j;\n for (i = 0, j = bulk...
9c32a4ddef81014ebe30174ce29363b9
Fim [add_marker] Inicio [render]
[ { "docid": "e182b0211c63ba6b24a9f41f6eb97451", "score": "0.0", "text": "function render(arr){\n\tfor(var layer in omarker){\n\t\tvar l = omarker[layer];\n\t\tomapa.removeLayer( l );\n\t}\n\tomarker = [];\n\tfor(var bus in arr){\n\t\tvar b = arr[bus];\n\t\tadd_marker({lat: b[3], lon: b[4], datahora: b[0]...
[ { "docid": "a0a9fbe8ba55b23f2081243cb5f361e4", "score": "0.74909216", "text": "function placeMarkers(){}", "title": "" }, { "docid": "57d19e884adb48fdbd223716bfc5d524", "score": "0.7144001", "text": "addMarker() {\n const markerObj = {\n Snap: this.Snap,\n ...
56aa6dc2a937817ef05001ee601daa20
returns a function for filtering head child elements which shouldn't be duplicated, like Also adds support for deduplicated `key` properties
[ { "docid": "6f101482750643c9ad4efad2b06e8651", "score": "0.5222795", "text": "function unique() {\n var keys = new _Set();\n var tags = new _Set();\n var metaTypes = new _Set();\n var metaCategories = {};\n return function (h) {\n var unique = true;\n\n if (h.key && typeof h.key !== 'number' ...
[ { "docid": "ebe630af367033e75ecdd81b5462dc54", "score": "0.56671464", "text": "removeDuplicatesHash() {\n let currentNode = this.head;\n let uniqueEls = {};\n let prev;\n\n while (currentNode) {\n if (uniqueEls[currentNode.value]) {\n // I need to set this element to look at it's...
5304ea79c6bd07b47ca53e66e6d47211
Function to return completed matches, i.e. only matches that reached FullTime
[ { "docid": "3f5b8a6b316bfddffa36df698f27af84", "score": "0.60400975", "text": "function isFullTime(match) {\n return match.MatchInfo.Period === 'FullTime';\n }", "title": "" } ]
[ { "docid": "0144ca03645e1b68a0d6e9dc540bcee7", "score": "0.61511713", "text": "function getCurrentMatches(callback){\n\tvar currentMatchesData={\n\t\tapikey:\"qMdsykxRTkft5pvwqdaqOI8D6Sm2\"\n\t};\n\trequest({\n\t\turi:'http://cricapi.com/api/matchCalendar',\n\t\tmethod:'POST',\n\t\tjson:currentMatchesDa...
d829ae93b8798714284a56331e896b82
Shares an object based on the supplied options
[ { "docid": "1a9eb9c35f2c16074cb47966093ed5f7", "score": "0.684982", "text": "function shareObject(o, options, bypass = false) {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function* () {\n if (bypass) {\n // if the bypass flag is set send...
[ { "docid": "fc50ee063b9bf57e67a4dade23294736", "score": "0.59715945", "text": "async sharedWithMe(options = null) {\n const q = DriveItems(this, \"sharedWithMe\");\n if ((options === null || options === void 0 ? void 0 : options.allowExternal) != null) {\n q.query.set(\"allowext...
3dc8a6eb68d0039de67a00c7de8c4c49
Matrix > Vector > Vector
[ { "docid": "67392d2d52df0892f99d3d6a13b190f1", "score": "0.6657332", "text": "function vectorTransform(m, v) {\n var w = m.map(function(e) {\n return innerProduct(e, v).reduce((t, v) => t + v)\n }) ; return w\n}", "title": "" } ]
[ { "docid": "2b8e3a8d111f1cdd9c4664a3421864dc", "score": "0.7044515", "text": "function multVecByMat(vector, matrix)\n{\n\t var newVector = new Vector(0,0,0);\n\t \n var a = vector.x * matrix[0][0];\n var b = vector.y * matrix[0][1];\n var c = vector.z * matrix[0][2];\n newVector.x = a+b+c;\n...
c09c19e8b3ad08f731073e05e848994d
Gets the user's default company.
[ { "docid": "dcb605ae6864ad0915938b71f92fbcb1", "score": "0.5530931", "text": "getUserDefaultCompany(companyId, token) {\n const data = {\n Authorization: token\n };\n axios\n .get(`${VUE_APP_BASE_API_URL}/companies?q=(id:${companyId})`, {\n headers: data\n })\n .then(...
[ { "docid": "7755be4d7a2870409d23444657bd5cf8", "score": "0.65907705", "text": "getCompany() {\n \tfor(let comp of allCompanies){\n \t\tif(comp.name == this.companyName){\n \t\t\treturn comp\n \t\t}\n \t}\n \treturn -1\n }", "title": "" }, { "docid": "d31ebf3637c4b56a7f06505f9bd3f394",...
de8b2b784aacf491e1e562031c835485
event detail > upcoming event tab
[ { "docid": "663df67d82dc2342938bc16457e14b2d", "score": "0.56007874", "text": "function event_upcoming() {\n $http.get('/upcomingResult', {\n params: {\n venue: $scope.detail_result.event.venue.value\n }}).\n then(function(response) {\n ...
[ { "docid": "4fbb2a3660ead40318ca265f7d19379d", "score": "0.6465918", "text": "function displayEventDetails(e){\n let scheduleTab = document.getElementById(\"schedule\");\n scheduleTab.style.display=\"none\";\n scheduleTab.className.replace(\" active\", \"\");\n\n //make event details tab act...
412b99e2f13d67faa7f1feaf6a53bbda
destroy this shader objects resources (program, attributes, uniforms)
[ { "docid": "3e50f0bef1ccb25218f0202567438d60", "score": "0.86804366", "text": "destroy() {\n this.uniforms = null;\n this.attributes = null;\n\n this.gl.deleteProgram(this.program);\n\n this.vertex = null;\n this.fragment = null;\n }", "title": "" } ]
[ { "docid": "d3ffada20ae7c99b11b09d02a7d0429f", "score": "0.82215697", "text": "destroy()\n {\n this.shaderCache = [];\n this.emptyPool();\n }", "title": "" }, { "docid": "d94b322d906e0708a068fcf14e62f13e", "score": "0.8011686", "text": "destroy()\n {\n t...
abe972f2ab04f8bf425463a9bc349671
import postForm from './components/postForm';
[ { "docid": "c0ea7879c3a3a5e3d552bbc981f6e637", "score": "0.0", "text": "function App() {\n const [loginStatus,setLoginStatus]=useState(false)\n\n const loginStat=()=>{\n setLoginStatus(true)\n }\n \n return(\n <Router>\n <Switch>\n <Route \n ...
[ { "docid": "1c4142d08bd7c3f25144631f887208b1", "score": "0.6193693", "text": "function App() {\n return (\n <Form />\n );\n}", "title": "" }, { "docid": "5ebde33c09aeb4eb448e39b879ea62dc", "score": "0.61428165", "text": "render() {\n return (\n //provider holds store and...
ddcb0cd40fb3ff0bf6e253759e52acb9
Sends a flag click to server
[ { "docid": "b34d1572efb4ecb803503fc98da3fe44", "score": "0.6460138", "text": "function sendFlag(i, j) {\n socket.emit('flag', { i, j });\n}", "title": "" } ]
[ { "docid": "6cb91b662939d7ddb5faf89541e4f7f6", "score": "0.65079015", "text": "function flagClick(event) {\n // Prevent the default browser click handler\n event.preventDefault();\n\n // 'this' won't point to the element when it's inside the ajax closures,\n // so we reference it using a var...
2bfd946f8397d3be80b0d16fa7ea9ee8
Extract the x and y movement out of the targets webkittransform property
[ { "docid": "ffef719190fd0186d98a57814b0e3909", "score": "0.7005815", "text": "function extractTransformTranslation( target ) {\n var textual = target.css( '-webkit-transform' ),\n re = /^translate3d\\((-?[0-9.]+)[^0-9-]+(-?[0-9.]+).+$/,\n matches = re.exec( textual ); \n\n ...
[ { "docid": "ca15684c18e01edaa292ddc6cb9406a5", "score": "0.640155", "text": "function getElementCoordinates($element) {\n var style = window.getComputedStyle($element.get(0)); // Need the DOM object\n var matrix = new WebKitCSSMatrix(style.WebkitTransform);\n return {xPos: matrix.m...
798991f4a0e5d7517fcae294b2db5caf
Calculates box size and creates divs accordingly
[ { "docid": "8b2e683a9b06fefab03f2acd300192a5", "score": "0.0", "text": "function displayGrid(columns) {\n var grid = $(\".grid\").html(\"\");\n var boxSize = grid.width() / columns - 2;\n for (var i = 0; i < columns; i++) {\n for (var j = 0; j < columns; j++) {\n grid.append($...
[ { "docid": "2184837ce3cf5794e9be9e49361a85db", "score": "0.7083457", "text": "function createDivBox(sizes) {\n var divBox = new HtmlElement({tagName:\"div\",className:\"box\",AttributeName:\"data-after\"})\n .createHtml(sizes);\n return divBox.htmlElement;\n }", "title": "" }, { "...
7caf4c988bae90aff959582f10ce4ce5
Return a list of Trial objects. A large part of the work of defining the experiment takes place here, although the key properties are actually defined in the Governor definition. The trials defined here are the master list used by the Governor to decide which stimuli to serve, which advisor or choice to offer, etc. Thi...
[ { "docid": "c09f37ea4331be0511ed0f71730d7ee4", "score": "0.65652674", "text": "getTrials() {\n\t \tlet trials = [];\n let id = 0;\n let realId = 0;\n let blockCount = this.blockStructure.length * this.blockCount;\n let practiceBlockCount = this.practiceBlockStructure.length; ...
[ { "docid": "47a49a7b9e70f94c064517530513dd95", "score": "0.6071815", "text": "function initTrial() {\r\n\r\n\t// Get Trials\r\n\tvar data = getData(preExptTrialFile);\r\n\r\n\tvar records = data.split(\"\\n\");\r\n\tnumTrials = records.length - 1;\r\n\tfor (var i = 1; i <= numTrials; i++) {\r\n\t\tvar c...
9c9dd3dfab388f186f590c9aea540414
holds all rows of data
[ { "docid": "06eddd5809b5dda73e8291b22c7f50e5", "score": "0.0", "text": "async function setHeader(){\n console.log('config file')\n const header = []\n header.push('bid')\n header.push('ask')\n output.push(header.join())\n fs.writeFileSync(filename, output.join(os.EOL));\n}", "title...
[ { "docid": "e4ecbb17495516263d58c5a27a293397", "score": "0.69443625", "text": "getData() {\n return this.rows;\n }", "title": "" }, { "docid": "6dff6839976568a860561d08d2a36d39", "score": "0.69259226", "text": "function addtoArray() {\n //console.info(\"getRowC...
c0de08339873cd2cabea5bd7692bb822
public class Block extends Statement constructor
[ { "docid": "d43b766e523e43d43b632eb5c120fd47", "score": "0.9157575", "text": "function Block(){ // default constructor\n // default constructor: call super.constructor\n Statement.prototype.constructor.apply(this,arguments)\n //properties\n //body:array of Statement // [AS...
[ { "docid": "9a520a1dcb5802b2f5c30d9459a39785", "score": "0.9183074", "text": "function BlockStatement(){ // default constructor\n // default constructor: call super.constructor\n Block.prototype.constructor.apply(this,arguments)\n }", "title": "" }, { "docid": "b84c0d472a17b816f...
1c58a2438aaf7de885f1429d309d3002
makePlotFramework: Create the plot container and axes
[ { "docid": "bdbf582d449ded24f0ca47c6d45aeded", "score": "0.75246304", "text": "function makePlotFramework(gd) {\n var gd3 = d3.select(gd);\n var fullLayout = gd._fullLayout;\n\n // Plot container\n fullLayout._container = gd3.selectAll('.plot-container').data([0]);\n fullLayout._container...
[ { "docid": "a5766c42681ac992cd0418ebae787a6b", "score": "0.7294494", "text": "function makePlotFramework(gd) {\n var gd3 = d3.select(gd);\n var fullLayout = gd._fullLayout;\n\n // Plot container\n fullLayout._container = gd3.selectAll('.plot-co...
8707fb0a26b090050ee70d890a5987f9
(protected) r = this + a
[ { "docid": "04402f37b9c2266437787911a1845e95", "score": "0.6520421", "text": "function bnpAddTo(a,r) {\n\t var i = 0, c = 0, m = Math.min(a.t,this.t);\n\t while(i < m) {\n\t c += this[i]+a[i];\n\t r[i++] = c&this.DM;\n\t c >>= this.DB;\n\t }\n\t if(a.t < this.t) ...
[ { "docid": "7a828f4cd93bbd46ddfb4ed4dbe11228", "score": "0.6961447", "text": "function A(){r.apply(this)}", "title": "" }, { "docid": "1eef6495f1caf9beeb1b809ec3da8682", "score": "0.68854123", "text": "add(c) {\n let r = this.r + c.r;\n let i = this.i + c.i;\n th...
b634d0adb4f9b2a41844df13b099a792
7 / We first get an array of arguments except the firstone, because the firstone is the function and we don't need that one, and in this case we're assuming that we're on ES5 so we're not doing the awful "Array.prototype.slice.apply", and then "curry" returns a function and that function will apply the "arguments" to t...
[ { "docid": "06254c6907fbd175220b822645d397a6", "score": "0.0", "text": "function make_promise() {\n\tvar status = 'unresolved',\n\t\toutcome,\n\t\twaiting = [],\n\t\tdreading = [];\n\t\t\n\tfunction vouch(deed, func) {\n\t\tswitch (status) {\n\t\t\tcase 'unresolved':\n\t\t\t\t(deed === 'fulfilled' ? wai...
[ { "docid": "ea54ab2b63fd694bfc11c37ea2108bc4", "score": "0.684296", "text": "function curry(fn){\n return function(){\n if(fn.length > arguments.length){\n var slice = Array.prototype.slice;\n var args = slice.apply(arguments);\n return function(){\n return fn.apply(\n ...
86d898e17a92bca1479be195403a484f
Draws an item on the canvas
[ { "docid": "b984244bf9cf2775e3f915d5266e0a85", "score": "0.0", "text": "function drawCanvas(data, x, y){\n let newCanvas = document.getElementById(\"newCanvas\");\n let ctx = newCanvas.getContext(\"2d\");\n let img = new Image();\n //Base 64 data from call to proxy server\n img.src=data;\n img.onl...
[ { "docid": "fabab0134feadbfa00ea851f4d31f580", "score": "0.8015483", "text": "drawItem() {\n ctx.fillStyle = \"red\";\n ctx.fillRect(this.xPos, this.yPos, this.size, this.extension);\n }", "title": "" }, { "docid": "7593b778efc346877e01cceb024ba098", "score": "0.74550843...
e6ddc89ccbcf161af880b4511519cff7
Zoom in on the sector defined by the brush
[ { "docid": "f089547a18ac0c1bf218549c584d2cc5", "score": "0.59185183", "text": "function zoom() {\n let t = svg.transition().duration(750);\n\n // Update axes, circles, and lines\n svg.select(\".axis--x\")\n .transition(t)\n .call(xAxis);\n g.select(\".ax...
[ { "docid": "c5786e5b508cef896918618581dc8e0d", "score": "0.651965", "text": "function zoomIn() {\n\t//decreases the value of the slider and saves the value\n\tif (slider.immediateValue > minScale) { //if slider isnt at the lowest point\n\t\tslider.decrement();\n\t\tcurrentScale = slider.immediateValue;\...
39490a79195bc29e80948c2b5cfa8dd2
TODO: REMOVE, NOW GOT OWN URL
[ { "docid": "fc4adfff6054e168c4bee83b3a3496c2", "score": "0.0", "text": "function toggleInfo() {\n\t\t\tvm.info = !vm.info;\n\t\t}", "title": "" } ]
[ { "docid": "8c13e189a82b45213c499487f13f750c", "score": "0.66145855", "text": "url() {\n throw new Error('Not implemented');\n }", "title": "" }, { "docid": "a4a72405a35ca12b211ec9786197d992", "score": "0.6252065", "text": "function URLUtils() {}", "title": "" }, { ...
06c7e98d4804c657be8465ae3d4486cf
Functions to manage the message information
[ { "docid": "b7d26c8f4bbbcf47f8e795dc6ac7ae7f", "score": "0.6110371", "text": "function createDataMessage(message) {\n // Return the Data from message to make the template\n const img_src = createFileLogo();\n let user = getData('user');\n\n return {'text': message.types === 'text',\n ...
[ { "docid": "70020c6a32c5d1a7a9905b490bfb15af", "score": "0.70404255", "text": "handleMessage(message) {\n\n this.Name=message.Name;\n this.Description=message.Description;\n this.CourseImage=message.CourseImage;\n this.Level=message.Level;\n this.Position=message.Posit...
f1924d9293a0423db05e59c0cd9c63a6
Update the viewport's total content size.
[ { "docid": "13e0e370e7d6d76a9c71f90062f9afee", "score": "0.8635498", "text": "_updateTotalContentSize() {\n if (!this._viewport) {\n return;\n }\n this._viewport.setTotalContentSize(this._viewport.getDataLength() * this._itemSize);\n }", "title": "" } ]
[ { "docid": "8007d29a0be99c9ea729b133a589c578", "score": "0.87372094", "text": "_updateTotalContentSize() {\n if (!this._viewport) {\n return;\n }\n\n this._viewport.setTotalContentSize(this._viewport.getDataLength() * this._itemSize);\n }", "title": "" }, { "docid": "bf32a1ccf...
d3e665e7933e7201fb3676666d90f7cc
Function constructor() : Create Terminal
[ { "docid": "55bcab55d9b67a4ff7ffc40493933962", "score": "0.6266489", "text": "constructor() {\n\t\tif ( Terminal.instance == null ) {\n\n\t\t\t/**\n\t\t\t * @type {import('@appsflow/core/src/modules/logger').Logger}\n\t\t\t */\n\t\t\tthis.logger = new ($flow.modules().Logger)( Terminal.getName(), true )...
[ { "docid": "ea52ec07958a49b098a3da6a8af08ce4", "score": "0.69422585", "text": "function Terminal(options) {\n if (! options) options = {};\n this.width = options.width;\n this.height = options.height;\n this.bell = options.bell;\n this.visualBell = options.visualBell;\n this.scrollback...
91cacd50c65ee0b72f446365d62dcd03
End keypressevent functionality / enableRotateButtons( disabledButton ) Enables all buttons of class controllerrotatebtn except the button passed in. Parameters: disabledButton: button to remain disabled.
[ { "docid": "3621a7b749bec31c26f9e428fcba815a", "score": "0.805899", "text": "function enableRotateButtons(disabledButton) {\r\n\t$('.controller-rotate-btn').removeAttr(\"disabled\", \"disabled\");\r\n\r\n\tdisabledButton.attr(\"disabled\", \"disabled\");\r\n}", "title": "" } ]
[ { "docid": "6607c4bb379e7e06fe4f8f1a5bcd66fa", "score": "0.6386415", "text": "function disableButton() {\n this.disabled = true;\n}", "title": "" }, { "docid": "56762e1d77e4d4c320eb3e0f75a74bdf", "score": "0.6324147", "text": "function disable_buttons_retailer()\n {\n \n ...
7c44b7c5cfc250bbab594b40318cff95
Default loader for ajax number fields.
[ { "docid": "b578cc983c653e07510be9191733a4be", "score": "0.65648115", "text": "function loadAjaxNumberFields(parentElement, msgDisplay) {\n parentElement.find('.fieldAjaxnumber').ajaxFormNumber({messageDisplay: msgDisplay});\n}", "title": "" } ]
[ { "docid": "acdd3eb94963dea9e55764a54a1c3268", "score": "0.5861056", "text": "function NumericSpinner(onChange, min, max) {\n if (onChange === void 0) { onChange = function (numericSpinner) { }; }\n if (min === void 0) { min = 0; }\n this.onChange = onChange;\n this.min = min...
7adc7aa0df86cb0be1c977c0fd0f70e9
to make this work, simply link it to an on click of your desired element to track for the name, the id usually works best
[ { "docid": "90b57b3fb0d8947d45d82cd171e6afcd", "score": "0.5923881", "text": "function addClickToElement(elementName) {\n var readData;\n var thisNum;\n if(clickTrackerFile.exists) {\n clickTrackerFile.open(\"r\");\n readData = JSON.parse(clickTrackerFile.read());\n clickTr...
[ { "docid": "f4f92900f815d9005e1f5c978613db3b", "score": "0.67212814", "text": "renderName (name, id) {\n this.name.innerHTML = name\n this.name.setAttribute('id', id)\n }", "title": "" }, { "docid": "15cdf58384646effc595f59661d354f4", "score": "0.6525958", "text": "elmId(name)...
c42e68828dc938a23081cc4e740798d0
T U E 100 200 REST PARAMS use 'rest params' as array. SPREAD SYNTAX use nnumber of FIRST PARAMS as array.
[ { "docid": "70f929b44ddefe63c155661e7a0d35c2", "score": "0.5099933", "text": "function spreadAndRestParams(firstChar, secondChar, ...lastArray) {\n console.log(firstChar, secondChar, lastArray);\n}", "title": "" } ]
[ { "docid": "59b8c6915d5edbb975387d15ffb79e29", "score": "0.69667065", "text": "function restParams5(...rest) {\n return rest[5]; // CHANGE ME\n}", "title": "" }, { "docid": "57f43cf2df029d3b9b6f5a136c1af03a", "score": "0.6378944", "text": "function restParam(param1, param2, ...res...
46f55b731c17b8e4f933c6ef493c3904
el formulario de Login
[ { "docid": "56b43b0e2d71b0851ffbac56925082cf", "score": "0.63106716", "text": "function Login(props) {\n const [form, setForm] = useState({ email: '', password: '' });\n const update = (({ target }) => setForm({ ...form, [target.name]: target.value }))\n return (\n <React.Fragment>\n\t <div classN...
[ { "docid": "9a6dae195be4fddbb6d5f7be89ab2e25", "score": "0.76384974", "text": "login() {\n this.provider.login(this.form.value);\n }", "title": "" }, { "docid": "a5791cfe165d4289347251b338d66e56", "score": "0.71379304", "text": "login (email, password) {\n this.emai...
0da06b90d0b702715e43b06239f7fa78
See API for function description.
[ { "docid": "11f6138fe5fe1d77392e136d8456f5ff", "score": "0.0", "text": "function getCapabilities() {\n var capabilities = [];\n // Get capabilities objects from the container.\n for (var i = 0; i < _capabilitiesContainer.length; ++i) {\n capabilities.push(...
[ { "docid": "07baaa7b10a2faddf5ad2c1b651b13e9", "score": "0.6372456", "text": "function miFuncion(){}", "title": "" }, { "docid": "ac54ce770b0cd27b0ae6243ee1905e7c", "score": "0.6127683", "text": "XXX() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "4ba42df549fe9202b55...
8e61ea05f0758a477096e46998078d01
Function for making the hot spot background visible
[ { "docid": "eac8c3489c63f91cb289f09e0e1ac9e6", "score": "0.7828869", "text": "function makeHotSpotBackgroundsVisible()\r\n\t\t\t{\r\n\t\t\t\t// Alter the CSS (SmoothDivScroll.css) if you want to customize\r\n\t\t\t\t// the look'n'feel of the visible hot spots\r\n\t\t\t\t\r\n\t\t\t\t// The left hot spot\...
[ { "docid": "3d68a178d28e1a6134e311a4b8520f0a", "score": "0.6617614", "text": "function hideHotSpotBackgrounds()\r\n\t\t\t{\r\n\t\t\t\tclearInterval($mom.hideHotSpotBackgroundsInterval);\r\n\t\t\t\t\r\n\t\t\t\t// Fade out the left hot spot\r\n\t\t\t\t$mom.find(options.scrollingHotSpotLeft).fadeTo(\"slow\...
6d79d236c19dc99f63fdb31a66331f31
eslintdisable noalert SLICE 1
[ { "docid": "2885a7ab67d73d30fda755c3a48918fb", "score": "0.0", "text": "function updateCoffeeView(coffeeQty) {\n //grab coffee counter span and store in var\n const coffeeCounter = document.getElementById('coffee_counter');\n //take the passed in coffee quantity and make it the new text of the span\n...
[ { "docid": "d8b4133fc964556a39720dd0472f1b1c", "score": "0.65968776", "text": "function warning(){\n alert(`Please pick the correct answer.`);\n}", "title": "" }, { "docid": "5c86eca3f7e632b95d52cfa3425d15a9", "score": "0.65915525", "text": "raiseWarning(e) {\n e.preventDefault()...
711eb04ea9a4ca50048d0bba6c594455
For Node v0.10 support. Remove this eventually.
[ { "docid": "40d9d01aaaa4b330d7a22f1c44271f73", "score": "0.0", "text": "function isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}", "title": "" } ]
[ { "docid": "82ede7fecff156cb3cfac6b553d6e865", "score": "0.5760611", "text": "function NodeModule() {\n}", "title": "" }, { "docid": "60f97f51026b80566d0fec120b1f7bf5", "score": "0.55544066", "text": "function NodeFsHandler() {}", "title": "" }, { "docid": "60f97f51026b80...
8afef9fb9f02efcd69d7ce49055e9dc5
Get all blank coordinates from board
[ { "docid": "8d5011f7cf98931c99110239adbb2a30", "score": "0.84945273", "text": "getBlankCoordinates(board) {\n const blankCoordinates = [];\n \n for (let r = 0; r < board.length; r++) {\n for (let c = 0; c < board[r].length; c++) {\n if (board[r][c] === 0) {blankCoordinates...
[ { "docid": "dd942c10a10bbbb9e0b4c48f0330f636", "score": "0.7752392", "text": "function getEmptyPlaces(board) {\r\n var emptyPlaces = []\r\n\r\n for (var i = 0; i < board.length; i++) {\r\n for (var j = 0; j < board[i].length; j++) {\r\n var cell = board[i][j]\r\n if (!...
e709b079a31c6760440e50e5564d9cf9
Displays the video feed that would normally be visible if the app. The DefaultVideoFeed generally shows feeds based on their volume level.
[ { "docid": "b8f41eab44b98d4c5090d348c3e3bb06", "score": "0.7425924", "text": "function showDefaultFeed() {\n\n // Remove the highlighting.\n if (currentHighlightedParticipantId) {\n google.hangout.av.clearAvatar(currentHighlightedParticipantId);\n }\n\n currentHigh...
[ { "docid": "6a9929bc2f33b33e2921b14de5c59cbb", "score": "0.66274816", "text": "function publicFeed(){\n if(navigator.getUserMedia) { // Standard\n navigator.getUserMedia(videoObj, function(stream) {\n p.video.src = stream;\n p.video.play();\n }, errBack);\n } else if(naviga...
da6c89b80482a34455d46192934b385f
console.log(buscarPosicion("a")); ///////////// Ejercicio 3
[ { "docid": "0d1e6ed61b938e64a1708aba968450a2", "score": "0.0", "text": "function obtenerPrecioConIva(precio){\r\n iva = precio * 0.19;\r\n precio = precio + iva;\r\n return precio;\r\n}", "title": "" } ]
[ { "docid": "8899795ba52e51c9470550f66b338bb8", "score": "0.7208335", "text": "function pozdravi(a){\n console.log(\"Dobro dosli,\" + \" \" + a)\n}", "title": "" }, { "docid": "0fbbfee4c10c5bb609d9f0a257a77e82", "score": "0.68732965", "text": "function valoracion(valor) {\r\n cons...
400b39f0165819530d447ef742d992bb
Set the slider value.
[ { "docid": "50ade92e5dcb3e757977153cfb4fa80a", "score": "0.0", "text": "function valueSet ( input, fireSetEvent ) {\n\n\t\tvar values = asArray(input);\n\t\tvar isInit = scope_Locations[0] === undefined;\n\n\t\t// Event fires by default\n\t\tfireSetEvent = (fireSetEvent === undefined ? true : !!fireSetE...
[ { "docid": "11c5f131fedd881fba0d2e07e1bfc537", "score": "0.7653699", "text": "setSliderValue(id, value) {\n const slider = this.sliders[id];\n if (value <= slider.min) {\n slider.endAngle = this.startAngle;\n slider.ang_degrees = 0;\n sl...
603f089628e8b523e8830f4f938f629b
function to delete row on clicking each row.
[ { "docid": "2a86add8ab22cf50b6f5046e3070e553", "score": "0.0", "text": "function remove_row(th) {\n $(\"input[id=\\'\"+th.id+\"\\']\")[0].checked = false;\n $(th).remove();\n addition_of_nutrition();\n}", "title": "" } ]
[ { "docid": "6101a5a59be74a35c8cb2f955b5a8a9d", "score": "0.80456716", "text": "function deleteRow(e) {\n var row = e.target.parentElement.parentElement;\n row.parentElement.removeChild(row);\n }", "title": "" }, { "docid": "867e5837d50339c45700b409b847cec4", "score": "0.790097", ...
da65f80f1a4d7cbdc952dd1a35bec5bb
inform if userGuess isn't a vowel
[ { "docid": "c36fd4101389f7cc81264e1c11154bb7", "score": "0.74465036", "text": "function notVowel() {\n message.innerHTML = \"'\" + userGuess + \"'\" + \" is not a vowel.<br/>Guess again.\";\n return;\n}", "title": "" } ]
[ { "docid": "04685207a75fe977efe42a54fdcf735f", "score": "0.71731216", "text": "function isVowel(c){\n switch (c.toLowerCase()){\n case 'a':\n return true;\n case 'e':\n return true;\n ca...
3cec76ca6cff8e0731d2f0ddfd348c0b
Updates the position of the bullet each cycle
[ { "docid": "99d03e96344cffed47d59f45fd6119ce", "score": "0.0", "text": "update() { }", "title": "" } ]
[ { "docid": "1d7b5a6743340529fae33d42cc5299cd", "score": "0.72966367", "text": "function updateBullet(event)\n{\n var delta = event.delta / 1000;\n \n bullet.x -= delta * bullet_speed * 3;\n \n if(bullet.x + bullet.image.width < 0)\n resetBullet();\n}", "title": "" }, { ...
0bff74b8c2dabe4382660ce3cba03aa7
For not moving after drag
[ { "docid": "8bff6c4cbfdc6f554f2d1ae5d1d60c51", "score": "0.0", "text": "function dblclick(d) {\n d3.select(this).classed(\"fixed\", d.fixed = false);\n }", "title": "" } ]
[ { "docid": "ce0eefd035078ba7c176d47ceb320704", "score": "0.7504444", "text": "function dragMove (e) {\n var clientX = isTouch ? e.touches[0].pageX : e.clientX,\n clientY = isTouch ? e.touches[0].pageY : e.clientY,\n limitsX = self.limits.x,\n limitsY = self.limits...
619db4928fc7d4424dd32f9e199e7dbd
Definition of the Portfolio class for the GFPortfolio gadget. Each instance of the class is used to store information about one stock.
[ { "docid": "7614fb4a896d7ff9bff0ab1a08288fd4", "score": "0.84471726", "text": "function Portfolio()\n{\n\t// Create an empty array of stocks\n\tthis.stocks = new Array();\n\tthis.addPriceData = addPriceData;\n\tthis.displayPriceData = displayPriceData;\n\tthis.displaySymbols = displaySymbols;\n\tthis.ma...
[ { "docid": "eb1ee5d98dace17b357601e37e74999b", "score": "0.6714322", "text": "function Stock(symbol){\n // this.name = name;\n this.symbol = symbol;\n this.numShares = 0;\n this.data = this.lookupStock();\n this.name = name;\n this.price = price;\n\n}", "title": "" }, { "docid": "6498e...
317e65450c842cbc416219808b6bac50
Get/Read e.g. get(" "_design/viewByName/_view/viewByNames"); This is the only func that (optionally) takes two parts of a URL. Inconsistent, but it makes the other files neater.
[ { "docid": "1ba4cc860f1fe3acd824786290fe9aaf", "score": "0.5513797", "text": "function get(url, path) {\n // Will join URL and path if two arguments, or just use a single full URL if only one argument.\n if (path) {\n url += path;\n }\n\n return fetch(url)\n .then(function (res...
[ { "docid": "26a6f0203cdd58039d6af52f04a81599", "score": "0.59865975", "text": "get(uri){\n\n }", "title": "" }, { "docid": "9d7ad6d3ad9b76bb045d3f6aec02f3d5", "score": "0.59822434", "text": "get(path) {\n if (path && typeof path === \"string\") {\n const split = Page.splitPa...
a7aac160b02ad30dcec88e3e1a1b3d65
Create and return a new ReactElement of the given type. See
[ { "docid": "f757810746c7780c0e0ed361e5f40335", "score": "0.0", "text": "function createElement(type, config, children) {\n var propName;\n\n // Reserved names are extracted\n var props = {};\n\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\...
[ { "docid": "ba89f7470e9f759722c6a227e170b58d", "score": "0.7050864", "text": "function CreateType (props) {\n const {as, children, ...remainder} = props\n return React.createElement(as || 'span', remainder, children)\n}", "title": "" }, { "docid": "8d9f98312fc7c5eb18bccc8b52e7b155", "s...
85e327b2462f0467d086481a85e554f2
For IE8 and IE9.
[ { "docid": "b6a82c40de3522753cd3152728ca92aa", "score": "0.0", "text": "function getTargetIDForInputEventIE(topLevelType, topLevelTarget, topLevelTargetID) {\n\t if (topLevelType === topLevelTypes.topSelectionChange || topLevelType === topLevelTypes.topKeyUp || topLevelType === topLevelTypes.topKeyDown...
[ { "docid": "152ae9bc1417f8a0e5996a8772fc212a", "score": "0.729394", "text": "function isIE9or8(){\n\t\tvar version = getInternetExplorerVersion();\n\t\treturn(version != -1 && version <= 9 && version >= 7);\n\t\t\n\t\t//return ($.browser.msie && $.browser.version <= 9 && window.XDomainRequest);\n\t}", ...
197d7f16daaffd456012310f5598f214
Creates a new Node with `attributes`, resolving with the new record
[ { "docid": "b09e88ffa5f1fa8ead95edd57b2b1176", "score": "0.6254221", "text": "create(attributes) {\n return new Promise((resolve, reject) => {\n // Add the new record to the IDB store, then resolve with the newly\n // allocated localId on the record\n this.objectStore.put(attributes)\n...
[ { "docid": "795d0183456139f8cfda0754c39c5c94", "score": "0.59545773", "text": "function newTag() //E Create a new node\n {const parameters = Array.from(arguments);\n const tag = parameters.shift(); ...
decb3823ea9d53ab355b97675829d143
1. Draw the image data onto offscreen buffer 2. Draw buffer to canvas at zoom level
[ { "docid": "db73486f235926182a6e4c747760f0c4", "score": "0.6300846", "text": "function updateBuffer() {\n\toffscreen.width = canvasWidth;\n\toffscreen.height = canvasHeight;\n\n\tvar imgdata = offscreenCtx.getImageData(0, 0, canvasWidth, canvasHeight);\n\tvar color;\n\tvar pixel;\n\tvar index;\n\tvar da...
[ { "docid": "2630d8bc28c8735c9ed296f6a319091e", "score": "0.66202974", "text": "function render() {//used in run():271\n requestAnimationFrame(render);\n\n lHis && lHis.style(\"display\", setting.showHistogram ? null : \"none\");\n lLeg && lLeg.style(\"display\", setting.showCountExt...
8b02d6e077f551b63dc4bc64973e7e13
Deal with Mobile Click
[ { "docid": "fbcc7736882403b5d127f335c0802219", "score": "0.0", "text": "function openMenu(){\n let menu = document.querySelector('.dropdown-content');\n if(menu.style.display === 'block')\n {\n menu.style.display = 'none';\n } else {\n menu.style.display = 'block';\n }\n}", ...
[ { "docid": "601b36ab5035fb431fa9cd9e7eb32c86", "score": "0.682185", "text": "function mmm_mobile_double_tap_to_go () {\r\n\t\t\tfunction_selector = '#mega_main_menu li:has(.mega_dropdown) > .item_link, #mega_main_menu li:has(.post_details) > .processed_image';\r\n\t\t\tjQuery( function_selector ).unbind...
35d89ee3ac1e30c58af916935248994e
generate new questions and reset instance variables
[ { "docid": "48d178d010aa7ecf90b5f65262dec541", "score": "0.6474137", "text": "reset() {\n this.generateQuestions();\n this.timer = new Timer(10, this.timesUp(this));\n this.round = 0;\n this.score = 0;\n this.multiplier = 1;\n this.currentQuestion = this.questio...
[ { "docid": "6e0608ad32e552f242d97ac25d68cb39", "score": "0.7902963", "text": "generateQuestions() {\n const questions = []\n const randoms = this.randomQuestions();\n for (let i = 0; i < randoms.length; i++) {\n const question = new Question(randoms[i]);\n ques...
1bd114b8b72f3c32ad22ac07270ccd69
'this' will refer to tdInstance here.
[ { "docid": "974f97f6a39a72aa861ebfafb3175a67", "score": "0.0", "text": "function onPlaylistPreloaded(e) {\n this.getTracks(function(tracks) {\n var nowPlaying = this.getTrack();\n\n log(tracks);\n\n // If parameters.single is not ex...
[ { "docid": "939791025edbd806410f7d0a6de0c114", "score": "0.58534116", "text": "setTR(t, r) {\nthis._t = t;\nthis._r = r;\nreturn this;\n}", "title": "" }, { "docid": "f8d4419b49780f7014f96fc9a0f2bd6b", "score": "0.56894654", "text": "setT(t) {\nthis._t = t;\nreturn this;\n}", "ti...
44eed7e81a733925352630a4047892cb
create the grid class
[ { "docid": "b6638c4c05344c9ed2dc062016227888", "score": "0.0", "text": "function grid(options) {\n //declare members\n this.behavior = \"tabular\";\n this.container = \"\";\n this.columns = [];\n this.data = null;\n this.width = \"auto\";\n this.height = ...
[ { "docid": "52056d0689414f518fcf33688752104b", "score": "0.7925451", "text": "function createGrid(){\n for (var j = 0; j < rows; j++) {\n for (var i = 0; i < cols; i++) {\n var cell = new Cell(i, j, w);\n cell = makeCellProperty(cell, j, i);\n ...
cd40fba3b398a94f9d8cd86d381a995e
A lot faster than stringify/parse
[ { "docid": "41541930bdf25afb14c392749adb7c07", "score": "0.0", "text": "function cloneBounds(bounds /*: Bounds*/) /*: Bounds*/ {\n return {\n left: bounds.left,\n top: bounds.top,\n right: bounds.right,\n bottom: bounds.bottom\n };\n}", "title": "" } ]
[ { "docid": "a377fdb4ac27e03b22388b7c4db145c6", "score": "0.61210936", "text": "function stringify() {\n return parser.stringify();\n }", "title": "" }, { "docid": "6dab958f55359b8b37c49dde68fd5c58", "score": "0.5834731", "text": "serialize() {}", "title": "" }, { ...
c87d94629de56989a7c39ae00829b47c
The individual responsible for making the annotation.
[ { "docid": "d91fa62431420ca8b177433d3e98a2f2", "score": "0.0", "text": "get authorReference () {\r\n\t\treturn this._authorReference;\r\n\t}", "title": "" } ]
[ { "docid": "94373dcf82a3cd1e2265778b0ab87d07", "score": "0.612936", "text": "get individual() {\n\t\treturn this.__individual;\n\t}", "title": "" }, { "docid": "fe54ec14db14fbf1803d31950d9eb52c", "score": "0.59623784", "text": "function Annotation() {\n this.guid_ = tr.b.GUID.allo...
720b63c3b931b6dc2b076ce4a16a40f2
_[static]_ Determine if a given layer group contains base layers
[ { "docid": "8c55b8f00c55b5d8282cd9199f6d66f0", "score": "0.82641727", "text": "static isBaseGroup(grp) {\n if (grp instanceof LayerGroup) {\n const lyrs = grp.getLayers().getArray();\n return lyrs.length && lyrs[0].get('type') === 'base';\n }\n else {\n ...
[ { "docid": "a668d1a3a92a83b0bc4c3051dc769456", "score": "0.6448219", "text": "static ensureTopVisibleBaseLayerShown(map, groupSelectStyle) {\n let lastVisibleBaseLyr;\n LayerSwitcher.forEachRecursive(map, function (lyr, _idx, _arr) {\n if (lyr.get('type') === 'base' && lyr.getVi...
fd0c67607d6c812e726cedbe2f21dc2f
12.14 The try statement
[ { "docid": "99f65120aaed9c240ef9328e5d120b74", "score": "0.0", "text": "function parseCatchClause() {\n var param;\n\n expectKeyword('catch');\n\n expect('(');\n if (!match(')')) {\n param = parseExpression();\n // 12.14.1\n ...
[ { "docid": "45bc8c5537a1add033f26edd26a30e10", "score": "0.7532619", "text": "function TryStatement() {\n}", "title": "" }, { "docid": "524c3505676eb6dd7c51e2b094e45785", "score": "0.7301539", "text": "function attempt () {\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t} catch (f) {\n\n\t\t\...
36c6772bab287aaa63d16de68d72ffcb
Frontend sends a request to play all songs in the queue database table
[ { "docid": "6ccf4a8c0d738eb4e72badd7156a0d83", "score": "0.0", "text": "playQue(e) {\n fetch(`${window.MyAppGlobals.serverURL}playQue`).then(res => res.json())\n .then(res => { \n this.result = Object.values(res); \n console.log(\"resultatet var: \" + this.result[0]...
[ { "docid": "33015abca3bd17896615732c60959f80", "score": "0.68767816", "text": "async function playlist() { \n const response = await fetch('http://localhost:3001/playlist')\n if (response.ok){\n registerMetric('play-clicked', 1)\n var i=0\n const jsonResponse = await response.json()\n ...
9d4216745a92021afb93dbc904b94b42
is the current page a duckduckgo.com page? switch to the google url
[ { "docid": "f2290c7b60dccea7fe3b87fee9f6c9cc", "score": "0.7803325", "text": "function switchURL() {\n\tif (isDCK) {\n\t\tvar searchTerm;\n\t\tvar splitted = currentURL.split(/(\\?|\\&)/);\n\n\t\tfor (var i = 0; i < splitted.length; i++) {\t\n\t\t\tif (splitted[i].match(/^q=.*$/)) {\n \t\t\t\tsearchTer...
[ { "docid": "8b6ef607a5a36d73237da882b6d0cc97", "score": "0.6438335", "text": "function _gotoFirstPage() {\n window.location.href = \"/visitor_page\";\n\n return false\n}", "title": "" }, { "docid": "43c67de9222b5883eb8d21f85f70db24", "score": "0.63341933", "text": "function whi...
e89915e8aa22d99f21ff514852199218
helper function to create a unit with a fixed prefix
[ { "docid": "b35043967721cca4fedcbd7ac4c0732f", "score": "0.71195364", "text": "function fixedUnit(str) {\n var unit = type.Unit.parse(str);\n unit.fixPrefix = true;\n return unit;\n }", "title": "" } ]
[ { "docid": "b6f119e67f2be1106ee3c2f436f3bcfb", "score": "0.71431434", "text": "function fixedUnit(str) {\n var unit = type.Unit.parse(str);\n unit.fixPrefix = true;\n return unit;\n } // Source: https://en.wikipedia.org/wiki/Physical_constant", "title": "" }, { "docid": "4fc677d72c...
e5805592cacb12f452da3105cbceb169
9 Dash between Even Numbers Write a JavaScript program which accepts a number as input and inserts dashes () between two consecutive even numbers. Test: dash_in_even(012345684); Output: "01245684"
[ { "docid": "d2689236fdc550b0d354a69890493384", "score": "0.8415265", "text": "function dash_in_even(number) {\n var x=number.toString();\n var y=x[0];\n for(var i=1;i<x.length;i++)\n {\n if((parseInt(x[i-1])%2==0) && (parseInt(x[i])%2==0) )\n {\n y=y+\"-\...
[ { "docid": "2b79a9448d3043857409bb892646d528", "score": "0.81194633", "text": "function dashes_between_even(number) {\n\n const number_string = number.toString();\n\n let result = number_string[0];\n\n const length = number_string.length;\n\n for (let i = 1; i < length; i++) {\n // if...
e2b3b020f10ed3c7c9cbe9c3e5b32c72
common function used for validation
[ { "docid": "027f7bc4f80cebc808d2cc79e7b51aa7", "score": "0.0", "text": "function validateCourse(course){\n const schema = {\n name: Joi.string().min(3).required()\n };\n return Joi.validate(course, schema);\n}", "title": "" } ]
[ { "docid": "c0a7655d0d51c9ae8ba639759bd33757", "score": "0.7258242", "text": "validate() {\n\n }", "title": "" }, { "docid": "12d273ab92672cff7df1171f15f8ac3d", "score": "0.7239957", "text": "validate(_value, _utils) {\n return false;\n }", "title": "" }, { "docid": ...
7e710619df243d78015af0988cc66468
cloned and reversed json_data: most recent data first; use with timeline
[ { "docid": "d85ff580e1ec8de36be8713012ac6eea", "score": "0.0", "text": "function getTimelineSearch(){\r\n\t$('#timeline-search').keyup(function () {\r\n\t\tvar output, inQuotes;\r\n\t\tvar searchField = $(this).val();\r\n\t\tif (searchField === '') {\r\n\t\t\t$('#timeline').html('');\r\n\t\t\treturn;\r\...
[ { "docid": "a55b3401d992ed51b96a346abcc16a49", "score": "0.60497373", "text": "function timelineData() {\n var array = [];\n var date = results[0] ? new Date(results[0].values[0].timestamp): new Date();\n for (var i = 0; i < 7; i++) {\n array.push({value:date, tooltip:{show...
4ab5bbb65e12683265797fe4f9c1b7a0
Handler for dragging no longer over an element.
[ { "docid": "88e018ce6dd4a8728f293e6d44550b5c", "score": "0.62451595", "text": "function handleDragLeave() {\n this.classList.remove('over');\n }", "title": "" } ]
[ { "docid": "9f6cade4ec8489708c8d2880a4511b37", "score": "0.70727825", "text": "function stopDragover() {\n placeholder.remove();\n element.removeClass(\"dndDragover\");\n return true;\n }", "title": "" }, { "docid": "5a8...
8cc80fec48cedb5927ea979ec2cd8927
Return time in hours for how long one can rent an offer for the given sum
[ { "docid": "ff65356f7ff09b96ce4597bfa1fbdd59", "score": "0.71285266", "text": "function getHours4Quote(offer, sum) {\n\n if (offer.setup != \"\" ) {\n // Subtract setup cost\n sum = sum - offer.setup;\n }\n console.log(\"hours4quote \"+offer.shortname+\" sum=\"+sum);\n if (sum ...
[ { "docid": "9b37ced5e8fd2a23e3bdba7a4db617c6", "score": "0.6523558", "text": "function getQuote4Hours(offer, h) {\n var cost = 0;\n if (offer.setup != \"\" ) {\n cost += offer.setup;\n }\n if (\"continuous\" in offer && offer.continuous != \"\" ) {\n\n if (offer.continuous == 1...
945e982445722fb5be026421c828b313
active state for visible element on the viewport
[ { "docid": "47cb8f62a3a19da8828e9ebc7e152733", "score": "0.0", "text": "function scrollNav() {\n $(\"nav a\").click(function(e) {\n e.preventDefault();\n $('html,body').animate({\n scrollTop: ($(this.hash).offset().top - 100)\n }, 600);\n\n });\n\n var aChildren ...
[ { "docid": "753fd2aadc13a906756ac678a4a12330", "score": "0.7436931", "text": "function activeView(element) {\n const postion = element.getBoundingClientRect();\n return (\n // the first two values to insure that every section is on the top of the screen or down a bit.\n postion.top >= 0 &&\n ...
3f60cf2e59a963e38b7ed84a35f35a3d
Get Game List using Steam API
[ { "docid": "1971d5c6f15cf983e64d80a56f529f48", "score": "0.64932305", "text": "getGames(steamid){\n\t//set steamID to user's entered id\n\tthis.steamID = steamid;\n\tlet sortedObj;\n\tlet playerName;\n\t//run get request via http library, and return sorted object\n\treturn http.get(`https://cors-anywher...
[ { "docid": "4dcc33453988784deb2c1831a624db70", "score": "0.7437258", "text": "function fetchGameList(){\n\tfetch(\"https://rawg-video-games-database.p.rapidapi.com/games?page=1\", {\n\t\"method\": \"GET\",\n\t\"headers\": {\n\t\t\"x-rapidapi-host\": \"rawg-video-games-database.p.rapidapi.com\",\n\t\t\"x...
a1dc34970fec7ab79a35de215a33066d
This function will redirect you to a page where you can edit this person's profile page.
[ { "docid": "d3f9d0150e96509c6b74a72095074dc2", "score": "0.0", "text": "function handleEdit(e) {\n e.preventDefault();\n setEdited(true);\n \n }", "title": "" } ]
[ { "docid": "611e91bb3036b274e8968d9efe39942c", "score": "0.80398744", "text": "function goEditProfile() {\n var dirPath = dirname(location.href);\n var fullPath = dirPath + \"/editprofile.html\";\n window.location = fullPath;\n}", "title": "" }, { "docid": "b437445df49582a8c23cfc41c...
6b1dce8cde8b24e069020263745fbf26
Is stdout a TTY? Colored output is enabled when `true`.
[ { "docid": "637a3c942a626401fe3c5bc99f726b4e", "score": "0.69316745", "text": "function useColors() {\n var debugColors = (process.env.DEBUG_COLORS || '').trim().toLowerCase();\n if (0 === debugColors.length) {\n return tty.isatty(fd);\n } else {\n return '0' !== debugColors\n && 'no' !=...
[ { "docid": "0e40e3456ca6a316c8fcd7d0d38c545f", "score": "0.7625948", "text": "function stdoutOK() {\n\treturn process.stdout._type === 'tty' || typeof config !== 'object' || config?.console?.output;\n} // stdoutOK()", "title": "" }, { "docid": "4985d83c67c8e9785aefbe56b8f83dfa", "score":...
a40766ae734abb32e6155521f076e305
Close modal window and bg
[ { "docid": "af8546168a97cb0a51a50d3ec523674b", "score": "0.6966335", "text": "function closeModal(){\r\n\t\t$modal.fadeOut(200, function(){\r\n\t\t\t$(\".jqx-validator-error-label\").html(\"\");\r\n\t\t\t$(\"#joinUserId, #joinpassword, #passwordChk, #joinemail, #VerificationCode\").val(\"\");\r\n\t\t});...
[ { "docid": "a99f87148fb915298b5ac756c0833f4c", "score": "0.7837651", "text": "function closeModal() {\n modalbg.style.display = \"none\";\n}", "title": "" }, { "docid": "66e83cf7ef711a18672ca45668a10231", "score": "0.7817357", "text": "function close_modal(){\n $('#modal_background...
464e0930f3c307bdabe192ade0db326e
creating child divs inside a div to make snow particles
[ { "docid": "442f4abc7f8f84e0e88b82dbdd5374aa", "score": "0.74549365", "text": "function createSnowChildDivs(element,snowDotArray){\n let snowDot;\n for(i=0;i<100;i++){\n snowDot = document.createElement(\"div\");\n element.appendChild(snowDot);\n snowDot.setAttribute(\"class\"...
[ { "docid": "bae08515a8304528da296cc4ec8bea1a", "score": "0.7164519", "text": "function initSnow() {\n\n var container = document.createElement('div');\n\n container.style.position = 'absolute';\n container.style.top = '0';\n container.style.left = '0';\n\n document.body.appendChild(contai...
a1278ab0785c9c8aa90a1ad36e1f52a1
=========================================================================== Compress as much as possible from the input stream, return the current block state. This function does not perform lazy evaluation of matches and inserts new strings in the dictionary only for unmatched strings or for short matches. It is used ...
[ { "docid": "a25e77007fcfed846c6e48e83551cc9a", "score": "0.0", "text": "function deflate_fast(s, flush) {\n var hash_head; /* head of the hash chain */\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we always have enough lookahead, exce...
[ { "docid": "f7270f04a4e803be9ef4735a42ab0d3f", "score": "0.6782075", "text": "function zip_deflate_fast() {\n while (zip_lookahead != 0 && zip_qhead == null) {\n var flush; // set if current block must be flushed\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, a...
b5736285a325c47809495c7cab28b5ed
Catch all exit posix codes and stop server gracefully. Also bind q key to exit.
[ { "docid": "6591d1e3cd8108a1c54118c9a8f33616", "score": "0.7369915", "text": "function exit(signal) {\n socket.close(() => {\n cli.log('Stopped server.');\n process.exit(signal === 'ERR' ? 1 : 0);\n });\n}", "title": "" } ]
[ { "docid": "9dfba6eda724418230543aabba059abc", "score": "0.6939805", "text": "function initTerminateHandlers() {\n var readLine;\n\n if (process.platform === \"win32\"){\n readLine = require(\"readline\");\n\n readLine.createInterface ({\n input: process.stdin,\n output: process.stdout...
1f006d25f488dab4d66b50184c5402dd
MSG: rename in place
[ { "docid": "0b72352d2b1a06e75ffc04cb1ae5bdf5", "score": "0.0", "text": "function renameInPlace_4l(msger, logger) {\n return () => {\n msger.log(`${addTab()}... renamed files in place.`);\n };\n}", "title": "" } ]
[ { "docid": "4578810a4b67560ab5f5e7ee21f66996", "score": "0.7102932", "text": "rename(oldName, newName) {\n files.rename(files.pathJoin(this.cwd, oldName),\n files.pathJoin(this.cwd, newName));\n }", "title": "" }, { "docid": "520abd173032cc53ce85a51b4bb5fea0", "score"...
01ec85c4f909f8ceee2a72e78a412c3a
parseKerning parses a string representing the additional X advance between two characters. The input string consists of one line per pair of characters. Each line starts with the two characters to adjust the spacing for. Those are followed by whitespace and a number. This is parsed into a javascript map (associative ar...
[ { "docid": "d38b552dd929e5eaab15a18c4815e2a3", "score": "0.7181909", "text": "function parseKerning(kerning) {\n var k = {};\n var re = /([-a-zA-Z0-9!@#$%^&*()_+={}|<>,./]{2}) +([0-9]+(.[0-9]*)?)/;\n var lines = kerning.split('\\n');\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i...
[ { "docid": "5a3c493ccdb38366780bc881e319a712", "score": "0.56152", "text": "function parseKernTable(data, start) {\n var pairs = {};\n var p = new parse.Parser(data, start);\n var tableVersion = p.parseUShort();\n check.argument(tableVersion === 0, 'Unsupported kern table version.');\n //...
2bdb3980bcab3c031f24d4e9b685fa86
Old versions of Chromium (below 61.0.3163.100) formats floating pointer numbers in a localedependent way, using a comma instead of a dot. If comma is not replaced with a dot, the input will be rounded down (i.e. acting as a floor function) causing unexpected behaviors
[ { "docid": "1b013ee53f896cd3a04fd7de1975605a", "score": "0.0", "text": "function toMs (s) {\n return Number(s.slice(0, -1).replace(',', '.')) * 1000\n}", "title": "" } ]
[ { "docid": "7cd0487307e1ea18a14162b76c663248", "score": "0.67688954", "text": "function commaOnly(value) {\n var num = parseFloat(value);\n if ((vp.utils.isNumber(num)) && (!isNaN(num)) && (value.toString().indexOf(\"e+\") == -1)) {\n //---- add commas, as needed ---...
3d7fa02684abb84b2918625fa8e8510c
PASO 4: Reemplaza ModalTypes
[ { "docid": "8ace6fa4eb22c736d8d39487b1d8ee9b", "score": "0.0", "text": "function compararValoresyReemplaza() {\n for(var i=0; i < infoSkus.length; i++) {\n for(var j=0 ;j < dataSkus.length; j++) {\n if (infoSkus[i][0] == dataSkus[j][0]) {\n infoFinal.push([dataSkus[j], infoSkus...
[ { "docid": "1c573b9bf8f4eb05ce53a042f59b6b70", "score": "0.66466486", "text": "renderTypeAModal() {\n return (\n <Modal\n isOpen={this.state.showTypeAModal}\n onRequestClose={this.handleCloseTypeAModal}\n style={customStyles}\n >\n <h2>Type A</h2>\n {/* TO...
e648e577c4f5dcfb9b76e91c18e53098
override to do stuff right before we fetch
[ { "docid": "6af8e2fc8bb5a39f1999d239baefb4a3", "score": "0.70543426", "text": "async preFetchHook () {\n\t}", "title": "" } ]
[ { "docid": "33cb2aca61a6c44fda9d829b9eac6fea", "score": "0.6104147", "text": "function potentiallyCORSEnabledFetch(urlObj) {\n // TO BE IMPLEMENTED\n establishTheConnection();\n }", "title": "" }, { "docid": "a2c4bc696750a483a43e06a886a5902b", "score": "0.60896736", ...
253f1369fefa79254de01a870ad18d7e
Sets or gets the language. Used in conjunction with the property messages. Property type: boolean
[ { "docid": "d151f6715b11feaf888aebdf8404c29c", "score": "0.0", "text": "get keyboardNavigation() {\n\t\treturn this.nativeElement ? this.nativeElement.keyboardNavigation : undefined;\n\t}", "title": "" } ]
[ { "docid": "93e76965300e68e7a5fedb37f5b09110", "score": "0.6746043", "text": "get language () {\r\n\t\treturn this._language;\r\n\t}", "title": "" }, { "docid": "2cf89c464e4f1893ee19c5074956fce1", "score": "0.6512211", "text": "get language() {\n\t\treturn this.__language;\n\t}", ...
ad0312c104298bff802a307bf383f0a3
hide mute toggle if the current tech doesn't support volume control
[ { "docid": "9ad99f9c63ac07118f29a88d11dbbe42", "score": "0.7128578", "text": "function updateVisibility() {\n if (player.tech_ && player.tech_['featuresVolumeControl'] === false) {\n this.addClass('vjs-hidden');\n } else {\n this.removeClass('vjs-hidden');\n }\n }", "...
[ { "docid": "cb3750a2191ee5bc9ab7cff154935e7a", "score": "0.7850713", "text": "toggleVolume() {\n if (this.isMuted) {\n this.unmute();\n } else {\n this.mute();\n }\n }", "title": "" }, { "docid": "eaf4d1254784c86d03067fad24dc525f", "score": "0.7658586", "text": "f...