Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Should print "Woof!" Override Inherited Methods Override the fly() method for Penguin so that it returns "Alas, this is a flightless bird."
function Bird() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pfFly(){\n\tthis.inheritFrom = pfSkill;\n this.inheritFrom();\n this.setName(\"fly\");\n this.stat\t\t\t= \"dex\";\n this.isArmorPenalty = true;\n}", "speakWisdom(){\n console.log(\"Inside speakWisdom: Calling drinkSake (from parent)\");\n super.drinkSake();\n console.log('Wha...
[ "0.6468591", "0.6420336", "0.6419631", "0.6360515", "0.6258203", "0.6229466", "0.61054134", "0.6054745", "0.6037097", "0.5856767", "0.5828326", "0.57937366", "0.57850516", "0.5774852", "0.57732356", "0.57710475", "0.5744113", "0.57053995", "0.5673963", "0.5666115", "0.5642066...
0.5542102
34
SOAL 2 Sebuah becak ketika dikayuh oleh pemiliknya yang tidak membawa penumpang memiliki kecepatan 20 km/jam. Jumlah penumpang yang bisa dibawa oleh becak tersebut bervariasi (maksimal 4 orang) dan kecepatan ketika becak itu dikayuh mengalami penurunun: Lebih dari 2 orang kecepatan becak berkurang 5 km/jam Maksimal pen...
function kecepatanBecak(orang, speed = 20) { var kurang; if (orang <= 4) { if (orang == 4) { kurang = "7"; } else if (orang > 2) { kurang = "5"; } else { kurang = "2"; } kecepatanNow = speed - kurang; return `kecepatan becak : $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function terbilang(a) {\n var c = \" Satu Dua Tiga Empat Lima Enam Tujuh Delapan Sembilan Sepuluh Sebelas\".split(\" \");\n if (12 > a) var b = c[a];\n else 20 > a ? b = c[a - 10] + \" Belas\" : 100 > a ? (b = parseInt(String(a / 10).substr(0, 1)), b = c[b] + \" Puluh \" + c[a % 10]) : 200 > a ? b = \"Seratus \...
[ "0.6623876", "0.629991", "0.6169387", "0.60494536", "0.60122234", "0.59616345", "0.5939813", "0.59328455", "0.5899612", "0.5862761", "0.5822812", "0.5805151", "0.5793659", "0.57639885", "0.5693918", "0.5681688", "0.56745535", "0.560143", "0.5596782", "0.5594873", "0.55768496"...
0.6003829
5
returns true Return Early Pattern for Functions
function abTest(a, b) { if (a < 0 || b < 0) { return undefined; } return Math.round(Math.pow(Math.sqrt(a) + Math.sqrt(b), 2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testFunction() {\n\t\t\treturn true;\n\t\t}", "function testFunction() {\n\t\t\treturn true;\n\t\t}", "function functionX() {\n return true;\n}", "function Ejemplo(){return true}", "function T(){\n\treturn true;\n}", "static aHoax(){\n return false;\n }", "function functionDelarat...
[ "0.76223433", "0.76223433", "0.7599486", "0.7177235", "0.6958682", "0.68542784", "0.68533945", "0.6827325", "0.6786605", "0.6770114", "0.6732111", "0.6732111", "0.6732111", "0.6732111", "0.6732111", "0.6732111", "0.6732111", "0.6732111", "0.6732111", "0.6732111", "0.6732111",...
0.0
-1
Hints: Use bracket notation when accessing object properties with variables.
function updateRecords(id, prop, value) { if (prop != "tracks" && value != "") { //If prop isn't "tracks" and value isn't empty (""), update or set the value for that record album's property. collection[id][prop] = value; } if (prop == "tracks" && collection[id].hasOwnProperty(prop) == false) { //If prop ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildPropertyAccess(objExpr, propertyName) {\n if (/^[A-Za-z_][A-Za-z0-9_]*$/.test(propertyName)) {\n return objExpr + \".\" + propertyName;\n } else {\n if (!isNaN(Number(propertyName))) {\n return objExpr + \"[\" + propertyName + \"]\";\n } else {\n return objExpr + \"...
[ "0.64456", "0.63442653", "0.6301968", "0.62782407", "0.6231933", "0.62101096", "0.6156673", "0.6089177", "0.6011347", "0.59996253", "0.5999199", "0.5958634", "0.59556407", "0.5944074", "0.5897766", "0.5892425", "0.58439744", "0.5834006", "0.5828906", "0.58185166", "0.58089584...
0.0
-1
polly fill rAF throttle if not using angular material
function rAFDecorator($delegate) { $delegate.throttle = function (cb) { var queuedArgs, alreadyQueued, queueCb, context; return function debounced() { queuedArgs = arguments; context = this; queueCb = cb; if (!alreadyQueued)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function throttle(fn) {\n var scheduled = false;\n return function () {\n if (!scheduled) {\n scheduled = true;\n requestAnimationFrame(function () {\n scheduled = false;\n fn();\n });\n }\n };\n}", "function throttle(fn) {\n var scheduled = false;\n return function () {\n...
[ "0.56668884", "0.56668884", "0.55682963", "0.553212", "0.5391511", "0.53398454", "0.5329553", "0.53194517", "0.53074026", "0.52913016", "0.5263712", "0.52587783", "0.5226141", "0.5223361", "0.5211035", "0.5211035", "0.51794165", "0.5171309", "0.5171132", "0.51685387", "0.5146...
0.5422391
4
find lowest place not taken
function getPlace() { var place = 0; while (takenPlaces.indexOf(place) !== -1) { place++; } takenPlaces.push(place); return place; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findSmallestDistance(){\n\tvar minimum=100000;\n\tvar node=-1;\n\tunvisited.forEach(function(item){\n\t\tif(distance[item]<=minimum){\n\t\t\tminimum=distance[item];\n\t\t\tnode=item;\n\t\t}\n\t})\n\tif(node==-1){\n\t\tconsole.log(\"this should never happen\");\n\t}\n\treturn node;\n}", "findmin() { retu...
[ "0.67986995", "0.6755096", "0.6441446", "0.6401649", "0.63946223", "0.6385621", "0.63492215", "0.6326621", "0.63206774", "0.63125443", "0.6309149", "0.6302426", "0.62970346", "0.62902194", "0.6289071", "0.6281972", "0.627134", "0.6270185", "0.62689155", "0.6263286", "0.621374...
0.6008004
44
When user mouses over an existing event, add a class of mdeventhover to the month element, so that the create link is hidden from view.
function hideCreateLinkOnEventItemHover() { element.on('mouseenter', function () { element.on('mousemove', checkForEventItemRAF); }); element.on('mouseleave', function () { element.off('mousemove', checkForEventItemRAF); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function highlightDateWithEvent(month){\n\t$(\"#calendar>tr>td.dateWithEvent\").removeClass(\"dateWithEvent\");\n\tvar events = [];\n\tevents = eventRecord.getMonthEvents(month);\n\tfor (var i=0; i<31; i++) {\n\t\tif (events[i].isNotEmpty()) {\n\t\t\tvar d = i+1;\n\t\t\t$(\"#\"+d+\"-\"+month+\"-\"+yearIndex).addCl...
[ "0.628885", "0.6135252", "0.59267503", "0.5882682", "0.5876166", "0.5853302", "0.58296406", "0.5786082", "0.5776128", "0.5750661", "0.57139593", "0.56688124", "0.5663939", "0.5661106", "0.56408864", "0.5619516", "0.5615103", "0.5615103", "0.5615103", "0.55999833", "0.555843",...
0.65738076
0
END createActivityStreamLoadingType START getWindowLocation
function getWindowLocation() { if (!W.location.origin) { W.location.origin = W.location.protocol + "//" + W.location.hostname + (W.location.port ? ':' + W.location.port : ''); } return W.location.origin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "openInfoWindow(location) {\n this.closeInfoWindow();\n this.state.infowindow.open(this.state.map, location.marker);\n this.state.infowindow.setContent(\"Looking Up . . . \");\n this.getWindowData(location);\n }", "function getCurrentLocation()\n{\n\tMicrosoft.Maps.loadModule('Microsoft.Maps.Themes.B...
[ "0.5357171", "0.52737945", "0.52546364", "0.5235067", "0.51336443", "0.5120971", "0.51031935", "0.5101364", "0.5060113", "0.5035365", "0.5027825", "0.5025615", "0.50146675", "0.5000885", "0.4985499", "0.49706277", "0.4955746", "0.4955583", "0.49435866", "0.49204865", "0.49149...
0.47262722
34
END assertChain START formatDate
function formatDate(d) { var t = new Date(), // now format = localizeString("ASWidget_date_other", "MMM DD"); if (d.getYear() === t.getYear() && d.getMonth() === t.getMonth() && d.getDate() === t.getDate()) { // today format = localizeString("ASWidget_date_today", "[Today at] h:mm a"); } else if (d.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function formatDate(date,formatStr){return renderFakeFormatString(getParsedFormatString(formatStr).fakeFormatString,date);}", "testFormat() {\n console.info(\"# testFormat\");\n //testTimeParser1( \"$Y$m$d-$(enum;values=a,b,c,d)\", \"20130202-a\", \"2013-02-02/2013-02-03\" );\n this.doTestTi...
[ "0.677007", "0.5917502", "0.59034663", "0.5869075", "0.577579", "0.57663435", "0.57268107", "0.5722557", "0.5693546", "0.56874317", "0.5686833", "0.5686833", "0.5686833", "0.5686833", "0.5685309", "0.56624156", "0.56346107", "0.56172967", "0.56089735", "0.5603137", "0.5603137...
0.0
-1
END formatDate START replaceIt
function replaceIt(stringA, toReplace, replaceMent) { return stringA.split(toReplace).join(replaceMent || ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function formatDate(date,formatStr){return renderFakeFormatString(getParsedFormatString(formatStr).fakeFormatString,date);}", "formatDate(date) {\n\t\treturn date.toString()\n\t\t.replace(/(\\d{4})(\\d{2})(\\d{2})/, (string, year, month, day) => `${year}-${month}-${day}`);\n\t}", "function dateFormat(i){\n ...
[ "0.7407328", "0.7221984", "0.7076066", "0.6948408", "0.6901244", "0.68927795", "0.6852705", "0.6849531", "0.6829901", "0.6822133", "0.6796556", "0.6785547", "0.6768387", "0.67661506", "0.6749098", "0.67368877", "0.6718327", "0.67037195", "0.67037195", "0.67037195", "0.6703719...
0.0
-1
END replaceIt START endsWith
function endsWith(stringA, extension) { return -1 !== stringA.indexOf(extension, stringA.length - extension.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function replaceall(str, replace, with_this) {\n\t\tvar str_hasil = \"\";\n\t\tvar temp;\n\t\tfor(var i = 0; i < str.length; i++) {\n\t\t\tif (str[i] == replace) {\n\t\t\t\ttemp = with_this;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttemp = str[i];\n\t\t\t}\n\t\t\tstr_hasil += temp;\n\t\t}\n\t\treturn str_hasil;\n\t}", "fu...
[ "0.6163749", "0.60942584", "0.60332125", "0.5923868", "0.5823742", "0.5796727", "0.5789773", "0.5776742", "0.576493", "0.5761447", "0.57453495", "0.5724772", "0.5688598", "0.5688041", "0.5681627", "0.56596386", "0.56596386", "0.56591475", "0.5657411", "0.56303906", "0.5619238...
0.0
-1
END endsWith START startsWith
function startsWith(stringA, stringB, position) { position = position || 0; return stringA.indexOf(stringB, position) === position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function endsWith(input, value) {}", "function testStartsEndsWith(callback)\n{\n\ttesting.assert('pepito'.startsWith('pe'), 'Failed to match using startsWith()', callback);\n\ttesting.assert(!'pepito'.startsWith('po'), 'Invalid match using startsWith()', callback);\n\ttesting.assert('pepito'.endsWith('to'), 'Fai...
[ "0.68028045", "0.66300094", "0.63303876", "0.6279263", "0.6124855", "0.61128026", "0.60866964", "0.6041928", "0.60376096", "0.60164976", "0.60061026", "0.5972458", "0.5936322", "0.5933492", "0.5933492", "0.59213406", "0.58929545", "0.58925307", "0.5891643", "0.588822", "0.586...
0.57080096
36
END startsWith START uniq
function uniq(a, param) { return a.filter(function(item, pos, array) { return array.map(function(mapItem) { return mapItem[param]; }).indexOf(item[param]) === pos; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "startsWith(t){ return false }", "startsWith(t){}", "startsWith(c){ return false }", "startsWith(c){ return false }", "removeStartsWith(prefix) {\n // map api https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n // for of https://developer.mozilla.org/en-US/docs/Web/J...
[ "0.5777365", "0.5645296", "0.56309485", "0.56309485", "0.55865806", "0.55344486", "0.5414653", "0.5394106", "0.5358421", "0.5334911", "0.53117836", "0.52963895", "0.5290987", "0.52746093", "0.5214786", "0.5205141", "0.5187752", "0.5184627", "0.5167862", "0.51500195", "0.51491...
0.0
-1
END getLoading$ START showVisualLoading [showVisualLoading Shows an icon when the Widget is loading or another navigation point is clicked , rather to say another feedtype is loading.]
function showVisualLoading(show) { var toAppend$, showMoreBtn$ = jContainer.find('.ASWidget-Stream-ShowMoreBtn'); getLoading$().remove(); if (show) { if (showMoreBtn$.length) { showMoreBtn$.parents('.ASWidget-Stream-Showmore').after(getLoading$()); } else { jContainer.parents(".wbody").ap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function load(){\n\n //Display an optional loading bar\n // g.loadingBar();\n}", "displayLoading(){\n $.showLoading({\n name: \"line-scale\"\n });\n }", "function loading() {\n}", "_loading() {\n }", "function showLoadingView() {\n\n}", "function di_loading(val) {\n\tif(v...
[ "0.67682767", "0.6684867", "0.66292197", "0.6578174", "0.64717454", "0.63699394", "0.63579", "0.6349895", "0.6340249", "0.63189346", "0.6317215", "0.6314309", "0.6314083", "0.63131934", "0.6311532", "0.630331", "0.62723666", "0.62708336", "0.6262361", "0.62396604", "0.6238071...
0.7025249
0
END formatToThumbnailImage START showLikePopover
function showLikePopover(toIterate, hasLiked, itemWhereItWillBeDisplayed$) { var Liker = [], notLikedByMe = (!hasLiked && (1 === toIterate.length) && (toIterate[0].authorID === ownProfile.getUserId())); // START getPopOverLikerHTML function getPopOverLikerHTML(pFullName, pProfileUrl, pPictureUrl) { re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateThumbnail()\n{\n\tvar thumb_dimension = 100;\n\tvar thumbnail_style = $('#thumbnail');\n\tupdateSelection();\n\t//should be the same\n\tvar X_scale = thumb_dimension/selection.origWidth;\n\tvar Y_scale = thumb_dimension/selection.origHeight;\n\tthumbnail_style.css('width', imgObj.width*X_scale);\n\t...
[ "0.64253414", "0.63790405", "0.63537365", "0.6321361", "0.6276238", "0.62380373", "0.61900204", "0.6160301", "0.61545974", "0.61405426", "0.6135155", "0.6088906", "0.60743684", "0.606931", "0.6060542", "0.6049961", "0.6043881", "0.6036867", "0.602326", "0.6021018", "0.5987654...
0.0
-1
END showLikePopover START loadLikers
function loadLikers(eventID, loadLikerCallback) { var tempLikerArr = { isLiked: false, IsClickable: false, LikerArr: [] }; $.ajax({ url: getWindowLocation() + "/connections/opensocial/rest/ublog/@all/@all/" + eventID + "/likes?count=25", method: "GET", contentType: "application/x-www-fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showLikePopover(toIterate, hasLiked, itemWhereItWillBeDisplayed$) {\n\t\t\tvar Liker = [],\n\t\t\t\tnotLikedByMe = (!hasLiked && (1 === toIterate.length) && (toIterate[0].authorID === ownProfile.getUserId()));\n\n\t\t\t// START getPopOverLikerHTML\n\t\t\tfunction getPopOverLikerHTML(pFullName, pProfileUrl...
[ "0.705317", "0.6275126", "0.613204", "0.60757124", "0.6046413", "0.59872895", "0.5929666", "0.5925106", "0.58717763", "0.58239585", "0.5804479", "0.5764246", "0.5761532", "0.5752315", "0.57413334", "0.5728548", "0.5721756", "0.56977004", "0.5679661", "0.567133", "0.56707835",...
0.66263235
1
The event icon URL START addCommentToList
function addCommentToList(repliesObj, toAddTo) { var likerArr = [], isLikedByMe = false, items = repliesObj.items; $.each(items, function(ignore, commentObject) { isLikedByMe = false; if (assertChain(commentObject, "likes.items")) { likerArr = []; $.each(commentObject.likes.item...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addTimelineEvent(icon, date, title, location, extra){\n $( \".timeline-events\" ).prepend('<li class=\"timeline-event\"><span class=\"icon\"><i class=\"mdi '+ icon +'\"></i></span><span class=\"date\">' + date + '</span><span class=\"title\">' + title + '</span><span class=\"location\">' + location + '</...
[ "0.62369704", "0.6203545", "0.60709774", "0.6041893", "0.6008092", "0.597146", "0.59222245", "0.58895576", "0.5872605", "0.5865178", "0.5839372", "0.5828436", "0.5822309", "0.58087575", "0.5770719", "0.576387", "0.56800604", "0.56765676", "0.56713575", "0.56496704", "0.564178...
0.5349617
62
If the json event does not contain any events, then return. START addAttachment
function addAttachment(pObjectType, pAuthorName, pAuthorId, pAuthorUrl, pFileName, pBasicUrl, pDirectUrl, pPreViewUrl, pIconUrl, isMain) { var toAddTo = (isMain) ? obj.mainObject : obj.targetObject, toaddToOrig = (isMain) ? obj.originalFeed.object : obj.originalFeed.target, fileInfo = getAttachmentType...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handleAttachmentMessage() {\n let response;\n\n // Get the attachment\n let attachment = this.webhookEvent.message.attachments[0];\n //console.log(\"Received attachment:\", `${attachment} for ${this.user.psid}`);\n\n response = Response.genQuickReply(i18n.__(\"fallback.attachment\"), [\n {\n ...
[ "0.6103662", "0.5948714", "0.5824229", "0.5751772", "0.56860495", "0.5397555", "0.53088", "0.5263788", "0.5192321", "0.5191376", "0.5167412", "0.5149596", "0.510442", "0.5093344", "0.5066716", "0.5062712", "0.50366044", "0.50293875", "0.5016721", "0.501411", "0.50106114", "...
0.5075616
14
END addAttachment START checkFileObject
function checkFileObject(pObj) { var mustHaveCondition = (assertChain(pObj, "objectType") && ("file" === pObj.objectType)) || (assertChain(pObj, "image.url") && assertChain(pObj, "url.length")), normalFileConditions = [ assertChain(pObj, "mimeType") && (pObj.mimeType.length), assertChain(pObj, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateAttachFile() {\n var tempName = \"\";\n var fileName = fileInput.files[0].name;\n var fileExtension = fileName.split('.').pop().toLowerCase();\n var fileSize = fileInput.files[0].size;\n \n if(jQuery.inArray(fileExtension, ['png', 'jpg', 'jpeg', 'PNG', 'JPG', 'JPEG']) == ...
[ "0.68171144", "0.60038275", "0.5915812", "0.57538027", "0.5743677", "0.56925786", "0.5689165", "0.56485766", "0.56327784", "0.5628993", "0.56251764", "0.56145346", "0.5596461", "0.55900514", "0.55854166", "0.5555849", "0.55419344", "0.5531593", "0.5526006", "0.5500397", "0.54...
0.5109504
42
END grabFeedContent START createActionMenuOrientMe
function createActionMenuOrientMe(expandedObject) { var jqObj = $(expandedObject.pregeneratedHTML), originalDataItem = expandedObject.originalDataObject, grabbedFeedObject = expandedObject.GrabbedFeedObject, likeObj = grabbedFeedObject.LikeObject, itemWrapper$ = $('<ul/>').addClass('oM-actionDiv'), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onOpen() {\n createMenu();\n}", "function onOpen() { CUSTOM_MENU.add(); }", "function overridePopulateActions(){\n $(\"#overridePopulateActionsScript\").remove();\n let overridePopulateActionsMenu = `\n<script id=\"overridePopulateActionsScript\">\nfunction PopulateActions( prefix, elActions, r...
[ "0.63043547", "0.6290241", "0.61569864", "0.61303145", "0.61081743", "0.59783787", "0.59141564", "0.5911305", "0.5874013", "0.5872441", "0.58704215", "0.58613604", "0.5855375", "0.5853664", "0.5848051", "0.584805", "0.58474207", "0.58360815", "0.58328307", "0.58215195", "0.58...
0.6706109
0
END createActionMenuOrientMes START createActionMenu
function createActionMenu(expandedObject) { var jqObj = $(expandedObject.pregeneratedHTML), originalDataItem = expandedObject.originalDataObject, grabbedFeedObject = expandedObject.GrabbedFeedObject, likeObj = grabbedFeedObject.LikeObject, items = ['<div class="btn-group btn-group-xs" role="group" ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initMenu(){\n\toutlet(4, \"vpl_menu\", \"clear\");\n\toutlet(4, \"vpl_menu\", \"append\", \"properties\");\n\toutlet(4, \"vpl_menu\", \"append\", \"help\");\n\toutlet(4, \"vpl_menu\", \"append\", \"rename\");\n\toutlet(4, \"vpl_menu\", \"append\", \"expand\");\n\toutlet(4, \"vpl_menu\", \"append\", \"fold...
[ "0.6905202", "0.6886952", "0.6773391", "0.6766902", "0.6739052", "0.6700176", "0.66119766", "0.6601568", "0.6476568", "0.6474568", "0.6457821", "0.6445171", "0.6418546", "0.63648367", "0.6363649", "0.63585585", "0.6345401", "0.63369393", "0.633262", "0.6329169", "0.6327224", ...
0.0
-1
END createActionMenu START getMetaChunk
function getMetaChunk() { var commentBtnText = localizeString("ASWidget-post-comment", "Post Comment"), postCommentBtn$ = savedSettings.useDefaultStyle ? $('<button/>') .attr('type', 'button') .addClass('btn btn-primary btn-xs PostCurrentComment') .text(commentBtnText) .append($('</i>').a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onOpen() { CUSTOM_MENU.add(); }", "function contextualMenuItems( item, view ) {\n}", "function overridePopulateActions(){\n $(\"#overridePopulateActionsScript\").remove();\n let overridePopulateActionsMenu = `\n<script id=\"overridePopulateActionsScript\">\nfunction PopulateActions( prefix, elAc...
[ "0.56904995", "0.5586883", "0.5568882", "0.550428", "0.5494404", "0.5382215", "0.534354", "0.53012425", "0.5294691", "0.5289569", "0.5268612", "0.52098906", "0.52093536", "0.51851445", "0.51710135", "0.5154196", "0.5146351", "0.5145851", "0.51457727", "0.51369566", "0.5132864...
0.49019122
51
END generateSingleComment START generateCommentsHtml
function generateCommentsHtml(pCommentObjects) { var items = []; if (!pCommentObjects || (pCommentObjects && !pCommentObjects.length)) { return []; } $.each(pCommentObjects, function(ignore, commentObject) { var toGenObj = { LikeServiceAvailable: commentObject.LikeServiceAvailable, Author:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getComments(){\n if (commentsArray.length<=0){\n return '<div id=\"comments-main-container\"><label id=\"comments-heading\">All Comments</label></div>';\n }\n else {\n var template = '';\n template+='<div id=\"comments-main-container\">';\n template+= '<label id=\"comments-heading\">...
[ "0.69980425", "0.687639", "0.653006", "0.65127915", "0.65022177", "0.64828414", "0.6462412", "0.6341092", "0.6264225", "0.62520856", "0.6241946", "0.62292165", "0.62267697", "0.62194186", "0.61825913", "0.6165563", "0.6149073", "0.6140816", "0.6086147", "0.60749084", "0.60676...
0.6592121
2
END generateCommentsHtml START getShowPreviousCommentsIndicator$
function getShowPreviousCommentsIndicator$(useDefault) { var showPrevText = localizeString("ASWidget-comments-showprevious", "Show Previous Comments..."), li$ = $('<li/>').addClass('ASWidget-Comment-ShowMoreComments'), previousComments$ = li$.append( $('<button/>') .attr('type', 'button') ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayComments(){\n if(rData[tracker].taskComments.length === 0){\n document.getElementById(\"comments-cont\").innerHTML = `<p>No Comments yet</p>`;\n }\n else{\n document.getElementById(\"comments-cont\").innerHTML = \"\";\n for(let i = 0; i < rData[tracker].taskComments.le...
[ "0.6239776", "0.620871", "0.61515546", "0.6058862", "0.60010946", "0.59928393", "0.59812987", "0.597285", "0.59309566", "0.590693", "0.5897551", "0.58884776", "0.58778095", "0.5822434", "0.58108777", "0.5802441", "0.5800364", "0.57916576", "0.5776997", "0.57593757", "0.575810...
0.7229294
0
END getShowPreviousCommentsIndicator$ START modifyItem
function modifyItem(expandedObject) { var jqObj = $(expandedObject.pregeneratedHTML), newPostElement = "", originalDataItem = expandedObject.originalDataObject, grabbedFeedObject = expandedObject.GrabbedFeedObject, postObjectInside$ = jqObj.find('.postObject-inside-main'); jqObj.find(".ASWidgetP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getShowPreviousCommentsIndicator$(useDefault) {\n\t\t\tvar showPrevText = localizeString(\"ASWidget-comments-showprevious\", \"Show Previous Comments...\"),\n\t\t\t\tli$ = $('<li/>').addClass('ASWidget-Comment-ShowMoreComments'),\n\n\t\t\t\tpreviousComments$ = li$.append(\n\t\t\t\t\t$('<button/>')\n\t\t\t...
[ "0.66738516", "0.6639112", "0.6389796", "0.6367251", "0.61379147", "0.61224073", "0.6090867", "0.6082012", "0.60707945", "0.6003243", "0.5964846", "0.5950248", "0.5950248", "0.59452033", "0.59295017", "0.5921364", "0.5921364", "0.5921364", "0.5877965", "0.5869797", "0.584774"...
0.0
-1
END modifyItem START generateVCard
function generateVCard(pFullName, pProfileId, pProfileUrl, pProfilePic, withPic, addProfileUrl, isSubActor) { var toReturn = (withPic ? '<div class="ActivityStreamWidgetPostAuthorInfo"> <div class="ActivityStreamWidgetPostAvatar">' + ' <img class="activityStreamPhotoOf ' + (isSubActor ? 'ASWidgetSubActorPic' : ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function viewItemToEdit(item) {\n\t\tOverlayModule.enableOverlay();\n\t\tvar viewProduct = findItem(item)[0];\n\t\tvar div = document.getElementById(\"itemImage\");\n\t\tdiv.src = \"images/\"+item+\".jpg\";\n\n\n\t\tvar itemFullName = viewProduct.p_variation + \" \" + viewProduct.p_name;\n\t\tvar itemCurrency = vi...
[ "0.5549643", "0.54092884", "0.5408582", "0.53793484", "0.5359479", "0.53585815", "0.5351821", "0.5328443", "0.5294189", "0.52881956", "0.52874345", "0.5270839", "0.52509236", "0.52495563", "0.52359676", "0.5231501", "0.5206913", "0.5205032", "0.5190641", "0.516917", "0.516538...
0.52465385
14
END generateVCard START generateSingleFeedHTML
function generateSingleFeedHTML(itemToUseContent) { var tAuthorFullName = itemToUseContent.targetAuthor.eventDestActorFullName(true), tAuthorProfileUrl = itemToUseContent.targetAuthor.eventDestActorProfileUrl(true), tAuthorProfilePic = itemToUseContent.targetAuthor.eventDestActorProfilePic(true), tAutho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function genFinalHtml() {\r\n ` </div> \r\n\r\n </body>\r\n </html`;\r\n}", "function main() {\r\n clearElement('output');\r\n for (i = 0; i < 20; i ++){\r\n Scriptures.getRandomScripture(scripture => {\r\n let cardHtml = createCardHtml(scripture);\r\n insertHtml('output', cardHtml)\r\...
[ "0.60744435", "0.5908204", "0.58553153", "0.56982386", "0.569183", "0.56573427", "0.56231344", "0.5570568", "0.556364", "0.54892313", "0.54613984", "0.5460355", "0.54477686", "0.5408083", "0.53709257", "0.53439146", "0.533475", "0.53249305", "0.5321911", "0.5312391", "0.53112...
0.6596459
0
END generateSingleFeedHTML START getNoAccessNotification
function getNoAccessNotification() { var resultMsg = localizeString("ASWidget-no-access-to-entries", "You do not have permission to access this page."), noAccessMsg = '<ul class="ASWidget-NoEntries-Ul"><li class="normalPostEntryItem">' + $('<div/>').addClass('container-ASWidgetAlert').append(createAlert(res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function doRssFeed() {\n \n var rssFeed = new google.feeds.Feed(\"http://feeds.skynews.com/feeds/rss/home.xml\");\n \n //number of RSS entries to restrict\n rssFeed.setNumEntries(3);\n \n //load RSS info & identify the call back function\n rssFeed.load(viewFeed);\n}", "function getLiveFeed(){\t\t\t\t\n\t...
[ "0.5578754", "0.54655915", "0.5461877", "0.54495853", "0.5444147", "0.5427041", "0.53519404", "0.5335724", "0.5320157", "0.53170997", "0.53169775", "0.5286704", "0.52684695", "0.52578795", "0.52226096", "0.521627", "0.5195829", "0.5190789", "0.51673603", "0.51410216", "0.5133...
0.59373116
0
END getNoAccessNotification START getCustomNotification
function getCustomNotification(customMsg) { var resultMsg = customMsg, customMsgT = '<ul class="ASWidget-customMsg-Ul"><li class="normalPostEntryItem">' + $('<div/>').addClass('container-ASWidgetAlert').append(createAlert(resultMsg, 'danger'))[0].outerHTML + '</li></ul>'; return customMsgT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getNotification() {\n if (this.displayModel) {\n return super.getNotification();\n } else {\n return {};\n }\n }", "get notification() {\n return NotificationMessage.exist[this.type];\n }", "function getNoAccessNotification() {\n\t\t\tvar resultMsg = localizeString(\"ASWidget-no-a...
[ "0.6299727", "0.62943864", "0.6291824", "0.626436", "0.60610986", "0.6047771", "0.6009774", "0.5976184", "0.5966295", "0.5956018", "0.59390986", "0.5937377", "0.59120953", "0.59065884", "0.5881478", "0.58779263", "0.5864274", "0.5861181", "0.5846652", "0.58224136", "0.5820592...
0.64923847
0
END getCustomNotification START getNoEntriesNotification
function getNoEntriesNotification() { var resultMsg = searchModeActivated.state ? localizeString("ASWidget-no-search-entries-found", "No entries found with your search parameter $1.", searchModeActivated.query) : localizeString("ASWidget-no-entries-found", "There are no updates to display."), nothingToDisplay$ =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNoAccessNotification() {\n\t\t\tvar resultMsg = localizeString(\"ASWidget-no-access-to-entries\", \"You do not have permission to access this page.\"),\n\t\t\t\tnoAccessMsg = '<ul class=\"ASWidget-NoEntries-Ul\"><li class=\"normalPostEntryItem\">' +\n\t\t\t\t\t$('<div/>').addClass('container-ASWidgetAl...
[ "0.6642195", "0.6021075", "0.5969593", "0.5804572", "0.57616645", "0.5750788", "0.570545", "0.56316334", "0.56035227", "0.5560455", "0.5553887", "0.5528187", "0.5509299", "0.54991686", "0.5470745", "0.54648244", "0.54545134", "0.5444623", "0.54380256", "0.5429318", "0.5425529...
0.7355737
0
END showBlogEntry END showIt
function showIt() { showBlogEntry(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showBlog(numEntries){\n\t\t//Sort the blog accordingly to show the latest blog on the top \n\t\t // blog.sort(function(blog[i],blog[i]+1){ return blog[i]+1.date - blog[i].date});\n\t\t// Adjust the number of entries to show the full blog , if necessary \n\t\tif(!numEntries){\n\t\t\tnumEntries = blog.leng...
[ "0.65951025", "0.64950556", "0.62234056", "0.6027506", "0.6001826", "0.5911459", "0.5887375", "0.58780015", "0.5842613", "0.58298254", "0.58075905", "0.57848537", "0.5777493", "0.5715723", "0.5712431", "0.57002676", "0.5696002", "0.56433386", "0.5636075", "0.56251127", "0.562...
0.8048435
0
END rePostEvent START clearDataList
function clearDataList() { lastItemDataRefId = 0; dataArray = []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_clearDataElements() {}", "function refreshData(){\n $('#abHeader').nextAll().remove(); // clears table rows\n $('#abErrorsLog ul').empty(); // clears errors log\n refreshCycle = 0; // reset refresh cycle control\n itemIds = [];\n itemSince ...
[ "0.72409755", "0.7069385", "0.66814303", "0.66814303", "0.66814303", "0.66814303", "0.6570751", "0.6554412", "0.6476076", "0.6474228", "0.64644253", "0.6431763", "0.6419444", "0.63967466", "0.6365879", "0.635335", "0.635335", "0.63464874", "0.6343405", "0.6343405", "0.6343405...
0.8178446
0
END getActivityStreamEntries START clearPostingArea
function clearPostingArea() { shareTextBox$.val(""); shareTextBox$.trigger("focus").trigger("change"); jContainer.find('.ASWidgetUploadNewFileDiv') .find('.ASWidgetUploadNewFileName').removeClass("fa fa-file") .end().find('.ASWidgetCurrentSelectedFileName').text(''); fileToUploadFromDialog = undef...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearPosts() {\n\t\t$(articleContainer).html('');\n\t}", "function clearPosts() {\n\t\t$(articleContainer).html('');\n\t}", "function onEndStream(endPointId) {\n tile_count--;\n // if this ended sharing\n if (share_id == endPointId) {\n share_id = false;\n }\n tile = document.getElementById(\"...
[ "0.57767606", "0.57767606", "0.5732094", "0.57289386", "0.55274206", "0.55032974", "0.5487287", "0.5338899", "0.53039896", "0.52796185", "0.5250934", "0.51440185", "0.5130959", "0.5112277", "0.5088899", "0.5084068", "0.5070188", "0.50691473", "0.505784", "0.5040471", "0.50342...
0.5424252
7
END clearPostingArea START addMemberToCommunity
function addMemberToCommunity(isPublic, communityUuid, profileId, joiningText, addMemberToComCallback) { var joinRequest = '', requestToJoinWithText = ''; if (isPublic) { joinRequest = '<entry xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" ' + 'xmlns:opensearch="http://a9....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addMember(member) {\n this.params.beforeAddMember(member);\n this.params.members.push(member);\n this.updateMembersUI();\n this.params.afterAddMember(member);\n }", "function addExistingMember(self) {\n show2ListsMembersContainer(self);\n if (!self.list1) {\n ...
[ "0.649836", "0.64469326", "0.62776667", "0.60367185", "0.60168236", "0.5895849", "0.58407974", "0.58046216", "0.5793626", "0.57747006", "0.57510424", "0.57380104", "0.569578", "0.56918865", "0.5688178", "0.5644169", "0.5629028", "0.56139547", "0.55891293", "0.5566066", "0.551...
0.6508511
0
END addMemberToCommunity START getCommunityFeed
function getCommunityFeed(communityUuid, getCommunityFeedCalback) { if (!communityUuid && $.isFunction(getCommunityFeedCalback)) { getCommunityFeedCalback.call(this, "nocommunityUuid", -1); } $.ajax({ url: X.T.getRootPath("Communities", false) + "/service/atom/community/instance?communityUuid=" + commu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addMemberToCommunity(isPublic, communityUuid, profileId, joiningText, addMemberToComCallback) {\n\t\t\tvar joinRequest = '',\n\t\t\t\trequestToJoinWithText = '';\n\t\t\tif (isPublic) {\n\t\t\t\tjoinRequest = '<entry xmlns=\"http://www.w3.org/2005/Atom\" xmlns:app=\"http://www.w3.org/2007/app\" ' +\n\t\t\t...
[ "0.63270414", "0.58411515", "0.5734616", "0.5461804", "0.5391261", "0.53630316", "0.535959", "0.5356912", "0.5355223", "0.5299872", "0.52751404", "0.52517974", "0.52401865", "0.52295494", "0.5219472", "0.5206683", "0.5191867", "0.51787525", "0.5151366", "0.5137306", "0.511392...
0.708456
0
END getCommunityFeed START getCommunityRestrictions
function getCommunityRestrictions(communityUuid, getCommunityRestrictionsCalback) { getCommunityFeed(communityUuid, function(data, pRequestOk) { var state = "request_error"; if (pRequestOk) { state = $($(data).get(2)).find("snx\\:communitytype,communitytype").text() || ""; } if ($.isFunction(get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async genRestrictions(){\n //Not yet implemented\n }", "getRecipesByRestriction(userDietaryRestrictions){\n if (userDietaryRestrictions.length === 0) {\n return this.recipes;\n }\n let acceptableRecipes = [];\n this.recipes.forEach(function(recipe) {\n if (this.isAcceptableRecipe(rec...
[ "0.59996444", "0.51328826", "0.50093096", "0.49704155", "0.49031156", "0.49031156", "0.47749484", "0.47262987", "0.4722544", "0.47147056", "0.47053725", "0.4703501", "0.47034624", "0.46942997", "0.4690798", "0.4679566", "0.46700558", "0.4660937", "0.46290374", "0.46085945", "...
0.7125031
0
END getCommunityRestrictions START checkIfUserisCommunityMember
function checkIfUserisCommunityMember(communityUuid, userId, checkIfIsMemberOfComCallback) { if (!communityUuid || !userId) { if ($.isFunction(checkIfIsMemberOfComCallback)) { checkIfIsMemberOfComCallback.call(this, false); } } $.ajax({ url: X.T.getRootPath("Communities", false) + "/service/at...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCommunityRestrictions(communityUuid, getCommunityRestrictionsCalback) {\n\t\t\tgetCommunityFeed(communityUuid, function(data, pRequestOk) {\n\t\t\t\tvar state = \"request_error\";\n\t\t\t\tif (pRequestOk) {\n\t\t\t\t\tstate = $($(data).get(2)).find(\"snx\\\\:communitytype,communitytype\").text() || \"\...
[ "0.66637105", "0.5545896", "0.5498666", "0.5298348", "0.52949464", "0.5067785", "0.5058139", "0.504979", "0.5041116", "0.50202584", "0.49931988", "0.49489066", "0.49489066", "0.49487993", "0.49256736", "0.48489562", "0.4847417", "0.483194", "0.48184323", "0.4812858", "0.48074...
0.6048482
1
END checkIfUserisCommunityMember START checkEvent
function checkEvent(pEvent) { if ($.isFunction(pEvent.stopPropagation)) { pEvent.stopPropagation(); } if ($(pEvent.target).is('a')) { pEvent.preventDefault(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkIfUserisCommunityMember(communityUuid, userId, checkIfIsMemberOfComCallback) {\n\t\t\tif (!communityUuid || !userId) {\n\t\t\t\tif ($.isFunction(checkIfIsMemberOfComCallback)) {\n\t\t\t\t\tcheckIfIsMemberOfComCallback.call(this, false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$.ajax({\n\t\t\t\turl: X.T.getRootPat...
[ "0.64177126", "0.6028812", "0.5958593", "0.58687305", "0.58165944", "0.57545453", "0.56868064", "0.56067216", "0.5478027", "0.5459225", "0.5436739", "0.54128665", "0.540978", "0.5395451", "0.5369794", "0.53560746", "0.5329179", "0.52815884", "0.5274055", "0.5254234", "0.52440...
0.0
-1
END checkEvent START bindLikeCommentEvents
function bindLikeCommentEvents() { jContainer.find(".LikeComment").unbind("click").on("click", function(event) { var this$, dataObject, eventID, rollUpID, newLikedState, likeObject$, oldLikeCount, newLikeCount; checkEvent(event); this$ = $(event.currentTarget); da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setCommentsListener()\n{\n $('.comment-reply-link').bind('click',commentReply);\n $('.leave-comment').bind('click',comment);\n}", "function addCommentEvents() {\n\t$('.remove-comment').on('click', function () {\n\t\tlet id = $(this).attr('data-id');\n\t\tremoveComment(id);\n\t});\n\n\t$('.update-c...
[ "0.6781653", "0.62639415", "0.62353355", "0.61812127", "0.6129466", "0.6100569", "0.60550404", "0.60279804", "0.5904761", "0.5900045", "0.58891195", "0.5819247", "0.5641991", "0.563318", "0.56309915", "0.5610422", "0.5512285", "0.5492039", "0.5487892", "0.5475589", "0.5460818...
0.7003369
0
END bindLikeCommentEvents START stopFollowing
function stopFollowing(eventID, callback) { var callTheCallBack = function callBackTrigger(pSuccess, hasEntries) { if ($.isFunction(callback)) { callback.call(this, pSuccess, hasEntries); } }; $.ajax({ url: getWindowLocation() + "/homepage/web/doFetchFollowingData.action?storyId=" + eventID, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bindLikeCommentEvents() {\n\t\t\tjContainer.find(\".LikeComment\").unbind(\"click\").on(\"click\", function(event) {\n\t\t\t\tvar this$,\n\t\t\t\t\tdataObject,\n\t\t\t\t\teventID,\n\t\t\t\t\trollUpID,\n\t\t\t\t\tnewLikedState,\n\t\t\t\t\tlikeObject$,\n\t\t\t\t\toldLikeCount,\n\t\t\t\t\tnewLikeCount;\n\n\t...
[ "0.6536323", "0.6182996", "0.61761314", "0.5994085", "0.59625274", "0.59016097", "0.5898129", "0.5770521", "0.57152355", "0.5694306", "0.5683981", "0.56665725", "0.5650315", "0.5621729", "0.55678624", "0.552701", "0.5505149", "0.54549295", "0.5398853", "0.5396262", "0.5396154...
0.0
-1
END stopFollowing START checkWhichNavigationToDisplay [checkWhichNavigationToDisplay If one clicks on "Status Updates" different navigation points have to be displayed.]
function checkWhichNavigationToDisplay() { var nonStatusUpdates$ = jContainer.find(".ASWidgetActionDropdown li:not(.ASWidgetStatusUpdatesNaviPoint)"), statusUpdates$ = jContainer.find(".ASWidgetActionDropdown li.ASWidgetStatusUpdatesNaviPoint"); if (jContainer.find(".ASWidgetstatusUpdates.active").length) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateNavigationLinks()\n {\n if (currentSubunitIsTheFirstSubunit()) {\n my.html.previousLink.style.visibility = 'hidden'\n my.html.nextLink.style.visibility = 'visible'\n } else if (currentSubunitIsTheLastSubunit()) {\n my.html.previousLink.style.visibili...
[ "0.6103857", "0.5978604", "0.5873748", "0.578634", "0.5776013", "0.5762444", "0.57478666", "0.5725425", "0.56767493", "0.56564385", "0.56510013", "0.5648366", "0.55599004", "0.55599004", "0.55493045", "0.54641986", "0.5422022", "0.5421091", "0.54193264", "0.5416091", "0.54138...
0.7494042
0
END checkWhichNavigationToDisplay START setSelectedFilter
function setSelectedFilter(th) { jContainer.find(".ASWidgetLeftNaviPart li.active").removeClass("active"); $(th).addClass("active"); checkWhichNavigationToDisplay(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setFilter(){\r\n\tcallNavigateFilter({\r\n\t\ttxtName: $('nameFilter').value,\r\n\t\ttxtDesc: $('descFilter').value,\r\n\t\ttxtTitle: $('titleFilter').value,\r\n\t\tselPrj: $('projectFilter').value,\r\n\t\ttxtRegUser: $('regUsrFilter').value,\r\n\t\ttxtRegDate: $('regDateFilter').value,\r\n\t\tcubeType: $...
[ "0.6770978", "0.6555841", "0.6532839", "0.65289766", "0.6500494", "0.6493625", "0.6405553", "0.63954574", "0.63894266", "0.63894266", "0.63842434", "0.63380814", "0.6313201", "0.6313201", "0.6313201", "0.6313201", "0.6313201", "0.6313201", "0.6313201", "0.6313201", "0.6313201...
0.72288567
0
END setSelectedFilter [registerItemEvents All item specific events are registered here. Item events for all elements within the .streamItems unordered list.] START getShareBoxDiv$
function getShareBoxDiv$(useDefault) { return $('<div/>').addClass('ASWidgetShareSomethingDiv').append( $('<span/>').addClass('ASWidgetShareSomething').text(useDefault ? localizeString('ASWidget-header-sharesomething', 'Share Something: update your status or upload a file.') : '') ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function shareItem(){\r\n var current = getCurrentEntry();\r\n var currentEntry = current.getElementsByTagName(\"broadcast\")[0];\r\n // var currentEntry = $(\"#current-entry .entry-actions .broadcast\");\r\n simulateClick(currentEntry);\r\n }", "function addFilterItem() {\n var...
[ "0.61850643", "0.5473365", "0.5274857", "0.5267404", "0.52644765", "0.52590925", "0.5241239", "0.52387047", "0.52174366", "0.516934", "0.5168819", "0.51527804", "0.5149928", "0.51483023", "0.51190376", "0.50812256", "0.5073669", "0.505946", "0.5056776", "0.5054958", "0.504444...
0.52410847
7
END getShareBoxDiv$ START getShareDivWrapper$
function getShareDivWrapper$() { return $('<div/>').addClass('form-group shareDiv').append( $('<textarea/>').addClass('form-control ASWidgetshareBoxInput') .attr('placeholder', localizeString("ASWidget-share-sharebox-placeholder", "What do you want to share?")) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getShareBoxDiv$(useDefault) {\n\t\t\treturn $('<div/>').addClass('ASWidgetShareSomethingDiv').append(\n\t\t\t\t$('<span/>').addClass('ASWidgetShareSomething').text(useDefault ? localizeString('ASWidget-header-sharesomething', 'Share Something: update your status or upload a file.') : '')\n\t\t\t);\n\t\t}"...
[ "0.7328973", "0.676212", "0.66938335", "0.6600593", "0.6380704", "0.6350029", "0.63427436", "0.62983596", "0.620428", "0.6188304", "0.6105015", "0.6037672", "0.60027885", "0.5957011", "0.58724844", "0.58690065", "0.58667743", "0.58183527", "0.5816344", "0.5816309", "0.5778436...
0.71465033
1
END getShareDivWrapper$ START getActionDiv$
function getActionDiv$(useDefault) { var postBtn$ = $('<a/>').addClass('oM-ASWidgetPostNewEntry oM-Button-active').text(localizeString("ASWidget-share-postnewentrybtn", "Post")), clearBtn$ = $('<a/>').addClass('oM-ASWidgetClearNewEntry oM-Button-default').text(localizeString("ASWidget-share-clearnewentrycontentb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showActionDiv(action) {\n\tvar moduleElem = document.getElementById('pickmodule');\n\tvar module = moduleElem.options[moduleElem.selectedIndex].value;\n\n\tvar oModPick = document.getElementById('allpick');\n\tvar fieldName=oModPick.options[oModPick.selectedIndex].value;\n\tvar fieldLabel=oModPick.options...
[ "0.6152524", "0.605723", "0.59736484", "0.5892962", "0.58196396", "0.57235664", "0.572021", "0.5696172", "0.5663349", "0.56446123", "0.5616481", "0.5607975", "0.55923975", "0.5575138", "0.5566751", "0.555459", "0.5446785", "0.5420363", "0.53732395", "0.53612864", "0.53519624"...
0.701576
0
END getActionDiv$ START getStreamHeaderHTML
function getStreamHeaderHTML() { var joinCommunity$ = $('<div/>').addClass('ASWidget-Join-Community-Div').append($('<button/>').attr('type', 'button').attr('rel', 'sendjoin').addClass('ASWidgetCnxBtn ASWidgetjoinCommunityBtn')), shareSomething$, streamHeader, isCommunityModeAndNotMember = isCommunityMode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get hdr() {}", "get html() {\n let html = '<div style=\"background: #fff; border: solid 1px #000; border-radius: 5px; font-weight: bold; margin-bottom: 1em; overflow: hidden;\">';\n html += '<div style=\"background: #000; color: #fff; text-align: center;\">' + this._header + '</div>';\n html += '<...
[ "0.6099742", "0.5762318", "0.57378894", "0.56181", "0.5498649", "0.5495976", "0.5495976", "0.54852283", "0.5472222", "0.5472132", "0.54595643", "0.54375964", "0.5435879", "0.54169196", "0.5412697", "0.538239", "0.5377803", "0.536838", "0.5366487", "0.5358785", "0.5358009", ...
0.69311625
0
END getStreamHeaderHTML START toggleSearchField
function toggleSearchField() { var searchStreamDiv = jContainer.find(".ASWidgetSearchStreamDiv"); searchStreamDiv.toggle(); jContainer.find(".streamItems").css("margin-top", ((searchStreamDiv).is(":visible")) ? "70px" : "12px"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggleSearchField() {\n $(\".header__search.search.search__open\").click(function(){\n $( \"body\" ).toggleClass( \"search__box__show__hide\");\n });\n $(\".search__close__btn_icon\").click(function(){\n $( \"body\" ).toggleClass( \"search__box__show__hide\");\n ...
[ "0.69086087", "0.66259414", "0.6516258", "0.6410438", "0.63381416", "0.6314263", "0.63045996", "0.6296916", "0.6280769", "0.6244019", "0.61044407", "0.6092405", "0.60834557", "0.6038605", "0.60192126", "0.60085624", "0.59832114", "0.5980087", "0.5957098", "0.5951032", "0.5942...
0.77856535
0
END toggleSearchField START mainRendering
function mainRendering(itemsToRender, entriesExistingBool) { var heightContainer$ = $('<div class="ASWidget-All-Items" style="position:absolute;top: -99999px; left: -99999px;"></div>').append($(getStreamHeaderHTML())), searchOpened = jContainer.find(".ASWidgetSearchStreamDiv").is(":visible"), toSubtract, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggleSearchMode() {\n self.searchMode = !self.searchMode;\n }", "function toggle(){\r\n\ttoggleResult();\r\n\t// toggleSearch();\r\n}", "function toggleSearchField() {\n $(\".header__search.search.search__open\").click(function(){\n $( \"body\" ).toggleClass( \"search__box__...
[ "0.7212123", "0.7177278", "0.71602964", "0.7106487", "0.7029204", "0.702727", "0.6990213", "0.67903537", "0.67837054", "0.6720606", "0.67056286", "0.6702006", "0.6698691", "0.66910255", "0.6664131", "0.6662302", "0.6627336", "0.66022164", "0.65613765", "0.65325534", "0.652595...
0.0
-1
END mainRendering START expandItem
function expandItem(event) { var targetElement = event, targetElement$ = $(targetElement), newHeight = (targetElement && targetElement.data("fullheight")) ? targetElement.data("fullheight") : ""; targetElement$.height(newHeight).removeAttr("style"); targetElement$.parents(".normalPostEntryItem").first...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "expandItem(item){if(!this._isExpanded(item)){this.push(\"expandedItems\",item)}}", "function expandItem(item) {\n item._collapsed = false;\n _expandedRows.push(item);\n \n // display pre-loading template\n if (!item._detailViewLoaded || _options.loadOnce !== true) {\n item._detail...
[ "0.78166074", "0.7241732", "0.689356", "0.6873388", "0.6847263", "0.6841939", "0.6821217", "0.6786844", "0.66973096", "0.66924566", "0.6664665", "0.66245335", "0.66107553", "0.6507751", "0.65067714", "0.64990145", "0.6498588", "0.6476069", "0.6471222", "0.6449598", "0.6441703...
0.68060064
7
END expandItem START registerItemEvents
function registerItemEvents() { // START showEE function showEE(eventObjectToSearchIn) { showEEFunc(getRelationObject(eventObjectToSearchIn), eventObjectToSearchIn); } // END showEE jContainer.find('[data-toggle="ASWidget-Post-Date"]').tooltip(); jContainer.find('img').bind('error', functi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "expandItem(item){if(!this._isExpanded(item)){this.push(\"expandedItems\",item)}}", "function onPreExpandStarted(){}", "function expandItem(event) {\n\t\t\tvar targetElement = event,\n\t\t\t\ttargetElement$ = $(targetElement),\n\t\t\t\tnewHeight = (targetElement && targetElement.data(\"fullheight\")) ? targetEl...
[ "0.75700724", "0.6867233", "0.6835636", "0.6809209", "0.67607254", "0.646596", "0.64281154", "0.6334118", "0.6326327", "0.6318534", "0.6140965", "0.6137224", "0.60911924", "0.6078872", "0.60053813", "0.5944643", "0.5927517", "0.5888278", "0.5872411", "0.5871285", "0.58642256"...
0.61305064
12
END registerItemEvents START removeExistingAlerts
function removeExistingAlerts() { var existingAlerts = jContainer.find(".container-ASWidgetAlert"); if (existingAlerts) { existingAlerts.remove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function purgeAlerts() {\n\tclearAlerts();\n\thideAlerts();\t\n}", "function bindExistingAlerts() {\n\t\t\tvar allAlertsCloseBtns$ = jContainer.find(\".container-ASWidgetAlert .close\");\n\t\t\tallAlertsCloseBtns$.unbind(\"click\").on(\"click\", function(event) {\n\t\t\t\t$(event.currentTarget).parents(\".contai...
[ "0.68220496", "0.6340406", "0.6252214", "0.5820962", "0.5653163", "0.5609825", "0.5586714", "0.55407256", "0.547878", "0.54695594", "0.546454", "0.5452887", "0.5396648", "0.538694", "0.5361975", "0.5340496", "0.5326353", "0.53149265", "0.52981883", "0.5288723", "0.5270407", ...
0.6937538
0
END removeExistingAlerts START doScroll
function doScroll(itemIndex) { var lastItem$ = jContainer.find('[data-index="' + itemIndex + '"]').first(); lastItem$.focus().blur(); // Call .focus() to scroll to the last item and then blur it. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function purgeAlerts() {\n\tclearAlerts();\n\thideAlerts();\t\n}", "function removeExistingAlerts() {\n\t\t\tvar existingAlerts = jContainer.find(\".container-ASWidgetAlert\");\n\t\t\tif (existingAlerts) {\n\t\t\t\texistingAlerts.remove();\n\t\t\t}\n\t\t}", "function resetScroll() {\n var viewer = $find(vie...
[ "0.6562286", "0.64671355", "0.6240171", "0.5933349", "0.5826745", "0.58067894", "0.57918775", "0.57878333", "0.57832545", "0.5762008", "0.57222635", "0.5702939", "0.5697631", "0.56949663", "0.56765693", "0.5671527", "0.56682825", "0.56253386", "0.5621665", "0.56199694", "0.56...
0.0
-1
END generateEntries START bindExistingAlerts [bindExistingAlerts bind several alerts]
function bindExistingAlerts() { var allAlertsCloseBtns$ = jContainer.find(".container-ASWidgetAlert .close"); allAlertsCloseBtns$.unbind("click").on("click", function(event) { $(event.currentTarget).parents(".container-ASWidgetAlert").first().remove(); return false; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function populateAlerts(){\n\t//type: requests. //suggestion: show count of requests instead of individual ones\n\tfor(var i=0; i<allRequests.length; i++){\n\t\tvar novel; //the isNew part should be the only thing that has to be calculated client-side and since we won't be using this particular function it can be ...
[ "0.59758896", "0.51790893", "0.5116001", "0.5096207", "0.5000298", "0.49968404", "0.49352443", "0.48256534", "0.47492078", "0.47417998", "0.47019196", "0.46722972", "0.46492937", "0.4623554", "0.46158406", "0.45913997", "0.45642272", "0.45592397", "0.4547935", "0.45128572", "...
0.59688723
1
END closeSearchStreamField START checkStreamTypeAndLoadIt [checkStreamTypeAndLoadIt Check whether to load the normal activitystream or community specific stream.]
function checkStreamTypeAndLoadIt(savedSettings) { var targetStream, communityModeSaved = (savedSettings.useCommunity && savedSettings.hasCommunity); currentAccess.widgetCommunityUuid = communityModeSaved ? savedSettings.communityUuid : undefined; checkIfUserisCommunityMember(currentAccess.widgetCommunityU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function palicannon_loadStream(book,parBegin,parEnd){\n\tdocument.getElementById(\"wizard_div\").style.display=\"none\";\n\t\n\tgCurrParBegin=parBegin;\n\tgCurrParEnd=parEnd;\n\tgCurrLoadPar=parBegin;\n\tgLoadSteamCanceled=false;\n\t//清空单词节点数组\n\tgXmlAllWordInWBW = new Array();\n\t\n\tvar d=new Date();\n\tloadStea...
[ "0.57908267", "0.5433532", "0.54043484", "0.5394395", "0.5272161", "0.5268253", "0.5223574", "0.5178569", "0.51386666", "0.5123212", "0.51214", "0.51142246", "0.5082325", "0.50564283", "0.5053663", "0.5052248", "0.5050202", "0.50356805", "0.50342065", "0.501815", "0.49476734"...
0.6928291
0
END composeUserSearchQuery START getUsers /from XCCADMINPANEL TODO branch out?
function getUsers(term, opt) { var ajaxOptions = $.extend({ url: X.T.getRootPath("Profiles") + "/atom/search.do", cache: false, data: { activeUsersOnly: true, search: composeUserSearchQuery(term), ps: 25 } }, opt); return $.ajax(ajaxOptions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listUsers() {\n gapi.client.directory.users.list({\n 'customer': 'my_customer',\n 'maxResults': 100,\n 'orderBy': 'email',\n 'viewType': \"domain_public\"\n }).then(function(response) {\n var users = response.result.users;\n var menu ...
[ "0.6952602", "0.6949128", "0.69234174", "0.6816145", "0.6776404", "0.6713862", "0.66148865", "0.6611295", "0.66110677", "0.6586182", "0.65329593", "0.6468655", "0.646597", "0.6448773", "0.64464617", "0.6432499", "0.6411812", "0.6399821", "0.6367417", "0.63616943", "0.6337424"...
0.67749476
5
Build a destructive iterator for the value list
function iteratorFor(items) { var iterator = { next: function() { var value = items.shift() return {done: value === undefined, value: value} } } if (support.iterable) { iterator[Symbol.iterator] = function() { return iterator } } return iterator }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static createIteratorFromValue(value){\n return (function(){\n let used = false;\n\n return {\n next: function(){\n try {\n return used ? {done: true} : {value: value, done: false};\n ...
[ "0.6566187", "0.61966294", "0.6129924", "0.60959643", "0.60802794", "0.60802794", "0.60514796", "0.60514796", "0.60514796", "0.60514796", "0.60514796", "0.60386664", "0.60199934", "0.5999367", "0.5935035", "0.58986324", "0.5862323", "0.5855282", "0.57777065", "0.5717754", "0....
0.0
-1
your job is to finish writing these functions and variables that we've named // don't change the names or your program won't work as expected.
function initialPrompt() { word = input.question("Let's play some scrabble!\n\nEnter a word to score: "); /*console.log('\n' + scrabbleScore.scoring); console.log('\n' + 'Simple Score: ' + simpleScore.scoring()); console.log('\n' + 'Vowel Bonus Score: ' + vowelBonusScore.scoring());*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static private internal function m121() {}", "private internal function m248() {}", "function StupidBug() {}", "function main(){\n\n\n}", "function exercise11() {}", "private public function m246() {}", "function displayMessage() {\n // Task 8: Call each of the functions as properties of the importe...
[ "0.6600449", "0.6326626", "0.61907256", "0.61733544", "0.6164117", "0.615293", "0.6077906", "0.6069557", "0.6061832", "0.6005541", "0.599389", "0.59899616", "0.597874", "0.5957727", "0.59135574", "0.590796", "0.5906202", "0.5899959", "0.58807015", "0.5856934", "0.58496326", ...
0.0
-1
updateMessage is the function that actually sends the message to firebase
async function getProfilePic(player) { //takes in the player uid and uses that to get the profile pic from a URL await firebase .storage() .refFromURL("gs://brackot-app.appspot.com/" + player + "/profile") .getDownloadURL() .then(function (url) { return String(url); }) .catch((error) =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveMessage(appid,name,dob,gname,prclass,schooltype,bsid,regID,meet){\r\n /*\r\n var newMessageRef = messagesRef.push();\r\n MessageRef.set({\r\n */\r\n firebase.database().ref('vtoix2023/' + appid).update({\r\nappid:appid.toString(),\r\nname:name,\r\ndob:dob,\r\ngname:gname,\r\nprclass:prclass,\r\ns...
[ "0.74821496", "0.73487234", "0.7285189", "0.71951634", "0.7146614", "0.71128976", "0.709878", "0.7045248", "0.7012323", "0.70064586", "0.69253147", "0.69253147", "0.69002604", "0.6868506", "0.6847841", "0.68472296", "0.6843908", "0.683022", "0.68073064", "0.67836845", "0.6780...
0.0
-1
the main overview of the team
teamListener() { //creates an event listener for data on the team db.collection("teams") .doc(teamId) .onSnapshot((doc) => { const { description, name, games } = doc.data(); this.setState({ teamDescription: description }); this.setState({ teamName: name }); this.setSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getAll () {\n View.out('----------- Teams -----------' + View.NEWLINE())\n View.out(this.getTeams())\n View.out(View.NEWLINE() + '----------- Games -----------' + View.NEWLINE())\n View.out(this.getGames())\n View.out(View.NEWLINE() + '----------- Canterbury Geams -----------' + View.NEWLINE())\n ...
[ "0.69219404", "0.668985", "0.666472", "0.65832543", "0.6555947", "0.6530646", "0.6374209", "0.63176876", "0.62985945", "0.62850696", "0.61835295", "0.61762977", "0.6152352", "0.6092284", "0.60522336", "0.60366935", "0.6021521", "0.59458035", "0.5927777", "0.59261817", "0.5926...
0.0
-1
gets the list of team members makes sure that the component has all of the data before it renders in this stops the component from rendering blank or an error resulting from an undeclared variable being called
componentDidMount() { teamsRef.doc(teamId).onSnapshot((doc) => { const docData = doc.data(); this.setState({ members: docData.teamMembers, privacy: docData.privacy, isDataFetched: true, social: docData.social, }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadAllMembers() {\n let allTeamContent = \"\";\n document.querySelector(\"#teamStatus\").innerHTML = \"<p>Team Status: \" + (6 - currentTeam.length) + \" slot(s) left on your team</p>\";\n currentTeamHTML.forEach(teamMember => {\n allTeamContent += teamMember;\n });\n document.query...
[ "0.71222854", "0.70896643", "0.69026184", "0.67419493", "0.67419493", "0.67381555", "0.65276927", "0.65251917", "0.64806926", "0.64123976", "0.64064765", "0.63884133", "0.63837075", "0.6327155", "0.63144904", "0.63120073", "0.6305875", "0.627423", "0.62304527", "0.6221909", "...
0.0
-1
Checks whether the voice connection is authenticated.
checkAuthenticated() { const { token, endpoint, sessionID } = this.authentication; if (token && endpoint && sessionID) { this.client.clearTimeout(this.connectTimeout); this.status = Constants.VoiceStatus.CONNECTING; /** * Emitted when we successfully initiate a voice connection. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "checkAuthenticated() {\n const { token, endpoint, sessionID } = this.authentication;\n\n if (token && endpoint && sessionID) {\n clearTimeout(this.connectTimeout);\n this.status = Constants.VoiceStatus.CONNECTING;\n /**\n * Emitted when we successfully initiate a voice connection.\n ...
[ "0.81617606", "0.6485457", "0.64400005", "0.63680553", "0.6286338", "0.6262193", "0.6244023", "0.61862314", "0.6095014", "0.60554194", "0.60347116", "0.6006249", "0.60003304", "0.5968746", "0.590974", "0.5906205", "0.58782876", "0.58574665", "0.5844546", "0.58444464", "0.5837...
0.8188163
0
Attempts to authenticate to the voice server.
authenticate() { this.sendVoiceStateUpdate(); this.connectTimeout = this.client.setTimeout( () => this.authenticateFailed(new Error('Connection not established within 15 seconds.')), 15000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "checkAuthenticated() {\n const { token, endpoint, sessionID } = this.authentication;\n\n if (token && endpoint && sessionID) {\n this.client.clearTimeout(this.connectTimeout);\n this.status = Constants.VoiceStatus.CONNECTING;\n /**\n * Emitted when we successfully initiate a voice connec...
[ "0.7483656", "0.7402735", "0.6097045", "0.60111415", "0.5939701", "0.57874286", "0.57332844", "0.5731942", "0.57165873", "0.5702528", "0.5694095", "0.5691395", "0.56523675", "0.5634682", "0.56133455", "0.55886567", "0.55646515", "0.55561", "0.5510506", "0.55047035", "0.549634...
0.73174554
3
Disconnect the voice connection, causing a disconnect and closing event to be emitted.
disconnect() { this.emit('closing'); this.sendVoiceStateUpdate({ channel_id: null, }); this._disconnect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "disconnect() {\n this.emit('closing');\n this.sendVoiceStateUpdate({\n channel_id: null,\n });\n this.player.destroy();\n this.cleanup();\n this.status = Constants.VoiceStatus.DISCONNECTED;\n /**\n * Emitted when the voice connection disconnects.\n * @event VoiceConnection#disconn...
[ "0.872825", "0.8372329", "0.7280216", "0.71007437", "0.6965986", "0.6920185", "0.69182837", "0.6811464", "0.68074065", "0.67414534", "0.6722572", "0.6646079", "0.65995765", "0.6567837", "0.6567389", "0.65551597", "0.65288764", "0.65288764", "0.6486086", "0.64789975", "0.64545...
0.84221065
1
Internally disconnects (doesn't send disconnect packet).
_disconnect() { this.player.destroy(); this.cleanup(); this.status = Constants.VoiceStatus.DISCONNECTED; /** * Emitted when the voice connection disconnects. * @event VoiceConnection#disconnect */ this.emit('disconnect'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "disconnect() { socket_close(this) }", "disconnect() {\n if (this.proto == 'tcp') {\n this._api.disconnect(this.socketId);\n }\n }", "disconnect(){}", "disconnect() { }", "disconnect() { }", "disconnect() { }", "function disconnect(){\r\n\tconn.disconnect();\r\n}", "disconnect () {\n if...
[ "0.81845164", "0.8123953", "0.7915425", "0.78117704", "0.78117704", "0.78117704", "0.7806183", "0.76648504", "0.76603717", "0.76209676", "0.76159483", "0.76094264", "0.7593411", "0.7589207", "0.7589089", "0.75883985", "0.7563149", "0.75623584", "0.74849546", "0.74849546", "0....
0.0
-1
Cleans up after disconnect.
cleanup() { const { ws, udp } = this.sockets; if (ws) { ws.removeAllListeners('error'); ws.removeAllListeners('ready'); ws.removeAllListeners('sessionDescription'); ws.removeAllListeners('startSpeaking'); ws.shutdown(); } if (udp) udp.removeAllListeners('error'); thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cleanup() {\n if (socket) {\n socket.close(function(err) {\n if (err) {\n log('ERROR: could not close server: ' + err);\n } else {\n log('INFO: server closed');\n }\n });\n }\n\n if (converseTimer) {\n clearInterval(converseTimer);\n }\n\n if (bcastTimer) {\n ...
[ "0.75735533", "0.7405015", "0.73864144", "0.7378559", "0.7370225", "0.733484", "0.73244864", "0.73217875", "0.73008806", "0.7284145", "0.7261472", "0.72554404", "0.7163763", "0.71121305", "0.71101105", "0.7089214", "0.70526063", "0.7021568", "0.702084", "0.70187587", "0.70057...
0.6945008
27
Connect the voice connection.
connect() { if (this.status !== Constants.VoiceStatus.RECONNECTING) { if (this.sockets.ws) throw new Error('There is already an existing WebSocket connection.'); if (this.sockets.udp) throw new Error('There is already an existing UDP connection.'); } if (this.sockets.ws) this.sockets.ws.shutdow...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "connect() {\n if (this.status !== Constants.VoiceStatus.RECONNECTING) {\n if (this.sockets.ws) throw new Error('There is already an existing WebSocket connection.');\n if (this.sockets.udp) throw new Error('There is already an existing UDP connection.');\n }\n\n if (this.sockets.ws) this.sockets...
[ "0.7578797", "0.7498741", "0.70435727", "0.66801643", "0.65957314", "0.6507152", "0.6507152", "0.6335846", "0.6332317", "0.6327692", "0.63221407", "0.63091695", "0.62915593", "0.6266736", "0.6170667", "0.6163618", "0.61253643", "0.612456", "0.61156636", "0.61145395", "0.61006...
0.77087224
0
Sends dispatch containing current videos to redux store
handleBlur(event, value, video) { this.props.setData({videos: video}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentDidMount() {\n\t\tif(this.props.fetchSavedVideos)\n\t\t{\n\t\t\tstore.dispatch(getSavedVideos());\n\t\t}\n\t}", "function videos(state={},action){\n switch(action.type){\n case 'SET_CONTENTS_LIST':{\n return {...state, ...action.payload}\n }\n case 'SET_ACTIVITIES_LIST...
[ "0.6690214", "0.6668743", "0.66053456", "0.6504504", "0.64161235", "0.6412165", "0.6166977", "0.6149914", "0.61412114", "0.6138511", "0.60683626", "0.6066032", "0.60484964", "0.5992364", "0.5978574", "0.597495", "0.5927763", "0.59104824", "0.5886438", "0.58475745", "0.5842072...
0.0
-1
Counter for the number of automatic translations that were done. / Function to retrieve the data from the uploaded files and segregate the data appropriately.
function retrieveFile(){ var language = document.getElementById('languageSelected').value; var fileObj = document.getElementById('fileInstance').files[0]; if(fileObj == null){ showToast('Please click the "Choose File" button before importing.', "R"); return; } if (fileObj) { var reader = new File...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async normalizeFilesInfo() {\n let size = 0;\n let count = 0;\n await this.iterateFiles((fp, stat) => (count++, size += stat.size));\n await this.db.setData('filesTotalSize', size);\n await this.db.setData('filesCount', count);\n }", "function taskCounter()\n{\n\treturn JSON.parse(loc...
[ "0.56482697", "0.5514881", "0.5512908", "0.5463128", "0.5388235", "0.53749526", "0.53735095", "0.5310687", "0.52479774", "0.52300864", "0.5191675", "0.51744634", "0.51597047", "0.5137538", "0.5118326", "0.5106533", "0.51052856", "0.51025426", "0.5091881", "0.50899065", "0.508...
0.0
-1
Find the missing translations and store them alongside the trail keys keys to access it.
function allKeys(eng, comparator, missingTranslations, lang){ var languageMode; // Identify the language being referenced. switch (lang) { case "It": languageMode = italian; break; case "De": languageMode = german; break; case "Fr": languageMode = french; break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate() {\n const missingKeys = new Map();\n for (const lang of [\"de\", \"en\", \"fr\"]) {\n const missingKeySet = new Set();\n missingKeys.set(lang, missingKeySet);\n\n function checkForMissingValues(currentPath, obj) {\n if (obj === NOT_TRANSLATED) {\n ...
[ "0.6404927", "0.583123", "0.5756176", "0.56409127", "0.5493324", "0.54761153", "0.5388333", "0.5305403", "0.52965575", "0.52921695", "0.52891237", "0.5283509", "0.51608604", "0.5136993", "0.51070374", "0.51061296", "0.5088146", "0.50768775", "0.50742143", "0.5056138", "0.4999...
0.5743022
3
Check if the tranlsation exists anywhere else in the JSON.
function checkTranslationExists(keyInstance, base, compare){ var retrievedVal = ""; for (var key in base) { // Recursion if the JSON is nested. if(typeof base[key] === "object"){ try{ retrievedVal = checkTranslationExists(keyInstance, base[key], compare[key]); // Return tranlsated valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async TradeExists(ctx, id) {\n const tradeJSON = await ctx.stub.getState(id);\n\n return tradeJSON && tradeJSON.length > 0;\n }", "checkTransactionsInStorageInfo(storageInfo) {\n for (let storageName in storageInfo) {\n if (storageInfo[storageName].transactions.length > 0) {\n ...
[ "0.6079348", "0.57498986", "0.5697792", "0.55282396", "0.5485311", "0.5423205", "0.5419701", "0.539165", "0.53461236", "0.53369766", "0.52840257", "0.52837723", "0.52634126", "0.52444464", "0.5228766", "0.5217134", "0.5214555", "0.521219", "0.51984745", "0.5181584", "0.515452...
0.5892962
1
Retrieves an object while in recursion.
function getObjFromLastKey(jsonObj, keyTrail){ try{ return jsonObj[keyTrail[keyTrail.length-1]]; } catch{ // reference not found in the counterpart object. return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getObjectInHierarchy(type)\n {\n let next = this.getObjectsInHierarchy(type).next();\n return next.done ? undefined : next.value;\n }", "function _findNextVisibleObjectRecursively(object){\n\t\t\t\t\t\t\t\t\t\t\t// get parent\n\t\t\t\t\t\t\t\t\t\t\tvar parentId = object.getParentId();\n\t\t\t\t\t\t\t\t\t...
[ "0.6949007", "0.6565464", "0.64824784", "0.6197275", "0.6194774", "0.61540824", "0.61141074", "0.61141074", "0.61141074", "0.61141074", "0.61141074", "0.61141074", "0.61141074", "0.61141074", "0.61141074", "0.5979453", "0.59148145", "0.5910332", "0.5879277", "0.5864558", "0.5...
0.0
-1
Retrieves a value from JSON, given the sequence of keys.
function getObject(jsonObj, keyTrail){ var baseObject = {}; Object.assign(baseObject, jsonObj); for(var i = 0; i < keyTrail.length; i++){ baseObject = baseObject[keyTrail[i]]; } return baseObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async get(...keys) {}", "function getEntryValue(json,key){\n\tvar entry = json[ENTRY];\n\tif(entry != undefined){\n\t\tfor(var i = 0; i < entry.length; i++){\n\t\t\tif(entry[i][KEY] == key){\n\t\t\t\treturn entry[i][VALUE];\n\t\t\t}\n\t\t}\n\t}\n\telse{\n\t\treturn undefined;\n\t}\n}", "getValue(key, jsonObj=t...
[ "0.61119574", "0.6098852", "0.59364736", "0.58837", "0.5670814", "0.56626993", "0.5545526", "0.54454064", "0.53646916", "0.53627926", "0.53219146", "0.53028786", "0.528153", "0.5190396", "0.5176948", "0.51601547", "0.5151765", "0.51380783", "0.5135805", "0.50894946", "0.50880...
0.52615505
13
Injects a value into a nested json, given a sequence of keys.
function inputObject(jsonObj, keyTrail, input){ var baseObject = jsonObj; if(keyTrail.length != 0){ var key = keyTrail[0]; keyTrail.shift(); if(baseObject.hasOwnProperty(key) && baseObject[key].constructor === Object){ baseObject[key] = inputObject(baseObject[key], keyTrail, input); } else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setJsonDeep(target, keys, value) {\n let origin = target;\n keys = keys.split('.');\n for (let key of keys) {\n let last = key === keys[keys.length - 1];\n if (typeof origin[key] === 'undefined' || !origin[key]) {\n origin[key] = last ? value : {};\n ...
[ "0.6330193", "0.5601611", "0.55023867", "0.5258556", "0.5108607", "0.510122", "0.5018628", "0.49609706", "0.49607754", "0.49445903", "0.4918884", "0.49093458", "0.4904842", "0.48902825", "0.48436335", "0.48101255", "0.48043978", "0.47537246", "0.4743848", "0.4743513", "0.4731...
0.0
-1
Populates the drop down with the translations needed.
function addOptions(base, comparator, selectComponent, lang){ // Reset variables Object.assign(currMissing, {}); accessor = []; autoChanges = 0; // Check if the appropriate files have been uploaded. if(!checkFilesNeeded(base, comparator, identicals)){ return; } var missing = {}; missing = allKe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "initializeLanguage(languages) {\n for(var k in languages) {\n let opt = Utility.createNode('option', { \n value: k, innerHTML: languages[k]\n });\n $('#select-language').append(opt);\n }\n /*Translate.google_translate_support_lang().then(data => {\n const langs = data.data.langu...
[ "0.70805985", "0.6948525", "0.6823996", "0.67943317", "0.65988463", "0.6588726", "0.63625", "0.62863463", "0.6250399", "0.622534", "0.621447", "0.616514", "0.614582", "0.61227155", "0.60903114", "0.6052235", "0.60500634", "0.60330325", "0.6023455", "0.6002058", "0.59900993", ...
0.59104013
30
Store the submitted tranlsations in the appropriate object.
function submitTranslation(lang, selectComponent, textComponent){ var inputTranslation = textComponent.value; var missingKey = selectComponent.value; var updatedTranlsations; if(missingKey == ""){ showToast('Please ensure that you have pressed "Load".', "R"); return; } // Ensures the translations...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveAllTranscriptEntries () {\n saveTranscriptEntries([1, 2, 3, 4]);\n}", "function transact(){\n const tid = transactions.length;\n const transaction = {\n tid: tid,\n timestamp: new Date(),\n user: 0\n };\n\n transactions.push(transaction...
[ "0.55696946", "0.5477662", "0.5421419", "0.53538996", "0.5231084", "0.5184061", "0.517982", "0.50715864", "0.5027488", "0.5007257", "0.49961722", "0.4992217", "0.4989886", "0.49889025", "0.49874693", "0.497933", "0.49674", "0.4941132", "0.49178013", "0.49097607", "0.49055117"...
0.0
-1
Add a phrase to the list of words which are to be ignored.
function updateIdenticals(lang, selectComponent){ if(selectComponent.value == ""){ showToast("Something went wrong.", "R"); return; } switch(lang) { case "German": appendToIgnores("De", selectComponent.value); break; case "Italian": appendToIgnores("It", selectComponent.value);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function additionalExcludedWords() {\n const temp = extraWords.value.split(',');\n for (let i = 0; i < temp.length; i += 1) {\n const trimmed = temp[i].trim();\n excludedWords.push(trimmed);\n }\n }", "function addWord(e) {\n let args = (arguments.length === 0 || e.type === 'click') ? prom...
[ "0.69397306", "0.62961435", "0.60160476", "0.58888197", "0.58573854", "0.5855073", "0.58350945", "0.57817036", "0.5766858", "0.5756058", "0.57146823", "0.56850666", "0.568252", "0.56686556", "0.56633484", "0.56383115", "0.56112593", "0.55999905", "0.5590386", "0.5581635", "0....
0.0
-1
Navigate to export section once there are no more translations needed.
function checkCompleted(selectComponent){ if(selectComponent.length == 0){ showToast("All translations done.", "G"); changeActive('exportItem'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exportMissing(translatePhrases, lang){\n var toExport = {};\n var file = \"\";\n\n if(Object.keys(currMissing).length === 0){\n showToast(\"There is nothing to export.\", \"R\");\n return;\n }\n else if(translatePhrases.options.length === 0){\n showToast(\"Please load before trying to export...
[ "0.5934107", "0.5750109", "0.5508931", "0.5399353", "0.539704", "0.53773963", "0.53733426", "0.52838427", "0.52525204", "0.52487576", "0.52093846", "0.52093846", "0.52093846", "0.52093846", "0.52093846", "0.52093846", "0.51897496", "0.5182222", "0.5179949", "0.5168892", "0.51...
0.56620467
2
Append the phrase that is to be ignored to the appropriate list.
function appendToIgnores(key, element){ if(identicals.hasOwnProperty(key)){ identicals[key].push(element); } else{ identicals[key] = [element]; } return identicals; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function additionalExcludedWords() {\n const temp = extraWords.value.split(',');\n for (let i = 0; i < temp.length; i += 1) {\n const trimmed = temp[i].trim();\n excludedWords.push(trimmed);\n }\n }", "function createlstDontWant() {\n var lst = $(\"#dontWant\").val().toLowerCase().split(\",\...
[ "0.67001665", "0.61450213", "0.61225945", "0.5876154", "0.57582456", "0.57340187", "0.567202", "0.56229395", "0.562051", "0.5601048", "0.55175436", "0.5441485", "0.54390043", "0.5381953", "0.5376713", "0.53760505", "0.53604627", "0.53585255", "0.53581834", "0.53283256", "0.53...
0.0
-1
Enable the preview component if the phrase is too long.
function checkSelected(selectElement, tArea){ if(selectElement.value.length > 42){ document.getElementById(tArea).style.display = "block"; document.getElementById(tArea).value = selectElement.value; } else { document.getElementById(tArea).style.display = "none"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TextMore({ text, limit }) {\n if (!text) {\n return null\n }\n const [showMore, setShowMore] = useState(text.length > limit ? true : false)\n return (\n <>\n {showMore && <span>{text.substring(0, limit)} <a href=\"#!\" onClick={(e) => { e.preventDefault(); setShowMore(...
[ "0.59623885", "0.5735196", "0.5710967", "0.56849474", "0.56849474", "0.5625958", "0.56240255", "0.5582342", "0.55716246", "0.5504481", "0.5494848", "0.54940504", "0.5435029", "0.53753793", "0.53703713", "0.53637135", "0.53589916", "0.5336363", "0.5333935", "0.531693", "0.5313...
0.0
-1
Check if the necessary files have been uploaded.
function checkFilesNeeded(base, comparator, ignores){ if(Object.keys(base).length === 0 && base.constructor === Object || comparator.constructor != Object || Object.keys(ignores).length === 0 && ignores.constructor === Object){ showToast("Please check you have loaded the appropriate files.", "R"); return fals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hasFailedUploads() {\r\n return failedUploads && failedUploads.length;\r\n }", "function HasFile(files) {\n //Check file length\n if (files.length === 0) {\n return false;\n }\n return true;\n}", "function checkAllFileOfQueueUploaded(uploaderIn){\n\tvar checkFileAllisUploa...
[ "0.7017581", "0.69614017", "0.6879556", "0.6833156", "0.66666025", "0.6554535", "0.6527075", "0.6440769", "0.640346", "0.63491243", "0.61340517", "0.61213714", "0.6024705", "0.5992615", "0.59682095", "0.59560984", "0.59532076", "0.59365743", "0.59175074", "0.59103113", "0.590...
0.6319738
10
Creates a data view for the selected language.
function createDataView(language, level, parent, parentIndex, trail){ for (var key in language) { // Recursion if the JSON is nested. if(typeof language[key] === "object"){ trail.push(key); addJSONHeading(key, level, parent, parentIndex, Object.keys(language).indexOf(key), trail); level++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ViewData() {}", "function ViewData() {}", "function ViewData() {}", "function ViewData(){}", "function ViewData() { }", "function ViewData() { }", "function createNewFunctionView() {\n // json set\n var dataSet = pluto.loadedDataSet[pluto.selectedPlutoName];\n \n //...
[ "0.5954464", "0.5954464", "0.5954464", "0.5718854", "0.56505615", "0.56505615", "0.5486404", "0.5464093", "0.54506487", "0.52953666", "0.52704257", "0.5240127", "0.5193098", "0.5193098", "0.5193098", "0.5098719", "0.5097273", "0.50826305", "0.50826305", "0.50826305", "0.50511...
0.6246775
0
Function to format and download the missing translations.
function exportMissing(translatePhrases, lang){ var toExport = {}; var file = ""; if(Object.keys(currMissing).length === 0){ showToast("There is nothing to export.", "R"); return; } else if(translatePhrases.options.length === 0){ showToast("Please load before trying to export.", "R"); return;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function fetchThemAll(spinner) {\n debug(LANG_EXPORTABLE_LIST);\n if (!fs.existsSync(LANG_EXPORTABLE_LIST)) {\n throw new Error(`You must create a file ${LANG_EXPORTABLE_LIST}. More informations on the wiki`);\n }\n\n const isJSON = /\\.json$/.test(FILE_NAME);\n const content = fs.readF...
[ "0.67488533", "0.6327101", "0.63190514", "0.62995887", "0.6178025", "0.6175279", "0.61189765", "0.6106468", "0.59312767", "0.5922457", "0.5914588", "0.57077557", "0.57014024", "0.5688617", "0.56728595", "0.56580806", "0.5637167", "0.5634614", "0.56206894", "0.5580979", "0.558...
0.6439967
1
Previews the resultant JSON object.
function showJson(){ var exportObj = document.getElementById('languageExporting').value; var output = ""; if(exportObj == "German"){ output = JSON.stringify(german, null, "\t"); } else if(exportObj == "Italian"){ output = JSON.stringify(italian, null, "\t"); } else if(exportObj == "French"){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "renderJSON() {\n if (!this.hasSetupRender()) {\n return;\n }\n\n // Finaly show parsed jSON in a textarea\n const textArea = document.createElement('textarea');\n textArea.className = `${this.classNamespace}__textarea`;\n textArea.value = JSON.stringify(this.parsedData);\n this.containerE...
[ "0.6007689", "0.59969527", "0.56984586", "0.5692357", "0.5688961", "0.56454104", "0.56454104", "0.56454104", "0.56454104", "0.5615267", "0.55915034", "0.55193746", "0.5494414", "0.5469008", "0.54284805", "0.54099834", "0.54027337", "0.53993374", "0.53993374", "0.5393", "0.539...
0.0
-1
Copys the resultant JSON object to clipboard.
function copyJSON(tArea){ var copyText = tArea; copyText.select(); document.execCommand("copy"); if(copyText.value != " "){ showToast("Saved to Clipboard", "G"); } else{ showToast("Please ensure you have loaded an object.", "R"); } try{ document.getSelection().removeAllRanges(); }catch(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function copyOutput() {\n let json = JSON.parse(document.getElementById('inputMsg-json').value);\n let outputMsgElement = document.getElementById('outputMsg-json');\n let range = document.createRange();\n range.selectNodeContents(outputMsgElement);\n let selection = window.getSelection(); \n sele...
[ "0.806913", "0.76625156", "0.68280035", "0.6690353", "0.66573775", "0.66373444", "0.64932954", "0.6438184", "0.64287984", "0.642878", "0.64205176", "0.6339684", "0.63286203", "0.6303947", "0.6303245", "0.6244491", "0.62396014", "0.62350464", "0.6231187", "0.6228988", "0.62199...
0.8055435
1
Function to format and download the resultant json.
function exportData(language, fileName){ var exportData = {}; if(language.value == "German"){ Object.assign(exportData, german); } else if(language.value == "Italian"){ Object.assign(exportData, italian); } else if(language.value == "French"){ Object.assign(exportData, french); } else if(lan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function json() {\n\n var body = '';\n request = http.get('https://mcapi.ca/query/198.24.171.162:25955/list', function(theJson){\n\n\t\ttheJson.on('data', function (chunk){\n\t\t\tbody += chunk;\n\t\t}).on('end', function(){\n\t\t\tconsole.log('Data stream end: ' + body);\n\t\t\tbody = JSON.stringify(body);\...
[ "0.6248555", "0.61893785", "0.6087862", "0.605919", "0.60461223", "0.6026672", "0.60232145", "0.5988543", "0.59568363", "0.592905", "0.59240204", "0.59194666", "0.5915314", "0.5891394", "0.5876418", "0.58734524", "0.58611864", "0.58475095", "0.5838019", "0.5811711", "0.580070...
0.0
-1
Function to download data.
function saveData(data, fileName){ var aElement = document.createElement("a"); document.body.appendChild(aElement); aElement.style = "display: none"; var json = JSON.stringify(data, null, "\t"); var blob = new Blob([json], {type: "octet/stream"}); var url = window.URL.createObjectURL(blob); aElement.hr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function receiveData(){\n return $http.get('/download');\n }", "downloadDataFile() {\n let submissionId = this.SUBMISSION_ID;\n let fileId = this.state.fileUploadId;\n let fileName = this.state.fileName;\n\n this.API_CLIENT.downloadDataFile(submission...
[ "0.7015964", "0.6977219", "0.6602518", "0.6469015", "0.64298207", "0.64289004", "0.64260864", "0.64197475", "0.6416322", "0.64079046", "0.6358539", "0.6350269", "0.6345748", "0.6337753", "0.63239425", "0.6322329", "0.63004184", "0.6280776", "0.62544763", "0.6241388", "0.62387...
0.0
-1
put all properites and methods on the div and simply return that?
function Hotspot(hotspotId, x1, y1, width, height, caption, silent) //Coords & dims are in PHOTO PIXEL space { this.x1 = x1; this.y1 = y1; this.width = width; this.height = height; this.silent = false; if(silent != null && silent == true) { this.silent = true; } this.id = 'hotspot_' + hotspotId; this....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get div() {\n\t\treturn this.__div;\n\t}", "setup( parent, id, description, config={} ){\r\n\t\tconfig.tag = 'div'\r\n\t\tconfig.class = \"w3-container w3-center \" + (config.class||'') \r\n var content = {'plugin':'raw', 'setup':[id+'Content', description, {'class':\"w3-card\", 'tag':'div', 'style':'widt...
[ "0.61551815", "0.5877789", "0.5727927", "0.5683569", "0.5683569", "0.56314087", "0.56210893", "0.5603019", "0.55834615", "0.5553331", "0.5551038", "0.5490011", "0.54642636", "0.54582196", "0.5451451", "0.5422619", "0.5404344", "0.53908044", "0.53899527", "0.53747904", "0.5371...
0.0
-1
Indicates whether this ClipHelper's plane is filled or just wireframe.
set solid(value) { this._planeHelper.solid = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isInPlane(plane) {\n return PointHelpers_1.Point3dArray.isCloseToPlane(this._points, plane, Geometry_1.Geometry.smallMetricDistance);\n }", "canBeRendering() {\n return (this.geometry !== undefined) && (this.material !== undefined);\n }", "_shouldDrawCheck() {\n // get plane bounding...
[ "0.63309014", "0.6038888", "0.59554756", "0.5928575", "0.5928575", "0.58984315", "0.58984315", "0.5800247", "0.57985", "0.57703876", "0.5752053", "0.5691251", "0.56082034", "0.5604178", "0.56010294", "0.55761397", "0.5529009", "0.55167675", "0.5481565", "0.5439697", "0.534700...
0.5620001
12
Indicates whether this ClipHelper is visible or not.
set visible(value) { this._planeHelper.visible = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isVisible() {\n\t\t\treturn visible;\n\t\t}", "isVisible() {\n return this._visibility === 'visible';\n }", "function isVisible() {\n return visible;\n }", "function isVisible() {\n return visible;\n }", "getIsVisible() {\n return this.isVisible();\n }", "_isVisible()...
[ "0.7744655", "0.76956457", "0.7603783", "0.7603783", "0.74842304", "0.7483189", "0.7483189", "0.73518205", "0.7343589", "0.7263441", "0.72490054", "0.7227887", "0.7163119", "0.7124916", "0.7072136", "0.70649743", "0.70243835", "0.69861394", "0.6927181", "0.6918059", "0.689740...
0.60795087
70
Adds an entity into the sparse grid. The grid will now have a reference to the entity from the cell that the entity is in, based on (x, y). The entity itself will have a parameter named populatedCell that will contain the cell referencing it.
addEntity(entity, x, y) { let xIndex = Math.floor(x / SparseEntitiesGrid.CELL_SIZE); let yIndex = Math.floor(y / SparseEntitiesGrid.CELL_SIZE); // Insert entity into cell let entitiesInCell = this.grid.get(xIndex + "," + yIndex); if (entitiesInCell) { entitiesInCell....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addEntity(game, entity) {\n game.entities[entity.id] = entity;\n game[entity.type].push(entity.id);\n\n var position = entity.position,\n width = entity.width,\n height = entity.height;\n\n if (position == null) {\n return;\n }\n // handle entities with larger size\n for (var x = posit...
[ "0.59978306", "0.5807973", "0.5714174", "0.5571676", "0.5515617", "0.5504989", "0.5469547", "0.54642713", "0.5464128", "0.5442422", "0.54302114", "0.53594214", "0.53424555", "0.5254324", "0.52411884", "0.52156174", "0.52153474", "0.51928806", "0.51223874", "0.51072645", "0.50...
0.84839916
0
creates a new artifact based off of the cube geometry and which color it should be that is passed in
function Door(geometry, material, x, y, z, direction){ this.isOpen = false; this.direction = direction; // North, East, South, West : this.cube = new THREE.Mesh(geometry,material); this.cube.receiveShadow = true; this.cube.castShadow = true; this.cube.position.set( x, y, z); this.isDoor = tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "createCube(color, side, position) {\n\n let geometry = new THREE.CubeGeometry( 200, 600, 50 )\n let material = new THREE.MeshStandardMaterial({ color: color })\n let mesh = new THREE.Mesh( geometry, material )\n\n mesh.position.x = side === 'right' ? 300 : -300\n mesh.position.z = position\n mesh...
[ "0.6507836", "0.64866376", "0.6437833", "0.64241594", "0.61443084", "0.6134529", "0.60873073", "0.6071637", "0.6036633", "0.60194826", "0.5984912", "0.5969337", "0.59279495", "0.59038466", "0.5887404", "0.5886592", "0.58795184", "0.58459145", "0.58246326", "0.579582", "0.5752...
0.0
-1
WEATHER This function calls the Open Weather Map API to get current weather information.
function getWeather(cityID) { fetch('https://api.openweathermap.org/data/2.5/weather?id=' + cityID + '&appid=' + weatherKey) .then(function (resp) { return resp.json() }) // Convert data to json .then(function (data) { drawWeather(data); }) .catch(fun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getWeatherInfo () {\n\n const long = App.city.longitude;\n const lat = App.city.latitude;\n const url = \"https://api.darksky.net/forecast/8877941a6145fd159c584b8f95b52bb9/\" + lat + \",\" + long + \"?callback=?\";\n\n $.ajax({\n url: url,\n dataType: \"jsonp\",\n ...
[ "0.7347122", "0.7311589", "0.72982574", "0.7196394", "0.7194387", "0.71827555", "0.71780396", "0.7165383", "0.715552", "0.71389735", "0.71217376", "0.7118803", "0.7104447", "0.7087457", "0.70789754", "0.70771843", "0.70771843", "0.70771843", "0.70771843", "0.7072535", "0.7052...
0.0
-1
This function displays the current weather
function drawWeather(d) { const hazardId = [200, 201, 202, 210, 211, 212, 221, 230, 231, 232, 501, 502, 503, 504, 511, 520, 521, 522, 531, 600, 601, 602, 611, 612, 813, 615, 616, 620, 621, 622, 781]; //This function should check the hazCond array to see if any of the values match the current weather id value....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayWeatherData() {\r\n if(weatherData.name && weatherData.sys.country) {\r\n currentLocation.innerHTML = weatherData.name + ', ' + weatherData.sys.country;\r\n };\r\n humidity.innerHTML = 'Humidity: ' + weatherData.main.humidity + ' %';\r\n pressure.innerHTML = 'Pressure: ' + transformFromHpaTo...
[ "0.8193475", "0.80705243", "0.805925", "0.8027967", "0.8010884", "0.80047333", "0.79971087", "0.79809445", "0.79667914", "0.795153", "0.79023325", "0.7888891", "0.78771895", "0.78748536", "0.7845384", "0.7816977", "0.78146726", "0.77902555", "0.7785677", "0.7776907", "0.77662...
0.0
-1
ADDRESS BAR INPUT & GEOCODER / This function connects with the address bar input to geocode the given location, zoom the the location area, and creates a bouncing toggle marker for the given location.
function geocodeAddress(geocoder, resultsMap) { const address = document.getElementById('address-box').value; geocoder.geocode({ 'address': address }, function (results, status) { // Creates marker let marker = new google.maps.Marker({ map: resultsMap, drag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function codeAddress(address) {\nconsole.log(document.getElementById('ZippyZip').value);\n //var address = document.getElementById('ZippyZip').value;\n geocoder.geocode( { 'address': address}, function(results, status) {\n if (status == 'OK') {\n map.setCenter(results[0].geometry.location);\n ...
[ "0.61992836", "0.61671424", "0.6146839", "0.6146839", "0.6135935", "0.6121205", "0.60839325", "0.60783905", "0.6076854", "0.6066381", "0.6051629", "0.6030049", "0.6017106", "0.59927917", "0.5977328", "0.5959471", "0.59583384", "0.5954424", "0.59499407", "0.5909742", "0.590355...
0.63718164
0
Creates toggle and animation for marker
function toggleBounce() { if (marker.getAnimation() !== null) { return marker.setAnimation(null); } else { return marker.setAnimation(google.maps.Animation.BOUNCE); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "toggleMarkerOn(id) {\n var marker = this.markers[id-1];\n marker.setAnimation(google.maps.Animation.BOUNCE);\n }", "function togMark(i){\n if (myMarkers[i].getVisible()){\n myMarkers[i].setVisible(false);\n } else {\n myMarkers[i].setVisible(true);\n }\n}", "function toggleBounce...
[ "0.6978963", "0.6805936", "0.6682879", "0.667358", "0.6564503", "0.64165074", "0.6392404", "0.63806564", "0.63677925", "0.63594604", "0.63178253", "0.6303363", "0.6301219", "0.62744445", "0.62271696", "0.62052226", "0.62016225", "0.6201471", "0.6168432", "0.6159822", "0.61597...
0.59226745
54
initlalPrompt function asks for menu selection
function initialPrompt() { for (i = 0; i < 3; i++) { let initialResponse = Number(input.question("Welcome to the Scrabble score calculator!\n\nWhich scoring algorithm would you like to use?\n\n0 - Scrabble: The traditional scoring algorithm.\n1 - Simple Score: Each letter is worth 1 point.\n2 - Bonus Vowe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initPrompt() {\n console.log(\n `____________________________________________________________________\n \n\n \n Welcom to the Employee Tracker\n \n \n ____________________________________________________________________`\n ...
[ "0.8038594", "0.7826528", "0.76205015", "0.74770266", "0.74765855", "0.7344633", "0.7329285", "0.7316724", "0.7314113", "0.72701746", "0.72648335", "0.7218938", "0.7210112", "0.7181813", "0.71234864", "0.71217346", "0.71215546", "0.7115789", "0.7087985", "0.70849746", "0.7075...
0.0
-1
secondPrompt function asks for word to be scored
function secondPrompt() { let inputToScore = input.question("\nEnter a word to be scored, or 'Stop' to quit: "); return inputToScore.toLowerCase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initialPrompt() {\n let word = input.question(\"\\nLet's play some scrabble! Enter a word: \");\n //console.log(oldScrabbleScorer(word));\n return word; //Pass word to next.\n}", "function initialPrompt() {\n word=input.question(\"Let's play some scrabble! Enter a word to score:\");\n}", "func...
[ "0.7501781", "0.7403059", "0.72966915", "0.7078292", "0.70703816", "0.7070136", "0.70580345", "0.7043684", "0.70176315", "0.70009667", "0.69902736", "0.69847494", "0.6972693", "0.6969078", "0.68545747", "0.6851964", "0.6850832", "0.6808902", "0.6779256", "0.67485905", "0.6732...
0.8069885
0
transform the old object into a new object
function transform(object) { for (item in object) { for (let i = 0; i < object[item].length; i++) { newPointStructure[(object[item][i]).toLowerCase()] = Number(item); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "transform(obj, json) {\n delete json._id;\n delete json.__v;\n return json;\n }", "transform(obj, json) {\n delete json._id;\n delete json.__v;\n return json;\n }", "toObject () {\n return Object.assign(Object.create({}), this)\n }", "deepCopy(oldObj) {\n var newObj = oldObj;\n...
[ "0.6576146", "0.6576146", "0.63099045", "0.6191226", "0.61488694", "0.61453426", "0.6129337", "0.6105606", "0.6081559", "0.6074424", "0.60632426", "0.60555726", "0.59883076", "0.59743506", "0.5967409", "0.59603333", "0.59570986", "0.5948338", "0.5943946", "0.5925003", "0.5921...
0.0
-1
Create a the program here>>
function runProgram() { for (let x = 0; x < 3; x++) { let i = initialPrompt() switch (i) { case i: console.log("\nUsing Algorithm: ", scoringAlgorithms[i].name); while (true) { var inputScore = secondPrompt(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function main() {\n // Path\n var destinationPath = program.args.shift() || '.'\n\n // App name\n var appName = createAppName(path.resolve(destinationPath)) || 'hello-world'\n\n // Generate application\n emptyDirectory(destinationPath, function (empty) {\n if (empty || program.force) {\n ...
[ "0.7135994", "0.6941372", "0.6828944", "0.68245083", "0.67749465", "0.6712303", "0.6382269", "0.6325606", "0.6303799", "0.6253006", "0.623364", "0.6208482", "0.6198382", "0.6181959", "0.5878805", "0.58418304", "0.5834315", "0.5824339", "0.5802625", "0.57939947", "0.57797086",...
0.0
-1
[DAO Verification]: Utility Functions
async function verifyKeyStore() { let { ipfsHash, merkelRoot, usedKeys } = await getNodeOperatorDetails(contract) let keyStore = await getKeyStoreIPFS(ipfsHash.toString()) console.log(LOG_STRING, 'Key Store Length - ', keyStore.length) console.log(LOG_STRING, 'Used Keys - ', usedKeys) console.log(LOG_STRING...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function guard(){}", "function CreateDatabaseQuery() {}", "static get INIT_DAO() {\n return {\n active: 1\n }\n }", "isValid() {\n throw new Error('No implementation found for method isValid() in class Query.');\n }", "_checkInsertIsAble () {\n function error (parameter) {\n throw n...
[ "0.53487724", "0.53409135", "0.5328571", "0.5267681", "0.5265553", "0.5243448", "0.5227639", "0.51758677", "0.51758677", "0.514602", "0.5105862", "0.508503", "0.5054674", "0.5047929", "0.50353867", "0.49857214", "0.49104786", "0.48783773", "0.4861529", "0.4851694", "0.4838943...
0.0
-1