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
Redirects if valid semester cookie is found
function cookieRedirect() { var semester = getCookie("semester"); if(semester !== undefined) { if(semester <= 6 && semester >= 1) { window.location.href = '/' + semester + 'semester.php'; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function semesterChoice(choice) {\n document.cookie=\"semester=\" + choice + \"; expires=\" + semesterEnd();\n window.location.href = '/' + choice + 'semester.php';\n}", "function checkJWT() {\n if (!isLoggedIn())\n window.location.replace('/sign-in/?return=/daily-data/');\n}", "pleaseSigin(){\r\n ...
[ "0.7027984", "0.61803466", "0.617705", "0.61006975", "0.6076051", "0.5850951", "0.58280647", "0.5822676", "0.57825494", "0.5769547", "0.57528365", "0.5697453", "0.5673978", "0.5671738", "0.5664404", "0.5664404", "0.56573457", "0.5655255", "0.56441796", "0.56304795", "0.560905...
0.778377
0
Sets value of the semester cookie
function semesterChoice(choice) { document.cookie="semester=" + choice + "; expires=" + semesterEnd(); window.location.href = '/' + choice + 'semester.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setValue(name, value) {\n if (value) {\n var expirationDate = new Date();\n expirationDate.setMonth(expirationDate.getMonth() + 12);\n document.cookie = name + '=' + encodeURIComponent(value) + '; domain=.ultipro.com; expires=' + expirationDate;\n }\n else {\n document.cookie = name + '=' +...
[ "0.71311057", "0.6845584", "0.6799871", "0.6747878", "0.6733885", "0.6695024", "0.6687526", "0.6663987", "0.6658816", "0.6602737", "0.6597465", "0.6579909", "0.655845", "0.6555623", "0.65548587", "0.65502447", "0.6506062", "0.6490816", "0.6478578", "0.64753735", "0.64618534",...
0.7036145
1
Deletes the semester cookie
function deleteCookie(name) { document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"; window.location.href = '/index.php' }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarCookie(){\n\tdeleteCookie(\"visitas\");\n}", "function CookieDelete() {\n var cookie = this.$name+'='\n if (this.$path) cookie+='; path='+this.$path\n if (this.$domain) cookie+='; domain='+this.$domain\n cookie+='; expires=Fri, 02-Jan-1970 00:00:00 GMT' // MAKE IT EXPIRE!\n thi...
[ "0.710659", "0.70315665", "0.69412017", "0.6783029", "0.6768244", "0.67475766", "0.6736033", "0.6727763", "0.6727329", "0.6681713", "0.66731787", "0.6647472", "0.6646212", "0.6640265", "0.66173553", "0.66062355", "0.6601153", "0.65535295", "0.65316814", "0.6528846", "0.651524...
0.633639
42
Determines the end date of the current semester
function semesterEnd() { var nowDate = new Date(); if (nowDate.getMonth() <= 6) { return new Date(nowDate.getFullYear(), 6, 32).toUTCString(); // 31st of July, this year } else { return new Date(nowDate.getFullYear(), 11, 32).toUTCString(); // 31st of December, this year } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get endDate() {\n return new Date(this.fiscalYear, this.fiscalMonth, 0, 23, 59, 59, 999);\n }", "function getEndDate(theDate)\n{\nvar isLeap= leapYear(theDate.getFullYear());\nif(isLeap)\nreturn calLeapPeriods[theDate.getMonth()];\nelse\nreturn calPeriods[theDate.getMonth()];\n}", "endDate() {\n ...
[ "0.7162911", "0.69557655", "0.67943513", "0.66711885", "0.6638522", "0.6550143", "0.6507999", "0.6399292", "0.63971215", "0.6347156", "0.61553246", "0.61419064", "0.60483164", "0.60094917", "0.58999556", "0.5896387", "0.5842224", "0.5824072", "0.58109105", "0.5809337", "0.578...
0.81821364
0
Redirects to userspecified 1024calendar
function calendarRedirect() { var calendarName = getCookie("calendarName"); if (calendarName == undefined || calendarName === "") { calendarName = window.prompt("Tast inn ditt kalendernavn på ntnu.1024.no. " + "Du blir deretter sendt direkte til din kalender neste gang. " + "Kalendernavnet kan endres v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function viewCalander () {\r\n\t try {\r\n var myParentWindow = window.opener;\r\n myParentWindow.viewCalanderWindow(getParamsForCalendar());\r\n } \r\n catch (e) {\r\n\t\tvar width = screen.width - 150;\r\n\t\tvar height = screen.height - 150;\t\r\n\t var win = window.open($(\"#contextPath\...
[ "0.592254", "0.5736887", "0.5725078", "0.5668326", "0.5646479", "0.563423", "0.5598762", "0.55928725", "0.55744237", "0.5544371", "0.55439806", "0.5524341", "0.54947764", "0.54798585", "0.54213166", "0.5404033", "0.5393574", "0.5390908", "0.53800434", "0.5344203", "0.53410155...
0.6503826
0
Returns true if fysmat.no is the URL in the address bar
function isFysmat() { var domain = window.location.href; // Find & remove protocol (http, ftp, etc.) and get domain if (domain.indexOf("://") > -1) { domain = domain.split('/')[2]; } else { domain = domain.split('/')[0]; } // Checks if fysmat.no is the URL if (domain.toLowerCase() == "fysmat.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isReviewPage() {\n return window.location.href.match(/^(http|https):\\/\\/www.stumbleupon.com\\/url/i);\n}", "function checkUrl(){\n // get hash the URL\n var hash = window.location.hash;\n // check if something is in the hash\n if (hash){\n var splitted = hash...
[ "0.69368", "0.6859303", "0.68302864", "0.67359084", "0.66912365", "0.66284734", "0.6608107", "0.65515316", "0.65381104", "0.6522516", "0.65011895", "0.64757335", "0.64046013", "0.6384361", "0.63820064", "0.6366", "0.6349871", "0.633588", "0.63347155", "0.6322611", "0.6282334"...
0.7999933
0
Returns the proper HTML logo header based on the URL detection of isFysmat()
function logoHeaderText(isFysmat) { if (isFysmat) { return "FYS<span class='thin'>MAT.no</span>" } else { return "KOKE<span class='thin'>kunster</span>" } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMetaForLogo(html, hostname) {\n var result;\n result = getMeta_prop(html, 'image');\n if (result.trim().length != 0) {\n if (result) {\n if (!Regex.base64.test(result.trim())) {\n result = ValidImageURL(hostname, result);\n }\n }\n return result;\n }\n\n result = getLogoO...
[ "0.6795905", "0.6325282", "0.6312872", "0.61975676", "0.59244066", "0.59225154", "0.58434683", "0.5804728", "0.57681155", "0.57415104", "0.5697758", "0.56857806", "0.56768936", "0.56622034", "0.5603621", "0.55888426", "0.557917", "0.55726826", "0.55122983", "0.54937124", "0.5...
0.70650315
0
Filtered buyer list on transaction uses Suitelet to dynamically grab and build custom field. This is because record can be created and/or edited by user and customer value can be changed.
function addFilteredBuyerList(type, form, request) { //Only fire for all type Except for Delete and Xedit by User //if (type != 'delete' && type != 'xedit' && nlapiGetContext().getExecutionContext()=='userinterface') { //Ticket 679 - Make it exactly like Booking. ONLY have it appear on EDIT mode if (type == '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFilteredBuyerList(req, res) {\r\n\t\r\n\tvar customerId = req.getParameter('customerid');\r\n\tvar retjson = {\r\n\t\t\"status\":false,\r\n\t\t\"err\":\"\",\r\n\t\t\"list\":new Array()\r\n\t};\r\n\ttry {\r\n\t\t\r\n\t\t//only execute if clientId is set\r\n\t\tif (customerId) {\r\n\t\t\t\r\n\t\t\t//sear...
[ "0.6625942", "0.57995856", "0.5662834", "0.55814856", "0.5327946", "0.53059274", "0.52299654", "0.52151316", "0.519124", "0.508157", "0.50758636", "0.5072899", "0.50636816", "0.50568825", "0.5052308", "0.5052308", "0.5052308", "0.49965295", "0.4994899", "0.49914837", "0.49888...
0.69639975
0
Removes a task from the list
function removeTask(taskCard) { // Task object var taskID = taskCard.attr('id'); // Call php function to delete task jQuery.ajax({ type: "POST", url: '../actions/deleteTask.php', dataType: 'html', data: {func: 'justTesting', taskID: taskID}, success: function(da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeTask () {\n\t\tthis.deleter.addEventListener('click', (e) => {\n\t\t\tfetch('/items/'+e.target.parentNode.parentNode.parentNode.childNodes[0].getAttribute('data-task'), {\n\t\t\t\tmethod: 'DELETE',\n\t\t\t\theaders: {\n\t\t\t\t'Accept': 'application/json',\n\t\t\t\t'Content-Type': 'application/json'\n\t\t\t\...
[ "0.7737545", "0.76484114", "0.76210654", "0.7613792", "0.75736743", "0.75346196", "0.74409866", "0.7369885", "0.73069376", "0.73064977", "0.72929054", "0.7282943", "0.72762614", "0.7268117", "0.72462904", "0.72249365", "0.72243416", "0.72224706", "0.72137046", "0.72004", "0.7...
0.0
-1
Returns a task from the tasks by ID
function getTask(taskID) { for (i = 0; i<data.length; i++) { if (data[i].id == taskID) { return data[i]; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "findTaskById(id) {\n return this.addTask.filter(task => task.id === id)[0]\n }", "function get_task(id) {\n return $('.task[id=\"' + id + '\"]');\n }", "getTaskById(taskId) {\n const foundTask = this.tasks.filter((x) => x.Id === taskId);\n return foundTask;\n }", "functio...
[ "0.8037264", "0.796582", "0.77251095", "0.76743865", "0.76007986", "0.7580438", "0.7503286", "0.7473225", "0.7436477", "0.7426472", "0.7257402", "0.71520066", "0.702181", "0.6966748", "0.69245017", "0.68672353", "0.6835788", "0.68304294", "0.682173", "0.67729634", "0.67251194...
0.7630342
4
If there is no license, return an empty string
function renderLicenseBadge(license) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderLicenseSection(license) {\n if (license === \"No License\") {\n return \"\";\n }\n}", "function renderLicenseSection(license) {\n if (license === \"No License\") {\n return '';\n }\n return`\n ${license}\n `\n }", "function renderLicenseSection(license) {\n if (license =...
[ "0.7977876", "0.74200374", "0.74095833", "0.73692405", "0.736309", "0.7360451", "0.73474044", "0.7309426", "0.73027885", "0.72705823", "0.72684836", "0.72640544", "0.7228819", "0.71452034", "0.71392286", "0.7134129", "0.7120664", "0.71194357", "0.71124935", "0.711239", "0.711...
0.0
-1
TODO: Create a function that returns the license link If there is no license, return an empty string
function renderLicenseLink(license) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderLicenseLink(license) {\n if (license === \"none\" ) {\n return \"\";\n}\nelse if (license === \"MIT\") {\n return \"(https://opensource.org/licenses/MIT)\"\n \n}\nelse if (license === \"Apache\") {\n return \"(https://opensource.org/licenses/Apache-2.0)\"\n}\n}", "function renderLicenseLink...
[ "0.8601106", "0.84422433", "0.8439248", "0.8427527", "0.84259844", "0.8375332", "0.8371506", "0.83636856", "0.83574617", "0.83574116", "0.8343663", "0.8330563", "0.8319106", "0.831365", "0.83135885", "0.8310617", "0.82947874", "0.8288176", "0.82868904", "0.8284544", "0.828454...
0.82626617
40
TODO: Create a function that returns the license section of README If there is no license, return an empty string
function renderLicenseSection(license) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LicenseSection(license) {\n const licenseURL = LicenseLink(license);\n console.log('licenseURL', licenseURL);\n const licenseSectionText = `Licensed under [${license}](${licenseURL}).`;\n return licenseSectionText;\n}", "function renderLicenseSection(license) {\n if (!license) return '';\n else if...
[ "0.76030916", "0.7592099", "0.75419253", "0.7532912", "0.7531917", "0.7517399", "0.7473692", "0.74666", "0.7463927", "0.742949", "0.74267805", "0.7395167", "0.7371703", "0.7367991", "0.7358863", "0.73500824", "0.7348133", "0.73464775", "0.73464566", "0.7341965", "0.7338444", ...
0.0
-1
TODO: Create a function to generate markdown for README
function generateMarkdown(data) { return `# ${data.title} ## Table of Contents ## 1.[Installation](#installation) ## 2.[Usage](#usage) ## 3.[License](#license) ## 4.[Contributing](#contributing) ## 5.[Tests](#tests) ## 6.[Questions](#questions) ## 7.[Description](#description) <a name="installation"></a> # Ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateMarkdown({ title, description, installation, usage, contributing, tests, license, email, github }) {\n return `\n## ${title}\n\n## Description\n\n${description}\n\n\n${renderLicenseBadge(license)}\n\n## Table of Contents\n1. [Description](#description)\n2. [Installation](#installation)\n3. [Usa...
[ "0.8411209", "0.8311551", "0.82650626", "0.80591756", "0.8039517", "0.80377734", "0.7997847", "0.79814047", "0.7979699", "0.797878", "0.79749024", "0.79652435", "0.79647464", "0.796421", "0.79359895", "0.79305935", "0.7926566", "0.79264593", "0.7921531", "0.791737", "0.791385...
0.79306734
15
A function to handle what happens when the form is submitted to create a new Author
function handleCommentFormSubmit(event) { event.preventDefault(); // Don't do anything if the name fields hasn't been filled out if (!usernameInput.val().trim().trim() || !commentInput.val().trim().trim()) { return; } // Calling the upsertAuthor function and passing in the value of the name i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleSubmit(event) {\n // handle form validation\n /** if the form is not valid then do nothing. */\n if (!formIsValid()) return;\n\n // to handle event on client, call prevent default post to server\n event.preventDefault();\n\n // call authorActions (instead of directly calling the ap...
[ "0.70763665", "0.6915538", "0.6744793", "0.6738855", "0.658946", "0.6584932", "0.6473665", "0.6442043", "0.6364473", "0.63193345", "0.6305014", "0.626875", "0.61655027", "0.615852", "0.6155452", "0.6135259", "0.6126922", "0.60576683", "0.6056227", "0.60304147", "0.6027581", ...
0.6340691
9
A function for creating an author. Calls getAuthors upon completion
function upsertComment(commentData) { $.post("/api/comments", commentData) .then(getComments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createAuthor(name, sname, date, books, id) {\n var author = {};\n\n//****************************** using method for each to sort out our array\n if (id) {\n $localStorage.authors.forEach(function (item) {\n if (item.id === id) {\n ...
[ "0.6951071", "0.6921756", "0.6618749", "0.6612266", "0.6603058", "0.6539083", "0.640573", "0.63801026", "0.63742423", "0.63170576", "0.6262514", "0.6152418", "0.61128694", "0.61040294", "0.6099831", "0.6045648", "0.6019464", "0.58746856", "0.5832103", "0.57522005", "0.5744077...
0.0
-1
Function for creating a new list row for authors
function createCommentRow(commentData) { var formattedDate = new Date(commentData.createdAt); formattedDate = moment(formattedDate).format("MMMM Do YYYY, h:mm:ss a"); var newCommentCard = $("<div>"); newCommentCard.addClass("card"); var newCommentCardHeading = $("<div>"); newCommentCardHeading.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createAuthorRow(author) {\n var listOption = $(\"<option>\");\n listOption.attr(\"value\", author.id);\n listOption.text(author.name);\n return listOption;\n }", "function renderAuthorList(data) {\n if (!data.length) {\n window.location.href = \"/authors\";\n }\n $(\".hidden\"...
[ "0.7303021", "0.6851156", "0.6820118", "0.6617669", "0.6539321", "0.6524114", "0.64403707", "0.64303887", "0.63829434", "0.6363435", "0.63181806", "0.63140243", "0.63140243", "0.62896377", "0.6278266", "0.62580866", "0.62501884", "0.6237137", "0.62336564", "0.62187415", "0.62...
0.0
-1
Function for retrieving authors and getting them ready to be rendered to the page
function getComments() { console.log("Get Comment Initiated"); //postId = "/?post_id=" + postId; $.get("/api/comments/" + postId, function(data) { var rowsToAdd = []; for (var i = 0; i < data.length; i++) { console.log("Data[" + i + "]: ", data[i]); rowsToAdd.push(createCommentRo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAuthors() {\n $.get(\"/api/authors\", renderAuthorList);\n }", "function getAuthors() {\n\tvar snippet = {\n\t\tfields: \"name,about,thumbnail\"\n\t}\n\trimer.author.find(snippet, function(error, value) {\n\t\tif(error) {\n\t\t\tconsole.log(error)\n\t\t}\n\t\telse {\n\t\t\tconsole.log(value)\n\t\...
[ "0.79566276", "0.7849177", "0.70742655", "0.6877924", "0.6875197", "0.68641436", "0.6852413", "0.6832566", "0.68118906", "0.6811674", "0.66559714", "0.66559714", "0.66432893", "0.65990824", "0.6571977", "0.6559016", "0.65556484", "0.6538768", "0.65341455", "0.65166104", "0.64...
0.0
-1
A function for rendering the list of authors to the page
function renderCommentList(rows) { commentList.children().not(":last").remove(); commentContainer.children(".alert").remove(); if (rows.length) { console.log(rows); commentList.prepend(rows); } else { renderEmpty(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderAuthors(authors) {\n if (!authors) {\n return ('None')\n }\n else if (authors.length === 1) {\n return (authors)\n }\n else {\n return (\n <ul>\n {authors.map(author => (\n <l...
[ "0.7928668", "0.76138633", "0.7613324", "0.74181956", "0.7350111", "0.72545403", "0.722176", "0.71476924", "0.7094066", "0.6948811", "0.6948811", "0.6893971", "0.68783844", "0.6865205", "0.6832967", "0.67189604", "0.66463333", "0.65734994", "0.6545607", "0.6527557", "0.647366...
0.0
-1
Function for handling what to render when there are no authors
function renderEmpty() { var alertDiv = $("<div>"); alertDiv.addClass("alert alert-danger"); alertDiv.text("No Comments So Far"); commentContainer.append(alertDiv); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "displayAuthor(authors){\r\n\t\tif(authors === undefined || authors.length === 0){\r\n\t\t\treturn(\r\n\t\t\t\t\"No author listed\"\r\n\t\t\t)\r\n\t\t} else {\r\n\t\t\treturn(\r\n\t\t\t\tauthors[0]\r\n\t\t\t)\r\n\t\t}\r\n\t}", "function renderAuthors(authors) {\n if (!authors) {\n return ('None'...
[ "0.74712515", "0.713506", "0.6874178", "0.6565194", "0.6498625", "0.6449626", "0.63398194", "0.62547624", "0.6196527", "0.61285925", "0.601349", "0.5974827", "0.5966873", "0.59654754", "0.59267586", "0.5873848", "0.5846587", "0.5846457", "0.581186", "0.5798764", "0.577933", ...
0.0
-1
creando un constructor que instancie (reemplace los valores por defecto) de mi clase Avenger
function Avenger(nombre, equipo, nombreReal) { /*puedo setear valores por defecto a las propiedades de persona*/ this.nombre = "Sin Nombre"; this.equipo = undefined; this.nombreReal = undefined; this.puedePelear = false; this.peleasGanadas = 0; /*el this.nombre ap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Avenger(fullName, classRoom, city, job, studies, markAv) {\n this.fullName = fullName;\n this.classRoom = classRoom;\n this.city = city;\n this.job = job;\n this.studies = studies;\n this.markAv = markAv;\n}", "constructur() {}", "constructor(nombre,urgencia){\n this.nombre = nomb...
[ "0.68353975", "0.6713706", "0.6614318", "0.65280443", "0.63837355", "0.63509434", "0.63486856", "0.63486856", "0.6327857", "0.626168", "0.6248234", "0.62420964", "0.62420964", "0.6212227", "0.6209975", "0.62002903", "0.6195901", "0.61312866", "0.6118555", "0.61146563", "0.611...
0.7031193
0
Takes care of changing the application state
function demoReducer(state = initialState, action) { switch (action.type) { case ON_TOGGLE_DEMO: { const newState = Object.assign({}, state, { demo: !state.demo }); return newState; } default: return state; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_setApplicationState() {\n const update = {\n applications: this.makeApplicationState()\n };\n this.setState(update);\n }", "onStateChange() {\n\t\t// brute force update entire UI on store change to keep demo app simple\n\t\tthis.forceUpdate();\n\t}", "function setApplicationState( state ){\n ...
[ "0.7430706", "0.71450794", "0.70852023", "0.69939595", "0.6680958", "0.6595484", "0.6514681", "0.6514681", "0.646167", "0.63799846", "0.6375013", "0.63492084", "0.62562454", "0.6235412", "0.62247527", "0.6155534", "0.61511356", "0.61090755", "0.6104358", "0.6097465", "0.60943...
0.0
-1
ellipsis actions eslintdisablenextline classmethodsusethis
pay(a, e) { if (e) e.preventDefault(); this.props.onChangeActions({ pay: true, }, [a]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ellipsis(limit) {\n\t\tvar _limit = limit || 10;\n\t\tvar len = this.length;\n\t\tvar str = \"\";\n\t\tif (len > limit) {\n\t\t\tstr = this.substring(0, limit);\n\t\t}\n\t\tstr += \"...\";\n\t\treturn str;\n\t\t\n\t}", "descriptionAbbreviation(){\r\n if(this.props.data.description.length < 400){\r\n ...
[ "0.5494526", "0.5471377", "0.53955305", "0.526776", "0.5222479", "0.51496613", "0.5127206", "0.51251626", "0.50932026", "0.5081826", "0.5028158", "0.5007417", "0.4944304", "0.49083054", "0.4892849", "0.48700094", "0.48348692", "0.48343277", "0.4833468", "0.483157", "0.4825334...
0.0
-1
renderActions return the ellipses menu, a
renderActions(a, loan) { const { feeFineActions = [] } = this.props; // disable ellipses menu actions based on account-status const isClosed = (a.status.name === 'Closed'); const isDisabled = { pay: isClosed, waive: isClosed, transfer: isClosed, error: isClosed || !isCancelAllow...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "renderActionNodes() {\n var _this$props4 = this.props,\n isCollapsed = _this$props4.isCollapsed,\n menuItems = _this$props4.menuItems,\n renderActions = _this$props4.renderActions;\n var actions = menuItems.filter(action => action.showAsAction && (!isCollapsed || action.showAsAction.when...
[ "0.69758934", "0.69758934", "0.6399598", "0.62776375", "0.6250762", "0.61387306", "0.6127769", "0.6010585", "0.5884121", "0.5868901", "0.58387667", "0.58169335", "0.5812277", "0.5797391", "0.5755216", "0.574504", "0.5719632", "0.57096636", "0.57078135", "0.5672385", "0.566295...
0.5800946
13
create a function that when invoked lists out the numbers 1 10
function count() { for (let x = 1; x <= 10; x++) { console.log(x); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function list() {\n for (num = 0; num < 11; num++){\n console.log(num);\n }\n}", "function renderlist() {\n\n\n // Question 2\n let array = []\n for (let i = 0; i < 30; i++) {\n array.push(i);\n }\n // Question 3 even numbers\n\n for (let i = 0; i < 30; i+=2) {\n arra...
[ "0.7003054", "0.6569133", "0.6440658", "0.6435242", "0.63910884", "0.6360188", "0.63539946", "0.62032527", "0.6164948", "0.61459655", "0.6060131", "0.6029599", "0.6026199", "0.6024855", "0.5991842", "0.59881485", "0.5986308", "0.5938115", "0.5932696", "0.5922663", "0.58657086...
0.0
-1
outcoming Connects to remote peer.
function connect(receiverPeerId) { if (conn) { conn.close(); alert('some connect is close') } conn = peer.connect(receiverPeerId, { reliable: true }); state = `connected to remote peer ${receiverPeerId}` listen(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function connect() {\n var target = $(\"#target-id\").val();\n conn = peer.connect(target);\n conn.on(\"open\", function () {\n updateConnectedTo(target);\n prepareMessaging();\n conn.on(\"data\", function (data) {\n displayMessage(data.message, data.timestamp, conn.peer);\...
[ "0.6933155", "0.66556716", "0.63682604", "0.6300897", "0.6271211", "0.6248242", "0.62448835", "0.6234161", "0.6212292", "0.62044364", "0.61733", "0.6142116", "0.6125172", "0.608771", "0.6084186", "0.6069071", "0.6065588", "0.6062405", "0.60510707", "0.6046334", "0.6046334", ...
0.6973547
0
display active/inactive based on filterpicker selections
function checkActiveState() { if (filterActive.length == 0) { jQuery('#pcnav_filterpicker') .css('background-color', '#EEEEEE') .css('border-color', '#CCCCCC') .attr('value', Zikula.__('inactive','module_postcalendar_js')); } else { jQuery('#pcnav_filterpicker...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function modeFilter()\n{\n $('#filters').show();\n updateFilter();\n}", "stateChanged(state) {\n this.active = this.filter === state.visibilityFilter;\n }", "get isActiveFilter() {\n return this._selectedFilter == \"active\";\n }", "onFilterChange() {\n switch(this.$state_.params.status) {\n...
[ "0.68206674", "0.67906207", "0.67468196", "0.6715848", "0.6696838", "0.66816515", "0.6659186", "0.6620314", "0.6616347", "0.65766096", "0.6521975", "0.65066373", "0.64763063", "0.646379", "0.64596087", "0.6420568", "0.6385303", "0.6369149", "0.63578653", "0.6311011", "0.62852...
0.72200495
0
contains the text above the individual cards at the top of the page
render() { return ( <div className="ourTeam"> <h1 className="title"> Our Team </h1> <p className="aboutUs"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nost...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showFront() {\n // Just update the text with the current card's front word\n const innerText = `<p style=\"font-size:32px\" align=\"center\">${CURRENT_CARD[CURRENT_CARD.front]}</p>`;\n\n CURRENT_CARD.showingFront = true;\n document.getElementById('flashcard').innerHTML = innerText;\n}", "function st...
[ "0.63789034", "0.61955833", "0.6124066", "0.5984405", "0.59341496", "0.5915725", "0.5879824", "0.5839708", "0.5839055", "0.5826831", "0.58236164", "0.5781585", "0.57701766", "0.57098913", "0.57009375", "0.5667863", "0.56532675", "0.564809", "0.56320447", "0.56154805", "0.5594...
0.0
-1
Next Steps: I want a liquidy, electric effect for the health component. I like the idea of plasma flowing through a glass pipe. The effect should intensify when the app is launching. Possible Solutions Gifs CSS Animation Canvas Animation Resources: Glowing: Electic Canvas Demo: Explaination of Plasma Algorithm:
render(){ let cn = `registrationHealth ${this.props.renderState}`; return( <div className="registrationHealth-container"> <div className={cn}></div> </div> ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@autobind\n triggerIntroEffect(color) {\n this.clearLabels();\n\n if (this.pause) {\n this.unPauseVisuals();\n }\n\n this.mesh2.position.z = 0;\n for (var i = 0, i3 = 0, l = this.particleCount2; i < l; i ++, i3 += 3 ) {\n this.scaleArray2[i] = 0;\n this.scaleOriginArray2[i] = 0;\n ...
[ "0.6469807", "0.6409539", "0.6354871", "0.63076013", "0.6288731", "0.6231364", "0.6117279", "0.6092284", "0.6080275", "0.6048665", "0.60326034", "0.6028388", "0.60094684", "0.60007924", "0.59849113", "0.5978529", "0.5964864", "0.5944194", "0.593396", "0.5932239", "0.5929929",...
0.0
-1
Function tp print message to the console
function printError(error) { console.error(error.message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "printIntoConsole() {\n console.log(this.messageText);\n }", "function do_print(message) {\n console.log(message);\n}", "printMessageManualy(message) {\n console.log(`Message: ${message}`);\n }", "function print(message) {\n console.log(message);\n}", "function echo(msg){\n ...
[ "0.81094426", "0.7970866", "0.77562547", "0.77052885", "0.7681336", "0.76232773", "0.7548566", "0.7547583", "0.7494905", "0.74518293", "0.74506277", "0.7413272", "0.7348284", "0.732845", "0.729383", "0.7286546", "0.7235454", "0.72143286", "0.72143155", "0.7182031", "0.7181135...
0.0
-1
Function to convert Farenheit to celsius
function toCelsius(kelvin) { const celsius = kelvin - 273; return Math.round(celsius); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fahrenheitToCelsius(f) {\n var celsius = ( f - 32 ) * ( 9 / 5) ;\n return celsius;\n }", "function farenheitToCelsius(f) {\n var celsius = Math.round((f - 32) / 1.8);\n return (f + \" grados Farenheit son \" + celsius +\" en Celsius\");\n}", "function toCelsius(fahrenheit) {\n return (...
[ "0.8201932", "0.79954827", "0.79842716", "0.79842716", "0.793405", "0.7911751", "0.7905336", "0.787769", "0.7861299", "0.7833453", "0.7798889", "0.774696", "0.7723889", "0.7722808", "0.77105814", "0.7697243", "0.7676504", "0.7675966", "0.76691234", "0.76526546", "0.7639015", ...
0.0
-1
Connect to the OpenWeather API and get the raw data Example of calls: api.openweathermap.org/data/2.5/weather?q=Mumbai
function get(query) { try { const request = https.get(`https://api.openweathermap.org/data/2.5/weather?q=${query}&APPID=6b624a38c1e66ed01b6a1aea126d63b5`, response => { if (response.statusCode === 200) { let body = ""; // Read the data response.o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getWeatherData() {\n\n var url = 'http://api.openweathermap.org/data/2.5/weather?lat=' + latitude + '&lon=' + // build query url.\n longitude + '&APPID=936e860c72edb8cb527707e7d59da1ea' +\n '&units=' + countryUnits + '&preventCache=' + new Date(); // build query ur...
[ "0.7704035", "0.7646391", "0.75784177", "0.7474592", "0.74731", "0.7454681", "0.73544604", "0.731225", "0.7301518", "0.72968614", "0.72907966", "0.72872216", "0.7277234", "0.7276766", "0.727222", "0.72708803", "0.7269409", "0.7267586", "0.72570765", "0.72496116", "0.7239465",...
0.0
-1
Order by title and print the first 20 titles
function orderAlphabetically(array){ let titles = array.map(i=>i.title) if (array.length <= 20) { for (i = 0; i<array.length; i++) { console.log(titles.sort()[i]); } } else { for (i = 0; i<20; i++) { console.log(titles.sort()[i]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function orderAlphabetically(movies) {\nvar arrayTitleMovies = movies.sort(function(movie){\n return movie.title.sort();\n});\nvar i = 0; \nwhile (i<arrayTitleMovies.length) {\n if (i == 20) {\n break;\n }\n i += 1;\n}\n}", "function orderAlphabetically(someArray){\n someArray.sort((a, b) =...
[ "0.7696988", "0.76873964", "0.7614209", "0.7552131", "0.75018746", "0.74607325", "0.734692", "0.7329982", "0.7314614", "0.7298077", "0.7295003", "0.7293383", "0.7283198", "0.7266205", "0.7262804", "0.7262658", "0.7223857", "0.7212396", "0.7194478", "0.7184376", "0.7180002", ...
0.73107934
9
constructor method to declare the state.
constructor() { super() this.state = { columns: [], rows: [] } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor() { \r\n super();\r\n this.state = {};\r\n }", "constructor() {\n\n // we use the super keyword and method to call the constructor of a parent class\n // this gives us access to the properties of the parent class. It MUST \n // be used BEFORE the 'this' keyword\n...
[ "0.7929808", "0.78170943", "0.77729756", "0.7753436", "0.77122074", "0.7674331", "0.76153696", "0.7548633", "0.7448689", "0.7357357", "0.7331361", "0.72670627", "0.72368604", "0.7216137", "0.7198531", "0.71760345", "0.71703947", "0.71583647", "0.7147146", "0.714539", "0.71206...
0.0
-1
life cycle methods, to fetch data using axios from an API
componentDidMount() { axios.get('https://jsonplaceholder.typicode.com/posts').then(res => { this.setState({ columns: [ { label: 'User', field: 'userId', sort: 'asc', width: 300 }, { label: 'ID', field...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async fetchData() {\n // simple error handling - try to change api url inside get method to see.\n try {\n const apiCall = await axios.get(\"https://reqres.in/api/users\");\n const response = handleJson(apiCall);\n this.setState({ response });\n } catch (error) {\n console.error(error)...
[ "0.7122353", "0.70155126", "0.7000715", "0.6986572", "0.6900931", "0.68673164", "0.68398035", "0.68336457", "0.68169945", "0.681362", "0.6784904", "0.6775223", "0.67640877", "0.67479414", "0.6737085", "0.6729253", "0.6709431", "0.6704096", "0.6695232", "0.6694671", "0.6692221...
0.0
-1
Display the fetched data in render method
render() { $(document).ready(function () { $("table tbody tr").click(function () { var tableData = $(this).children("td").map(function () { return $(this).text(); }).get(); window.location.hash = 'posts/' + tableData[1]; }); }); const post = this.state.rows; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render() {\n res.render('socList', {\n title: 'Sentinel Project: SOC Manager',\n socs: socs,\n datapoints: resultsDatapoints\n });\n }", "function renderEmployeesData () {\n fetch(\"http://localhost:3000/api/employees/getEmployee\").then(res =...
[ "0.7083348", "0.68087673", "0.6659761", "0.66430336", "0.66158736", "0.65933985", "0.6574949", "0.6498927", "0.6498927", "0.6496873", "0.6477335", "0.64762425", "0.6467478", "0.6456324", "0.6397784", "0.6390999", "0.6383267", "0.6364539", "0.63339615", "0.63039404", "0.628634...
0.0
-1
todo temporary solution the parser should create layers with packages
load( resolver ) { const nextToLoad = this.layers.find( ( { isready } ) => !isready ); if( nextToLoad ) { const loader = Promise.all( nextToLoad.prop.use.map( ({ type = "url", ...use }) => type === "url" ? Loader.default.obtain( use ) : this.get( use.path ) )); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convertLayerToData(layer){\n var data = {\n layer: layer,\n isSet: layer.typename == \"LayerSet\",\n name: layer.name,\n startedVisible: layer.visible,\n tags: {},\n hasTags: false,\n siblings: [],\n descendents...
[ "0.57078665", "0.5599351", "0.5590099", "0.5428279", "0.54219824", "0.5328085", "0.53266704", "0.52245307", "0.52047306", "0.5202823", "0.51839584", "0.5163669", "0.5155399", "0.5146911", "0.51415", "0.5124884", "0.5105859", "0.50915927", "0.50881577", "0.50706875", "0.502708...
0.5121406
16
= ===================================== = INITIALIZATION = ======================================
$onInit() { return this.$q.all([ this.getBlocIP(), this.getCallWaiting(), this.getContentSharing(), this.getFTP(), this.getIpsecAlg(), this.getSipAlg(), this.getUPnP(), ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "initialize() {}", "initialize() {}", "initialize() {}", "initialize() {}", "initialize() {}", "initialize() {}", "constructor() {\n\t\t// ...\n\t}", "constructor (){}", "consructor() {\n }", "function _construct()\n\t\t{;\n\t\t}", "init () {}", "init () {}", "constructor() {\r\n ...
[ "0.7894632", "0.7894632", "0.7894632", "0.7894632", "0.7894632", "0.7894632", "0.7803379", "0.7796438", "0.77396", "0.76859534", "0.76826954", "0.76826954", "0.7671126", "0.7668968", "0.76658565", "0.76658565", "0.76658565", "0.76658565", "0.76658565", "0.76146936", "0.759010...
0.0
-1
Metoda pobiera liste zdjec z serwera
fetchData() { this.service.getAllImages(function (data) { for (let i = 0; i < data.length; i++) { this.sideDrawer.addElements(data[i].images); this.map.drawMarker(data[i].images); } }.bind(this), function (error) { // handle error }.bind(this)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Liste() {\r\n this.elenco = [];\r\n\r\n this.inizializza =\r\n function(y) {\r\n for (var i = 0; i < y.length; i++) {\r\n var lista = new Lista();\r\n lista.inizializza(y[i]);\r\n this.elenco.push(lista);\r\n };\r\n }\r...
[ "0.6743646", "0.6600572", "0.65955955", "0.65344936", "0.64342606", "0.6427514", "0.63575107", "0.63156426", "0.62643874", "0.62184215", "0.6195927", "0.6190735", "0.61722887", "0.6163854", "0.61552733", "0.613383", "0.6123318", "0.6111919", "0.6088481", "0.60640395", "0.6006...
0.0
-1
Pierdoly zeby ladnie wygladalo
initMDC() { const iconButton = document.querySelector('.mdc-icon-button') if (iconButton !== null){ const iconButtonRipple = new MDCRipple(iconButton); iconButtonRipple.unbounded = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "protected internal function m252() {}", "private public function m246() {}", "transient protected internal function m189() {}", "function wa(){}", "transient private protected internal function m182() {}", "function mostraNotas(){}", "transient final protected i...
[ "0.621485", "0.6088478", "0.5987853", "0.5836323", "0.5802204", "0.57263744", "0.57125646", "0.5635441", "0.5628012", "0.5585318", "0.557854", "0.55694616", "0.556616", "0.5534564", "0.5532376", "0.5530261", "0.54974115", "0.5493949", "0.54921836", "0.5485793", "0.5453805", ...
0.0
-1
ADD TO CART //
function AddToCartSuccess(data) { if (data.Success) { $("#addToCartSuccess").show().fadeOut(4000); UpdateMiniCart(); } ShowGlobalMessages(data); // Update Button State $('#AddToCartButton').button('reset'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add() {}", "addC() {\r\n console.log(\"Cart\");\r\n }", "function addItemToCart() {}", "function addItemToCart() {}", "addCoffeeLot(coffeeLot) {\r\n \r\n }", "function addConeToCart(e) {\n var variation=\"\";\n var mods=[];\n document.querySelectorAll(`#config.cone-builder...
[ "0.65124494", "0.64951634", "0.6368138", "0.6368138", "0.6220946", "0.6190326", "0.615719", "0.6085634", "0.6039435", "0.60333234", "0.60015607", "0.59827566", "0.5885273", "0.58720076", "0.58442444", "0.5816912", "0.57722163", "0.57587713", "0.57468617", "0.5738083", "0.5698...
0.0
-1
Initializes the fields of this object. This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mixins). Only for internal use.
static initialize(obj, applicationIds, title, name, description, mimeType, handler, version) { obj['applicationIds'] = applicationIds; obj['title'] = title; obj['name'] = name; obj['description'] = description; obj['mimeType'] = mimeType; obj['handler'] = handler; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor() {\n super();\n this._init();\n }", "init() {\n this._super(...arguments);\n this._applyDefaults();\n }", "_init() {\n\t\tthis.life.init();\n\t\tthis.render.init();\n\n\t\tthis.emission.init();\n\t\tthis.trail.init(this.node);\n\n\t\tthis.color.init();\n\t}", "function Co...
[ "0.71314037", "0.69630265", "0.6814572", "0.67468137", "0.6715615", "0.6642555", "0.6633626", "0.66017884", "0.6580413", "0.65630656", "0.6409274", "0.64043665", "0.6334331", "0.63041437", "0.62964106", "0.6283095", "0.626907", "0.6240725", "0.6238583", "0.6234676", "0.623446...
0.0
-1
console.log(map(ages, doMath)); console.log(filter(ages, greaterThan));
function addFive(n) { return n + 5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ofAge(arr){\r\n return arr.filter(function(num){\r\n if (num.age >= 17){\r\n return num;\r\n };\r\n });\r\n \r\n}", "function allowedInFilter(ages) {\n return ages.filter(isTwentyOneOrGreater); //isTwentyOneOrGreater is our callback function.\n}", "function func5(){...
[ "0.6847382", "0.6811443", "0.6799959", "0.66419053", "0.6597035", "0.65156627", "0.64155686", "0.634878", "0.6344787", "0.62957704", "0.62889004", "0.62702715", "0.6265407", "0.6197562", "0.6077632", "0.6056846", "0.6004608", "0.59992415", "0.5988404", "0.5931055", "0.5897779...
0.0
-1
start generated code Generated by 1.5.2 (Phaser v2.6.2) Menu.
function Menu() { Phaser.State.call(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "createMenu()\n {\n currentScene.add.image(topBackgroundXOrigin, topBackgroundYOrigin, 'Fondo');\n\n // The first button that will enable audio\n let firstBtn = currentScene.add.image(topBackgroundXOrigin, topBackgroundYOrigin, 'FirstStart');\n\n firstBtn.setInteractive();\n fi...
[ "0.75542235", "0.7438377", "0.7438246", "0.7378621", "0.7362202", "0.72858506", "0.7254852", "0.72458816", "0.72249955", "0.72061414", "0.71782035", "0.70655227", "0.7045342", "0.7038721", "0.69978434", "0.69925463", "0.6991938", "0.6938908", "0.6920419", "0.687966", "0.68706...
0.7332162
5
Y is inverted because display Y coords grow downwards
function getPoint(x, gf) { return { 'x': x, 'y': gf(x)*-1 }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_reverseY() {\n this._dy = -this._dy;\n }", "function prevFrameY(){\n\tif(_y<=1 && _y>0) _y-=_offsetY;\n\telse _y=1-_offsetY;\n\trenderer.material.mainTextureOffset= Vector2(_x,_y);\n}", "get adjustedY() { return this.y - this.originY }", "ScreenToWorldY(y) {\n return -( y - this.center.y + ...
[ "0.7927144", "0.7256483", "0.7157224", "0.7001041", "0.6976008", "0.69580567", "0.69442916", "0.6929303", "0.69021386", "0.6879833", "0.68684614", "0.6784551", "0.6774042", "0.668507", "0.66827685", "0.6682168", "0.6651322", "0.66202235", "0.66137743", "0.65747976", "0.655876...
0.0
-1
Search for Changes in category selection in company profile edit and product add form\\
function showSubCat(str,id) { //alert(id); ajax(); if (str==" ") { document.getElementById("txtHint").innerHTML = ""; return; } doc.open("GET",site_url+"/ajax.php?section=queryData&test="+str+"&idData="+id,false); doc.send(null); var arraylist=doc.responseText.split('**'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleProductFilterChange() { // jshint ignore:line\n // If the selected filter was changed to '', do nothing\n if ($(this).val() === '') {\n return;\n }\n\n $('#extra-filters').hide();\n\n // Add this filter to the list of filters\n $(\"#current-filters\").show().append(\"<p class...
[ "0.61639106", "0.61371547", "0.61016417", "0.60967356", "0.6066013", "0.6055938", "0.6029039", "0.5996322", "0.5987394", "0.5980703", "0.59761864", "0.5965387", "0.5941587", "0.5915362", "0.58843297", "0.58793086", "0.587789", "0.58470196", "0.5826373", "0.5816274", "0.580330...
0.0
-1
For Alternate Values in Edit company profile
function show_alt_email() { if(document.getElementById("alt_email").checked) document.getElementById("alt_email_list").style.display="block"; else document.getElementById("alt_email_list").style.display="none"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeProductValues() {\n\tshowHideProductValues();\n\tenableDisableCreditFields();\n}", "function onChangeComp (value){\n setCompanyName(value);\n for (var i in basedata){\n var name = basedata[i].name;\n if(name === value){\n // console.log(\"enter?\")\n ...
[ "0.596842", "0.59648305", "0.59597176", "0.5915815", "0.58864415", "0.58823156", "0.5834816", "0.578997", "0.5748795", "0.5740623", "0.5738968", "0.5687034", "0.56769097", "0.5662067", "0.5654019", "0.5649809", "0.56243384", "0.56047034", "0.55828536", "0.5568932", "0.5552850...
0.0
-1
For Alternate Values in Edit company profile
function Valid_Inquiry(frm ,sess) { var checkFocus=0; if(sess==0) { if(frm.name.value=='') { document.getElementById("name").innerHTML="<span class='alert'>"+lang_enter_name+"</span>"; if(checkFocus!=1) { frm.name.focus(); checkFocus=1; } } else document.getElementById("name").innerHTML=""; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeProductValues() {\n\tshowHideProductValues();\n\tenableDisableCreditFields();\n}", "function onChangeComp (value){\n setCompanyName(value);\n for (var i in basedata){\n var name = basedata[i].name;\n if(name === value){\n // console.log(\"enter?\")\n ...
[ "0.59684646", "0.59647334", "0.5959602", "0.5916045", "0.58863616", "0.58822656", "0.5834605", "0.5790188", "0.5748948", "0.5740789", "0.57390755", "0.5686877", "0.5676861", "0.56622064", "0.5654193", "0.56497717", "0.56242096", "0.5604657", "0.5582883", "0.55688256", "0.5552...
0.0
-1
for allow only alphanum in input type
function alphaNumSpaceOnly(evt) { var charCode = (evt.which) ? evt.which : window.event.keyCode; if (charCode <= 13) { return true; } else { var keyChar = String.fromCharCode(charCode); var re = /[\sa-zA-Z0-9_-]/ return re.test(keyChar); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lettersOnly(input) {\n //let regex = /[^a-z]/gi //\n let regex = /[^a-z\\s]/gi\n // let regex = /^[a-z ,.'-]+$/i //\n input.value = input.value.replace(regex, \"\");\n}", "onlyletter(input) {\n let re = /^[A-Za-z]+$/\n let inputValue = input.value\n\n let errorMessage =...
[ "0.7394181", "0.7227186", "0.71923256", "0.70889884", "0.70821524", "0.70789224", "0.7069554", "0.70564985", "0.70325303", "0.70325303", "0.70325303", "0.70325303", "0.70325303", "0.70325303", "0.70325303", "0.70325303", "0.70325303", "0.70325303", "0.70325303", "0.70325303", ...
0.0
-1
==============================================functions use for add product group===========================
function selec_primery_product(value_sel) { document.getElementById("select_primery_product").value=value_sel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addProduct () {\n\n\t}", "addProduct (product) {\n\n }", "function addProduct() {\n var currentHttpParameterMap = request.httpParameterMap;\n\n\n\n var Product = null;\n\n if (Product === null) {\n if (currentHttpParameterMap.pid.stringValue !== null) {\n var ProductID = cu...
[ "0.66858506", "0.6580747", "0.64773965", "0.6451469", "0.6428801", "0.63982064", "0.635632", "0.6342534", "0.6328377", "0.6314851", "0.62550247", "0.62462294", "0.62448525", "0.6148912", "0.61474884", "0.61239177", "0.6103072", "0.60929734", "0.60878277", "0.60834396", "0.607...
0.0
-1
=============================================function use for popup currencty======================================
function currency_conveter_close() { document.getElementById("currency_id").style.display="none"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function maj_etat(ipop_id) {\n \n mywindow=open('PopupActes.php?id='+id,'myname','resizable=yes,width=800,height=470,status=yes,scrollbars=yes');\n mywindow.location.href = 'PopupActes.php?id='+id+'&date_interv='+date_inv;\n if (mywindow.opener == null) mywindow.opener = self;\n}", "function popup(title...
[ "0.6782545", "0.67414105", "0.669403", "0.66072005", "0.65968394", "0.6584585", "0.653365", "0.65068555", "0.65055925", "0.6500744", "0.6474074", "0.64726543", "0.64329123", "0.6419985", "0.6410517", "0.64094377", "0.63881916", "0.6367414", "0.63587016", "0.6338649", "0.63128...
0.0
-1
=================================for header search dropdown select====================================
function selectHeaderSearchIn(type) { if(type=='product') { //alert("xxxxxxxxx"); document.getElementById("the-basics0").style.display='block'; document.getElementById("the-basics1").style.display='none'; document.getElementById("the-basics2").style.display='none'; //document.getElementById("th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scrhSelect() {\n $(document).on('click','.scrhSelect .scrhVal', function () {\n $(this).next('.scrhDropdown').toggle();\n $(this).next('.scrhDropdown').find('.srchFilter').val('');\n $(this).next('.scrhDropdown').find('li').show();\n });\n $(document).on('click','.scrhSelect ...
[ "0.68790144", "0.6569369", "0.65663254", "0.6544841", "0.6417324", "0.63966197", "0.63818294", "0.6334182", "0.63318473", "0.63272953", "0.62901205", "0.6289259", "0.62512106", "0.6238446", "0.6168394", "0.612949", "0.61024857", "0.6093855", "0.60877544", "0.60752034", "0.607...
0.67356306
1
getOAuthAccessToken: POSTs to SFMC Auth URL to get an OAuth access token with the given ClientId and ClientSecret More info:
getOAuthAccessToken(client_id, client_secret) { let self = this; Utils_1.default.logInfo("getOAuthAccessToken called."); Utils_1.default.logInfo("Using specified ClientID and ClientSecret to get OAuth token..."); let headers = { 'Content-Type': 'application/json', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAccessToken() {\n const url = `https://${process.env.CLIENT_DOMAIN}/oauth/token`;\n const audience = `https://${process.env.CLIENT_DOMAIN}/api/v2/`;\n return axios.post(url, {\n client_id: CLIENT_ID,\n client_secret: CLIENT_SECRET,\n grant_type: \"client_credentials\",\n ...
[ "0.71287525", "0.699604", "0.68804103", "0.6874162", "0.6860811", "0.67802256", "0.67691034", "0.67462194", "0.6743203", "0.67106336", "0.66947454", "0.6684551", "0.6628459", "0.656589", "0.656589", "0.6565408", "0.65272075", "0.649431", "0.6480142", "0.6463644", "0.6454913",...
0.7825982
0
getOAuthTokenHelper: Helper method to POST the given header & body to the SFMC Auth endpoint
getOAuthTokenHelper(headers, postBody) { return new Promise((resolve, reject) => { // POST to Marketing Cloud REST Auth service and get back an OAuth access token. let sfmcAuthServiceApiUrl = "https://mcj6cy1x9m-t5h5tz0bfsyqj38ky.auth.marketingcloudapis.com/v2/token"; axi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sendAuthData(uri, httpmethod, token, data, callback) {\r\n var requestbody = \"\";\r\n if (data) {\r\n requestbody = JSON.stringify(data);\r\n }\r\n request({\r\n url: uri,\r\n method: httpmethod,\r\n headers: {\r\n \"Content-Type\": \"application/json\",...
[ "0.6069026", "0.60227114", "0.60113007", "0.59944546", "0.58922493", "0.5889212", "0.58653545", "0.58522713", "0.58430815", "0.5790428", "0.5777359", "0.5767475", "0.5766614", "0.57303953", "0.5730059", "0.57012033", "0.5670807", "0.56581783", "0.5656588", "0.5653775", "0.561...
0.63909346
0
Metodos para los grados de libertad
asignarAlargue(alargue){ this.cuerpoHombro.position.y = alargue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getGeneralData(){\n\t\t// Idioma\n//\t\tfind(\"//script[@type='text/javascript']\", XPFirst).src.search(/\\/([^\\/]+)?3.js$/);\n\t\tfind(\"//img[contains(@src, 'plus.gif')]\", XPFirst).src.search(/\\/img\\/([^\\/]+)\\//);\n\t\tidioma = RegExp.$1;\n\n\t\t// Ruta al pack grafico\n\t\tfind(\"//link[@rel='sty...
[ "0.5900806", "0.57587504", "0.56918055", "0.5614449", "0.5377379", "0.53672445", "0.53637594", "0.5353809", "0.5337912", "0.53084594", "0.530519", "0.5298353", "0.52866125", "0.5276804", "0.52711135", "0.5248104", "0.52375776", "0.52253926", "0.52105373", "0.51473594", "0.513...
0.0
-1
>> Pushes input changes to reducer on blur
function handleBlur(prop) { switch(prop) { case 'bkg_url': dispatch({type: 'SET_FRAME_BKG', payload: bkg_url}); break; case 'framerate': dispatch({type: 'SET_FRAME_FRAMERATE', payload: Number(framerate) }); break; case 'smoothing': dispatch({type: 'SET_FRAME_SMOOTHING', payload: Number(smoothing) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onBlur() {\n\t\t\t// Set last value as input value\n\t\t\t$$invalidate(2, inputValue = value);\n\t\t}", "function onBlur() {\n\t\t\t$$invalidate(3, inputValue = value);\n\t\t}", "handleBlur(event) {\n this.finishUpdate();\n }", "handleBlur(event) {\r\n this.handleInputChange(event);...
[ "0.72165024", "0.7015464", "0.6700165", "0.6603325", "0.65592474", "0.6555702", "0.65468067", "0.6505518", "0.63517237", "0.62816846", "0.6276865", "0.62086135", "0.6195068", "0.61149585", "0.61144435", "0.61101484", "0.6107707", "0.61068505", "0.60869646", "0.60709316", "0.6...
0.0
-1
>> Toggles blur on pressing enter
function handleKeyPress(event) { switch(event.key) { case 'Enter': document.activeElement.blur(); break; default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function blur() {\r\n this.hasFocus = false;\r\n }", "blur() {}", "function enter_detector(e) {\r\n\t// if enter key is pressed lose focus\r\n\tif(e.which==13||e.keyCode==13){\r\n\t$(this).blur();\r\n\t}\r\n\t}", "function doBlur(forceBlur){if(forceBlur){noBlur=false;hasFocus=false;}elements.input.blur()...
[ "0.7067554", "0.7004988", "0.69180113", "0.68753725", "0.68405384", "0.68264097", "0.68264097", "0.68264097", "0.68264097", "0.68264097", "0.68264097", "0.68264097", "0.678585", "0.678585", "0.678585", "0.678585", "0.678585", "0.67347145", "0.6725864", "0.6690988", "0.6580732...
0.64082557
29
>> Toggles pixelsnap and sends it to both state and the reducer
function togglePixelsnap() { setPixelsnap(!pixelsnap) dispatch({type: 'SET_FRAME_PIXELSNAP', payload: !pixelsnap }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggleSnapping() {\n\t\tvar snapOK = document.getElementById(\"snap\").checked;\n\t\tif (snapOK) {\n\t\t\tsnapping.activate();\n\t\t} else {\n\t\t\tsnapping.deactivate();\n\t\t}\n}", "function toggle_to_low(){\n\tisSnapVisible = true;\n\tvideo_out.style.display = 'none';\n\tsnap_out.style.display = 'blo...
[ "0.68348366", "0.64958376", "0.623032", "0.61628973", "0.61017096", "0.60862535", "0.60254234", "0.5931484", "0.5915279", "0.5839984", "0.5803935", "0.5778053", "0.5755487", "0.5753835", "0.57376003", "0.56936383", "0.56841576", "0.5682368", "0.56790346", "0.56753266", "0.566...
0.8523694
0
>> Toggles hideoverflow and sends it to both state and the reducer
function toggleHideoverflow() { setHideoverflow(!hideoverflow) dispatch({type: 'SET_FRAME_HIDEOVERFLOW', payload: !hideoverflow }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "toggle() {\n if (!this.state.isVisible) {\n document.body.style.overflowY = \"hidden\";\n } else {\n document.body.style.overflowY = \"visible\";\n }\n\n this.setState({ isVisible: !this.state.isVisible });\n }", "toggle() {\r\n this.props.dispatch({\r\n type: 'mainLayout/setCollap...
[ "0.68977016", "0.64573705", "0.63152516", "0.62871087", "0.6244817", "0.6244001", "0.6225279", "0.62119186", "0.6181365", "0.6181365", "0.6179024", "0.61190325", "0.61190325", "0.6116297", "0.60876286", "0.6066498", "0.6052762", "0.60347617", "0.603143", "0.6024103", "0.59792...
0.8476868
0
Function for event click thumbnail
function clickThumb(x) { var slider = document.getElementById("slider"); var slideList = document.getElementById("sliderWrap"); count = x; setActive(count); slideList.style.left = "-" + (count * 960) + "px" ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clickOnThumbnail() {\n\tgetPhotoUrl($(this));\n\t$container.append($photoviewer.append($photoBox).append($caption));\n\t$photoBox.after($leftClick);\n\t$photoBox.before($rightClick);\n\t$(\"html\").css(\"background\",\"gray\");\n\t//All other images are not visible\n\t$(\".thumbnail\").addClass(\"greyed-o...
[ "0.82402754", "0.803243", "0.7442559", "0.7432916", "0.7392508", "0.72833747", "0.70822805", "0.706288", "0.6965943", "0.68616736", "0.6857754", "0.6825375", "0.6814941", "0.66881007", "0.6642621", "0.6642069", "0.65281916", "0.6517574", "0.6501546", "0.6479023", "0.64470035"...
0.0
-1
Calls super, so does not need extra documentation
Show(layer) { if (this.COLLIDER != undefined) this.COLLIDER.Enable(); return super.Show(layer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "construct...
[ "0.68080837", "0.68080837", "0.68080837", "0.68080837", "0.68080837", "0.6794059", "0.6725776", "0.662338", "0.6606371", "0.65547246", "0.65543044", "0.65543044", "0.65543044", "0.65412605", "0.6511417", "0.6511417", "0.6511417", "0.6511417", "0.6511417", "0.6511417", "0.6511...
0.0
-1
Calls super, so does not need extra documentation
Hide() { if (this.COLLIDER != undefined) this.COLLIDER.Disable(); return super.Hide(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "constructor(doc) {\n super(doc);\n }", "construct...
[ "0.6808747", "0.6808747", "0.6808747", "0.6808747", "0.6808747", "0.67943656", "0.67260385", "0.6622355", "0.66064745", "0.6554227", "0.6554227", "0.6554227", "0.6553801", "0.6541267", "0.6511405", "0.6511405", "0.6511405", "0.6511405", "0.6511405", "0.6511405", "0.6511405", ...
0.0
-1
Removes the GameObject's Collider.
ClearCollider() { if (this.COLLIDER == undefined) return; this.COLLIDER.Disable(); this.COLLIDER = undefined; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeCollider(obj) {\n let i = this.colliders.indexOf(obj);\n if (i === -1) {\n console.error('Collider not found: ', obj);\n } else {\n this.colliders.splice(i, 1);\n }\n }", "impact() {\n stage.remove(this);\n }", "removeColliders() {\r\n\t\t\tthis._collides = {};\r\...
[ "0.68605167", "0.638354", "0.616555", "0.6133953", "0.60600305", "0.5985177", "0.5939404", "0.5937959", "0.5888441", "0.58188087", "0.5751696", "0.5749606", "0.57442635", "0.56715626", "0.5628912", "0.5620391", "0.5619774", "0.5617374", "0.5609369", "0.55947983", "0.5583597",...
0.6445542
1
Clears the current Animation and restores the Sprite.
ClearAnimation() { this.ANIMATION = undefined; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stopAnimation() {\n reset();\n sprite.gotoAndStop(sprite.currentFrame);\n }", "clear (sprite) {\n this.context.clearRect(0, 0, sprite.stageWidth, sprite.stageHeight)\n }", "setSprite(state) {\n this.sprite.animationTime = 0;\n this.sprite.animationFrame = 0;\n }", "...
[ "0.7289597", "0.6968241", "0.68054503", "0.6760467", "0.6738986", "0.64497805", "0.6429406", "0.63890654", "0.63622344", "0.6355127", "0.62300223", "0.6223996", "0.6217925", "0.6186772", "0.6186619", "0.61777073", "0.61777073", "0.61777073", "0.61777073", "0.6158718", "0.6158...
0.6372088
8
Hides the current color overlay on the GameObject.
HideColorOverlay() { this.SPRITE.HideColorOverlay(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hide() {\n super.hide();\n this.overlay.classList.add(\"hidden\");\n unblurBaseElements(this);\n }", "function hide() {\n colorPickerStroke.style.display = \"none\";\n}", "function hideOverlay() {\n getId('levelOverlay').style.display = \"none\";\n getId('quitOverlay').style.display = \"none...
[ "0.69702566", "0.65631354", "0.6562118", "0.64815027", "0.6466974", "0.64334536", "0.6430805", "0.63782847", "0.6361917", "0.63577145", "0.6324427", "0.62673855", "0.6248547", "0.6184589", "0.6182525", "0.61559594", "0.6152021", "0.61453545", "0.6124857", "0.6118091", "0.6102...
0.72214615
0
Clears the draws callback function being looped.
ClearDraws() { this.DRAWS = undefined; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearCanvas() {\n}", "function clear() {\n //this line starts an animation loop\n const animationLoop = requestAnimationFrame(clear);\n //this line clears our canvas\n c.clearRect(0, 0, 608, 608)\n //this line stops our animation loop\n cancelAnimationFrame(anim...
[ "0.741263", "0.732794", "0.71705335", "0.71350574", "0.7132375", "0.7130862", "0.7128928", "0.7077666", "0.70708627", "0.70648414", "0.7035353", "0.7032563", "0.7017956", "0.7005632", "0.69927484", "0.6982952", "0.695272", "0.6941036", "0.6922", "0.6910238", "0.69095606", "...
0.0
-1
Clears the pre draws callback function being looped.
ClearPreDraws() { this.PRE_DRAWS = undefined; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _reset() {\r\n it = 0;\r\n redraw();\r\n looping == false ? noLoop() : 0;\r\n}", "function clearDrawings() {\n if ($(\"#drawing_pen\").hasClass(\"pen_image_selected\")) {\n handleOpenPen();\n }\n if ($(\"#drawing_eraser\").hasClass(\"eraser_image_selected\"))\n {\n handleO...
[ "0.71388924", "0.7080722", "0.6999061", "0.6987671", "0.6981557", "0.691182", "0.688017", "0.6860339", "0.6845946", "0.6844506", "0.6835462", "0.67813176", "0.67754894", "0.67744815", "0.675457", "0.6743951", "0.67415804", "0.672206", "0.67119634", "0.67007107", "0.66902816",...
0.6696709
20
Removes all mouse click event listeners.
ClearMouse() { for (let i = 0; i < this.CLICK_ID.length; i++) this.RemoveMouse(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeAllListeners() {\n\t\tfor (let i = 0; i < this.eventHandles_.length; i++) {\n\t\t\tthis.eventHandles_[i].removeListener();\n\t\t}\n\n\t\tthis.eventHandles_ = [];\n\t}", "removeAllListeners() {\n this.click = [];\n this.drag = [];\n this.dragStart = [];\n this.dragEnd = [];\n ...
[ "0.74519753", "0.74159956", "0.7396813", "0.7293672", "0.72709566", "0.72446704", "0.72196", "0.72137207", "0.71579045", "0.71393985", "0.7139193", "0.7139193", "0.7139193", "0.7139193", "0.712138", "0.7101257", "0.70924956", "0.7071935", "0.7033622", "0.7030956", "0.70298606...
0.7308719
3
Removes the on mouse hover update callback.
RemoveHover() { this.ON_HOVER = undefined; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hoverPlyr() {\n // Remove hover listener to avoid recall hover state.\n this.container.removeEventListener('mouseover', this.hoverPlyrHandler, false);\n this.startPlyr(true);\n }", "onMouseOut_() {\n this.updateHoverStying_(false);\n }", "RemoveHoverDraw() {\n this.ON_HOVER_D...
[ "0.7489795", "0.7429592", "0.72469807", "0.71545315", "0.712657", "0.70728004", "0.672507", "0.6716324", "0.66749775", "0.6671767", "0.65618527", "0.6547147", "0.6544354", "0.6534757", "0.65317947", "0.6531122", "0.6523577", "0.6487958", "0.6461634", "0.64031297", "0.6392825"...
0.70719
6
Removes the on mouse hover draw callback.
RemoveHoverDraw() { this.ON_HOVER_DRAW = undefined; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hoverOutCanvas() {\n onMouseUp();\n canvas.unmousedown(onMouseDown);\n }", "_onPointerOut() {\n this.removeState(\"hovered\");\n }", "hoverPlyr() {\n // Remove hover listener to avoid recall hover state.\n this.container.removeEventListener('mouseover', this.hove...
[ "0.72869116", "0.70643544", "0.69670314", "0.6913418", "0.6855067", "0.6836191", "0.6836191", "0.6787628", "0.6769392", "0.6686596", "0.66005796", "0.65774816", "0.656828", "0.6547504", "0.65120065", "0.6498682", "0.6496201", "0.6490332", "0.6483231", "0.646076", "0.64127576"...
0.80935067
0
Initializes a new instance of the [AtPathResolver](xref:botbuilderdialogs.AtPathResolver) class.
constructor() { super('@', ''); this._prefix = 'turn.recognized.entities.'; this._delims = ['.', '[']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RoutePathsParser(xml) {\n try {\n this.docTypeJson = $.xml2json(xml);\n this.routePaths = this.docTypeJson.documentType.routePaths.routePath;\n }\n catch(e) {\n console.log('xml is not valid');\n console.log(e);\n }\n }", "function PathMapper() {\n\t}", "function PathM...
[ "0.5716911", "0.5473649", "0.5473649", "0.5467378", "0.53375274", "0.5322939", "0.5156471", "0.50805765", "0.5037059", "0.50248426", "0.49991012", "0.49890745", "0.49875543", "0.49143735", "0.49052975", "0.4840669", "0.48119313", "0.47880667", "0.47867173", "0.4783845", "0.47...
0.0
-1
[EditByRan] Implement the mustplayrank feature. [EditByRan] Implement the "ChaoDiPi" feature.
renderRoundStartPanel() { const { aiControllers, humanControllers, playerNames, playerReadyForPlay, myPlayerId, isEditingPlayers, playerIds, numDecks, findAFriend, mustPlay5, mustPlay10, mustPlayK, chaoDiPi, playerRankScores, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "changeRank(rank) {\n this.rank = rank;\n }", "function setRanking ()\r\n {\r\n if (Score > 49)\r\n {\r\n \r\n $(\"#rank\").text(\"Votre rang : Chanceux\");\r\n }\r\n \r\n \r\n if (Score > 149)\r\n {\r\n ...
[ "0.6415817", "0.6040892", "0.6038077", "0.59718835", "0.5918903", "0.5911021", "0.5867236", "0.58240193", "0.5823787", "0.5787346", "0.57547283", "0.5754132", "0.5751932", "0.5747992", "0.5694657", "0.5665561", "0.56132644", "0.56009436", "0.55614406", "0.5557252", "0.5555920...
0.5244989
62
[EditByRan] Implement the mustplayrank feature. [EditByRan] Implement the "ChaoDiPi" feature.
renderGameInfo() { const {playerNames, myPlayerId, playerIds, numDecks, findAFriend, mustPlay5, mustPlay10, mustPlayK, chaoDiPi, playerRankScores, playerRankCycles, status} = this.state; if (status === 'START_ROUND') { return; // all info is already shown in the round start panel } // [EditByRan] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "changeRank(rank) {\n this.rank = rank;\n }", "function setRanking ()\r\n {\r\n if (Score > 49)\r\n {\r\n \r\n $(\"#rank\").text(\"Votre rang : Chanceux\");\r\n }\r\n \r\n \r\n if (Score > 149)\r\n {\r\n ...
[ "0.6413258", "0.60395825", "0.6037945", "0.59684575", "0.59159386", "0.5907666", "0.5862611", "0.58239096", "0.5823199", "0.5784917", "0.5751714", "0.57514083", "0.57479185", "0.5747407", "0.569264", "0.5663514", "0.56121755", "0.559971", "0.55578953", "0.5554169", "0.5552515...
0.0
-1
[EditByRan] Implement the mustplayrank feature. [EditByRan] Implement the "ChaoDiPi" feature.
renderPlayerNames() { const { playerNames, myPlayerId, playerIds, findAFriend, mustPlay5, mustPlay10, mustPlayK, chaoDiPi, status, currentPlayerIndex, isDeclaringTeam, currentRoundScores, } = this.state; if (status === 'START_ROUND') { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "changeRank(rank) {\n this.rank = rank;\n }", "function setRanking ()\r\n {\r\n if (Score > 49)\r\n {\r\n \r\n $(\"#rank\").text(\"Votre rang : Chanceux\");\r\n }\r\n \r\n \r\n if (Score > 149)\r\n {\r\n ...
[ "0.6415037", "0.6041228", "0.6038791", "0.5971343", "0.59182495", "0.5909451", "0.5865584", "0.58248276", "0.58235294", "0.5786085", "0.5752838", "0.5751725", "0.57515824", "0.5747323", "0.5693264", "0.5664495", "0.56138283", "0.5598559", "0.55601496", "0.5556944", "0.5555443...
0.0
-1
[EditByRan] Add kittyOwnerIndex, declaredCards
renderNotifications() { const { aiControllers, humanControllers, playerNames, playerReadyForPlay, myPlayerId, notifications, confirmSpecialPlayCards, playerIds, kittySize, status, kittyOwnerIndex, currentPlayerIndex, declaredCards, } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addNewCards(index) { // set index to 0 for first run, use total cards in matrix to determine index for each addition afterwards\n let slicedCards;\n let num = this.deck.length - index + 1;\n if (this.deck.length - index + 1 < 15 ) {\n slicedCards = this.deck.slice(index, index+num);...
[ "0.6011377", "0.5789351", "0.57792896", "0.5770922", "0.5767699", "0.5711592", "0.5648957", "0.56475204", "0.56405914", "0.56068915", "0.5582702", "0.558199", "0.5577788", "0.55767614", "0.55603725", "0.55603725", "0.549746", "0.5480457", "0.5476155", "0.5448541", "0.5443592"...
0.0
-1
[EditByRan] Add kittyOwnerIndex, declaredCards
renderActionButton() { const { humanControllers, myPlayerId, selectedCardIds, playerIds, kittySize, kittyOwnerIndex, currentPlayerIndex, status, declaredCards, kitty, playerReadyForPlay, } = this.state; if (playerIds.indexOf(myPlayerId) === ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addNewCards(index) { // set index to 0 for first run, use total cards in matrix to determine index for each addition afterwards\n let slicedCards;\n let num = this.deck.length - index + 1;\n if (this.deck.length - index + 1 < 15 ) {\n slicedCards = this.deck.slice(index, index+num);...
[ "0.60130316", "0.57894117", "0.57798", "0.57692826", "0.5766549", "0.57105154", "0.56467545", "0.56464344", "0.56394714", "0.5605715", "0.5582354", "0.55804443", "0.55775124", "0.55763215", "0.5558928", "0.5558928", "0.5497738", "0.54796124", "0.5474686", "0.5447521", "0.5442...
0.518517
46
[EditByRan] Only the kittyOwnerIndex can view the kitty
renderKitty() { const { myPlayerId, playerIds, kittyOwnerIndex, status, cardsById, kitty } = this.state; return <Kitty myPlayerId={myPlayerId} playerIds={playerIds} kittyOwnerIndex={kittyOwnerIndex} status={status} cardsById={cardsById} kitty={kitty} />; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function canEditOwner() {\n // If this is an archived playbook, don't allow anyone to edit it.\n if (vm.current.details.isArchived === true) {\n return;\n }\n\n if (vm.current.details.isOwnedByMe === true) {\n vm.current.details.canEditOwner...
[ "0.6213654", "0.5736785", "0.5733839", "0.5715174", "0.55547595", "0.5515034", "0.549114", "0.5292182", "0.5291491", "0.5287109", "0.5202976", "0.517516", "0.510002", "0.5096831", "0.50954634", "0.5075354", "0.5075354", "0.5075354", "0.5075354", "0.5075354", "0.5075354", "0...
0.45407522
92
The default page title
static get title() { return 'Oops! You weren\'t supposed to see this...'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPageTitle () {\n return title;\n }", "function getTitle() {\n try {\n var title = document.title;\n console.log(\"status pass : Current page title is \", title);\n return title;\n } catch (err) {\n console.log(err);\n }\n}", "setTitle(title) {\r\n ...
[ "0.77639556", "0.7432404", "0.7424744", "0.74083865", "0.7323298", "0.73139364", "0.72550994", "0.7252824", "0.7195652", "0.7163344", "0.70852333", "0.70790356", "0.70625645", "0.7053047", "0.7053047", "0.7043717", "0.70358104", "0.70079494", "0.69836056", "0.69775224", "0.69...
0.6638647
50
Build the shape based on the kind of the click
function canvasEvent(stage, event) { var coords = getCanvasCoords(event); canvasDom.requestPointerLock(); var hits = checkHits(mouse); if (hits.length == 0) return false; var splatGenerator; switch (event.type) { case "click": var alt = 0, shift = 0, ctrl = 0; alt ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CreateShape(proto, color, x, y, shouldrepeat) {\n shouldrepeat = typeof shouldrepeat !== 'undefined' ? shouldrepeat : true;\n // triangle is size 80\n // medium side is same side as hypotenus:\n // sqrt(2*80^2) = 113.137 ~= 113\n\n // square same size as small triangle = 80\n // para ...
[ "0.6417905", "0.6274759", "0.6217697", "0.61912024", "0.61583143", "0.61374694", "0.60590154", "0.5986113", "0.5982787", "0.5963331", "0.5893206", "0.58831024", "0.5867411", "0.583959", "0.583667", "0.5814509", "0.58140814", "0.5807589", "0.58027124", "0.5766455", "0.575035",...
0.0
-1
list of roaches hit by hitting at argument.
function checkHits(coords) { var hits = Object.values(roaches).filter(function(x){ return Math.abs(x.x - coords.x) + Math.abs(x.y - coords.y) < HITBOX; }); return hits; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "walkableRange(start, speed) {\n let range = this.findRange(start, speed);\n let walkableRange = []\n let walkableMap = this.dontTreadOnMe();\n range.forEach(test => {\n if (walkableMap[test[0]-1][test[1]-1] === 0) {\n // easyAStar objects\n const...
[ "0.56729645", "0.5526213", "0.5512354", "0.54054636", "0.53560156", "0.5354882", "0.52707636", "0.52163047", "0.51563966", "0.5121895", "0.50382674", "0.5003006", "0.49833357", "0.49833357", "0.49570686", "0.49467853", "0.49271318", "0.4920941", "0.4895761", "0.48873135", "0....
0.5895633
0
newly added , check the framework in the reader
toggleLike() { const { _id, liked } = this.props this.props.onChange(_id, { liked: !liked}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "function checkFileAPI() {\r\n if (window.File && window.FileReader && window.FileList && window.Blob) {\r\n reader = new FileReader();\r\n return true; \r\n } else {\r\n alert('The File APIs are ...
[ "0.6184033", "0.5749005", "0.5738294", "0.568155", "0.56512094", "0.5634813", "0.5598369", "0.5594705", "0.5561478", "0.5455429", "0.54490924", "0.54288286", "0.54023993", "0.5388599", "0.5388599", "0.5385459", "0.53216136", "0.53216136", "0.53194636", "0.53149295", "0.530783...
0.0
-1
Import content for all the labors
async function importLabors() { const module = game.modules.get("<module_name>"); let scenes = null; let actors = null; for ( let p of module.packs ) { const pack = game.packs.get("<module_name>."+p.name); if ( p.entity !== "Playlist" ) await pack.importAll(); else { const music = await pack.getContent();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadJobLabors()\n\t{\n\t\t//Get all jobs id\n\t\tvar count = 0, ids = \"\", sizeValue = \"\";\n\t\t\n\t\tcount = dsJob.getCount();\n\t\tsizeValue = size.getRawValue();\n\t\t\n\t\tfor (var i = 0; i < count; i++)\n\t\t{\n\t\t\trecord = dsJob.getAt(i);\n\t\t\t\t\t\t\n\t\t\tids += \"\" + record.get('id_job') ...
[ "0.60959655", "0.591229", "0.56262994", "0.56176347", "0.55119663", "0.5506472", "0.5498111", "0.548739", "0.54140216", "0.53945214", "0.53919446", "0.53823096", "0.532794", "0.5325309", "0.5273317", "0.526476", "0.525298", "0.52366966", "0.5235247", "0.52298737", "0.52224493...
0.6835322
0
function to add new user to database
static async addUser(req, res) { try { let { error } = await validateUser(req.body); if (error) return res.status(200).json({ msg: error.details[0].message, error: true }); let user = await User.findOne({ email: req.body.email }); if (user) return res.status(200)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addUser() {\n var user = {\n primaryEmail: 'liz@example.com',\n name: {\n givenName: 'Elizabeth',\n familyName: 'Smith'\n },\n // Generate a random password string.\n password: Math.random().toString(36)\n };\n user = AdminDirectory.Users.insert(user);\n Logger.log('User %s cr...
[ "0.8377448", "0.8361778", "0.8151816", "0.80174035", "0.8012558", "0.8005031", "0.7886982", "0.78032243", "0.77821815", "0.77668625", "0.7734356", "0.7731938", "0.77315265", "0.76916903", "0.7654663", "0.75368863", "0.75187194", "0.7505958", "0.75022984", "0.74877435", "0.747...
0.0
-1
function to login existing user.
static async loginUser(req, res) { try { let user = await User.findOne({ email: req.body.email }); if (!user) return res.status(200).json({ msg: 'Incorrect email ID.', error: true }); const validPassword = await bcrypt.compare(req.body.password, user.password); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function login() {\n User.login(self.user, handleLogin);\n }", "function u_login(ctx, email, password, uh, permanent) {\n ctx.result = u_login2;\n ctx.permanent = permanent;\n api_getsid(ctx, email, prepare_key_pw(password), uh);\n}", "function login() {}", "function login(req, res) {\n var q...
[ "0.7586954", "0.7350822", "0.7322813", "0.7194957", "0.717977", "0.71783894", "0.6991992", "0.6972164", "0.6971834", "0.6967994", "0.6932241", "0.69235146", "0.6921762", "0.69154054", "0.68671596", "0.6842001", "0.68194085", "0.67724335", "0.67557883", "0.67506874", "0.674130...
0.0
-1
^^^ returns true ^^^ ES6 end Sample validation start
function Field(value) { this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isValid() {\n return true;\n }", "isValid() {\n return true;\n }", "async validate() {\n return true\n }", "validate() {}", "validate() { }", "valid() {\r\n return true\r\n }", "valid() {\n return true\n }", "validate() {\n const valid = this.required ? this.has...
[ "0.7859791", "0.7859791", "0.765403", "0.74124116", "0.73695433", "0.7332633", "0.7323781", "0.7253013", "0.70945823", "0.70759225", "0.70396584", "0.7018357", "0.70174944", "0.70174944", "0.6958437", "0.69350255", "0.6929813", "0.69153535", "0.68515205", "0.6818999", "0.6804...
0.0
-1
create client according to type.
createClient() { switch (this.config.type) { case 'azureBlob': return new __1.AzureBlobClient(this.config); default: throw new Error(`NotImplemented`); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static create(id, password, type, firstname, lastname, nationality, gender, phonenumber) {\n const client = new Client(id, password, type, firstname, lastname, nationality, gender, phonenumber);\n Client.map.set(client.id, client);\n return client;\n }", "static createClientApi(profile) {...
[ "0.71314526", "0.6701919", "0.65293115", "0.6377598", "0.63056153", "0.6300871", "0.61728793", "0.5939658", "0.58814806", "0.5838001", "0.5837451", "0.5729504", "0.5726547", "0.57039833", "0.56623614", "0.5644939", "0.55764025", "0.55761045", "0.55620164", "0.5524823", "0.548...
0.673229
1
handle folder opation if this.client has corresponding folder operation, use it otherwise implement it recursively
async uploadFolder(localPath, remotePath, opts) { if (this.client.uploadFolder) { return this.client.uploadFolder(localPath, remotePath, opts); } else { // TODO: handle upload recursively here throw new Error('Method not implemented.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "folderService(rawData,pathArr,count,data,opFlag,complete,enVal,type,slf){\n var fName;\n for(var i=0; i<rawData.length; i++)\n {\n if(rawData[i] && rawData[i].folderName===pathArr[count] && complete.val){\n if(count===pathArr.length-1){\n if(type===...
[ "0.7361005", "0.6651129", "0.6397719", "0.61852276", "0.6170534", "0.6099462", "0.60938126", "0.60351586", "0.59451723", "0.59419036", "0.5916899", "0.59042186", "0.5902924", "0.58696795", "0.5845541", "0.5798184", "0.5759054", "0.57471454", "0.5733838", "0.57250047", "0.5717...
0.5122151
100
METODOS PUBLICOS NUEVA INTERFAZ PARA REPRODUCIONES 04/2018
function obtenerReproducciones(){ return ($q.when( reproducciones_tbl )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function IndicadorRangoEdad () {}", "function infoGastosEnvio(){\n let compruebaPrime = true;\n for (propiedades in carrito){\n compruebaPrime = compruebaPrime && carrito[propiedades].premium;\n }\n let gastosInfo = compruebaPrime ? infoEnvio2 : infoEnvio1;\n return gastosInfo;\n}", ...
[ "0.6125104", "0.5904706", "0.5866312", "0.5817704", "0.5804371", "0.5780463", "0.57199925", "0.5718637", "0.57157224", "0.5699632", "0.56944215", "0.56928974", "0.5657487", "0.5652233", "0.5613946", "0.56111467", "0.56094664", "0.56094664", "0.55974597", "0.5596554", "0.55918...
0.0
-1
nueva_reproduccion es un objeto con tres propiedades que son objetos: > .reproduccion_encab: fecha, archivo entrada/salida y version, descripcion > .reproduccion_nota: eso, notas > .resultados_obtenidos: un objeto cuyas propiedades son los resultados esperados, y el estado(1,0,1): negativo, positivo, pendiente.
function guardarReproduccion_old ( reproduccion ){ return $q.when( reproduccion ) //.then( buscarLibroEnBiblioteca ) //Si ya existe el registro, no guardar nada. .then( generarIdReproduccion ) //Generar el id que se usara para el registro en la DB ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ActualizarParametrosRecibidor(Parametros,ParametrosTresHoras,flgPrimeraVez)\n{\n\tconsole.log(\"ActualizarParametrosRecibidor\\n\");\n\tActualizarFooter(Parametros);\n\tvar objeto;\n\tfor (x=0;x<tabla_objetos.length;x++)\n\t{\n\t\tobjeto=tabla_objetos[x];\n\t\tobjeto.ProcesaDatos(Parametros,ParametrosTres...
[ "0.58059967", "0.5720216", "0.57100713", "0.5690623", "0.5678287", "0.5670981", "0.56584674", "0.5637488", "0.56148386", "0.558161", "0.5568132", "0.5566128", "0.55552846", "0.55530554", "0.5519375", "0.5505204", "0.5504897", "0.54842824", "0.5477824", "0.5477202", "0.5467739...
0.565002
7
When the component will dismount ( switch discussion / close conversations ) disconnect the socket
componentWillUnmount() { if(this.client !== null) { this.client.disconnect(); this.client = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentWillUnmount() {\n this.socket.disconnect();\n }", "componentWillUnmount(){\n this.socket.disconnect();\n }", "disconnect() {\n console.log('Disconnecting...');\n\n // Wait a few seconds so potential messages can be sent before socket is closed\n setTimeout(() => {\n this....
[ "0.7778261", "0.775401", "0.7740464", "0.7721336", "0.7717315", "0.7643466", "0.7605847", "0.7584154", "0.7556474", "0.75131047", "0.75099117", "0.74921036", "0.7469949", "0.74363863", "0.74023545", "0.74023545", "0.738861", "0.7335626", "0.7331812", "0.7304954", "0.7304694",...
0.7196793
39
On first load of the conversation ( Opening conversations ) Load the messages and connect the websocket
componentDidMount() { this.connect() this.loadMessages() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "initialiseChat() {\n this.waitForSocketConnection(() => {\n WebSocketInstance.fetchMessages(\n this.props.username,\n this.props.chat.chatId\n );\n });\n WebSocketInstance.connect(this.props.chat.chatId);\n }", "function initChatroom() {\n getServerUrl()\n .then(result => ...
[ "0.7686266", "0.67484415", "0.66336507", "0.66074413", "0.6584654", "0.65757376", "0.6567229", "0.65423197", "0.6524847", "0.636247", "0.63594896", "0.6356183", "0.63550323", "0.63178325", "0.6312719", "0.63111717", "0.6300396", "0.6287001", "0.6272922", "0.6250065", "0.62461...
0.6267146
19
The component is updated ( The user has switched between conversation )
componentDidUpdate(prevProps, prevState, snapshot) { //avoid infinite looping if(this.props.conversation.participants !== prevProps.conversation.participants) { this.setState({ sender:this.props.participants[this.state.currentUser], recipient:this.pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentDidUpdate(prevProps) {\n // Have we selected a user different to that which is displayed in the current Conversation component?\n // This runs after our component's state has updated (or when we have picked a new user in our chat list)\n\n if (prevProps.newSelectedUser === null || (th...
[ "0.7130377", "0.65483814", "0.6419094", "0.63613945", "0.62237656", "0.6182017", "0.6155855", "0.6132567", "0.612476", "0.6121164", "0.61070144", "0.6094429", "0.60415405", "0.6038421", "0.6035909", "0.60336226", "0.6019659", "0.60090286", "0.6000524", "0.599997", "0.59973", ...
0.6552825
1
Connect the web socket
connect() { //disconect before if(this.client !== null ) { this.client.disconnect(); this.client = null; } if(this.socket !== null) { this.socket.close(); this.socket = null; } //conenct to the websocket...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "connect () {\n /* Connect our websocket */\n this._ws = new WebSocket(this.uri, {\n origin: 'https://www.multiplayerpiano.com',\n agent: this.proxy ? this.proxy.startsWith('socks') ? new SocksProxyAgent(this.proxy) : new HttpsProxyAgent(this.proxy) : undefined\n })\n\n this._constructSocketLi...
[ "0.815789", "0.80947", "0.79991776", "0.7928399", "0.7883838", "0.7853938", "0.7838196", "0.7818087", "0.78022027", "0.7754418", "0.77292514", "0.77198064", "0.7716224", "0.76983815", "0.76684564", "0.76604086", "0.76391196", "0.7626908", "0.7625359", "0.76162714", "0.7556191...
0.69966996
58
Loads the all the messages from the current conversation
loadMessages( ) { //Where to look to get all messages related to the conversation let endpoint = "/loans/conversations/"+this.props.conversation.id+"/"+this.props.conversation.loan+"/messages/"; this.setState({messageList:[]}) //send the request to the API sendEzApiRequest(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadMessages(){\n\t\tvar query = Chat2.find({ room:numRoom });\n\t\tquery\n\t\t\t.sort('created') //'-created' is DESC 'created is ASC'\n\t\t\t.limit(1000). //last 1000 messages only!\n\t\t\texec(function(err, docs){\n\t\t\tif(err) throw err;\n\t\t\tconsole.log('Enviando mensajes antiguos de la room '+num...
[ "0.7518321", "0.74733335", "0.735519", "0.722962", "0.71185225", "0.7032303", "0.70012355", "0.69968253", "0.6986768", "0.69649875", "0.6947327", "0.6919598", "0.68978107", "0.689053", "0.6870176", "0.6870176", "0.67654765", "0.6753857", "0.6712889", "0.6694643", "0.669261", ...
0.6687574
21
Display the message into the conversation
showMessageOutput(output) { let recipient = this.props.participants.get(this.props.currentUser); let sender = this.props.participants.get(recipient) let messages = null if(output.sender === sender) { messages = ( <li className="list-group-item te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayMessage(message) {\n\tconsole.log('------------------------------');\n\tconsole.log(motivationalMessage.statement);\n\tconsole.log('\\n');\n\tconsole.log('Your quote of the day:' + '\\n' + ` ${motivationalMessage.quote}`);\n\tconsole.log('\\n');\n\tconsole.log('Your challenge for the day:' + '\...
[ "0.7161737", "0.7031494", "0.6921737", "0.6902457", "0.68230844", "0.6796538", "0.67743284", "0.67690593", "0.6749296", "0.67181826", "0.6713422", "0.6710498", "0.66900134", "0.6683546", "0.66699964", "0.6650451", "0.6627477", "0.65713334", "0.6552679", "0.65491027", "0.65101...
0.0
-1
Send the message via websocket to the correct destination
sendMessage(content_message) { let recipient = this.props.participants.get(this.props.currentUser); let sender = this.props.participants.get(recipient) let message = { content : content_message, recipient : recipient, sender: sender, fkConve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "send(message) {\n this.log(\"Sending message: \"+message);\n this.ws.send(message);\n }", "function doSend(message) {\n console.log(\"Sending: \" + message);\n websocket.send(message);\n}", "function send(msg) {\n ws.send( msg );\n }", "function wsSend(msg) {\n ws.send(JSON.stringify(ms...
[ "0.72985065", "0.72519016", "0.7201084", "0.7157413", "0.7153818", "0.7109912", "0.7084582", "0.7074919", "0.7026305", "0.70021147", "0.6970805", "0.6945244", "0.6904562", "0.68917274", "0.6867366", "0.6857615", "0.68428403", "0.6816655", "0.6796147", "0.6796147", "0.6796147"...
0.0
-1
issues: something is off with the computers unit choices & gold tally at end of round units still attack after being destroyed ProgressBar component is trying to update state after it's dismounted thoughts: at the moment clicking space in computer row places selected unit in player row in the same column/row (not oppos...
function App() { const [selectedUnit, setSelectedUnit] = useState(0); const [roundStarted, setRoundStarted] = useState(false); const [computersTurn, setComputersTurn] = useState(true); const [playerUnitElements, setPlayerUnitElements] = useState([]); const [computerUnitElements, setComputerUnitElements] = use...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function unit_select(value){\n play_sound(\"./sound/what.mp3\");\n // check if another unit has already been selected before this one has\n if (another_unit_is_selected === 1){ // so this only seems to activate when touching your own units...thus a major problem\n another_unit_is_selected = 0;\n unit_sele...
[ "0.63757795", "0.6039348", "0.6028465", "0.6022732", "0.5875337", "0.58370304", "0.5826392", "0.5818086", "0.58094376", "0.58083487", "0.5787093", "0.57766676", "0.57427716", "0.5733705", "0.5717441", "0.57049465", "0.5697102", "0.5696125", "0.56802255", "0.56448966", "0.5583...
0.6277014
1
closuer : function bind together within its lexical scope
function x () { var a = 17 function y () { console.log(a) } y() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function simpleBind(context,fn){return function(value){fn.call(context,value);};}", "function simpleBind(context, fn) { // 14775\n return function(value) { ...
[ "0.69884276", "0.6854525", "0.6742473", "0.66914874", "0.6440097", "0.62911063", "0.6243552", "0.62190646", "0.62004864", "0.61875534", "0.6169761", "0.615183", "0.61490864", "0.6148373", "0.6137556", "0.6137556", "0.6137556", "0.6137556", "0.6137556", "0.6137556", "0.6137556...
0.0
-1
changing the mellow default path, to the url path used in the app
function _setPath (path) { path = path.replace('\\/', '/'); path = path.replace(':', ''); path = path.replace('\\', '/'); return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get url() {return '/';}", "function getMyBasepath(uri) {\r\n return 'app/views/appViews/' + uri;\r\n}", "function modifyTourUri(){\n\t\tserverUri = Parameters.getTourServerUri() + \"/path\";\n\t}", "receiveContentProps({ path }) {\n this.rootUrl = `/${path}`;\n }", "worldUrl() {\n return this.serve...
[ "0.60882324", "0.5973909", "0.5964129", "0.5939799", "0.59234315", "0.5919153", "0.5906851", "0.5848385", "0.5848385", "0.58373314", "0.57865846", "0.5783633", "0.5778641", "0.57311684", "0.57163537", "0.57163537", "0.5679982", "0.5607843", "0.5605435", "0.5591782", "0.558853...
0.0
-1
Okay, lots of cleanup! First, I've created a vector object and function for making new vectors which more closely mirrors the Nature of Code examples.
function Vector(x_,y_) { this.x = x_; this.y = y_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sc_vector() {\n var a = new sc_Vector();\n for (var i = 0; i < arguments.length; i++)\n\ta.push(arguments[i]);\n return a;\n}", "function vector() {\n return new Vector([].slice.call(arguments));\n }", "function vector() {\n var array = [];\n\n return {\n get: f...
[ "0.7358112", "0.7015466", "0.6948974", "0.69375736", "0.6925427", "0.69068027", "0.68982947", "0.68015635", "0.6501418", "0.641666", "0.63632554", "0.6342297", "0.6342058", "0.6306788", "0.62421405", "0.62251073", "0.62204367", "0.621587", "0.62125385", "0.62100387", "0.62039...
0.6273173
14