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
when start time change, update minimum for end timepicker
function tpStartSelect( time, endTimePickerInst ) { $('#eventEndTime').timepicker('option', { minTime: { hour: endTimePickerInst.hours, minute: endTimePickerInst.minutes } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMinEnd() {\n var startInput = $('#startTime').val();\n var minEndHoursI = parseInt(startInput.substr(0,2)) + 1;\n var minEndHours = minEndHoursI.toString();\n var minEnd = minEndHours + ':00';\n\n if(minEndHoursI < 10) {\n minEnd = '0' + minEnd;\n }\n\n $('#endTime').attr('m...
[ "0.70501393", "0.69893634", "0.6877511", "0.68695986", "0.68284154", "0.6758376", "0.6740332", "0.67360353", "0.6614066", "0.6608822", "0.6605466", "0.6580637", "0.65753704", "0.6565106", "0.6565106", "0.6565106", "0.6565106", "0.6565106", "0.6554501", "0.6542067", "0.6539624...
0.74073637
0
when end time change, update maximum for start timepicker
function tpEndSelect( time, startTimePickerInst ) { $('#eventStartTime').timepicker('option', { maxTime: { hour: startTimePickerInst.hours, minute: startTimePickerInst.minutes } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tpStartSelect( time, endTimePickerInst ) {\n $('#eventEndTime').timepicker('option', {\n minTime: {\n hour: endTimePickerInst.hours,\n minute: endTimePickerInst.minutes\n }\n });\n}", "function setTimerangeControlsAndShow(start, end) {\n\n var start_el = $(\"ul.cri...
[ "0.6778443", "0.668955", "0.6671252", "0.66706795", "0.6659099", "0.66578066", "0.66392934", "0.65923476", "0.6579853", "0.653901", "0.641383", "0.63889414", "0.63889414", "0.63889414", "0.63889414", "0.63889414", "0.6387798", "0.6373602", "0.6366694", "0.636396", "0.6362479"...
0.7581091
0
renders the SPARQL result set for author or books
function renderABResults(data) { var results = data.results.bindings; $("#out").html(""); for (var i=0; i < results.length; i++) { renderCoreInfo(results[i].s.value, results[i].o.value, function(entityID, element){ findAliases(entityID, element); }); } $("#result").slideDown('200'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function outputSPARQLResults(results) {\n for (row in results) {\n printedLine = '';\n for (column in results[row]) {\n printedLine = printedLine + results[row][column].value + ' '\n }\n console.log(printedLine)\n }\n}", "async function author_books(request, response,...
[ "0.612425", "0.59430593", "0.5736721", "0.5712183", "0.57073164", "0.568704", "0.5667779", "0.5664102", "0.5646883", "0.5598541", "0.5534629", "0.55139774", "0.5513363", "0.55060595", "0.55053955", "0.5473632", "0.5470948", "0.54595935", "0.5440181", "0.5428944", "0.5420251",...
0.0
-1
determine the dataspace/endpoint to use, based on the entity characteristic
function getDataspace(entityID){ if(entityID.indexOf('http://dbpedia.org/') == 0) { // we have an entity from DBpedia return 'dbpedia'; } else { if(entityID.indexOf('http://data.europeana.eu/') == 0) { // we have an entity from Europeana return 'europeana'; } else { // ... in our own dataspace return'd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get endpoint() {\n return this.getStringAttribute('endpoint');\n }", "get endpoint() {\n return this.getStringAttribute('endpoint');\n }", "get endpoint() {\n return this.getStringAttribute('endpoint');\n }", "createEntity(entity) {\n this.endpoints[entity.name] = this.create...
[ "0.5751573", "0.5751573", "0.5751573", "0.55066603", "0.5458526", "0.53998536", "0.53757447", "0.53756946", "0.5271191", "0.5238896", "0.52249336", "0.5198128", "0.51057416", "0.50369716", "0.49764794", "0.48880842", "0.48442367", "0.48373774", "0.48220256", "0.4814152", "0.4...
0.61062473
0
You can extend webpack config here
extend(config, ctx) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "extend (config, { isDev, isClient }) {\n // if (isDev && isClient) {\n // config.module.rules.push({\n // enforce: 'pre',\n // test: /\\.(js|vue)$/,\n // loader: 'eslint-loader',\n // exclude: /(node_modules)/\n // })\n // }\n if (process.server && p...
[ "0.75780183", "0.7486256", "0.74535376", "0.7388344", "0.73616195", "0.72877634", "0.7282417", "0.7211369", "0.71547335", "0.7107632", "0.70970905", "0.7090317", "0.7045734", "0.7035934", "0.70036227", "0.699704", "0.69930667", "0.6985959", "0.69833404", "0.6973784", "0.69592...
0.0
-1
Now, need a function to check if a point is in the REGIONS and update occupancy count For convenience, we'll have it return also the list of region names occupied by the point.
function updateCount( x, y, regions ) { var occupied = []; // This will hold the list of regions occupied by this point for (var r in regions) { if (x >= regions[r].ul[0] && x <= regions[r].lr[0] && // Just like region checking code you already have, y <= regions[r].ul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateCount( x, y, regions, last_regions) {\n var occupied = []; \n for (var r in regions) {\n \n // If already in the region, expand the boundaries\n var adj_lr = [0,0]; \n var adj_ul = [0,0]; \n var A = 0.12; // A 12% proportional \"expans...
[ "0.6273071", "0.61583126", "0.612478", "0.5956536", "0.57393306", "0.5620982", "0.5575617", "0.5533832", "0.5528606", "0.55142516", "0.5503014", "0.5496335", "0.5484772", "0.54692155", "0.5466222", "0.5466222", "0.5466222", "0.5466222", "0.5462153", "0.5456806", "0.5456806", ...
0.7066985
0
And one to calculate percentage occupancy
function updatePercentOccupancy(regions, totalPeople) { for (var r in regions) if (totalPeople > 0) regions[r].pct_occupancy = regions[r].count / totalPeople; else regions[r].pct_occupancy = 0. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createpercentagementors(){\n return numberOfmentors * 100 / numberofpeople;\n}", "function createpercentagestudents(){\n return numberOfstudents * 100 / numberofpeople;\n}", "function percentageOfWorld1(populationPercent) {\n return populationPercent / 7900 * 100;\n}", "function percentageO...
[ "0.71940124", "0.6948852", "0.68311846", "0.68159413", "0.68159413", "0.66657865", "0.6651984", "0.6523907", "0.65175205", "0.64712125", "0.64403856", "0.6424207", "0.64210397", "0.6345331", "0.63246375", "0.6308628", "0.6255233", "0.62318313", "0.6217216", "0.61881846", "0.6...
0.7393708
0
Finally, a function to clear the counts
function clearCount(regions) { for (var r in regions) regions[r].count = 0 ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reset_counts() {\n return fast_c_api.reset_counts();\n}", "function reset_counts() {\n countrow0 = 0;\n countrow1 = 0;\n countrow2 = 0;\n countcol0 = 0;\n countcol1 = 0;\n countcol2 = 0;\n countdiag1 = 0;\n countdiag2 = 0;\n}", "function clear_count() {\n d3.select('#collec...
[ "0.7783436", "0.7662873", "0.7479591", "0.73142385", "0.7047007", "0.70145965", "0.69851893", "0.6948631", "0.6922196", "0.689009", "0.68723303", "0.6848394", "0.6838717", "0.68140984", "0.6778571", "0.6772114", "0.6702765", "0.66973615", "0.6692198", "0.66801065", "0.6627511...
0.72223
4
Helper function to put output from this example into the HTML
function mylog(s) { var DEBUG_ELEMENT = document.getElementById("debugOutput"); DEBUG_ELEMENT.innerHTML += s + "<br />"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateDetailOutput(){\n let outputDetails = `\n <div class=\"row\">\n <h1>Hello</h1>\n </div>\n `;\n $('#result').html(outputDetails);\n}", "function htmlWriter() {\n \n //writes the html for introduction\n htmlIntro();\n \n //creates the event functionality for example 1 and ...
[ "0.70619965", "0.68594307", "0.67265683", "0.67124426", "0.6711262", "0.6636868", "0.6628954", "0.6627464", "0.6594922", "0.6592161", "0.6577905", "0.65682554", "0.65614074", "0.65560573", "0.6516133", "0.6484571", "0.6477721", "0.64576244", "0.64547575", "0.64457166", "0.644...
0.0
-1
Actually show an example of the above functions
function doExample() { // Ok, let's test on some sample data // Exercise to reader is to handle Wilm's library track format // instead of this sample data. // Ours is an array of x, y - each representing a unique person's position var sample_tracks = [ [0.5, 0.7], // Expected to be in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exampleFunctionToRun(){\n\n }", "function example3 () {\n console.log('Inside example 3');\n}", "function example1() {\n\n function hi() {\n var name = arguments.length <= 0 || arguments[0] === undefined ? \"Guest\" : arguments[0];\n\n console.log(\"Hello, \" + name);\n }\n\n hi(); ...
[ "0.65537804", "0.588755", "0.5788945", "0.573871", "0.57336813", "0.56910056", "0.56602865", "0.563071", "0.5618028", "0.5607482", "0.5601467", "0.55841506", "0.55716455", "0.55716455", "0.55716455", "0.55554646", "0.5524215", "0.55006576", "0.5488018", "0.547353", "0.5471287...
0.0
-1
Service created lifecycle event handler
created () { this.tortoise = new Tortoise(this.settings.amqp.url, this.settings.amqp.options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "created() {\n this.onCreatedHandler();\n }", "initService() {\n\t\tthis.settings = new ServiceSettings();\n\t\tthis.service = new Service({\n\t\t\tonDisconnect: (hadError) => {\n\t\t\t\tthis.stopCancellableQueues(!!hadError, !!hadError);\n\t\t\t}\n\t\t});\n\t}", "constructor() { \n \n ...
[ "0.68104994", "0.62169826", "0.6168721", "0.6160913", "0.6160913", "0.6120587", "0.6102565", "0.60706156", "0.60706156", "0.60693103", "0.60516995", "0.6039917", "0.59990174", "0.5970325", "0.59458774", "0.59178203", "0.58980954", "0.5827469", "0.58196217", "0.57974803", "0.5...
0.0
-1
Service started lifecycle event handler
async started () { this.tortoise .on(Tortoise.EVENTS.CONNECTIONCLOSED, () => { this.logger.error('Tortoise connection is closed'); }) .on(Tortoise.EVENTS.CONNECTIONDISCONNECTED, (error) => { this.logger.error('Tortoise connection is disconnected', error); }) .on(Tortoise.EVENTS.CONNECTIONERROR,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function startService() {\n $log.log(TAG + 'starting');\n running = true;\n }", "started() {\n\n }", "started() {\n\n }", "started() {\n\n }", "function startService() {\n $log.log(TAG + 'starting.');\n running = true;\n }", "preStart() {\n }", "started() {\r\n\r\n...
[ "0.6500062", "0.64819014", "0.64819014", "0.64819014", "0.6467215", "0.6429847", "0.636004", "0.63335705", "0.62732744", "0.62657464", "0.6257874", "0.6257874", "0.6257874", "0.6257874", "0.6257874", "0.6257874", "0.6257874", "0.6257874", "0.62467724", "0.62467724", "0.624677...
0.0
-1
Service stopped lifecycle event handler
async stopped () { // await this.tortoise.destroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "stopped() {\n\n }", "stopped() {\n\n }", "stopped() {\n\n }", "stopped () {\n\n }", "stopped () {\n\n }", "stopped () {\n\n }", "stopped() {\r\n\r\n\t}", "stopped() { }", "destroy() {\n logger.log({level: 'info', type: 'service', message: 'Destroying Service'});\n this.end = true;...
[ "0.71126926", "0.71126926", "0.71126926", "0.7091914", "0.7091914", "0.7091914", "0.69909155", "0.69593114", "0.69322056", "0.6929035", "0.6929035", "0.6929035", "0.6929035", "0.6929035", "0.6915513", "0.6911287", "0.6911287", "0.6911287", "0.6911287", "0.6911287", "0.6911287...
0.65221643
56
1. get query parameters after "?"
function getOtherPerameter(queryParams, searchParams) { const paramsList = ["diet", "cuisine", "intolerance"]; paramsList.forEach((param) => { if (queryParams[param]) { searchParams[param] = queryParams[param]; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getParams() {\n return qs.parse(window.location.search);\n}", "function parse_get_parameters() {\n if (location.search.length < 1) {\n return null;\n }\n else {\n var parameters = [];\n location.search\n .substr(1)\n .split(\"&\")\n .forEac...
[ "0.7727021", "0.760963", "0.7515498", "0.7434077", "0.74073833", "0.73919857", "0.7385734", "0.73817", "0.7380918", "0.7376429", "0.7375052", "0.7362851", "0.73429626", "0.73380303", "0.73380303", "0.7337449", "0.73247814", "0.73027855", "0.73016655", "0.7297285", "0.72901815...
0.0
-1
2. returns all info of the suitable recipes
async function searchRecipe(search_params) { try { const search_response = await axios.get(`${api_domain}/search`, { params: { query: search_params.query, cuisine: search_params["cuisin"], diet: search_params["diet"], intolerances: search_params["intolerances"], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRecipes() { \nrecipes =\n [new recipe(\n 'Pasta Bolognese',\n 20,\n ['tomato sauce', 'pasta', 'minced meat', 'onion', 'red wine', 'salt', 'pepper', 'garlic'],\n [''],\n 'Boil pasta, mix the rest in a pan, add some salt and peppar.'),\n new recipe(\n 'Vege...
[ "0.72833544", "0.69380355", "0.6843432", "0.681759", "0.6800895", "0.6800712", "0.6722685", "0.6551553", "0.6536119", "0.652363", "0.6493362", "0.647222", "0.6447233", "0.63712645", "0.6366614", "0.63550705", "0.63537383", "0.6318695", "0.6290036", "0.62774086", "0.62387", ...
0.56975824
55
3. returns the ids of the suitable recipes
function getRecipesID(search_query) { let recipes = search_query.data.results; recipes_id_list = []; recipes.map((recipe) => { console.log(recipe.title); recipes_id_list.push(recipe.id); }); return recipes_id_list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extracSearchResukttsIds(search_response) {\n let recipes = search_response.data.results;\n recipes_id_list = [];\n recipes.map((recipe) => {\n recipes_id_list.push(recipe.id);\n });\n return recipes_id_list;\n}", "getRecipesByIngredients(ingredients, recipes) {\n let matchedRecipes = [];\n ...
[ "0.7192693", "0.71671414", "0.71526086", "0.67795056", "0.6592513", "0.64835167", "0.6386102", "0.6315385", "0.6302829", "0.6286695", "0.6230133", "0.6200043", "0.61996555", "0.6130713", "0.6130392", "0.60896903", "0.6065082", "0.6023731", "0.60198116", "0.5998721", "0.595005...
0.6924916
3
4. return the info from the ids of the recipes
async function getRecipesInfo(recipes_id_list) { try { let promises = []; recipes_id_list.map((id) => promises.push( axios.get(`${api_domain}/${id}/information`, { params: { includeNutrition: false, apiKey: process.env.spooncular_apiKey, }, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function getFullRecipes(id) {\r\n recipes_id_list = [];\r\n recipes_id_list.push(id);\r\n let infoRecup = await getRecipesInfo(recipes_id_list);\r\n console.log(infoRecup);\r\n let fullRecipe = await extractFullRecipeData(infoRecup);\r\n \r\n return fullRecipe;\r\n}", "function getRecipesID(search_q...
[ "0.73608094", "0.7339233", "0.71802825", "0.71695745", "0.7063172", "0.7024427", "0.7019076", "0.69869673", "0.69386864", "0.6937705", "0.69181365", "0.6899724", "0.6894267", "0.68762976", "0.68403053", "0.6812028", "0.67945385", "0.67581505", "0.67230636", "0.67047143", "0.6...
0.73002046
2
5. returns the info of the preview recipe
function extractRelevantRecipeData(recipes_Info) { return recipes_Info.map((recipe_info) => { const { id, title, readyInMinutes, aggregateLikes, vegetarian, vegan, glutenFree, image, } = recipe_info.data; return { id: id, title: t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "renderPreview(recipe) {\n // clear the preview before adding the rest\n this.previewEl.empty();\n // we can't render what we don't have...\n if (!recipe)\n return;\n if (this.settings.showImages) {\n // add any files following the cooklang conventions to the...
[ "0.70967764", "0.6058525", "0.6023357", "0.59585524", "0.59530675", "0.5936562", "0.58405334", "0.5832025", "0.5819325", "0.5797582", "0.5745667", "0.57197577", "0.57149386", "0.56951904", "0.5639563", "0.563247", "0.561819", "0.55952185", "0.5574977", "0.5573542", "0.5564050...
0.54888433
28
5. returns the info of the preview recipe
function extractRelevantMYRecipeData(recipes_Info) { return recipes_Info.map((recipe_info) => { const { id, title, readyInMinutes, aggregateLikes, Vegetarian, vegan, glutenFree, Image, } = recipe_info; return { id: id, title: titl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "renderPreview(recipe) {\n // clear the preview before adding the rest\n this.previewEl.empty();\n // we can't render what we don't have...\n if (!recipe)\n return;\n if (this.settings.showImages) {\n // add any files following the cooklang conventions to the...
[ "0.70967764", "0.6058525", "0.6023357", "0.59585524", "0.59530675", "0.5936562", "0.58405334", "0.5832025", "0.5819325", "0.5797582", "0.5745667", "0.57197577", "0.57149386", "0.56951904", "0.5639563", "0.563247", "0.55952185", "0.5574977", "0.5573542", "0.55640507", "0.55597...
0.561819
16
returns the id attribute
function extractRandomRecipeId(recipes_Info) { return recipes_Info.map((recipe_info) => { const { id } = recipe_info; return { id, }; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get id() {\n return new ElementAttribute(this.get(0), \"id\");\n }", "get id() {\n return new ElementAttribute(this.get(0), \"id\");\n }", "get id() {\n return this.getAttributeValue(\"id\");\n }", "getId() {\n return this.getAttribute('id');\n }", "get id() {\n ...
[ "0.8680562", "0.8680562", "0.84397197", "0.8325146", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", "0.8250646", ...
0.0
-1
eturns the full attributes
function extractFullRecipeData(recipes_Info) { return recipes_Info.map((recipe_info) => { const { id, title, readyInMinutes, aggregateLikes, vegetarian, vegan, glutenFree, image, servings, instructions, } = recipe_info.data; retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getAttributes() {}", "static get attributes() {\n return {\n id: 'id',\n firstname: 'firstname',\n lastname: 'lastname',\n othernames: 'othernames',\n phoneNumber: 'phone_number',\n email: 'email',\n username: 'username',\n password: 'password',\n registered: 'crea...
[ "0.81249523", "0.77541405", "0.770967", "0.74421", "0.7389667", "0.7280361", "0.72798383", "0.7239335", "0.72317874", "0.7195629", "0.71326673", "0.7124726", "0.7051427", "0.7051339", "0.7033861", "0.6873653", "0.6800026", "0.6789127", "0.67559177", "0.67329335", "0.66738033"...
0.0
-1
returns the full recipe
async function getFullRecipes(id) { recipes_id_list = []; recipes_id_list.push(id); let infoRecup = await getRecipesInfo(recipes_id_list); console.log(infoRecup); let fullRecipe = await extractFullRecipeData(infoRecup); return fullRecipe; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeFullRecipe(recipe) {\n const {\n id,\n title,\n readyInMinutes,\n aggregateLikes,\n vegetarian,\n vegan,\n glutenFree,\n image,\n servings,\n } = recipe;\n\n let arrInstruction = [];\n //check if instarction are empty\n if (\n recipe.instructions == \"\" ||\n !rec...
[ "0.6730957", "0.6021052", "0.6011153", "0.5963641", "0.5931591", "0.5890681", "0.5689662", "0.5666551", "0.56468827", "0.5595694", "0.55624896", "0.5548979", "0.5516668", "0.5507191", "0.5479227", "0.54785407", "0.5456378", "0.5446132", "0.5403266", "0.5398246", "0.53982043",...
0.5892028
5
returns the ingrediants of the recipe
async function getIngrediants(id) { try { const promise = await axios.get( `${api_domain}/${id}/ingredientWidget.json`, { params: { includeNutrition: false, apiKey: process.env.spooncular_apiKey, }, } ); return promise.data; } catch (erro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ingredients(food) {\n if (food.length !== 0) {\n const listIng = [];\n for (let i = 1; i <= 15; i += 1) {\n const ing = `strIngredient${i}`;\n listIng.push(food[0][ing]);\n }\n return listIng;\n }\n return null;\n}", "getAllIngredients() {\n this.menu.map(function (dish) ...
[ "0.69854224", "0.68235606", "0.6657312", "0.6590159", "0.64250165", "0.62891805", "0.62810063", "0.62139624", "0.6207914", "0.61806977", "0.61576045", "0.6009964", "0.59592426", "0.5952193", "0.5935483", "0.59319544", "0.59160525", "0.59092396", "0.5899069", "0.5880988", "0.5...
0.56270075
38
This method will make sure that we will only see "for the first time ever" message once:
componentWillMount() { alert('AND NOW, FOR THE FIRST TIME EVER... FLASHY!!!!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get firstNewMessage()\n\t{\n\t\treturn true;\n\t}", "async function runThis() {\n if (!sentMessage) {\n await axios\n .put(\"/api/friends/messages\", {\n jwt: user,\n chatInfo: whichChat,\n })\n .then((data) => {\n setMessagesPerChat(data.da...
[ "0.6661524", "0.59441584", "0.590781", "0.5886097", "0.5871072", "0.58261395", "0.58148324", "0.5781471", "0.57308215", "0.5705699", "0.5699419", "0.5667561", "0.5666494", "0.56369853", "0.5631136", "0.5625418", "0.5621865", "0.5602751", "0.55737406", "0.5561608", "0.5559117"...
0.0
-1
bind JS to the p5 sketch for two way communication
function bindJavaScript() { if(Processing) { pjs = Processing.getInstanceById("photoframe"); } if (pjs !== undefined && pjs.bindJavaScript !== undefined) { pjs.bindJavaScript(this); bound = true; } if(!bound) setTimeout(bindJavaScript, 250); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setup() {\n socket.on(\"script\", function (firstmatrix) {\n createCanvas(side * w, side * h);\n background(\"#acacac\");\n frameRate(5);\n console.log(\"Start\");\n });\n}", "function setup() {\n // setup canvas: target\n canvas = createCanvas(640, 480, WEBGL);\n...
[ "0.67737925", "0.6733655", "0.6657437", "0.6639618", "0.6531692", "0.6523189", "0.65097415", "0.6464419", "0.64636517", "0.64453804", "0.6392914", "0.638362", "0.6350869", "0.6342546", "0.6332467", "0.63163906", "0.6290319", "0.62767494", "0.62607634", "0.62303436", "0.618234...
0.59125537
43
Helper method for defining associations. This method is not a part of Sequelize lifecycle. The `models/index` file will call this method automatically.
static associate({ User }) { this.belongsTo(User, { foreignKey: 'userId' }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static associate(models) {\n // define association here\n // This is how Sequelize knows to create \"magic methods\"\n // These are functions that can automatically pull\n // related data.\n // For example: If I have a User object\n // I can call `await user.getContacts()` to get an\n...
[ "0.76413774", "0.75078297", "0.7312548", "0.7306819", "0.7306819", "0.7306819", "0.7294662", "0.72838104", "0.7278665", "0.72591484", "0.72591484", "0.72591484", "0.72591484", "0.72591484", "0.72591484", "0.72591484", "0.72591484", "0.72591484", "0.72591484", "0.72591484", "0...
0.0
-1
vuerouter v3.0.1 (c) 2017 Evan You
function r(e,t){0}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jj(t,e,n,r,i,o,a,s){var l=(\"function\"===typeof n?n.options:n)||{};return l.__file=\"source.vue\",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=r,l}", "function TM(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return ...
[ "0.60794616", "0.60604215", "0.58815044", "0.58643883", "0.5863571", "0.583801", "0.58183414", "0.57860523", "0.5745682", "0.5725272", "0.5636772", "0.5615987", "0.56147796", "0.5608149", "0.5605216", "0.5597615", "0.5582921", "0.55762595", "0.55645746", "0.555929", "0.555893...
0.0
-1
initializes the Select All/Unselect All buttons
function initSelectAllText() { $.each($("div.category"), function(index, element) { updateButtonCaption($(element)); }); selectAllToggle(); bindCheckboxes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initSelectAllButton() {\n window.bindsSelectAllButton = document.querySelector('.binds-select-all-button');\n bindsSelectAllButton.addEventListener('click', () => {\n const shouldSelect = bindsSelectAllButton.innerHTML !== 'Deselect all';\n const events = document.querySelectorAll('.lo...
[ "0.77884924", "0.74819005", "0.700804", "0.6925195", "0.6870794", "0.6810934", "0.6712095", "0.67108595", "0.6663902", "0.66060656", "0.65555453", "0.6554459", "0.6522641", "0.6510466", "0.6497393", "0.6430858", "0.6421864", "0.6420314", "0.63993746", "0.63861924", "0.6364566...
0.6858879
5
Toggles between Select All and Unselect All
function selectAllToggle() { $('button.select-all').click(function(){ var $checkboxes = $(this).closest("div.category").find("input:checkbox"); if ( $(this).text() === "Select All" ) { $checkboxes.prop('checked', true); $(this).text('Unselect All'); } else { $checkboxes.removeAttr('checked'); $(this)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "toggleAll() {\n if (this.data) {\n var allChecked = this._allChecked();\n this.data.forEach(function (item) {\n if (allChecked) {\n this.deselect(item);\n } else {\n this.select(item);\n }\n }...
[ "0.8181895", "0.8089281", "0.8008008", "0.7960861", "0.7544433", "0.750444", "0.74944854", "0.7454248", "0.7454248", "0.7423849", "0.74022835", "0.73803145", "0.73375577", "0.73375577", "0.73375577", "0.73375577", "0.73375577", "0.73375577", "0.73375577", "0.73375577", "0.733...
0.8378488
0
uploads the profile photo by submitting the image upload form Called after selecting a photo and hitting "Open"
function upload() { // indicate that the uploading is starting. $element = $('.photo-display .progress-element').addClass('uploading'); $("#photo-upload").submit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uploadAvatar(){\n\t$('#avatarPhoto').click();\n}", "function submitAvatarUpload() {\n s.avatarSubmit.click();\n }", "function uploadFile() {\n ImagePicker.openPicker({\n width: 300,\n height: 400,\n cropping: true,\n }).then(image => {\n let formData = new FormData(...
[ "0.73156977", "0.72670704", "0.7220986", "0.72084135", "0.6969486", "0.6957006", "0.69031954", "0.68955386", "0.68698496", "0.68483293", "0.68257856", "0.6800156", "0.6799265", "0.6794325", "0.67493784", "0.6706079", "0.6682484", "0.6682484", "0.6667354", "0.66547644", "0.665...
0.64637226
31
Opens a dialog for the user to select an image
function selectImageFile() { $(".hidden-uploader").click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openAddonImageSelectDialog(title, onInsert){\r\n\t\t\r\n\t\topenAddonMediaSelectDialog(title, onInsert, \"image\");\r\n\t\r\n\t}", "function selectFilePrompt() {\n s.avatarInput.click();\n }", "function imageSelect(){\n\tvar getPhoto = document.getElementById(\"userPhoto\");\n\tgetPhoto.clic...
[ "0.7240377", "0.719328", "0.7165524", "0.70547575", "0.7038906", "0.6976325", "0.69628924", "0.6877655", "0.68571615", "0.6722417", "0.66752005", "0.666438", "0.66589206", "0.66114295", "0.6547773", "0.6522441", "0.65011394", "0.6446272", "0.64383364", "0.64325154", "0.643144...
0.6365926
29
Used for the State/Province datalist
function downloadRegions() { return $.ajax({ 'method': 'GET', 'url': '/api/regions', 'success': function(response) { regions = response; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadStateList() {\n\tLookup.all({where: {'lookup_type':'STATE_OR_PROVINCE', 'context_code':'US'}}, function(err, lookups){\n\t this.state_or_province_list = lookups;\n\t next(); // process the next tick. If you don't put it here, it will stuck at this point.\n\t}.bind(this));\n}", "function country_loa...
[ "0.6620086", "0.6394716", "0.6347222", "0.6332341", "0.63266575", "0.6311169", "0.62887037", "0.6200474", "0.61963916", "0.61473954", "0.61002356", "0.60960984", "0.60924774", "0.6073909", "0.60663515", "0.6059267", "0.6055332", "0.60500336", "0.6028249", "0.60278475", "0.601...
0.0
-1
if this is youtube page which is part of a playlist , show all videos and the option to queue them all
function initYouTubeList(){ var tabUrl = window.location.href; var youTubeListId = getURLParameter(tabUrl, 'list'); if (youTubeListId){ extractVideosFromYouTubePlaylist(youTubeListId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function requestVideoPlaylist(playlistId, pageToken) {\n document.getElementById('video-container').innerHTML = \"\";\n //$('#video-container').html('');\n var requestOptions = {\n playlistId: playlistId,\n part: 'snippet',\n maxResults: 10\n };\n if (pageToken) {\n reque...
[ "0.7227631", "0.71699893", "0.7151478", "0.7100595", "0.7024597", "0.6921324", "0.6872011", "0.6865557", "0.68642366", "0.67899865", "0.67800325", "0.6772966", "0.6730324", "0.66978097", "0.6683921", "0.6671242", "0.66676575", "0.66524106", "0.65883195", "0.6587477", "0.65738...
0.7091797
5
Adds a little kodi tv icon on each thumnail corner This allows quick play of the video from youtube video search results. Don't have to right click and look in context menu
function injectIcon(){ // attach the icon to all thumbnails first $('.yt-lockup-thumbnail').prepend('<a class="playquick-link" target="_blank"> \ <img class="yt-play-icon" src="' + chrome.extension.getURL("images/icon.png") + '"/></a>'); // apply the appropriate css $('img.yt-play-icon').css({...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insertYTRunButton() {\r\n\telems = [];\r\n\tvids = document.getElementsByClassName('video-entry');\r\n\tfor (x in vids) {\r\n\t\tlnk = vids[x].getElementsByTagName('a').item(0);\r\n\t\telems.push([vids[x], lnk.href]);\r\n\t}\r\n\r\n\tvar butt = '<button class=\"yt-uix-button app-launcher\" ' +\r\n\t\t\t's...
[ "0.62027943", "0.601339", "0.5938122", "0.5840172", "0.57957995", "0.5697952", "0.56924105", "0.56411284", "0.56395423", "0.56022835", "0.5602072", "0.5564037", "0.55465347", "0.5545897", "0.55042547", "0.55029076", "0.5460447", "0.54416007", "0.54368144", "0.5432896", "0.543...
0.6378971
0
handles the window object's resize event
handleEvent({ target: { innerHeight, innerWidth }}) { // the canvas element needs it's `attributes` set, // instead part of his `style` attribute, as the canvas otherwise // crops this.domNode.setAttribute('height', innerHeight); this.domNode.setAttribute('width', innerWidth); // also set as pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onWindowResize() {\n updateSizes();\n }", "function onWindowResize() {\n\n\t\t\t}", "function windowResized() {\n resize();\n redraw();\n}", "onWindowResize() {\n\t\tthis.windowHeight = this.getWindowHeight();\n\t\tthis.updatePosition();\n\t}", "function handleResize(){\r\n console.lo...
[ "0.83850515", "0.8346477", "0.8210727", "0.81136227", "0.80728227", "0.79743147", "0.7938107", "0.79179496", "0.7912727", "0.7875622", "0.78755456", "0.7860504", "0.7859486", "0.7843004", "0.7831314", "0.7831314", "0.7831314", "0.7831314", "0.7831314", "0.7831314", "0.7831314...
0.0
-1
rack upp handen nar "locked" grejen fungerar.
function stopGame() { gameState.locked = true; gameState.isRunning = false; setTimeout(function(){ gameState.locked = false; }, 1000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "unlocked(){return true}", "if (/*ret DOES NOT contain any hint on any of the arguments (lock is cracked)*/) {\n break; //Break loop (since further attempts are not neccessary)\n }", "if (/*ret DOES NOT contain any hint on the result (lock is cracked)*/) {\n break; ...
[ "0.6522636", "0.64842254", "0.61311877", "0.59008425", "0.5896645", "0.5803272", "0.5757494", "0.5751415", "0.5721395", "0.5702528", "0.57018137", "0.5632981", "0.56137717", "0.5603949", "0.55901957", "0.5572445", "0.5564623", "0.55426925", "0.5540023", "0.5537558", "0.551556...
0.0
-1
rack upp handen nar bollen borgar om fran mitten.
function insertBall() { const ball = new Ball( 640 / 2, // x 480 / 2, // y 16, // width 16, // height ctx, // papper "white"// farg ); gameObjects.push(ball); // tryck in i listan }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "up() {}", "up () {\n let first = this.props.game.getTileList();\n this.props.game.board.moveTileUp();\n let second = this.props.game.getTileList();\n if (this.moveWasLegal(first, second) === false) {\n this.updateBoard();\n return;\n } else {\n this.props.game.placeTile();\n this.u...
[ "0.63084924", "0.54948217", "0.541524", "0.5398986", "0.5395202", "0.5363203", "0.5350282", "0.53470635", "0.53470343", "0.53261036", "0.53207874", "0.52819675", "0.5274909", "0.52729344", "0.52654934", "0.5260656", "0.523019", "0.5214497", "0.5195703", "0.5195167", "0.519485...
0.0
-1
Main Chart Random Numbers
function random(min, max) { return Math.floor(Math.random() * (max - min + 1) + min); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function random() {\n let value = Math.floor(Math.random() * maxValue * 0.4) + maxValue * 0.8;\n chart.arrows[0].setValue(value);\n chart.axes[0].setTopText(Math.round(value).toLocaleString('en-us') + \" kW/h\");\n ...
[ "0.7170884", "0.68754894", "0.68637323", "0.674545", "0.67051005", "0.66611063", "0.665801", "0.6590996", "0.65784824", "0.6564911", "0.64912033", "0.64545655", "0.6410666", "0.6368091", "0.6362381", "0.63588595", "0.6333778", "0.6323139", "0.6315029", "0.62917954", "0.625615...
0.0
-1
Add fugure to principal scene
function addScene(item) { console.log(item); scene.add(item) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Scene_SumEvoFus() {\n this.initialize.apply(this, arguments);\n }", "function onUpdate(framework) {\n var feather = framework.scene.getObjectByName(\"feather\"); \n if (feather !== undefined) {\n // Simply flap wing\n var date = new Date();\n feather.rotateZ(Math.sin(da...
[ "0.5774582", "0.57557076", "0.57313794", "0.5705805", "0.5679522", "0.5673207", "0.56713355", "0.5665152", "0.56622857", "0.56445986", "0.56395906", "0.558189", "0.55672145", "0.5557031", "0.553895", "0.5532073", "0.55289406", "0.55204296", "0.55131495", "0.54985327", "0.5481...
0.5151347
85
create new sprite (automatically triggered on demand)
createGraphic(type, color, p1, p2) { let graphic = new PIXI.Graphics(); graphic.beginFill(color); switch (type) { case "rect": case "Rect": case "r": case "R": case "Rec": graphic.drawRect(0, 0, p1, p2); break; default: graphic.drawCircle(0, 0, p1)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeNewSprite(id) {\n var firstdiv = document.getElementById(\"controls\"); \n sprites[id] = document.createElement(\"div\");\n sprites[id].style.backgroundColor = \"#9ee\";\n sprites[id].style.opacity = \"0.8\";\n sprites[id].style.position = \"absolute\";\n sprites[id].style.zIndex = -...
[ "0.726938", "0.7177106", "0.7143552", "0.71182865", "0.70224327", "0.69660985", "0.6940888", "0.68667424", "0.6793181", "0.6715311", "0.6710543", "0.66611093", "0.6642552", "0.66411144", "0.6571171", "0.6567258", "0.6542411", "0.6537357", "0.65225625", "0.65170676", "0.651064...
0.0
-1
return a sprite to 'PoolObjects' arr, to be reused again
returnGraphic(graphic) { console.log('Graphic removed'); this.Graphics.push(graphic); this.GraphicsLength++; if (this.onReturn) this.onReturn(graphic, 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getGraphic(type, color,boolean, p1, p2) { //return a PIXI.Rect/Circle (Graphics) obj\n let obj_temp;\n if (this.GraphicsLength == 0) //check if 'PoolObjects' arr is empty\n {\n obj_temp = this.createGraphic(type, color, p1, p2); //if so, create a new sprite\n if (this.onCreate) //invoke callback...
[ "0.6937257", "0.6652042", "0.6636208", "0.6474743", "0.6450803", "0.62178993", "0.60645884", "0.60348994", "0.6007548", "0.5867051", "0.58633566", "0.5849001", "0.58040065", "0.57717353", "0.57694376", "0.57654405", "0.5762074", "0.575267", "0.5738726", "0.5708041", "0.568499...
0.0
-1
get a sprite from 'PoolObjects' arr, if its empty, then create a new sprite (trigger createSprite method)
getGraphic(type, color,boolean, p1, p2) { //return a PIXI.Rect/Circle (Graphics) obj let obj_temp; if (this.GraphicsLength == 0) //check if 'PoolObjects' arr is empty { obj_temp = this.createGraphic(type, color, p1, p2); //if so, create a new sprite if (this.onCreate) //invoke callback func when...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Pool(maxSize) {\n var size = maxSize; // Max bullets allowed in the pool\n this.pool = [];\n /*\n * Populates the pool array with Bullet objects\n */\n this.init = function (object) {\n if (object == \"bullet\") {\n for (var i = 0; i < size; i++) {\n //...
[ "0.635609", "0.6327866", "0.61475205", "0.603618", "0.60001826", "0.596335", "0.5913748", "0.5655991", "0.565141", "0.56378704", "0.56376487", "0.56294864", "0.5593524", "0.55859995", "0.558229", "0.55713725", "0.55491656", "0.553677", "0.5519467", "0.55144566", "0.54832554",...
0.7018707
0
setHeaderText(), Sets Up the Header tag for own the next player is
setHeaderText(tournament) { // If it's the human's turn, prompt them if (tournament.getHumanTurn()) { document.getElementById("GameBoardHeaderText").innerHTML = "Your Move"; } // If it's the computer's turn, prompt the user else { document.getElementById("GameBoardHeaderText").innerHTML = "Computer's Mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set headerText(aValue) {\n this._headerText = aValue;\n this._widget.setAttribute(\"headerText\", aValue);\n }", "function renderHeader(){\n const currentContent = document.querySelector(\".header\");\n currentContent.style.fontSize = \"x-large\";\n const replaceWith = `<h1>Current Score: <br...
[ "0.6637172", "0.6586921", "0.65494835", "0.6438437", "0.6428816", "0.62372535", "0.62200624", "0.6207114", "0.6154441", "0.6152883", "0.6092447", "0.6065013", "0.605183", "0.60425955", "0.60283864", "0.60079426", "0.60040635", "0.5964808", "0.593967", "0.5938356", "0.59381104...
0.6875853
0
showPlayerScores(), Set's up the score views for both players
showPlayerScores(human, computer) { // Showing the Computer's Score document.getElementById("computerScore").innerHTML = computer.getTournamentScore(); // Showing the Human's Score document.getElementById("humanScore").innerHTML = human.getTournamentScore(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayScores(playerScore, computerScore) {\n displayPlayerScore(playerScore)\n displayComputerScore(computerScore)\n}", "function updateScore() {\n p1Score.innerHTML = `${player1.name} : ${player1.score}`;\n p2Score.innerHTML = `${player2.name} : ${player2.score}`;\n // announce final winner o...
[ "0.70596266", "0.7022032", "0.6963715", "0.6871564", "0.6865254", "0.6785961", "0.67580855", "0.6754685", "0.6688482", "0.6674677", "0.6642167", "0.66261643", "0.66232836", "0.65852106", "0.65695983", "0.6560962", "0.6559754", "0.6516799", "0.6508115", "0.65024257", "0.648862...
0.6500501
20
showComputerHand(), Shows the computers hand
showComputerHand(computer) { // Blank Card Image var blankCard = "images/others/blank_card.png"; // Set all card slots to the blank image document.getElementById("c_card_1").src = blankCard; document.getElementById("c_card_2").src = blankCard; document.getElementById("c_card_3").src = blankCard; document...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Hand(props) {\n var els = [];\n if (!!props.currentHand.result) {\n els.push(e(HandResult, props));\n }\n return e('div', null, 'The hand is going');\n}", "viewHand() {\n console.log(\"Printing the hand of player [\" + this.name + \"]\");\n this.cards.forEach(card => {\n...
[ "0.66693175", "0.657222", "0.63588274", "0.62751037", "0.6189145", "0.6123583", "0.6013151", "0.5892337", "0.5855177", "0.5847243", "0.5835938", "0.5802352", "0.57751507", "0.5764264", "0.5764046", "0.5735219", "0.5730444", "0.57056826", "0.5696927", "0.5651218", "0.5646859",...
0.7803148
0
setUpComputerPileView(), Shows the Computer's Pile
setUpComputerPileView(computer) { // Get the Computer's Pile View var computerPileView = document.getElementById("computerPileView"); // Clear all the card images from the view while (computerPileView.hasChildNodes()) { computerPileView.removeChild(computerPileView.lastChild); } // Loop through the Com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setUpHumanPileView(human) {\n\t\t// Get the Human's Pile View\n\t\tvar humanPileView = document.getElementById(\"humanPileView\");\n\n\t\t// Clear all the images from the view\n\t\twhile (humanPileView.hasChildNodes()) {\n\t\t\thumanPileView.removeChild(humanPileView.lastChild);\n\t\t}\n\n\t\t// Loop through the h...
[ "0.67613935", "0.5762592", "0.5641896", "0.55323225", "0.55261266", "0.54877114", "0.544474", "0.5441461", "0.5428308", "0.536397", "0.5346355", "0.5318375", "0.5317215", "0.52954876", "0.5267602", "0.52515465", "0.524682", "0.5243241", "0.5220016", "0.5212203", "0.5198427", ...
0.7774396
0
setUpHumanPileView(), Shows the Human's Pile
setUpHumanPileView(human) { // Get the Human's Pile View var humanPileView = document.getElementById("humanPileView"); // Clear all the images from the view while (humanPileView.hasChildNodes()) { humanPileView.removeChild(humanPileView.lastChild); } // Loop through the human's pile for (var i = 0; i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setUpComputerPileView(computer) {\n\t\t// Get the Computer's Pile View\n\t\tvar computerPileView = document.getElementById(\"computerPileView\");\n\n\t\t// Clear all the card images from the view\n\t\twhile (computerPileView.hasChildNodes()) {\n\t\t\tcomputerPileView.removeChild(computerPileView.lastChild);\n\t\t}...
[ "0.66180706", "0.5502168", "0.54986876", "0.54187495", "0.52833426", "0.52429235", "0.52154005", "0.51826614", "0.51514834", "0.51227313", "0.5119503", "0.51056296", "0.51025003", "0.5089309", "0.5087597", "0.50662917", "0.5062329", "0.50505006", "0.5047641", "0.5045837", "0....
0.78975147
0
setupHumanHandView(), Shows the Human's Hand and adds the event listeners for each the card
setupHumanHandView(human, move, humanTurn) { // Get the Human's hand views var humanHandView = document.getElementById("humanHandView"); // Clear all the images from the view while (humanHandView.hasChildNodes()) { humanHandView.removeChild(humanHandView.lastChild); } var cardSelected = [false, false, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "initPlayerVsComputer() {\n this.playerTwoSection.appendChild(this.createAvatarElForHand());\n\n // For each hand, create an avatar and bind click event\n this.game.hands.forEach(hand => {\n const iEl = this.createAvatarElForHand(hand);\n this.playerOneSection.appendChild(...
[ "0.6429934", "0.62787694", "0.59971553", "0.5979944", "0.5940717", "0.5907653", "0.5885618", "0.58453625", "0.5837822", "0.58281386", "0.58020717", "0.5740373", "0.5725578", "0.5706924", "0.56942314", "0.56833947", "0.56563866", "0.564789", "0.5629412", "0.5627806", "0.562632...
0.7798281
0
setUpTableBuildViews(), Shows the builds that are on the table
setUpTableBuildView(table, move, humanTurn) { // Get the Table Build View var tableBuildView = document.getElementById("tableBuildView"); // Clear all the images from the view while (tableBuildView.hasChildNodes()) { tableBuildView.removeChild(tableBuildView.lastChild); } var buildSelected; var table...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function class_buildTable()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tvar dr;\r\n\t\t\tvar ds = new Date();\r\n\r\n\t\t\tif ( currentViewType === \"1\" )\r\n\t\t\t{\r\n\t\t\t\tclass_buildTableDetail();\r\n\t\t\t}\r\n\t\t\telse if ( currentViewType === \"2\" )\r\n\t\t\t{\r\n\t\t\t\tclass_buildTableBigImage();\r\n\t\t\t}\...
[ "0.6505435", "0.64769125", "0.63965654", "0.6251868", "0.61315334", "0.57516646", "0.5605343", "0.5541724", "0.5528269", "0.5527237", "0.55199707", "0.54566616", "0.5436236", "0.5280215", "0.52590513", "0.52590513", "0.52552134", "0.52408516", "0.5224428", "0.521563", "0.5211...
0.72416055
0
setUpTableCardView(), Shows the Loose cards on the table
setupTableCardView(table, move, humanTurn) { // Get the Table Card View var tableCardView = document.getElementById("tableView"); // Clear all the images from the view while (tableCardView.hasChildNodes()) { tableCardView.removeChild(tableCardView.lastChild); } var cardSelected; var tableCardViews; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderCardsToTable(cardsArr) {\n\t\tcardsArr.forEach((element) => {\n\t\t\tlet cardElement = `<div class=\"card card-${ element.card.color }\" data-cardIndex=${ element.index }>`;\n\t\t\tfor (let i = 0; i < element.card.number; i++) {\n\t\t\t\tcardElement += `<img class=\"shape\" src=\"images/${ element.c...
[ "0.6222199", "0.6015581", "0.5979672", "0.59435457", "0.5895232", "0.5878337", "0.5772571", "0.57357293", "0.55674756", "0.55605495", "0.55400914", "0.5538183", "0.55208856", "0.5513697", "0.5494596", "0.54862857", "0.54445946", "0.54443717", "0.5438931", "0.54342854", "0.542...
0.6849136
0
setUpDeckView(), Shows the deck cards
setUpDeckView(deck) { // Get the deck view icon var deckView = document.getElementById("deckView"); // Clear all images from the view while (deckView.hasChildNodes()) { deckView.removeChild(deckView.lastChild); } // Loop through the cards in the deck for (var i = 0; i < deck.deckSize(); i++) { // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Window_MonsterCardsManager_DeckCards() {\r\n this.initialize.apply(this, arguments);\r\n }", "function createDeck() {\n const deckList = document.querySelector('.deck');\n\n //Create list of cards from UI\n let loadCards = Array.from(document.querySelectorAll('.deck li'));...
[ "0.6864643", "0.6755053", "0.6477892", "0.63823897", "0.6317988", "0.62186986", "0.619479", "0.6113024", "0.61038107", "0.6073826", "0.6060724", "0.6059908", "0.60558206", "0.6019462", "0.60004246", "0.59822637", "0.5980466", "0.59751123", "0.59615403", "0.5944368", "0.594170...
0.79765755
0
return array of bibles
function loadAvailableBibles() { var dfd = $.Deferred(); //$.get(baseUrl + 'bibles.json').done(d => { // dfd.resolve(bibles = d); //}); $.when(getBzData(baseUrl + 'bibles.bz2')).then(d => { dfd.resolve(bibles = d); }); return dfd.promise(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get allBees() {\n var bees = [];\n for(var i=0; i<this._places.length; i++){\n for(var j=0; j<this._places[i].length; j++){\n bees = bees.concat(this._places[i][j].bees);\n }\n }\n return bees; \n }", "get elements(){\n var elements=this.bars.map(function(bar){return b...
[ "0.6800982", "0.6719141", "0.6561821", "0.6192174", "0.6138221", "0.6118359", "0.6038973", "0.60319835", "0.60319835", "0.6012108", "0.6011657", "0.60075766", "0.5993711", "0.59930706", "0.59793675", "0.59544146", "0.592695", "0.5892914", "0.58714676", "0.5862308", "0.5856204...
0.62897867
3
return array of books
function getBooks(bibleParam, callback) { var dfd = $.Deferred(); bible = bibleParam; // if default books found use it var booksPath = bible.defaultIndex ? (baseUrl + '/defaults/books/' + bible.defaultIndex + '.bz2') : (baseUrl + bible.dbpath + '/' + 'books.bz2'); $.when(getBzDat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBooks () {\n\t\t\treturn backendService.getBooks()\n\t\t\t\t.then(function (response) {\n\t\t\t\t\tallBooks = response; // keep a copy of all the books, without filtering.\n\t\t\t\t\treturn allBooks;\n\t\t\t\t});\n\t\t}", "function listBooks() {\n return initDB('thr').then(function(db) {\n ...
[ "0.80975735", "0.78704435", "0.7783471", "0.7696136", "0.7464075", "0.73767626", "0.72141385", "0.71969825", "0.7125666", "0.7048511", "0.7041931", "0.70236856", "0.69987667", "0.69887894", "0.69777644", "0.69676524", "0.696375", "0.695191", "0.6943055", "0.6917489", "0.69061...
0.6876521
24
return array of passages
function getPassages(chapter) { return dfd.promise(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function outcomes_read_passages(text) {\n\t/* Begin chopping */\n\tvar endPassage = '\\n\\r';\n\tvar isEndPassage;\n\tvar i, c;\n\tvar passage = '', parsed, feedback;\n\n\t/* Current sentence and stack of previous ones */\n\tvar passages = [];\n\n\t/* Loop over each character and build the structure */\n\tfor (i =...
[ "0.6345976", "0.60281307", "0.5929719", "0.58508015", "0.5829942", "0.5807656", "0.57418466", "0.56215626", "0.56194615", "0.56177914", "0.5569298", "0.5548262", "0.55386657", "0.5464754", "0.545538", "0.54019654", "0.53997564", "0.5336417", "0.5336178", "0.53339684", "0.5321...
0.55125874
13
load array of [Chapters][Verse]
function getBookData(bookIdx) { if (model.bible.minBookIdx && bookIdx < model.bible.minBookIdx-1) console.log('minimum book idx = ' + model.bible.minBookIdx); var dfd = $.Deferred(); var dataPath = baseUrl + bible.dbpath + '/bz2/' + (bookIdx + 1) + '.bz2'; $.when(getBzData(d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function arrayLoad(){\n var info, qtext, i;\n info = text.split(\"\\n\");//info is an array of every line of text in the file \n var q = [];//primative array (non OOP arrays in js act like java arraylists) of questions for this page\n var arraycounter=0;\n for(i = 0; i<info.length;i++){\n var...
[ "0.602064", "0.5543726", "0.54845667", "0.527899", "0.51651114", "0.5087415", "0.5017298", "0.4998831", "0.499547", "0.499547", "0.4982833", "0.49726868", "0.49578807", "0.494561", "0.49337646", "0.4926727", "0.4894805", "0.48947364", "0.48944086", "0.48923257", "0.487807", ...
0.0
-1
Get and decode BZip Data
function getBzData(uri, method) { var dfd = $.Deferred(); // defer get binary var request = new XMLHttpRequest(); request.onload = function () { // Process the response if (request.status >= 200 && request.status < 300) { // If successful ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function decompress(data) {\n // Read the compression type and decompress file data.\n var compressionType = data.readUInt8(0);\n \n if (compressionType === 0) return data;\n else if (compressionType === 2) return zlib.unzipSync(data.slice(1));\n else if (compressionType === 16) return bzip.decod...
[ "0.6464087", "0.64535844", "0.5941118", "0.58739716", "0.5851109", "0.5848845", "0.57901734", "0.57813025", "0.57813025", "0.5778261", "0.5771673", "0.5753531", "0.5753531", "0.5753531", "0.57347524", "0.5709511", "0.57038003", "0.57038003", "0.57038003", "0.57038003", "0.562...
0.6804222
0
Prepares the Client object for use by the node server.
constructor(token) { this.ratings = new Ratings(); this.status = STATUS_DISCONNECTED; this.rtm = new RtmClient(token); this.rtm.on(CLIENT_EVENTS.RTM.AUTHENTICATED, this.onAuthenticated.bind(this)); this.rtm.on(RTM_CLIENT_EVENTS.RTM_CONNECTION_OPENED, this.onConnected.bind(this)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initClient() {\n window.g_finished = false; // for selenium testing.\n\n // Runs the sample in V8. Comment out this line to run it in the browser\n // JavaScript engine, for example if you want to debug it.\n // TODO(kbr): we need to investigate why turning this on is\n // significantly slower t...
[ "0.6496427", "0.6469535", "0.6463792", "0.63898784", "0.63705105", "0.6338037", "0.62974626", "0.6296912", "0.6288702", "0.62732404", "0.62732404", "0.62732404", "0.62732404", "0.62732404", "0.62732404", "0.62732404", "0.62732404", "0.62732404", "0.62732404", "0.62732404", "0...
0.0
-1
Attempts to establish a connection with the Slack web service.
start() { if ( this.status !== STATUS_DISCONNECTED ) { throw "Qbot cannot start, status unexpected (" + this.status + ")."; } this.rtm.start(); this.status = STATUS_CONNECTING; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function connectSlack(callback = null) {\n return __awaiter(this, void 0, void 0, function* () {\n const slackAccessToken = Util_1.getItem(\"slack_access_token\");\n if (slackAccessToken) {\n vscode_1.window.showInformationMessage(\"Slack is already connected\");\n return;\n ...
[ "0.6972435", "0.67534155", "0.64976346", "0.64021224", "0.6203887", "0.60402304", "0.60078526", "0.6000411", "0.59904647", "0.5934229", "0.5839258", "0.58267385", "0.5801538", "0.57706547", "0.57633215", "0.57621354", "0.5747104", "0.574513", "0.57437605", "0.5717051", "0.571...
0.0
-1
Callback invoked by Slack once our bot has authenticated with the server.
onAuthenticated(data) { this.status = STATUS_AUTHENTICATED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "login() {\n\n rx.Observable.fromEvent(this.slack, CLIENT_EVENTS.RTM.AUTHENTICATED).subscribe((rtmStartData) => this.onAuth(rtmStartData));\n\n this.slack.start();\n this.respondToMessages();\n }", "login() {\n rx.Observable.fromEvent(this.slack, 'open')\n .subscribe(() => this.onClientOpened())...
[ "0.7105062", "0.6736315", "0.6687922", "0.66243285", "0.65478677", "0.6451785", "0.64514506", "0.64485055", "0.6345899", "0.631766", "0.6281848", "0.62562853", "0.6255933", "0.62537944", "0.62534726", "0.62534726", "0.6253073", "0.6253073", "0.62502223", "0.6242923", "0.62222...
0.599804
46
Callback invoked by Slack when we have lost our connection.
onDisconnected() { this.status = STATUS_DISCONNECTED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onConnectionLost(responseObject) {\n if (responseObject.errorCode !== 0) {\n console.log(\"onConnectionLost:\" + responseObject.errorMessage);\n }\n }", "function onConnectionLost(responseObject) {\r\n if (responseObject.errorCode !== 0)...
[ "0.7297085", "0.72736615", "0.7246142", "0.7202825", "0.71967417", "0.71967417", "0.71967417", "0.71967417", "0.71967417", "0.71967417", "0.71861434", "0.7185405", "0.7181132", "0.7175565", "0.7173911", "0.717368", "0.717368", "0.71707994", "0.7169158", "0.7165636", "0.716183...
0.0
-1
Callback invoked by Slack once we have an established connection with the server.
onConnected() { this.status = STATUS_CONNECTED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onConnect() {\n // Once a connection has been made, make a subscription and send a message.\n console.log(\"onConnect\");\n }", "function onConnect() {\n // Once a connection has been made, make a subscription and send a message.\n console.log(\"onConnect\");\n client.subscribe...
[ "0.724685", "0.70200676", "0.7012323", "0.6996478", "0.69541156", "0.69525623", "0.69251734", "0.69227606", "0.6920447", "0.6879261", "0.6858798", "0.6844661", "0.68198997", "0.67889345", "0.6788763", "0.6785305", "0.67339474", "0.6709506", "0.6691605", "0.66779476", "0.66298...
0.6587466
24
Called when the RTM client receives a message from the server.
onMessage(message) { if ( message.user === this.rtm.activeUserId ) { return; } if (message && message.text) { if ( -1 !== message.text.indexOf( '<@' + this.rtm.activeUserId + '>' ) ) { if ( -1 !== message.text.indexOf( 'rate me' ) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_onRecieveMessage() {\n this.client.on(\"data\", data => {\n console.log(data.toString());\n });\n }", "function receivedMessage(event) {\n messageHandler.handleMessage(event);\n }", "function onMessageReceived(e) {\n console.log('message received');\n console.log(e);\n var...
[ "0.70338464", "0.69355774", "0.6874964", "0.67843765", "0.67751724", "0.6718276", "0.6648727", "0.65772253", "0.6564802", "0.6546952", "0.6543158", "0.6541664", "0.6523994", "0.64467496", "0.6445237", "0.6437441", "0.64032567", "0.6395321", "0.63947964", "0.6389617", "0.63878...
0.0
-1
Invoked when a user has requested qbot to provide them with a rating.
rateUser(channelId, userId) { let rating = this.ratings.getRating(userId); let response = 'Hey <@' + userId + '>! '; let isNew = true; let deltaTime = 0; if ( rating ) { deltaTime = Date.now() - rating.time; if ( deltaTime < RATING_TIME ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rateIt(me){\n\tif(!rated){\n\t\tdocument.getElementById(\"rateStatus\").innerHTML = document.getElementById(\"ratingSaved\").innerHTML + \" :: \"+me.title;\n\t\tpreSet = me;\n\t\trated=1;\n\t\tsendRate(me);\n\t\trating(me);\n\t}\n}", "function rate(rating) {\n if (song.rating < 0) return;//negative r...
[ "0.6333612", "0.6216046", "0.618531", "0.6091118", "0.6059791", "0.6035691", "0.60247296", "0.6014204", "0.6000286", "0.5998472", "0.5937051", "0.5857673", "0.58486146", "0.58328736", "0.58249944", "0.5797957", "0.5741445", "0.57269657", "0.5650066", "0.56271845", "0.5622682"...
0.6028356
6
eslint nounmodifiedloopcondition: "off" / global XMLHttpRequest, alert, ImageData, postMessage, history
function send (ep, data) { var msg = { msg: data }; var jsonstr = JSON.stringify(msg); try { var xhr = new XMLHttpRequest(); xhr.open('POST', '/' + ep, false); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.send(jsonstr); } catch (e) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function supportsReferrerPolicy(){if(!supportsFetch())return false;try{// eslint-disable-next-line no-new\nnew Request('pickleRick',{referrerPolicy:'origin'});return true;}catch(e){return false;}}", "function usePostMessage() {\n // 53\n // The test against `importScripts` prevents this implementation ...
[ "0.56705105", "0.5643012", "0.54760206", "0.54526377", "0.534726", "0.534726", "0.53199434", "0.52674794", "0.5247718", "0.5226369", "0.5224108", "0.5208124", "0.52024585", "0.5169498", "0.51569134", "0.51388055", "0.5124782", "0.5107124", "0.51029825", "0.50956976", "0.50931...
0.0
-1
Datatype to represent 64bit integers.
function Int64(v) { var bytes = new Uint8Array(8); switch (typeof v) { case 'number': v = '0x' + Math.floor(v).toString(16); case 'string': if (v.startsWith('0x')) v = v.substr(2); if (v.length % 2 == 1) v = '0' + v; var bigEndian = unhexlify(v, 8); bytes.set(Array.from(bigEndian).reverse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function int64(h, l) {\n\t this.h = h;\n\t this.l = l;\n\t //this.toString = int64toString;\n\t }", "function int64(h, l) {\r\n this.h = h;\r\n this.l = l;\r\n //this.toString = int64toString;\r\n}", "function int_64(msint_32, lsint_32)\n\t{\n\t\tthis.highOrder = msint_32;\n\...
[ "0.7666292", "0.7622268", "0.71767217", "0.6963733", "0.695612", "0.6673401", "0.66087675", "0.6497088", "0.6440458", "0.63976324", "0.63842446", "0.63842446", "0.6306712", "0.62960327", "0.62762636", "0.6245512", "0.6158066", "0.6145908", "0.6143112", "0.6139027", "0.6114078...
0.6455552
8
DOCUMENT always references HTML doc in JS
function changeText(){ var button = document.querySelector("#loginbtn") button.innerHTML = "Logout" }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Document() {\n\n}", "get doc() {\n return this.node(0);\n }", "function setDocument(document) {\n DOCUMENT = document;\n}", "function setDocument(document) {\n DOCUMENT = document;\n}", "function setDocument(document) {\n DOCUMENT = document;\n}", "function setDocument(document) {\n...
[ "0.67112345", "0.66825753", "0.6656121", "0.6656121", "0.6656121", "0.6656121", "0.6656121", "0.6656121", "0.6600492", "0.65989286", "0.65823966", "0.65071887", "0.645889", "0.6374092", "0.6374092", "0.6374092", "0.6374092", "0.6374092", "0.6374092", "0.6264458", "0.6261872",...
0.0
-1
converts DOM values to array
function str_array_to_int(string_array){ var str_vals = string_array.split(" "); // lil error check if (str_vals.length != 4) alert("vals not read"); var int_vals = []; for (var i=0; i<str_vals.length; i++) int_vals.push(parseFloat(str_vals[i])); return int_vals; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "toArray () {\n return this._content.map(function (x, i) {\n return x.val\n })\n }", "function getArrayOfElements(value) {\n if (isSingular(value)) {\n // TODO: VirtualReference is not compatible to type Element\n return [value];\n }\n\n if (value instanceof NodeList) {\n ...
[ "0.7171062", "0.66819745", "0.6668741", "0.6549929", "0.6522086", "0.6484725", "0.6435564", "0.64282", "0.6426562", "0.6409665", "0.6364051", "0.63587314", "0.6340863", "0.63141227", "0.63069606", "0.6178493", "0.6156527", "0.61454594", "0.6143061", "0.61320996", "0.61320996"...
0.0
-1
compares new unit against each stored units identifies based on similarity to each return "circle" or whatever || or could return a normalized confidence
function identify(new_unit, possible_shapes){ var differences = {}; var min_diff = 1; var prediction = ""; for (var shape in possible_shapes){ var diff = compare(possible_shapes[shape], new_unit); differences[shape] = diff; if (diff < min_diff){ prediction = shape; min_diff = diff; } } return predic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "compareDna (pAequor) {\n let identicalResults = 0;\n for (let i = 0; i < 15; i++) {\n if (this.dna[i] === pAequor.dna[i]) {\n identicalResults += 1;\n } \n }\n const percentage = identicalResults / this.dna.length * 100;\n console.log(`Specimen ${this...
[ "0.60809404", "0.59734625", "0.5971909", "0.59571296", "0.5941943", "0.59367704", "0.59316486", "0.5923652", "0.59021103", "0.59021103", "0.5849675", "0.58129334", "0.58129334", "0.58129334", "0.58129334", "0.58129334", "0.57971835", "0.5743384", "0.57067204", "0.5651909", "0...
0.6151879
0
Project List Component ================================== This component accepts an array of objects, rendering out each object (including the navbar react link) We gave it a function, and then rendered it inside the return block
function ProjectList(props) { function renderProjects() { return props.projects.map((project, index) => { return ( <div key={project.id}> <Link to={`/projects/${project.id}`}> <br /> <ProjectCard title={project.title} description={project...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "renderProjects() {\n\n\n // <SingleProject\n // color={project.color}\n // picture={project.picture}\n // headerText={project.headerText}\n // subHeaderText={project.subHeaderText}\n // bodyText={project.bodyText}\n // buttonLink={project.buttonLink}\n // technologiesText={project.technolog...
[ "0.7655103", "0.76453376", "0.7423228", "0.7406242", "0.74007505", "0.740063", "0.73471874", "0.7315867", "0.72534496", "0.7238381", "0.72121054", "0.7192509", "0.71866167", "0.71797705", "0.7141038", "0.7104717", "0.70520294", "0.6940537", "0.6832877", "0.6819421", "0.677332...
0.8237496
0
SVGR has dropped some elements not supported by reactnativesvg: filter
function SvgComponent(props) { return ( <Svg width={42} height={42} viewBox="0 0 42 42" {...props} > <Defs> <LinearGradient id="prefix__b" x1={0.067} y1={0.1} x2={0.748} y2={0.918} gradientUnits="objectBoundingBo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SvgComponent(props) {\n return (\n <Svg width={props.width || 167} height={ props.height || 315} viewBox=\"0 0 176 324\" fill=\"none\" {...props}>\n <G filter=\"url(#prefix__filter0_d)\">\n <Path\n opacity={0.9}\n d=\"M15.371 312.52l-9.828 1.971a.453.453 0 01-.543-.444v-4...
[ "0.6804007", "0.64224076", "0.6380292", "0.6102126", "0.6035289", "0.6017963", "0.60147685", "0.60133535", "0.59938115", "0.59319085", "0.5874366", "0.5872613", "0.5857943", "0.58506536", "0.5820966", "0.57243687", "0.5698252", "0.56800425", "0.5677348", "0.56552935", "0.5631...
0.54792523
41
Use arrow function, so you won't need to bind
incrementCounter() { this.setState((state,props) => { return { counter: state.counter + 1 } }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "arrow() {\n const RickAndMorty = 'Rick and Morty';\n return () => RickAndMorty;\n }", "function simpleBind(context,fn){return function(value){fn.call(context,value);};}", "function foo(){\n var a = \"Hello\";\n this.a = 22;\n this.greet =()=>{\n return this.a;\n }\n}", "fu...
[ "0.61213684", "0.6090334", "0.60135335", "0.5989223", "0.5972329", "0.59604377", "0.59451395", "0.5910887", "0.588014", "0.5848551", "0.5841645", "0.582463", "0.5812602", "0.5804277", "0.57892007", "0.5760139", "0.5743414", "0.57402104", "0.57388204", "0.57372636", "0.5713681...
0.0
-1
reverse it and return related functions
function open(x, y, px, py){//try to open the specified node if(nodeState[x][y]!=NONE) return 0;//A node that is still untouched can only be opened if(maze[x][y]==WALL) return 0;//the location of wall can't be opened nodeState[x][y]=OPENED; nodeCostA[x][y]=Math.abs(sx-x)+Math.abs(sy-y);//the cost so far ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "reverse() {}", "reverse() {\n }", "function ruhReverse_B(){\n return function(items) {\n return items.slice().reverse();\n };\n }", "function revery(t, f) {\n if (typeof t === \"function\" && f === undefined) {\n return get().reverse().map(t);\n } else if (typeof t === \"stri...
[ "0.6906061", "0.6745402", "0.66816133", "0.65820503", "0.62357545", "0.62217116", "0.620596", "0.6118012", "0.6100652", "0.5984677", "0.5863679", "0.58604956", "0.5821947", "0.5815797", "0.5797147", "0.57344395", "0.57016516", "0.57016516", "0.57016516", "0.57016516", "0.5701...
0.0
-1
Toggel Go up div show
function toggleGoUp() { const pageHeight = window.pageYOffset switch (true) { case pageYOffset > 1000: goUpDiv.parentNode.classList.replace('opacity-0', 'opacity-light') break case pageYOffset <= 1000: goUpDiv.parentNode.classList.replace('opacity-light', 'opacity-0') break } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show( me ){\n $( me.canvas ).css({ \n 'top': 0 \n })\n }", "function div_show(el){ \n\t\n\t\t\tpopup6(\"\");\n\t\t\n\t}", "function showWorking() {\n hidedepth += 1;\n $(\"#loading\").show();\n $(\"#navigation\").hide();\n }", "show...
[ "0.68650585", "0.677883", "0.6697452", "0.6667473", "0.6591993", "0.65768707", "0.6560567", "0.65452075", "0.65045583", "0.6495442", "0.648054", "0.64770764", "0.64769715", "0.6452721", "0.64279497", "0.6423474", "0.6415403", "0.64095247", "0.64019036", "0.6359285", "0.634838...
0.0
-1
vuerouter v3.0.1 (c) 2017 Evan You
function r(t,e){0}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jj(t,e,n,r,i,o,a,s){var l=(\"function\"===typeof n?n.options:n)||{};return l.__file=\"source.vue\",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=r,l}", "function TM(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return ...
[ "0.6079882", "0.6061355", "0.5882436", "0.5864603", "0.5863027", "0.58375025", "0.58186346", "0.57866293", "0.5745777", "0.5725568", "0.56346124", "0.5616481", "0.5615051", "0.5608341", "0.5605354", "0.5597574", "0.55807894", "0.557704", "0.5564271", "0.5559546", "0.555874", ...
0.0
-1
When the user clicks on the button, toggle between hiding and showing the Apply dropdown content
function ApplyFunction() { document.getElementById("Apply_myDropdown").classList.toggle("show"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dropDownShowClick(){\n document.getElementById(\"forDropDown\").style.display=\"block\";\n document.getElementById(\"dropDownShowBtn\").style.display=\"none\";\n document.getElementById(\"dropDownHideBtn\").style.display=\"block\";\n}", "function mybutton() {\n document.getElementById(\"myDr...
[ "0.7143388", "0.69831467", "0.68496686", "0.6775066", "0.66882586", "0.6666142", "0.6660542", "0.66357094", "0.6621973", "0.661947", "0.6599924", "0.6595131", "0.65823895", "0.6574092", "0.656517", "0.65323085", "0.6527147", "0.6514864", "0.64294356", "0.6417666", "0.6410149"...
0.76304466
0
When the user clicks on the button, toggle between hiding and showing the Contact dropdown content
function ContactFunction() { document.getElementById("Contact_myDropdown").classList.toggle("show"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "showContacts() {\n this._qs(\".show-contacts\").addEventListener(\"click\", () => {\n if (this._qs(\".contacts\").style.display == \"none\") {\n this._qs(\".contacts\").style.display = \"flex\";\n this._qs(\".show-contacts\").classList.add(\"collapse\");\n } else {\n this._qs(\".c...
[ "0.6935872", "0.691377", "0.6895174", "0.68850946", "0.6788482", "0.67380625", "0.67263305", "0.6724093", "0.6712429", "0.67029214", "0.6694438", "0.6692333", "0.6685189", "0.6669176", "0.6653497", "0.6653497", "0.66515374", "0.66515374", "0.6648715", "0.65875655", "0.6585325...
0.80156785
0
When the user clicks on the button, toggle between hiding and showing the Contact dropdown content
function Info_Function() { document.getElementById("Info_myDropdown").classList.toggle("show"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ContactFunction() {\n\t\tdocument.getElementById(\"Contact_myDropdown\").classList.toggle(\"show\");\n\t}", "showContacts() {\n this._qs(\".show-contacts\").addEventListener(\"click\", () => {\n if (this._qs(\".contacts\").style.display == \"none\") {\n this._qs(\".contacts\").style.displ...
[ "0.80148816", "0.69361943", "0.6912692", "0.68944246", "0.6885191", "0.67881835", "0.67382914", "0.6725416", "0.67240167", "0.6711928", "0.6694512", "0.66920125", "0.66861844", "0.6669002", "0.6653621", "0.6653621", "0.66531885", "0.66531885", "0.664812", "0.6587012", "0.6584...
0.6701956
10
define a reducer with an intitalized state and logic to handle action
function counter(state = initialState,action){ switch(action.type){ case 'INCREMENT': const incremented =state return incremented + 1 case 'DECREMENT': const decremented = state return decremented -1 default : return state } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reducer(state = {}, action){\n return state;\n}", "function reducer(state, action) {\n //b. create switch statement where each case is a possible action.type\n switch (action.type) {\n case 'ACTION_TYPE':\n return state.someMethod(action.payload)\n default:\...
[ "0.76051944", "0.74985075", "0.72628224", "0.72628224", "0.71887964", "0.71316123", "0.7128387", "0.71231675", "0.7118055", "0.7044791", "0.70170003", "0.70106184", "0.69771934", "0.6961236", "0.69528973", "0.6951182", "0.69373125", "0.6935045", "0.6922064", "0.69217354", "0....
0.0
-1
define actions within an action creator
function increment(){ const INCREMENT ='INCREMENT' return{ type:INCREMENT } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function actionCreator() {\n return action\n}", "function actionCreator(){\n return action;\n }", "createAction() {}", "function actionCreator() {\n return action\n }", "function actionCreator() {\n return action;\n }", "function actionCreator(action) {\n return action\n}", "action() {}",...
[ "0.7764113", "0.77319354", "0.7710662", "0.762938", "0.7563369", "0.7509832", "0.7435937", "0.71882194", "0.7138174", "0.712383", "0.70749676", "0.70177996", "0.6976991", "0.68460923", "0.68022066", "0.6760003", "0.67514104", "0.67506635", "0.6691775", "0.66838324", "0.667066...
0.0
-1
mapShowRoute() Shows result of form submission.
function showFormMessage( message, success, callback ) { var target = $( "#results_div" ); var result_class = ( success != "1" ) ? "color_red_bg" : ""; //apply class and show message, do callback target.addClass( result_class ); target.html( message ); callback(); }//showFormMessage()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showRoute(result) {\n clearRoutes();\n\n var routeResults = result.routeResults;\n routes.push(\n map.graphics.add(routeResults[0].route.setSymbol(routeSymbol))\n );\n\n var msgs = [\"服务器消息:\"];\n for (var i = 0; i < result.messages.length; i++) {\n msgs.push(result.mes...
[ "0.6473614", "0.62408394", "0.611469", "0.6113544", "0.6085187", "0.59956247", "0.5989297", "0.5897668", "0.58964473", "0.58864146", "0.5862749", "0.58420414", "0.58342296", "0.57951796", "0.5787233", "0.578434", "0.57522154", "0.57125294", "0.56817716", "0.5675007", "0.56743...
0.0
-1
clearFormMessage() Displays the current RSVP step.
function showRsvpHtml( cmd, options, callback ) { switch( cmd ) { case "show-rsvp-confirmation": $.ajax({ type:'post', url:'/www/ajax/cah_helper.php?task=rsvp&process=' + cmd, data:{ guest_id: options.guest_id, is_attending: options.is_attending }, success: function( reply_html ) { adjustCan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clearForm() {\n this.clearFormSubject.next(true);\n }", "function resetNewMsgBox() {\n document.querySelector('input#toAccount').value = \"\";\n document.querySelector('input#title').value = \"\";\n document.querySelector('textarea#content').value = \"\";\n submitButton.disabled = false;\n}", "...
[ "0.62767744", "0.6177767", "0.6157539", "0.615467", "0.61418873", "0.6102431", "0.605558", "0.6039177", "0.6014997", "0.60119104", "0.6011342", "0.60026973", "0.59900266", "0.5930958", "0.58593386", "0.58509177", "0.5845695", "0.5835835", "0.5733228", "0.5729263", "0.57107097...
0.0
-1
showRsvpStep() Adjusts the height of the canvas to adapt to ajax content.
function adjustCanvasHeight( callback ) { $( ".content" ).css( "padding-bottom", "50px" ); $( ".content" ).css( "height", "auto" ); callback(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setExecuteSize(g) {\n $('#panel').height($(window).height());\n var h = 2*$(window).height() - $(document).height();\n $('#panel').height(h);\n if (g) {\n\t$('#panel').width($('#panel').data('origWidth'));\n\t$('#canvas').css('display','block');\n\tvar w = $('#container').width();\n\tw -= $('#...
[ "0.58072466", "0.54833055", "0.53820807", "0.5208256", "0.51953864", "0.5151253", "0.51382303", "0.510332", "0.50656873", "0.5040502", "0.5025224", "0.50176036", "0.5001739", "0.49955454", "0.49940512", "0.49661207", "0.49634683", "0.49544275", "0.4893295", "0.48905855", "0.4...
0.45680103
83
adjustCanvasHeight() Adjusts the height of the canvas for the gallery page
function adjustCanvasHeightForGallery( callback ) { $( ".content" ).css( "padding-bottom", "10px" ); $( ".content" ).css( "height", "auto" ); callback(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function adjustCanvasHeight( callback )\n{\n\t$( \".content\" ).css( \"padding-bottom\", \"50px\" );\n\t$( \".content\" ).css( \"height\", \"auto\" );\n\tcallback();\n}", "function adjustCanvasHeightForTwoCol( callback )\n{\n\t$( \".content\" ).css( \"height\", \"750px\" );\n\t$( \".side_bar\" ).css( \"height\",...
[ "0.780316", "0.71411264", "0.6952543", "0.65446615", "0.64627486", "0.63900054", "0.62730336", "0.6236224", "0.6189034", "0.6172109", "0.6169498", "0.6133863", "0.61299515", "0.61093366", "0.6095761", "0.6093157", "0.6089138", "0.60788685", "0.60533047", "0.6047762", "0.60475...
0.8321703
0
adjustCanvasHeightForGallery() Adjusts the height of the canvas for the gallery page
function adjustCanvasHeightForTwoCol( callback ) { $( ".content" ).css( "height", "750px" ); $( ".side_bar" ).css( "height", "750px" ); callback(); }//adjustCanvasHeightForGallery()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function adjustCanvasHeightForGallery( callback )\n{\n\t$( \".content\" ).css( \"padding-bottom\", \"10px\" );\n\t$( \".content\" ).css( \"height\", \"auto\" );\n\tcallback();\n\t\n}", "function adjustCanvasHeight( callback )\n{\n\t$( \".content\" ).css( \"padding-bottom\", \"50px\" );\n\t$( \".content\" ).css( ...
[ "0.86334735", "0.72854054", "0.64283735", "0.63516665", "0.6290804", "0.62190247", "0.6082131", "0.60509187", "0.60435945", "0.60289276", "0.6000328", "0.59999263", "0.5993784", "0.5984498", "0.5952207", "0.58739746", "0.583454", "0.58232707", "0.5815129", "0.58119303", "0.58...
0.727881
2
problem no 2 centimeter to meter
function centimeterToMeter(centimeter) { const meter = centimeter / 100; return meter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function centimeterToMetre(cm) {\n const meter = cm / 100;\n return meter;\n}", "function metersToInches(meters){\n return (meters * 39.3701);\n}", "function areaAndPerimeter(a, b) {\n console.log(Math.round((a * b) * 100) / 100);\n console.log(Math.round((a * 2 + b * 2) * 100) / 100);\n}", "f...
[ "0.7068018", "0.6457149", "0.6383446", "0.6315279", "0.6312219", "0.6283846", "0.6273642", "0.6262659", "0.6261325", "0.6201682", "0.61618316", "0.6152", "0.6149507", "0.6149507", "0.6149507", "0.6126161", "0.6109648", "0.6088013", "0.6075419", "0.60666656", "0.6046416", "0...
0.7260982
0
problem no 2 book pages
function paperRequirements(book1, book2, book3) { const firstBookPage = 100; const firstBook = firstBookPage * book1; const secondBookPage = 200; const secondBook = secondBookPage * book2; const thirdBookPage = 300; const thirdBook = thirdBookPage * book3; const totalPage = firstBook + se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadBook() {\n //add the current chapter to the hash\n location.hash = HI6MA.series + \"_\" + HI6MA.chapter;\n \n //reset variables and #book\n totalPages = 1;\n page = 1;\n eBook.innerHTML = \"\";\n leftM = 0;\n\n //add a .png image\n imgSrc = HI6MA.book.folder + \"/\" + HI6MA.chapter_full + \"/...
[ "0.6664978", "0.6655363", "0.632674", "0.6197504", "0.6188955", "0.618726", "0.61859953", "0.61441714", "0.61355335", "0.61349845", "0.61029583", "0.61017734", "0.608708", "0.6070771", "0.6061495", "0.60284495", "0.60284495", "0.60284495", "0.60284495", "0.60284495", "0.60261...
0.5878535
33
problem no 3 best friend
function bestFriend(array) { let bigName = array[0]; for (let i = 0; i < array.length; i++) { const name = array[i]; if (bigName.length < name.length) { bigName = name; } } return bigName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tinyFriend(friends)\n{\n var min= friends[0].length;\nfor(var i=1;i<friends.length; i++)\n{\n if(friends[i].length<min)\n {\n min = friends[i].length;\n var min1=friends[i];\n }\n \n \n}\nreturn min1;\n\n}", "function perfectFriend(friends) {\n\n if (typeof friend == \...
[ "0.63382995", "0.6167097", "0.6053761", "0.60333043", "0.5984286", "0.5962809", "0.5959596", "0.5939988", "0.5911999", "0.58746576", "0.57808506", "0.57571167", "0.5750277", "0.5740097", "0.57275367", "0.57140183", "0.57106096", "0.57098705", "0.5678987", "0.5670987", "0.5670...
0.55445564
29
problem 5 return positive
function arrayNo(arr) { let positive = []; for (let i = 0; i < arr.length; i++) { let no = arr[i]; if (no < 0) { break; } else { positive.push(no); } } return positive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function good(n) { return n==304 || n >= 100 || n < 300; }", "function getSolution() {\n var sum = 0;\n for (var i = 0; i < 1000; i++) {\n if (i % 3 === 0 || i % 5 === 0) sum += i;\n }\n return sum;\n}", "function problem5(){\n var sN = 0;\n c=false;\n while(c===false){\n sN+=380;\n for(var x=3...
[ "0.6318299", "0.6283512", "0.62489265", "0.6243803", "0.6173164", "0.6121521", "0.60609627", "0.6006582", "0.59219885", "0.59148043", "0.591429", "0.5907076", "0.5871306", "0.58692396", "0.58640367", "0.58518684", "0.58359236", "0.5802107", "0.5802107", "0.5802107", "0.579924...
0.0
-1
function that adds color white/transparent to the navbar on resize (this is for the collapse)
updateColor() { if (window.innerWidth < 993 && this.state.isOpen) { this.setState({ color: 'primary', }) } else { this.setState({ color: 'primary', }) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function windowResize() {\n if( $(window).width() < 768 ) {\n $(\".navbar-custom\").css(\"background-color\", \"black\"); \n $(\".navbar-custom .navbar-nav li a\").css(\"text-align\", \"center\"); \n }\n else\n $(\".navbar-custom\").css(\"background-color\", \"...
[ "0.7634119", "0.70855", "0.6691247", "0.6645731", "0.65778524", "0.64011467", "0.63789994", "0.6349504", "0.63489723", "0.63405764", "0.6339946", "0.6332385", "0.63322437", "0.6287562", "0.6278782", "0.6262869", "0.6242695", "0.6242695", "0.62404263", "0.6169986", "0.6157246"...
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.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 i={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){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}
{ "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",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3...
{ "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.8263063", "0.8035005", "0.7877146", "0.75484014", "0.7204236", "0.7198218", "0.7173406", "0.7170998", "0.7132494", "0.71289635", "0.7045183", "0.6671976", "0.6671976", "0.6335302", "0.6293571", "0.62770087", "0.62770087", "0.62770087", "0.62770087", "0.6210929", "0.6094717...
0.0
-1
! moment.js locale configuration
function t(e,t,n,r){var i={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?i[n][0]:i[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){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3...
{ "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={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+i(r[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,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund",i;case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minut...
{ "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.8263063", "0.8035005", "0.7877146", "0.75484014", "0.7204236", "0.7198218", "0.7173406", "0.7170998", "0.7132494", "0.71289635", "0.7045183", "0.6671976", "0.6671976", "0.6335302", "0.6293571", "0.62770087", "0.62770087", "0.62770087", "0.62770087", "0.6210929", "0.6094717...
0.0
-1
! moment.js locale configuration
function t(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(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){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}
{ "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){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