query
stringlengths
9
14.6k
document
stringlengths
8
5.39M
metadata
dict
negatives
listlengths
0
30
negative_scores
listlengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
private getPhoneSuccess callback function
function getPhoneSuccess(response){ return response.data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPhonesComplete(response){\n return response.data;//sends data\n }", "function onDigitsSuccess(response) {\n console.log('Digits phone number retrieved.')\n setDigitsNumber(response.phoneNumber);\n }", "function onDigitsSuccess(response) {\n console.log('Digits phon...
[ "0.71736", "0.7034118", "0.7012452", "0.6808505", "0.6608872", "0.6469388", "0.63385624", "0.6275879", "0.6174524", "0.6057152", "0.6021427", "0.5930385", "0.59275603", "0.58755314", "0.58008426", "0.5792754", "0.5791473", "0.5757849", "0.57499605", "0.57025063", "0.56920487"...
0.7936269
0
private getPhoneFailed callback function
function getPhoneFailed(error){ return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onCallEndedFailed() {\n\t\tconsole.debug('callendfailed');\n\t\tcallId = null;\n\t}", "function onCallEndedFailed() {\n\t\tconsole.debug('callendfailed');\n\t\tcallId = null;\n\t}", "function onCallEndedFailed() {\n\t\tconsole.debug('callendfailed');\n\t\tcallId = null;\n\t}", "function onCallAnswer...
[ "0.6500459", "0.6500459", "0.6500459", "0.63192177", "0.63192177", "0.62387305", "0.6214462", "0.61430436", "0.6112745", "0.60863805", "0.6023994", "0.60085607", "0.59697497", "0.59474975", "0.59236836", "0.59169996", "0.59169996", "0.58852226", "0.5873822", "0.58553994", "0....
0.76162875
0
Function to get all data associated with a fixture based on the fixture id supplied to the input box "fixture_id"
async function getFixtureData() { id = document.getElementById("fixture_id").value; if(id){ let response = await fetch('http://mysql03.comp.dkit.ie/D00196117/in_game_ratings_api/fixture/allData.php', { method: 'POST', body: JSON.stringify({id: id, account_id: 1}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async loadData() {\n this.fixtureData = await Promise.all(\n this.config.api.map(async api => {\n const fixturePath = this.getBasePath(api);\n return {\n fixturePath,\n fixtures: await this.constructor.getFixturesDataFromApi(api),\n };\n })\n );\n }", "doFi...
[ "0.648078", "0.5822047", "0.57941806", "0.57891184", "0.5763816", "0.574914", "0.5590773", "0.5568642", "0.549931", "0.5490572", "0.5477363", "0.54672533", "0.546451", "0.5463315", "0.5424573", "0.5413962", "0.53862333", "0.5338535", "0.532827", "0.53101194", "0.5271597", "...
0.60422975
1
Given a set of keys to search, and a set of chords to search for return the key with the most chords in it docs:
function topKey(keys, chords) { var counts = {}; var result = []; // for each key, count how many chords of the key match the chords the user chose _(keys).each(function(values, key, list) { counts[key] = _(values).chain().intersection(this.chords).size().value(); }, {chords: chords}); // results is now a Has...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMostUsedKey(indents) {\n\tlet result;\n\tlet maxUsed = 0;\n\tlet maxWeight = 0;\n\n\tfor (const [key, [usedCount, weight]] of indents) {\n\t\tif (usedCount > maxUsed || (usedCount === maxUsed && weight > maxWeight)) {\n\t\t\tmaxUsed = usedCount;\n\t\t\tmaxWeight = weight;\n\t\t\tresult = key;\n\t\t}\n\...
[ "0.5752008", "0.5752008", "0.5647524", "0.5226556", "0.51900357", "0.5135297", "0.50914294", "0.5049678", "0.5003309", "0.49943644", "0.49642545", "0.49614424", "0.4953125", "0.49134412", "0.49133277", "0.49106562", "0.49106002", "0.48861238", "0.48733756", "0.48265615", "0.4...
0.67465657
0
Always rounds down to nearest multiple of granularity. e.g. (194, 50) > 150
function roundToInterval(value, granularity){ return value - (value % granularity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function roundDownToGrid(v) {\n return Math.sign(v) * Math.floor(Math.abs(v));\n }", "function roundDownToGrid(v) {\n return Math.sign(v) * Math.floor(Math.abs(v));\n }", "function roundUpToGrid(v) {\n return Math.sign(v) * Math.ceil(...
[ "0.6837004", "0.67824334", "0.6776603", "0.6728419", "0.6719918", "0.67007583", "0.67007583", "0.67007583", "0.67007583", "0.66653985", "0.6649148", "0.6628939", "0.6628939", "0.6628939", "0.6628939", "0.6611267", "0.65804285", "0.65543467", "0.654515", "0.6503719", "0.647846...
0.6918479
0
Game client for interacting with the SupplyChain server
function SupplyChainClient(serverUrl, options) { this.serverUrl = serverUrl; this.options = options; this.connection = null; this.connected = false; eve.on('client.connect', _.bind(this.connect, this)); eve.on('client.newGame', _.bind(this.newGame, this)); eve.on('client.join', _.bind(t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetupClient()\n{\n dcc = gameObject.AddComponent(DailyChallengeClient);\n \n dcc.GUIManager = this;\n \n dcc.networkAddress = ip;\n dcc.networkPort = port;\n dcc.StartClient(); \n \n \n networkState = NetworkState.Connecting;\n}", "function startClient() {\n\t/**\n\t * Open...
[ "0.6628569", "0.6068606", "0.5963595", "0.59567034", "0.59529614", "0.5920769", "0.5832925", "0.5828557", "0.5751179", "0.5719243", "0.5709959", "0.57094926", "0.5702793", "0.56925565", "0.56683165", "0.56666386", "0.56651634", "0.56437486", "0.5630188", "0.5627873", "0.56270...
0.715353
0
This function accesses student enrollment records and places them into the studentEnrollment variable
function initializeEnrollmentRecords() { studentEnrollment = openStudentEnrollmentRecords(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enrollment(data, campus = campusDefault, cohort = cohortDefault) {\n var objEnrollment = {};\n var students = getStudents(data, campus, cohort);\n\n var totalStudents = getTotalStudents(students);\n var totalDropouts = getDropoutStudents(students);\n\n objEnrollment.studentsCurrentEnrolled = getStude...
[ "0.64082974", "0.60610235", "0.57755554", "0.57563984", "0.5728236", "0.5713954", "0.559209", "0.55795836", "0.5445938", "0.5438143", "0.54258704", "0.54129237", "0.5402043", "0.53980005", "0.53926265", "0.53872234", "0.5381929", "0.5376147", "0.53292114", "0.5297953", "0.529...
0.76638925
0
This function displays the output of all the gender per zip counts
function printZipGenderCount() { document.write("53711: Males: " + male53711Count + " Females: " + female53711Count + "\n53712: Males: " + male53712Count + " Females: " + female53712Count + "\n53713: Males: " + male53713Count + " Females: " + female53713Count + "\n53714: Males: " + male53714...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function numFemales(){\n for (let i = 0; i < customers.length; i++) {\n if (customers[i].gender === \"female\"){\n summaryStatistics.numFemales.value++;\n };\n }\n }", "function numOfMales(){\n for (let i = 0; i < customers.length; i++) {\n ...
[ "0.61502117", "0.6108667", "0.59484196", "0.57945496", "0.5744952", "0.5624756", "0.54716426", "0.54174924", "0.53422594", "0.5332639", "0.5279886", "0.522421", "0.5163767", "0.51620555", "0.51520026", "0.5147749", "0.5144159", "0.5143392", "0.51343316", "0.50862056", "0.5036...
0.7743163
0
This function displays the output of the total of each gender count
function printGenderCount() { document.write("Total Males: " + maleCount + "\nTotal Females: " + femaleCount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function numFemales(){\n for (let i = 0; i < customers.length; i++) {\n if (customers[i].gender === \"female\"){\n summaryStatistics.numFemales.value++;\n };\n }\n }", "function numOfMales(){\n for (let i = 0; i < customers.length; i++) {\n ...
[ "0.7584349", "0.73458904", "0.711506", "0.69561386", "0.66289383", "0.64770275", "0.6448967", "0.64381975", "0.6338493", "0.6303563", "0.62578547", "0.62458354", "0.62079227", "0.6186462", "0.61424387", "0.61154187", "0.60999686", "0.6088204", "0.6080565", "0.6066596", "0.603...
0.7726209
0
call callback with the configuration value as argument. If the configuration value is not defined it uses the default value instead
function getConfiguration(callback, errback) { var item = browser.storage.local.get(DEFAULT_CONFIGURATION) item.then( function(value) { callback(value) }, function(error) { errback ? errback(error): logError(error) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set Callback(value) {}", "function pbsConfigDefault(var_value, default_value) {\n\treturn (var_value)? var_value : default_value;\n}", "function configure(param, value) {\n return (param in (params===undefined ? {} : params)) ? params[param] : value;\n }", "function assignParameterValue(argument, default...
[ "0.57299024", "0.56939477", "0.5655783", "0.55325097", "0.55194765", "0.5510816", "0.5510816", "0.5510816", "0.5510816", "0.5510816", "0.5510816", "0.5510816", "0.5510816", "0.5510816", "0.54293823", "0.5386203", "0.5386203", "0.5328422", "0.52984226", "0.52984226", "0.529842...
0.58443063
0
Create a function that takes an id or DOM element and an array of contents if an id is provided, select the element Add divs to the element Each div's content must be one of the items from the contents array The function must remove all previous content from the DOM element provided Throws if: The provided first parame...
function solve (element, contents) { var validator = { checkUndefined: function (element) { if (typeof element === 'undefined') { throw new Error(element + ' cannot be undefined'); } }, checkIfString: function (element) { if (typeof element !== 'string'){ throw new Error...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function solve() {\r\n\r\n return function (element, contents){\r\n var div = document.createElement('div'),\r\n tempDiv = document.createElement('div'),\r\n fragmentToAdd = document.createDocumentFragment(),\r\n el;\r\n //VALIDATION:\r\n if(!element || !con...
[ "0.6196338", "0.5996142", "0.58195144", "0.567718", "0.5563663", "0.5539463", "0.55176353", "0.5498888", "0.54936004", "0.54163307", "0.537826", "0.53584707", "0.5354206", "0.53433174", "0.5333628", "0.5328838", "0.5272233", "0.52660275", "0.5217244", "0.5200043", "0.5194124"...
0.69288087
0
Function to update yawnTag
function updateYawnTag(val){ document.getElementById('yawnTag').innerHTML = 'Yawns Counted = ' + val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "update() {\n let life = document.getElementById(\"life\");\n let level = document.getElementById(\"level\");\n life.innerHTML = this.life;\n level.innerHTML = this.level;\n if (this.y === -22.5) {\n this.increaseLevel();\n }\n }", "function updateLife(diff)...
[ "0.5639888", "0.56179404", "0.54255074", "0.5302315", "0.52463365", "0.5167379", "0.5167379", "0.5167379", "0.5142966", "0.5130442", "0.5130442", "0.51193845", "0.51121", "0.5098104", "0.50833887", "0.5065472", "0.50610393", "0.50609034", "0.50576586", "0.50576586", "0.505033...
0.739624
0
Function to smooth an array by a smoothing amount
function smoothing(arr, smooth) { return arr.slice(arr.length - smooth, arr.length).reduce((prev, curr) => prev + curr) / smooth }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function smooth(array) {\r\n\treturn savitskyGolaySmooth(array);\r\n}", "function smooth(d, w) {\n var result = [];\n for (var i = 0, l = d.length; i < l; ++i) {\n var mn = Math.max(0, i - 5 * w),\n mx = Math.min(d.length - 1, i + 5 * w),\n s = 0.0;\n ...
[ "0.7373103", "0.7111175", "0.70811456", "0.6613626", "0.6513711", "0.6351923", "0.63110715", "0.6300981", "0.6255588", "0.6141578", "0.6129487", "0.6129487", "0.6017272", "0.6014017", "0.5999411", "0.59650874", "0.59645945", "0.59645945", "0.5859516", "0.58463275", "0.5804128...
0.868832
0
Base64 encoded string for beep sound
function beep() { var snd = new Audio("data:audio/wav;base64,//uQRAAAAWMSLwUIYAAsYkXgoQwAEaYLWfkWgAI0wWs/ItAAAGDgYtAgAyN+QWaAAihwMWm4G8QQRDiMcCBcH3Cc+CDv/7xA4Tvh9Rz/y8QADBwMWgQAZG/ILNAARQ4GLTcDeIIIhxGOBAuD7hOfBB3/94gcJ3w+o5/5eIAIAAAVwWgQAVQ2ORaIQwEMAJiDg95G4nQL7mQVWI6GwRcfsZAcsKkJvxgxEjzFUgfHoSQ9Qq7KNwqHwuB13MA4a1q/D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function beep() {\n\tvar snd = new Audio(\n\t\t\"data:audio/wav;base64,//uQZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAUAAAYpgAGBgYGFBQUFBQfHx8fHy0tLS0tPz8/Pz9RUVFRUV9fX19fampqamp4eHh4eIeHh4eHlZWVlZWlpaWlpbKysrKywMDAwMDLy8vLy9fX19fX4uLi4uLr6+vr6/v7+/v7//////8AAAA8TEFNRTMuOThyBK8AAAAAAAAAADQgJAXQTQAB...
[ "0.72608", "0.7249468", "0.7249468", "0.7244288", "0.7131933", "0.7124676", "0.63437295", "0.6175723", "0.60465634", "0.5996069", "0.59631664", "0.59631664", "0.5953183", "0.59458625", "0.59432703", "0.5931335", "0.5930828", "0.5920012", "0.59037733", "0.5887708", "0.5887708"...
0.73138916
0
Function for open the picker for both top and worst level selection
function openTopNWorstPicker(e) { var sectionIndex = e.source.index; var plantPicker = Alloy.createWidget("general.picker", "widget", { onDone : function(selectedValue, index) { filter_length = index + 1; emptySection($.rankTable, sectionIndex); if (e.source.index == 0) { $.topLbl.text = selectedValue...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onOpen() {\n SpreadsheetApp.getUi().createMenu('Picker')\n .addItem('Start', 'showPicker')\n .addToUi();\n}", "async open() {\n if (this.disabled || this.isExpanded) {\n return;\n }\n const pickerOptions = this.generatePickerOptions();\n const picker = a...
[ "0.6695516", "0.657304", "0.63339937", "0.63265216", "0.6194079", "0.6163941", "0.60927755", "0.6042777", "0.60313576", "0.60153306", "0.59520334", "0.5931042", "0.59206885", "0.5901859", "0.59015894", "0.5803223", "0.5796122", "0.57840115", "0.57497835", "0.5693052", "0.5674...
0.69579834
0
Request the metadata from Bing Maps that we will use to set the map tile image URLs.
getMetadata () { let metadata_url = `//dev.virtualearth.net/REST/V1/Imagery/Metadata/${this.type}?output=json&include=ImageryProviders&key=${this.key}`; return new Promise( (resolve, reject) => { fetch(metadata_url).then( (response) => { return response.json(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMapInfo() {\n var data = scene.cache.json.get(\"map\");\n var mapData = {\n tileWidth: data.tile_width,\n tileHeight: data.tile_height,\n layer: data.layers[0].data,\n mapWidth: data.width, // Width of the entire map\n mapHeight: data.height, // Height of the entire map\n centerX: d...
[ "0.58784497", "0.5791834", "0.5680677", "0.56205535", "0.56112653", "0.5562425", "0.5541727", "0.55048746", "0.5501457", "0.550046", "0.54952383", "0.5464765", "0.5451057", "0.54399973", "0.54367876", "0.54109", "0.54101115", "0.5410109", "0.5381604", "0.53646976", "0.5363289...
0.74125826
0
Convert a quadkey into a Bing Maps URL.
quadkeyToUrl ( quadkey ) { // Must have called getMetadata ahead of time. // The BingMaps documentation suggests that you randomize the subdomain // to distrubute the load across several servers. However, from my testing // it hurts the in browser caching if the subdomain changes for th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateBingMapUrl(lat, long){\n return \"https://www.bing.com/maps/embed?h=400&w=500&cp=\" + lat + \"~\" + long + \"&lvl=11&typ=d&sty=r&src=SHELL&FORM=MBEDV8\";\n}", "function createURL() {\n let apiKey = 'AIzaSyDTuJCB4eWdnFlpf2_aqwMHI8B4KoDDscI'\n let urlAddress = address.replace(\" \",\"...
[ "0.5982471", "0.58305174", "0.5751051", "0.568648", "0.56215256", "0.5514658", "0.54903656", "0.5470468", "0.5435243", "0.5425092", "0.54090494", "0.5403486", "0.5395256", "0.5392906", "0.53401995", "0.5329714", "0.5287121", "0.5250896", "0.525068", "0.51901126", "0.51607573"...
0.79528004
0
this code doesn't look great, but it gets the ECS modules ready to send to ./loadECS.js alright if things aren't working well in other browsers this may be why
function getECSfiles() { server.emit('loadingECS'); server.once('ecsFiles', (directories) => //names of the files in the folders to load { //put all of the modules to load in one array let ECSfileNames = [].concat.apply([], Object.values(directories)); //load loadECS and all of the modules requir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function main() {\n if(window.__INITIAL_DATA__.loadedComponents && window.location.protocol != 'http:' && window.location.protocol != 'https:') {\n // User downloaded the web page. Let him see a static version\n // Only possible with SSR enabled (loadedComponentsMap != null)\n return;...
[ "0.58806527", "0.5666217", "0.5648892", "0.54246414", "0.5423113", "0.540844", "0.54011023", "0.5392198", "0.5382377", "0.5329677", "0.52951944", "0.52889544", "0.5278018", "0.5267376", "0.5248075", "0.52474296", "0.52255493", "0.5208876", "0.51951796", "0.51942194", "0.51897...
0.6814247
0
toMS(duration) Converts given `duration` to a millisecond string. toMS('fast') //=> '400ms' toMS(10) //=> '10ms'
function toMS(duration) { var i = duration; // Allow for string durations like 'fast'. if ($.fx.speeds[i]) { i = $.fx.speeds[i]; } return unit(i, 'ms'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toMS(duration) {\n var i = duration;\n\n // Allow string durations like 'fast' and 'slow', without overriding numeric values.\n if (typeof i === 'string' && (!i.match(/^[\\-0-9\\.]+/))) { i = $.fx.speeds[i] || $.fx.speeds._default; }\n\n return unit(i, 'ms');\n }", "function toMS(duration) ...
[ "0.8169797", "0.8169797", "0.8169797", "0.8136519", "0.8124766", "0.81231135", "0.8083791", "0.77083397", "0.7691709", "0.76469404", "0.7460335", "0.74351704", "0.73758304", "0.7255533", "0.7231144", "0.7211567", "0.71889025", "0.71539164", "0.7102099", "0.7038987", "0.694881...
0.8190718
0
calculate gaussian blur adapted from
function gaussianBlur(img, pixels, amount) { var width = img.width; var width4 = width << 2; var height = img.height; if (pixels) { var data = pixels.data; // compute coefficients as a function of amount var q; if (amount < 0.0) { amount = 0.0; } if (amount >= 2.5) { q = 0.98711 * amount - 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function blur(){\n let weights = [\n 1/9,1/9,1/9,\n 1/9,1/9,1/9,\n 1/9,1/9,1/9\n ];\n convolucion(ImageDataTemporal,weights,1);\n }", "function buildBlurKernel(r){var radius=r*3.5|0;radius=radius<1?1:radius<248?radius:248;if(blurRad...
[ "0.69447756", "0.658283", "0.6449395", "0.6259419", "0.610067", "0.610067", "0.610067", "0.610067", "0.610067", "0.60924655", "0.60924655", "0.60377765", "0.60174817", "0.60091037", "0.60091037", "0.60091037", "0.60091037", "0.60091037", "0.60091037", "0.6009088", "0.6004172"...
0.7255848
0
ensure an RGB value isn't negative / over 255
function checkRGBBoundary(val) { if (val < 0) { return 0; } else if (val > 255) { return 255; } else { return val; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static clampRGB(val) {\n if (val < 0) { return 0; }\n if (val > 255) { return 255; }\n return val;\n }", "checkRGB(node) {\n if (this.state.denyRGB) {\n if (node.key && /^rgb(a)?$/i.test(node.key) && node.nodes.length > 2) {\n let fix = '';\n const firstV...
[ "0.7529465", "0.6591432", "0.6559256", "0.6495853", "0.6453856", "0.64325476", "0.6370052", "0.6363486", "0.6333241", "0.62736356", "0.6266924", "0.62522954", "0.6234825", "0.6185597", "0.61805844", "0.61638564", "0.6123524", "0.61133057", "0.60890216", "0.60756516", "0.59946...
0.7813556
0
ensure an RGB value isn't negative / over 255
function checkRGBBoundary(val) { if (val < 0) { return 0; } else if (val > 255) { return 255; } else { return val; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static clampRGB(val) {\n if (val < 0) { return 0; }\n if (val > 255) { return 255; }\n return val;\n }", "checkRGB(node) {\n if (this.state.denyRGB) {\n if (node.key && /^rgb(a)?$/i.test(node.key) && node.nodes.length > 2) {\n let fix = '';\n const firstV...
[ "0.7530992", "0.65924907", "0.65602887", "0.64955646", "0.645501", "0.643319", "0.6373081", "0.6364099", "0.63337886", "0.6273486", "0.6269196", "0.6253265", "0.6236825", "0.6187501", "0.618356", "0.6166267", "0.61251795", "0.6115087", "0.60917556", "0.6078929", "0.5995228", ...
0.7814668
1
add specified attribute name with specified value to passed object
function addAttribute(obj, name, value) { var newAttr = document.createAttribute(name); newAttr.nodeValue = value; return obj.setAttributeNode(newAttr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function newAttribute(a)\n{\n\ta.addNew = \"hello new attribute !\";//attribute will be added to object\n}", "addAttribute(name, value) {\r\n\tthis.attributes.push({name: name, value: value});\r\n }", "setAttribute(name, value) {\n this.attributes[name] = value;\n }", "addAttribute(key, value) { }", ...
[ "0.77072215", "0.74261475", "0.73184544", "0.7207894", "0.7174252", "0.7125878", "0.70767313", "0.7016836", "0.69344556", "0.6818672", "0.6758867", "0.67067724", "0.6693726", "0.6693726", "0.6693726", "0.6693726", "0.6693726", "0.6693726", "0.6693726", "0.6693726", "0.6693726...
0.78250057
0
remove any Paintbrush classes from the reference image
function removeClasses(obj) { // get classes of the reference image var classList = (obj.className.toLowerCase()).split(' '); for (var i = 0; i < classList.length; i++) { // clean up any existing filter-* classes if (classList[i].substr(0, 7) == "filter-") { removeClass(obj, classList[i]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeTransparentBGClasses() {\n this.customizerService.transparent_colors.forEach((_) => {\n this.renderer.removeClass(this.document.body, _.class);\n });\n this.customizerService.transparent_colors_with_shade.forEach((_) => {\n this.renderer.removeClass(this.document.bo...
[ "0.6642338", "0.6366469", "0.63661665", "0.63179535", "0.6304693", "0.62173176", "0.62052804", "0.6100898", "0.6086822", "0.6086822", "0.6080873", "0.6074995", "0.6060653", "0.60446036", "0.6019657", "0.59991837", "0.59958297", "0.5985146", "0.59834397", "0.59779006", "0.5963...
0.6669163
0
stash a copy of the original image in the DOM for later use
function stashInDom(img, originalSuffix) { var orig = "pb-original-" + originalSuffix; // make sure we're not re-adding on repeat calls if (!document.getElementById(orig)) { // create the stashed img element var original = document.createElement("img"); // set the attributes original.src = img.src; or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function revertImage(){\n var newImage = document.querySelector(\"#mainImage\"); //set the query selector to the big middle picture of page\n newImage.src = \"assets/succulents-1.jpg\"; //change its source \n}", "handleImageLoaded() {\n var c = ReactDOM.findDOMNode(this.controls.current)\n c....
[ "0.6716545", "0.6605419", "0.63888586", "0.63829035", "0.6291474", "0.6205501", "0.61038804", "0.6098328", "0.60773194", "0.6055165", "0.6038414", "0.60310614", "0.6029705", "0.6028054", "0.59815085", "0.5949829", "0.59476006", "0.5934094", "0.59254086", "0.59169585", "0.5898...
0.7158295
0
organizes jobs by queued, running, completed, and activeIds
function groupJobs() { queuedJobs = [], runningJobs = [], completedJobs = [], activeIds = []; for (var i=0; i<self.jobs.length; i++) { var job = self.jobs[i]; if (job.id !== null && job.status === 'queued') { queuedJobs.push(job); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateJobsState () {\n // remove state of a job which is no longer exist in active or queue or history\n for (const stamp in this.activeJobs) {\n if (this.srvState.Active.findIndex((jc) => jc.SubmitStamp === stamp) < 0) this.activeJobs[stamp] = ''\n }\n for (const stamp in this.queueJobs...
[ "0.5653577", "0.5594395", "0.5588567", "0.55755985", "0.5471699", "0.5444857", "0.53408873", "0.52971244", "0.52406585", "0.5212559", "0.52083004", "0.5142471", "0.5138282", "0.51310533", "0.5121345", "0.5094848", "0.509458", "0.50864494", "0.507556", "0.50736606", "0.5070630...
0.8192443
0
After staring at my implementation for hours, I finally noticed that fetching the seats for sale and my customer record could be done in parllel to make the whole function execute faster. It took quite a bit of time on Stack Overflow to figure out how to accomplish this but I eventually figured out that I could set som...
function bookFlightsForHolidays() { var seats = undefined, me = undefined; lib.fetchAvailSeatsFromDB(function(err, s) { seats = s; }); lib.fetchMyCustRecord(function(err, m) { me = m; }); function checkForResults() { if(seats && me) { var cheapSeat = _.reduce(seats, bookFli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function checkSystemRequest(exitTCompare,emptyS) {\n var blockedRow;\n var flagSystemReq;\n var outPutCheckSystemReq=[];\n\n for (var k = 0; k < Config.x; k++) {\n for (var p = 0; p < Config.y; p++) {\n if (k == 1 || k == 3 || k == 6 || k == 8) {//just if it is a blocking row\n ...
[ "0.58850044", "0.5686906", "0.56248385", "0.5607783", "0.55779976", "0.55074453", "0.546616", "0.54405993", "0.541808", "0.5376147", "0.53396714", "0.5334295", "0.531089", "0.5296987", "0.5289691", "0.5283097", "0.52716666", "0.5219247", "0.5213907", "0.52058303", "0.5203753"...
0.59887946
0
Function gets number of discs user has reserved, and updates a span in the grid1nav with that number.
function Utils_UpdateNumReservedDiscs() { let uid = Auth_GetUserID(); let $cartPageLink = $('#show-cart-page'); let $myReservations = $('.grid-1-nav #my-reservations-count'); let text = 'My Reservations '; // if uid exists, user logged in, update count if (uid) { Utils_GetNumReservedDis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeUserCounter(userCount) {\n document.getElementById('room-users-counter').innerHTML = userCount + ' users in this room';\n}", "function recalcAndDisplayNumGens() {\n if (FanChartView.numGens2Display < 3) {\n FanChartView.numGens2Display = 3;\n showTemporaryMessageBelow...
[ "0.5885937", "0.58115524", "0.57512623", "0.5648425", "0.5640751", "0.55825686", "0.5554919", "0.554404", "0.55056655", "0.549249", "0.5441573", "0.53774333", "0.536859", "0.536291", "0.53220934", "0.5303148", "0.53002095", "0.5284921", "0.52824426", "0.52777445", "0.5259804"...
0.7031392
0
Function gets current page path (using jQuery) and returns it.
function Utils_GetPagePath() { return $(location).attr('pathname'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCurrentPage() {\n\n\t// remove trailing slash\n\tvar result = window.location.pathname.replace(/\\/$/, '');\n\n\treturn result;\n}", "function getCurrentPage()\n{\n\tvar path = window.location.pathname;\n\tvar page = path.substring(path.lastIndexOf('/') + 1);\n\treturn page;\n}", "function getPageL...
[ "0.8046583", "0.77029806", "0.767898", "0.750975", "0.74148405", "0.7357921", "0.7312474", "0.72126544", "0.71914274", "0.7104943", "0.7088281", "0.7082794", "0.67678785", "0.67408085", "0.6685237", "0.66087437", "0.6589491", "0.65456825", "0.65297025", "0.6525294", "0.651803...
0.8569276
0
==== validate form tao bai viet
function validateTaoBV() { var tieude = document.forms["taobv"]["tieude"].value; var id_khoahoc = document.forms["taobv"]["id_khoahoc"].value; if(tieude == "" || tieude.length < 5){ document.getElementById("demo").innerHTML = " Không được để trống , dữ liệu phải trên 5 kí tự !!!"; return false; } if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function abt_validate()\n{\n\tvar abt_vor = document.forms[\"neue_abt\"][\"vorname_abt\"].value;\n\tvar abt_name =document.forms[\"neue_abt\"][\"neue_abteilung\"];\n\tvar abtReturn = FormAbtNameValidate(abt_name) ;\n\t\n\tif (!abt_vor && abt_name.value == \"\")\n\t{\n\t\t$msg = \"Bitte füllen Sie folgende felder a...
[ "0.7124754", "0.7091371", "0.6979068", "0.69706285", "0.69658613", "0.69588995", "0.6945848", "0.68829304", "0.68756", "0.6868507", "0.68607956", "0.68587285", "0.68454057", "0.6845327", "0.6819746", "0.68100137", "0.6800209", "0.67957133", "0.678683", "0.67853266", "0.677360...
0.728838
0
Returns all enabled cameras in the scene.
static get allCameras() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getInactiveCameras() {\n return this.cameras.filter(camera => !camera.active);\n }", "function Update () {\n\tif(g == GameState.WIN){\n\t\tvar i=0;\n\t\tfor(var c : Camera in CamList){\n\t\t\tif(i == 1){\n\t\t\t\tc.enabled = true;\n\t\t\t\tMainCamera = c;\n\t\t\t}\n\t\t\tc.gameObject.SetActiveRecursively(i =...
[ "0.7134381", "0.622602", "0.60341877", "0.58995867", "0.58920157", "0.5866359", "0.5850909", "0.5830959", "0.5657797", "0.5636637", "0.5602767", "0.5582642", "0.55737317", "0.5524095", "0.55215424", "0.55215424", "0.55104214", "0.5446397", "0.54456204", "0.53891504", "0.53667...
0.6605802
1
The number of cameras in the current scene.
static get allCamerasCount() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static set allCamerasCount(value) {}", "getNumberOfImages() {\n return this.container.children().length;\n }", "function numCards() {\r\n\t\t\tvar size = 0;\r\n\t\t\t_.each(Cards, function() {\r\n\t\t\t\tsize++;\r\n\t\t\t})\r\n\t\t\treturn size;\r\n\t\t}", "get splitViewCount() {\n return Nu...
[ "0.67095757", "0.63027394", "0.6188563", "0.6131936", "0.60837317", "0.6078169", "0.6049935", "0.60360277", "0.60360277", "0.6011397", "0.6006864", "0.5935342", "0.5924479", "0.59214175", "0.5914032", "0.590784", "0.590784", "0.590784", "0.590784", "0.5848268", "0.58257794", ...
0.7007855
0
The number of cameras in the current scene.
static set allCamerasCount(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static get allCamerasCount() {}", "getNumberOfImages() {\n return this.container.children().length;\n }", "function numCards() {\r\n\t\t\tvar size = 0;\r\n\t\t\t_.each(Cards, function() {\r\n\t\t\t\tsize++;\r\n\t\t\t})\r\n\t\t\treturn size;\r\n\t\t}", "get splitViewCount() {\n return Number(...
[ "0.70072", "0.6302229", "0.61890256", "0.6132157", "0.60846406", "0.60783654", "0.60495174", "0.6035483", "0.6035483", "0.60118127", "0.60069233", "0.5935476", "0.59244376", "0.5921595", "0.59138626", "0.59076947", "0.59076947", "0.59076947", "0.59076947", "0.5847096", "0.582...
0.67099047
1
Event that is fired before any camera starts culling.
static get onPreCull() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static set onPreCull(value) {}", "beforeCollide() {}", "function render() {\n //updateTime();\n let delta = clock.getDelta();\n\n if (_datetime === undefined) {\n _datetime = new Date();\n } else {\n _datetime = new Date(_datetime.getTime() + delta*1000);\n }\n\n cameraControls....
[ "0.6120644", "0.5671749", "0.5584144", "0.55601233", "0.5554914", "0.5411426", "0.5398497", "0.53900856", "0.53753245", "0.5374613", "0.53622043", "0.5257431", "0.525612", "0.5213324", "0.51981986", "0.5192946", "0.51853067", "0.5183783", "0.5172606", "0.5172487", "0.5160003"...
0.60787064
1
Event that is fired before any camera starts culling.
static set onPreCull(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static get onPreCull() {}", "beforeCollide() {}", "function render() {\n //updateTime();\n let delta = clock.getDelta();\n\n if (_datetime === undefined) {\n _datetime = new Date();\n } else {\n _datetime = new Date(_datetime.getTime() + delta*1000);\n }\n\n cameraControls.updat...
[ "0.6078498", "0.5671313", "0.55838525", "0.5561673", "0.55539006", "0.5412392", "0.53982294", "0.5389705", "0.53757226", "0.53747207", "0.5363271", "0.5256883", "0.52564514", "0.5212272", "0.5196845", "0.519375", "0.5184594", "0.5182147", "0.5173904", "0.51721084", "0.5160969...
0.6120462
0
The rendering path that is currently being used (Read Only).
get actualRenderingPath() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get renderingPath() {}", "set actualRenderingPath(value) {}", "set renderingPath(value) {}", "get path(){\n if( this._viewClass ){\n return this._viewClass.path || this.id\n }else if(this.__view) {\n return this.__view.path || this.__view.getAttribute('path') || this.id\n ...
[ "0.8532978", "0.7152245", "0.7145947", "0.6850179", "0.66147953", "0.630295", "0.6293191", "0.6293191", "0.62646717", "0.6256258", "0.6256258", "0.62138325", "0.6175425", "0.6162055", "0.61510986", "0.61193013", "0.61036044", "0.60853195", "0.60736966", "0.6068263", "0.604847...
0.84596
1
Matrix that transforms from camera space to world space (Read Only).
get cameraToWorldMatrix() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get worldToCameraMatrix() {}", "set cameraToWorldMatrix(value) {}", "set worldToCameraMatrix(value) {}", "worldToLocal(world) {\r\n let m = this.matrix;\r\n let a = m.a, b = m.c, c = m.b, d = m.d;\r\n let invDet = 1 / (a * d - b * c);\r\n let x = world.x - m.tx, y ...
[ "0.85236806", "0.8109778", "0.8071961", "0.7295536", "0.7172548", "0.7152161", "0.70264864", "0.7015201", "0.70004624", "0.69298744", "0.6870132", "0.6852349", "0.67871624", "0.67466265", "0.6732524", "0.66654646", "0.6637089", "0.65930706", "0.65588456", "0.65588456", "0.651...
0.8523848
0
Identifies what kind of camera this is.
get cameraType() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set cameraType(value) {}", "get camera() {\n return this._camera;\n }", "getCamera () {\n return this.camera;\n }", "function __device_camera(provider){\n //Private properties\n this.provider = provider;\n //Read-only properties\n this.interfaceName = provider.descriptor.interfaceName;\n this.ve...
[ "0.71567726", "0.64213115", "0.6218022", "0.6212514", "0.61452615", "0.6132651", "0.6013871", "0.59544265", "0.59359354", "0.586565", "0.5792358", "0.5788317", "0.5754196", "0.5722141", "0.5707104", "0.56903523", "0.5663976", "0.56522447", "0.56486136", "0.56279606", "0.56028...
0.80950075
0
Identifies what kind of camera this is.
set cameraType(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get cameraType() {}", "get camera() {\n return this._camera;\n }", "getCamera () {\n return this.camera;\n }", "function __device_camera(provider){\n //Private properties\n this.provider = provider;\n //Read-only properties\n this.interfaceName = provider.descriptor.interfaceName;\n this.version...
[ "0.80950075", "0.64213115", "0.6218022", "0.6212514", "0.61452615", "0.6132651", "0.6013871", "0.59544265", "0.59359354", "0.586565", "0.5792358", "0.5788317", "0.5754196", "0.5722141", "0.5707104", "0.56903523", "0.5663976", "0.56522447", "0.56486136", "0.56279606", "0.56028...
0.71567726
1
Should the camera clear the stencil buffer after the deferred light pass?
get clearStencilAfterLightingPass() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set clearStencilAfterLightingPass(value) {}", "function jglStencilCreateEnd() {\n\tcanvas.backCtx = canvas.backCanvas.getContext(\"2d\");\n\tcanvas.drawingStencil = false;\n}", "clear() {\n const gl = this._webgl.gl;\n gl.clear(gl.COLOR_BUFFER_BIT);\n gl.disable(gl.DEPTH_TEST);\n }", ...
[ "0.8172106", "0.67587173", "0.6485965", "0.6470768", "0.6422038", "0.635779", "0.63175243", "0.62610495", "0.6212187", "0.62041456", "0.6202176", "0.61677355", "0.6163682", "0.61505175", "0.6126324", "0.61217064", "0.6115735", "0.6092022", "0.6080037", "0.60603553", "0.605265...
0.78523576
1
Should the camera clear the stencil buffer after the deferred light pass?
set clearStencilAfterLightingPass(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get clearStencilAfterLightingPass() {}", "function jglStencilCreateEnd() {\n\tcanvas.backCtx = canvas.backCanvas.getContext(\"2d\");\n\tcanvas.drawingStencil = false;\n}", "clear() {\n const gl = this._webgl.gl;\n gl.clear(gl.COLOR_BUFFER_BIT);\n gl.disable(gl.DEPTH_TEST);\n }", "setS...
[ "0.78523576", "0.67587173", "0.6485965", "0.6470768", "0.6422038", "0.635779", "0.63175243", "0.62610495", "0.6212187", "0.62041456", "0.6202176", "0.61677355", "0.6163682", "0.61505175", "0.6126324", "0.61217064", "0.6115735", "0.6092022", "0.6080037", "0.60603553", "0.60526...
0.8172106
0
Number of command buffers set up on this camera (Read Only).
get commandBufferCount() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set commandBufferCount(value) {}", "function lengthBuffers (buffers) {\n return buffers.reduce((acc, buffer) => acc + buffer.length, 0)\n}", "GetCommandBuffers() {}", "static set allCamerasCount(value) {}", "static get allCamerasCount() {}", "get BufferLength() {\n return this._bufferLength;\n }", ...
[ "0.76321363", "0.61594605", "0.61012155", "0.5882106", "0.58254755", "0.58187073", "0.58180994", "0.58180994", "0.5735617", "0.56116116", "0.5588556", "0.55780286", "0.5570863", "0.55515635", "0.55515635", "0.55515635", "0.55515635", "0.55515635", "0.5520508", "0.54847026", "...
0.7753024
0
Number of command buffers set up on this camera (Read Only).
set commandBufferCount(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get commandBufferCount() {}", "function lengthBuffers (buffers) {\n return buffers.reduce((acc, buffer) => acc + buffer.length, 0)\n}", "GetCommandBuffers() {}", "static set allCamerasCount(value) {}", "static get allCamerasCount() {}", "_getInternalCounts() {\n return {\n buffers: this.json.buf...
[ "0.77506477", "0.61582065", "0.6095905", "0.5883527", "0.58273315", "0.58181155", "0.58181155", "0.58180594", "0.5730323", "0.56139", "0.55900973", "0.5580342", "0.55722165", "0.5550815", "0.5550815", "0.5550815", "0.5550815", "0.5550815", "0.5522076", "0.54862404", "0.548031...
0.7629259
1
Sets a custom matrix for the camera to use for all culling queries.
set cullingMatrix(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set worldToCameraMatrix(value) {}", "function setMatrixUniforms() {\r\n uploadModelViewMatrixToShader();\r\n\tuploadNormalMatrixToShader();\r\n uploadProjectionMatrixToShader();\r\n}", "set cameraToWorldMatrix(value) {}", "function setMatrixUniforms() {\r\n uploadModelViewMatrixToShader();\r\n up...
[ "0.6426823", "0.63585764", "0.6318391", "0.63087213", "0.63087213", "0.63087213", "0.62987757", "0.62987757", "0.6285113", "0.6217178", "0.6214725", "0.62038773", "0.618252", "0.61504126", "0.6095998", "0.5990027", "0.5955305", "0.5925869", "0.5874387", "0.58651274", "0.58195...
0.7313591
0
How and if camera generates a depth texture.
get depthTextureMode() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set depthTextureMode(value) {}", "get depthTexture() {\n return this.rt.depthTexture\n }", "function setupDepthTexture( framebuffer, renderTarget ) {\n\t\t\n\t\t\t\t\tvar isCube = ( (renderTarget && renderTarget.isWebGLRenderTargetCube) );\n\t\t\t\t\tif ( isCube ) throw new Error('Depth Texture with ...
[ "0.79083586", "0.78293496", "0.72191334", "0.7165295", "0.71216166", "0.69958645", "0.6969742", "0.6969742", "0.69662476", "0.6958807", "0.69536203", "0.69536203", "0.69523185", "0.69523185", "0.6951436", "0.6946065", "0.694171", "0.69385713", "0.69385713", "0.6935474", "0.69...
0.79063123
1
How and if camera generates a depth texture.
set depthTextureMode(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get depthTextureMode() {}", "get depthTexture() {\n return this.rt.depthTexture\n }", "function setupDepthTexture( framebuffer, renderTarget ) {\n\t\t\n\t\t\t\t\tvar isCube = ( (renderTarget && renderTarget.isWebGLRenderTargetCube) );\n\t\t\t\t\tif ( isCube ) throw new Error('Depth Texture with cube ...
[ "0.79063123", "0.78293496", "0.72191334", "0.7165295", "0.71216166", "0.69958645", "0.6969742", "0.6969742", "0.69662476", "0.6958807", "0.69536203", "0.69536203", "0.69523185", "0.69523185", "0.6951436", "0.6946065", "0.694171", "0.69385713", "0.69385713", "0.6935474", "0.69...
0.79083586
0
Mask to select which layers can trigger events on the camera.
get eventMask() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set eventMask(value) {}", "function Start()\n{\n\tlayerMask =~ layerMask; \n}", "static SetLayerCollisionMask() {}", "function layerMask() {\n\tvar idMk = charIDToTypeID( \"Mk \" );\n\t var desc3 = new ActionDescriptor();\n\t var idNw = charIDToTypeID( \"Nw \" );\n\t var idChnl = charIDToTypeID...
[ "0.6131697", "0.5880192", "0.577547", "0.5702034", "0.56883544", "0.5544486", "0.5526442", "0.5505962", "0.5435756", "0.54332495", "0.5409674", "0.5312856", "0.5246812", "0.524569", "0.5237379", "0.52337813", "0.52145666", "0.5169343", "0.51557213", "0.5114192", "0.51103956",...
0.6215542
0
Mask to select which layers can trigger events on the camera.
set eventMask(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get eventMask() {}", "function Start()\n{\n\tlayerMask =~ layerMask; \n}", "static SetLayerCollisionMask() {}", "function layerMask() {\n\tvar idMk = charIDToTypeID( \"Mk \" );\n\t var desc3 = new ActionDescriptor();\n\t var idNw = charIDToTypeID( \"Nw \" );\n\t var idChnl = charIDToTypeID( \"C...
[ "0.6215542", "0.5880192", "0.577547", "0.5702034", "0.56883544", "0.5544486", "0.5526442", "0.5505962", "0.5435756", "0.54332495", "0.5409674", "0.5312856", "0.5246812", "0.524569", "0.5237379", "0.52337813", "0.52145666", "0.5169343", "0.51557213", "0.5114192", "0.51103956",...
0.6131697
1
The far clipping plane distance.
get farClipPlane() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get calculatedDistance()\n {\n this._ensureValid();\n\n return this.calculatedLength;\n }", "getMagnitude() {\n\t\treturn Point.getDistance(new Point(0, 0), this);\n\t}", "get nearClipPlane() {}", "measureDistance() {\n this._lastDistance = Infinity;\n return this._lastDistance;\n }"...
[ "0.6365434", "0.6269631", "0.61720073", "0.61521345", "0.6094677", "0.6069811", "0.59412754", "0.5898335", "0.5883707", "0.58267343", "0.58235633", "0.5792335", "0.5778757", "0.5759749", "0.5722488", "0.57212394", "0.57123727", "0.5674681", "0.5670255", "0.5646205", "0.563546...
0.6526956
0
The near clipping plane distance.
get nearClipPlane() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "distance() {\n if (!this.previous()) { return 0; }\n const sqDis = Math.pow(this.previous().x - this.current().x, 2) + Math.pow(this.previous().y - this.current().y, 2);\n return Math.sqrt(sqDis);\n }", "distance() {\n const {x, y} = getPointArguments(arguments)\n return Math.sqrt((this._x - x) *...
[ "0.648862", "0.63114965", "0.62283057", "0.616389", "0.61433214", "0.61257935", "0.61188394", "0.60995996", "0.6081821", "0.6079426", "0.605573", "0.60518366", "0.60126066", "0.6009345", "0.6003677", "0.59931386", "0.5988405", "0.5976718", "0.5951327", "0.5944435", "0.5938581...
0.71145165
0
Get or set the raw projection matrix with no camera offset (no jittering).
get nonJitteredProjectionMatrix() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get projectionMatrix() {}", "set nonJitteredProjectionMatrix(value) {}", "set projectionMatrix(value) {}", "ResetProjectionMatrix() {}", "getViewProjMatrix() {\n const res = mat4.create()\n return mat4.multiply(res, this.projection, this.view)\n }", "get projection() {\n\n // Compute ...
[ "0.7801668", "0.7486842", "0.72532505", "0.7141581", "0.70435166", "0.6820373", "0.6787604", "0.6654838", "0.66081685", "0.6538363", "0.6496583", "0.6452563", "0.64440596", "0.6404434", "0.64035463", "0.62851644", "0.6282996", "0.62690115", "0.62285095", "0.6140165", "0.61371...
0.7762862
1
Opaque object sorting mode.
get opaqueSortMode() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set opaqueSortMode(value) {}", "get transparencySortMode() {}", "set transparencySortMode(value) {}", "setSortingEnabled(enable) {\n this.native.setProperty('sortingEnabled', enable);\n }", "function sort() {\n\t\t\t\t\tupdateStyle();\n\t\t\t\t\tif (order === ORDER.NONE) {\n\t\t\t\t\t\ttableContr...
[ "0.8077292", "0.75442773", "0.7166526", "0.6304954", "0.61138105", "0.61138105", "0.60829216", "0.60692257", "0.6012625", "0.59601015", "0.5928104", "0.5928104", "0.59048855", "0.58793896", "0.5863293", "0.5850937", "0.5848785", "0.5785106", "0.5785106", "0.5779146", "0.57721...
0.84129876
0
Opaque object sorting mode.
set opaqueSortMode(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get opaqueSortMode() {}", "get transparencySortMode() {}", "set transparencySortMode(value) {}", "setSortingEnabled(enable) {\n this.native.setProperty('sortingEnabled', enable);\n }", "function sort() {\n\t\t\t\t\tupdateStyle();\n\t\t\t\t\tif (order === ORDER.NONE) {\n\t\t\t\t\t\ttableController...
[ "0.84129876", "0.75442773", "0.7166526", "0.6304954", "0.61138105", "0.61138105", "0.60829216", "0.60692257", "0.6012625", "0.59601015", "0.5928104", "0.5928104", "0.59048855", "0.58793896", "0.5863293", "0.5850937", "0.5848785", "0.5785106", "0.5785106", "0.5779146", "0.5772...
0.8077292
1
Is the camera orthographic (true) or perspective (false)?
get orthographic() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "orthographic_camera() {\n this.active_camera = this.ortho_camera;\n this.sceneGraph.background = null;\n }", "set orthographic(value) {}", "function camera_perspective_view() {\n camera.rotation.x += Math.PI/4;\n camera.position.z = 6;\n camera.position.y = 2;\n camera.lookAt(new T...
[ "0.6621285", "0.6469198", "0.6258487", "0.6257296", "0.6243107", "0.6102482", "0.6072768", "0.6037633", "0.60294145", "0.6003267", "0.59571993", "0.59444547", "0.588896", "0.5881699", "0.58440816", "0.58440816", "0.58431005", "0.5838618", "0.58330417", "0.5804928", "0.5796495...
0.7095905
0
Camera&039;s halfsize when in orthographic mode.
get orthographicSize() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set orthographicSize(value) {}", "function resize(){\r\n\t//var viewSize = 500;\r\n\r\n\trenderer.setSize( window.innerWidth, window.innerHeight );\r\n\r\n\tvar aspectRatio = window.innerWidth / window.innerHeight;\r\n\r\n\tif( window.innerHeight > 0 && window.innerWidth > 0 ){\r\n\t\t\r\n\t\tif ( aspectRatio < ...
[ "0.7789469", "0.70677155", "0.6991682", "0.6787323", "0.6606322", "0.6600776", "0.6587293", "0.65793777", "0.65764594", "0.65736943", "0.6546008", "0.6545389", "0.65399265", "0.65030336", "0.64884996", "0.6470684", "0.64628834", "0.6455149", "0.6455149", "0.64349145", "0.6423...
0.7786344
1
Camera&039;s halfsize when in orthographic mode.
set orthographicSize(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get orthographicSize() {}", "function resize(){\r\n\t//var viewSize = 500;\r\n\r\n\trenderer.setSize( window.innerWidth, window.innerHeight );\r\n\r\n\tvar aspectRatio = window.innerWidth / window.innerHeight;\r\n\r\n\tif( window.innerHeight > 0 && window.innerWidth > 0 ){\r\n\t\t\r\n\t\tif ( aspectRatio < 1 )\r...
[ "0.77852607", "0.7067151", "0.69919324", "0.67870873", "0.66057754", "0.66004676", "0.65865004", "0.65798664", "0.6576088", "0.6573252", "0.65448976", "0.654473", "0.653939", "0.65021396", "0.64878774", "0.6469667", "0.646247", "0.6454114", "0.6454114", "0.64341325", "0.64219...
0.77880234
0
How wide is the camera in pixels (Read Only).
get pixelWidth() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set pixelWidth(value) {}", "function getWidth() {\n return w;\n }", "get screenWidthInWorldPixels()\n {\n return this.screenWidth / this.scale.x;\n }", "getWidth() {\n return this.game.width / this.zoom;\n }", "function winWidth() { return getWH('Width'); }", "get screenW...
[ "0.7259333", "0.70269406", "0.69603527", "0.68302625", "0.6746671", "0.66717535", "0.6670983", "0.660908", "0.6605372", "0.657136", "0.6567438", "0.64837116", "0.6459751", "0.64584833", "0.6457046", "0.64269567", "0.64244896", "0.6423583", "0.6383606", "0.6356684", "0.6346824...
0.76557344
0
How wide is the camera in pixels (Read Only).
set pixelWidth(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get pixelWidth() {}", "function getWidth() {\n return w;\n }", "get screenWidthInWorldPixels()\n {\n return this.screenWidth / this.scale.x;\n }", "getWidth() {\n return this.game.width / this.zoom;\n }", "function winWidth() { return getWH('Width'); }", "get screenWorldW...
[ "0.76557344", "0.70269406", "0.69603527", "0.68302625", "0.6746671", "0.66717535", "0.6670983", "0.660908", "0.6605372", "0.657136", "0.6567438", "0.64837116", "0.6459751", "0.64584833", "0.6457046", "0.64269567", "0.64244896", "0.6423583", "0.6383606", "0.6356684", "0.634682...
0.7259333
1
Set a custom projection matrix.
set projectionMatrix(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set nonJitteredProjectionMatrix(value) {}", "get projectionMatrix() {}", "set worldToCameraMatrix(value) {}", "setToProjection(p, m) {\n this.x = (m[0][0] * p.x + m[0][1] * p.y + m[0][2] * p.z + m[0][3]);\n this.y = (m[1][0] * p.x + m[1][1] * p.y + m[1][2] * p.z + m[1][3]);\n this.z = (m[2][0] * p.x...
[ "0.73220277", "0.7135005", "0.6840732", "0.6769349", "0.67417765", "0.66442764", "0.6562581", "0.655408", "0.655408", "0.655408", "0.655408", "0.655408", "0.655408", "0.655408", "0.655408", "0.655408", "0.655408", "0.655408", "0.6383496", "0.6299566", "0.62761265", "0.62468...
0.8731115
0
The rendering path that should be used, if possible.
get renderingPath() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get actualRenderingPath() {}", "set renderingPath(value) {}", "set actualRenderingPath(value) {}", "get path(){\n if( this._viewClass ){\n return this._viewClass.path || this.id\n }else if(this.__view) {\n return this.__view.path || this.__view.getAttribute('path') || this...
[ "0.866923", "0.752735", "0.74548316", "0.63568616", "0.6192765", "0.6091837", "0.606666", "0.6001453", "0.59781444", "0.5964107", "0.588021", "0.5871799", "0.5841354", "0.5826437", "0.57733107", "0.57164216", "0.57079273", "0.5683658", "0.56461746", "0.560771", "0.55776286", ...
0.90171784
0
Returns the eye that is currently rendering. If called when stereo is not enabled it will return Camera.MonoOrStereoscopicEye.Mono. If called during a camera rendering callback such as OnRenderImage it will return the currently rendering eye. If called outside of a rendering callback and stereo is enabled, it will retu...
get stereoActiveEye() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get stereoTargetEye() {}", "set stereoActiveEye(value) {}", "get eye() {\n\n // Compute the radius (as an exponential would be faster)\n const radius = this.radius;\n\n // Compute the new eye values\n return [\n add(this.target[0], multiply(radius, multiply(cos(this.alpha), cos(this.beta)))),\...
[ "0.6199799", "0.5755739", "0.5604362", "0.5570299", "0.5428668", "0.52184135", "0.51382095", "0.49675298", "0.46939248", "0.46819267", "0.4592536", "0.4555806", "0.44076958", "0.44013608", "0.43622735", "0.4359467", "0.43524536", "0.43406215", "0.432511", "0.42799398", "0.425...
0.6600299
0
Set the target display for this Camera.
set targetDisplay(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setPreviewDisplay(state, target) {\n state.previewDisplayed = target;\n }", "get targetDisplay() {}", "setRenderTarget(target) {\n if (this.currentTarget !== target) {\n this.flush();\n if (target == null) {\n this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, null...
[ "0.6813947", "0.63497925", "0.63177073", "0.6103902", "0.6059656", "0.6048827", "0.59564865", "0.56869334", "0.5681076", "0.55466914", "0.54991084", "0.54927474", "0.54292107", "0.54133135", "0.53449476", "0.53273195", "0.53054774", "0.5300103", "0.52963316", "0.5278677", "0....
0.7255832
0
Should the jittered matrix be used for transparency rendering?
get useJitteredProjectionMatrixForTransparentRendering() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set useJitteredProjectionMatrixForTransparentRendering(value) {}", "prepend( mat ){\n\n let a = mat._raw, b = this._raw,\n\n a11 = a[0], a12 = a[3], a13 = a[6], a14 = a[ 9],\n a21 = a[1], a22 = a[4], a23 = a[7], a24 = a[10],\n a31 = a[2], a32 = a[5], a33 = a[8], a34 = a[11...
[ "0.7612543", "0.6065855", "0.5792565", "0.56591195", "0.559297", "0.54981387", "0.5435855", "0.54329544", "0.5354232", "0.5317767", "0.5276678", "0.5244876", "0.51973814", "0.51649773", "0.5164289", "0.5145477", "0.51301646", "0.5119196", "0.5112643", "0.51101005", "0.5073925...
0.7380304
1
Should the jittered matrix be used for transparency rendering?
set useJitteredProjectionMatrixForTransparentRendering(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get useJitteredProjectionMatrixForTransparentRendering() {}", "prepend( mat ){\n\n let a = mat._raw, b = this._raw,\n\n a11 = a[0], a12 = a[3], a13 = a[6], a14 = a[ 9],\n a21 = a[1], a22 = a[4], a23 = a[7], a24 = a[10],\n a31 = a[2], a32 = a[5], a33 = a[8], a34 = a[11],\n\...
[ "0.7379452", "0.6067066", "0.57917887", "0.5658712", "0.5594281", "0.54986", "0.543394", "0.5432577", "0.5353485", "0.5316467", "0.5275775", "0.5245483", "0.5195691", "0.51659304", "0.5164076", "0.5145183", "0.5129565", "0.5119029", "0.5112175", "0.5110166", "0.5074498", "0...
0.76117146
0
Whether or not the Camera will use occlusion culling during rendering.
get useOcclusionCulling() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set useOcclusionCulling(value) {}", "get layerCullSpherical() {}", "set layerCullSpherical(value) {}", "static set onPreCull(value) {}", "_updateDrawStatus() {\n\t\tif (this._side === 'double') {\n\t\t\tthis._gl.disable(this._gl.CULL_FACE);\n\t\t} else if (this._side === 'front') {\n\t\t\tthis._gl.enable(t...
[ "0.80583507", "0.6046098", "0.6011572", "0.59737027", "0.5907424", "0.58917713", "0.55610734", "0.5522934", "0.5458631", "0.5452602", "0.5414848", "0.5330275", "0.5285441", "0.52742815", "0.52646387", "0.52567434", "0.52539206", "0.5241312", "0.52167255", "0.521317", "0.51963...
0.7953719
1
Whether or not the Camera will use occlusion culling during rendering.
set useOcclusionCulling(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get useOcclusionCulling() {}", "get layerCullSpherical() {}", "set layerCullSpherical(value) {}", "static set onPreCull(value) {}", "_updateDrawStatus() {\n\t\tif (this._side === 'double') {\n\t\t\tthis._gl.disable(this._gl.CULL_FACE);\n\t\t} else if (this._side === 'front') {\n\t\t\tthis._gl.enable(this._...
[ "0.7953719", "0.6046098", "0.6011572", "0.59737027", "0.5907424", "0.58917713", "0.55610734", "0.5522934", "0.5458631", "0.5452602", "0.5414848", "0.5330275", "0.5285441", "0.52742815", "0.52646387", "0.52567434", "0.52539206", "0.5241312", "0.52167255", "0.521317", "0.519635...
0.80583507
0
Matrix that transforms from world to camera space.
get worldToCameraMatrix() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get cameraToWorldMatrix() {}", "set cameraToWorldMatrix(value) {}", "set worldToCameraMatrix(value) {}", "function compute_view_matrix() {\n const cam_pos = [\n camera_distance * Math.sin(camera_lat) * -Math.cos(camera_lon),\n camera_distance * Math.sin(camera_lon),\n camera_distance ...
[ "0.8310628", "0.78199357", "0.7801278", "0.696059", "0.69545895", "0.69287604", "0.6868262", "0.68331134", "0.6805951", "0.6772354", "0.6647028", "0.6632497", "0.65945745", "0.65194917", "0.64984906", "0.644673", "0.6425114", "0.6408948", "0.6387749", "0.6363661", "0.63580877...
0.8280638
1
Add a command buffer to be executed at a specified place.
AddCommandBuffer() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "place(cmd) {\n\t\tconst newPos = cmd.split(','); // get x y f from the command\n\t\tif (newPos.length < 3) {\n\t\t\tthis.printErrors('incorrect position / direction');\n\t\t} else {\n\t\t\tconst newX = parseInt(newPos[0].trim());\n\t\t\tconst newY = parseInt(newPos[1].trim());\n\t\t\tconst newF = newPos[2].trim()....
[ "0.5876962", "0.57488567", "0.5676847", "0.56577384", "0.56371164", "0.5497738", "0.5429284", "0.53857785", "0.5380776", "0.5373893", "0.5373893", "0.5373893", "0.5373893", "0.5373893", "0.5372362", "0.5325244", "0.5313927", "0.5265703", "0.52577573", "0.5250685", "0.52006704...
0.6321637
0
Get command buffers to be executed at a specified place.
GetCommandBuffers() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get buffers() {\n return this.request(`${this.prefix}list_bufs`);\n }", "getAllCommands() { }", "function getCommands() {\n\t\tvar list = [];\n\t\tfor(var i = 0; i < commands.length; i++) {\n\t\t\tlist[list.length] = commands[i].string;\n\t\t}\n\t\treturn list;\n\t}", "function queryCommands() {\n ...
[ "0.61842155", "0.5587576", "0.53729546", "0.5309173", "0.5281802", "0.5258588", "0.52180684", "0.517875", "0.5156084", "0.5150361", "0.5104388", "0.5085548", "0.50552577", "0.5042477", "0.503018", "0.50232995", "0.5009398", "0.493758", "0.4934296", "0.49138132", "0.4906229", ...
0.6868261
0
Get the projection matrix of a specific stereo eye.
GetStereoProjectionMatrix() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get projectionMatrix() {}", "GetStereoViewMatrix() {}", "getViewProjMatrix() {\n const res = mat4.create()\n return mat4.multiply(res, this.projection, this.view)\n }", "get worldToCameraMatrix() {}", "SetStereoProjectionMatrix() {}", "get2DProjection() {\n // NOTE:\n // Our API gu...
[ "0.68562376", "0.6354476", "0.62950677", "0.62880534", "0.62580174", "0.6248314", "0.6242031", "0.6228954", "0.5968005", "0.5938784", "0.5859045", "0.5818384", "0.56255853", "0.5563704", "0.55235237", "0.5514823", "0.54808533", "0.54464495", "0.54356897", "0.5412543", "0.5367...
0.7389867
0
Get the view matrix of a specific stereo eye.
GetStereoViewMatrix() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get view() {\n\n // Compute and return the look at camera matrix\n return mat4.lookAt(new Float32Array(16), this.eye, this.target, [0, 1, 0]);\n }", "get stereoActiveEye() {}", "get stereoTargetEye() {}", "GetStereoProjectionMatrix() {}", "getViewMatrix(){\n return lookAt(this.getFrontVector(), t...
[ "0.63571346", "0.6330268", "0.6312266", "0.6204397", "0.61366427", "0.61085624", "0.6068442", "0.5982055", "0.58563876", "0.5838205", "0.58251137", "0.5816137", "0.5804346", "0.5798804", "0.5703575", "0.56714636", "0.55811065", "0.5562066", "0.5502271", "0.54655975", "0.54576...
0.69699126
0
Remove all command buffers set on this camera.
RemoveAllCommandBuffers() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RemoveCommandBuffers() {}", "clearBuffers()\n {\n if(this.vertexBuffer != null)\n {\n glContext.deleteBuffer(this.vertexBuffer);\n }\n\n if(this.indexBuffer != null)\n {\n glContext.deleteBuffer(this.indexBuffer);\n }\n }", "RemoveCommandBuffer() {}", "removeAll() {\n this.pl...
[ "0.7761062", "0.6830179", "0.6766931", "0.66123223", "0.65734255", "0.6467187", "0.6396382", "0.63946104", "0.6367675", "0.6367675", "0.62490183", "0.6121252", "0.6114109", "0.6071974", "0.6071252", "0.6065184", "0.60335547", "0.6023898", "0.60113055", "0.59997594", "0.599881...
0.7870251
0
Remove command buffer from execution at a specified place.
RemoveCommandBuffer() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RemoveCommandBuffers() {}", "RemoveAllCommandBuffers() {}", "function removeItemFromBasket(command) {\n let pos = basket.indexOf(command);\n basket.splice(pos, 1);\n removeFromRecap(command);\n}", "eraseEofCommand() {\n let remove_from = this.selectedKeywords.count > 0 ? this.selectedKeywords.g...
[ "0.6789903", "0.666898", "0.5887032", "0.5790605", "0.5691251", "0.56414205", "0.5452088", "0.5440258", "0.54386693", "0.5374578", "0.5316816", "0.53046554", "0.5287629", "0.5274385", "0.52156943", "0.5183145", "0.51720905", "0.5172016", "0.5169342", "0.5161188", "0.51599234"...
0.7054021
0
Remove command buffers from execution at a specified place.
RemoveCommandBuffers() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RemoveAllCommandBuffers() {}", "RemoveCommandBuffer() {}", "clear() {\n const prev_size = this.commands.length;\n\n this.commands = [];\n this.index = -1;\n\n if (this.callback && prev_size > 0) {\n this.callback();\n }\n }", "function pruneBuffer() {\n if (!buffer) return;if (type ==...
[ "0.7468134", "0.71907336", "0.6031894", "0.5891379", "0.56755155", "0.5601811", "0.54923683", "0.54622847", "0.530717", "0.52611357", "0.5260767", "0.5260203", "0.5213296", "0.5208073", "0.52013063", "0.5199658", "0.5185998", "0.515207", "0.5146813", "0.51350003", "0.5134271"...
0.7444462
1
Reset to the default field of view.
ResetFieldOfView() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reset() {\n setOptions(model);\n updatePlaceholder();\n }", "reset() {\r\n this.changeState(this.initial);\r\n }", "__setNothing() {\n this.__view.setNothing();\n }", "reset() {\r\n this.changeState(this._config.initial);\r\n }", "setDefau...
[ "0.7545918", "0.6977526", "0.6945413", "0.6919897", "0.6901661", "0.686085", "0.6803958", "0.6788766", "0.67842376", "0.6699569", "0.66905993", "0.6652032", "0.6641182", "0.6566077", "0.65605617", "0.65513223", "0.6524251", "0.65068495", "0.6494579", "0.6492828", "0.64833134"...
0.7589942
0
Remove shader replacement from camera.
ResetReplacementShader() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "remove() {\n // first we want to stop drawing it\n this._canDraw = false;\n\n // force unbinding frame buffer\n if(this.target) {\n this.renderer.bindFrameBuffer(null);\n }\n\n // delete all the webgl bindings\n this._dispose();\n\n if(this.type ==...
[ "0.70991904", "0.6670654", "0.6597532", "0.65643126", "0.630794", "0.6182853", "0.6176383", "0.60901004", "0.60592633", "0.6026543", "0.5921267", "0.5915542", "0.58849", "0.58699805", "0.582437", "0.57592094", "0.5748799", "0.5733176", "0.57248837", "0.568308", "0.5657649", ...
0.75587094
0
Returns a ray going from camera through a screen point.
ScreenPointToRay() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAimRay(screenPoint, playerRender) {\n // Screen point in Normalized Device Coordinates\n var glNDCX = screenPoint[0] / pagePixelWidth * 2 - 1;\n var glNDCY = -(screenPoint[1] / pagePixelHeight * 2 - 1);\n \n var unproject = mat4.identity(mat4.create());\n playerRender.a...
[ "0.78524894", "0.69657856", "0.6562368", "0.6540924", "0.6390381", "0.62578136", "0.6164613", "0.61409974", "0.59609354", "0.59090865", "0.5855079", "0.5819669", "0.5720712", "0.57065105", "0.56669813", "0.56587815", "0.56539756", "0.56191456", "0.5542821", "0.55276847", "0.5...
0.7017272
1
Transforms position from screen space into viewport space.
ScreenToViewportPoint() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ViewportToScreenPoint() {}", "WorldToViewportPoint() {}", "ViewportToWorldPoint() {}", "worldToScreen(point) {\n\t\tlet viewPoint = point.subtract(this.camera).scale(this.scale);\n\t\tviewPoint.y = -viewPoint.y;\n\t\treturn viewPoint.add(new Vector(canvas.width / 2, canvas.height / 2));\n\t}", "function po...
[ "0.7397908", "0.71662", "0.69687605", "0.6865609", "0.683852", "0.68141913", "0.67652464", "0.6587002", "0.6537522", "0.64943904", "0.6310026", "0.628067", "0.62714654", "0.62267673", "0.6209313", "0.61333936", "0.6118179", "0.6115088", "0.61118567", "0.6069393", "0.6052778",...
0.7419665
0
Transforms position from screen space into world space.
ScreenToWorldPoint() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "worldToScreen(point) {\n\t\tlet viewPoint = point.subtract(this.camera).scale(this.scale);\n\t\tviewPoint.y = -viewPoint.y;\n\t\treturn viewPoint.add(new Vector(canvas.width / 2, canvas.height / 2));\n\t}", "worldToLocal(world) {\r\n let m = this.matrix;\r\n let a = m.a, b = m.c, c = m.b, d...
[ "0.7024687", "0.6981087", "0.6943274", "0.69402", "0.6752805", "0.6728169", "0.6720708", "0.6650488", "0.66502655", "0.6577396", "0.6559291", "0.6541568", "0.65398705", "0.6504846", "0.6495601", "0.6495601", "0.64825064", "0.64708704", "0.64613694", "0.6455564", "0.6455564", ...
0.7182352
0
Sets a custom stereo projection matrix.
SetStereoProjectionMatrix() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SetStereoViewMatrix() {}", "set projectionMatrix(value) {}", "GetStereoProjectionMatrix() {}", "ResetStereoProjectionMatrices() {}", "set worldToCameraMatrix(value) {}", "set stereoMirrorMode(value) {}", "set nonJitteredProjectionMatrix(value) {}", "GetStereoViewMatrix() {}", "set cameraToWorldMatr...
[ "0.76866364", "0.7300997", "0.72516334", "0.67558444", "0.66351694", "0.66152364", "0.63746345", "0.6371759", "0.6254036", "0.61740965", "0.6074509", "0.6044784", "0.603781", "0.59376323", "0.5742269", "0.5633926", "0.55887425", "0.55842835", "0.54877967", "0.5469057", "0.542...
0.86904126
0
Sets a custom stereo view matrix.
SetStereoViewMatrix() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SetStereoProjectionMatrix() {}", "GetStereoViewMatrix() {}", "ResetStereoViewMatrices() {}", "set stereoMirrorMode(value) {}", "set worldToCameraMatrix(value) {}", "set cameraToWorldMatrix(value) {}", "set stereoTargetEye(value) {}", "GetStereoProjectionMatrix() {}", "setMatrix () {\n mat4.f...
[ "0.7883711", "0.71999735", "0.6875936", "0.679125", "0.6588553", "0.6305765", "0.62708306", "0.62297446", "0.6216611", "0.6166094", "0.60709", "0.606556", "0.60643655", "0.6038693", "0.60173", "0.59800977", "0.5803919", "0.5693808", "0.5682788", "0.566262", "0.54561716", "0...
0.8665556
0
Returns a ray going from camera through a viewport point.
ViewportPointToRay() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAimRay(screenPoint, playerRender) {\n // Screen point in Normalized Device Coordinates\n var glNDCX = screenPoint[0] / pagePixelWidth * 2 - 1;\n var glNDCY = -(screenPoint[1] / pagePixelHeight * 2 - 1);\n \n var unproject = mat4.identity(mat4.create());\n playerRender.a...
[ "0.69284785", "0.64850247", "0.6420204", "0.63407123", "0.625128", "0.6095264", "0.5989311", "0.5929501", "0.58983696", "0.5824141", "0.58217835", "0.5801244", "0.5739583", "0.5695453", "0.56112117", "0.55755174", "0.55680627", "0.5428956", "0.5382285", "0.5368945", "0.536547...
0.75397795
0
Transforms position from viewport space into screen space.
ViewportToScreenPoint() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ScreenToViewportPoint() {}", "WorldToViewportPoint() {}", "worldToScreen(point) {\n\t\tlet viewPoint = point.subtract(this.camera).scale(this.scale);\n\t\tviewPoint.y = -viewPoint.y;\n\t\treturn viewPoint.add(new Vector(canvas.width / 2, canvas.height / 2));\n\t}", "function position() {\n const r...
[ "0.70615894", "0.6937819", "0.68750936", "0.68525684", "0.6778189", "0.6753163", "0.6694835", "0.66023386", "0.6524519", "0.62869096", "0.6273117", "0.6266007", "0.62510693", "0.61973727", "0.6180905", "0.61786026", "0.6160721", "0.61370504", "0.61307335", "0.6098433", "0.609...
0.7120495
0
Transforms position from viewport space into world space.
ViewportToWorldPoint() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "WorldToViewportPoint() {}", "worldToLocal(world) {\r\n let m = this.matrix;\r\n let a = m.a, b = m.c, c = m.b, d = m.d;\r\n let invDet = 1 / (a * d - b * c);\r\n let x = world.x - m.tx, y = world.y - m.ty;\r\n world.x = (x * d * invDet - y * b * invDet);\r\n...
[ "0.73550755", "0.69881815", "0.685892", "0.6827069", "0.6750112", "0.6743779", "0.6743779", "0.67403924", "0.66255724", "0.65350324", "0.64870065", "0.6481505", "0.6481505", "0.6478052", "0.64693135", "0.6463906", "0.6458001", "0.64156395", "0.6389544", "0.63758415", "0.63535...
0.75404793
0
Transforms position from world space into viewport space.
WorldToViewportPoint() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ViewportToWorldPoint() {}", "convertCoordsViewPortToScene(position) {\n const n_positionInViewport = position;\n const n_cameraPos = this.camera.getPosition();\n\n const zoom = this.getZoomLevel();\n\n // camera position is normalized in map coordinates [0..1]\n // pointer is n...
[ "0.7520726", "0.6869653", "0.6770279", "0.6702086", "0.6616845", "0.652741", "0.652741", "0.64670515", "0.6419277", "0.6388609", "0.63786536", "0.6364137", "0.63611346", "0.6359609", "0.63186866", "0.62743735", "0.6270932", "0.625148", "0.6233465", "0.6229128", "0.62210923", ...
0.7521748
0
is window resizeable (used by resize)
get resizeable() { return resizeable && Window.activeWindow == public; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_resize(){\n\t\tif($( window ).width() > 600){\n\t\t\t$( '.main-wrap .left-content' ).show();\n\t\t\t$( '.main-wrap .right-content' ).show();\n\t\t\t$( '.main-wrap .left-content' ).css( {\"max-width\":'30%'} );\n\t\t\t$( '.main-wrap .right-content' ).css( {\"max-width\":'70%'} );\n\t\t}else{\n\t\t\tif(i...
[ "0.7622149", "0.7573909", "0.75549954", "0.74751633", "0.74751633", "0.74577886", "0.7456615", "0.73544794", "0.7216708", "0.72019804", "0.7190053", "0.71505415", "0.71505415", "0.7146066", "0.7146066", "0.7117787", "0.7096108", "0.70910805", "0.70891607", "0.7082322", "0.707...
0.81380254
0
Clear the cityInput text
function clearCityInput() { cityInput.value = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearLoc(){\n document.getElementById('LocationText').value = '';\n}", "clearAddFields(){\n document.querySelector('#newCity').value = '';\n document.querySelector('#newState').value = '';\n }", "function clearText() {\n document.getElementById(\"text-input\").value = \"\";\n }", ...
[ "0.7630242", "0.74815875", "0.72928256", "0.72882485", "0.72154623", "0.72027576", "0.7194968", "0.7170985", "0.7161728", "0.71583325", "0.7138359", "0.7136984", "0.71302897", "0.71126974", "0.71008736", "0.71008736", "0.71008736", "0.71008736", "0.7098897", "0.7089681", "0.7...
0.88699794
0
Anagrams are words that have the same letters rearranged Can determine anagrams by sorting letters of each word THEN checking for duplicates
function hasAnagrams(words){ const sortedByLetter = words.map( v => { return v.split('').sort().join('') }) // console.log(sortedByLetter); return hasDuplicate(sortedByLetter) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function anagrams(word, words) {\n //will contain last two matching words\n let output = [];\n let wordRegEx = new RegExp(`[${word}]`, 'gi');\n\n //iter through words\n for(let i = 0; i < words.length; i++) {\n //check if word and word in words are already equal\n if(word === words[i])...
[ "0.8299391", "0.7717503", "0.76749325", "0.7648834", "0.7639461", "0.7611969", "0.75920594", "0.75592965", "0.752192", "0.7465554", "0.74653786", "0.7452086", "0.7446107", "0.7427994", "0.74217033", "0.7400227", "0.7389827", "0.73725265", "0.73616517", "0.732206", "0.73175305...
0.8626656
0
Gets the locals for the pug template.
get locals() { return this._locals; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get locals() {\n return this.raw.locals;\n }", "locals (ctx, locals = {}) {\n if (ctx.options.__frontmatter) {\n const f = new File(ctx.options.context, ctx.resourcePath)\n const permalinkLocals = this._locals[f.relative]\n const frontmatterLocals = ctx.options.__frontmatter[f.relative]\n ...
[ "0.6890875", "0.679315", "0.608463", "0.5870263", "0.56133354", "0.54495203", "0.5274587", "0.5159334", "0.51364374", "0.51180726", "0.5044231", "0.5037174", "0.50131613", "0.50095016", "0.49887353", "0.48883438", "0.48447907", "0.4838214", "0.4812577", "0.48052192", "0.47992...
0.68032175
1
Sets the locals for the pug template. Expected to be used by the implementing class during construction.
set locals(l) { this._locals = l; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "locals (ctx, locals = {}) {\n if (ctx.options.__frontmatter) {\n const f = new File(ctx.options.context, ctx.resourcePath)\n const permalinkLocals = this._locals[f.relative]\n const frontmatterLocals = ctx.options.__frontmatter[f.relative]\n return Object.assign(locals, permalinkLocals, fron...
[ "0.5912112", "0.5850486", "0.5827387", "0.58241564", "0.57312155", "0.5613929", "0.5574851", "0.55462813", "0.5502147", "0.5461892", "0.54340875", "0.539546", "0.5374509", "0.5371437", "0.53397703", "0.52904135", "0.52651286", "0.5241198", "0.5226146", "0.5225191", "0.5141324...
0.6548097
0
Write a function that deletes every second element of the given array. Input: [3, 5, 1, 8, 90, 4, 23, 1, 67] Output: [3, 1, 90, 23, 67]
function deleteSecondElement(array) { var newArray = []; var index = 0; for (var i = 0; i < array.length; i = i + 2) { newArray[index] = array[i]; index++; // newArray.push(array[i]); } return newArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeEveryOther(arr) {\n\t// // filter the array for even index\n\t// return arr.filter((element, index) => {\n\t// \tif (index % 2 === 0) {\n\t// \t\treturn element;\n\t// \t}\n\t// });\n\tfor (var i = 1; i < arr.length; i++) {\n\t\tarr.splice(i, 1);\n\t}\n\treturn arr;\n}", "function removeEven (arra...
[ "0.7688969", "0.75931925", "0.75930464", "0.7524207", "0.73512304", "0.7289374", "0.72012204", "0.719093", "0.71822554", "0.701288", "0.69783443", "0.69030684", "0.6882273", "0.68793684", "0.68480134", "0.68370616", "0.67264044", "0.6722532", "0.6704135", "0.66523606", "0.662...
0.76573366
1
Returns current TransactionContext (if available).
static currentTransactionContext() { const active = domain_1.default.active; return active ? active.__mikro_orm_tx_context : undefined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getTransaction() {\n\t\treturn this.transaction;\n\t}", "function getActiveTransaction() {\n var _a;\n return (_a = browser_1.getCurrentHub()\n .getScope()) === null || _a === void 0 ? void 0 : _a.getTransaction();\n}", "_getTheParent () {\n return this.transaction\n }", "get context (...
[ "0.6486462", "0.6337831", "0.58469903", "0.5825205", "0.5825205", "0.582419", "0.5815977", "0.5805268", "0.5805268", "0.5768247", "0.57433677", "0.57433677", "0.5742168", "0.5726686", "0.5726686", "0.5677663", "0.56761193", "0.56267726", "0.5621403", "0.5566938", "0.5566938",...
0.83540875
0
Returns current EntityManager (if available).
static getEntityManager() { const context = TransactionContext.currentTransactionContext(); return context ? context.em : undefined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "createEntityManager() {\n return new EntityManager(this);\n }", "createEntityManagerWithSingleDatabaseConnection() {\n const queryRunnerProvider = new QueryRunnerProvider(this.driver, true);\n return new EntityManager(this, queryRunnerProvider);\n }", "function newManager() {\n ...
[ "0.7490921", "0.7054512", "0.6609033", "0.607779", "0.59132886", "0.58120865", "0.56581587", "0.5589584", "0.5383183", "0.53136164", "0.51184994", "0.5080105", "0.50471425", "0.5026035", "0.49791962", "0.4974161", "0.49316856", "0.48963386", "0.4891646", "0.48847693", "0.4876...
0.8354038
0
absurl converts relative url to absolute url. if window object is available it uses the location else it assumes localhost.
function absurl(path){ if( /^http/.test(path) ){ return path; } let host = 'http://localhost'; if( typeof window != 'undefined' ){ host = `${window.location.protocol}//${window.location.host}`; } return `${host}${path}` }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "makeAbsolute(\n url,\n element,\n // We allow the caller to override the document's URL and base URL.\n baseUrl = element.baseURI,\n documentURL = element.ownerDocument.URL,\n ) {\n // Normally, the URL is simply relative to the document's base URL.\n ...
[ "0.72929335", "0.7256517", "0.72321683", "0.7179367", "0.70356125", "0.7014778", "0.70114315", "0.6912137", "0.68210363", "0.6792394", "0.6759054", "0.6618259", "0.65974045", "0.6577212", "0.6577212", "0.6572046", "0.65068156", "0.6466435", "0.6466139", "0.6412665", "0.635827...
0.76288503
0
disconnect clears the cached info, cancels any active queries and deauthenticates the current user.
disconnect(){ this.info = null; this.deauthenticate(); this.queries.forEach(q => { q.stop(); }) return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disconnect() {\n cleanStore();\n $rootScope.$broadcast(AUTH_EVENTS.NOT_AUTHENTICATED, true);\n $timeout.cancel(refreshTimer);\n refreshTimerRunning = false;\n }", "logOff() {\n\t\tthis._disconnect(false);\n\t}", "function disconnect(){\n\tmySession.disconnect();\n}", "_onDisco...
[ "0.70230913", "0.68688476", "0.6852878", "0.671878", "0.6700254", "0.6600945", "0.6595812", "0.6499934", "0.6450066", "0.64358425", "0.64276296", "0.6359938", "0.6359938", "0.63498515", "0.6338231", "0.63310325", "0.62710625", "0.6262054", "0.6253779", "0.62429774", "0.623657...
0.7179853
0
prepare creates a prepared Query. a Query can be executed mutliple times, has the ability to regenerate it's AQL via a builder function and has methods to make polling/refreshing queries easier.
prepare(...args){ let q = new Query({client: this, builder: args}); this.queries.push(q); return q; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "prepare(options, cb) {\n if (typeof options === 'string') {\n options = { sql: options };\n }\n return this.addCommand(new Commands.Prepare(options, cb));\n }", "run(query, params = {}) {\n let statement = this.connection.prepare(query);\n return statement.run(params);\n }", "run(query, p...
[ "0.6082906", "0.59240305", "0.59240305", "0.5917376", "0.5917376", "0.5670553", "0.5663168", "0.5663168", "0.5663168", "0.5663168", "0.5663168", "0.5647238", "0.5643812", "0.56147754", "0.5529893", "0.5475901", "0.5424796", "0.5399311", "0.52987665", "0.5297357", "0.52678245"...
0.675991
0
refresh calls run on any prepared queries.
refresh(){ if( this.state != 'authenticated' ){ return } this.queries.forEach(q => { if( q.polling ){ q.run(); } }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refreshData() {\n querySensorTypes();\n queryBuoyGroups();\n queryBuoyInstances();\n queryCommandTypes();\n queryTriggers();\n queryCommands();\n resetRedeployInput();\n }", "refresh() {}", "refreshRecords() {\n ...
[ "0.66403866", "0.65538037", "0.6295423", "0.62137026", "0.6135773", "0.61096627", "0.60553825", "0.603647", "0.60343564", "0.60223377", "0.60204965", "0.59193933", "0.5903148", "0.5852196", "0.58340985", "0.5830132", "0.5823256", "0.5800197", "0.5758943", "0.5708046", "0.5695...
0.6739721
0
deauthenticate removes the token and disables the client until authentication.
deauthenticate(){ this._setToken(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deauthenticate() {\n authenticator.token = '';\n window.location.replace(\"https://login.\" + config.environment + \"/logout\");\n}", "deauthenticate() {\n LocalStorage.remove(this.tokenKey);\n }", "static deauthenticateUser() {\n let request = new Request('/api/logout',{\n method: '...
[ "0.7623114", "0.75332016", "0.71072567", "0.6999539", "0.6888315", "0.68747926", "0.68742573", "0.6831045", "0.6726157", "0.6630188", "0.6601236", "0.6562926", "0.6489256", "0.63759905", "0.6341962", "0.6260477", "0.62575066", "0.6106199", "0.60676265", "0.6035906", "0.599457...
0.84188384
0
setToken assigns an authentication token and triggers an event
_setToken(token){ this.token = token; if( this.token ){ this.emit(AUTHENTICATED); this.refresh(); } else { this.emit(UNAUTHENTICATED); } return token; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setToken(token) {\n this._token = token;\n }", "setToken(token) {\n this.config.set(\"token\", token)\n }", "setToken(token) {\r\n this._token$.next(token);\r\n }", "setAuthenticationToken(token) {\n this._token = token;\n this._adaptor.setAuthenticationToken(token);\n ...
[ "0.76486224", "0.7494225", "0.7452392", "0.73658884", "0.7137211", "0.7103362", "0.709687", "0.70728594", "0.69539315", "0.6861745", "0.68233275", "0.6768065", "0.67521685", "0.67414296", "0.66933674", "0.66638297", "0.6613567", "0.6608629", "0.6605202", "0.6570307", "0.65085...
0.7533667
1
setState assign the current state if new state differs from old state a 'change' event is emitted with the new state
_setState(state){ let old = this.state; this.state = state; if( old != state ){ this.emit('change', state); } return state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_changedState() {\n if (this._diffState()) {\n this.onChange(this, this.state)\n }\n }", "_triggerChange(oldState, newState) {\n if (oldState !== newState) {\n this.stateChanged.emit(void 0);\n }\n }", "changeState(state) {\r\n this.prev = this.cur...
[ "0.7731821", "0.7251817", "0.70647055", "0.69365805", "0.6900483", "0.6824518", "0.6777504", "0.67582804", "0.6729347", "0.67276376", "0.6698544", "0.66799635", "0.66344965", "0.66125244", "0.6591561", "0.6591007", "0.6577388", "0.6514125", "0.64956814", "0.6464762", "0.64238...
0.7676415
1