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
start function, display table, start function grabs table at current state, will always display most recently updated
function start() { connection.query("SELECT * FROM products", function (err, res) { if (err) throw err; //display table console.table(res); purchase(); }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderTable() {\n clearTable();\n showTable();\n}", "function init() {\r\n getTable();\r\n // refreshes the table every 10 seconds\r\n setInterval(getTable, 10000);\r\n}", "table() {\n this.showtable= ! this.showtable;\n //workaround - table width is incorect when rendered hidden\n ...
[ "0.76291645", "0.72437644", "0.71648914", "0.69176173", "0.6827688", "0.6801188", "0.6698339", "0.66368055", "0.6620058", "0.66087216", "0.65923715", "0.6552998", "0.65433365", "0.65427154", "0.65326524", "0.65180844", "0.65137464", "0.65100765", "0.6480164", "0.64801526", "0...
0.0
-1
run server and database connection with program application functionality
function run() { // connection.connect(function (err) { // if (err) throw err; // //run basic start program function to display bamazon table // start(); // // purchase(); // }); start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function main () {\n console.log(\"Registering Events...\");\n gm.events.register();\n\n console.log(\"Server started!\");\n Query(8080); //You can change your port\n\n // ---- This is for check database connection ----- //\n\n /*let testdb = gm.utility.dbConnect();\n\n testdb.connect(function(err) {\n i...
[ "0.7500981", "0.7473944", "0.7332666", "0.6587592", "0.6580744", "0.6501477", "0.65014446", "0.6433527", "0.6413619", "0.6327897", "0.63237536", "0.6289853", "0.62621045", "0.62344193", "0.6216015", "0.62108034", "0.62006825", "0.6092908", "0.6080942", "0.6064415", "0.6050778...
0.6043346
22
Here the class is being implemented and given a default state with an empty array property.
constructor(props) { super(props); this.state = { HomepageStats: [], } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get defaultState() {\n return {\n data: []\n };\n }", "constructor() {\n this.internal = [];\n }", "constructor() {\r\n // this.size = 0;\r\n this.arr = [];\r\n }", "function n(){this._array=[],this._set={}}", "constructor(props) {\n super(props);\n this.state = {\n ...
[ "0.6531261", "0.652901", "0.6408819", "0.6343637", "0.62872165", "0.62680525", "0.62448967", "0.62448967", "0.6242758", "0.6242571", "0.62098837", "0.61470956", "0.6147087", "0.6145632", "0.61268115", "0.6118435", "0.61168736", "0.60964423", "0.6083034", "0.6059359", "0.60495...
0.0
-1
returns number of cannons in a pyramid of cannonballs using a recurrence relation cannonball(n) = nn + cannonball(n1)
function cannonball(n) { if( n === 1){ return 1; }else{ return n * n + cannonball(n - 1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pyramid(cans){\n\tvar total = 0;\n\tvar counter = 1;\n\tvar result = 0;\n\twhile(total <= cans){\n\t\ttotal += Math.pow(counter,2);\n\t\tresult = counter;\n\t\tcounter++;\n\t}\n\treturn --result;\n}", "function pyramid(cans){\n\tvar res = []; \n\t// var x = 0\n\twhile(cans > 1){\n\n\t\tres.push(Math.sqr...
[ "0.6721067", "0.6645689", "0.6422362", "0.6253035", "0.62261575", "0.61913514", "0.59372807", "0.59161866", "0.5898323", "0.5876457", "0.58520705", "0.58518714", "0.58251727", "0.5822372", "0.5803231", "0.5732289", "0.5717674", "0.57052827", "0.56735444", "0.5653135", "0.5651...
0.7278037
0
edit post office section
async function addEditDeleteButton(element, type) { let editFunction; if (type.toLowerCase() == "postoffices") { editFunction = onPostOfficeEdit; } else if (type.toLowerCase() == "storagecompanys") { editFunction = onStorageCompanyEdit; } element.addEventListener("click", async function (event) { if (event.target.closest("div").className.includes("edit-button")) { let id = event.target.closest("div.edit-button").id; await getEditModal(id, type, editFunction); } if (event.target.closest("div").className.includes("delete-button")) { let id = event.target.closest("div.delete-button").id; await onDelete(id, type); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function editPresentation (e) {\n\tlet idText = e.currentTarget.id;\n\tif (!idText.includes('image') && !idText.includes('edit')) {\n\t\tidText = e.currentTarget.parentNode.id;\n\t}\n\tidNum = parseInt(idText);\n\thandlePresentation(idNum);\n}", "function setupEditContent() {\n var $wp = $('.write-pag...
[ "0.61901766", "0.6157366", "0.6151261", "0.6101716", "0.6101716", "0.6048427", "0.6004961", "0.5959624", "0.5906611", "0.58753157", "0.5850379", "0.5835142", "0.57906663", "0.5788812", "0.57843053", "0.5759395", "0.5756157", "0.5746271", "0.5742874", "0.5741424", "0.57303995"...
0.0
-1
edit storage company section
async function onStorageCompanyEdit() { event.preventDefault(); if (!$("#modalWindowBlock .modal #addForm").valid()) { return; } let form = document.querySelector("#addForm"); let formData = new FormData(form); let parameters = new URLSearchParams(formData); await sendRequest("/storageCompanys", "put", parameters); onModalClose(); getItemsList("storageCompanys"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "update(companyId) {\n return Resource.get(this).resource('Admin:updateCompany', {\n company: {\n ...this.displayData.company,\n margin: this.displayData.company.settings.margin,\n useAlternateGCMGR: this.displayData.company.settings.useAlternateGCMGR,\n serviceFee: this.displayD...
[ "0.6512022", "0.6260384", "0.6237383", "0.6085678", "0.5973081", "0.59060085", "0.5844136", "0.56873536", "0.56678903", "0.5568383", "0.5495501", "0.54906136", "0.54874307", "0.5475003", "0.5434733", "0.54195154", "0.54015535", "0.53953695", "0.53770345", "0.5372026", "0.5350...
0.67870003
0
Appends new file form row. This changes `model`.
addFile() { this.addCustom('type', { inputLabel: 'Property value' }); const index = this.model.length - 1; const item = this.model[index]; item.schema.isFile = true; item.schema.inputType = 'file'; this.requestUpdate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addFile(row, col, action) {\n\t\t\tconsole.log(\"add file example\", row);\n\t\t\tvar d = new Date();\n\t\t\tvar modifyItem = row.entity;\n\t\t\tif(modifyItem != undefined){\n\t\t\t\tmodifyItem.filename='newfile.jpg';\n\t\t\t\tmodifyItem.serial=10;\n\t\t\t\tmodifyItem.date = d;\n\t\t\t}\n\t\t\t//update ac...
[ "0.64594394", "0.62547046", "0.6169036", "0.5937158", "0.5894436", "0.58939934", "0.58461946", "0.5761837", "0.5725706", "0.56414187", "0.5603139", "0.5497808", "0.54590863", "0.54520863", "0.5437351", "0.5404809", "0.54003686", "0.5393868", "0.5362818", "0.5359372", "0.53406...
0.6369479
1
Appends empty text field to the form. This changes `model`.
addText() { this.addCustom('type', { inputLabel: 'Property value' }); const index = this.model.length - 1; const item = this.model[index]; item.schema.isFile = false; item.schema.inputType = 'text'; /* istanbul ignore else */ if (hasFormDataSupport) { item.contentType = ''; } this.requestUpdate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makingInputEmpty(input){\n input.value = \"\";\n}", "getItemEmpty() {\n this.elements.form.querySelector('.field-title').value = '';\n this.elements.form.querySelector('.field-price').value = '';\n }", "function emptyField(event){\n\t\tvar thisObj = $(this);\n\t\tvar currVal=thisObj.val();\n...
[ "0.6011149", "0.599558", "0.5973112", "0.5938429", "0.58705604", "0.5869868", "0.5852022", "0.58518314", "0.58482265", "0.583491", "0.5822847", "0.58139586", "0.5799688", "0.57825714", "0.57810926", "0.575355", "0.57521373", "0.5744637", "0.5742645", "0.5734894", "0.5734518",...
0.6622295
0
Generates a message and displays highlighted content of the message.
async _previewOpenedChanged(opened) { if (!opened) { return; } if (!this.value) { this._toastMessage('Add a valid form items before generating a preview'); this.previewOpened = false; return; } this.messagePreview = undefined; this._messagePreviewCode = undefined; const preview = await this._generatePreview(); if (!preview) { this.previewOpened = false; return; } const e = new CustomEvent('syntax-highlight', { bubbles: true, composed: true, detail: { code: preview, lang: 'http' } }); this.dispatchEvent(e); this._messagePreviewCode = e.detail.code || preview; this.messagePreview = preview; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function message() {\n textSize(40);\n fill(0, 102, 153);\n textStyle(BOLD);\n textAlign(LEFT);\n text(\"Do you want to pop some bubbles to see a message?\", mesX, mesY);\n}", "showMessage() {\n // Create message element\n let message = document.createElement('div');\n message.classList.add('text-h...
[ "0.6414454", "0.63670295", "0.6366054", "0.6258947", "0.61552644", "0.607734", "0.60509104", "0.5997347", "0.5972793", "0.5937585", "0.592638", "0.59151953", "0.58700883", "0.5847833", "0.58454597", "0.5840393", "0.5838288", "0.5833487", "0.5831912", "0.58277595", "0.5817043"...
0.0
-1
Check if jQuery's loaded
function GM_wait() { if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); } else { $ = unsafeWindow.jQuery; letsJQuery(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkForJqueryPresents(){\n\t\t\tif(typeof jQuery == \"undefined\")\n\t\t\t\tthrow new Error(\"jQuery library not included\");\n\t\t}", "function checkAndLoadJquery() {\n if (window.jQuery === undefined || window.jQuery.fn.jquery !== '2.2.4') {\n loadScript(\"http://ajax.googleapis.com...
[ "0.7964887", "0.78342223", "0.75959057", "0.72162086", "0.70616096", "0.6911541", "0.68357533", "0.66507906", "0.66306186", "0.65993136", "0.6576148", "0.6576148", "0.6572374", "0.65344787", "0.6486709", "0.64643043", "0.64116114", "0.63366556", "0.6314393", "0.6307149", "0.6...
0.0
-1
handle simple parameterized types like List real, Pair real TODO: test this
function parseTypeString(s) { if (/list|pair/.test(s)) { var baseType = /list/.test(s) ? 'list' : 'pair'; var uStart = s.indexOf("<"); var uEnd = s.lastIndexOf(">"); var baseChecker = typeCheckers[baseType]; if (uStart == -1 || uEnd == -1) { return baseChecker; } var u = s.slice(uStart + 1, uEnd); var uChecker = parseTypeString(u); if (baseType == 'pair') { return function(x) { if (!baseChecker(x)) { return false; } return uChecker(x[0]) && uChecker(_rest(x)); }; } // otherwise, return checker for list<...> return function(x) { if (!baseChecker(x)) { return false; } var x_array = listToArray(x); for(var i = 0, ii = x_array.length; i < ii; i++) { if (!uChecker(x_array[i])) { return false; }; } return true; }; } else { return typeCheckers[s]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor(type, type_list, value_list=null) {\n super(type)\n this.type_list = type_list\n if(value_list==null){\n value_list = []\n for(var i=0; i<type_list.length; i++) value_list.push(null)\n }\n this.value_list = value_list\n }", "function isSimpl...
[ "0.5339763", "0.5276069", "0.52639985", "0.5221724", "0.52196056", "0.52180463", "0.5181493", "0.514586", "0.51011026", "0.50754654", "0.5028137", "0.5026967", "0.50166297", "0.49629802", "0.4949176", "0.49459082", "0.49264735", "0.49264735", "0.49264735", "0.49264735", "0.49...
0.51133865
8
Using the JavaScript language, have the function HammingDistance(strArr) take the array of strings stored in strArr, which will only contain two strings of equal length and return the Hamming distance between them. The Hamming distance is the number of positions where the corresponding characters are different. For example: if strArr is ["coder", "codec"] then your program should return 1. The string will always be of equal length and will only contain lowercase characters from the alphabet and numbers. Sample Test Cases Input:"10011", "10100" Output:3 Input:"helloworld", "worldhello" Output:8 / jshint esversion: 6
function HamingDistance(strArr) { // strArr[0].length; let count = 0; for (let i = 0; i < strArr[0].length; i++) { if (strArr[0][i] != strArr[1][i]) { count += 1; } } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHammingDistance(str1, str2){ \n\tvar cnt=0, i=0;\n\t\n\tif(str1.length != str2.length) console.log(\"Error! Strings are not equal!\"); //prints error msg if length of both string is NOT equal\n\tif(str1.length <= 0 || str2.length <= 0) console.log(\"Invalid string length!\"); //prints error msg if leng...
[ "0.8173262", "0.79513", "0.7891644", "0.7886776", "0.77502775", "0.7706987", "0.75638044", "0.7397729", "0.65641516", "0.65376115", "0.64976805", "0.64648664", "0.64513254", "0.64470553", "0.6427379", "0.64156294", "0.64004827", "0.63842356", "0.63783336", "0.63783336", "0.63...
0.79017967
2
needed for consistency across browsers
function promisify (target, fn) { try { const res = target[ fn ]() return res === void 0 ? Promise.resolve() : res } catch (err) { return Promise.reject(err) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "protected internal function m252() {}", "private public function m246() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "static final private internal function m106() {}", "transient private intern...
[ "0.65442866", "0.6358256", "0.62853074", "0.600376", "0.5873052", "0.58666295", "0.5812865", "0.5751511", "0.56054324", "0.5583456", "0.556258", "0.55328596", "0.54971915", "0.54503363", "0.5341024", "0.5325885", "0.5303375", "0.52806467", "0.5273732", "0.5264961", "0.5229311...
0.0
-1
really, don't do that
function Clazz () {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "protected internal function m252() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "transient private internal function m185() {}", "static private internal fun...
[ "0.6899992", "0.6808299", "0.6492993", "0.6475234", "0.64478004", "0.6377602", "0.6286609", "0.6066579", "0.6058615", "0.6057772", "0.59741586", "0.59443563", "0.5908438", "0.58961606", "0.5844541", "0.57840335", "0.5772557", "0.5753298", "0.5743296", "0.56260645", "0.5595119...
0.0
-1
This function represents the starting point of the program, leading straight to entering meta data and initializes the SVG output.
function start(){ var p = document.getElementById("input"); p.innerHTML = metaDataForm; createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start() {\n const logoText = figlet.textSync(\"Employee Database Tracker!\", 'Standard');\n console.log(logoText);\n loadMainPrompt();\n}", "function doInitialization() {\n\t\tvar svg = \"\";\n\n\t\tif (typeof theSvgElement === \"undefined\") {\n\t\t\t// Add event to body: each time a key is hi...
[ "0.6164258", "0.6153753", "0.6103125", "0.60569006", "0.6028724", "0.60109293", "0.5989982", "0.5943327", "0.5902008", "0.58985037", "0.5887603", "0.5883157", "0.58719426", "0.5870687", "0.5868651", "0.584427", "0.582053", "0.58100206", "0.58062714", "0.5795493", "0.57847077"...
0.6928524
0
Reads the data entered in the meta data form and saves it, leading to the source form afterwards.
function createMetaData(){ var title = document.getElementById("title").value; var composer = document.getElementById("composer").value; var author = document.getElementById("author").value; var availability = document.getElementById("availability").value; var comment = document.getElementById("comment").value; metaData = new MetaData(title, composer, author, availability, comment); document.getElementById("input").innerHTML = sourceForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyMetaDataChanges(){\n var title = document.getElementById(\"title\").value;\n var composer = document.getElementById(\"composer\").value;\n var author = document.getElementById(\"author\").value;\n var availability = document.getElementById(\"availability\").value;\n var comment = docum...
[ "0.59718615", "0.591337", "0.57427394", "0.5741593", "0.5740494", "0.5718736", "0.5649828", "0.56201446", "0.54978794", "0.54947", "0.54677665", "0.53675306", "0.5363405", "0.53455406", "0.53410196", "0.53374064", "0.5306338", "0.5278786", "0.5275786", "0.5230865", "0.5230068...
0.61347723
0
Navigational, leads to sources form.
function toSources(){ document.getElementById("input").innerHTML = sourceForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function navigateTo(source) {\n EDIT_INTENTION = true;\n console.log($(source).attr('id'));\n if (taskFinder) {\n window.location.href =\n TASK_CREATOR + '?id=' + $(source).attr('id').replace('project', '');\n } else {\n document.getElementById('findProject').style.display = 'none';\n $(source).a...
[ "0.6332267", "0.6285641", "0.6214845", "0.5970011", "0.59195775", "0.5869389", "0.57146233", "0.57079005", "0.56988704", "0.5688389", "0.56698614", "0.56232893", "0.5587865", "0.55839837", "0.5567961", "0.55326587", "0.55229205", "0.5460215", "0.5429348", "0.5410348", "0.5404...
0.5400241
21
Reads the data entered in the source form and saves it, leading to the staff form afterwards.
function createSource(){ var composer = document.getElementById("composer").value; var title = document.getElementById("title").value; var location = document.getElementById("location").value; var ownership = document.getElementById("ownership").value; var date = document.getElementById("date").value; var publicationstatus = document.getElementById("publicationstatus").value; var medium = document.getElementById("medium").value; var x = document.getElementById("x").value; var y = document.getElementById("y").value; var unit = document.getElementById("unit").value; var condition = document.getElementById("condition").value; var extent = document.getElementById("extent").value; var language = document.getElementById("language").value; var handwriting = document.getElementById("handwriting").value; currentSource = new Source(composer, title, location, ownership, date, publicationstatus, medium, x, y, unit, condition, extent, language, handwriting); sources.push(currentSource); if(isChangingSources){ for(i = 0; i < syllables.length; i++){ for(var j = 0; j < syllables[i].neumes.length; j++){ if(Array.isArray(syllables[i].neumes[j])){ var neumeVariation = new NeumeVariation(currentSource.id); syllables[i].neumes[j].push(neumeVariation); } else{ for(var l = 0; l < syllables[i].neumes[j].pitches.length; l++){ if(Array.isArray(syllables[i].neumes[j].pitches[l])){ var variation = new Variation(currentSource.id); syllables[i].neumes[j].pitches[l].push(variation); } } } } } document.getElementById("input").innerHTML = sourceDataChangeForm(); } else{ document.getElementById("input").innerHTML = sourceForm(); } document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyCurrentSource(){\n currentSID = document.getElementById(\"source\").value;\n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n}", "function copyStorageToForm() {\n \"use strict\";\n // Set chosen hair type\n setFormHairType(sessionStorage.getItem(\"hair_type\")...
[ "0.6137056", "0.58907235", "0.5884312", "0.58257735", "0.57701504", "0.57094574", "0.5708018", "0.5609881", "0.5583303", "0.5583078", "0.5572007", "0.5557354", "0.5533146", "0.54930824", "0.5476319", "0.54587466", "0.5447343", "0.5428146", "0.54260945", "0.54123664", "0.54112...
0.0
-1
Navigational, leads to staff form.
function toStaffs(){ document.getElementById("input").innerHTML = staffForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function directUserFromViewInfo() {\n if (nextStep == \"Departments\") {\n viewDepartments();\n }\n if (nextStep == \"Roles\") {\n viewRoles();\n }\n if (nextStep == \"Employees\") {\n viewEmployees();\n }\n if (nextStep == \"All Inf...
[ "0.6240528", "0.61439514", "0.61242485", "0.6050199", "0.600022", "0.59662825", "0.5946681", "0.59011465", "0.5860641", "0.57740957", "0.57555044", "0.5737218", "0.57329136", "0.57038194", "0.56832534", "0.5556401", "0.55382675", "0.5529626", "0.55082667", "0.5499365", "0.549...
0.514472
68
Reads the data entered in the staff form and saves it.
function createStaff(){ var linecount = document.getElementById("linecount").value; var linecolor = document.getElementById("linecolor").value; var mode = document.getElementById("mode").value; currentStaff = new Staff(linecount, linecolor, mode); staffs.push(currentStaff); document.getElementsByClassName("staffdependant")[0].disabled = false; document.getElementById("input").innerHTML = staffForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getForm() {\n inputNombre.value = localStorage.getItem('nombre');\n inputApellido.value = localStorage.getItem('apellido');\n inputTel.value = localStorage.getItem('tel');\n inputDir.value = localStorage.getItem('dir');\n inputObs.value = localStorage.getItem('obs');\n console.log('data ...
[ "0.61165017", "0.59940886", "0.5951816", "0.589807", "0.58838904", "0.5882665", "0.58765554", "0.58599234", "0.58225846", "0.58007205", "0.5765815", "0.5747694", "0.57297796", "0.57008415", "0.56817067", "0.56741977", "0.5651191", "0.56107545", "0.56027067", "0.5595887", "0.5...
0.5477856
34
Reads the data entered in the staff form and saves it, leading to the clef form afterwards.
function createStaffWithClefs(){ var linecount = document.getElementById("linecount").value; var linecolor = document.getElementById("linecolor").value; var mode = document.getElementById("mode").value; currentStaff = new Staff(linecount, linecolor, mode); staffs.push(currentStaff); document.getElementById("input").innerHTML = clefForm; document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getForm() {\n inputNombre.value = localStorage.getItem('nombre');\n inputApellido.value = localStorage.getItem('apellido');\n inputTel.value = localStorage.getItem('tel');\n inputDir.value = localStorage.getItem('dir');\n inputObs.value = localStorage.getItem('obs');\n console.log('data ...
[ "0.59387565", "0.5866843", "0.5829839", "0.58029896", "0.5783174", "0.57760817", "0.575963", "0.57110256", "0.5631983", "0.5620991", "0.5618701", "0.5580822", "0.5574503", "0.5552196", "0.5548763", "0.5520207", "0.5477826", "0.54530936", "0.5416794", "0.5404392", "0.54028666"...
0.56170547
11
Reads the data entered in the clef form and saves it.
function createClef(){ var line = document.getElementById("line").value; var shape = document.getElementById("shape").value; var clef = new Clef(line, shape); currentStaff.clefs.push(clef); document.getElementById("input").innerHTML = clefForm; document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "inputData() {\n return (e) => {\n e.persist();\n var reader = new FileReader();\n const self = this;\n reader.onload = function(e) {\n self.parseInputData(reader.result);\n }\n reader.readAsText(e.target.files[0]);\n ...
[ "0.6194441", "0.6126557", "0.5600388", "0.55794096", "0.5555186", "0.5546033", "0.5545269", "0.55256814", "0.5491216", "0.54909706", "0.5480427", "0.54792804", "0.54788136", "0.54729193", "0.5470531", "0.5464479", "0.5461352", "0.54437494", "0.5426067", "0.54226685", "0.54057...
0.0
-1
Navigational, leads to staff form.
function createNewStaff(){ document.getElementById("input").innerHTML = staffForm(); document.getElementsByClassName("staffdependant")[0].disabled = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function directUserFromViewInfo() {\n if (nextStep == \"Departments\") {\n viewDepartments();\n }\n if (nextStep == \"Roles\") {\n viewRoles();\n }\n if (nextStep == \"Employees\") {\n viewEmployees();\n }\n if (nextStep == \"All Inf...
[ "0.6240528", "0.61439514", "0.61242485", "0.6050199", "0.600022", "0.59662825", "0.5946681", "0.59011465", "0.5860641", "0.57740957", "0.57555044", "0.5737218", "0.57329136", "0.57038194", "0.56832534", "0.5556401", "0.55382675", "0.5529626", "0.55082667", "0.5499365", "0.549...
0.0
-1
Navigational, leads to syllable form.
function toSyllable(){ if(syllables.length > 1){ currentColor = syllables[syllables.length-1].color; } document.getElementById("input").innerHTML = syllableForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function L() {\n if (Syllable.DEBUG) Vex.L(\"Vex.Flow.Syllable\", arguments);\n }", "function applyCurrentSyllable(){\n currentSyllableIndex = document.getElementById(\"syllable\").value;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}", "viewTranslation() {\n swi...
[ "0.6028341", "0.5768904", "0.5507391", "0.5350279", "0.5341399", "0.5230816", "0.5203465", "0.5178822", "0.5172382", "0.5162885", "0.5162119", "0.5146023", "0.51416767", "0.50568616", "0.5051006", "0.5044222", "0.5040293", "0.50203663", "0.50203663", "0.49983624", "0.4995916"...
0.53894603
3
Navigational, leads to neume form.
function toNeume(){ document.getElementById("input").innerHTML = neumeForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function go_articulos() {\n $state.go('complex_articles.list');\n }", "function navigation() {\n\t\n\t/* @TODO: reverse li und stelle angemeldet als nach oben */\n\t//$$('#account ul').insert( $$('#account ul li').reverse() );\n}", "function _addNavigation() {}", "function visSingleView() {\n cons...
[ "0.6448033", "0.64108765", "0.6338784", "0.62081534", "0.61156356", "0.607189", "0.60513556", "0.59961957", "0.59856904", "0.5983315", "0.5941946", "0.5932606", "0.58797026", "0.5803799", "0.5801197", "0.57656354", "0.57558286", "0.57253456", "0.5720218", "0.5699523", "0.5681...
0.0
-1
Navigational, leads to neume variation form.
function toNeumeVariationForm(){ document.getElementById("input").innerHTML = neumeVariationForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyCurrentNeumeVariation(){\n currentNeumeVariationIndex = document.getElementById(\"neumevariation\").value;\n document.getElementById(\"input\").innerHTML = neumeDataChangeForm();\n}", "function displayVariation(varObj) {\r\n}\t// end of displayVariation", "function applyCurrentNeumeInVariat...
[ "0.57391584", "0.572973", "0.5680283", "0.5678754", "0.56052494", "0.52984256", "0.52108747", "0.51524496", "0.5117782", "0.50801706", "0.5063693", "0.50506973", "0.5034637", "0.5022225", "0.49968153", "0.49807635", "0.49631998", "0.4963123", "0.49615604", "0.49117392", "0.49...
0.47547698
35
Navigational, leads to neume form from neume variants.
function toNeumeFromNeumeVariations(){ pushedNeumeVariations = false; neumeVariations = new Array(); isNeumeVariant = false; document.getElementById("input").innerHTML = neumeForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function go_articulos() {\n $state.go('complex_articles.list');\n }", "set_variant_segment(field, normal_segment) {\n\n let graph = this.g.set_graph();\n\n let a_variant = this.db_anatomy_data[field]\n if (a_variant == 'undefined' || a_variant == null) {\n let default_variant = normal_segme...
[ "0.5387351", "0.5278744", "0.52666324", "0.5205549", "0.5166075", "0.50942576", "0.5093182", "0.50588995", "0.503767", "0.4994336", "0.4987667", "0.49594438", "0.49576536", "0.48770863", "0.48586988", "0.4854245", "0.4854172", "0.48401853", "0.48336586", "0.48108345", "0.4791...
0.5199221
4
Navigational, leads to syllable form from neume variants.
function toSyllableFromNeumeVariations(){ pushedNeumeVariations = false; neumeVariations = new Array(); isNeumeVariant = false; if(syllables.length > 1){ currentColor = syllables[syllables.length-1].color; } document.getElementById("input").innerHTML = syllableForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function L() {\n if (Syllable.DEBUG) Vex.L(\"Vex.Flow.Syllable\", arguments);\n }", "function toSyllableFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document....
[ "0.5760608", "0.562237", "0.5390461", "0.5292844", "0.52794814", "0.5221145", "0.5215348", "0.5215348", "0.5215348", "0.5215348", "0.519355", "0.51407933", "0.5074362", "0.5043243", "0.5035038", "0.50228405", "0.49539477", "0.495328", "0.49445188", "0.4937989", "0.49374697", ...
0.59461
0
Reads the data entered in the syllable form and saves it.
function createSyllable(){ var page = document.getElementById("page").value; var line = document.getElementById("line").value; var staff = document.getElementById("staff").value; var syllable = document.getElementById("syllable").value; var initial = document.getElementById("initial").checked; var color = document.getElementById("color").value; var comment = document.getElementById("comment").value; currentSyllable = new Syllable(page, line, staff, syllable, initial, color, comment); syllables.push(currentSyllable); currentColor = color; document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = syllableForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyCurrentSyllable(){\n currentSyllableIndex = document.getElementById(\"syllable\").value;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}", "function toChangeSyllableData(){\n if(syllables.length > 0){\n currentType = syllables[0].type;\n currentC...
[ "0.66930264", "0.64311683", "0.6271666", "0.6085117", "0.5833296", "0.5465856", "0.5437732", "0.54368776", "0.5387771", "0.52789766", "0.52747476", "0.52533346", "0.5243427", "0.52310866", "0.5228665", "0.5212262", "0.5211791", "0.5210552", "0.51716185", "0.5164059", "0.51544...
0.5448408
6
Reads the data entered in the syllable form and saves it, leading to the neume form afterwards.
function createSyllableWithNeumes(){ var page = document.getElementById("page").value; var line = document.getElementById("line").value; var staff = document.getElementById("staff").value; var syllable = document.getElementById("syllable").value; var initial = document.getElementById("initial").checked; var color = document.getElementById("color").value; var comment = document.getElementById("comment").value; currentSyllable = new Syllable(page, line, staff, syllable, initial, color, comment); syllables.push(currentSyllable); document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = neumeForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toChangeSyllableData(){\n if(syllables.length > 0){\n currentType = syllables[0].type;\n currentColor = syllables[0].color;\n }\n pushedNeumeVariations = false;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}", "function applyCurrentSyllable(){\n ...
[ "0.66006094", "0.65967333", "0.6347264", "0.6143439", "0.60882604", "0.5854093", "0.58086514", "0.5654818", "0.56183463", "0.5486913", "0.5472286", "0.53942496", "0.52936417", "0.52634305", "0.5210537", "0.52004206", "0.5185776", "0.51466477", "0.5126367", "0.51218885", "0.51...
0.56984764
7
Reads the data entered in the neume form and saves it. If no pitch is given and the neume type is virga, punctum, pes, clivis, torculus, porrectus, scandicus or climacus, all needed pitches will be automatically added.
function createNeume(){ var type = document.getElementById("type").value; if(isClimacus){ maxPitches = document.getElementById("numberofpitches").value; } currentNeume = new Neume(); currentNeume.type = type; if(type == "virga" || type == "punctum"){ var p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); } else if(currentNeume.type == "pes"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); } else if(currentNeume.type == "clivis"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); } else if(currentNeume.type == "torculus"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); } else if(currentNeume.type == "porrectus"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); } else if(currentNeume.type == "climacus"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); if(maxPitches == 4){ p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); } if(maxPitches == 5){ p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); } } else if(currentNeume.type == "scandicus"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); } currentSyllable.neumes.push(currentNeume); document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = neumeForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createPitch(){\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.getElementById(\"intm\").value;\n var connection = document.getElementById(\"con...
[ "0.6827162", "0.60986024", "0.58212453", "0.56243604", "0.5201323", "0.5145991", "0.51065415", "0.5074942", "0.50642186", "0.49391967", "0.49211776", "0.48684478", "0.48668554", "0.48605475", "0.48126107", "0.48085874", "0.48085874", "0.48085874", "0.48049897", "0.47893217", ...
0.6151761
1
Reads the data entered in the neume variation form and saves it. If no pitch is given and the neume type is virga, punctum, pes, clivis, torculus, porrectus, scandicus, climacus or torculusresupinus, all needed pitches will be automatically added.
function createNeumeVariation(){ var sourceID = document.getElementById("source").value; var type = document.getElementById("type").value; if(isClimacus){ maxPitches = document.getElementById("numberofpitches").value; } currentSID = sourceID; currentNeume = new Neume(); currentNeume.type = type; if(type == "virga" || type == "punctum"){ var p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); } else if(currentNeume.type == "pes"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); } else if(currentNeume.type == "clivis"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); } else if(currentNeume.type == "torculus"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); } else if(currentNeume.type == "porrectus"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); } else if(currentNeume.type == "climacus"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); if(maxPitches == 4){ p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); } if(maxPitches == 5){ p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "d"; currentNeume.pitches.push(p); } } else if(currentNeume.type == "scandicus"){ var p; p = new Pitch(); p.pitch = "none"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(); p.pitch = "none"; p.intm = "u"; currentNeume.pitches.push(p); } var i; if(neumeVariations.length < 1){ for(i = 0; i < sources.length; i++){ var neumeVariation = new NeumeVariation(sources[i].id); neumeVariations.push(neumeVariation); } } for(i = 0; i < neumeVariations.length; i++){ if(neumeVariations[i].sourceID == sourceID){ neumeVariations[i].additionalNeumes.push(currentNeume); break; } } if(!pushedNeumeVariations){ currentSyllable.neumes.push(neumeVariations); pushedNeumeVariations = true; } else{ currentSyllable.neumes.pop(); currentSyllable.neumes.push(neumeVariations); } isNeumeVariant = true; document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = neumeVariationForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createPitch(){\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.getElementById(\"intm\").value;\n var connection = document.getElementById(\"con...
[ "0.6741597", "0.597301", "0.58804256", "0.58528537", "0.5750121", "0.5664778", "0.5650399", "0.5647673", "0.56339335", "0.5263557", "0.5105627", "0.498471", "0.48323354", "0.48112124", "0.47628936", "0.47326404", "0.47216412", "0.47216412", "0.47216412", "0.46968457", "0.4564...
0.6479758
1
Reads the data entered in the neume form and saves it, leading to the pitch form afterwards.
function createNeumeWithPitches(){ var type = document.getElementById("type").value; if(isClimacus){ maxPitches = document.getElementById("numberofpitches").value; } currentNeume = new Neume(); currentNeume.type = type; currentSyllable.neumes.push(currentNeume); document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = pitchForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyPitchDataChanges(){\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.getElementById(\"intm\").value;\n var connection = document.getElement...
[ "0.61243546", "0.5942792", "0.57096523", "0.5599359", "0.55133706", "0.54481655", "0.54481655", "0.54481655", "0.5446705", "0.5428344", "0.5412119", "0.5383995", "0.53626657", "0.53603303", "0.5286303", "0.5188807", "0.5181343", "0.51593447", "0.5140994", "0.5067306", "0.5058...
0.50191003
31
Reads the data entered in the neume variation form and saves it, leading to the pitch form afterwards.
function createNeumeVariationWithPitches(){ var sourceID = document.getElementById("source").value; var type = document.getElementById("type").value; if(isClimacus){ maxPitches = document.getElementById("numberofpitches").value; } currentNeume = new Neume(); currentNeume.type = type; var i; if(neumeVariations.length < 1){ for(i = 0; i < sources.length; i++){ var neumeVariation = new NeumeVariation(sources[i].id); neumeVariations.push(neumeVariation); } } for(i = 0; i < neumeVariations.length; i++){ if(neumeVariations[i].sourceID == sourceID){ neumeVariations[i].additionalNeumes.push(currentNeume); break; } } if(!pushedNeumeVariations){ currentSyllable.neumes.push(neumeVariations); pushedNeumeVariations = true; } else{ currentSyllable.neumes.pop(); currentSyllable.neumes.push(neumeVariations); } isNeumeVariant = true; document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = pitchForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyVariationDataChanges(){\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.getElementById(\"intm\").value;\n var connection = document.getEle...
[ "0.6526142", "0.61986923", "0.60347223", "0.58780855", "0.5866225", "0.5857798", "0.57627374", "0.5636892", "0.56320995", "0.56121165", "0.5579269", "0.5518057", "0.54804724", "0.5456627", "0.5308013", "0.5159864", "0.50209963", "0.501557", "0.49917462", "0.49798584", "0.4948...
0.57458955
7
Reads the data entered in the neume form and saves it. Thereby the function controls the length and intervals for neumes of the types virga, punctum, pes, clivis, torculus, porrectus, scandicus and climacus. Also if the first pitch is not specified for the previously mentioned types, the function will automatically generate the rest of the neume.
function createPitch(){ var pitch = document.getElementById("pitch").value; var octave = document.getElementById("octave").value; var comment = document.getElementById("comment").value; var intm = document.getElementById("intm").value; var connection = document.getElementById("connection").value; var tilt = document.getElementById("tilt").value; var variation = document.getElementById("variation").value; var supplied = document.getElementById("supplied").value; var p = new Pitch(pitch, octave, comment, intm, connection, tilt, variation, supplied); currentNeume.pitches.push(p); if(currentNeume.type == "virga" || currentNeume.type == "punctum"){ if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } else if(currentNeume.type == "pes"){ if(pitch == "none" && pitchCounter == 0){ p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "u"; currentNeume.pitches.push(p); if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } else if(pitchCounter == 0){ currentIntm = "u"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 1) { currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else if(currentNeume.type == "clivis"){ if(pitch == "none" && pitchCounter == 0){ p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "d"; currentNeume.pitches.push(p); if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } else if(pitchCounter == 0){ currentIntm = "d"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 1) { currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else if(currentNeume.type == "torculus"){ if(pitch == "none" && pitchCounter == 0){ p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "d"; currentNeume.pitches.push(p); if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } else if(pitchCounter == 0){ currentIntm = "u"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 1) { currentIntm = "d"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 2) { currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else if(currentNeume.type == "porrectus"){ if(pitch == "none" && pitchCounter == 0){ p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "d"; currentNeume.pitches.push(p); if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } else if(pitchCounter == 0){ currentIntm = "d"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 1) { currentIntm = "u"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 2) { currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else if(currentNeume.type == "climacus"){ if(pitch == "none" && pitchCounter == 0){ p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "d"; currentNeume.pitches.push(p); if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } else if(pitchCounter == 0){ currentIntm = "d"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 1) { currentIntm = "d"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 2) { if(maxPitches == 4 || maxPitches == 5){ currentIntm = "d"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else{ currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else if(pitchCounter == 3) { if(maxPitches == 5){ currentIntm = "d"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else{ currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else if(pitchCounter == 4) { currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else if(currentNeume.type == "scandicus"){ if(pitch == "none" && pitchCounter == 0){ p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "d"; currentNeume.pitches.push(p); if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } else if(pitchCounter == 0){ currentIntm = "u"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 1) { currentIntm = "u"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 2) { currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else if(currentNeume.type == "torculusresupinus"){ if(pitch == "none" && pitchCounter == 0){ p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "u"; currentNeume.pitches.push(p); p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "d"; currentNeume.pitches.push(p); p = new Pitch(pitch, octave, comment, intm, connection, tilt); p.intm = "u"; currentNeume.pitches.push(p); if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } else if(pitchCounter == 0){ currentIntm = "u"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 1) { currentIntm = "d"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 2) { currentIntm = "u"; pitchCounter++; document.getElementById("input").innerHTML = pitchForm(); } else if(pitchCounter == 3) { currentIntm = "none"; pitchCounter = 0; if(isNeumeVariant){ document.getElementById("input").innerHTML = neumeVariationForm(); } else{ document.getElementById("input").innerHTML = neumeForm(); } } } else{ document.getElementById("input").innerHTML = pitchForm(); } document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createNeumeVariation(){\n var sourceID = document.getElementById(\"source\").value;\n var type = document.getElementById(\"type\").value;\n \n if(isClimacus){\n maxPitches = document.getElementById(\"numberofpitches\").value;\n }\n \n currentSID = sourceID;\n \n currentNe...
[ "0.6208604", "0.6010984", "0.5994155", "0.59246314", "0.52992785", "0.51781476", "0.5166663", "0.50967073", "0.5086359", "0.49839997", "0.49170277", "0.4833895", "0.48119894", "0.48114663", "0.47898984", "0.47560632", "0.47492164", "0.47482073", "0.47360724", "0.47360724", "0...
0.6293426
0
Navigational, leads to variant form.
function toVariant(){ document.getElementById("input").innerHTML = variationForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Navigate(string, Variant, Variant, Variant, Variant) {\n\n }", "renderVariant() {\n let variant = this.props.product.variant\n let variantOptions = []\n for (let i = 0; i < variant.variants.length; i++) {\n variantOptions.push(\n <option value={variant.variants[i...
[ "0.57340854", "0.5358339", "0.5230404", "0.5189678", "0.514917", "0.5115315", "0.511244", "0.50947315", "0.5078634", "0.5069878", "0.5050172", "0.49853063", "0.49770576", "0.49450752", "0.49411193", "0.49394837", "0.49280646", "0.49280646", "0.49280646", "0.49280646", "0.4922...
0.4791816
31
Reads the data entered in the variant form and saves it.
function createVariation(){ var sourceID = document.getElementById("source").value; var pitch = document.getElementById("pitch").value; var octave = document.getElementById("octave").value; var comment = document.getElementById("comment").value; var intm = document.getElementById("intm").value; var connection = document.getElementById("connection").value; var tilt = document.getElementById("tilt").value; var graphicalVariation = document.getElementById("variation").value; var supplied = document.getElementById("supplied").value; currentSID = sourceID; var p = new Pitch(pitch, octave, comment, intm, connection, tilt, graphicalVariation, supplied); var variationAvailable = false; var i; if(variations.length < 1){ for(i = 0; i < sources.length; i++){ var variation = new Variation(sources[i].id); variations.push(variation); } } for(i = 0; i < variations.length; i++){ if(variations[i].sourceID == sourceID){ variations[i].additionalPitches.push(p); variationAvailable = true; break; } } if(!pushedVariations){ currentNeume.pitches.push(variations); pushedVariations = true; } else{ currentNeume.pitches.pop(); currentNeume.pitches.push(variations); } document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = variationForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function copyStorageToForm() {\n \"use strict\";\n // Set chosen hair type\n setFormHairType(sessionStorage.getItem(\"hair_type\"));\n\n // Set selected traits\n setFormTraits(sessionStorage.getItem(\"traits\"));\n}", "function toVariant(){\n document.getElementById(\"input\").innerHTML = varia...
[ "0.61401254", "0.59502727", "0.5847473", "0.58201724", "0.55766726", "0.557209", "0.5438168", "0.5432485", "0.54017866", "0.5387659", "0.5387659", "0.53826636", "0.53807133", "0.53790283", "0.5378656", "0.53702325", "0.53675395", "0.535721", "0.53542376", "0.53539103", "0.535...
0.0
-1
Navigational, leads to variation form and resets variations.
function toSyllableFromVariations(){ pushedVariations = false; variations = new Array(); if(syllables.length > 1){ currentColor = syllables[syllables.length-1].color; } document.getElementById("input").innerHTML = syllableForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function restoreDefault(){\n restoreDefaultScores();\n lizardLizard();\n $(\"#outcome\").empty();\n $(\"#reset-button\").empty().hide();\n $(\".btn-primary\").bind();\n $(\".btn-primary\").show();\n bindControls();\n}", "function onGoBack() {\n setFormDataEdit(null);\n setStep('Menu');\n }", "fun...
[ "0.5992449", "0.57174754", "0.5664782", "0.56485856", "0.5569229", "0.5494658", "0.5476949", "0.54751104", "0.5394467", "0.5349302", "0.53389317", "0.5334542", "0.53122044", "0.5312166", "0.530434", "0.5275299", "0.52751535", "0.5272903", "0.52549493", "0.5249169", "0.5240047...
0.0
-1
Navigational, leads to neume form and resets variations.
function toNeumeFromVariations(){ pushedVariations = false; variations = new Array(); document.getElementById("input").innerHTML = neumeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function restoreDefault(){\n restoreDefaultScores();\n lizardLizard();\n $(\"#outcome\").empty();\n $(\"#reset-button\").empty().hide();\n $(\".btn-primary\").bind();\n $(\".btn-primary\").show();\n bindControls();\n}", "function onGoBack() {\n setFormDataEdit(null);\n setStep('Menu');\n }", "fun...
[ "0.6004691", "0.5871969", "0.58343965", "0.5809359", "0.57251805", "0.5687105", "0.5604987", "0.5598515", "0.55818933", "0.55745924", "0.5573682", "0.5568399", "0.55416965", "0.5540695", "0.5531782", "0.5531591", "0.55314374", "0.55156755", "0.5507712", "0.550075", "0.5491851...
0.0
-1
Navigational, leads to pitch form and resets variations.
function toPitchesFromVariations(){ pushedVariations = false; variations = new Array(); document.getElementById("input").innerHTML = pitchForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function panToLeft(){\n\tgainL.gain.value = 1;\n\tgainR.gain.value = 0;\n}", "function createPitch(){\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.get...
[ "0.5992208", "0.58726865", "0.58245385", "0.5813075", "0.57567215", "0.574878", "0.5742272", "0.5724852", "0.5647584", "0.562453", "0.55677366", "0.5562988", "0.5555275", "0.55490875", "0.5545783", "0.5529457", "0.5498483", "0.54833317", "0.54803205", "0.54623395", "0.5447882...
0.5217154
43
Navigational, leads to change values form.
function toChangeValues(){ currentClefIndex = 0; currentSyllableIndex = 0; currentNeumeIndex = 0; currentNeumeVariationIndex = 0; currentNeumeInVariationIndex = 0; currentPitchIndex = 0; currentVarPitchIndex = 0; currentVarSourceIndex = 0; document.getElementById("input").innerHTML = changeValueForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleChange(values) {\n // gradeShow = \"\";\n // clearSelected();\n // onFinish()\n setField(values);\n // clearSelected();\n\n }", "function onEdit() {\n setValues();\n}", "function onEdit() {\n setNav(0);\n }", "function changeProductValues() {\n\tshowH...
[ "0.6196813", "0.6179333", "0.6136196", "0.6098968", "0.6077484", "0.6035167", "0.599623", "0.59754026", "0.59727734", "0.5972657", "0.5963002", "0.5882302", "0.5872209", "0.5808894", "0.5800624", "0.5800238", "0.5799473", "0.5779406", "0.57715493", "0.5767375", "0.5760942", ...
0.5753374
22
Navigational, leads to meta data change form.
function toChangeMetaData(){ document.getElementById("input").innerHTML = metaDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setPageMetaData(event, current, previous) {\n\t\t$scope.appNavigation.forEach((oneNavigationEntry) => {\n\t\t\toneNavigationEntry.active = false;\n\t\t\t\n\t\t\tlet entryFound = false;\n\t\t\tlet oneLink = oneNavigationEntry.url.split(\"#\");\n\t\t\tif (oneLink[0] === $scope.currentLocation) {\n\t\t\t\tif...
[ "0.6544781", "0.6252447", "0.6252447", "0.6006877", "0.57641745", "0.57062256", "0.5673592", "0.56603366", "0.5613239", "0.5566877", "0.556666", "0.5518504", "0.5498758", "0.5472929", "0.5456103", "0.5444275", "0.543384", "0.5410585", "0.5376083", "0.5368739", "0.536828", "...
0.51447695
52
Applies changes made to meta data
function applyMetaDataChanges(){ var title = document.getElementById("title").value; var composer = document.getElementById("composer").value; var author = document.getElementById("author").value; var availability = document.getElementById("availability").value; var comment = document.getElementById("comment").value; if(title){ metaData.title = title; } if(composer){ metaData.composer = composer; } if(author){ metaData.author = author; } if(availability){ metaData.availability = availability; } if(comment){ metaData.comment = comment; } document.getElementById("input").innerHTML = metaDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyMetadata()\n {\n\n\n // get metadata values\n var metadata = groovebox[\"metadata\"];\n\n\n // get the current audio file name\n var currentAudioFile = $(\".track-info\").attr(\"file\");\n\n\n // check if the (new) metadata is different than the currently play...
[ "0.6469975", "0.6118595", "0.59958524", "0.59804726", "0.58671767", "0.5789587", "0.57718885", "0.5735518", "0.57214004", "0.57174367", "0.5665737", "0.5662193", "0.56604385", "0.5632795", "0.55649847", "0.5563636", "0.5559784", "0.5535649", "0.55212533", "0.5516179", "0.5513...
0.6023806
2
Navigational, leads to change sources form.
function toChangeSourceData(){ isChangingSources = true; if(sources.length > 0){ currentSID = sources[0].id; } document.getElementById("input").innerHTML = sourceDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "changeSource(source) {\n\t\tthis.info.source = source\n\t\tthis.config.source = source\n\t}", "function goToInvoices(source) {\n hideExtraInvoiceValues();\n\n //sets the selected PE to a global var\n SELECTED_PE_ID = source;\n displayInvDisplay();\n}", "function onShowSource() {\n resetPageState();\...
[ "0.6400042", "0.6150864", "0.6145983", "0.6139767", "0.6034206", "0.60195595", "0.6003289", "0.59757084", "0.59536415", "0.59451056", "0.5920983", "0.58923227", "0.5882555", "0.58542895", "0.5836704", "0.5797954", "0.57559735", "0.56129813", "0.5592488", "0.55591303", "0.5548...
0.6084965
4
Applies cahnges made to a specified source.
function applySourceDataChanges(){ var composer = document.getElementById("composer").value; var title = document.getElementById("title").value; var location = document.getElementById("location").value; var ownership = document.getElementById("ownership").value; var date = document.getElementById("date").value; var publicationstatus = document.getElementById("publicationstatus").value; var medium = document.getElementById("medium").value; var x = document.getElementById("x").value; var y = document.getElementById("y").value; var unit = document.getElementById("unit").value; var condition = document.getElementById("condition").value; var extent = document.getElementById("extent").value; var language = document.getElementById("language").value; var handwriting = document.getElementById("handwriting").value; if(composer){ currentSource.composer = composer; } if(title){ currentSource.title = title; } if(location){ currentSource.location = location; } if(ownership){ currentSource.ownership = ownership; } if(date){ currentSource.date = date; } if(publicationstatus){ currentSource.publicationstatus = publicationstatus; } if(medium){ currentSource.medium = medium; } if(x){ currentSource.x = x; } if(y){ currentSource.y = y; } if(unit){ currentSource.unit = unit; } if(condition){ currentSource.condition = condition; } if(extent){ currentSource.extent = extent; } if(language){ currentSource.language = language; } if(handwriting){ currentSource.handwriting = handwriting; } document.getElementById("input").innerHTML = sourceDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "applyEffect (effect, source) {}", "bind(source, context) {\n const behaviors = this.behaviors;\n\n if (this.source === source) {\n return;\n } else if (this.source !== null) {\n const oldSource = this.source;\n this.source = source;\n this.context = context;\n\n for (let i = 0, ...
[ "0.5349737", "0.5232749", "0.51753217", "0.517342", "0.5140327", "0.49864253", "0.49362135", "0.48578602", "0.48483005", "0.4835093", "0.4793034", "0.4658993", "0.46258128", "0.462556", "0.46210214", "0.46174607", "0.46112064", "0.46099728", "0.46083257", "0.4602199", "0.4600...
0.0
-1
Deletes the selected source and adjusts variations.
function deleteSource(id){ var i; for(i = 0; i < sources.length; i++){ if(sources[i].id == id){ if(sources.length == 1){ document.getElementById("input").innerHTML = sourceDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); return; } else if(i != 0){ currentSID = sources[i - 1].id; currentSource = sources[i - 1]; } else{ currentSID = sources[i + 1].id; currentSource = sources[i + 1]; } sources.splice(i, 1); } } for(i = 0; i < syllables.length; i++){ for(var j = 0; j < syllables[i].neumes.length; j++){ if(Array.isArray(syllables[i].neumes[j])){ for(var k = 0; k < syllables[i].neumes[j].length; k++){ if(syllables[i].neumes[j][k].sourceID == id){ syllables[i].neumes[j].splice(k, 1); } } } else{ for(var l = 0; l < syllables[i].neumes[j].pitches.length; l++){ if(Array.isArray(syllables[i].neumes[j].pitches[l])){ for(var k = 0; k < syllables[i].neumes[j].pitches[l].length; k++){ if(syllables[i].neumes[j].pitches[l][k].sourceID == id){ syllables[i].neumes[j].pitches[l].splice(k, 1); } } } } } } } document.getElementById("input").innerHTML = sourceDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteOpportunitySource(req, res) {\n if (!validator.isValid(req.body.sourceId)) {\n res.json({code: Constant.ERROR_CODE, message: Constant.REQUIRED_FILED_MISSING});\n } else {\n source.findByIdAndUpdate(req.body.sourceId, {deleted: true}, function(err, data) {\n if (err) {\...
[ "0.6051235", "0.59864193", "0.5911509", "0.5821981", "0.56926495", "0.55836654", "0.5563558", "0.55533856", "0.55462766", "0.5451462", "0.5419775", "0.53814393", "0.5349823", "0.53339475", "0.5304059", "0.52924186", "0.5276334", "0.5257821", "0.5257723", "0.52446765", "0.5225...
0.6068513
0
Navigational, leads to change staff data form, setting the current staff to the first of all staffs.
function toChangeStaffData(){ if(staffs.length > 0){ currentN = staffs[0].n; } document.getElementById("input").innerHTML = staffDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SYS_STF_LST_READY(state, p){\n state.staff.list = p.list;\n }", "function setListStaff(){\n vm.listStaff.$promise.then(function(data) {\n $timeout(function() {\n var arr_tmp = [];\n for(var i = 0; i < data.length; i++) {\n data[i].id = data[i]._id;\n arr_tm...
[ "0.6424013", "0.626715", "0.5780946", "0.5619246", "0.5508845", "0.5502562", "0.5488556", "0.5407104", "0.53879005", "0.5325747", "0.53236014", "0.5302032", "0.52616704", "0.5252225", "0.5250208", "0.5208702", "0.5191996", "0.51850426", "0.51532906", "0.5118942", "0.51098365"...
0.6435792
0
Applies changes made to a specific staff.
function applyStaffDataChanges(){ var linecount = document.getElementById("linecount").value; var linecolor = document.getElementById("linecolor").value; var mode = document.getElementById("mode").value; if(linecount && linecount != "none"){ currentStaff.linecount = linecount; } if(linecolor && linecolor != "none"){ currentStaff.linecolor = linecolor; } if(mode && mode != "none"){ currentStaff.mode = mode; } document.getElementById("input").innerHTML = staffDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatePermitByStaff(req, res, next) {\n const payload = req.body;\n const permitFormId = req.params.id;\n\n // eslint-disable-next-line no-use-before-define\n validateCreateForStaffPayload(permitFormId, payload, (validationErr) => {\n if (validationErr) {\n const e = new Erro...
[ "0.57393414", "0.5018119", "0.49489376", "0.48961008", "0.4837698", "0.483295", "0.482057", "0.47807592", "0.4779485", "0.47661486", "0.46899134", "0.46861452", "0.4685144", "0.46254838", "0.45997947", "0.45754313", "0.45679125", "0.45631668", "0.44828677", "0.4480393", "0.44...
0.49178013
3
Deletes the selected staff and the syllables using that staff.
function deleteStaff(n){ var i; for(i = 0; i < staffs.length; i++){ if(staffs[i].n == n){ if(staffs.length == 1){ document.getElementById("input").innerHTML = staffDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); return; } else if( i != 0){ currentN = staffs[i-1].n; currentStaff = staffs[i-1]; } else{ currentN = staffs[i + 1].n; currentStaff = staffs[i + 1]; } staffs.splice(i, 1); } } for(i = 0; i < syllables.length; i++){ if(syllables[i].staff == n){ syllables.splice(i, 1); i--; } } document.getElementById("input").innerHTML = staffDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteSyllable(){\n syllables.splice(currentSyllableIndex, 1);\n \n currentSyllableIndex = 0;\n \n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}", "function delSele...
[ "0.6465517", "0.581751", "0.57589823", "0.57563466", "0.55770546", "0.5530611", "0.5504792", "0.5500302", "0.54334754", "0.5417416", "0.54026306", "0.53906167", "0.53874385", "0.5372126", "0.53588396", "0.53256476", "0.5320947", "0.5294121", "0.5274152", "0.5269597", "0.52666...
0.68533444
0
Navigational, leads to the change clef form.
function toChangeClefData(){ currentClefIndex = 0; document.getElementById("input").innerHTML = clefDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onGoBack() {\n setFormDataEdit(null);\n setStep('Menu');\n }", "function onEdit() {\n setNav(0);\n }", "formChanged() {}", "function changeFree() {\n //Set init data\n if (settings.initData === undefined) {\n settings.initData = {\n ...
[ "0.6311272", "0.62586004", "0.6120588", "0.61028594", "0.6075807", "0.6011536", "0.59979117", "0.5984308", "0.5915749", "0.58929276", "0.58929276", "0.5871057", "0.5869787", "0.58675414", "0.5855406", "0.58496904", "0.5773566", "0.5760783", "0.57531697", "0.57479507", "0.5730...
0.5654049
30
Applies changes made to a certain clef.
function applyClefDataChanges(){ var line = document.getElementById("line").value; var shape = document.getElementById("shape").value; if(line && line != "none"){ currentStaff.clefs[currentClefIndex].line = line; } if(shape && shape != "none"){ currentStaffs.clefs[currentClefIndex].shape = shape; } document.getElementById("input").innerHTML = clefDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "apply(doc) {\n if (this.length != doc.length)\n throw new RangeError(\"Applying change set to a document with the wrong length\");\n iterChanges(this, (fromA, toA, fromB, _toB, text) => doc = doc.replace(fromB, fromB + (toA - fromA), text), false);\n return doc;\n }", "applyCha...
[ "0.5454695", "0.531055", "0.52844673", "0.51451725", "0.51058155", "0.50613207", "0.5010142", "0.48554027", "0.48554027", "0.48554027", "0.48554027", "0.48259383", "0.48132893", "0.47809106", "0.47809106", "0.47809106", "0.47809106", "0.47809106", "0.47699523", "0.47151157", ...
0.4877468
7
Navigational, leads to syllable change form.
function toChangeSyllableData(){ if(syllables.length > 0){ currentType = syllables[0].type; currentColor = syllables[0].color; } pushedNeumeVariations = false; document.getElementById("input").innerHTML = syllableDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyCurrentSyllable(){\n currentSyllableIndex = document.getElementById(\"syllable\").value;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}", "function applySyllableDataChanges(){\n \n var page = document.getElementById(\"page\").value;\n var line = documen...
[ "0.67458194", "0.57106864", "0.56991607", "0.5685656", "0.5662797", "0.56036144", "0.55806", "0.5488491", "0.547239", "0.5461994", "0.542756", "0.5423051", "0.5423051", "0.53920394", "0.53740466", "0.5349346", "0.5333484", "0.5317176", "0.53145134", "0.5292881", "0.5279999", ...
0.62301207
1
Applies changes made to the selected syllable.
function applySyllableDataChanges(){ var page = document.getElementById("page").value; var line = document.getElementById("line").value; var staff = document.getElementById("staff").value; var syllable = document.getElementById("syllabletext").value; var initial = document.getElementById("initial").checked; var color = document.getElementById("color").value; var comment = document.getElementById("comment").value; if(page){ currentSyllable.page = page; } if(line){ currentSyllable.line = line; } if(staff){ currentSyllable.staff = staff; } if(syllable){ currentSyllable.syllable = syllable; } currentSyllable.initial = initial; if(color && color != "none"){ currentSyllable.color = color; } if(comment){ currentSyllable.comment = comment; } document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = syllableDataChangeForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyCurrentSyllable(){\n currentSyllableIndex = document.getElementById(\"syllable\").value;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}", "function toChangeSyllableData(){\n if(syllables.length > 0){\n currentType = syllables[0].type;\n currentC...
[ "0.6954043", "0.63057995", "0.5626521", "0.5541029", "0.54764396", "0.5379822", "0.52435076", "0.5228192", "0.52049494", "0.5200517", "0.5200517", "0.50805396", "0.50448585", "0.5040489", "0.50388575", "0.5013113", "0.5009509", "0.50055045", "0.49421582", "0.49377894", "0.489...
0.65288746
1
Deletes currently selected syllable.
function deleteSyllable(){ syllables.splice(currentSyllableIndex, 1); currentSyllableIndex = 0; document.getElementById("input").innerHTML = syllableDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "deleteLabel() {\n /** @type {number} */\n let rowIdx = this.labels.indexOf(this.label);\n\n if (rowIdx > -1) {\n this.labels.splice(rowIdx, 1);\n }\n }", "function deleteMenuDeleteClicked() {\n canvas.removeLabel(canvas.getCurrentLabel());\n oPublic.hideDeleteLabel();\n myA...
[ "0.6352314", "0.6223733", "0.59342545", "0.58443886", "0.58173317", "0.571928", "0.56487775", "0.5629056", "0.5611144", "0.5610573", "0.55932754", "0.55804163", "0.55733085", "0.55733085", "0.55733085", "0.55298275", "0.5529695", "0.5520145", "0.55065244", "0.5461864", "0.545...
0.7606057
0
Navigational, leads to neume change form.
function toChangeNeumeData(){ currentNeumeIndex = 0; document.getElementById("input").innerHTML = neumeDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onEdit() {\n setNav(0);\n }", "function onGoBack() {\n setFormDataEdit(null);\n setStep('Menu');\n }", "function ukoncitObrazovku() {\n $state.go(\n 'app.dashboard',\n {notify: false, reloadOnSearch: false, reload: false, location: 'replace', inherit...
[ "0.6829269", "0.6584064", "0.64017063", "0.62242836", "0.6217902", "0.6217902", "0.61122423", "0.6105378", "0.6105378", "0.6083265", "0.60693204", "0.6065842", "0.6052714", "0.604322", "0.603441", "0.60052717", "0.5961702", "0.59584206", "0.5934005", "0.5929661", "0.5897895",...
0.0
-1
Applies changes made to the selected neume.
function applyNeumeDataChanges(){ var type = document.getElementById("type").value; if(type && type != "none"){ currentNeume.type = type; } document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = neumeDataChangeForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateSelection_(e) {\n\t\t\t\tmyGuests.model.selectedNodeData = null;\n\t\t\t\tvar it = myGuests.selection.iterator;\n\t\t\t\twhile (it.next()) {\n\t\t\t\t\tvar selnode = it.value;\n\t\t\t\t\t// ignore a selected link or a deleted node\n\t\t\t\t\tif (selnode instanceof go.Node && selnode.data !== null) {...
[ "0.6047358", "0.60381883", "0.60281557", "0.5888258", "0.58643776", "0.5788528", "0.56546277", "0.5637114", "0.561909", "0.54908764", "0.54710287", "0.54703", "0.54422885", "0.5369224", "0.53369284", "0.53042513", "0.5272367", "0.52547747", "0.5254382", "0.523738", "0.5203126...
0.0
-1
Deletes the elcted neume.
function deleteNeume(){ currentSyllable.neumes.splice(currentNeumeIndex, 1); currentNeumeIndex = 0; document.getElementById("input").innerHTML = neumeDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "delete() {\n this.eachElem((node) => {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n });\n }", "delete() {\n this.eachElem((node) => {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n ...
[ "0.74574935", "0.74574935", "0.68303055", "0.68244994", "0.6662948", "0.6574782", "0.6561792", "0.651539", "0.6418419", "0.6388631", "0.6376234", "0.637412", "0.6272632", "0.6270073", "0.6268581", "0.62658924", "0.625641", "0.62413645", "0.6226964", "0.62152964", "0.62134933"...
0.68455565
2
Navigational, leads to pitch change form.
function toChangePitchData(){ document.getElementById("input").innerHTML = pitchDataChangeForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pitchUpdate()\n{\n pitchHistory[9] = -currentFrequency;\n pitchHistory.shift();\n}", "function panToLeft(){\n\tgainL.gain.value = 1;\n\tgainR.gain.value = 0;\n}", "function updateOrientation(e) {\n var a = Math.round(e.alpha); // Left and Right\n var g = Math.round(e.gamma);// Up and d...
[ "0.66970944", "0.63837403", "0.63538504", "0.62614", "0.6043822", "0.60067976", "0.59798384", "0.597544", "0.5958886", "0.59020025", "0.58991605", "0.58889776", "0.5833174", "0.582491", "0.5823624", "0.58144754", "0.57927847", "0.577669", "0.57706386", "0.57513845", "0.571101...
0.0
-1
Applies changes made to the selected pitch.
function applyPitchDataChanges(){ var pitch = document.getElementById("pitch").value; var octave = document.getElementById("octave").value; var comment = document.getElementById("comment").value; var intm = document.getElementById("intm").value; var connection = document.getElementById("connection").value; var tilt = document.getElementById("tilt").value; var variation = document.getElementById("variation").value; var supplied = document.getElementById("supplied").value; if(pitch && pitch != "none"){ currentPitch.pitch = pitch; } if(octave && octave != "none"){ currentPitch.octave = octave; } if(comment && comment != "none"){ currentPitch.comment = comment; } if(intm && intm != "none"){ currentPitch.intm = intm; } if(connection && connection != "none"){ currentPitch.connection = connection; } if(tilt && tilt != "none"){ currentPitch.tilt = tilt; } if(variation && variation != "none"){ currentPitch.variation = variation; } if(supplied && supplied != "none"){ currentPitch.supplied = supplied; } document.getElementById("input").innerHTML = pitchDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pitchUpdate()\n{\n pitchHistory[9] = -currentFrequency;\n pitchHistory.shift();\n}", "function setPitch(\r\n pitch_)\r\n {\r\n pitch = pitch_;\r\n }", "function updatePitch( time ) {\n\n\tanalyser.getFloatTimeDomainData( buf );\n\tvar ac = autoCorrelate( buf, contextAudio.sampleR...
[ "0.6661587", "0.66339046", "0.64609945", "0.6343341", "0.6121705", "0.59973353", "0.57510394", "0.57483065", "0.56767064", "0.5635992", "0.5552709", "0.5474354", "0.5361279", "0.534843", "0.5321254", "0.5301967", "0.52315664", "0.52171636", "0.5214367", "0.51963645", "0.51921...
0.6234215
4
Deletes the currently selected pitch.
function deletePitch(){ currentNeume.pitches.splice(currentPitchIndex, 1); currentPitchIndex = 0; document.getElementById("input").innerHTML = pitchDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteVariationPitch(){\n currentNeume.pitches[currentPitchIndex][currentVarSourceIndex].additionalPitches.splice(currentVarPitchIndex, 1);\n \n currentVarPitchIndex = 0;\n \n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n document.getElementById(\"meiOutput\").v...
[ "0.67750955", "0.577435", "0.56466293", "0.56040037", "0.5565921", "0.54883426", "0.5440928", "0.5363801", "0.5356186", "0.5355239", "0.5349126", "0.534746", "0.5335379", "0.5254939", "0.5249522", "0.5247628", "0.5236143", "0.52346873", "0.5182655", "0.51549447", "0.51549447"...
0.7280706
0
Creates a new variation which can later be tweaked by the user.
function createAdditionalVariation(){ variations = new Array(); for(i = 0; i < sources.length; i++){ var variation = new Variation(sources[i].id); variations.push(variation); } currentNeume.pitches.splice(currentPitchIndex, 0, variations); document.getElementById("meiOutput").value = createMEIOutput(); document.getElementById("input").innerHTML = pitchDataChangeForm(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Interpreter_AddVariation(theObject, eProp, strValue)\n{\n\t//get this object's variations map\n\tvar objectMap = this.Variations[theObject.DataObject.Id];\n\t//no map?\n\tif (!objectMap)\n\t{\n\t\t//create a new one\n\t\tobjectMap = {};\n\t\t//set it\n\t\tthis.Variations[theObject.DataObject.Id] = objectM...
[ "0.694004", "0.62396306", "0.6203838", "0.5590959", "0.5456772", "0.5446231", "0.53901875", "0.5368162", "0.5363705", "0.5279377", "0.5266426", "0.52592355", "0.5250064", "0.523601", "0.52161443", "0.5201425", "0.51934534", "0.518344", "0.51736003", "0.51620394", "0.51599216"...
0.6720598
1
Applies changes made in the variation change form.
function applyVariationDataChanges(){ var pitch = document.getElementById("pitch").value; var octave = document.getElementById("octave").value; var comment = document.getElementById("comment").value; var intm = document.getElementById("intm").value; var connection = document.getElementById("connection").value; var tilt = document.getElementById("tilt").value; var graphicalVariation = document.getElementById("variation").value; var supplied = document.getElementById("supplied").value; if(pitch && pitch != "none"){ currentVarPitch.pitch = pitch; } if(octave && octave != "none"){ currentVarPitch.octave = octave; } if(comment && comment != "none"){ currentPitch.comment = comment; } if(intm && intm != "none"){ currentVarPitch.intm = intm; } if(connection && connection != "none"){ currentPitch.connection = connection; } if(tilt && tilt != "none"){ currentVarPitch.tilt = tilt; } if(graphicalVariation && graphicalVariation != "none"){ currentVarPitch.variation = graphicalVariation; } if(supplied && supplied != "none"){ currentPitch.supplied = supplied; } document.getElementById("input").innerHTML = pitchDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_variation_values( variations ) {\n\n // Loop through selects and disable/enable options based on selections\n $('.variations select').each(function( index, el ) {\n\n var current_attr_select = $(el);\n\n // Disable all\n current_attr_select.find('option:gt(0)').attr('...
[ "0.6355397", "0.62531453", "0.6214614", "0.60167295", "0.5794037", "0.5724715", "0.57019854", "0.5698099", "0.56428975", "0.5624716", "0.5619957", "0.55985177", "0.55770963", "0.5526879", "0.55220133", "0.54530567", "0.54236895", "0.54189265", "0.5417913", "0.53995925", "0.53...
0.6215663
2
Deletes the pitch of a variation.
function deleteVariationPitch(){ currentNeume.pitches[currentPitchIndex][currentVarSourceIndex].additionalPitches.splice(currentVarPitchIndex, 1); currentVarPitchIndex = 0; document.getElementById("input").innerHTML = pitchDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deletePitch(){\n currentNeume.pitches.splice(currentPitchIndex, 1);\n \n currentPitchIndex = 0;\n \n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}", "function deleteSh...
[ "0.6880858", "0.57012665", "0.56136405", "0.5587377", "0.5557648", "0.55111945", "0.542531", "0.54174113", "0.5399664", "0.53873914", "0.5384007", "0.53207153", "0.530118", "0.52598375", "0.5217453", "0.5209899", "0.5203828", "0.5190707", "0.5187357", "0.5131172", "0.5121391"...
0.77226067
0
Deletes the neume in a variation.
function deleteNeumeInVariant(){ currentSyllable.neumes[currentNeumeIndex][currentNeumeVariationIndex].additionalNeumes.splice(currentNeumeInVariationIndex, 1); currentNeumeInVariationIndex = 0; document.getElementById("input").innerHTML = neumeDataChangeForm(); document.getElementById("meiOutput").value = createMEIOutput(); createSVGOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteNeume(){\n currentSyllable.neumes.splice(currentNeumeIndex, 1);\n \n currentNeumeIndex = 0;\n \n document.getElementById(\"input\").innerHTML = neumeDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}", "function delete...
[ "0.70665705", "0.6344076", "0.611338", "0.61124647", "0.61124647", "0.60330266", "0.6019716", "0.5986053", "0.5861187", "0.57542586", "0.574653", "0.57440805", "0.5741301", "0.57347727", "0.5734445", "0.5731595", "0.57023925", "0.5695025", "0.56697977", "0.5653932", "0.562234...
0.795165
0
Set the selected source ID to be current source ID according to the form and reload it.
function applyCurrentSource(){ currentSID = document.getElementById("source").value; document.getElementById("input").innerHTML = sourceDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toChangeSourceData(){\n isChangingSources = true;\n if(sources.length > 0){\n currentSID = sources[0].id;\n }\n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n}", "function setSource(aSrc) {\n\n\tdocument.getElementById('frmFacturation').hdnSource.value = aSrc;...
[ "0.70406044", "0.64564556", "0.6252756", "0.6245405", "0.6176669", "0.5838951", "0.58054924", "0.568314", "0.5662627", "0.564564", "0.56438553", "0.5641112", "0.5638255", "0.5630472", "0.56117994", "0.55540216", "0.55443627", "0.5513411", "0.550988", "0.54959524", "0.54640895...
0.6893277
1
Set the selected staff to be current staff according to the form and reload it.
function applyCurrentStaff(){ currentN = document.getElementById("staff").value; document.getElementById("input").innerHTML = staffDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selecionarEmpleadoStaff(id){\n\tvar url =$('.staff_empleado_url').attr('id');\n\turl = url+'?empleadoStaff='+id;\n\n\t$.post(url, function( data ) {\n\t\tdata.forEach( function(valor, indice, array) {\n\t\t\t$('#staff_empleado').val(valor.empleado_codigo).trigger('change');\n\t\t\t$('#staff_tarea').val(va...
[ "0.6330211", "0.6120926", "0.6079444", "0.5784053", "0.57264775", "0.57064766", "0.5625", "0.5576152", "0.5551675", "0.5512408", "0.5479664", "0.5473718", "0.54386705", "0.5428659", "0.53851527", "0.5380228", "0.53154707", "0.5297902", "0.52948344", "0.52673614", "0.5265763",...
0.6225552
1
Set the selected clef to be current clef according to the form and reload it.
function applyCurrentClef(){ currentClefIndex = document.getElementById("clef").value; document.getElementById("input").innerHTML = clefDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatePreviewWithClef(sender, clef) {\r\n // console.log(\"clef changed to \" + clef)\r\n selectedClef = clef\r\n updateNotesSVG()\r\n}", "function setCurrent(current) {\n deselectFeature();\n\n $.each($(\"#editorFeatures\").find(\"div.panel-body div input\"), function (index, input) {\n ...
[ "0.62188315", "0.60764533", "0.5962494", "0.59495044", "0.5940669", "0.5797134", "0.5691537", "0.5642058", "0.5637858", "0.55275893", "0.5476251", "0.5464947", "0.54585445", "0.54477674", "0.5432277", "0.54301274", "0.54079443", "0.5403106", "0.53918", "0.53680503", "0.536753...
0.63718075
0
Set the selected syllable to be current syllable according to the form and reload it.
function applyCurrentSyllable(){ currentSyllableIndex = document.getElementById("syllable").value; document.getElementById("input").innerHTML = syllableDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toChangeSyllableData(){\n if(syllables.length > 0){\n currentType = syllables[0].type;\n currentColor = syllables[0].color;\n }\n pushedNeumeVariations = false;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}", "function applySyllableDataChanges(){...
[ "0.6784174", "0.6132346", "0.5928821", "0.5838092", "0.5741207", "0.5551991", "0.5539273", "0.5481438", "0.5383608", "0.5383608", "0.53811604", "0.53811604", "0.53734535", "0.53444487", "0.5330527", "0.53058916", "0.5289711", "0.5289358", "0.52828467", "0.5253412", "0.5251887...
0.7612395
0
Set the selected neume to be current neume according to the form and reload it.
function applyCurrentNeume(){ currentNeumeIndex = document.getElementById("neume").value; document.getElementById("input").innerHTML = neumeDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selection(){\n $('#selectionPraticien').ready(function(){\n $('#selectionPraticien').change(function(){\n optionSelected = $(this).find(\".choixPraticien:selected\");\n idPraticien = optionSelected.attr('id');\n nomPraticien = optionSelected.val();\n $...
[ "0.6364462", "0.6164582", "0.614882", "0.61383826", "0.61358976", "0.60964566", "0.6075344", "0.6020547", "0.5968083", "0.59621423", "0.59610665", "0.59542024", "0.59382486", "0.5926588", "0.5920886", "0.59115654", "0.59015656", "0.5876096", "0.5874762", "0.5872956", "0.58502...
0.60000443
8
Set the selected neume to be current neume according to the form and reload it.
function applyCurrentNeumeVariation(){ currentNeumeVariationIndex = document.getElementById("neumevariation").value; document.getElementById("input").innerHTML = neumeDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selection(){\n $('#selectionPraticien').ready(function(){\n $('#selectionPraticien').change(function(){\n optionSelected = $(this).find(\".choixPraticien:selected\");\n idPraticien = optionSelected.attr('id');\n nomPraticien = optionSelected.val();\n $...
[ "0.6364462", "0.6164582", "0.614882", "0.61383826", "0.61358976", "0.60964566", "0.6075344", "0.6020547", "0.60000443", "0.5968083", "0.59621423", "0.59610665", "0.59542024", "0.59382486", "0.5926588", "0.5920886", "0.59115654", "0.59015656", "0.5876096", "0.5874762", "0.5872...
0.0
-1
Set the selected neume to be current neume according to the form and reload it.
function applyCurrentNeumeInVariation(){ currentNeumeInVariationIndex = document.getElementById("neumeinvariation").value; document.getElementById("input").innerHTML = neumeDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selection(){\n $('#selectionPraticien').ready(function(){\n $('#selectionPraticien').change(function(){\n optionSelected = $(this).find(\".choixPraticien:selected\");\n idPraticien = optionSelected.attr('id');\n nomPraticien = optionSelected.val();\n $...
[ "0.6365197", "0.6164631", "0.61480826", "0.61388326", "0.61358094", "0.6097648", "0.6073602", "0.60209376", "0.59997696", "0.596888", "0.5961091", "0.59606", "0.5954777", "0.5938549", "0.59265876", "0.59216166", "0.5909202", "0.5902922", "0.58783776", "0.5874311", "0.5873117"...
0.0
-1
Set the selected neume type to be current current neume according to the form and reload it.
function applyCurrentType(){ currentType = document.getElementById("type").value; if(currentType == "climacus"){ isClimacus = true; } else{ isClimacus = false; } document.getElementById("input").innerHTML = neumeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleTypeChange(e){\n //update the selectedType object\n publicAPI.$npcSelectedType = $(this);\n // update the available skills to select based on the new matrix\n //debug string\n console.log(`Type changed to ${publicAPI.$npcSelectedType.val()}`);\n updateAvaila...
[ "0.62295675", "0.6178215", "0.60181123", "0.598451", "0.5980375", "0.5921312", "0.5917335", "0.591186", "0.5819113", "0.5772778", "0.5765386", "0.5749422", "0.57422066", "0.56941634", "0.5686553", "0.567608", "0.5671418", "0.56193334", "0.5618489", "0.56092006", "0.5594139", ...
0.6097243
2
Set the selected neume type to be current current neume according to the form and reload it.
function applyCurrentTypeVariation(){ currentType = document.getElementById("type").value; if(currentType == "climacus"){ isClimacus = true; } else{ isClimacus = false; } document.getElementById("input").innerHTML = neumeVariationForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleTypeChange(e){\n //update the selectedType object\n publicAPI.$npcSelectedType = $(this);\n // update the available skills to select based on the new matrix\n //debug string\n console.log(`Type changed to ${publicAPI.$npcSelectedType.val()}`);\n updateAvaila...
[ "0.6229441", "0.6176789", "0.6097624", "0.6017563", "0.5984435", "0.59797466", "0.5921311", "0.5916065", "0.59111226", "0.5816802", "0.5771548", "0.576487", "0.5748508", "0.5740876", "0.56945956", "0.5685101", "0.5676075", "0.56716156", "0.5619131", "0.56177", "0.56101733", ...
0.54551077
37
Set the selected pitch index to be current pitch index according to the form and reload it.
function applyCurrentPitch(){ currentPitchIndex = document.getElementById("pitc").value; document.getElementById("input").innerHTML = pitchDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyCurrentVariation(){\n currentVarPitchIndex = document.getElementById(\"varpitch\").value;\n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n}", "function applyCurrentOctave(){\n currentOctave = document.getElementById(\"octave\").value;\n document.getElementById(\...
[ "0.6336565", "0.5809133", "0.55543834", "0.54844683", "0.53527266", "0.53527266", "0.53513706", "0.53462267", "0.53462267", "0.53462267", "0.53462267", "0.533309", "0.5288151", "0.5266077", "0.52589005", "0.5233567", "0.51925147", "0.51778054", "0.51749754", "0.5151192", "0.5...
0.6773352
0
Set the selected variation source to be current variation source according to the form and reload it.
function applyCurrentVarSource(){ currentVarSourceIndex = document.getElementById("varsource").value; document.getElementById("input").innerHTML = pitchDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSource(aSrc) {\n\n\tdocument.getElementById('frmFacturation').hdnSource.value = aSrc;\n\tdocument.getElementById('frmFacturation').submit();\n\n}", "function toChangeSourceData(){\n isChangingSources = true;\n if(sources.length > 0){\n currentSID = sources[0].id;\n }\n document.getE...
[ "0.6095248", "0.6006027", "0.59675044", "0.5876784", "0.57824993", "0.5598207", "0.55959487", "0.5584449", "0.55797994", "0.5514978", "0.5511247", "0.55088145", "0.54767203", "0.5438914", "0.5419355", "0.5355469", "0.535199", "0.5344535", "0.5339286", "0.53194904", "0.5248172...
0.5952044
3
Set the selected variant to be current variation according to the form and reload it.
function applyCurrentVariation(){ currentVarPitchIndex = document.getElementById("varpitch").value; document.getElementById("input").innerHTML = pitchDataChangeForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refreshSelectOption() {\n var variant = getVariantFromForm();\n \n var $option = $('select#variant-select option[value='+variant.getBinaryValue()+']');\n \n if ($option.size()) {\n $('select#variant-select').val(variant.getBinaryValue());\n } else {\n $('select#variant-sele...
[ "0.6679732", "0.632783", "0.6285", "0.61748004", "0.60602915", "0.5826762", "0.582306", "0.58093077", "0.58039045", "0.5786059", "0.571941", "0.57192904", "0.57058775", "0.5664517", "0.56572926", "0.5640081", "0.5637827", "0.56366915", "0.5630434", "0.56285524", "0.5618808", ...
0.5408684
42
Set the selected octave to be current octave according to the form and reload it.
function applyCurrentOctave(){ currentOctave = document.getElementById("octave").value; document.getElementById("input").innerHTML = pitchForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setOctave(keyAdjust) {\n\tvar octaves = document.getElementsByName('octave');\n\tvar octaveSet = \"\";\n\n\t//find which octave button is selected\n\tfor(var i = 0; i < octaves.length; i++){\n\t if(octaves[i].checked){\n\t octaveSet = octaves[i].value;\n\t }\n\t}\n\t\n\t//if it's a positive o...
[ "0.64532727", "0.6226794", "0.59063274", "0.5747786", "0.5722116", "0.5243063", "0.52056074", "0.5198421", "0.51464415", "0.51365244", "0.5114822", "0.507811", "0.5076945", "0.5055766", "0.50290275", "0.501767", "0.49903986", "0.49648476", "0.4961119", "0.4949368", "0.4945698...
0.709136
0
Set the selected color to be current color according to the form and reload it.
function applyCurrentColor(){ currentColor = document.getElementById("color").value; document.getElementById("input").innerHTML = syllableForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateColor(){\r\n color = colorSelector.value;\r\n}", "function pickColor() {\n color = this.id;\n doc.querySelector('.selected').classList.remove('selected');\n this.classList.add('selected');\n }", "function newColor() {\n this.style.bac...
[ "0.6996887", "0.6983042", "0.69109523", "0.6882837", "0.68522084", "0.68385386", "0.6783322", "0.67351615", "0.66594595", "0.66190016", "0.6592943", "0.6567573", "0.6549375", "0.6533606", "0.65247595", "0.6519959", "0.65075994", "0.64985216", "0.64973366", "0.6493015", "0.646...
0.6087079
60
Factory method to create a TerrainRenderer from img urls instead of img objects
static async fromImgUrl (shapeCanvas, opts) { const imgOpts = Object.assign({}, opts, { groundImg: await loadImage(opts.groundImg) }) return new TerrainRenderer(shapeCanvas, imgOpts) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initRasterFactory(getURL) {\n // Input getURL returns a tile URL for given indices z, x, y, t (t optional)\n\n return { create };\n\n function create(z, x, y, t) {\n const tileHref = getURL(z, x, y, t);\n const img = loadImage(tileHref, checkData);\n\n const tile = { \n z, ...
[ "0.5914441", "0.5603538", "0.5532649", "0.5461344", "0.543083", "0.54229", "0.53484315", "0.53467107", "0.53092444", "0.53054607", "0.5298784", "0.5286089", "0.52688277", "0.52600914", "0.52369606", "0.52326185", "0.51437235", "0.5139459", "0.5138149", "0.5136494", "0.5130034...
0.7094668
0
Draw the terrain on specific canvas NOTE: in a real game, background and foreground would be drawn separately at different times
drawTerrain (seed) { if (seed < 0 || seed >= 1) { throw new Error('Invalid seed: ' + seed + ', must be between [0,1).') } const debug = this.options.debug if (debug) timer.start('draw-terrain') const randomGen = new Random(seed) // Draw background // bgCanvas.width = this.terr.width // bgCanvas.height = this.terr.height // bgCanvas.getContext('2d').putImageData(this.background, 0, 0) // this.drawWave(bgWaterCanvas, this.terr.width, 160, 15) // Draw terrain this.groundOffsetX = randomGen.nextIntBetween(0, this.ground.width) // start at random X this.groundOffsetY = randomGen.nextIntBetween(0, this.ground.height) // start at random Y if (debug) timer.start('texturize') this.texturize() if (debug) timer.stop('texturize') // Get character positions let playerPositions = this.drawCharacters(seed) return { playerPositions, terrain: this.terr } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "draw(ctx, width, height, tilesize) {\n // Draw rooms\n this.bspMap.rooms.forEach((c, i) => {\n ctx.beginPath();\n ctx.fillStyle = \"#000\";\n\n const image = new Image();\n image.src = \"images/FloorTile001.png\";\n var m_canvas = document.getEle...
[ "0.7077887", "0.7062904", "0.70234525", "0.69152814", "0.6719213", "0.6689552", "0.66759825", "0.66335857", "0.6569839", "0.65617126", "0.65497446", "0.651243", "0.65112", "0.6486747", "0.64781284", "0.6474017", "0.64548147", "0.6428576", "0.64269304", "0.6424773", "0.6423442...
0.7022829
3
An accordion allows users to toggle the display of sections of content.
function Accordion(props) { var className = props.className, fluid = props.fluid, inverted = props.inverted, styled = props.styled; var classes = (0, _classnames2.default)('ui', (0, _lib.useKeyOnly)(fluid, 'fluid'), (0, _lib.useKeyOnly)(inverted, 'inverted'), (0, _lib.useKeyOnly)(styled, 'styled'), className); var rest = (0, _lib.getUnhandledProps)(Accordion, props); return _react2.default.createElement(_AccordionAccordion2.default, (0, _extends3.default)({}, rest, { className: classes })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Accordion(options) {\n\tthis.setOptions(options);\n\tvar selected = this.options.initialSection, current;\n\tif (this.options.rememberance) {\n\t\tcurrent = document.location.hash.substring(1);\n\t}\n\tthis.rememberanceTexts = [];\n\tthis.ans = [];\n\tvar _this = this;\n\tfor (var i=0; i<this.options.sect...
[ "0.71348023", "0.70960236", "0.70635474", "0.705039", "0.6879876", "0.6861466", "0.6776991", "0.668984", "0.6662688", "0.6648424", "0.65760684", "0.6521067", "0.64973706", "0.64368385", "0.64314884", "0.6422919", "0.6418374", "0.6414471", "0.6414406", "0.641306", "0.6395548",...
0.0
-1
Create the GraphQL Yoga Server. It's built on top of an Express and apolloserver.
function createServer() { return new GraphQLServer({ typeDefs: 'src/schema.graphql', resolvers: { Mutation, Query, }, resolverValidationOptions: { requireResolversForResolveType: false, }, context: req => ({ ...req, db }), // Need to access DB from the resolvers. This is by passing context. }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createServer() {\n\treturn new ApolloServer({\n\t\ttypeDefs,\n\t\tresolvers: {\n\t\t\tMutation,\n\t\t\tQuery,\n\t\t\tSubscription,\n\t\t},\n\t\tintrospection: true,\n\t\tresolverValidationOptions: {\n\t\t\trequireResolversForResolveType: false,\n\t\t},\n\t\tcontext: (req) => {\n\t\t\t// console.log('conte...
[ "0.75870353", "0.7264394", "0.70832956", "0.70654374", "0.6853353", "0.6819676", "0.67991686", "0.6790845", "0.6621975", "0.6542191", "0.6474972", "0.6293154", "0.6192878", "0.6153205", "0.61411947", "0.6138101", "0.6126013", "0.61189973", "0.6087433", "0.60787624", "0.607319...
0.69981456
4
Constructor for car object
function Car(source, name, price, categories){ this.url = source; this.name = name; this.price = '$ ' + price + 'K'; this.categories = categories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function carConstructor(carName, model, color, brand){\n this.theCarName = carName;\n this.theModel = model;\n this.theColor = color;\n this.theBrand = brand;\n}", "function Car(make,year,model) {\n this.make = make;\n this.model = model;\n this.year = year;\n}", "function Car(ma...
[ "0.8459136", "0.79518706", "0.79413474", "0.7931583", "0.7922", "0.7911609", "0.7903969", "0.7889648", "0.7883255", "0.7875778", "0.78620696", "0.78469795", "0.78468126", "0.78468126", "0.7844204", "0.78120923", "0.779871", "0.7783844", "0.7781087", "0.7735921", "0.7730091", ...
0.7159984
66
EVENT HANDLING helper function for the function below this
function isPresent(array, substring){ for (string of array){ if (string.indexOf(substring) > -1){ return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleEvent(event) {\n\n }", "handleEvents() {\n }", "handleEvent() {}", "handleEvent() {}", "function FsEventsHandler() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "...
[ "0.73482615", "0.7303175", "0.72785336", "0.72785336", "0.6842731", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", "0.67046654", ...
0.0
-1
In the beginning: Show all items after page loads INITIALIZER
function showAll(){ for (car of vehicles){ garage.appendChild(makeCard(car)); } inputElement.value = ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initialDisplay() {\n \tcountLinks();\n \tgetDropDowns();\n \tgetList(\"id\");\n }", "function initPage() {\n $.get('/api/headlines?saved=false').done((data) => {\n articleContainer.empty();\n if (data && data.length > 0) {\n renderArticles(data);\n\n ...
[ "0.78416747", "0.7130186", "0.7098039", "0.6910206", "0.6873434", "0.68279374", "0.67882943", "0.6787031", "0.6767785", "0.6726004", "0.6683139", "0.66565543", "0.665389", "0.6638587", "0.66225797", "0.6603089", "0.65992796", "0.6567217", "0.6559166", "0.6554453", "0.65125096...
0.0
-1
end of method getItems
getHistory() { app.pageIndex--; app.searchProjects = app.history[app.pageIndex - 1]; console.log(app.pageIndex); console.log(app.history.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get items() {\n return this.data.items ? getItems(this.data.items, this.entryDate) : [];\n }", "processItems() {}", "getItems() {\n return this.items;\n }", "getItems() {\n return this.items;\n }", "getItems() {\n return this.items;\n }", "getItems() {\n return this.ite...
[ "0.74504703", "0.74402225", "0.725685", "0.71338224", "0.71338224", "0.71338224", "0.71041447", "0.689688", "0.68737435", "0.6872343", "0.6782857", "0.6768716", "0.6749584", "0.6733447", "0.67265797", "0.66168994", "0.6613675", "0.6593158", "0.656491", "0.6561585", "0.6547916...
0.0
-1
read a string and print: Its length Its first and last chars uppercase and lowercase in
function getStrInfo(str) { console.log('The string length is: ' + str.length + ' chars') console.log('The first Charter is: ' + str[0] + ', and the last charter is: ' + str[str.length - 1]); console.log('String in uppercase: ' + str.toUpperCase() + ', string in lowcase: ' + str.toLowerCase()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function upperandlower() {\n var rl = require('readline');\n var prompts = rl.createInterface(process.stdin, process.stdout);\n prompts.question('string: ', function (str) {\n console.log(str + ' ');\n var count = 0;\n var count1 = 0;\n for (var i = 0; i < str.length; i++) {\n var ch = str.char...
[ "0.67211425", "0.655639", "0.63148326", "0.6197648", "0.6180149", "0.6140913", "0.60792524", "0.6067308", "0.60111666", "0.6007638", "0.6005535", "0.6002223", "0.59990346", "0.59846514", "0.59846514", "0.59846514", "0.59811133", "0.59811133", "0.59702456", "0.59702456", "0.59...
0.6535799
2
code for filtering mobile menu's end function used for filtering
function filtertopics(clickedMenuFilter) { $(".menu-list-and-description .menu-description").hide(); //hides all topics data $("."+clickedMenuFilter).show(); //shows topics data related to clicked menu, based on 'data-filter' attribute which has same class used to recognize filter. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filtermobile() {\n $(\"#filtershow\").on(\"click\", function() {\n $(\".leftcolumn\").fadeIn(200);\n if ($(this).css(\"display\", \"block\")) {\n $(\".close-filter\").on(\"click\", function() {\n $(\".leftcolumn\").fadeOut(400)\n ...
[ "0.6795464", "0.6394163", "0.6216746", "0.6144104", "0.60753894", "0.60644066", "0.6060172", "0.60461664", "0.6018277", "0.59867156", "0.598551", "0.5890853", "0.58706415", "0.5848949", "0.5803251", "0.5802305", "0.57973266", "0.5787232", "0.5776138", "0.57723427", "0.5765806...
0.0
-1
All other misc functions
function gotoUrl(url) { window.location = url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "function _____SHARED_functions_____(){}", "private internal function m248() {}", "protected internal function m252() {}", "function Utils(){}", "static private internal function m121() {}", "transient protected internal function m189() {}", "function Utils() {}", ...
[ "0.7092117", "0.699054", "0.6878266", "0.681889", "0.6753087", "0.67441934", "0.67326367", "0.6684659", "0.6684659", "0.6501758", "0.65010226", "0.64639693", "0.6401653", "0.63853073", "0.63791656", "0.63702977", "0.6351446", "0.63094336", "0.6307882", "0.62753505", "0.626130...
0.0
-1
Gets an array of items to display in the Quick Pick window.
static getQuickPickItems(guid, showLowercase, showUppercase, showCodeSnippets) { let items = []; let nextIndex = 0; for (const format of GuidCommands._formats) { if (((showLowercase || (!showUppercase && !showCodeSnippets)) && format.type === FormatType.LOWERCASE) || (showUppercase && format.type === FormatType.UPPERCASE) || (showCodeSnippets && format.type === FormatType.SNIPPET)) { const item = new GuidPickItem(++nextIndex, guid, format); items.push(item); } } return items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get items() {\n const that = this;\n\n if (that.isReady) {\n return that._items.filter(item => item.opened).concat(that.getAutoHideItems());\n }\n }", "function getItems(){\n let values = (buttons)?buttons :presetFunction(null, actionController);\n return values;\...
[ "0.6227149", "0.61743164", "0.61260945", "0.6110278", "0.6106442", "0.5907002", "0.5894265", "0.58895344", "0.5865939", "0.586366", "0.58263886", "0.5804049", "0.5804049", "0.5804049", "0.5749524", "0.57473165", "0.5742378", "0.5696321", "0.56937134", "0.56925404", "0.5684932...
0.6126496
2
In order to escape any white spaces in the 'baseUrl' it is necessary to execute JavaScript 'escape' function because at this place the round trip does not take place.
function getAddToCartPopupUrl() { return escape(ysapproductconfigb2baddonConstants.baseUrl + "/addToCartPopup"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function escape(text) {\n return encodeURIComponent(text)\n .replace(/%2F/g, \"/\") // Don't escape for \"/\"\n .replace(/'/g, \"%27\") // Escape for \"'\"\n .replace(/\\+/g, \"%20\")\n .replace(/%25/g, \"%\"); // Revert encoded \"%\"\n}", "function escape(text) {\n return encod...
[ "0.60710776", "0.60710776", "0.6015741", "0.6015201", "0.5902606", "0.5870387", "0.5845237", "0.58393246", "0.58393246", "0.58073014", "0.5763943", "0.56873125", "0.5608322", "0.55471045", "0.5520298", "0.5520298", "0.5511867", "0.55030483", "0.54956394", "0.54926586", "0.548...
0.0
-1
Affichage du popup au dessus du marker
displayPopup(stationObj){ var popup = L.popup({className:"popup"}); popup .setLatLng([stationObj.position.lat,stationObj.position.lng]) .setContent(stationObj.name) .openOn(this.nameMap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openmarkerinfowindow(markerele, markerid) {\r\n\r\n\t//Google marker click handling\r\n\tif (mapstraction.api == \"google\") {\r\n\r\n\t\tmarkerele.openInfoWindowHtml(genmarkerinfohtml(pospopup_markerinfo[markerid]));\r\n\r\n\t} else if (mapstraction.api == \"multimap\") {\r\n\r\n\t\tmarkerele.openInfoBox...
[ "0.73744214", "0.73591226", "0.73123056", "0.7266702", "0.7246866", "0.7042064", "0.703231", "0.69943273", "0.69742495", "0.69734603", "0.6965752", "0.6960269", "0.69484454", "0.6941593", "0.69370645", "0.6926969", "0.69218427", "0.69218427", "0.6920592", "0.69127053", "0.690...
0.6809699
25
Get the natural height of an element
function getHeight(elem, eventTarget) { if (eventTarget === 1) { elem.style.display = 'block'; var height = elem.scrollHeight + 'px'; elem.style.display = ''; } else if (eventTarget === 2) { var height = headerHeight; } else if (eventTarget === 3) { var height = searchBarHeight; } return height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHeight(element) {\n\t\treturn parseInt(element.css('height'));\n\t}", "function innerHeight(el) {\n var style = window.getComputedStyle(el, null);\n // Hidden iframe in Firefox returns null, https://github.com/malte-wessel/react-textfit/pull/34\n if (!style) return el.clientHeight;\n return el.cl...
[ "0.7873602", "0.75556165", "0.75243825", "0.7480506", "0.7478959", "0.73640645", "0.7362584", "0.7358537", "0.7336129", "0.73338336", "0.73187995", "0.73159045", "0.7288694", "0.72802943", "0.71502596", "0.714684", "0.71070427", "0.7021992", "0.7015291", "0.7012177", "0.70039...
0.0
-1
Hide an element Without delay, transitions doesn't work properly
function hide(elem, eventTarget, delay) { // Give the element a height to change from elem.style.height = elem.scrollHeight + 'px'; if (eventTarget === 1) { hideManageTabs(elem); } else if (eventTarget === 2) { hidePageHeader(elem); } else if (eventTarget === 3) { hideSearchFilters(elem); } // change height; need small delay to make it work on Firefox window.setTimeout(function () { elem.classList.contains('header') ? (elem.style.height = '100px') : (elem.style.height = '0'); }, delay); // after transition, remove 'visibile' classes window.setTimeout(function () { eventTarget === 1 ? elem.classList.remove('is-visible') : elem.classList.remove('vis'); }, 350 + delay); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hide() {\n\t var time = arguments.length <= 0 || arguments[0] === undefined ? 200 : arguments[0];\n\t\n\t this.transition().duration(time).style('opacity', 0);\n\t }", "hide() {\n this._id && clearTimeout(this._id);\n this.el.classList.remove('show');\n }", "hide() {\n this.elem...
[ "0.78450257", "0.7474762", "0.7442034", "0.7407269", "0.7407269", "0.7407269", "0.7407269", "0.7407269", "0.7407269", "0.7407269", "0.7407269", "0.73959863", "0.7392882", "0.7326254", "0.7284211", "0.7215319", "0.71563053", "0.70969105", "0.70921755", "0.69925904", "0.6992590...
0.71192974
17
Reads body. If body is empty, sends internal error.
getRequestBody(request, callback) { const requestBody = request.body; if (_.isEmpty(requestBody)) { callback(new Error('Request body is empty')); } else { callback(null, requestBody); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBodyErrors(style, body) {\n const errors = [];\n let parsed;\n\n try {\n parsed = yaml.safeLoad(body);\n } catch (err) {\n // Body can't be parsed, but this will be reported elsewhere.\n }\n\n if (parsed) {\n if (parsed instanceof Array) {\n checkArray(errors, style, parsed);\n }...
[ "0.57237375", "0.551752", "0.54567003", "0.54287523", "0.5383416", "0.53608495", "0.53306", "0.51597685", "0.5158358", "0.5118168", "0.510826", "0.50741065", "0.50741065", "0.50741065", "0.50741065", "0.50736076", "0.5067143", "0.50620407", "0.5061825", "0.5057255", "0.505725...
0.49859273
49
callback function to handle submit on the form to add an activity
function addActivity(event) { event.preventDefault(); let form = event.target; let memberName = form.name; let newActivity = form.elements[0].value; // add the activity to the object if (newActivity) { let list = document.getElementById(memberName); let li = document.createElement("li"); li.textContent = newActivity; list.appendChild(li); getMember(memberName).activities.push(newActivity); } else{ window.alert("Please enter an activity"); return; } form.elements[0].value = null; } // End of callback function addActivity
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "submitForm(e) {\n e.preventDefault();\n window.M.updateTextFields();\n let data = Util.getDataElementsForm(e.target, false);\n\n MakeRequest({\n method: 'post',\n url: 'actividad/post',\n data : data\n }).then(response => {\n if (respon...
[ "0.69341975", "0.68606526", "0.6770345", "0.6732411", "0.6714598", "0.6586078", "0.656666", "0.65280867", "0.6518199", "0.65049475", "0.64693755", "0.63927644", "0.63830346", "0.63198674", "0.63124996", "0.630023", "0.62911195", "0.6286407", "0.62854224", "0.6280558", "0.6278...
0.75676477
0
Gets the member object
function getMember(name) { for (let member of jsonObj.members){ if(member.name === name){ return member; } } return {}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get members() {\r\n return new Members(this);\r\n }", "get members() {\n const Members = require('./members');\n return new Members.default(this);\n }", "getById(id) {\r\n return new Member(this, id);\r\n }", "get members() {\n return this._members;\n }", "construct...
[ "0.69179773", "0.6721899", "0.65971035", "0.64121956", "0.6375557", "0.62909645", "0.6266334", "0.6221488", "0.6173908", "0.60870945", "0.60586053", "0.6047646", "0.6011792", "0.59738344", "0.59564734", "0.59517175", "0.5922017", "0.5901934", "0.5839453", "0.5839248", "0.5828...
0.6528427
3
Initialize and add the map
function initMap() { // The location of Uluru var toronto = { lat: 43.7, lng: -79.4 }; // The map, centered at Uluru map = new google.maps.Map(document.getElementById("map"), { zoom: 8, center: toronto }); const placeService = new google.maps.places.PlacesService(map); const request = { query: "ottawa", fields: ["place_id", "name", "formatted_address", "icon", "geometry"] }; placeService.findPlaceFromQuery(request, (results, status) => { if (status == google.maps.places.PlacesServiceStatus.OK) { results.forEach(item => { }); } }); google.maps.event.addListener(map, "click", function (event) { let marker = new google.maps.Marker({ id: markers.length, position: event["latLng"], label: markers.length.toString(), // title: "Hello World!" draggable: true }); markers.push({ lat: marker.position.lat(), lng: marker.position.lng() }); marker.setMap(map); console.log(marker.position); // const contentString = setContentString(markers.length); const contentString = setContentString(marker); var infowindow = new google.maps.InfoWindow(); google.maps.event.addListener(marker, "click", function () { infowindow.setContent(contentString); infowindow.open(map, this); }); google.maps.event.addListener(marker, "rightclick", function () { marker.setMap(null); markers.push(marker); }); }); let divMap = document.getElementById("map"); divMap.gMap = map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initMap() {\n}", "function initMap() {\n map = new ExploreMap();\n}", "function init(){\n basemap();\n}", "function initMap() {\n\n //Grap some map textures to use in our app.\n var mbAttr = 'Map data &copy; <a href=\"http://openstreetmap.org\">OpenS...
[ "0.81892586", "0.7838531", "0.749588", "0.7434595", "0.7378458", "0.7298672", "0.7296951", "0.7290596", "0.7287961", "0.72479856", "0.72419876", "0.70997405", "0.7086728", "0.70741767", "0.7063979", "0.70577747", "0.70260906", "0.7020368", "0.70179206", "0.70045024", "0.69935...
0.0
-1
Rgister user to db
async register(req, res) { try { const { password, useremail } = req.body; const pwdRegex = "^(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{6,16}$"; const pattern = new RegExp(pwdRegex); // req.body.userId = uuid(); if (pattern.test(password)) { const newUser = new userModel({ ...req.body }); // await userModel.generateToken(newUser.dataValues); // // console.log("new user token",newUser.token); const user = await newUser.save(); console.log(user); return res.status(200).send({ msg: "User registered sucessfull" }); } else { return res.send("Invalid Password"); } } catch (err) { console.log(err); return res.send({ msg: err.msg }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function registerUser() {\n addUser()\n }", "function createUser() {}", "function UserDB() {\n\tUser.sync();\n}", "function storeUserCallback (err) {\n if (err) {console.log(\"account already in database, moving on\");}\n else {console.log(\"inserted user into db\");}\n //I set...
[ "0.72687334", "0.679746", "0.674034", "0.6739353", "0.66505367", "0.6567126", "0.6548749", "0.64946896", "0.6483825", "0.64778835", "0.64671504", "0.6436845", "0.642268", "0.64157426", "0.6413402", "0.6331237", "0.62940633", "0.6263165", "0.6262934", "0.624366", "0.6200739", ...
0.0
-1
Login user to db
async login(req, res) { console.log("hi there"); const { password, useremail } = req.body; if (!password || !useremail) return res.status(404).send({ msg: "Invalid Credentials" }); try { const user = await userModel.findByEmailAndPassword(useremail, password); await userModel.generateToken(user[0]); const loggedinUser = await sequelize.query( `UPDATE "user" SET token='${user[0].token}'`, ); return res .status(200) .send({ msg: `Welcome ${user[0].username}`, data: user[0] }); } catch (err) { if (err === "Incorrect credentials") return res.status(403).send({ msg: err.msg }); console.log(err); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function login() {\n User.login(self.user, handleLogin);\n }", "function login() {\n // We give username and password to log the user in\n // In case there is something wrong with the credentials\n // we use the setError to display it\n // If the user logs in successfully then the loginCallback i...
[ "0.7939983", "0.7721487", "0.7365634", "0.7251669", "0.7147863", "0.7081166", "0.7063259", "0.7016511", "0.6952725", "0.69442546", "0.6916119", "0.69115037", "0.6910197", "0.6902529", "0.6890204", "0.6881928", "0.68661255", "0.6835275", "0.6834272", "0.68315727", "0.68257517"...
0.6480773
59