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
NavigationController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function ItemController($scope, $location, applicationState, Choko) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RegionController($scope, $location, applicationState, Choko) {\n}", "function NavigationController($scope, $location, $window, applicationState, Choko) {\n $scope.panel.classes.unshift('nav');\n\n $scope.isAbsolute = function(url) {\n return /^(?:[a-z]+:)?\\/\\//i.test(url);\n };\n\n $scope.goTo ...
[ "0.78051883", "0.7767136", "0.72502744", "0.7225959", "0.7116872", "0.66673994", "0.6589498", "0.6377246", "0.6373706", "0.634591", "0.63198715", "0.63018644", "0.6279325", "0.62726897", "0.626703", "0.6266336", "0.62528384", "0.6143011", "0.6131771", "0.6108998", "0.6071745"...
0.77649856
2
ItemController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function DisplayRegionController($scope, $location, applicationState, Choko) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function AppController() {\n}", "function ListCtrl($scope,cartActions,TodoStore){\n $scope.addToCart=function(item){\n cartActions.addItem(item);...
[ "0.9295778", "0.79098636", "0.68591547", "0.6706079", "0.6597043", "0.6523147", "0.6510126", "0.6500869", "0.6425674", "0.6425674", "0.6374244", "0.63620764", "0.63564974", "0.63291013", "0.63048595", "0.62686044", "0.6262407", "0.62564284", "0.6250898", "0.6180792", "0.61757...
0.73528934
2
DisplayRegionController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function DisplayFieldController($scope, $location, applicationState, Choko) { $scope.field.template = $scope.field.template || '/templates/' + $scope.field.format + '.html'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DisplayRegionController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function ItemController($scope, $location, applicationState, Choko) {\n}", "function HelloController($scope, $location) {\n $scope.who = { text...
[ "0.9368284", "0.91927385", "0.7334243", "0.66497433", "0.64395547", "0.63980323", "0.6334014", "0.6311042", "0.6242769", "0.6188861", "0.6070913", "0.6043146", "0.6028638", "0.6019617", "0.5974673", "0.5966776", "0.5957473", "0.5932548", "0.59210175", "0.59057444", "0.5902875...
0.58429897
25
DisplayFieldController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function ReferenceElementController($scope, $location, applicationState, Choko) { Choko.get({type: $scope.element.reference.type}, function(response) { $scope.element.options = response; // Use radios if less then 5 options. $scope.fewOptions = ($scope.element.options && Object.keys($scope.element.option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DisplayRegionController($scope, $location, applicationState, Choko) {\n}", "function DisplayFieldController($scope, $location, applicationState, Choko) {\n $scope.field.template = $scope.field.template || '/templates/' + $scope.field.format + '.html';\n}", "function RegionController($scope, $location...
[ "0.7746184", "0.7602109", "0.7469156", "0.7381929", "0.6571393", "0.6502369", "0.64612687", "0.6354352", "0.63355005", "0.6264141", "0.62498474", "0.61808145", "0.60675013", "0.6063315", "0.60566324", "0.6036649", "0.60358614", "0.6026599", "0.6026599", "0.6021051", "0.599696...
0.0
-1
ReferenceElementController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function InlineReferenceElementController($scope, $location, applicationState, Choko) { var multiple = $scope.element.reference.multiple; // Subform errors are handled separately. $scope.errors = []; if (multiple) { // Initialize items container. if ($scope.data[$scope.element.name]) { $scope.it...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function ElementController($scope, $location, applicationState, Choko) {\n $scope.element.template = $scope.element.template || 'templates/' + $scope.elemen...
[ "0.8042413", "0.7754259", "0.72569615", "0.7137232", "0.6904882", "0.668657", "0.65459055", "0.64688283", "0.6453717", "0.6453717", "0.6436777", "0.6366646", "0.6361128", "0.63114697", "0.6307917", "0.6302347", "0.6181112", "0.61304927", "0.611261", "0.60675514", "0.60119927"...
0.0
-1
InlineReferenceElementController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function InlineReferenceElementItemController($scope, $filter, applicationState, Choko) { $scope.editItem = function() { $scope.setSubForm($scope.typeName(), !!$scope.element.reference.subtypes, $scope.item, $scope.key); }; $scope.typeName = function() { var typeName = $scope.element.reference.type; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function DisplayRegionController($scope, $location, applicationState, Choko) {\n}", "function ElementController($scope, $location, applicationState, Choko)...
[ "0.76200885", "0.73514307", "0.6964979", "0.68992805", "0.659951", "0.6369696", "0.6281713", "0.62782407", "0.62707734", "0.6233024", "0.6223791", "0.62008846", "0.61197513", "0.61102617", "0.6093446", "0.60581166", "0.60446197", "0.5996579", "0.5968263", "0.5968263", "0.5921...
0.6749455
4
InlineReferenceElementItemController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function ViewController($scope, $location, $http, applicationState, Choko) { // Handle 'list' type views. if ($scope.view.type === 'list' && $scope.view.itemType) { $scope.items = {}; Choko.get({type: $scope.view.itemType}, function(response) { $scope.items = response; }); if (!$scope.view.t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function InlineReferenceElementItemController($scope, $filter, applicationState, Choko) {\n\n $scope.editItem = function() {\n $scope.setSubForm($scope.t...
[ "0.8323033", "0.7371531", "0.7219219", "0.6990677", "0.67586076", "0.63330805", "0.63285446", "0.63049203", "0.62878", "0.62619734", "0.624928", "0.62202877", "0.61349326", "0.61180615", "0.6083252", "0.60684323", "0.6054636", "0.6054636", "0.6017476", "0.60030454", "0.600153...
0.53917456
75
ViewController.$inject = ['$scope', '$location', '$http', 'applicationState', 'Choko'];
function ElementController($scope, $location, applicationState, Choko) { $scope.element.template = $scope.element.template || 'templates/' + $scope.element.type + '.html'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function DisplayRegionController($scope, $location, applicationState, Choko) {\n}", "function HelloController($scope, $location) {\n $scope.who = { text...
[ "0.82000345", "0.7946694", "0.73634523", "0.7160515", "0.71217823", "0.7077152", "0.6949164", "0.68676835", "0.67811584", "0.67486", "0.6727762", "0.6661829", "0.6601854", "0.6578551", "0.65769035", "0.65659726", "0.65454334", "0.65241104", "0.6468716", "0.64467245", "0.64467...
0.612967
45
ElementController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function FileElementController($scope, $location, $upload, applicationState, Choko) { $scope.element.template = $scope.element.template || 'templates/' + $scope.element.type + '.html'; $scope.progress = 0; // Initialize files container. // @todo support multiple files. $scope.data[$scope.element.name] = $sco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function ElementController($scope, $location, applicationState, Choko) {\n $scope.element.template = $scope.element.template || 'templates/' + $scope.elemen...
[ "0.8102038", "0.7835497", "0.7501086", "0.7191185", "0.6843852", "0.6793558", "0.6793558", "0.677716", "0.6714024", "0.66949147", "0.6483549", "0.63970864", "0.6327118", "0.6285607", "0.62781197", "0.6259462", "0.6208506", "0.6181442", "0.61731964", "0.6150986", "0.6104142", ...
0.5818451
52
FileElementController.$inject = ['$scope', '$location', '$upload', 'applicationState', 'Choko'];
function SubElementController($scope, $location, applicationState, Choko) { $scope.subElement.template = $scope.subElement.template || 'templates/' + $scope.subElement.type + '.html'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function FileElementController($scope, $location, $upload, applicationState, Choko) {\n $scope.element.template = $scope.element.template || 'templates/' + $scope.element.type + '.html';\n $scope.progress = 0;\n\n // Initialize files container.\n // @todo support multiple files.\n $scope.data[$scope.element.n...
[ "0.8145983", "0.6845551", "0.65689623", "0.64350194", "0.634226", "0.63142407", "0.59984267", "0.59871006", "0.59608513", "0.5920097", "0.58734393", "0.5848555", "0.5848555", "0.5818876", "0.58185613", "0.575444", "0.5731345", "0.5729735", "0.57084095", "0.5620474", "0.555708...
0.57463056
16
SubElementController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function ButtonController($scope, $location, applicationState, Choko) { $scope.call = function(func, args) { $scope[func].apply(this, args); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function DisplayRegionController($scope, $location, applicationState, Choko) {\n}", "function ElementController($scope, $location, applicationState, Choko)...
[ "0.8335828", "0.8097348", "0.76381636", "0.6829423", "0.6816635", "0.6802611", "0.669858", "0.6633722", "0.66011924", "0.65018654", "0.64700425", "0.64461535", "0.64461535", "0.64239216", "0.6404835", "0.6366176", "0.6311423", "0.62771916", "0.6272754", "0.62531745", "0.62094...
0.6627661
8
ButtonController.$inject = ['$scope', '$location', 'applicationState', 'Choko'];
function WYSIWYGController($scope, $location, applicationState, Choko) { $scope.options = { height: $scope.element.height || 300, toolbar: [ ['style', ['style']], ['style', ['bold', 'italic', 'underline', 'clear']], ['para', ['ul', 'ol', 'paragraph']], ['insert', ['picture', 'link']], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ButtonController($scope, $location, applicationState, Choko) {\n $scope.call = function(func, args) {\n $scope[func].apply(this, args);\n };\n}", "function ItemController($scope, $location, applicationState, Choko) {\n}", "function RegionController($scope, $location, applicationState, Choko) {\n}...
[ "0.803728", "0.78711647", "0.7828674", "0.72077036", "0.6936736", "0.6644403", "0.65504956", "0.65096647", "0.64634943", "0.64156777", "0.64083034", "0.63553196", "0.6355095", "0.6333988", "0.6333988", "0.6245731", "0.62203485", "0.61957437", "0.61858857", "0.60766876", "0.60...
0.56769127
60
Look up events with API
search(app){ const myToken = '?token=LGQ5F3PAWYCTNMMA7MIH'; const root = 'https://www.eventbriteapi.com/v3/events/search/'; const params = { 'popular' : true, 'q' : this.state.value, 'sort_by' : 'date', 'expand' : 'category,venue' }; $.getJSON(root + myToken, params, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getEvent(id) {\r\n return apiClient.get(\"/events/\" + id);\r\n }", "function getEvents(){\n if(searchBy){\n Axios.get(`http://api.songkick.com/api/3.0/search/${searchBy}s.json?query=${searchVal}&apikey=${process.env.SONGKICK_KEY}&jsoncallback=`)\n .then(getVenueId)\n .then(getVenueCalendar...
[ "0.73787063", "0.7082976", "0.69050044", "0.69039315", "0.6899002", "0.68596435", "0.6807854", "0.67940867", "0.677724", "0.6692556", "0.663876", "0.657221", "0.65713614", "0.65319455", "0.65319455", "0.65226054", "0.65083253", "0.6448699", "0.6431937", "0.6388924", "0.637179...
0.6496451
17
feed uses a 'for' loop
function feed(horses) { var numHorses = horses.length; for (var i=0; i < horses.length; i++) { console.log(horses[i].name + ': Thanks for feeding me!'); } console.log('done feeding!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadAllFeeds() {\n for (var feedName in rssFeeds) {\n loadFeed(rssFeeds[feedName].url);\n }\n}", "function renderFeed() {\n\tlet feed = document.getElementById(\"feed\");\n\tfor (let i = 0; i < friendImgs.length; i++) {\n\tfeed.appendChild(article(friendImgs[i], friendNames[i], contentImgs[...
[ "0.64437073", "0.6375617", "0.6372178", "0.63195187", "0.6288147", "0.6253481", "0.62290764", "0.62149614", "0.6137361", "0.60905534", "0.60755765", "0.6033322", "0.5982967", "0.59753346", "0.59623617", "0.59520054", "0.59421456", "0.59226364", "0.590959", "0.5893552", "0.587...
0.5683733
39
Cette fonction permet de positionner un cookie
function SetValeurCookieLcl (value) { var valCook = cookieLclName + "=" + escape (value) + ";expires=Fri, 17 Dec 2020 10:00:00 GMT" + ((path == null) ? "" : (";path=" + path)) + ((domain == null) ? "" : (";domain=" + domain)) + ((secure == true) ? ";secure" : ""); document.cookie = valCook; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPosition(){\n if(Cookies.get('position')){\n position = Cookies.get('position');\n }\n else {\n position = 1;\n Cookies.set('position',position, { expires: 30 });\n }\n }", "function setCookie() {\n\t\tvar currentBaseMap = map.baseLayer....
[ "0.735237", "0.7150053", "0.70972884", "0.70031625", "0.6974689", "0.68925756", "0.688207", "0.68782693", "0.68310857", "0.68111354", "0.6795116", "0.6789149", "0.67686296", "0.6740357", "0.673941", "0.6694854", "0.6683892", "0.6675981", "0.6673372", "0.6655952", "0.6653378",...
0.68914366
6
Cette fonction permet de supprimer le cookie de personnalisation LCL
function lcl () { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = '' document.cookie = cookieLclName + "=" + cval + "; expires=" + exp.toGMTString()+ ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteCookie(nombre){\n setCookie(nombre,\"\",0);\n }", "function eraseCookie(c_name){\n createCookie(c_name,\"\",-1);\n}", "function eliminarCookie(){\n\tdeleteCookie(\"visitas\");\n}", "delCookie(cname){\r\n document.cookie = `\"${cname}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\...
[ "0.78614604", "0.7783601", "0.77601016", "0.76457876", "0.75303566", "0.7505082", "0.7490773", "0.7476315", "0.7459876", "0.74036276", "0.73994774", "0.7391211", "0.7387323", "0.73813117", "0.73796546", "0.7366734", "0.73536915", "0.7351548", "0.73486876", "0.7334955", "0.732...
0.0
-1
var exp = new Date(); Exp.setTime(exp.getTime() + (nbJour2460601000));
function getCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function incrementDate(oDate)\r\n{\r\n var oNewDate = new Date();\r\n var nMillisecondsInOneDay = 86400000;\r\n \r\n if (oDate)\r\n {\r\n oNewDate = new Date(oDate.getTime() + nMillisecondsInOneDay);\r\n }\r\n \r\n return oNewDate;\r\n}", "function bzw_getExpDate(days, hours, minut...
[ "0.6219985", "0.613751", "0.6127069", "0.60525364", "0.60189015", "0.5996815", "0.5988302", "0.5977535", "0.5907685", "0.5871788", "0.58715844", "0.58658737", "0.5839716", "0.5833748", "0.5819841", "0.5819228", "0.58171594", "0.5727521", "0.571505", "0.56654066", "0.5660343",...
0.0
-1
Set Cookie 24h pour la console de HP
function createCookieHomePage(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; document.cookie = name + "=" + value + expires + "; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setCookie(name, value)\n{\n var now = new Date();\n now.setHours(now.getHours() + 2);//The expiration time is 2h\n document.cookie = name + '=' + value + ';expires=' + now.toUTCString();\n}", "function setCookie(name, value, exp) { // Exp in hours\n\tvar now = new Date();\n\tnow.setTime(now.getTime()...
[ "0.7191037", "0.70505095", "0.6911492", "0.68952054", "0.68947107", "0.6878747", "0.6817886", "0.677482", "0.677482", "0.67691725", "0.676023", "0.6726408", "0.67096484", "0.6703142", "0.66920006", "0.66871053", "0.6679805", "0.66689783", "0.66647726", "0.6664111", "0.6662459...
0.0
-1
create a session for any new connection
connectSession(websocket, user) { let session = new Session(this.topId++, user, websocket, this); // send the project list to the session for(let [name, project] of this.projects) { session.send({ type: "project", action: "add", name: name }); } /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createSession() {}", "newSession() {}", "async createSession(session, params) {\n let newSession = new Session();\n this.sessions.push(newSession);\n return newSession.getIdentifier();\n }", "static createSession () {\n var sessionType = null;\n var storageDetai...
[ "0.8359171", "0.7865873", "0.6915771", "0.67716867", "0.67056704", "0.65564007", "0.6541116", "0.6526425", "0.6467389", "0.64577645", "0.6444341", "0.6418284", "0.64059645", "0.6381912", "0.6381912", "0.6381912", "0.63747376", "0.637038", "0.6346048", "0.6319616", "0.63098234...
0.60584915
37
dinamic max value to test but always has to be bigger than 1 because is a integer
function isValidRange(number, maxRange){ return number < 1 || number > maxRange; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkHighest(value) {\n if (isHighest < value) {\n isHighest = value;\n }\n}", "isMax(value, limit) {\n return parseFloat(value) <= limit;\n }", "function max(num, max) {\n return typeof num === 'number' && typeof max === 'number' && num <= max;\n}", "function max(num1 = 1, num2 ...
[ "0.734125", "0.71482694", "0.7142511", "0.7091136", "0.70518225", "0.7026789", "0.69627005", "0.69157547", "0.69090414", "0.6865313", "0.68648815", "0.68403965", "0.67993927", "0.67804486", "0.6741147", "0.6724972", "0.6713667", "0.66910434", "0.6687267", "0.66676337", "0.666...
0.0
-1
TERCERA FUNCION QUE SE APLICA
function sortCategories(criteria, array){ let result = []; if (criteria === ORDER_ASC_BY_NAME) { console.log(array) result = array.sort(function(a, b) { if ( a.name < b.name ){ return -1; } if ( a.name > b.name ){ return 1; } return 0; }); }els...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculadora(){\n\tconsole.log(\"soy una calculadora\");\n}", "function fuctionPanier(){\n\n}", "function principal() {\n choquecuerpo();\n choquepared();\n dibujar();\n movimiento();\n \n if(cabeza.choque (comida)){\n comida.colocar();\n cabeza.meter();\n } \n}", ...
[ "0.64382064", "0.6438007", "0.6433861", "0.64169323", "0.6390213", "0.6371833", "0.63138425", "0.6302829", "0.6302829", "0.6302829", "0.62746173", "0.6261784", "0.6261229", "0.625296", "0.62452805", "0.62422794", "0.6233053", "0.6219097", "0.619759", "0.619759", "0.61829746",...
0.0
-1
CUARTA FUNCION QUE SE APLICA
function showCategoriesList(){ let htmlContentToAppend = ""; for(let i = 0; i < currentCategoriesArray.length; i++){ let category = currentCategoriesArray[i]; if (((minCount == undefined) || (minCount != undefined && parseInt(category.productCount) >= minCount)) && ((maxCount == un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function principal() {\n choquecuerpo();\n choquepared();\n dibujar();\n movimiento();\n \n if(cabeza.choque (comida)){\n comida.colocar();\n cabeza.meter();\n } \n}", "function fuctionPanier(){\n\n}", "function sveikinuosi( funkcijosPavadinimas ){\n console.log(\"Labutai...
[ "0.659097", "0.6488984", "0.648475", "0.64255995", "0.64255995", "0.64255995", "0.64048904", "0.6375263", "0.6354024", "0.6349205", "0.63442636", "0.6328333", "0.63027006", "0.62827843", "0.62274635", "0.6207369", "0.6183926", "0.61817825", "0.6171597", "0.61661726", "0.61392...
0.0
-1
SEGUNDA FUNCION QUE SE APLICA
function sortAndShowCategories(sortCriteria, categoriesArray){ currentSortCriteria = sortCriteria; if(categoriesArray != undefined){ currentCategoriesArray = categoriesArray; } currentCategoriesArray = sortCategories(currentSortCriteria, currentCategoriesArray); //Muestro las categorías o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fuctionPanier(){\n\n}", "saludar(fn){\n console.log(`Hola me llamo ${this.nombre} ${this.apellido}`)\n if(fn){\n fn(this.nombre,this.apellido, false)\n }\n }", "saludar(fn){\n console.log(`Hola me llamo ${this.nombre} ${this.apellido} y soy programador`)\n ...
[ "0.6531979", "0.6515411", "0.6488828", "0.641421", "0.6373705", "0.63542753", "0.6351077", "0.63409376", "0.632189", "0.632189", "0.632189", "0.63128185", "0.63002896", "0.6292589", "0.6225916", "0.62038463", "0.62020326", "0.6172455", "0.6151356", "0.6143339", "0.61092114", ...
0.0
-1
Updates the browserAction icon to reflect whether the current page is already bookmarked.
function updateIcon () { browser.browserAction.setIcon({ path: currentBookmark ? { 19: '../public/star-filled-19.png', 38: '../public/star-filled-38.png' } : { 19: '../public/star-empty-19.png', 38: '../public/star-empty-38.png' }, tabId: cur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateIcon() {\n browser.browserAction.setIcon({\n path: currentBookmark ? {\n 19: \"icons/star-filled-19.png\",\n 38: \"icons/star-filled-38.png\"\n } : {\n 19: \"icons/star-empty-19.png\",\n 38: \"icons/star-empty-38.png\"\n } \n });\n browser.browserAction.setTitle({\...
[ "0.7688454", "0.7259606", "0.69944257", "0.6886925", "0.67670995", "0.63924366", "0.6359432", "0.62104625", "0.61915743", "0.6163151", "0.6094195", "0.6091536", "0.60706943", "0.606219", "0.6031687", "0.597573", "0.59390026", "0.5864175", "0.57827127", "0.5753432", "0.5746751...
0.7738483
0
Add or remove the bookmark on the current page.
function toggleBookmark () { if (currentBookmark) { browser.bookmarks.remove(currentBookmark.id) } else { browser.bookmarks.create({title: currentTab.title, url: currentTab.url}) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addBookmark() {\n let bmsvc = Cc[\"@mozilla.org/browser/nav-bookmarks-service;1\"]\n .getService(Ci.nsINavBookmarksService);\n let ios = Cc[\"@mozilla.org/network/io-service;1\"]\n .getService(Ci.nsIIOService);\n let bid = bmsvc.insertBookmark(bmsvc.unfiledBookmarksFolder, \n ...
[ "0.745689", "0.7278044", "0.68960303", "0.6878225", "0.6709581", "0.6704192", "0.66677773", "0.66015613", "0.657133", "0.6503345", "0.64972943", "0.6465126", "0.643538", "0.642877", "0.63918763", "0.63428694", "0.6295788", "0.6293969", "0.624668", "0.6218763", "0.6214884", ...
0.7195718
2
Switches currentTab and currentBookmark to reflect the currently active tab
function updateActiveTab () { function isSupportedProtocol (urlString) { const supportedProtocols = ['https:', 'http:', 'ftp:', 'file:'] const url = document.createElement('a') url.href = urlString return supportedProtocols.indexOf(url.protocol) !== -1 } function updateTab (tabs) { if (tabs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tabSwitched (activeInfo) {\r\n let tabId = activeInfo.tabId;\r\n let winId = activeInfo.windowId;\r\n/*\r\n trace('-------------------------------------');\r\n trace(\"A tab was switched.\\r\\n\"\r\n\t +\"activeInfo.previousTabId: \"+activeInfo.previousTabId+\"\\r\\n\"\r\n\t +\"activeInfo.tabId: \...
[ "0.7218964", "0.70979977", "0.7060986", "0.70544446", "0.69783676", "0.6960006", "0.68601483", "0.67353195", "0.67116463", "0.6589895", "0.6556124", "0.65215296", "0.65215296", "0.65215296", "0.6517297", "0.65040475", "0.64989", "0.64955753", "0.6488392", "0.64847106", "0.645...
0.7044315
4
================================================ Name : MinuteDiff description : Return a status based by comparison return value : 0, OK; 1, Within tolerant; 2, Late ==================================================
MinuteDiff(expect, actual, tolerant){ let status=0;// ok let thisActual=Date.fromMysqlDate(`${actual}`); let thisExpect=Date.fromMysqlDate(`${expect}`); let minutesDiff=(thisActual.getTime()-thisExpect.getTime())/(60*1000); if(minutesDiff>0&&minutesDiff<tolerant){ sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function minuteChecker(oldTime, timeDifference) {\n var minutePassed = true;\n if (new Date().getTime() - oldTime < timeDifference) {\n minutePassed = false;\n }\n return minutePassed;\n}", "diff () {\n if (this.stopped.length === 0) {\n throw new Error('Timer has not been stopped.')\n...
[ "0.5918462", "0.5663574", "0.56317544", "0.56283987", "0.5543449", "0.5538508", "0.55306154", "0.546891", "0.5362792", "0.52928567", "0.5274226", "0.5263088", "0.5233089", "0.5201064", "0.5201064", "0.516558", "0.5139771", "0.5136699", "0.51279664", "0.5121855", "0.50907993",...
0.742805
0
======================================================================== Name : GetDistance description : Calculate distance between two GPS points Credit : return value : Distance between two GPS coordinates =========================================================================
GetDistance(lat1, lng1, lat2, lng2) {// coordinates of two GPS positions    var radLat1 = this.Rad(lat1);     var radLat2 = this.Rad(lat2); var a = radLat1 - radLat2; var b = this.Rad(lng1) - this.Rad(lng2); var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +     Math...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDistance(x1, y1, x2, y2)\r\n{\r\n\treturn (((x2-x1)**2)+((y2-y1)**2))**(1/2);\r\n}", "function gps_distance(lat1, lon1, lat2, lon2)\r\n{\r\n\t// http://www.movable-type.co.uk/scripts/latlong.html contains Algorithm\r\n var R = 6371; // km\r\n var dLat = (lat2-lat1) * (Math.PI / 180);\r\n var...
[ "0.767205", "0.76225084", "0.756855", "0.75331706", "0.7493512", "0.7477956", "0.7451795", "0.7446338", "0.74215174", "0.7421177", "0.7409509", "0.740531", "0.73667353", "0.7364899", "0.7356175", "0.7344664", "0.7336282", "0.7330069", "0.7326432", "0.7326432", "0.7326432", ...
0.76350594
1
======================================================================== Name : IsWithinGeofence Description : Check if a Position is within certain geofence. Credit : return value : Distance between two GPS coordinates =========================================================================
IsWithinGeofence(position, location) {//coordinates of two GPS positions    let radLat1 = this.Rad(position.Latitude);     let radLat2 = this.Rad(location.Latitude); let a = radLat1 - radLat2; let b = this.Rad(position.Longitude) - this.Rad(location.Longitude); let s = 2 * Math.asin(Mat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isDistanceBetweenPointsWithinRange (userLat, userLong, reportLat, reportLong, radius){\n \n\tvar radlat1 = Math.PI * userLat/180;\n\tvar radlat2 = Math.PI * reportLat/180;\n\tvar radlon1 = Math.PI * userLong/180;\n\tvar radlon2 = Math.PI * reportLong/180;\n\tvar theta = userLong-reportLong;\n\tvar radt...
[ "0.5961988", "0.587785", "0.5792747", "0.5772374", "0.56443703", "0.5623027", "0.55676323", "0.5526884", "0.5470675", "0.54697055", "0.5466812", "0.5466404", "0.54587686", "0.54352945", "0.5427393", "0.5417548", "0.54050744", "0.54012567", "0.5397278", "0.5389688", "0.5375782...
0.7464468
0
======================================================================== Name : IsWithinInterestLocation Description : Calculate interest locations Credit : return value : Distance between two GPS coordinates =========================================================================
IsWithinInterestLocation(position, location) {//two locations    let radLat1 = this.Rad(position.Latitude);     let radLat2 = this.Rad(location.Latitude); let a = radLat1 - radLat2; let b = this.Rad(position.Longitude) - this.Rad(location.Longitude); let s = 2 * Math.asin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IsWithinGeofence(position, location) {//coordinates of two GPS positions\n    let radLat1 = this.Rad(position.Latitude);\n     let radLat2 = this.Rad(location.Latitude);\n let a = radLat1 - radLat2;\n let b = this.Rad(position.Longitude) - this.Rad(location.Longitude);\n let s = 2 * Mat...
[ "0.6447131", "0.62140715", "0.5972559", "0.5948598", "0.5761362", "0.57436997", "0.57370865", "0.569898", "0.56654555", "0.5615566", "0.5609225", "0.55959177", "0.5571859", "0.55578387", "0.5547873", "0.554038", "0.5531058", "0.54979676", "0.5462178", "0.5462178", "0.5459051"...
0.79184794
0
========================================================= name: Get speed description: Get the previous position for this GPSid ===========================================================
GetSpeed(position,previousPosition){ let distance = this.GetDistance(position.Latitude,position.Longitude,previousPosition.Latitude,previousPosition.Longitude); console.log(`distanceFromPreviousPoint=====${distance}`); let now=Date.fromMysqlDate(`${position.DateTime}`); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSpeed()\r\n {\r\n return speed;\r\n }", "getSpeed() { return this.speed; }", "function getSpeed(){\n\t\treturn controls.speed;\n\t}", "function getTimePosition() {\n mopidy.playback.getTimePosition()\n .then(processCurrentTimePosition, consoleError);\n}", "function getSpeedBe...
[ "0.6310467", "0.60221314", "0.5966804", "0.5927156", "0.58680195", "0.58668673", "0.58658564", "0.5834308", "0.58295214", "0.5825646", "0.5824038", "0.57785624", "0.5759504", "0.5749897", "0.5721685", "0.57123196", "0.57064843", "0.5641217", "0.5613405", "0.5557555", "0.55453...
0.6888602
0
==================================================== MethodName: GetAngle Description: Get angle from start point to end point. East is 0 degree level, counterclockwise Arguments: None Credit: Return Value: degree =======================================================
GetAngle(First, Next) { let dRotateAngle = Math.atan2(Math.abs(First.Latitude - Next.Latitude), Math.abs(First.Longitude - Next.Longitude)); if (Next.Latitude >= First.Latitude) { if (Next.Longitude >= First.Longitude) { } else { dRotateAngle = Math.PI - dRotateAngle; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static angle(start, end) {\n var tDot = start.x * end.x + start.y * end.y;\n var tDet = start.x * end.y - start.y * end.x;\n var tAngle = -Math.atan2(tDet, tDot);\n return tAngle;\n }", "function angle(d){\n var a=(d.startAngle+ d.endAngle)*90/Math.PI-90;\n return a>9...
[ "0.7231189", "0.70243883", "0.6982709", "0.6982709", "0.6914307", "0.69021976", "0.69021976", "0.68808854", "0.68808854", "0.68808854", "0.68708014", "0.6858738", "0.68455434", "0.6835314", "0.6835314", "0.6835314", "0.68321824", "0.6829521", "0.6817881", "0.68048126", "0.674...
0.61183405
56
==================================================== MethodName: MinutesToTimeFormat Description: convert minutes into Mysql Time format Arguments: minutes Return Value: mySql Time =======================================================
MinutesToTimeFormat(inputTime) { // let hours = (time/ 60); // let rhours = Math.floor(hours); // let minutes = (hours - rhours) * 60; // let rminutes = Math.round(minutes); let time = Number(inputTime); let hours = Math.floor(time/60); //let rhours = Math.floo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function time_conversion(minutes) {}", "minutesToTime(m) {\n let seconds = (m + this.starting_second) % (60 * 1440);\n let minutes = Math.floor(seconds / 60) % 60;\n let hour = Math.floor(seconds / 3600);\n let ampm;\n ampm = hour >= 12 ? \"pm\" : \"am\";\n hour = hour > 12 ? hour - 12 : hour;\...
[ "0.7391744", "0.7003358", "0.6780146", "0.67766553", "0.66927576", "0.6668766", "0.6656213", "0.6656213", "0.6656213", "0.6656213", "0.6656213", "0.6656213", "0.6656213", "0.6640165", "0.6619478", "0.6483757", "0.64633805", "0.64511234", "0.64486045", "0.641312", "0.6375586",...
0.6927574
2
Display the cards on the page shuffle the list of cards using the provided "shuffle" method below loop through each card and create its HTML add each card's HTML to the page Shuffle function from
function shuffle(array) { var currentIndex = array.length, temporaryValue, randomIndex; while (currentIndex !== 0) { randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1; temporaryValue = array[currentIndex]; array[currentIndex] = array[randomIndex]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createHTML() {\n let cardList = shuffle(myCards);\n cardList.forEach(function(card) {\n $(\".deck\").append('<li><i class=\"card fa ' + card + '\"></i></li>');\n })\n}", "function shuffleCards() {\n let shuffledCards = shuffle(cardsArray);\n\n for (let i = 0; i < shuffledCards.length; i++) {\n ...
[ "0.7875721", "0.7812687", "0.7795814", "0.7761682", "0.7732096", "0.76938397", "0.76921904", "0.76226795", "0.7616878", "0.76167154", "0.7548858", "0.75435144", "0.75429386", "0.7542516", "0.75341725", "0.75116885", "0.75103885", "0.7505371", "0.7502696", "0.74974936", "0.749...
0.0
-1
set up the event listener for a card. If a card is clicked: display the card's symbol (put this functionality in another function that you call from this one) add the card to a list of "open" cards (put this functionality in another function that you call from this one) if the list already has another card, check to se...
function respondToTheClick(evt) { showCard(evt.target.classList); addCardtoStack(evt.target.innerHTML); if(timerOn==false) { console.log("starting timer"); // timerOn = showTimer(); timerOn = setTimeout(showTimer(), 1000); timerOn = true; } //start fixing the same card shouldn't equal. Make sure the s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clickCard(event) {\n // discard clicks on already matched or open cards\n if (event.target.nodeName === 'LI'\n && !(event.target.classList.contains(\"match\"))\n && !(event.target.classList.contains(\"open\")) ) {\n\n clickCounter += 1;\n\n if(clickCounter == 1) {\n st...
[ "0.8392274", "0.8256287", "0.8251241", "0.81680006", "0.8010867", "0.79927814", "0.79789734", "0.79624116", "0.7951098", "0.79050255", "0.7899434", "0.7869897", "0.785952", "0.78289473", "0.7807212", "0.7806482", "0.77567357", "0.7744155", "0.7720313", "0.77154434", "0.771241...
0.0
-1
start listening for events on each card
function startListening() { const allCards = Array.prototype.slice.call(document.querySelectorAll(".card")); for (let i=0; i<allCards.length; i++) { allCards[i].addEventListener("click", respondToTheClick); } // showTimer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listenSeriesEvents() {\r\n const cardElements = document.querySelectorAll(\".js-card\");\r\n for (const cardElement of cardElements) {\r\n cardElement.addEventListener(\"click\", handleCard);\r\n }\r\n}", "function addEvents(){\n for(let i=0; i<cards.length;i++)\n cards[i].addEventListen...
[ "0.7052234", "0.69691557", "0.69528055", "0.6902024", "0.68989885", "0.67757237", "0.6699294", "0.6572071", "0.65232295", "0.6522749", "0.6517848", "0.65064013", "0.6437722", "0.6424022", "0.63856566", "0.6365694", "0.63521475", "0.63469756", "0.63291055", "0.63265663", "0.62...
0.7937206
0
JSONHttpRequest 0.3.0 Copyright 2011 Torben Schulz < This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed...
function JSONHttpRequest() { var _xmlHttpRequest = getXMLHTTPRequest(); var _responseJSON = null; var _userContentType = false; // INFO Defining 'this' as '_self' improves compression, since keywords won't be shortened, // but variables will, and it delivers us from the need...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SIMPL__SendRequest_JSON( eString_URI, eJSON_Request, fCallback_Success, fCallback_Error )\n{\n\tvar eXHR = new XMLHttpRequest();\n\tvar eString_JSON = JSON.stringify( eJSON_Request );\n\n\teXHR.open( \"GET\", ( eString_URI + \"?JSON=\" + encodeURIComponent( eString_JSON ) ), true );\n\teXHR.onload = funct...
[ "0.71421045", "0.6986083", "0.67704403", "0.6758092", "0.67270905", "0.6725143", "0.6642585", "0.6636543", "0.66328865", "0.65266323", "0.64605314", "0.64605314", "0.64605314", "0.64605314", "0.6456266", "0.64043677", "0.6351905", "0.63498646", "0.6330834", "0.63197714", "0.6...
0.6894888
2
Initiate your servicenow instance with your instance url.
constructor(options) { let { url, username, password, request: reqOptions } = options; // Beginning of SNOW initiation. this.url = url; this.table = 'sc_req_item'; this.query = ''; this.qs = { JSONv2: ''...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "start(){\n this.applyMiddleWare();\n this.init();\n this.instance.listen(process.env.SERVER_PORT,()=>{\n console.log(`Server started on port ${process.env.SERVER_HOST}.`);\n console.log(`Navigate to http://${process.env.SERVER_HOST}:${process.env.SERVER_PORT}`);\n ...
[ "0.5971872", "0.5944522", "0.5702595", "0.55615276", "0.55537915", "0.55302984", "0.55083096", "0.5488888", "0.5462993", "0.5449023", "0.5408263", "0.540545", "0.53845596", "0.5373795", "0.53609836", "0.533721", "0.5306296", "0.52970856", "0.5293981", "0.526468", "0.5259247",...
0.0
-1
Function to set the preferred servicenow table to query.
setTable(Table) { this.table = Table + '.do'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_setTable() {\r\n\r\n\r\n }", "constructor() {\n super({ dbName: dbName });\n\n const oThis = this;\n\n oThis.tableName = 'meetings';\n }", "constructor() {\n super({ keyspace: keyspace });\n\n const oThis = this;\n\n oThis.tableName = 'user_personalized_data';\n }", "function dbTableS...
[ "0.59632623", "0.58885753", "0.5846558", "0.5812723", "0.56721556", "0.5599803", "0.55886734", "0.55774933", "0.5571534", "0.55708706", "0.55639476", "0.5474667", "0.5406585", "0.53757024", "0.53636277", "0.52964866", "0.5295202", "0.5292449", "0.52919424", "0.5291907", "0.52...
0.5313591
15
Function to set your documents query.
setQuery(Arguments, DisplayVariables, DisplayValues) { this.qs.sysparm_query = qs.stringify(Arguments, '^'); if(DisplayVariables) { this.qs.displayvariables = DisplayVariables; } if(DisplayValues) { this.qs.displayvalue = DisplayValues; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setQuery() {\n getSearch(search.value);\n}", "set searchQuery(query) {\n this._query = query;\n this.$searchQuery.next(query);\n this.search();\n }", "function init_query () {\n window.search_terms = ['pancake']\n if ('q' in query_parameters) {\n if (!$('#q').val()) {\n $('#...
[ "0.70623577", "0.6396371", "0.6340392", "0.6338589", "0.6164076", "0.5970495", "0.59543127", "0.5942511", "0.593488", "0.58672494", "0.5843362", "0.58429337", "0.58429337", "0.5816657", "0.5812903", "0.57759005", "0.57698923", "0.5761498", "0.57607955", "0.57607955", "0.57452...
0.0
-1
Function for retrieving all documents matching the setQuery arguments.
get() { let options = { method: 'GET', url: this.url + this.table, qs: this.qs }; return new Promise((resolve, reject) => { this.request(options, (err, response, body) => { if(err) { return reject(err); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllDocuments (req, res) {\n Documents.query().then(data => res.json(data));\n\n}", "GetAllDocuments() {\n return this.Start().then(Cache.DB).then(db => new Promise((resolve, reject) => {\n db.all('SELECT id, rev, body FROM couchbasesync WHERE dbName = ?', this[sDbName], (err, rows) => {\n ...
[ "0.6731364", "0.6567111", "0.6530303", "0.6423379", "0.64134336", "0.63701385", "0.6303506", "0.6297427", "0.6272222", "0.61881185", "0.61881185", "0.61716866", "0.6143146", "0.6136292", "0.61282057", "0.6108292", "0.60294664", "0.60021794", "0.5996539", "0.5924583", "0.59088...
0.0
-1
Function for retrieving all documents matching the queryObject arguments passed within the fucntion.
getRecords(queryObject) { let options = { method: 'GET', url: this.url + queryObject.table + '.do', qs: this.qs }; options.qs.sysparm_query = qs.stringify(queryObject.query, '^'); return new Promise((resolve, reject) => { this.request(opti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFilteredDocs() {\n // Store all docs filtered by search term\n let filteredDocs;\n\n if (dbState.search == \"\") {\n // If no search term is entered, then just gather all docs\n filteredDocs = db.find({});\n } else {\n // Create a regular expression of search term\n ...
[ "0.6583461", "0.6493077", "0.64707553", "0.6313841", "0.62701905", "0.62128633", "0.62027586", "0.6165679", "0.6122378", "0.60961115", "0.60798734", "0.59542125", "0.5940436", "0.59006083", "0.58872527", "0.58842516", "0.5869247", "0.5846408", "0.5823267", "0.5815396", "0.573...
0.5364633
69
Function for posting updates to all documents matching the setQuery arguments.
post(requestBody) { let options = { method: 'POST', url: this.url + this.table, qs: { JSONv2: '', sysparm_query: this.query, displayvariables: 'true', displayvalues: 'true', sysparm_action: 'updat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addUpdates(batch, data) {\n if (typeof data.update === 'undefined') return;\n\n for (var i = 0; i < data.update.length; i++) {\n var doc = data.update[i];\n var id = castId(doc._id);\n\n delete doc._id;\n\n batch.find({_id: id}).updateOne({$set: do...
[ "0.60268635", "0.601262", "0.5987178", "0.59273094", "0.5759653", "0.5719609", "0.569076", "0.5581726", "0.5574589", "0.55734164", "0.5557093", "0.55418104", "0.5502178", "0.548065", "0.54477507", "0.5434257", "0.53874445", "0.5365313", "0.5342572", "0.53201395", "0.5318056",...
0.0
-1
Wenn die location.hash auf login gestellt ist, soll folgendes passieren: Setzte das Navigationsfeld login auf sichtbar und active Setzte das Navigationsfeld registrieren auf sichtbar Setzte das Navigationsfeld spieler ansicht auf unsichtbar Setzte das Navigationsfeld logout auf unsichtbar Setzte den content login auf a...
function login() { document.getElementById("tab-login").className = "nav-link active"; document.getElementById("tab-logout").className = "nav-link hidden"; document.getElementById("tab-registrieren").className = "nav-link"; document.getElementById("tab-spieler-ansicht").className = "nav-link hidden"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkLoggedIn() {\n if (window.location.pathname == \"/\" || window.location.pathname == \"/Register\") {\n if (getUsernameCookie() != \"\") {\n window.location.pathname = \"/Homepage\";\n }\n } else {\n if (getUsernameCookie() == \"\") {\n window.location.pathname = \"/\";\n }\n ...
[ "0.6551615", "0.63700193", "0.6356774", "0.62524045", "0.6224752", "0.6208791", "0.62082195", "0.62082195", "0.62082195", "0.61958086", "0.61751336", "0.61721957", "0.6141448", "0.6132847", "0.611723", "0.6111477", "0.60959595", "0.6090713", "0.6089499", "0.6086163", "0.60449...
0.58738595
31
Language: Handlebars Requires: xml.js
function handlebars(hljs) { const BUILT_INS = { 'builtin-name': [ 'action', 'bindattr', 'collection', 'component', 'concat', 'debugger', 'each', 'each-in', 'get', 'hash', 'if', 'in', 'input', 'link-to', 'loc', 'log', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function XML () {\n\n}", "function htmlbars(hljs) {\n // This work isn't complete yet but this is done so that this technically\n // breaking change becomes a part of the 10.0 release and won't force\n // us to prematurely release 11.0 just to break this.\n var SHOULD_INHERIT_FROM_HANDLEBARS = hljs.requireLa...
[ "0.58679783", "0.5614944", "0.5593728", "0.5557901", "0.55370945", "0.5346662", "0.5298951", "0.525019", "0.5209499", "0.5208142", "0.5206616", "0.51927584", "0.50917464", "0.50803614", "0.5056948", "0.5056948", "0.5050303", "0.5046921", "0.50389665", "0.5027957", "0.50251514...
0.48196492
55
isFullAge5(1990, 1999, 1965); isFullAge5(1990, 1999, 1965, 2016, 1987); ES6
function isFullAge6(...years) { // here the spread operator converts the arguments in to an array names years years.forEach(cur => console.log( (2016 - cur) >= 18)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isFullAge5(){\n\t\tconsole.log(arguments) // we see that the type of arguments is an Object\n\n\t\tvar argsArr=Array.prototype.slice.call(arguments);\n\t\t//converts the arguments into an array.\n\n\n\t//ES6\n\n\tfunction isFullAge6(...years){\n\t\tyears.forEach(cur=> console.log( (2016-cur) >=18)); \n\t\...
[ "0.77553385", "0.7728598", "0.7486984", "0.7388086", "0.73757327", "0.7370944", "0.731236", "0.71504617", "0.71304226", "0.7098195", "0.7041428", "0.695485", "0.6934483", "0.69270617", "0.6850639", "0.68232954", "0.6731668", "0.6731668", "0.668481", "0.65847903", "0.648202", ...
0.71093225
9
This make the setview of map change
function SetViewOnClick({ coords }) { const map = useMap(); map.setView(coords); // map.setView(coords, map.getZoom()); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function viewchange() \n{\n // keep map centered on shuttle's marker\n var latlng = new google.maps.LatLng(shuttle.position.latitude, shuttle.position.longitude);\n map.setCenter(latlng);\n bus.setPosition(latlng);\n}", "function viewchange() \n{\n // keep map centered on shuttle's marker\n var...
[ "0.7427919", "0.7427919", "0.7369821", "0.73269695", "0.71539736", "0.7153324", "0.70902085", "0.70886075", "0.7080205", "0.706925", "0.7060854", "0.7014781", "0.6977379", "0.69630337", "0.6958829", "0.6920424", "0.68954253", "0.6885657", "0.6833003", "0.68179804", "0.6808860...
0.6895908
16
Map Component start HERE
function MapComp({ coords, isEventDetail, height }) { const dispatch = useDispatch(); //This make the marker on map change const [markerPosition, setMarkerPosition] = useState(coords); const MapPinComponent = () => { useMapEvents({ click: (e) => { const y = e.latlng.lat; const x = e.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render() {\n debugMap(map, 10, 20);\n }", "function Map() {\n\t\n}", "function Map() {\n\t\n}", "render() {\n return (\n <MapGeo/>\n );\n }", "function initMap() {\n}", "function getMap() {\n showJourneyMap();\n}", "function startHere(){\n createStartM...
[ "0.71494097", "0.68755275", "0.68755275", "0.6874225", "0.6768067", "0.6764279", "0.67316157", "0.6693625", "0.6619755", "0.6604065", "0.65863705", "0.65782416", "0.65655804", "0.6523878", "0.6523557", "0.65221673", "0.6518171", "0.65097404", "0.6508391", "0.64972967", "0.649...
0.0
-1
If there is no license, return an empty string
function renderLicenseBadge(license) { if (license =='Apache 2.0' ){ return ` ![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)` } else if (license == 'GNU General Public V3.0') { return `![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)` } else if (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.79783857", "0.7420528", "0.74098635", "0.7368894", "0.73633415", "0.7360063", "0.73475456", "0.7309953", "0.73031336", "0.72707325", "0.7268992", "0.72643113", "0.72292143", "0.7145745", "0.71389544", "0.7134032", "0.71210027", "0.7119789", "0.7112857", "0.71119344", "0.71...
0.0
-1
TODO: Create a function that returns the license link If there is no license, return an empty string
function renderLicenseLink(license) { if (license =='Apache 2.0'){ return `[${license}](https://opensource.org/licenses/Apache-2.0)` } else if (license == 'GNU General Public V3.0') { return `[${license}](https://www.gnu.org/licenses/gpl-3.0.en.html)` } else if (license == 'MIT') { return `[${li...
{ "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.86013985", "0.8442404", "0.84395254", "0.8427752", "0.8426223", "0.8375329", "0.8371584", "0.8363545", "0.83581024", "0.835764", "0.83439595", "0.83306617", "0.83189696", "0.8314061", "0.831332", "0.83107686", "0.8295067", "0.8288356", "0.8287171", "0.8285675", "0.8285675"...
0.82656115
36
TODO: Create a function that returns the license section of README If there is no license, return an empty string
function renderLicenseSection(license) { return `## License ${renderLicenseLink(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.7603397", "0.7592587", "0.75429654", "0.75330704", "0.7532757", "0.75178236", "0.74742657", "0.74656355", "0.7464355", "0.74303514", "0.7427769", "0.7395764", "0.73721796", "0.7368628", "0.73596185", "0.7350753", "0.73486924", "0.7347283", "0.73469776", "0.73424506", "0.73...
0.0
-1
TODO: Create a function to generate markdown for README
function generateMarkdown(data) { return ` # ${data.title} ${renderLicenseBadge(data.license)} ## Description ${data.projDescription} ## Table of contents * [Installation](#installation) * [Usage](#usage) * [Contributing](#contributing) * [Tests](#tests) * [License](#license) * [Question](#question) ## Installati...
{ "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.79306734", "0.79305935", "0.7926566", "0.79264593", "0.7921531", "0.7917...
0.7827885
40
axis functions adapted from Mike Bostock see source at
function xCanvas() { var tickCount = 5; var tickSize = 6; var tickPadding = 8; var ticks = scale_X.ticks(tickCount); var tickFormat = scale_X.tickFormat(tickCount); context.beginPath(); ticks.forEach(function(d) { context.moveTo(scale_X(d), h - (marg.bottom + marg.top)); context.lineTo(scale_X(d)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "createAxes () {\n }", "function reflectInAxis(axis, source, destination) {\n \tvar s = 2 * (axis[0] * source[0] + axis[1] * source[1] + axis[2] * source[2]);\n\t\t destination[0] = s*axis[0] - source[0];\n\t\t destination[1] = s*axis[1] - source[1];\n\t\t destination[2] = s*axis[2] - source[2];\...
[ "0.63017", "0.61552936", "0.6111698", "0.60610145", "0.60610145", "0.60231984", "0.5999869", "0.59186155", "0.59186155", "0.5889708", "0.5859994", "0.580791", "0.580791", "0.580791", "0.580791", "0.5797339", "0.5746022", "0.5744846", "0.57383823", "0.5681415", "0.5676005", ...
0.0
-1
Display the various commands and in the tooltip, their functions
function help() { printLine('The following commands work. Hover them for more information.'); printLine('' + ' <span class="yellow" title="Explain the list of commands">help</span>,' + ' <span class="yellow" title="Clear the screen for freshness">clear</span>,' + ' <span class="yellow" t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get tooltip() {}", "function help() {\n\tvar commandsArray = ['Help: List of available commands', '>help', '>about', '>contact', '>ping', '>time', '>clear', '>say'];\n\tfor (var i = 0; i < commandsArray.length; i++) {\n\t\tvar out = '<span>' + commandsArray[i] + '</span><br/>'\n\t\tOutput(out);\n\t}\n}", "func...
[ "0.6776293", "0.67272794", "0.6682921", "0.66814965", "0.6631982", "0.66242373", "0.6592155", "0.6581821", "0.65519637", "0.6551441", "0.64668214", "0.6461305", "0.64491016", "0.6441639", "0.64287084", "0.64243627", "0.6403148", "0.63805825", "0.63787276", "0.6369639", "0.635...
0.7298595
0
Clear the screen by reloading the page
function clear() { window.location.reload(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearScreen() {\n getlocation.html(\"\");\n locationStatus.html(\"\");\n showTemp.html(\"\");\n shortNews.html(\"\");\n dataTable.hide();\n $(\"#errorMessage\").hide();\n content.hide();\n loader.hide();\n }", "function clearBoard() {\n location.reload(false);\n}", "function ...
[ "0.7877734", "0.78489614", "0.78127867", "0.781032", "0.7740009", "0.7656269", "0.7629369", "0.76094556", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", "0.7544371", ...
0.82364124
0
Say goodbye and then apologize for the limitations of JavaScript
function exit() { printLine('<span class="yellow">Goodbye!</span>'); printLine('JavaScript is not allowed to close this window.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function goodbye(){}", "function saysGoodbye() {\n return \"Goodbye World\"\n}", "function goodbye(message) {\n console.log(\"goodbye \" + message);\n}", "function sayGoodbye() {\n console.log(\"Goodbye!\");\n}", "function goodbye() {\n console.log(\"goodbye\")\n}", "function sayGoodbye(who) {\...
[ "0.75842524", "0.7350731", "0.72755766", "0.7192219", "0.714887", "0.7035841", "0.68417203", "0.6688789", "0.6685698", "0.66828203", "0.659575", "0.6521581", "0.6521581", "0.6521581", "0.6521581", "0.6521581", "0.64243346", "0.64074177", "0.6290805", "0.6276384", "0.62584686"...
0.65447104
11
List the various subdirectories and files in the current directory
function list() { let string = ''; for (let i = 0; i < currentNode.children.length; i++) { let child = currentNode.children[i]; if (child.type === 'folder') { string = string + '<a class="blue" onclick="changeDirectoryWalkthrough(absolutePathTo(nodeNamed(\'' + child.name + '\')))">';...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listDir(dir)\r\n{\r\n\tcurdir = dir;\r\n\tcurdir = relativeFilename(curdir);\r\n\t\r\n\tvar f = fso.GetFolder(curdir);\r\n\t\r\n\tlistFiles();\r\n\t\r\n\tfor(var fc = new Enumerator(f.SubFolders);!fc.atEnd();fc.moveNext()){\r\n\t\t//\tList the subdirectory\r\n\t\tlistDir(fc.item().Path);\r\n\t}\r\n}", "...
[ "0.75869036", "0.7051149", "0.6921091", "0.67633367", "0.6694362", "0.6589368", "0.64594024", "0.64365613", "0.6432461", "0.6431005", "0.6420709", "0.6370939", "0.6312908", "0.62860245", "0.6282781", "0.6266858", "0.62457114", "0.6232908", "0.61976933", "0.6190305", "0.617877...
0.64064425
11
Change to another directory
function changeDirectory(path) { let nextNode = nodeFrom(path); if (nextNode === undefined || nextNode.type === 'file') { badCommand(); return; } currentNode = nextNode; currentPointer = currentNode.name; window.location.hash = currentPointer; let $inputParagraph = $terminal....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "changeFolder () {\n if (MatlabEditor.checkSessionStatus()) {\n var tab = document.querySelector('.texteditor.tab.right-clicked')\n var dirPath = path.dirname(tab.querySelector('.title').dataset.path)\n\n MatlabEditor.runCommand('cd(\\'' + dirPath + '\\')', null)\n } else {\n a...
[ "0.656748", "0.6476736", "0.6466884", "0.63711995", "0.5930142", "0.5889122", "0.5772364", "0.5725266", "0.5706702", "0.5705314", "0.56489664", "0.5642001", "0.5632992", "0.5629847", "0.5598554", "0.5590261", "0.5558102", "0.55118537", "0.5509467", "0.54853874", "0.5470003", ...
0.6950957
0
Show the contents of a file on the screen or, in the case of PDFs, a new tab
function concatenate(path, callback) { let node = nodeFrom(path); if (node === undefined || node.type === 'folder') { badCommand(); callback(); return; } let filename = node.name; if (filename.includes('.md')) { $.ajax({ url: window.location.origin + '/mar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show(file) {\n console.log('-'.repeat(10));\n console.log(`Содержимое файлы ${file.name}:`);\n console.log(file.content);\n console.log('-'.repeat(10));\n}", "function viewHtml() {\n var entry = ProjectManager.getSelectedItem();\n if (entry === undefined) {\n entry = Documen...
[ "0.6904492", "0.6802729", "0.6620522", "0.6619686", "0.6579989", "0.6528678", "0.64382344", "0.6367462", "0.63671684", "0.6364601", "0.63261163", "0.6252333", "0.62409747", "0.6232744", "0.6222328", "0.62198746", "0.61577904", "0.60950017", "0.6087774", "0.60860455", "0.60583...
0.0
-1
If the command is invalid, say so and link to the help command if needed
function badCommand() { printLine('Bad command. See <a class="yellow" onclick="helpWalkthrough()">help</a> or use the links to browse.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function replyInvalidCommand(err=null){\n if(err){\n message.reply(err)\n }else{\n message.reply('Please enter valid command.\\nCommand for help: >help');\n }\n }", "_helpAndError() {\n this.outputHelp();\n // message: do not have all displayed text available s...
[ "0.8201404", "0.74594533", "0.74594533", "0.72586995", "0.7217839", "0.7138344", "0.7093577", "0.7064136", "0.6869484", "0.6816507", "0.6810499", "0.6789502", "0.6764294", "0.67584044", "0.6730904", "0.67237437", "0.67056876", "0.66853875", "0.668219", "0.6674961", "0.666724"...
0.70268834
8
Go to forgot PIN page, if user clicks on "Forgot the PIN"
function goToForgotPin () { $state.go('^.forgot-pin') }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "forgotPass() \n {\n \tAlert.alert(\n\t\t 'Go To Site',\n\t\t 'Pressing this button would help you restore your password (external source)',\n\t\t [\n\t\t {text: 'OK', onPress: () => console.log('OK Pressed')},\n\t\t ],\n\t\t {cancelable: false},\n\t\t);\n }", "requirePassword() {\n this.n...
[ "0.72318393", "0.6839288", "0.6432125", "0.63796985", "0.62768096", "0.6225386", "0.61679626", "0.60983753", "0.6092157", "0.60606", "0.60489076", "0.6035069", "0.6028609", "0.6023247", "0.60148466", "0.6013914", "0.59495133", "0.59297186", "0.5901605", "0.58730525", "0.58541...
0.7945903
0
Go to postvalidation dispatcher, if user completes form correctly
function verify (form) { if (form.$valid) { Notify.publish(ICON_NOTIFICATION.PUSH_RETRIEVAL_PROGRESS) Endpoint.retrieveImmunizationRecord(this.patientInfo.oiid, this.pin) .then(FhirRecordConverter.convert) .then(FhirRecordConverter.populateConvertedData) .then((retrievedRecord) =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate_form(){\n if (is_form_valid(form)) {\n sendForm()\n }else {\n let $el = form.find(\".input:invalid\").first().parent()\n focus_step($el)\n }\n }", "function catchSubmit(){\n\t\t\t// ensure that the submit button is enabled (if the page was refreshed when the button ...
[ "0.6378465", "0.6350638", "0.6231896", "0.62097335", "0.617386", "0.6170915", "0.6141206", "0.6135056", "0.61337805", "0.61190814", "0.61126596", "0.6103686", "0.61001015", "0.60849094", "0.60836154", "0.60715026", "0.6066505", "0.6056973", "0.6052368", "0.6052028", "0.604183...
0.0
-1
! moment.js locale configuration
function t(e,t,n){var r,a;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.8263367", "0.80357397", "0.78781706", "0.75484693", "0.72034216", "0.7198731", "0.7174899", "0.7170552", "0.7132955", "0.7129977", "0.7044194", "0.6671362", "0.6671362", "0.63341385", "0.6292368", "0.627704", "0.627704", "0.627704", "0.627704", "0.62097865", "0.6093575", ...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.8263367", "0.80357397", "0.78781706", "0.75484693", "0.72034216", "0.7198731", "0.7174899", "0.7170552", "0.7132955", "0.7129977", "0.7044194", "0.6671362", "0.6671362", "0.63341385", "0.6292368", "0.627704", "0.627704", "0.627704", "0.627704", "0.62097865", "0.6093575", ...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.8263367", "0.80357397", "0.78781706", "0.75484693", "0.72034216", "0.7198731", "0.7174899", "0.7170552", "0.7132955", "0.7129977", "0.7044194", "0.6671362", "0.6671362", "0.63341385", "0.6292368", "0.627704", "0.627704", "0.627704", "0.627704", "0.62097865", "0.6093575", ...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.8263367", "0.80357397", "0.78781706", "0.75484693", "0.72034216", "0.7198731", "0.7174899", "0.7170552", "0.7132955", "0.7129977", "0.7044194", "0.6671362", "0.6671362", "0.63341385", "0.6292368", "0.627704", "0.627704", "0.627704", "0.627704", "0.62097865", "0.6093575", ...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e){return e%100==11||e%10!=1}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.8263367", "0.80357397", "0.78781706", "0.75484693", "0.72034216", "0.7198731", "0.7174899", "0.7170552", "0.7132955", "0.7129977", "0.7044194", "0.6671362", "0.6671362", "0.63341385", "0.6292368", "0.627704", "0.627704", "0.627704", "0.627704", "0.62097865", "0.6093575", ...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.8263367", "0.80357397", "0.78781706", "0.75484693", "0.72034216", "0.7198731", "0.7174899", "0.7170552", "0.7132955", "0.7129977", "0.7044194", "0.6671362", "0.6671362", "0.63341385", "0.6292368", "0.627704", "0.627704", "0.627704", "0.627704", "0.62097865", "0.6093575", ...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e,t,n){var r,a;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.8263367", "0.80357397", "0.78781706", "0.75484693", "0.72034216", "0.7198731", "0.7174899", "0.7170552", "0.7132955", "0.7129977", "0.7044194", "0.6671362", "0.6671362", "0.63341385", "0.6292368", "0.627704", "0.627704", "0.627704", "0.627704", "0.62097865", "0.6093575", ...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return a+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return a+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.8263367", "0.80357397", "0.78781706", "0.75484693", "0.72034216", "0.7198731", "0.7174899", "0.7170552", "0.7132955", "0.7129977", "0.7044194", "0.6671362", "0.6671362", "0.63341385", "0.6292368", "0.627704", "0.627704", "0.627704", "0.627704", "0.62097865", "0.6093575", ...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
! moment.js locale configuration
function t(e,t,n){var r,a;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_ро...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl(e,t,n){return\"m\"===n?t?\"минута\":\"минуту\":e+\" \"+\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! Author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\nf...
[ "0.82635474", "0.803583", "0.7878269", "0.7548106", "0.72040725", "0.71984273", "0.7174624", "0.71708643", "0.7132608", "0.7130732", "0.7045036", "0.66717654", "0.66717654", "0.6335232", "0.62935024", "0.62765163", "0.62765163", "0.62765163", "0.62765163", "0.6211631", "0.609...
0.0
-1
To read value of input field only way is event "onChange" Save state each time
setValue(e){ this.setState({ txt: e.target.value }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onInputChange(event) {\n\t\t// access value of the input\n\t\tconsole.log(event.target.value)\n\t}", "onInputChange(event) {\n console.log(event.target.value)\n }", "onInputChange(event) {\n console.log(event.target.value);\n }", "handleInputChange(event) {\n console.log(event.target.value);...
[ "0.76802903", "0.7500763", "0.7396911", "0.7387418", "0.73788184", "0.7274763", "0.7268417", "0.72470045", "0.72044975", "0.7201354", "0.7185947", "0.7143456", "0.7139017", "0.71263814", "0.7109244", "0.7105737", "0.7105737", "0.70795697", "0.706877", "0.706337", "0.6999968",...
0.0
-1
When users click on "refreshbtn" to clear the previous animation, send an Ajax call to fetch a new animation frames, start a new interval.
function refreshbtn() { clearInterval(timerId); myAnimantion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "refresh() {\n if (this.refreshFrame_) {\n cancelAnimationFrame(this.refreshFrame_);\n }\n this.refreshFrame_ = requestAnimationFrame(() => {\n this.refresh_();\n this.refreshFrame_ = 0;\n });\n }", "function fnAnimate () {\n // X-second timer \n setTimeout (\"beginrefresh()\", 1000)...
[ "0.6754896", "0.6565643", "0.64570814", "0.6431286", "0.640458", "0.63868535", "0.63868535", "0.6242935", "0.62267566", "0.61782324", "0.6176197", "0.61726725", "0.61648864", "0.6158004", "0.6152349", "0.61499923", "0.6104729", "0.6045702", "0.5998561", "0.59930295", "0.59716...
0.75487053
0
fetch a token from a server and return the token Change a token into string
async function gettoken() { const resp = await fetch("http://www.mumstudents.org/api/login", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ username: 'mwp', password: '123' }) }) const res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getToken() {\n return fetch(STT_AUTHURL).then(function(response) {\n return response.text();\n });\n }", "function getToken() {\n return token;\n }", "async function getToken() {\r\n let request = {\r\n method: 'GET',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n '...
[ "0.77137685", "0.76767623", "0.7419532", "0.73556817", "0.72529066", "0.70445484", "0.7006945", "0.69680476", "0.6942045", "0.6920758", "0.69120145", "0.69012064", "0.6861667", "0.6824362", "0.6818922", "0.68097407", "0.6798647", "0.6790776", "0.6789747", "0.6789747", "0.6771...
0.722608
5
fetch a new animation frames, start a new interval. frames are separated with "=====\n", we will need to break the frames and load one frame at a time in the textarea every 200ms.
async function myAnimantion() { clearInterval(timerId); const resp = await fetch("http://mumstudents.org/api/animation", { method: "GET", headers: { "Authorization": `Bearer ${token}` } }) const respBody = await resp.text(); //console.log(respBody); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insertFrame(){\n\t\tlet animation_frames = currentFrames.split(\"=====\\n\");\n\t\t$(\"text-area\").value = animation_frames[frameNumber]; \n\t\tframeNumber++;\n\t\tframeNumber = frameNumber % animation_frames.length;\n\t}", "function animate() {\n\t\tvar output = document.getElementById(\"display\");\n...
[ "0.7339349", "0.6551411", "0.6532469", "0.6488447", "0.6426956", "0.6368505", "0.6364706", "0.63338345", "0.6216245", "0.6201378", "0.6183088", "0.6131831", "0.6100184", "0.6094504", "0.6093348", "0.6012992", "0.59698737", "0.5951897", "0.5934006", "0.5923905", "0.59152", "...
0.7167358
1
fetch the current user location, and send their longitude and latitude to mapquestapi to find out their city, state, zip, country. Display an appropriate welcome message on top of the animation page.
function fechLocation() { navigator.geolocation.getCurrentPosition(success); async function success(position) { lat = position.coords.latitude lon = position.coords.longitude; // console.log(lat); // console.log(lon); let resp = await fetch(`...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUserLocation() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function (position) {\n userLat = position.coords.latitude;\n userLong = position.coords.longitude;\n fetch(\n `http://www.mapquestapi.com/geocoding/v1/address?key=leD58xaywY...
[ "0.77346855", "0.74004525", "0.7399553", "0.72645295", "0.72615504", "0.72187924", "0.7099565", "0.7092802", "0.70907414", "0.7061761", "0.70453227", "0.6977173", "0.6976419", "0.6950997", "0.693251", "0.69291615", "0.68942374", "0.6848346", "0.684772", "0.6840625", "0.683018...
0.71343064
6
you can add any code you want within this function scope
function polybius(input, encode = true) { // your solution code here input = input.toLowerCase(); // even amount of numbers guard clause const removeSpaces = input.split(' ').join(''); if (removeSpaces.length % 2 && /\d/.test(input)) return false; const polybiusSquare = () => { const...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function customFunction() {\n //Statements\n }", "function fn() {\n\t\t }", "function additionalSettings(){\n\n\n}", "function _____SHARED_functions_____(){}", "function exampleFunctionToRun(){\n\n }", "function funcionPorDefinicion(){\n //Body\n }", "function wa(){}", "pri...
[ "0.6263114", "0.6199591", "0.61060333", "0.600968", "0.5895342", "0.5882914", "0.582133", "0.58204496", "0.58055925", "0.5805087", "0.57856494", "0.5725456", "0.57234854", "0.57234854", "0.57234854", "0.5717449", "0.57078326", "0.5677217", "0.5665039", "0.5660738", "0.5648614...
0.0
-1
Next player in separate func
function nextPlayer() { player === 1 ? player = 2 : player = 1; scoreCurrent = 0; document.querySelector('.current1').innerHTML='<span style="color:black;">Current</span><br/>' + 0; document.querySelector('.current2').innerHTML='<span style="color:black;">Current</span><br/>' + scoreCurrent; document...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nextPlayer()\r\n{\r\n\t// check victory condition first\r\n\tif ( checkVictory() ) return;\r\n\r\n\t// if victory condition not met...\r\n\t// increment the current player id\r\n\tgame.cplayer = (game.cplayer+1)%game.players.length;\r\n\t\r\n\tUI_updateInfo();\r\n\t\t\r\n\t// start next players turn...\r\...
[ "0.7888632", "0.7772116", "0.76936626", "0.7685876", "0.75468147", "0.75131524", "0.74766594", "0.74750185", "0.74416155", "0.74086845", "0.74076676", "0.7370056", "0.7253133", "0.7233268", "0.7220793", "0.7172388", "0.71333057", "0.7132847", "0.71173435", "0.71108514", "0.70...
0.6362901
99
fixed btn position chatbot btn & chatbot wrap & top btn
function fixed_btn() { var w_width = $(window).width(); var w_scrollTop = $(window).scrollTop(); var chatbtn = $(".btn_chatbot"); // chatbot btn var chatwrap = $(".chat_btn_wrap"); // chatbot input wrap var topbtn = $(".btn_top"); // btn top var conHei = $("#header").oute...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buttonFixed() {\n\t\tvar\twin\t\t = $(window),\n\t\t\tbutton\t = $('.js-bookbtn'),\n\t\t\tbuttonHeight = button.outerHeight(),\n\t\t\tscrollPos\t = win.scrollTop(),\n\t\t\tbottomPos\t = $('.js-bottom').offset().top,\n\t\t\tabsolutePos = $('.js-bottom').offset().top + $('.js-bottom').outerHeight() - bu...
[ "0.66647357", "0.64197314", "0.6242927", "0.6214183", "0.6122488", "0.60878736", "0.6056864", "0.6004051", "0.6001552", "0.60007304", "0.5984292", "0.5948283", "0.5936379", "0.5927686", "0.5924426", "0.58770716", "0.586808", "0.5858993", "0.58484447", "0.58339435", "0.5830821...
0.8219629
0
var frame_cpt = 0; var e = this;
loop(ctx) { if (this.frame_cpt == 0) { ctx.fillStyle = "rgb(255, 255, 255)"; ctx.fillRect(0, 0, this.width, this.height); for (var y = 0; y < this.height; y++) { for (var x = 0; x < this.width; x++) { // Rafraichir this.cells[y][x].refresh(); // Dessiner ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function trackFrameEnd(){\n}", "function main(){\r\n\tvar TL=fl.getDocumentDOM().getTimeline()\r\n\tvar curL=TL.currentLayer;\r\n\tvar curF=TL.currentFrame;\r\n\tvar frame=TL.layers[curL].frames[curF];\r\n\tif(curF>frame.startFrame){\r\n\t\tTL.currentFrame=frame.startFrame;\r\n\t}else if(curF==frame.startFrame &...
[ "0.6581309", "0.64573795", "0.64250886", "0.6398056", "0.63606006", "0.6329677", "0.6323908", "0.61975414", "0.6124441", "0.6080462", "0.6057981", "0.60569906", "0.6051207", "0.6043517", "0.60190403", "0.5989353", "0.5973131", "0.5946341", "0.59404993", "0.5904459", "0.590348...
0.0
-1
use array to protect services in minification could also protect it by leaving it as was (only function passed not array with strings for parameters) and adding: DIController.$inject = ['$scope', '$filter']
function DIController($scope, $filter) { $scope.name = ""; $scope.upper = function() { var upCase = $filter('uppercase'); $scope.name = upCase($scope.name); }; $scope.imageChoice = "NY.jpg"; $scope.imageClick = function() { if($scope.imageChoice==="NY.jpg") { $scope.imageChoice = "Columbia.png"; } e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DIControllerMethod(\n $scope,\n $filter,\n $injector){\n $scope.name=\"John\";\n $scope.upper = function()\n {\n // first we get a reference to the pre defined filter uppercase\n var upCase = $filter('uppercase');\n $scope.name= upCase($scope.name);...
[ "0.7086725", "0.6626939", "0.6162876", "0.6144534", "0.5973243", "0.57459867", "0.56359136", "0.56359136", "0.56093574", "0.55968714", "0.54101634", "0.5394478", "0.53815734", "0.5364436", "0.53371763", "0.5333851", "0.5331679", "0.5293481", "0.52841914", "0.51839197", "0.517...
0.47745538
96
Get function to return an array of the units currently on the board.
function getUnitsOnBoard() { return unitsOnBoard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllUnits(gamestate) {\n return [].concat.apply([], gamestate.players.map(function (player) { return player.units; }));\n}", "units() {\n return this.growRight('#Unit').match('#Unit$')\n }", "get units() {\n return this._units;\n }", "function getUnits() {\n axios\n...
[ "0.6824175", "0.6611475", "0.64815205", "0.63609767", "0.61684835", "0.61657465", "0.6139461", "0.6077383", "0.5985145", "0.5835221", "0.5809518", "0.5726715", "0.5697715", "0.5688739", "0.5684203", "0.56716263", "0.5652571", "0.56423795", "0.56396484", "0.56186026", "0.55981...
0.8113645
0
This function initilizes the unit objects and returns them to be used elsewhere.
function createInitialUnitPositionsBlue() { "use strict"; var position = new BABYLON.Vector3(10, 1, 1.5); var unitArray = []; var unitName = "BlueSphere1"; var testUnitBlue = new primeUnit("blue", position, unitName) var index; var unitCatch; unitArray.push(testUnitBlue); unitsOnBoard.push(testUnitBlue); fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "createStartingUnits(units, startingObjectsList){\n var keys, unitInfo, unitCoords, amount;\n if (loadingSavedGame === true) {\n if(this.isPlayer() === true) {\n keys = currentData.units;\n //console.log(\"Player units\", keys);\n\n for(var i = 0; i < keys.length; i++){\n\n ...
[ "0.6798366", "0.67486906", "0.66722536", "0.6600362", "0.65864384", "0.6271206", "0.6246963", "0.6200768", "0.6109489", "0.60950816", "0.60360813", "0.59274703", "0.5885965", "0.5797936", "0.5794411", "0.57772845", "0.57229835", "0.5715954", "0.56662846", "0.5663131", "0.5657...
0.5934228
11
Function to create units and place them at static starting positions. This is for the red team.
function createInitialUnitPositionsRed() { "use strict"; var position = new BABYLON.Vector3(1, 1, 1.5); var unitArray = []; var unitName = "RedSphere1"; var testUnitRed = new primeUnit("red", position, unitName); var index; var unitCatch; /* testUnit.setVisualDisplay(null) { } */ unitArray.push(testUnitR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initCombatTestUnit() {\n Grid.units = [];\n\n const Rei = new Unit(listUnitPattern[0]);\n Rei.giveSpirit(listSpiritPattern[0]);\n const Shadow = new Unit(listUnitPattern[1]);\n\n const allyUnits = [Rei];\n const foeUnits = [Shadow];\n const availableAllyPos = [{x:4,y:2}];\n const a...
[ "0.7158114", "0.69923806", "0.69489884", "0.64632094", "0.6278957", "0.6256459", "0.61901134", "0.61532617", "0.6043511", "0.6037199", "0.60171795", "0.5968473", "0.592045", "0.5877386", "0.5847389", "0.58264494", "0.58184874", "0.58008087", "0.5784022", "0.5763879", "0.57339...
0.7338179
0
Function used for game initialization and setup
function gameSetUp() { "use strict"; var canvas; var player1Name = document.getElementById("player1Name").value; var player2Name = document.getElementById("player2Name").value; var player1 = new Player(player1Name, "red"); var player2 = new Player(player2Name, "blue"); var panel1; var panel2; initializeDis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init() {\n\t\t// reset will display start game screen when screen is designed\n\t\treset();\n\n\t\t// lastTime required for game loop\n\t\tlastTime = Date.now();\n\n\t\tmain();\n\t}", "function init() {\n setupModeButtons();\n setupSquares();\n resetGame();\n}", "function init() {\n //go t...
[ "0.777249", "0.7740619", "0.7674977", "0.7660935", "0.75547814", "0.7477751", "0.7474442", "0.7434281", "0.7410738", "0.74092436", "0.73920494", "0.7339113", "0.73182756", "0.7290157", "0.7280099", "0.7279171", "0.72459435", "0.72318745", "0.72223294", "0.7218226", "0.720893"...
0.0
-1
Reset the field value, close the search bar and load events
resetSearch() { this.setState({ searchBarExtended: false, searchInputValue: '', }) this.props.loadEvents() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reset_search()\n {\n $(rcmail.gui_objects.qsearchbox).val('');\n\n if (search_request) {\n search_request = search_query = null;\n fetch_notes();\n }\n }", "function resetSearchBar() {\n $('#cityInput').val('');\n}", "function clearValue(){clearSelecte...
[ "0.71061474", "0.70204663", "0.6905763", "0.6843079", "0.68129486", "0.67902356", "0.6768644", "0.67509496", "0.6687761", "0.6676251", "0.6655637", "0.6618589", "0.66106606", "0.6601133", "0.65875995", "0.65856874", "0.65823215", "0.6565593", "0.6555073", "0.65531653", "0.655...
0.67019403
8
Search events by keywords
onSearchChange(event) { this.setState( { searchInputValue: event.target.value }, // update the input value since we are using the DebounceInput `value` prop () => this.props.loadEvents(event.target.value) ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "tagSearch(event) {\n //Search for tags matching\n }", "async searchEventsByKeyword(keyword, cityCode) {\n\n\t\tconst url = 'events/search-extended'\n\t\tvar params = { q: keyword, city: cityCode}\n\n\t\ttry {\n\t\t\tconst res = await this.axiosClient.get(url, {params})\n\t\t\treturn _.map(res.data, r => _.p...
[ "0.68808407", "0.686493", "0.63007206", "0.6176444", "0.6176444", "0.61715627", "0.6125036", "0.6109251", "0.6075365", "0.6055041", "0.6010581", "0.5996133", "0.59542656", "0.5909258", "0.5881476", "0.5861682", "0.5851736", "0.5818155", "0.5815617", "0.58044714", "0.5787836",...
0.0
-1
return a function from an object mapping event types to functions
function Update (obj) { return function update (state, ev) { var fn = obj[Ev.type(ev)]; return fn(state[Ev.type(ev)], Ev.data(ev)); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "processEvent(e) {\n\t // having each type directly access methods to avoid one long switch\n\t try {\n\t \t return this[e.type](e)\n\t\t} catch (e) {\n\t\t return null;\n\t\t}\n\t}", "function EventDict() {}", "function fnc_handle_event( obj, arr_functions, event )\n{\n\tif ( arr_functions !== undefined )\n...
[ "0.62101734", "0.61140907", "0.60857004", "0.6079649", "0.6024405", "0.58747464", "0.5872058", "0.577463", "0.57562107", "0.573755", "0.5727499", "0.5600581", "0.5529191", "0.54586524", "0.54586524", "0.54586524", "0.54586524", "0.54586524", "0.54586524", "0.5446671", "0.5439...
0.0
-1
Static Server + watching scss/js/html files
function _watch() { browserSync.init({ notify: false, server: paths.dist }); gulp.watch(paths.src_fonts, _fonts); gulp.watch('.'+paths.src_js+'**/*.js', _js) gulp.watch(paths.src_html,_html) gulp.watch(paths.src_images,_images) gulp.watch(paths.sub_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function watch() {\n\tserverInit();\n\tgulp.watch(\"./app/scss/*.scss\", cssHandler);\n\tgulp.watch(\"./app/pug/*.pug\", htmlHandler);\n\tgulp.watch(\"./app/js/*.js\", jsHandler);\n}", "function watchAndServe() {\n browserSync.init({\n server: 'dist',\n });\n\n watch('src/styles/**/*.scss', styles);\n wat...
[ "0.84102803", "0.8023834", "0.7689999", "0.7664964", "0.7643494", "0.7561133", "0.75229496", "0.75068307", "0.74653244", "0.743877", "0.74378806", "0.7371995", "0.737046", "0.7332124", "0.7322981", "0.7319535", "0.72977674", "0.7262261", "0.7233798", "0.7211562", "0.7198208",...
0.7267168
17
When the date is changed, update the state
handleDateChange(date) { this.setState({ weekStartDate: date }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change() {\n\t\tthis.props.onUpdate(this.props.index, this.state.pastDate);\n this.setState({pastDate: !this.state.pastDate});\n }", "dateChange(date) {\n this.setState({\n date: date._d,\n startDate: date,\n })\n }", "onChangeDate(date) {\r\n this.setState({\r\n date: da...
[ "0.7960061", "0.75208664", "0.7508009", "0.7474452", "0.74502856", "0.73984504", "0.7375113", "0.7100472", "0.7088757", "0.7064567", "0.6987522", "0.69834006", "0.69629335", "0.6932865", "0.6916432", "0.69073355", "0.68802494", "0.68617004", "0.68552727", "0.6819348", "0.6811...
0.69785404
12
Restituisce un numero casuale da 1 a 5
function randomFive(min, max) { return Math.floor(Math.random() * (max - min)) + min; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sequencia4(num) {\n return 0\n}", "function cinco() {\n\t\t\t\t\treturn 5;\n\t\t\t\t}", "function sequencia3(num) {\n return 0\n}", "function ejercicio5(){\n let multiplo3=0, multiplo5=0, suma=0\n for (let x=1; x<101;x++){\n multiplo3=x%3\n multiplo5=x%5\n if(multiplo3==...
[ "0.64050394", "0.6357961", "0.624033", "0.61774576", "0.6135876", "0.60948014", "0.606039", "0.6051243", "0.6044179", "0.6038939", "0.6031652", "0.60158086", "0.6008493", "0.59962803", "0.59793717", "0.59689486", "0.596079", "0.5901506", "0.5886888", "0.5872186", "0.5853173",...
0.0
-1