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
4 function to find if a string is a palindrome
function isPal(str){ let pal = new HashMap(); HashMap.MAX_LOAD_RATIO = 0.5; HashMap.SIZE_RATIO = 3; // loops through the string and sets each character into its own place in the hashmap for(let i = 0; i < str.length; i++){ pal.set(str[i], 0); } // counts the number of times each str[i] and sets the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function palindrome(str) {}", "function palindrome(string) {\n\n}", "function isPalindrome(str) {\n\n}", "function palindrome(str){\r\n return reverseString(str) === str;\r\n}", "function isPalindrome(s) {\n var pal = s.split('').reverse().join('');\n return s == pal;\n}", "function palindrome(str) ...
[ "0.8779684", "0.8640696", "0.86267656", "0.8571367", "0.8521246", "0.8514244", "0.84999543", "0.8471612", "0.845683", "0.84422493", "0.844004", "0.8409238", "0.84056056", "0.8361522", "0.8355877", "0.83544713", "0.835436", "0.83393276", "0.83158207", "0.82969505", "0.82966554...
0.0
-1
Helper functions for larger device support
function getSupportedFormat(gl, internalFormat, format, type) { if(!supportRenderTextureFormat(gl, internalFormat, format, type)) { switch (internalFormat) { case gl.R16F: return getSupportedFormat(gl, gl.RG16F, gl.RG, type); case gl.RG16F: return getSupportedFormat(gl, gl.RGBA16F, gl....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static getDeviceModel() {\n return \"dreame.vacuum.mc1808\";\n }", "isRealDevice () {\n return false;\n }", "static getDeviceModel() {\n return \"dmaker.fan.p11\";\n }", "function setDevice() {\n -1 !=\n (navigator.userAgent.indexOf(\"Opera\") || navigator.userAgent.indexOf(\"OPR\"))\n ? ale...
[ "0.60224944", "0.5947721", "0.5825181", "0.5811216", "0.57707775", "0.57367736", "0.57334405", "0.5692432", "0.56884706", "0.5664406", "0.5659593", "0.5647857", "0.56034625", "0.55943084", "0.5593396", "0.5577447", "0.556124", "0.55122066", "0.55122066", "0.55122066", "0.5512...
0.0
-1
Function to draw number of interactions onto input render target
function splat({x, y, dx, dy}) { splatProgram.program.uniforms.uTarget.value = velocity.texture; splatProgram.program.uniforms.aspectRatio.value = renderer.width / renderer.height; splatProgram.program.uniforms.point.value = [x, y]; splatProgram.program.uniforms.color.value = [dx, dy, 1.0]; splatProgram.progr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "draw() {\n let { MAX, sequence } = this;\n\n if (this.count >= MAX) {\n return -1;\n }\n\n sequence[this.count].call(this);\n this.count++;\n return 1;\n }", "incrementCounter() {\n\t\tmodel.currentCat.clickCount++;\n\t\tcatView.render();\n\t}", "function drawTarget() {\n let circleSiz...
[ "0.59114474", "0.5562745", "0.54946953", "0.5477263", "0.5448069", "0.542363", "0.54046655", "0.5335912", "0.53062814", "0.5296779", "0.52848226", "0.52608407", "0.5257598", "0.5257304", "0.524008", "0.5207927", "0.5207374", "0.5200363", "0.5192855", "0.51878405", "0.5183201"...
0.0
-1
const App = createAppContainer(AppNavigator);
function start(){ registerScreens() Navigation.events().registerAppLaunchedListener(() => { Navigation.setRoot({ root: { component: { name: "hrms_splash" } } }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function App() {\n return (\n <Provider store={store}>\n <Navigator />\n </Provider>\n );\n}", "function App() {\n\treturn (\n\t\t<NavigationContainer>\n\t\t\t<CurrentUserProvider>\n\t\t\t\t<HomeNav.Navigator screenOptions={{ headerShown: false }}>\n\t\t\t\t\t<HomeNav.Screen name='AppNavigator' comp...
[ "0.8069672", "0.7919247", "0.76503986", "0.7379546", "0.73099065", "0.7284248", "0.7271733", "0.72200066", "0.7207193", "0.71866393", "0.70636886", "0.7004555", "0.69571155", "0.69212675", "0.68967783", "0.67902935", "0.6696594", "0.6690669", "0.6656155", "0.6639155", "0.6628...
0.6118001
67
The code is very ineffective. It was for the first time i made a massive project. Their are some functions that apparently arnt nessiry but as to make users experice better, i added them
function include(file) { var script = document.createElement('script'); script.src = file; script.type = 'text/javascript'; script.defer = true; document.getElementsByTagName('head').item(0).appendChild(script); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "protected internal function m252() {}", "static private internal function m121() {}", "private public function m246() {}", "function _____SHARED_functions_____(){}", "static private protected internal function m118() {}", "static private protected public internal ...
[ "0.6366018", "0.61671704", "0.61049193", "0.6031628", "0.59947836", "0.5943869", "0.5794305", "0.5784711", "0.56988144", "0.5670119", "0.56666607", "0.5657501", "0.56414694", "0.5584117", "0.55075496", "0.5441449", "0.5441449", "0.54312086", "0.540871", "0.5406691", "0.540668...
0.0
-1
Fetch calls. Returns Posts of a specific user
function get_posts(time_itr) { document.getElementById('load_more_btn').classList.add('hidden') // Hide load more button untill we get posts;check if we have more posts //In Db,if so then only display the button var max_itr = 3 // How many times should we call this function again, ie. no of recucurtio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static getProfilePosts(userId) {\n return fetch(`https://dev-selfiegram.consumertrack.com/users/${userId}`).then(response => {\n return response.json();\n }).catch(error => {\n return error;\n });\n }", "posts(user) {\n return user.getPosts();\n }", "async function getUser() {\n ...
[ "0.742018", "0.72711545", "0.7189133", "0.7130897", "0.7089476", "0.70191646", "0.6998408", "0.6960852", "0.6940663", "0.68916976", "0.6882773", "0.6873006", "0.6736041", "0.6651453", "0.66221756", "0.66213864", "0.660109", "0.6597624", "0.6537885", "0.65242565", "0.6504622",...
0.0
-1
Add Two event listners
function get_following(time_itr) { document.getElementById('following_btn').removeEventListener('click', get_following) url = '../profile/api/get/data/following/users/' max_itr = 3 if (max_itr == time_itr) { return //Actually Enable the load more followers button } fetch(url, { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addListenerMulti(element, events, fn) {\n events\n .split(' ')\n .forEach(event =>\n element.addEventListener(event, fn, false)\n ) /* https://stackoverflow.com/questions/8796988/binding-multiple-events-to-a-listener-without-jquery */\n}", "_events() {\n this._eventsForHandle(this.$han...
[ "0.6561678", "0.65136373", "0.6492521", "0.64619297", "0.6457541", "0.6273644", "0.61946297", "0.61209047", "0.60560656", "0.6041339", "0.59780633", "0.5971515", "0.59601915", "0.59567434", "0.59483665", "0.59444016", "0.5934237", "0.59237176", "0.59191805", "0.59167033", "0....
0.0
-1
For Load More Buttons
function load_more_tagged_posts() { get_tagged_posted(0) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadMore() {\n\t$('.load-more-btn').each(function(index){\n\t\tvar loadMoreBtn = $(this);\n\t\tvar obj = $(this);\n\t\tvar curPage = obj.attr('data-page');\n\t\tvar categoryId\t= obj.attr('data-category');\n\t\tvar url = obj.attr('href');\n\t\tvar data = {category_id:categoryId, page:curPage};\n\t\t// hid...
[ "0.8422071", "0.81569254", "0.81051314", "0.8064603", "0.7990574", "0.7965752", "0.78695476", "0.7862446", "0.77944624", "0.77666587", "0.7751534", "0.7712311", "0.7670074", "0.76507276", "0.7641658", "0.76399475", "0.762575", "0.7601601", "0.7539227", "0.7490355", "0.7462604...
0.0
-1
Util setTimeout as a promise
function wait(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ptimeout(delay) {\nreturn new Promise(function(resolve, reject){\n setTimeout(resolve, delay);\n console.log(`Delay is ` + delay);\n\n });\n\n }", "function timeout(t = 0){\n return new Promise((resolve, reject) =>{\n setTimeout(resolve, duration); \n })\n}", "function setTime...
[ "0.7797287", "0.7688399", "0.76595163", "0.7609866", "0.7565844", "0.74419904", "0.7351649", "0.7308102", "0.729864", "0.7240305", "0.7230699", "0.7184142", "0.7158143", "0.71462524", "0.7005319", "0.6999954", "0.6996333", "0.6993238", "0.6979929", "0.69648725", "0.69648725",...
0.0
-1
Get ClickHouse headers from config
function getHeaders(config) { const headers = {}; if (config.password) { headers['X-ClickHouse-Key'] = config.password; } if (config.username) { headers['X-ClickHouse-User'] = config.username; } return headers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get hdr() {}", "function getConfig() {\n\t\treturn {\n\t\t\theaders: {\n\t\t\t\t'Auth-Token': 'test'\n\t\t\t}\n\t\t};\n\t}", "function getHeaders() {\n return {\n \"Content-Type\": \"application/json\",\n \"x-merchant-checksum\": \"test_value\",\n \"x-merchant-id\": merchantId,\n \"x-merchant-chan...
[ "0.6157776", "0.61520326", "0.607008", "0.5942772", "0.5934195", "0.5792141", "0.5763724", "0.5749887", "0.56833416", "0.5651145", "0.56259274", "0.56157327", "0.5596747", "0.55958974", "0.5568298", "0.5549904", "0.5549904", "0.5549904", "0.55320454", "0.55280364", "0.5524244...
0.8318113
0
Given config and query, returns promise with the results
function send(config, query) { if (!config.url) { return Promise.reject(new Error('config.url is required')); } const results = { data: [], }; return fetch( `${config.url}/?user=${config.user}&password=${config.password}&database=${config.database}`, { method: 'POST', body: query, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static search(query = {}, config = {}) {\n const model = new this();\n\n config = Object.assign({\n params: query,\n }, config);\n\n return new Promise((resolve, reject) => {\n model.$request = this.request('get', (config.uri || model.uri()), config);\n ...
[ "0.6830258", "0.67748314", "0.6329717", "0.6292537", "0.6182477", "0.61381257", "0.61332107", "0.61081445", "0.61032057", "0.60667914", "0.60405767", "0.6028724", "0.6008488", "0.60073394", "0.5987174", "0.598679", "0.598679", "0.59811854", "0.5972719", "0.59600747", "0.59138...
0.60300124
11
add a scale to the map
function getParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results === null ? false : decodeURIComponent(results[1].replace(/\+/g, " ")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scaleCanvas() {\r\n\t\tvar ctx = $['mapsettings'].ctx;\r\n\t\tvar scalevalue = new Point(1,1);\r\n\t\tvar scale = getRelativeScale($['mapsettings'].zoom);\t\r\n\t\tscale.x = scale.x * scalevalue.x;\r\n\t\tscale.y = scale.y * scalevalue.y;\r\n\t\t$['mapsettings'].scale = scale;\r\n\t}", "function drawSca...
[ "0.7319871", "0.7291326", "0.7166292", "0.6917322", "0.6856942", "0.6829793", "0.6814702", "0.68128043", "0.6746081", "0.6703341", "0.6694503", "0.66611683", "0.66611683", "0.66611683", "0.6657638", "0.66546565", "0.66425085", "0.6585181", "0.6567744", "0.6566104", "0.6544779...
0.0
-1
Loads the form for this field, displays it on top of the actual field.
loadForm() { const fieldModel = this.fieldModel; // Generate a DOM-compatible ID for the form container DOM element. const id = `quickedit-form-for-${fieldModel.id.replace( /[/[\]]/g, '_', )}`; // Render form container. const $formContainer = $( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadForm() {\n var $this = $(this),\n type = $this.attr('id').split('-')[2],\n opts = options[type];\n\n $.showCustomModal(\n opts.buttonText,\n opts.form,\n {\n id: 'requestWindow',\n width: 650,\n ...
[ "0.64687395", "0.641772", "0.6398509", "0.63964814", "0.63437206", "0.6221345", "0.621233", "0.61330694", "0.61159354", "0.60799086", "0.5959116", "0.59406686", "0.59385973", "0.5922145", "0.589859", "0.58919156", "0.5887434", "0.58858794", "0.58816934", "0.5871704", "0.58459...
0.71838504
0
Removes the form for this field, detaches behaviors and event handlers.
removeForm() { if (this.$formContainer === null) { return; } delete this.formSaveAjax; // Allow form widgets to detach properly. Drupal.detachBehaviors(this.$formContainer.get(0), null, 'unload'); this.$formContainer .off('change.quickedit', ':input')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "forget() {\n if (this.mode === 'addSection') {\n delete cd.g.addSectionForm;\n } else {\n delete this.target[CommentForm.modeToProperty(this.mode) + 'Form'];\n }\n removeFromArrayIfPresent(cd.commentForms, this);\n saveSession();\n navPanel.updateCommentFormButton();\n }", "destroy (...
[ "0.6809752", "0.6652859", "0.6614671", "0.6571079", "0.65139836", "0.64534384", "0.6443712", "0.63865733", "0.6368275", "0.63461107", "0.6342311", "0.63419694", "0.6336848", "0.6308684", "0.63051516", "0.62922513", "0.6275237", "0.6275237", "0.6275237", "0.6255289", "0.624033...
0.8101097
0
function used for updating xscale var upon click on axis label
function xScale(cData, chosenXAxis) { // create scales var xLinearScale = d3.scaleLinear() .domain([d3.min(cData, d => d[chosenXAxis]) * 0.8, d3.max(cData, d => d[chosenXAxis]) * 1.2 ]) .range([0, width]); return xLinearScale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function xlabelChange(clickedAxis) \n {\n\t\t\t\td3.selectAll(\".xaxisText\")\n\t\t\t\t\t.filter(\".xactive\")\n\t\t\t\t\t.classed(\"xactive\", false)\t\n\t\t\t\t\t.classed(\"xinactive\", true);\n\t\t\t\tclickedAxis.classed(\"xinactive\", false).classed(\"xactive\", true);\n\n\t\t\t}", "function xChan...
[ "0.74243313", "0.72549987", "0.71718496", "0.7135636", "0.70952487", "0.7068378", "0.7068378", "0.70194817", "0.699753", "0.6983086", "0.6983086", "0.69822615", "0.6949779", "0.6816385", "0.6755083", "0.67461234", "0.6708507", "0.66882163", "0.6638812", "0.65537375", "0.65424...
0.0
-1
function used for updating xAxis var upon click on axis label
function renderAxes(newXScale, xAxis) { var bottomAxis = d3.axisBottom(newXScale); xAxis.transition() .duration(1000) .call(bottomAxis); return xAxis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateXAxis() {\n if(showXAxis) {\n g.select('.nv-focus .nv-x.nv-axis')\n .transition()\n .duration(duration)\n .call(xAxis)\n ;\n }\n }", "function updateXAxis() {\n if(sho...
[ "0.7346144", "0.7346144", "0.7299196", "0.72932816", "0.71277744", "0.7125595", "0.7125595", "0.70608985", "0.7051837", "0.6559471", "0.6542164", "0.65036243", "0.6487748", "0.63955855", "0.6391872", "0.6367093", "0.6254421", "0.6238167", "0.62380695", "0.6228548", "0.6174922...
0.0
-1
function used for updating circles group with a transition to new circles
function renderCircles(circlesGroup, newXScale, chosenXAxis, textElems) { circlesGroup.transition() .duration(1000) .attr("cx", d => newXScale(d[chosenXAxis])); textElems.transition() .duration(1000) .attr('x', d=> newXScale(d[chosenXAxis])); return textElems; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateCircles(circlesGroup, updatedXScale, selectedX, updatedYScale, selectedY) {\n\n circlesGroup.transition()\n .duration(1000)\n .attr(\"cx\", data => updatedXScale(data[selectedX]))\n .attr(\"cy\", data => updatedYScale(data[selectedY]));\n}", "function renderCircles(circlesG...
[ "0.7947967", "0.7642462", "0.7637596", "0.76290315", "0.7613628", "0.76015234", "0.75984585", "0.75788087", "0.7570866", "0.7568301", "0.7564114", "0.7545071", "0.7534453", "0.753402", "0.75287336", "0.7521789", "0.7496788", "0.7472802", "0.74517417", "0.7438627", "0.7412789"...
0.6275178
75
function used for updating circles group with new tooltip
function updateToolTip(chosenXAxis, circlesGroup) { var label; if (chosenXAxis === "poverty") { label = "Poverty: "; } else if (chosenXAxis === 'age') { label = "Age: "; } else { label = 'Income: '; } var toolTip = d3.tip() .attr("class", "t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateToolTip(chosenXAxis, xLabel, yLabel, chosenYAxis, circlesGroup) {\n \n var toolTip = d3.tip()\n .attr(\"class\", \"tooltip\")\n //.offset([80, -60])\n .html(function(d) {\n return (`${d.state}<br>${xLabel} ${d[chosenXAxis]}<br>${yLabel}${d[chosenYAxis]}`);\n });\n \n ...
[ "0.81599337", "0.8136701", "0.80278385", "0.7984179", "0.79763496", "0.7947794", "0.7947684", "0.7942658", "0.79171026", "0.7892069", "0.78789824", "0.7852882", "0.78524804", "0.78478485", "0.78155655", "0.78077507", "0.780533", "0.77971", "0.7783847", "0.77835935", "0.778209...
0.78243864
14
Obtiene el polygono de respositorio de polygonos cad
async function getPolygonoServer(codigo) { const {data} = await Axios.get(`/obtener_poligono_proyecto?idcapa=1&pre_codigo=${codigo}`); let result = JSON.parse(data[0].geojson_3857); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPolygon() {\r\n let polygonPoints = getPolygonPoints()\r\n ctx.beginPath()\r\n ctx.moveTo(polygonPoints[0].x, polygonPoints[0].y)\r\n for (let i = 1; i < polygonSides; i++) {\r\n ctx.lineTo(polygonPoints[i].x, polygonPoints[i].y)\r\n }\r\n ctx.closePath()\r\n\r\n if (fillSta...
[ "0.7026463", "0.679731", "0.67372304", "0.66985923", "0.6669366", "0.66280884", "0.6589077", "0.65655667", "0.6507105", "0.64964724", "0.6479459", "0.6436645", "0.64234364", "0.63732445", "0.6366016", "0.63294554", "0.63040185", "0.62916404", "0.6290537", "0.6277455", "0.6251...
0.6761377
2
Obtiene la solcitud de polygonos
async function getsolicitudGestionPredial() { const {data} = await Axios.get(`/drpsolicituds`); return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dessiner_polygone() {\n\tfor (var p=0; p<18; p++) {\t\t/* recherche du point le plus haut */\n\t\tif (polygone[p][1] < polygone[premierpoint][1]) {\n\t\t\tpremierpoint = p\n\t\t}\n\t}\n\n\tctx.fillStyle = \"grey\";\n\tctx.strokeStyle = \"black\";\n\tctx.lineWidth = 10;\n\tctx.beginPath();\n\n\tctx.moveTo(...
[ "0.6769326", "0.67362064", "0.66372854", "0.65438443", "0.6511243", "0.64888585", "0.64870673", "0.641275", "0.64053965", "0.6337843", "0.62581336", "0.6243536", "0.6241686", "0.62248915", "0.6224848", "0.622107", "0.6218102", "0.6207213", "0.6199317", "0.6193465", "0.6190496...
0.0
-1
Obtiene la solcitud de polygonos
async function getProyecto(codigo) { const {data} = await Axios.get(`/proyecto/${codigo}`); return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dessiner_polygone() {\n\tfor (var p=0; p<18; p++) {\t\t/* recherche du point le plus haut */\n\t\tif (polygone[p][1] < polygone[premierpoint][1]) {\n\t\t\tpremierpoint = p\n\t\t}\n\t}\n\n\tctx.fillStyle = \"grey\";\n\tctx.strokeStyle = \"black\";\n\tctx.lineWidth = 10;\n\tctx.beginPath();\n\n\tctx.moveTo(...
[ "0.6769326", "0.67362064", "0.66372854", "0.65438443", "0.6511243", "0.64888585", "0.64870673", "0.641275", "0.64053965", "0.6337843", "0.62581336", "0.6243536", "0.6241686", "0.62248915", "0.6224848", "0.622107", "0.6218102", "0.6207213", "0.6199317", "0.6193465", "0.6190496...
0.0
-1
Stop Form Submission > On Required Attachments
function sjb_is_attachment( event ) { var error_free = true; $(".sjb-attachment").each(function () { var element = $("#" + $(this).attr("id")); var valid = element.hasClass("valid"); var is_required_class = element.hasClass("sjb-not-required"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "preventSubmitIfUploading() {\n }", "function haltSubmission() { // 943\n event.preventDefault(); // 944\n event.stopPropagat...
[ "0.7365214", "0.682817", "0.6535333", "0.6474083", "0.6469795", "0.6316804", "0.6212422", "0.61958414", "0.61782813", "0.6172183", "0.6117779", "0.61132723", "0.6109513", "0.60431546", "0.60160714", "0.599126", "0.59838814", "0.59820426", "0.5976111", "0.5953451", "0.5908434"...
0.7057511
1
Stop Form Submission > On Invalid Email/Phone
function sjb_is_valid_input(event, input_type, input_class) { var jobpost_form_inputs = $("." + input_class).serializeArray(); var error_free = true; for (var i in jobpost_form_inputs) { var element = $("#" + jobpost_form_inputs[i]['name']); var valid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function postsValidatedEmail() {\r\n if ($(\"#email\").val().length === 0) {\r\n //sets the background\r\n sendState(on, \"email\");\r\n\r\n //adds the data to the array\r\n addDataAllErrors(allErrorMess[0]);\r\n } else if (!validateEmail($(\"#email\").val())) {\r\n //sets the backgr...
[ "0.66157967", "0.6549648", "0.6508873", "0.6416533", "0.63911873", "0.63857514", "0.634165", "0.6302411", "0.62679666", "0.6267888", "0.625061", "0.6248451", "0.62259513", "0.6202449", "0.6170732", "0.614867", "0.613229", "0.6125017", "0.61226976", "0.6116972", "0.6094483", ...
0.0
-1
END OF SETTINGS COMPONENT CALL
function App() { return ( <Router> <Switch> <Route exact path="/"> <Redirect to="/Signin" /> </Route> <AuthLayout exact path="/Signin" component={Signin} /> <AuthLayout exact path={["/Signup"]} component={Signup} /> {/* <React.Fragment> */} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function settingsSetup() {\n updateSettingsValues();\n }", "constructor() {\n const label = 'settings';\n const data = {};\n super(label, data);\n }", "function additionalSettings(){\n\n\n}", "settings(state, settings) {\n state.settings = settings;\n }", "onRender()\n {\n t...
[ "0.6647475", "0.6623849", "0.65919363", "0.6519269", "0.65033", "0.6472233", "0.6425895", "0.6353105", "0.63397735", "0.6328721", "0.6254919", "0.6249512", "0.622739", "0.6223632", "0.61862457", "0.6181069", "0.6174323", "0.6170902", "0.61704034", "0.61621845", "0.6156177", ...
0.0
-1
This helper function calculates a few bits of aggregate information about our cart and stores them in a dataLayer variable we will use to send this information in our checkout tag the count of unique products the total count products the total value of the cart
function updateCartTagDLVars(productJSONList, quantityList){ var uniqueProductCount = 0, totalProductCount = 0, totalValue = 0; for(var j=0; j < productJSONList.length; j++){ totalProductCount = totalProductCount + quantityList[j]; uniqueProductCount = uniqueProductCount + 1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calcTotalCart(item){\n //console.log(\"item count\" + item.count);\n total = total + item.count;\n var productName = products.find(y => y.id == item.id).name;\n //Display each individual item name and it's individual count\n console.log(productName + \" - Quantity = \" + item.count);\n }",...
[ "0.7224043", "0.6983393", "0.6881092", "0.6849852", "0.684965", "0.68486387", "0.68011856", "0.67595017", "0.6742764", "0.6723503", "0.6708702", "0.6695912", "0.66400105", "0.6624788", "0.6607299", "0.6591001", "0.65713453", "0.6542484", "0.65356827", "0.65218455", "0.6502616...
0.62872285
38
This function provides a mainframe timer for use in videoProgress It used to be used for video change timing in Streamly w/o YouTube API
function Timer(callback, delay) { let id, started, remaining = delay, running; this.resume = function() { running = true; started = new Date(); id = window.setTimeout(callback, remaining); } this.pause = function() { running = false; window.clearTimeout(id); remaining -= new Date() - sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function timeUpdaterVideo() {\n var totalValue = (100 / video.duration) * video.currentTime; // Calculate the slider value\n videoTimeBar.value = totalValue; // Update the slider value\n }", "function UpdateFrame() {\n\t\tvar value = time_slider.value;\n\t\t//console.log(\"change\");\n\t\t\n\t\tif (isNull...
[ "0.6991289", "0.6960226", "0.6915346", "0.6848264", "0.67910296", "0.67475915", "0.6695426", "0.6627625", "0.65716946", "0.65509", "0.65231395", "0.6459351", "0.64589876", "0.64401865", "0.6432195", "0.63236755", "0.631906", "0.6298948", "0.6261207", "0.62549627", "0.62343526...
0.0
-1
This function converts milliseconds to "0:00" AND "0:00:00" format It is used primarily in the videoProgress timer
function msConversion(millis) { let sec = Math.floor(millis / 1000); let hrs = Math.floor(sec / 3600); sec -= hrs * 3600; let min = Math.floor(sec / 60); sec -= min * 60; sec = '' + sec; sec = ('00' + sec).substring(sec.length); if (hrs > 0) { min = '' + min; min = ('00' + min).substring(min.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convert(ms) {\n if (ms > 0) {\n var min = Math.floor((ms % (1000 * 60 * 60)) / (1000 * 60));\n var sec = Math.floor((ms % (1000 * 60)) / 1000);\n if (min < 10) min = \"0\" + min;\n if (sec < 10) sec = \"0\" + sec;\n return min + ':' + sec;\n }\n else {\n return \"00:...
[ "0.75025016", "0.71468323", "0.7088978", "0.6869621", "0.68393034", "0.67279476", "0.6626597", "0.6579742", "0.6564332", "0.6558861", "0.64959586", "0.6473782", "0.647123", "0.6462199", "0.64436966", "0.64427483", "0.64367527", "0.6428621", "0.64274913", "0.6418498", "0.64179...
0.70380485
3
This function resets timers It is primarily used for the progress bar and video time elements
function resetTimer(which) { if (typeof which !== "undefined") { if (which != 0) { which.pause(); } which = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetTimers() {\n startTime = new Date;\n startTime.setHours(0);\n startTime.setMinutes(0);\n startTime.setSeconds(0);\n startTime.setMilliseconds(0);\n \n stopTime = new Date;\n stopTime.setHours(config.timer.hour);\n stopTime.setMinutes(config.timer.minute);\n stopTime.setS...
[ "0.80447906", "0.7998409", "0.79882014", "0.7983441", "0.79706293", "0.7942788", "0.79313487", "0.7927878", "0.7916387", "0.7916082", "0.786555", "0.7856475", "0.78551227", "0.78445745", "0.783322", "0.78330636", "0.7809448", "0.7808317", "0.77832127", "0.77681994", "0.776602...
0.7361093
52
This function updates the video progress bar with new data It is run on an interval, using the YouTube API for video timing
function videoProgress() { if (videos[videoIteration] !== undefined && videos[videoIteration] !== null) { //initial load let time = videos[videoIteration][1]; let currentTime = Math.round(player.getCurrentTime()); let currentPercent = (currentTime / time) * 100; $("#videoTime").text(msConversion(t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateProgress() {\n elements.progressBar.style.width = `${\n (elements.video.currentTime / elements.video.duration) * 100\n }%`;\n elements.currentTime.textContent = `${displayTime(\n elements.video.currentTime\n )} / `;\n elements.durationTime.textContent = `${displayTime(elements.video.durat...
[ "0.7634247", "0.7511615", "0.75042474", "0.7490926", "0.73853415", "0.73359257", "0.7295995", "0.7290021", "0.728142", "0.72640634", "0.7216097", "0.7201465", "0.71706074", "0.71287596", "0.71205443", "0.70614284", "0.7051398", "0.7051177", "0.70507467", "0.7050515", "0.70496...
0.7422212
4
Inclusive Min, Esclusive min
static randomInt(min, max) { const minVal = Math.ceil(min); const maxVal = Math.floor(max); return Math.floor(Math.random() * (maxVal - minVal)) + minVal; //Inclusive min Esclusive max }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get minInclusive() {\n return this._minInclusive;\n }", "function min(a,b) {return a < b ? a : b; }", "function min(a, b) { return Math.floor(Math.min(a, b)); }", "function min(a, b) { return Math.floor(Math.min(a, b)); }", "function min(a, b) { return Math.floor(Math.min(a, b)); }", "function min(x,...
[ "0.75909317", "0.75445056", "0.74307656", "0.74307656", "0.74307656", "0.74181557", "0.73469955", "0.7334014", "0.73196733", "0.72227013", "0.71626496", "0.7107907", "0.708774", "0.70831263", "0.70794976", "0.70732516", "0.70732516", "0.7060782", "0.70583946", "0.70583946", "...
0.0
-1
Aborts the upload process.
abort() { if (this.xhr) { this.xhr.abort(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abort () {\n // Reject the promise returned from the upload() method.\n console.log('upload cancel')\n }", "abort() {\n // Abort is not supported for this uploader\n }", "abort() {\n if (this._objectWriter) {\n this._objectWriter.abort();\n } else {\n throw(...
[ "0.8217409", "0.7890625", "0.73745835", "0.72392136", "0.71232504", "0.7067252", "0.6925028", "0.68847287", "0.6782521", "0.6782521", "0.67192924", "0.66910255", "0.6632611", "0.66012084", "0.6585739", "0.65842485", "0.6557545", "0.6486015", "0.64688176", "0.6444897", "0.6442...
0.66250396
13
helper functions to format SQL query strings
function setFormat(string,columns,values){ var rtn = string; for (var i = 0; i < columns.length; i++) { rtn += " ?? = ? "; if(i < columns.length - 1){ rtn += ","} } return rtn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "formatQuery (query) {\n return query.split(',').join(' + ');\n }", "function formatQueryString(input) {\n var formattedQuery = input.slice();\n formattedQuery = formattedQuery.trim().toLowerCase().replace(/\\s\\s+/g, '+');\n return formattedQuery;\n}", "_formatQueryString(query) {\n // TODO: Fi...
[ "0.7321287", "0.71430224", "0.6779044", "0.677579", "0.6769711", "0.67366767", "0.6713809", "0.66639847", "0.6642005", "0.66317284", "0.6504866", "0.6270001", "0.6254974", "0.61437625", "0.61157095", "0.6113029", "0.61104447", "0.60891783", "0.6067733", "0.6044665", "0.603939...
0.5539631
82
slide the section in aside
function slideSect(par) { $("#" + par).addClass('active').siblings("section").removeClass('active'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function slideTo(index) {\n slide(index);\n }", "function _navigateToSection() {\n var to = this.getAttribute('data-ref');\n var nav = app.navigator();\n if (!isOnSameGroup.call(this, nav, to)) {\n _navigateToSlide.call(this, this.parentElement.getAttribute('data-ref'));...
[ "0.6119164", "0.59959924", "0.5984798", "0.59738415", "0.59589", "0.59589", "0.59589", "0.59589", "0.59589", "0.5939792", "0.5939792", "0.5939792", "0.5939792", "0.5939792", "0.5916924", "0.59165967", "0.5887286", "0.5887286", "0.5887286", "0.5887286", "0.5887286", "0.58727...
0.6501066
0
Mostrar Comentarios de los comentarios
function ComentarioPorComentario(idComentario){ $.post(baseurl+"cGetComentarios/getComentarios_Por_Comentario", { idComentario:idComentario }, function(data){ $('#ListaComentariosComent'+idComentario+'').html(""); var emp1 = JSON.parse(data); $.each(emp1,function(i,item){ $('#ListaComentar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dibujarComentarios(_datos)\n{\n\tvar lista = $('#lista-comentarios');\n\tlista.empty();\n\tfor(var i in _datos)\n\t{\n\t\tvar html = '<li class=\"list-group-item\">'+\n \n '<div class=\"primercommit\">'+\n '<h4><Span>'+_datos[i].name+'</Spa...
[ "0.68524164", "0.6624687", "0.65023017", "0.64835745", "0.64761317", "0.64560604", "0.64236414", "0.64232296", "0.635294", "0.6341402", "0.6338063", "0.6328833", "0.6278921", "0.62378025", "0.62278426", "0.6223336", "0.6221101", "0.61903596", "0.6178755", "0.61695", "0.616174...
0.0
-1
Constructs a new ShippingItem. Document representing a shipping item.
constructor() { /** * The tax of the product item after adjustments applying. * @member {Number} adjusted_tax */ this.adjusted_tax = undefined /** * The base price for the line item, which is the price of the unit before applying * adjustments, in the pu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ShippingMethod(id, itemType)\n{\n\tthis.id = id;\n\tthis.itemType = itemType; // SERVICE or SHIPPING\n}", "function getShipMethodByItemId(itemId)\n{\n\ttry\n\t{\n\t\tvar _shippingMethod = null;\n\t\t\n\t\tvar filters = new Array();\n\t\tvar columns = new Array();\n\t\t\n\t\tfilters[0] = new nlobjSearchF...
[ "0.5723609", "0.54617774", "0.54257995", "0.5385375", "0.5372254", "0.5267477", "0.5230966", "0.51764095", "0.5176046", "0.5171716", "0.5158275", "0.51278675", "0.5062428", "0.50578547", "0.5057167", "0.5025903", "0.5025118", "0.5005244", "0.50051755", "0.5000487", "0.499117"...
0.54554933
2
Hook methods Initialization method
function onInit() { ctrl.title = { project: ctrl.project, function: ctrl.function.metadata.name }; ctrl.functionNameTooltip = '<b>' + ctrl.function.metadata.name + '</b>' + (ctrl.function.spec.description ? '<br><br>' + ctrl.function.sp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init () {\n // Here below all inits you need\n }", "function _init() {\n }", "init() {\n //todo: other init stuff here\n }", "function init() {\n\t \t\n\t }", "function init() {}", "function init() {}", "function init() {}", "function init() {}"...
[ "0.76276654", "0.7508337", "0.73134816", "0.7313448", "0.7278741", "0.7278741", "0.7278741", "0.7278741", "0.7278741", "0.7278741", "0.7278741", "0.7278741", "0.7278741", "0.7278741", "0.7277443", "0.72527313", "0.7243991", "0.7243991", "0.7243991", "0.7226915", "0.7226915", ...
0.0
-1
Private methods Converts function status state.
function convertStatusState() { ctrl.convertedStatusState = FunctionsService.getDisplayStatus(ctrl.function); lodash.set(ctrl.function, 'ui.convertedStatus', ctrl.convertedStatusState); // used for sorting by status }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convertState(state) {\n return (state === 'closed' ? 'Done' : 'New');\n }", "_prepareStatus(status: number): SmsStatusT {\n switch (status) {\n case -3:\n return 'error'; // -3 - Message not found\n case -1:\n return 'pending'; // -1 - Waiting for sending\n case 0:\n ...
[ "0.6128802", "0.61244136", "0.61238796", "0.60881424", "0.6052224", "0.6046621", "0.60085064", "0.6007138", "0.6004375", "0.6004375", "0.6004375", "0.6004375", "0.6004375", "0.6004375", "0.6004375", "0.599793", "0.599793", "0.59753186", "0.59339005", "0.58998877", "0.58971477...
0.7838108
0
Disables function. Sends request to change `spec.disable` property
function disableFunction() { // in case failed request, modified function object will be restored from that copy tempFunctionCopy = lodash.cloneDeep(ctrl.function); var propertiesToDisableFunction = { spec: { disable: true, bu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "disable() { }", "disable() {\n if (!this.isEnabled) return\n this.isEnabled = false\n }", "function disabled() {}", "function disabled() {}", "onDisable() {}", "disable () {\n this.enabled= false;\n }", "function disable() {\n enabled = false;\n }", "function disabled() {...
[ "0.7789219", "0.7434514", "0.7383487", "0.7383487", "0.7350977", "0.73141056", "0.7242522", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0.72423714", "0...
0.72082126
68
Enables function. Sends request to change `spec.disable` property
function enableFunction() { // in case failed request, modified function object will be restored from that copy tempFunctionCopy = lodash.cloneDeep(ctrl.function); var propertiesToEnableFunction = { spec: { disable: false, bui...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disabled() {}", "function disabled() {}", "enable() {\n this.enabled_ = true;\n }", "function disableFunction() {\n\n // in case failed request, modified function object will be restored from that copy\n tempFunctionCopy = lodash.cloneDeep(ctrl.function);\n\n var...
[ "0.72183776", "0.72183776", "0.71131957", "0.71039265", "0.7067185", "0.7067185", "0.7067185", "0.7067185", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399", "0.6980399",...
0.74000007
0
Terminates the interval of function state polling.
function terminateInterval() { if (!lodash.isNil(interval)) { $interval.cancel(interval); interval = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _clearInterval() {}", "function stopPolling() {\n\t\tticking = false;\n\t}", "stopPolling() {\n this.keepPolling = false;\n if (this.interval) {\n clearTimeout(this.interval);\n this.interval = null;\n }\n }", "stop () {\n clearInterval(this._interval);\n this._...
[ "0.6900629", "0.6801579", "0.6729784", "0.6729216", "0.6571919", "0.6556857", "0.65440375", "0.6534079", "0.64748055", "0.64614916", "0.6417469", "0.63921124", "0.6385077", "0.6385077", "0.6355157", "0.6351938", "0.6350936", "0.63493186", "0.63493186", "0.6332969", "0.6309719...
0.7100324
0
Show dialog with YAML function config
function viewConfig() { ngDialog.open({ template: '<ncl-function-config-dialog data-close-dialog="closeThisDialog()" ' + ' data-function="ngDialogData.function">' + '</ncl-function-config-dialog>', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function configure() {\r\n \r\n const popupUrl = `${window.location.origin}/tableau-extension-sunburst/dialog.html`;\r\n //const popupUrl = `${window.location.origin}/dialog.html`;\r\n\r\n let input = \"\";\r\n\r\n tableau.extensions.ui.displayDialogAsync(popupUrl, input, { height: 540, width: 800 }...
[ "0.627052", "0.6244251", "0.6172661", "0.6158625", "0.60495096", "0.5975345", "0.59371454", "0.5900562", "0.58742243", "0.5852375", "0.58463985", "0.5741115", "0.5690348", "0.56751716", "0.5667062", "0.5647412", "0.5629798", "0.56144065", "0.56108177", "0.5595518", "0.5589746...
0.7879811
0
Example: nthPrime(5) => 11
function nthPrime(n) { let count = 0; //how many primes we have let curNum = 1; //which num were looking at while (count < n) { curNum++; if (checkPrime(curNum) === true) count++; } return curNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nth_prime(n) {\n\n}", "function nthPrime(n) {\n var counter = 0;\n var number = 2;\n while (counter < n) {\n if (isPrime(number)) {\n counter++;\n }\n number++;\n }\n return number - 1;\n}", "function nthPrime(n) {\n var counter = 0;\n for (var i = 0; true; i++) {\n if (isPrime...
[ "0.8862512", "0.8262432", "0.8255955", "0.82440615", "0.79574245", "0.79565924", "0.7897925", "0.7750496", "0.7720294", "0.7671766", "0.76362175", "0.7633007", "0.762371", "0.75052404", "0.7423407", "0.7379051", "0.7299809", "0.729351", "0.72931045", "0.7292582", "0.72622246"...
0.8182874
4
4. The API will call this function when the video player is ready.
function onPlayerReady(event) { youtube_object = event.target; youtube_object.playVideo(); console.log(event.target) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function videoReady() { }", "function onPlayerReady(event) {\n Controller.load_video();\n }", "function videoReady() {\n console.log('Video is ready!!!');\n}", "function onPlayerReady(event) {\n event.target.loadVideo();\n }", "function onPlayerReady(event) {\n videosLoaded++;\n allV...
[ "0.8808409", "0.84673727", "0.8241749", "0.8100349", "0.80780077", "0.8077817", "0.791283", "0.78991675", "0.78966224", "0.78966224", "0.78966224", "0.78774095", "0.7867977", "0.7866036", "0.78364885", "0.7818094", "0.78170335", "0.781266", "0.77962565", "0.7772331", "0.77552...
0.0
-1
5. The API calls this function when the player's state changes. The function indicates that when playing a video (state=1), the player should play for six seconds and then stop. time mark youtube playing function
function onPlayerStateChange(event) { duration_time = current_script.duration; if (event.data == YT.PlayerState.PLAYING) { clearTimeout(current_timeout); if (loop_table[current_loop_index] == true) current_timeout = setTimeout(replayVideo, duration_time * (1000 / speed_table[current_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onPlayerStateChange(event) {\n\n // event.data is a number that represents the state of the player\n // so we grab that number and give it an easy to remember name\n let playerState = event.data;\n\n // an efficient way to structure \"if/else\" statements for purposes like this\n // convert...
[ "0.7534448", "0.74033344", "0.734036", "0.73161215", "0.73161215", "0.72911364", "0.72064847", "0.7176356", "0.7135473", "0.7120652", "0.70591307", "0.703124", "0.7025291", "0.7005862", "0.6960479", "0.69509006", "0.6932724", "0.6929232", "0.69186085", "0.69149756", "0.688229...
0.6646206
34
update element showing Players score
function setGameScore() { let score = document.getElementById("score"); return score.textContent = "Your score: " + player.score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatePlayerScore(newScore) {\n player.score = newScore;\n document.getElementById(\"player-score\").innerText = newScore;\n}", "function scoreUpdate(){\r\n document.getElementById('score').innerText = piece.score;\r\n }", "function updateScore() {\n document.querySelector(\"#wins\").inne...
[ "0.8099771", "0.8092893", "0.7938845", "0.7931728", "0.7871551", "0.773667", "0.7721868", "0.7706619", "0.7634886", "0.7634886", "0.7634843", "0.76343703", "0.76331544", "0.76239353", "0.76199967", "0.758524", "0.758524", "0.75629276", "0.75546473", "0.7552202", "0.7547062", ...
0.0
-1
Display park information based on PARKID
function getDetails() { db.collection("parks") .doc(id) .get() .then(function(doc) { var name = doc.data().name; var address = doc.data().address; $("#parkName").text(name); $("#address").text("Address: " + address); // addParkListe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clickOnPark(p) {\n // zoom to the park, but not too close\n var fb = bbox(p.geometry);\n var flybox = [[fb[0], fb[1]], [fb[2], fb[3]]]\n map.fitBounds(flybox, { padding: 50, maxZoom: 17 })\n\n\n // get all the amenities for the park\n var parkAmenities = [];\n Object.keys(p.properties...
[ "0.64437115", "0.6383649", "0.6017482", "0.5486529", "0.5480578", "0.5408771", "0.5393915", "0.53569984", "0.5334407", "0.5326217", "0.53129864", "0.5312532", "0.52942014", "0.5269473", "0.5261889", "0.52438354", "0.5241731", "0.5154389", "0.51528066", "0.5152088", "0.5137894...
0.0
-1
Create a view controller.
function VC() { _classCallCheck(this, VC); this.$view = $('<div></div>'); this.renderedOnce = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ViewController() {}", "function instantiateController() {\n return new PaneController(\n mockScope,\n mockAgentService,\n mockWindow,\n mockLocation,\n mockAttrs\n );\n ...
[ "0.76077324", "0.6893573", "0.67204976", "0.65776736", "0.6455206", "0.6389278", "0.6361364", "0.62758774", "0.61596525", "0.61117977", "0.6074471", "0.60120654", "0.60086095", "0.5984322", "0.5962108", "0.59436864", "0.5927955", "0.5911046", "0.5891702", "0.5872427", "0.5872...
0.547225
56
Create a navigation view controller.
function NavVC() { _classCallCheck(this, NavVC); var _this10 = _possibleConstructorReturn(this, (NavVC.__proto__ || Object.getPrototypeOf(NavVC)).call(this)); _this10.vcs = []; return _this10; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NavigationController(a){\n\t\t// this is to avoid errors\n\t\ta = a || {};\n\t\ta.window = a.window || Ti.UI.createWindow();\n\t\t// this is to handle the iPhone Nav functionality\n\t\tif(iPhone){\n\t\t\tvar win = Ti.UI.createWindow();\n\t\t\tvar nav = Ti.UI.iPhone.createNavigationGroup({\n\t\t\t window...
[ "0.66835594", "0.6602799", "0.6541566", "0.63826317", "0.63572556", "0.635172", "0.62777174", "0.6241384", "0.59777844", "0.59511685", "0.5894016", "0.58474433", "0.57406604", "0.57216406", "0.5700214", "0.559353", "0.55881584", "0.54936343", "0.546841", "0.5394017", "0.53846...
0.5749819
12
Create a navigation bar view controller.
function NavbarVC() { var vcClasses = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var menu = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; var cotLogin = arguments[2]; _classCallCheck(this, NavbarVC); var _this13 = _possibleConstructorReturn(th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createNavBar(theme = \"light\", backgroundColor = \"\") {\n\tlet nav = new NavBar(theme, backgroundColor);\n\tnav.add();\n\treturn nav;\n}", "function createNavBar(arr) {\n\t //creat nav bar\n\n\t var navBar = makeElem('div', 'row', 'cat-nav-bar');\n\n\t //populate nav bar\n\n\t for (var i =...
[ "0.66961104", "0.65950596", "0.65509605", "0.6240294", "0.62331265", "0.6176208", "0.6169451", "0.6154562", "0.61343884", "0.6063843", "0.6060804", "0.60396385", "0.60267043", "0.60267043", "0.60267043", "0.60267043", "0.60267043", "0.60267043", "0.60018545", "0.59950274", "0...
0.54122555
60
Utilized also to return functions from other functions. It keeps nested variables alive
function closureMaker() { var outerVar = 5; return function() { return outerVar * 2; // Variable doesn't get modified outside the scope }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function outerFunc() {\n let a = 1;\n return function gimmeTwo() {\n return a += 1;\n };\n }", "function outFunc() {\n let a = 0;\n\n function innerOne() {\n a++;\n return a;\n }\n function innerTwo() {\n a++;\n return a;\n }\n function innerThree() ...
[ "0.6766581", "0.6597541", "0.6559025", "0.6553957", "0.6550193", "0.64894444", "0.6482291", "0.6366358", "0.6327067", "0.62976325", "0.62797016", "0.62735176", "0.6273463", "0.62687486", "0.6265509", "0.62404484", "0.62391794", "0.62302613", "0.6177771", "0.61389196", "0.6136...
0.56560874
84
here we take the data and format it for the xml bank
function requestBank(message, corr) { message.ssn = message.ssn.replace('-', ''); var date = new Date('1970-01-01T01:00:00Z'); date.setMonth(message.loanDuration); message.loanDuration = date.toISOString().substring(0, date.toISOString().indexOf('T')) + ' 01:00:00.0 CET'; amqp.connect(url, function (err, con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "visitPaymentInformation(paymentInformation) {\n this.currentPayment = this.currentTransfer.addElement('PmtInf');\n var node = this.currentPayment.addElement('PmtInfId');\n node.addTextNode(paymentInformation.getId());\n node = this.currentPayment.addElement('PmtMtd');\n node.addT...
[ "0.62262225", "0.620477", "0.58091474", "0.57365745", "0.5674272", "0.5622886", "0.55351496", "0.54967123", "0.54795766", "0.545982", "0.5436086", "0.5404396", "0.540306", "0.54026204", "0.5371067", "0.53579533", "0.5335457", "0.5316174", "0.5267206", "0.5238867", "0.5225031"...
0.0
-1
helpers ////////// copied from
function drawRect ( parentNode, width, height, borderRadius, strokeColor, fillColor ) { const rect = svgCreate('rect') svgAttr(rect, { width: width, height: height, rx: borderRadius, ry: borderRadius, stroke: strokeColor || '#000', strokeWidth: 2, fill: fillColor }) svg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "protected internal function m252() {}", "private public function m246() {}", "static private internal function m121() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "function DWRUtil() { }", "st...
[ "0.6300755", "0.61733013", "0.6143407", "0.5845242", "0.56800663", "0.562552", "0.5572632", "0.5506433", "0.54875004", "0.5460393", "0.5446718", "0.5446718", "0.54111993", "0.5387355", "0.53041774", "0.52709514", "0.52641344", "0.524011", "0.5219551", "0.5192913", "0.51869833...
0.0
-1
utility function to exercise the CPU a little
function burn_some_CPU(){ var x = 0.0001 for(i = 0;i < 100000;i++) x += Math.sqrt(x) return(x) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function test6() {\n\tcpuThing();\n\tcpuThing();\n\tcpuThing();\n}", "function pollForCPUInfo() {\n chrome.system.cpu.getInfo(function(info) {\n CPU_info = info;\n setTimeout(pollForCPUInfo, POLL_TIME_DELAY);\n });\n}", "immediate (cpu) {\n return cpu.pc;\n }", "runDelta(){\n t...
[ "0.708787", "0.6534718", "0.63662404", "0.63155353", "0.6129808", "0.6066685", "0.60341513", "0.6026272", "0.60012305", "0.590393", "0.58964694", "0.5872241", "0.57721305", "0.5765449", "0.57539696", "0.5744187", "0.57146716", "0.57098216", "0.57050633", "0.5659179", "0.56450...
0.637876
2
get query values and add or multiply them
function do_operation(req){ var values = (role == "add")? 0:1; for(key in req.query){ thenum = parseInt(req.query[key]) if (role == "add") values += thenum else values = values * thenum } return(values) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multiple(){\n results.value = Number(a.value) * Number(b.value);\n }", "function multi(){\n var Num1 = document.getElementById(\"numcaja\").value;\n var Num2 = document.getElementById(\"tacoPrecio\").value;\n var r = Num1 * Num2;\n document.getElementById(\"Total\").value = r;\n }", "...
[ "0.6552554", "0.60094553", "0.5880469", "0.57628095", "0.5653882", "0.5628207", "0.56195176", "0.56121844", "0.5584046", "0.5532935", "0.5520221", "0.55178535", "0.5512665", "0.5509914", "0.5509042", "0.5497464", "0.5468047", "0.5446215", "0.5420208", "0.5404523", "0.5401058"...
0.662605
0
create query string from input values
function make_query(req){ var s = [] for(key in req.query) s.push(key + "=" + req.query[key]) return(s.join('&')) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function constructQueryString(){\n\tvar result = \"\";\n\t\n\tif(count > 0){\n\t\tresult = \"?\" + queries[0].name + \"=\" + queries[0].value;\n\t\tvar i = 1;\n\t\tfor(; i < count; i++){\n\t\t\tresult+= \"&\" + queries[i].name + \"=\" + queries[i].value;\n\t\t}\n\t}\n\treturn result;\n}", "function GenerateQuery...
[ "0.7657952", "0.7428016", "0.7409486", "0.73841", "0.7191706", "0.71816236", "0.71290016", "0.7100074", "0.7100074", "0.7052147", "0.70367634", "0.6995434", "0.6984401", "0.69776565", "0.69722295", "0.69433796", "0.68986094", "0.6894819", "0.6893047", "0.68734735", "0.6868135...
0.72006804
4
Controller for an individual poll
function PollCtrl($scope, $routeParams, socket, Poll) { $scope.poll = Poll.get({ room: $routeParams.room, pollId: $routeParams.pollId }); $scope.$watch("poll", function(newValue, oldValue, scope) { //console.log(scope.poll); var choices = $scope.poll.choices; if (choices) { $scope.chartLabels = choices...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ViewWoolCtrl($scope, Wool, Poller){\n \n Poller.poll($scope, function(){\n $scope.woolList = Wool.query();\n });\n \n //Methods\n \n \n \n \n}", "function ViewStaplesCtrl($scope, Staple, Poller){\n \n Poller.poll($scope, function(){\n $scope.stapleList = St...
[ "0.69486076", "0.6612055", "0.65308475", "0.6511153", "0.6340648", "0.6329264", "0.62716585", "0.61065954", "0.6094728", "0.6009753", "0.59652257", "0.59306836", "0.58949655", "0.5834592", "0.5781665", "0.57758594", "0.57715404", "0.57557404", "0.5669667", "0.5667254", "0.551...
0.66116536
2
Controller for creating a new poll
function NewPollCtrl($scope, $location, $routeParams, Poll) { // Define an empty poll model object $scope.poll = { question: '', choices: [{ text: '' }, { text: '' }] }; // Method to add an additional choice option $scope.addChoice = function() { $scope.poll.choices.push({ text: '' }); }; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createPoll(poll) {\n const requestOptions = {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(poll)\n };\n return fetch(`https://us-central1-polling-269dc.cloudfunctions.net/app/api/polls/createPoll`, requestOptions).then(handleResp...
[ "0.66631556", "0.63081527", "0.6297003", "0.58732647", "0.5851912", "0.5839041", "0.57853675", "0.57442933", "0.57155466", "0.56994563", "0.56383574", "0.55604047", "0.55228895", "0.54799396", "0.54003733", "0.5375481", "0.53737515", "0.5306811", "0.5291875", "0.52845263", "0...
0.73052394
0
create the JS object that will represent the soap envelope
function createSoapEnvelope (options) { var xmlns; // set the defaults options = options || {}; xmlns = options.xmlns || 'http://www.w3.org/2003/05/soap-envelope'; // return an envelope object return { name: 'soap:Envelope', attrs: { 'xmlns:soap': xmlns }, children: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SOAPEnvelope() {\n return {\n header: \"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' \" +\n \"xmlns:xsd='http://www.w3.org/2001/XMLSchema' \" +\n \"xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body>\",\n ...
[ "0.70107204", "0.61305755", "0.57268745", "0.56097436", "0.56047887", "0.5528524", "0.54995865", "0.54404426", "0.5431368", "0.5414359", "0.5402896", "0.5349854", "0.5348448", "0.53324103", "0.5299811", "0.52542824", "0.52377754", "0.5236459", "0.5209152", "0.52018714", "0.51...
0.61746836
1
convert the SOAP JavaScript object into an XML string
function toXML (obj) { return js2xml( // need to wrap in an array to produce the correct results [createSoapEnvelope(obj)], // add the <?xml version="1.0" encoding="utf-8"?> header {xmlHeader:true} ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SOAPEnvelope() {\n return {\n header: \"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' \" +\n \"xmlns:xsd='http://www.w3.org/2001/XMLSchema' \" +\n \"xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body>\",\n ...
[ "0.6391185", "0.6191921", "0.61010224", "0.60810477", "0.60484535", "0.60484535", "0.60435176", "0.5939634", "0.57014084", "0.5623687", "0.561608", "0.56017524", "0.5596645", "0.5553416", "0.55530906", "0.5522872", "0.5517593", "0.54817414", "0.5346708", "0.5318456", "0.53027...
0.8103583
0
helper function to remove a namespace element if it has one
function denamespace (element) { return element.indexOf(':') >= 0 ? element.split(':')[1] : element }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeUnitNamespace(unit) {\n return unit.replace(/^(.*?)-/, '');\n}", "function RemoveNS(xmlString){\n\t// define the regex pattern to remove the namespaces from the string\n\tvar xmlnsPattern = new RegExp(\"xmlns[^\\\"]*\\\"[^\\\"]*\\\"\", \"gi\");\n\n\t// remove the namespaces from the string repr...
[ "0.6329839", "0.63184476", "0.6289603", "0.62895334", "0.6191387", "0.6191387", "0.6191387", "0.6191387", "0.6191387", "0.6191387", "0.6148557", "0.6148557", "0.6148557", "0.6148557", "0.6148557", "0.6148557", "0.6115341", "0.609347", "0.60119504", "0.60042906", "0.5954539", ...
0.0
-1
hackish way to get the soap response strips out the namespaces and returns the Envelope > Body > [Soap Result]
function desoap (xml, cb) { parser.parseString(xml, function (err, result) { var envelopeKey, bodyKey, _ref, _ref2; if (err) return cb(err); for (envelopeKey in result) { if (denamespace(envelopeKey).toLowerCase() === 'envelope') { for (bodyKey in result[envelopeKey]) { _ref2 = result[envelopeKey][...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SOAPEnvelope() {\n return {\n header: \"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' \" +\n \"xmlns:xsd='http://www.w3.org/2001/XMLSchema' \" +\n \"xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body>\",\n ...
[ "0.6457097", "0.6059581", "0.57769316", "0.5741274", "0.5450091", "0.5403962", "0.53894454", "0.5207965", "0.51814395", "0.5179564", "0.51268685", "0.511938", "0.51106244", "0.5063293", "0.50413465", "0.5003358", "0.49373233", "0.49178502", "0.49174142", "0.48419312", "0.4830...
0.6149344
1
4. IMPLEMENTING N COMMAND
function ncommand(){ // let isNPresent = optionsArr.includes("-n"); // if(isNPresent == true){ for(let i = 0 ; i < contentArr.length ; i++){ contentArr[i] = `${i + 1} ${contentArr[i]} `; } console.log("AFTER IMPLEMENTING -N COMMAND"); console.log(contentArr.join("\n"));...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Command () {}", "_emitCommandsd() {\n const commands = [];\n\n for (const [cmd, { description }] of this.commands) {\n commands.push({ cmd, description });\n }\n\n process.send({ type: 'commands', commands });\n }", "function processCommands(arr) {\r\n let process = (function () {...
[ "0.6580269", "0.6226805", "0.6014961", "0.59804523", "0.5963745", "0.59291404", "0.59126574", "0.5882761", "0.58121234", "0.5806248", "0.58003265", "0.57668597", "0.572733", "0.57218677", "0.56798923", "0.5650573", "0.5630179", "0.56260806", "0.5609899", "0.5605935", "0.56004...
0.7640748
0
} 5 . IMPLEMENTING B COMMAND
function bcommand(){ // let isBPresent = optionsArr.includes("-b"); // if(isBPresent == true){ let counter = 1; for(let i = 0 ; i < contentArr.length ; i++){ if(contentArr[i] != ""){ contentArr[i] = `${counter} ${contentArr[i]}`; counter++; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Command () {}", "*pressButtonB() {\n yield this.sendEvent({ type: 0x01, code: 0x131, value: 1 });\n }", "function WriteB() {\r\n}", "*releaseButtonB() {\n yield this.sendEvent({ type: 0x01, code: 0x131, value: 0 });\n }", "function handleCommand() {}", "bhv_normal() {\n ...
[ "0.6540294", "0.6475223", "0.61164", "0.6037808", "0.5943296", "0.5897479", "0.5885089", "0.58813065", "0.5877523", "0.5877523", "0.5877523", "0.5877523", "0.58679587", "0.5856908", "0.5805884", "0.57966423", "0.57827854", "0.5773002", "0.5754991", "0.5746381", "0.5738544", ...
0.7404307
0
inner: localize About view
static updateAbout(pane) { if (pane) { // let updateView = pane.querySelector('div[class="about-updates group-start"]') console.log("About-i18n.updateAbout(): 1", ", constructor.name= ", pane.constructor.name); // let updateView = document.getElementsByClassName('about-updates group-start')?.item(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "showAbout(request, response) {\n return response.render('app/pages/about-us');\n }", "static get title() {\n return __('About');\n }", "viewTranslation() {\n switch(this.state.CurrentViewIndex) {\n case 0 :\n return \"By Student\";\n case 1 :\n ...
[ "0.6842285", "0.65996337", "0.6298714", "0.62624526", "0.6253271", "0.62449235", "0.6211191", "0.6210268", "0.61764467", "0.602387", "0.60136694", "0.596048", "0.59420985", "0.59362334", "0.59362334", "0.5818463", "0.5782359", "0.57424307", "0.5736145", "0.57320577", "0.57225...
0.64259374
2
Review card display by User
function deleteReview(schoolDBID){ fetch(`${process.env.REACT_APP_BACKEND_URL}/api/review/delete`, { method: 'DELETE', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({reviewerUUID: currentUser.uid, schoolDB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DisplayReview(review) {\n\t\tvar box = div('','review_box');\n\t\t\n\t\t\tvar sec = div('','review_star');\n\t\t\t\tsec.innerHTML = review.starRating;\n\t\t\tbox.appendChild( sec );\n\t\t\n\t\t\tvar sec = div('','review_word');\n\t\t\t\tsec.innerHTML = review.wordReview;\n\t\t\tbox.appendChild( sec );\n\t\t\n\t\t\...
[ "0.66828287", "0.65945023", "0.65061206", "0.6186551", "0.61188513", "0.6107027", "0.60772246", "0.60517645", "0.6051117", "0.6030156", "0.60086817", "0.5976836", "0.5958659", "0.5946721", "0.5936937", "0.5936065", "0.5873762", "0.58701396", "0.5847255", "0.58414006", "0.5800...
0.0
-1
Formats category objects from getBounceClassifications
function formatCategory(classification) { const { bounce_category_name, bounce_class_name, count_bounce = 0, count_admin_bounce = 0 } = classification; return { category: bounce_category_name, name: bounce_class_name, count: count_bounce || count_admin_bounce }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static convertToBMICategoryObject(obj) {\n return new BMICategory(obj[\"minRange\"], obj[\"maxRange\"], obj[\"category\"], obj[\"healthRisk\"]);\n }", "function formatCategories(categories) {\n categories.sort((a, b) => b.score - a.score);\n return categories.map(cat => `${cat.name} (${ca...
[ "0.60425174", "0.59755087", "0.59755087", "0.57691795", "0.5702459", "0.56876963", "0.5621656", "0.54457855", "0.5431455", "0.53956234", "0.53886795", "0.53801906", "0.537808", "0.5363643", "0.53625107", "0.53625107", "0.53625107", "0.53625107", "0.53604656", "0.53581345", "0...
0.75160635
0
Creates band type data for bounce chart from aggregates
function getBandTypes({ countInbandBounce, countOutofbandBounce }) { return [ { name: 'In-Band', count: countInbandBounce }, { name: 'Out-of-Band', count: countOutofbandBounce } ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildBarChartObject(){\n let chartDBObject = {\n \"name\" : barChartProperties[0],\n \"numGates\" : barChartProperties[1],\n \"numReq\" : barChartProperties[2],\n \"gates\" : barGates\n };\n return chartDBObject;\n}", "function buildbarchart(option) {\n \n if (option ===\"c...
[ "0.61882263", "0.5774833", "0.57078683", "0.5699021", "0.55996364", "0.559869", "0.5559094", "0.5559022", "0.55419177", "0.55416757", "0.55176604", "0.55107343", "0.5509595", "0.5477457", "0.54767424", "0.5475447", "0.54639053", "0.54518956", "0.54280853", "0.5423183", "0.542...
0.6013528
1
check if array contains a value
function contains(a, e) { for(j=0;j<a.length;j++)if(a[j]==e)return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static hasValue(array, value) {\n for (var tI = 0; tI < array.length; tI++) {\n if (array[tI] === value) {\n return true;\n }\n }\n return false;\n }", "function contains(arr, value) {\n\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\tif (arr[i] === v...
[ "0.8176011", "0.8137887", "0.8137887", "0.8137887", "0.8128021", "0.8120437", "0.8019287", "0.8002567", "0.79936117", "0.79657507", "0.79470515", "0.79470515", "0.79470515", "0.793459", "0.79266214", "0.7918305", "0.7896044", "0.78904366", "0.7879045", "0.7879045", "0.7837579...
0.0
-1
this function decides which objects should be visible according to which radio control they are related (use the class attribute [name]_related, where [name] is the name attribute oif the associated radio button/checkbox ) a radio control may control multiple DOM elements a DOM object will be visible if any of the cont...
function toggleRows() { var objNameRoot = this.name; var relatedObjs = $bl("." + objNameRoot + "_related"); relatedObjs.each(function(i) { //find which objects are related to the control the user just clicked on var isVisible = []; var classNames = $bl(relatedObjs[i]).attr("class").split(" "); $bl(cla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CheckIfRadioSelected() {\n for (var i = 0; i < questExercices.length; i++) {\n if (questExercices[i].checked && currentSlide == slides.length - 1) {\n nextQuestionType.style.display = \"inline-block\";\n }\n\n else if (questExercices[i].checked) {\n nextButton.style.display = \"inline-...
[ "0.6308324", "0.6155513", "0.6081723", "0.6014999", "0.5979112", "0.59313464", "0.5912702", "0.58609784", "0.5846774", "0.58197653", "0.5746109", "0.5686281", "0.56561255", "0.5603", "0.55928314", "0.55778015", "0.5571307", "0.5564168", "0.55618", "0.5561506", "0.55297613", ...
0.60256946
3
Dispatches to client.saga to GET full list of clients
componentDidMount() { this.props.dispatch({ type: 'GET_CLIENTS' }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllClients() {\n return clients;\n }", "function getClients(){\n return clients;\n}", "getListClients(req, res) {\n Client.findAll({\n where: {\n 'segment': req.params.id\n }\n }).then(function(clients) {\n if (clients) {\n ...
[ "0.7370349", "0.71276957", "0.69575274", "0.67524755", "0.6625043", "0.6598151", "0.6396068", "0.62283456", "0.6206285", "0.617186", "0.617026", "0.6161537", "0.6144958", "0.6081811", "0.60679626", "0.6063242", "0.60589516", "0.59921587", "0.59690136", "0.59466755", "0.590028...
0.63471556
7
form validation for registerform
function validatesignup(){ // get values of your input fields into a javascript object. var signupuname = document.getElementById("uname"); var email = document.getElementById("email"); var firstname = document.getElementById("fname"); var lastname = document.getElementById("lname"); var signupp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateForm(){\n // Set error catcher\n var error = 0;\n // Check name\n if(!validateName('reg_name')){\n document.getElementById('nameError').style.display = \"block\";\n error++;\n }\n // Validate email\n var x =document.getElementById('reg_email').value...
[ "0.727723", "0.72636586", "0.72371286", "0.7200066", "0.71926135", "0.70624757", "0.70608", "0.69926304", "0.69428563", "0.69330513", "0.6909339", "0.69014496", "0.6874006", "0.6872161", "0.6836097", "0.6827886", "0.68038875", "0.67841834", "0.67807555", "0.6773177", "0.67690...
0.0
-1
admin list of data
function dispAdminData(){ //console.log(localStorage.getItem('formData')); // for(let i=0; i< localStorage.length; i++){ let {uname,email,fname, lname, roles, pwd} = JSON.parse(localStorage.getItem('formData'));//destructuring // var output = document.getElementById('ou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "list(req, res) {\n this.__readData(__data_source)\n .then(lists => {\n \n \n res.json({ type: \"success\", data: this.__formatter(lists) });\n })\n .catch(err => res.status(412).json({type:\"error\", data:[], message:\"No Data Found\"...
[ "0.6792017", "0.6592042", "0.6570407", "0.6554232", "0.65520334", "0.6551637", "0.650839", "0.6481764", "0.6430355", "0.6354936", "0.6315087", "0.6281525", "0.62230635", "0.6222409", "0.6204227", "0.6171701", "0.61667615", "0.61535794", "0.6148706", "0.61188424", "0.61159796"...
0.0
-1
operation list of data
function dispOperationsData(){ //console.log(localStorage.getItem('formData')); let {uname,email,fname, lname, roles, pwd} = JSON.parse(localStorage.getItem('formData'));//destructuring var optable = document.getElementById("optable"); var row = optable.insertRow(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _filterOperations(data) {\n var updateOps = [];\n var createOps = [];\n for(var i=0; i<data.length; i++) {\n var queryJSON = {};\n //var element = _parseProperty(queryJSON, view_model.primaryKeyProperty);\n //element = _parseProperty(data[i], view_model.primaryKeyProper...
[ "0.6271775", "0.5811673", "0.5788626", "0.5690453", "0.5690453", "0.5672399", "0.56619686", "0.56619686", "0.5650533", "0.56204426", "0.5596753", "0.5589927", "0.55788755", "0.5566778", "0.55606306", "0.55470914", "0.5501891", "0.548315", "0.54433715", "0.5408308", "0.5396264...
0.0
-1
sales list of data
function dispSalesData(){ // console.log(localStorage.getItem('formData')); let {uname,email,fname, lname, roles, pwd} = JSON.parse(localStorage.getItem('formData'));//destructuring // var salesdata = document.getElementById('salesdata'); // salesdata.innerHTML = ` ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async getSales(){\n\t\t\ttry {\n\t\t\t\tlet response = await axios.get(\"/api/sales\");\n\t\t\t\tthis.sales = response.data;\n\t\t\t} catch (error){\n\t\t\t\tconsole.log(error);\n\t\t\t}\n\t\t\tthis.calcTotal();\n\t\t\tthis.filteredSales();\n\t\t}", "function calculateSales(salesData){\n var totalSales = 0;\n ...
[ "0.6903463", "0.6861202", "0.6714802", "0.66153175", "0.658037", "0.6570409", "0.65331584", "0.64747155", "0.6397362", "0.637954", "0.63630867", "0.6328695", "0.6286936", "0.62357676", "0.6216344", "0.61641294", "0.6106094", "0.60974306", "0.60215074", "0.602144", "0.60033005...
0.0
-1
Create a web app where I can input a text. Now create two buttons + and . On clicking + increase the fontSize by 2px and vice versa.
function Main() { const [fontSize, setFontSize] = useState(22); function increase() { setFontSize(fontSize + 2); } function decrease() { setFontSize(fontSize - 2); } return ( <div> <input type = "text" style = {{fontSize: fontSize + "px"}}></input> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fontSlider(e) {\n this.setState({fontSize: e.target.value});\n document.getElementById('generatedButton').style.fontSize = e.target.value + 'px';\n }", "function btnBiggerDecorationClick() {\n setInterval(() => {\n var style = window.getComputedStyle(textArea, null).getPropertyValue('font-size').rep...
[ "0.6904444", "0.6874029", "0.68526965", "0.6824848", "0.675735", "0.675521", "0.66983676", "0.6673288", "0.66329026", "0.6630629", "0.66303664", "0.65809697", "0.6568557", "0.6546522", "0.6502293", "0.64719516", "0.647173", "0.64607555", "0.64132226", "0.63795507", "0.6361910...
0.68886966
1
Starts work hours chart References:
async function Frame5() { //Show & run progress bar runProgressBar(time=700*6); ///////////////////////////////////////////////////////// ////Remove existing chart elements //d3.selectAll("line").remove() d3.selectAll(".data-line").remove() d3.selectAll(".dot").remove() d3.selectAll...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showHours() {\n var start = 0;\n var idstr = '';\n var hour = 0;\n var meridian = '';\n var calcDay = null;\n var cd = currDate;\n var currDay = new Date(cd.getFullYear(), cd.getMonth(), cd.getDate());\n var viewDiv = ...
[ "0.63680094", "0.6089027", "0.60872406", "0.5928766", "0.5783916", "0.5734601", "0.57170904", "0.56870884", "0.56690955", "0.56488866", "0.56160796", "0.55690557", "0.55362576", "0.55182266", "0.55061823", "0.5502406", "0.547013", "0.5440926", "0.5434443", "0.54271483", "0.54...
0.0
-1
var spaceshipVel = [ ax vel, ay vel ]; utilities
function orient (ang) { var stableAng = normAngle(ang - spaceship[4]); AIrotate = stableAng < 0 ? -1 : 1; return stableAng; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculateVelocity() {\n velocity_of_x = bullet_moving_velocity * Math.cos(bullet_moving_theta * Math.PI / 200);\n velocity_of_y = bullet_moving_velocity * Math.sin(bullet_moving_theta * Math.PI / 200);\n}", "vel() {\n this.y += this.speed;\n }", "function spaceship(xShip, yShip, dirShip, vel...
[ "0.692294", "0.6895645", "0.6615389", "0.6574278", "0.6541397", "0.6527962", "0.6527729", "0.6508148", "0.64789087", "0.6444307", "0.642537", "0.64142853", "0.6412448", "0.6412448", "0.6378277", "0.6364437", "0.6358809", "0.6331268", "0.63268274", "0.6300132", "0.6283193", ...
0.0
-1
take actions to move and stabilize to a point
function moveToPoint (p, minDist) { var dx = p[0]-spaceship[0]; var dy = p[1]-spaceship[1]; if (dx*dx+dy*dy<minDist*minDist) return; var tx = dx / 800; var ty = dy / 800; var x = tx - spaceship[2]; var y = ty - spaceship[3]; var ang = Math.atan2(y, x); var dist = length([x, y]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function act(){\n\t\tmodel.transform.localPosition = relativePosition;\n\t\t//Does nothing\n\t}", "moveTo(x, y) {\n this.params.x = x\n this.params.y = y\n this.updateParams()\n }", "move() {\n this.x += this.xdir * .5;\n this.y += this.ydir * .5;\n }", "* moveTo(globalX, globalY, del...
[ "0.6652065", "0.6482345", "0.6451336", "0.6440571", "0.64325625", "0.6430505", "0.64096165", "0.63576734", "0.63386077", "0.6334456", "0.6318916", "0.6315667", "0.6310654", "0.6283693", "0.62537223", "0.6225437", "0.62235326", "0.6198562", "0.6188969", "0.61804926", "0.618026...
0.0
-1
a line defined by AB, point is P
function projectPointToLine (p, a, ab) { var ap = [ p[0]-a[0], p[1]-a[1] ]; var k = dot(ap,ab)/dot(ab,ab); return [ a[0] + k * ab[0], a[1] + k * ab[1] ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LineRule(pointA, pointB) {\n\n this.k = (typeof pointA != 'object' || (pointA.x == pointB.x) ? undefined :\n (pointB.y - pointA.y) / (pointB.x - pointA.x)); // angular coefficient\n this.b = (isNaN(this.k) ? undefined : pointA.y - pointA.x * this.k); // offset\n\n this.x = (isFinite(this.k) || pointA ...
[ "0.7271989", "0.68806446", "0.6699964", "0.6699964", "0.6698709", "0.66860384", "0.66860384", "0.66860384", "0.66860384", "0.66860384", "0.66860384", "0.66860384", "0.66860384", "0.66860384", "0.66860384", "0.66860384", "0.66174364", "0.6616482", "0.6597578", "0.6557474", "0....
0.7210593
1
danger have [ x, y, rot, vel ]
function moveAwayFromAsteroid (ast) { var v = [ ast[3] * Math.cos(ast[2]),// - spaceshipVel[0], ast[3] * Math.sin(ast[2])// - spaceshipVel[1] ]; var p = projectPointToLine(spaceship, ast, v); var acceptDist = 30 + 10 * ast[5]; var d = dist(p, spaceship); if (d > acceptDist) return; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor(x, y, s, rot, id, or) {\n this.id = id;\n this.rotation = rot\n this.size = s;\n this.r = this.size / 2;\n // Sets the poition of the bullet outside of the radius of the object calling it\n this.position = {\n x: x + Math.cos((this.rotation - 90) * (...
[ "0.63987833", "0.6398719", "0.63619107", "0.63034534", "0.6299182", "0.62863654", "0.6243286", "0.61667347", "0.61635226", "0.6146349", "0.6136719", "0.6100262", "0.60964364", "0.60848445", "0.6047683", "0.60384136", "0.60384136", "0.60353935", "0.60315216", "0.60249406", "0....
0.0
-1
var licDeCondCdmxs = require('./docsAnalysis/licenciamanejocdmx.js');
function getInfoDeDocumento(datos, rostro) { console.log('====================datos para analizar====='); console.log(datos); console.log('============================================='); //regresa false si no es el documento, regresa la info analizada si es el documento en cuestion let stsIne = ine.getInfoF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DataViewer() {\n\n \"use strict\";\n\n}", "function DataViewer() {\n\n \"use strict\";\n\n}", "function Cdr() {\r\n}", "function pd(){}", "function getSoftwareList() {\n \"use strict\";\n}", "function compile_fun() {\n exec(\"mi \" + sourceFile + ' > ' + __dirname +'/webpage/js/data-...
[ "0.5314685", "0.5314685", "0.5298224", "0.5281722", "0.5262185", "0.51749766", "0.5167717", "0.5136179", "0.5136179", "0.5136179", "0.5136179", "0.5136179", "0.51190495", "0.508633", "0.50726074", "0.5065614", "0.49624124", "0.49357837", "0.49343956", "0.49333906", "0.4913631...
0.0
-1
ShowWhen and HideWhen Inpired from MIT license
function showhide($window,show) { return { restrict: 'A', link: function($scope, $element, $attr) { function checkExpose() { var mq = media($attr[show?'showWhenMedia':'hideWhenMedia']); var matches = $window.matchMedia(mq).matches; var visible = (show && matches) || (!show && !matches); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggleHidness(toHide, toShow) {\n if (toHide != \"\") {\n $(toHide).hide();\n }\n\n if (toShow != \"\") {\n if ($(toShow).hasClass(\"hide\")) {\n $(toShow).removeClass(\"hide\");\n } else {\n $(toShow).show();\n }\n }\n}", "function updateWhatToShow() {\n\tvar whatToShow = getV...
[ "0.6345042", "0.6237673", "0.61331296", "0.60792136", "0.60792136", "0.597314", "0.59697044", "0.5968391", "0.5959045", "0.5927576", "0.5899819", "0.58883077", "0.58786047", "0.58781844", "0.5867986", "0.5849978", "0.58323294", "0.58178425", "0.5786325", "0.5770735", "0.57610...
0.0
-1
Game character render function Function to draw the game character.
function drawGameChar() { if(isLeft) { fill(255,0,255); rect(gameChar_x -10, gameChar_y -40, 20,35); fill(35,100,155); ellipse(gameChar_x,gameChar_y -50, 30); fill(25); ellipse(gameChar_x - 7, gameChar_y,11); ellipse(gameChar_x + 5, ga...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render() {\n\n // Call the Character instance's renderAt() method, passing along its current\n // left and top position\n _character.renderAt(_character.left, _character.top);\n }", "render(){\n // use the getCharcters method and the player sprite index to determine which ...
[ "0.78730345", "0.77494794", "0.76228255", "0.73827416", "0.7180902", "0.7108841", "0.70663214", "0.6951069", "0.68936515", "0.6825382", "0.668813", "0.6649569", "0.663913", "0.663366", "0.6620442", "0.6585318", "0.65128475", "0.64053357", "0.6387339", "0.6381408", "0.6371974"...
0.6182764
37
Background render functions Function to draw cloud objects.
function drawClouds() { for(var i = 0; i < cloud.length; i++) { fill(255); ellipse(cloud[i].x_pos, cloud[i].y_pos, cloud[i].width, 85); ellipse(cloud[i].x_pos + 40, cloud[i].y_pos, cloud[i].width, 55); ellipse(cloud[i].x_pos - 40, cloud[i].y_pos, cloud[i].width, 55); fill(255); ellipse(cloud[i].x_p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawEverything(){\n bg.draw()\n bgCloud.draw()\n}", "function drawclouds() {\n addBackgroundObject('./img/background/04_clouds/Completo.png', 100 - cloudoffset, -60, 0.5);\n addBackgroundObject('./img/background/04_clouds/1.png', 1000 - cloudoffset, -60, 0.5);\n addBackgroundObject('./img/bac...
[ "0.7677517", "0.75307643", "0.7509219", "0.6845352", "0.6681469", "0.65770733", "0.6566721", "0.65624833", "0.654966", "0.65274835", "0.65089357", "0.64957064", "0.64914805", "0.6478864", "0.6471208", "0.64277714", "0.6410768", "0.64066297", "0.64062184", "0.6396514", "0.6385...
0.6360871
26
Function to draw mountains objects.
function drawMountains() { for(var i = 0; i < mountains.length; i++) { fill(20, 20, 20); triangle(mountains[i].x_pos, mountains[i].y_pos + 240, mountains[i].x_pos + 100, mountains[i].y_pos - 20, mountains[i].x_pos + 200, mountains[i].y_pos + 240); fill(145, 145, 145); triangle(mountains[i].x_po...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawMountains()\n{\n\tfor(var i = 0; i < mountain.length; i++)\n\t\t{\n\t\t\tfill(128,128,128,100);\n\t\t\ttriangle(mountain[i].x_pos - 75,\n\t\t\t\t mountain[i].y_pos +272,\n\t\t\t\t mountain[i].x_pos,\n\t\t\t\t mountain[i].y_pos,\n\t\t\t\t mountain[i].x_pos + 75,\n\t\t\t\t mountain[i].y_pos + 272);\n\t\...
[ "0.81799096", "0.80605185", "0.7826522", "0.77483565", "0.7738779", "0.7637892", "0.7619868", "0.75074697", "0.7474999", "0.66751677", "0.66086555", "0.6572344", "0.6530141", "0.6527804", "0.6502286", "0.64228404", "0.6382263", "0.63202983", "0.6316188", "0.62983346", "0.6294...
0.7526219
7
Function to draw trees objects.
function drawTrees() { for(var i =0; i < treePos_x.length; i++) { noStroke(); fill(180, 100, 50); rect(treePos_x[i], treePos_y, 35, 70); fill(20, 130, 20); triangle(treePos_x[i] - 50, treePos_y + 10, treePos_x[i] + 20, treePos_y - 100, treePos_x[i] + 90, treePos_y + 10); fill(20, 150, 20); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawTree(){\n drawLeaves();\n drawTrunk();\n penUp();\n}", "DrawTree()\n {\n\n }", "function drawTree() {\n noStroke();\n fill(TRUNK_COLOR);\n rect(xTrunkCorner, yTrunkCorner, 10, 50);\n\n // fill alternating columns with different colors of green\n if (i % 2 == 0) {\n fil...
[ "0.82480216", "0.8078373", "0.7904379", "0.7904379", "0.7720816", "0.7698321", "0.7646139", "0.76350087", "0.76319766", "0.7468785", "0.737342", "0.7364213", "0.7293552", "0.72421616", "0.7223847", "0.71842235", "0.71763676", "0.71706396", "0.70666885", "0.70585126", "0.69467...
0.76075846
9
Canyon render and check functions Function to draw canyon objects.
function drawCanyon(t_canyon) { noStroke(); fill(100, 155, 255); rect(t_canyon.x_pos, t_canyon.y_pos, t_canyon.width, 200); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawCanyon(t_canyon)\n{\n fill(11, 27, 13);\n rect(t_canyon.x_Pos,t_canyon.y_Pos,t_canyon.width,floorPos_y);\n}", "function drawCanyon(t_canyon)\n{\n fill(0, 0, 255);\n rect(t_canyon.x_pos, floorPos_y, t_canyon.width, height - floorPos_y); \n}", "function drawObjects() {\n\t\t\tfor(var i i...
[ "0.6675919", "0.6624996", "0.6599817", "0.65893525", "0.65810466", "0.6564774", "0.64748096", "0.6460877", "0.6460877", "0.6460877", "0.64257336", "0.64234644", "0.64142317", "0.6399598", "0.6390098", "0.6390098", "0.6388831", "0.6387895", "0.6379869", "0.6377868", "0.636507"...
0.6320949
30
Function to check character is over a canyon.
function checkCanyon(t_canyon) { if(gameChar_world_x <= t_canyon.x_pos + 100 && gameChar_y >= t_canyon.y_pos && gameChar_world_x > t_canyon.x_pos) { isPlummeting = true; gameChar_y += 2; } else { isPlummeting = false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkCanyon( t_canyon ) {\n \n // Is gameChar between the open space of a canyon? AND... Is gameChar at ground level?\n if ( ( gameChar_world_x > t_canyon.top_left_x_pos && gameChar_world_x < t_canyon.top_right_x_pos ) &&\n gameChar_y >= floorPos_y ) {\n \n // If true, then i...
[ "0.72616595", "0.7031863", "0.68573654", "0.67979515", "0.67463356", "0.66651154", "0.66168225", "0.6596919", "0.64846975", "0.6093377", "0.6085044", "0.59676254", "0.58999175", "0.58964604", "0.5895127", "0.5879941", "0.5845236", "0.5774939", "0.5772543", "0.57701385", "0.57...
0.6809713
3
Collectable items render and check functions Function to draw collectable objects.
function drawCollectable(t_collectable) { noFill(); strokeWeight(6); stroke(220, 185, 0); ellipse(t_collectable.x_pos, floorPos_y - t_collectable.size * 0.4, t_collectable.size * 0.8, t_collectable.size * 0.8); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawcollectables(t_collectable)\n{\n\tfor(var i = 0; i < collectables.length; i++)\n\t\t{\n\t\t\tstroke(255, 255, 0); \n\t\t\tstrokeWeight(25)\n\t\t\tpoint(t_collectable.x_pos, t_collectable.y_pos);\n\t\t\tstroke(255, 255, 0);\n\t\t\tstrokeWeight();\t\n\t\t}\n}", "function Collectable(x, y, size, isFoun...
[ "0.718819", "0.6957242", "0.6894274", "0.67577356", "0.6681793", "0.660446", "0.6236479", "0.6093102", "0.6022813", "0.6002663", "0.5982552", "0.59602743", "0.5939418", "0.584909", "0.5844063", "0.5763929", "0.57434356", "0.5699995", "0.5693995", "0.5685906", "0.56676614", ...
0.6628188
5
Function to check character has collected an item.
function checkCollectable(t_collectable) { if(dist(gameChar_world_x, gameChar_y, t_collectable.x_pos, t_collectable.y_pos) < t_collectable.size) { t_collectable.isFound = true; game_score += 1; jumpRing.play(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hasItem (item){\n\t\treturn true;\n}", "function allItemsCollected () {\n\tif (Inventory.length === 4) {\n\t\talert(\"Congrats, you now have all the items you need. But whats next...?\");\n\t\tused = true;\n\t}\n}", "function checkCollectables(t_collectables)\n{\n //logic for collectable item\n ...
[ "0.66582143", "0.6356113", "0.61898446", "0.61836225", "0.61222726", "0.6101142", "0.60818225", "0.5926472", "0.5926472", "0.59163225", "0.58762085", "0.58657634", "0.5856436", "0.5851638", "0.58500975", "0.58297235", "0.5817942", "0.57791424", "0.5744425", "0.57218415", "0.5...
0.5786084
17
Called when a project details is retrieved.
function onProjectFetched(evt, data) { var split = $state.current.name.split('.'); if ('agile' != split[split.length - 1]) { return; } $scope.user = data.user; $scope.project = data.project; // Retrieve list of boards. Board .all($scope.project._id) .then(function (boards...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fetchProjectInfo() {\n // Request URL for project\n var projectAPI = testRailURL + \"/index.php?/api/v2/get_projects\";\n var params = setTestRailHeaders();\n\n // Proxy the request through the container server\n gadgets.io.makeRequest(projectAPI, handleProjectResponse, params);\n}", "function fetc...
[ "0.71633035", "0.70494324", "0.6951901", "0.6790376", "0.6658142", "0.65326136", "0.65230274", "0.64789987", "0.6442509", "0.6387519", "0.6363615", "0.63559806", "0.63282704", "0.6328244", "0.62782687", "0.62436146", "0.6242943", "0.6240485", "0.6184294", "0.61812764", "0.617...
0.6206433
18
Initialize sortable widgets for agile boards.
function initSortables() { $scope.board.width = $scope.board.lists.length * 400; setTimeout(function () { $('div[data-board=' + $scope.board._id + ']').sortable({ handle: '.handler', update: function(event, ui) { var $item = $(ui.item); Board.update_list($item.attr('id'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function aq_sortable_list_init() {\n\t\t$('.aq-sortable-list').sortable({\n\t\t\tcontainment: \"parent\",\n\t\t\tplaceholder: \"ui-state-highlight\"\n\t\t});\n\t}", "function aq_sortable_list_init() {\n\t\t$('.aq-sortable-list').sortable({\n\t\t\tcontainment: \"parent\",\n\t\t\tplaceholder: \"ui-state-highlight\...
[ "0.710319", "0.710136", "0.6715261", "0.65440154", "0.6538757", "0.6525026", "0.64745665", "0.64210165", "0.6411327", "0.63735807", "0.62892586", "0.6161354", "0.61600024", "0.6153689", "0.6140635", "0.61152655", "0.61051065", "0.60957855", "0.6033401", "0.59859204", "0.59635...
0.72866845
0
Create a new board.
function boardCreate() { Board .create(vm.newBoardName || 'new board', $scope.project.id) .then(function (board) { vm.isBoardTitleFormVisible = false; vm.newBoardName = ''; vm.boardList.push(board); setBoard(board._id); board.active = true; }) .catch(A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createBoard() {\n window.board = new Board(4, 13);\n createCards();\n window.board.placeCards();\n}", "function boardCreate() {\n let board = [\n [' ', ' ', ' '],\n [' ', ' ', ' '],\n [' ', ' ', ' '],\n ];\n\n return board;\n}", "function create_game_board(){\n update_number_of_p...
[ "0.76352906", "0.7489034", "0.73199517", "0.7094839", "0.70370793", "0.7026582", "0.7012322", "0.7009538", "0.69940156", "0.69934916", "0.69570976", "0.69225776", "0.69207233", "0.6909152", "0.6866886", "0.6815853", "0.6811215", "0.6801198", "0.6781583", "0.6779954", "0.67778...
0.8133
0
Show form to enter new board title.
function showBoardTitleForm() { vm.isBoardTitleFormVisible = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function title_view(title) {\n var titleInput = gId(\"title\");\n gId('story_title').innerHTML = title;\n gId('story_title').style.display = \"block\";\n titleInput.style.display = \"none\";\n gId('add_title').style.display = \"none\";\n}", "onClickNewBoard() {\n commonActions.click(this.create...
[ "0.6515892", "0.63438034", "0.6219831", "0.6158951", "0.6103297", "0.6020116", "0.60037583", "0.58376956", "0.5806091", "0.5716331", "0.5686194", "0.56817156", "0.56674576", "0.56671005", "0.56393915", "0.56385833", "0.56292266", "0.559717", "0.5591876", "0.556684", "0.555390...
0.70558554
0
Hide form to enter new board title.
function hideBoardTitleForm() { vm.isBoardTitleFormVisible = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showBoardTitleForm() {\n vm.isBoardTitleFormVisible = true;\n }", "function hideBoardEditForm() {\n vm.isBoardEditFormVisible = false;\n }", "static showCreateGameForm() {\n const newGameFormDiv = document.getElementById('new-game-form-div');\n newGameFormDiv.style.display = \"\"...
[ "0.756173", "0.6828294", "0.6485923", "0.6389264", "0.6374515", "0.63265103", "0.62744117", "0.6224182", "0.622263", "0.61645573", "0.6162963", "0.6118563", "0.61171377", "0.6101067", "0.60762316", "0.6029948", "0.5969435", "0.5965629", "0.5961361", "0.5941539", "0.59302145",...
0.8197696
0
Show form to rename board title.
function showBoardEditForm() { vm.isBoardEditFormVisible = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setupRenameForm(form) {\r\n\tdocument.getElementById('formlabel-'+form).style.display = 'none';\r\n\tdocument.getElementById('form_menu_description_input_span-'+form).style.display = '';\r\n\tsetCaretToEnd(document.getElementById('form_menu_description_input-'+form));\r\n}", "function showBoardTitleForm...
[ "0.66989386", "0.6536317", "0.6348463", "0.6250604", "0.623505", "0.6214213", "0.6200691", "0.6200066", "0.61797774", "0.60696155", "0.6058538", "0.60581696", "0.60563725", "0.6034928", "0.596519", "0.5952255", "0.593469", "0.5862299", "0.58333135", "0.58202887", "0.5809597",...
0.0
-1
Hide form to rename board title.
function hideBoardEditForm() { vm.isBoardEditFormVisible = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hideBoardTitleForm() {\n vm.isBoardTitleFormVisible = false;\n }", "function showBoardTitleForm() {\n vm.isBoardTitleFormVisible = true;\n }", "function setupRenameForm(form) {\r\n\tdocument.getElementById('formlabel-'+form).style.display = 'none';\r\n\tdocument.getElementById('form_menu_descr...
[ "0.8211703", "0.72649103", "0.68146205", "0.6334558", "0.63137496", "0.629647", "0.6257589", "0.61170584", "0.6101483", "0.6101124", "0.6086255", "0.6058197", "0.6021509", "0.60175496", "0.6015263", "0.6002566", "0.5996681", "0.59621876", "0.5961092", "0.59405255", "0.592627"...
0.68563503
2
Show form to enter new list name.
function showListForm() { vm.isListFormVisible = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function editListName() {\n // open modal\n modal.style.display = \"block\";\n \n input.focus();\n \n btn.onclick = function() {\n listName.innerHTML = input.value;\n input.value = '';\n modal.style.display = \"none\";\n }\n }"...
[ "0.7118775", "0.66366905", "0.6635904", "0.6612042", "0.65695846", "0.6508815", "0.6463178", "0.63798493", "0.63797146", "0.63455176", "0.6324895", "0.63135666", "0.6313351", "0.6289287", "0.628771", "0.6268559", "0.62123257", "0.6210845", "0.6210763", "0.62104064", "0.619846...
0.604163
31
Hide form to enter new list name.
function hideListForm() { if (!isAddingList) { vm.isListFormVisible = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hideCreateForm() {\n this.changeFormMode(this.FORM_MODES.LIST);\n }", "function editListName() {\n // open modal\n modal.style.display = \"block\";\n \n input.focus();\n \n btn.onclick = function() {\n listName.innerHTML = ...
[ "0.68889546", "0.6783635", "0.669187", "0.661535", "0.65992105", "0.6579434", "0.64624953", "0.64334774", "0.63358396", "0.6227474", "0.62142646", "0.61526316", "0.6118547", "0.6116656", "0.61018527", "0.6053157", "0.6040054", "0.6032639", "0.6032639", "0.6008791", "0.5971723...
0.7574231
0
Adapted from convertsourcemap (MIT)
function toComment(sourceMap) { // eslint-disable-next-line no-undef var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; return '/*# ' + data + ' */'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extractSourceMap(fs, logger, file) {\n var inline = convert_source_map_1.commentRegex.test(file.text);\n var external = convert_source_map_1.mapFileCommentRegex.exec(file.text);\n if (inline) {\n var inlineSourceMap = convert_source_map_1.fromSource(file.text);\n ...
[ "0.69679236", "0.69377637", "0.67660517", "0.644171", "0.63287604", "0.62983114", "0.6256009", "0.6210124", "0.61941147", "0.61812603", "0.6174446", "0.6158444", "0.6158444", "0.6158444", "0.6154958", "0.60953784", "0.6039884", "0.5989862", "0.5980611", "0.5979347", "0.597915...
0.0
-1