query
stringlengths
9
14.6k
document
stringlengths
8
5.39M
metadata
dict
negatives
listlengths
0
30
negative_scores
listlengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Clear search by concept code name input box
function clearSearchConceptCodeNameInput(){ $('input#txt_search_conceptcode_name').val(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearSearchConceptCodeCodeInput(){\n\t$('input#txt_search_conceptcode_code').val(\"\");\n}", "function clearSearchContents() {\n\tconsole.log(\"**> ClearSearchContents\");\n\tsearchInput.value = \"\";\n}", "function clearInput ()\n{\n searchInput.value=\"\";\n}", "function clearAppSearchInput() {\n...
[ "0.79597235", "0.7175643", "0.7077374", "0.7037402", "0.70274115", "0.70122033", "0.6993021", "0.6896193", "0.6891878", "0.6879472", "0.68746597", "0.6839031", "0.68328476", "0.6829871", "0.68147486", "0.6793021", "0.67881596", "0.6773517", "0.67666143", "0.67322636", "0.6705...
0.82994837
0
Enable or disable BATCH UPLOAD select code system version dropdown
function setSelectBatchCsVsIsEnabled(setEnabledDisabled){ if(setEnabledDisabled === false){ $('select#batch_select_version').attr("disabled", "disabled"); }else if(setEnabledDisabled === true){ $('select#batch_select_version').removeAttr("disabled"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enable_buttons()\r\n{\r\n try\r\n {\r\n\t document.options_sys_ap_excl.Change.disabled =\r\n\t document.options_sys_ap_excl.Remove.disabled = document.options_sys_ap_excl.Exclusions.options.selectedIndex < 0;\r\n }\r\n catch (err)\r\n {\r\n\t g_ErrorHandler.DisplayException (err);\r\n\t return;\...
[ "0.59373724", "0.5935349", "0.5906925", "0.58619267", "0.58412474", "0.5769391", "0.5766529", "0.5766441", "0.56995124", "0.56704664", "0.5643156", "0.5565566", "0.5561844", "0.55422026", "0.5511675", "0.5503745", "0.54853415", "0.545652", "0.54527813", "0.54464376", "0.54433...
0.5966082
0
Show current concept codes table
function showTable(){ $('table#current_conceptcodes_table > tbody').removeClass("hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showCodes() {\r\n const result = document.getElementById('result');\r\n //table\r\n const table = document.createElement('table');\r\n const tr1 = document.createElement('tr');\r\n table.classList = 'ui celled table';\r\n //thead\r\n const thead = document.createElement('thead');\r\n const th1 = d...
[ "0.5987399", "0.5960435", "0.55692554", "0.55390257", "0.5506802", "0.54860437", "0.5399346", "0.53909487", "0.5389163", "0.53869927", "0.5378507", "0.5369561", "0.5364086", "0.5339556", "0.5329373", "0.53120273", "0.5278623", "0.52720845", "0.52447796", "0.52442336", "0.5211...
0.6432231
0
Hide current concept codes table
function hideTable(){ $('table#current_conceptcodes_table > tbody').addClass("hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showTable(){\n\t$('table#current_conceptcodes_table > tbody').removeClass(\"hidden\");\n}", "function clearTable(){\n\t$('table#current_conceptcodes_table > tbody > tr.conceptcode-record').remove();\n}", "function hideTable(table){\n let rows = Array.from(table.rows).slice(1);\n rows.map(hideRow...
[ "0.7628384", "0.6120697", "0.6046892", "0.5999383", "0.5979481", "0.5970338", "0.5880967", "0.5877437", "0.5873625", "0.5863399", "0.58560246", "0.58469194", "0.58464825", "0.5833513", "0.57679546", "0.5721343", "0.5718006", "0.5695526", "0.5686695", "0.5657112", "0.5653305",...
0.7674622
0
Increment visible pages in page group by one
function incrementPagegroup(){ var cur_last_pagegroup_pagenum = getLastPagegroupPagenum(); var cur_first_pagegroup_pagenum = getFirstPagegroupPagenum(); var new_last_pagegroup_pagenum = cur_last_pagegroup_pagenum + 1; changePagegroup("incrementPagegroup", new_last_pagegroup_pagenum, null, cur_first_pagegroup_pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pageCountIncrement(page) {\n\tvar flag_p = false;\n\tstr = process_page_path(page);\n\tfirebase.database().ref('page_wise_visits/' + str).once('value', function(snap) {\n\t\tif(snap.exists()){\n\t\t\tflag_p = true;\n\t\t}\n\t\tif(flag_p) {\n\t\t\tfirebase.database().ref('page_wise_visits/' + str).transact...
[ "0.6545383", "0.63789964", "0.6339929", "0.63347167", "0.6312541", "0.6306977", "0.62710243", "0.6205272", "0.616577", "0.6145843", "0.61260504", "0.6121547", "0.609527", "0.60881376", "0.6086074", "0.6061653", "0.6045644", "0.6045495", "0.60430324", "0.60371673", "0.6032118"...
0.7685817
0
Decrement visible pages in page group by one
function decrementPagegroup(){ var cur_last_pagegroup_pagenum = getLastPagegroupPagenum(); var cur_first_pagegroup_pagenum = getFirstPagegroupPagenum(); var new_first_pagegroup_pagenum = (cur_first_pagegroup_pagenum > 1) ? cur_first_pagegroup_pagenum - 1 : 1; changePagegroup("decrementPagegroup", new_first_page...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "prevPage(state) {\n state.page--;\n }", "function clearPages() {\n const previousPages = document.querySelectorAll(\".page__button\");\n previousPages.forEach(node => {\n node.parentNode.removeChild(node);\n })\n}", "function removePageNumbers() {\n \n var slides = presentation.getSli...
[ "0.5898541", "0.5836902", "0.583381", "0.583113", "0.5823509", "0.5811356", "0.56922513", "0.56449586", "0.5620387", "0.5618996", "0.5538624", "0.5537074", "0.5509454", "0.55086356", "0.54545265", "0.5419666", "0.5394376", "0.53897864", "0.5370079", "0.5366602", "0.5362755", ...
0.76987433
0
Jump to the last pagination page group and goto the last page
function jumpToLastPagegroup(){ //TODO (MH): Change this number to use a value read from a properties file var page_len = 5; var last_pagenum = getLastPagenum(); var new_first_pagegroup_pagenum = ((last_pagenum - page_len + 1) >= 1) ? (last_pagenum - page_len + 1) : 1; changePagegroup("jumpToLastPagegroup", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gotoLastPage(){\n\tvar last_pagenum = getLastPagenum(); \n\tgotoTargetPage(last_pagenum);\n\t$('div#conceptcode_pagination_holder > ul.pagination').trigger(\"gotoLastPageComplete.c2s_ui.pagination\");\n}", "function gotoNextPage(){\n\tvar current_pagenum = getCurrentPagenum();\n\t\n\tif(checkNextPages(c...
[ "0.79760885", "0.7414958", "0.73143405", "0.72913074", "0.6986298", "0.67254186", "0.6684891", "0.6636747", "0.6599503", "0.65793335", "0.657316", "0.6541373", "0.6450182", "0.64440787", "0.6438024", "0.6394187", "0.6380117", "0.6364098", "0.63285017", "0.63084334", "0.628925...
0.8580184
0
Jump to the first pagination page group and goto the first page
function jumpToFirstPagegroup(){ //TODO (MH): Change this number to use a value read from a properties file var page_len = 5; var first_pagenum = 1; var last_pagenum = getLastPagenum(); var new_last_pagegroup_pagenum = ((first_pagenum + page_len - 1) <= last_pagenum) ? (first_pagenum + page_len - 1) : last_pag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gotoFirstPage(){\n\tgotoTargetPage(1);\n\t$('div#conceptcode_pagination_holder > ul.pagination').trigger(\"gotoFirstPageComplete.c2s_ui.pagination\");\n}", "function gotoNextPage(){\n\tvar current_pagenum = getCurrentPagenum();\n\t\n\tif(checkNextPages(current_pagenum) === true){\n\t\tvar isEndOfPagegro...
[ "0.78299445", "0.7050155", "0.70379084", "0.69021773", "0.689868", "0.6896007", "0.68194604", "0.6794154", "0.67733765", "0.6639206", "0.66040355", "0.6578433", "0.6532448", "0.6524875", "0.64562786", "0.6411721", "0.64087945", "0.6389039", "0.6358147", "0.6349743", "0.633042...
0.85027987
0
Set all pagination pages to be trailing ellipsis pages
function setAllPagesEllipsisTrailing(){ var pagination_li_elements = $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination-page"); //Make sure no page gets both pagination-leading & pagination_trailing at the same time pagination_li_elements.removeClass("pagination-leading pagination-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAllPagesEllipsisLeading(){\n\tvar pagination_li_elements = $(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination-page\"); \n\t\n\t//Make sure no page gets both pagination-leading & pagination_trailing at the same time\n\tpagination_li_elements.removeClass(\"pagination-lead...
[ "0.7775032", "0.67531914", "0.6357732", "0.6203514", "0.58969915", "0.5832394", "0.57707363", "0.57592964", "0.5727231", "0.56772965", "0.5630319", "0.5619834", "0.560706", "0.5562056", "0.55585545", "0.55098486", "0.5499363", "0.5486232", "0.5483283", "0.5483283", "0.5419193...
0.8476548
0
Set all pagination pages to be leading ellipsis pages
function setAllPagesEllipsisLeading(){ var pagination_li_elements = $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination-page"); //Make sure no page gets both pagination-leading & pagination_trailing at the same time pagination_li_elements.removeClass("pagination-leading pagination-t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAllPagesEllipsisTrailing(){\n\tvar pagination_li_elements = $(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination-page\"); \n\t\n\t//Make sure no page gets both pagination-leading & pagination_trailing at the same time\n\tpagination_li_elements.removeClass(\"pagination-lea...
[ "0.7643144", "0.6832127", "0.65625834", "0.6348268", "0.63334596", "0.6259091", "0.61216825", "0.6072194", "0.60595715", "0.60121214", "0.59545624", "0.5900882", "0.58978575", "0.5875721", "0.5875258", "0.58695686", "0.58402085", "0.5794492", "0.57488877", "0.574002", "0.5736...
0.8439649
0
Hide pagination holder div element
function hidePaginationHolder(){ $('div.sysAdmin_pagination#conceptcode_pagination_holder').addClass("hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showPaginationHolder(){\n\t$('div.sysAdmin_pagination#conceptcode_pagination_holder').removeClass(\"hidden\");\n}", "function hideShowPagination() {\n\t\t\tif (newsList.matchingItems.length == 0) {\n\t\t\t\t(0, _jquery2.default)('.news-pagination-wrapper').hide();\n\t\t\t} else {\n\t\t\t\t(0, _jquery2.d...
[ "0.8227457", "0.80196595", "0.7272313", "0.6945362", "0.6789377", "0.67491037", "0.6725697", "0.6498478", "0.648177", "0.6480921", "0.64715004", "0.6453272", "0.6450378", "0.6383326", "0.6383209", "0.635762", "0.6298203", "0.62912905", "0.6289445", "0.62678164", "0.6251426", ...
0.8240222
0
Show pagination holder div element
function showPaginationHolder(){ $('div.sysAdmin_pagination#conceptcode_pagination_holder').removeClass("hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayPagination() {\n venuePaginationEl.empty();\n venuePaginationEl.append(`<li id=\"left-arrow\" class=\"${currentPage == 1 ? \"disabled\" : \"waves-effect\"}\"><a><i class=\"material-icons\">chevron_left</i></a></li>`);\n for (var i = 1; i <= totalPages; i++) {\n venuePaginationEl.app...
[ "0.7321988", "0.71628886", "0.71592706", "0.7032854", "0.70212907", "0.69215876", "0.6831059", "0.68135685", "0.6707518", "0.6667807", "0.651807", "0.6493971", "0.64902323", "0.648971", "0.64796394", "0.64683086", "0.64518195", "0.6451419", "0.64379317", "0.6432062", "0.64217...
0.73947024
0
Enable & show next ellipsis icon in the pagination bar
function enableNextEllipsisIcon(){ $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination_ellipsis#pagination_ellipsis_next").removeClass("disabled hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disableNextEllipsisIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination_ellipsis#pagination_ellipsis_next\").addClass(\"disabled hidden\");\n}", "function enablePrevEllipsisIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagin...
[ "0.7999989", "0.78709304", "0.7513846", "0.74234813", "0.72296536", "0.7026892", "0.69614226", "0.6900088", "0.6867654", "0.6714552", "0.6682429", "0.66205496", "0.6564798", "0.6504602", "0.6488247", "0.64506996", "0.64173716", "0.6359265", "0.63336575", "0.6321525", "0.63077...
0.8354003
0
Disable & hide next ellipsis icon in the pagination bar
function disableNextEllipsisIcon(){ $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination_ellipsis#pagination_ellipsis_next").addClass("disabled hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enableNextEllipsisIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination_ellipsis#pagination_ellipsis_next\").removeClass(\"disabled hidden\");\n}", "function disablePrevEllipsisIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pa...
[ "0.83791906", "0.81090075", "0.80691665", "0.7734133", "0.7502939", "0.74301535", "0.7294916", "0.7078029", "0.70424604", "0.6857958", "0.6829269", "0.67577547", "0.6698346", "0.6691798", "0.66441226", "0.66351634", "0.6623562", "0.65281594", "0.65173227", "0.64963603", "0.64...
0.8512805
0
Enable & show prev ellipsis icon in the pagination bar
function enablePrevEllipsisIcon(){ $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination_ellipsis#pagination_ellipsis_prev").removeClass("disabled hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disablePrevEllipsisIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination_ellipsis#pagination_ellipsis_prev\").addClass(\"disabled hidden\");\n}", "function enableNextEllipsisIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagin...
[ "0.811855", "0.7792591", "0.76425743", "0.7540109", "0.7526934", "0.71593916", "0.69093984", "0.6816309", "0.6704955", "0.6659838", "0.66423273", "0.6561223", "0.6509932", "0.6474247", "0.64663994", "0.6404336", "0.6345805", "0.6282135", "0.62656724", "0.6244335", "0.62363565...
0.83787847
0
Disable & hide prev ellipsis icon in the pagination bar
function disablePrevEllipsisIcon(){ $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination_ellipsis#pagination_ellipsis_prev").addClass("disabled hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enablePrevEllipsisIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination_ellipsis#pagination_ellipsis_prev\").removeClass(\"disabled hidden\");\n}", "function disableNextEllipsisIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pa...
[ "0.842983", "0.80336607", "0.78924876", "0.78741103", "0.77341527", "0.7216013", "0.7110307", "0.69602066", "0.6914024", "0.66916984", "0.66552794", "0.6650254", "0.66248536", "0.66123474", "0.6603004", "0.65870446", "0.6582197", "0.65659785", "0.6535708", "0.6502179", "0.645...
0.8520683
0
Disable next page icon in the pagination bar
function disableNextPageIcon(){ $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_next").addClass("disabled"); $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_last").addClass("disabled"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enableNextPageIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_next\").removeClass(\"disabled\");\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_last\").removeClass(\"disabled\");\n}", "function disablePrevPageIcon(){\...
[ "0.82997936", "0.80238014", "0.7821681", "0.7759903", "0.7466621", "0.7158504", "0.71217763", "0.6981998", "0.6974989", "0.69414824", "0.69355553", "0.6892859", "0.68087006", "0.67166364", "0.6541654", "0.6480606", "0.6452044", "0.6425681", "0.6417527", "0.63939774", "0.63751...
0.86192095
0
Enable next page icon in the pagination bar
function enableNextPageIcon(){ $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_next").removeClass("disabled"); $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_last").removeClass("disabled"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disableNextPageIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_next\").addClass(\"disabled\");\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_last\").addClass(\"disabled\");\n}", "function enablePrevPageIcon(){\n\t$(\...
[ "0.8216673", "0.76673156", "0.7645662", "0.7493767", "0.749086", "0.7219958", "0.69581056", "0.6947564", "0.69145674", "0.6905006", "0.6884851", "0.6870659", "0.6848876", "0.67753744", "0.6685885", "0.6668275", "0.6656631", "0.6635947", "0.6616756", "0.6585843", "0.65746284",...
0.84204924
0
Disable previous page icon in the pagination bar
function disablePrevPageIcon(){ $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_prev").addClass("disabled"); $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_first").addClass("disabled"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enablePrevPageIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_prev\").removeClass(\"disabled\");\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_first\").removeClass(\"disabled\");\n}", "function disableNextPageIcon(){...
[ "0.8333531", "0.78690004", "0.7524688", "0.75031805", "0.7319065", "0.72876626", "0.7134798", "0.70536095", "0.70172393", "0.70071495", "0.6953019", "0.68890834", "0.6860959", "0.67577684", "0.67385", "0.6728322", "0.6726266", "0.66856116", "0.66740364", "0.6673819", "0.66461...
0.8560355
0
Enable previous page icon in the pagination bar
function enablePrevPageIcon(){ $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_prev").removeClass("disabled"); $("div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_first").removeClass("disabled"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disablePrevPageIcon(){\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_prev\").addClass(\"disabled\");\n\t$(\"div#conceptcode_pagination_holder > ul.pagination > li.pagination-li#pagination_first\").addClass(\"disabled\");\n}", "function enableNextPageIcon(){\n\t$(...
[ "0.84134257", "0.7507634", "0.74870616", "0.74451077", "0.73646545", "0.7363699", "0.72493935", "0.71011406", "0.70317376", "0.7030948", "0.6993298", "0.69873786", "0.69841254", "0.69617236", "0.6944117", "0.6914559", "0.69067365", "0.6861831", "0.683847", "0.6836204", "0.680...
0.84803885
0
Remove 'active' class from all pagination icon li elements
function removePaginationActiveClass(){ $('div#conceptcode_pagination_holder > ul.pagination > li.pagination-li.pagination-page').removeClass("active"); $('div#conceptcode_pagination_holder > ul.pagination').trigger("activeClassRemoved.c2s_ui.pagination"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeAllActive() {\n\n slideImages.forEach(function (img) {\n img.classList.remove('active')\n })\n\n paginationBullet.forEach(function (bullet) {\n bullet.classList.remove('active')\n })\n}", "function setActivePagination() {\n pagination.forEach((item, index) => {\n inde...
[ "0.7431495", "0.73863477", "0.73784", "0.72314423", "0.7151021", "0.7142677", "0.7093369", "0.7014513", "0.7004389", "0.7001691", "0.70004344", "0.68455416", "0.6750368", "0.67040414", "0.67005527", "0.6661453", "0.6659523", "0.6586831", "0.65832716", "0.6549769", "0.650659",...
0.84311855
0
Randomize the grid's data point states.
randomize () { // loop for the x coordinates for (let x = 0; x < this.config.get(colsKey); ++x) { // loop over the y coordinates for (let y = 0; y < this.config.get(rowsKey); ++y) { // assign a random 0 or 1 this.grid.set((x + y * this.config.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "randomize() {\n for (let i = 0; i < this.rows; i++) {\n for (let j = 0; j < this.cols; j++) {\n this.data[i][j] = Math.random() * 2 - 1;\n }\n }\n }", "function randomGridVariablePosition() {\n return Math.floor(Math.random() * 10);\n}", "function random...
[ "0.65199924", "0.64789265", "0.64620095", "0.6331089", "0.6278112", "0.62622416", "0.6251786", "0.62197506", "0.6214464", "0.61811537", "0.6142887", "0.6141114", "0.6102514", "0.6069225", "0.60617334", "0.6054567", "0.60168034", "0.6011484", "0.6009895", "0.6000691", "0.59880...
0.7376572
0
Note that 'elemNameOrArray' is: either the full element name (eg. [html:]div) or an array of elements in JSON notation
function tag(elemNameOrArray, elemAttr) { // Array of elements? Parse each one... if (Array.isArray(elemNameOrArray)) { var frag = doc.createDocumentFragment(); Array.forEach(arguments, function(thisElem) { frag.appendChild(tag.apply(null, thisElem)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getElem(jqOrElem) {\n if (jqOrElem instanceof $) {\n return jqOrElem[0];\n } else {\n return jqOrElem;\n }\n }", "function tag(elemNameOrArray, elemAttr) {\n // Array of elements? Parse each one...\n if (Array.isArray(elemNameOrArray)) {\n var frag = doc.createDocume...
[ "0.62735015", "0.6106271", "0.6077118", "0.58268327", "0.58268327", "0.58091813", "0.58091813", "0.58091813", "0.5759123", "0.57326174", "0.5670595", "0.5604317", "0.55344194", "0.5515376", "0.54810125", "0.5467002", "0.5467002", "0.5467002", "0.5467002", "0.5467002", "0.5467...
0.6110435
1
remove the marker on unmount of the component
componentWillUnmount() { const { map } = this.context; if (this.marker) { map.removeObject(this.marker); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentWillUnmount() {\n this.AMapEventListeners.forEach((listener) => {\n window.AMap.event.removeListener(listener);\n });\n\n this.marker.setMap(null);\n this.marker = null;\n }", "remove() {\n this.setMap(null);\n }", "_clearMarkers() {\n for (let id in this.markerTracker) this.m...
[ "0.7904454", "0.7512343", "0.7452063", "0.7350929", "0.7331933", "0.73135126", "0.73034465", "0.7244368", "0.7244368", "0.72282755", "0.72208506", "0.721394", "0.71910673", "0.7161587", "0.71277434", "0.7043444", "0.6992972", "0.69917935", "0.6968243", "0.6940889", "0.6901527...
0.87273264
0
Save a new post
save() { this.resetErrors(); // Get the properties from the controller const title = this.get('title'); const body = this.get('body'); // Validation if (Ember.isEmpty(title)) { this.set('errors.title', 'Title is empty!'); } if (Ember.isEmpty(body)) { thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function savePost(req) {\n\t// Create a new post record to be stored in the database\n\tconst post_obj = {\n\t\tid: req.body.id,\n\t\tcreated: req.body.created,\n\t\tedited: req.body.edited,\n title: req.body.title,\n body: req.body.body,\n tags: req.body.tags,\n\t\tedits: req.body.edits,\n\t\tpubli...
[ "0.74374723", "0.7201693", "0.71041733", "0.7018635", "0.6937973", "0.69375056", "0.69062537", "0.69015557", "0.6886912", "0.686619", "0.6860238", "0.68577564", "0.68043303", "0.6786766", "0.67843604", "0.6745312", "0.6555273", "0.6553135", "0.65351963", "0.6516971", "0.64935...
0.7229745
1
tail input: array of elements output: array of all elements after the first PSEUDOCODE create storage for output traverse every item in array starting from second add item to output return output
function tail(array) { var output = []; for (var i = 1; i < array.length; i++) { output.push(array[i]); } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function e(t,i){for(;i+1<t.length;i++)t[i]=t[i+1];t.pop()}", "function tail(xs) {\n var tmp = []\n for (var i = 1; i < xs.length; i++) tmp.push(xs[i])\n return tmp\n}", "function a(t,i){for(;i+1<t.length;i++)t[i]=t[i+1];t.pop()}", "function tail(array) {\n var newArray = [];\n for (var i = 1; i < ...
[ "0.64722687", "0.6417368", "0.63980025", "0.6396688", "0.6391884", "0.6343599", "0.6315286", "0.6304744", "0.62617004", "0.6243695", "0.6202333", "0.6202036", "0.6186876", "0.6167468", "0.61361283", "0.61209935", "0.6081285", "0.60718507", "0.60608095", "0.60608095", "0.60608...
0.6604057
0
function for creating dynamic div of daily weather
function sevenDaysWeather() { let daysWeather = document.querySelector(".days_weather .container"); for (let i = 1; i < weather.daily.length; i++) { let date = new Date(weather.daily[i].dt * 1000).toLocaleDateString(); let iconCode = weather.daily[i].weather[0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createWeatherHTML(weather) {\n var forecast = data.daily[i];\n \n}", "function displayWeather(data){\n var weathResultDiv = document.createElement('div');\n weathResultDiv.className = 'weather-result float-child';\n\n var weathCity = document.createElement('h4');\n weathCity.textConten...
[ "0.7551371", "0.74609363", "0.7380226", "0.7352955", "0.729857", "0.7239453", "0.7198269", "0.71809655", "0.71482164", "0.7139556", "0.71107316", "0.70560646", "0.7051511", "0.70412165", "0.7033915", "0.7033912", "0.702545", "0.7018623", "0.7016973", "0.70122296", "0.6999514"...
0.76327527
0
Log in check check login form data if match with an user, if yes returns true
function logInCheck() { const email = document.getElementById('email2'); const pass = document.getElementById('pass2'); if ((email.value !== '')) { if ((pass.value !== '')) { message2 = ''; let formData = [email.value, pass.value]; // let ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUserLoginData() {\n let isValid = true;\n const userLogin = {\n email: document.getElementById('user-email').value,\n password: document.getElementById('user-password').value\n }\n if(userLogin.email === '') {\n isValid = invalidField('user-e...
[ "0.7308166", "0.7205261", "0.7158365", "0.7060123", "0.70261395", "0.7003811", "0.69945943", "0.69736934", "0.6969098", "0.69573224", "0.6944791", "0.69228595", "0.69143754", "0.6909485", "0.6901837", "0.6884437", "0.6877118", "0.68638104", "0.6860292", "0.68515664", "0.68236...
0.7381829
0
returns currentUser a global variable
function getCurrentUser() { return currentUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCurrentUser()\n{ \n\treturn currentUser;\n}", "function current() {\n return user;\n }", "function user() {\n return currentUser;\n }", "static currentUserId() {\n return localStorage.getItem('userid');\n }", "function findCurrentUser() {\n return \"stefan\"\n }", "g...
[ "0.8176113", "0.7604557", "0.751552", "0.7458652", "0.7362868", "0.7257188", "0.7170658", "0.71675605", "0.7116707", "0.7113669", "0.70938945", "0.70639277", "0.7011264", "0.70105356", "0.70047617", "0.6972039", "0.6896922", "0.68780303", "0.6813965", "0.6813965", "0.67882985...
0.78656137
1
returns userList currently selected notes
function getUserList() { return userList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "list(user) {\r\n if (typeof user !== \"undefined\") {\r\n return this.init() \r\n .then(() => {\r\n return this.read();\r\n })\r\n .then(() => {\r\n if (typeof this.notes[user] === \"undefined\") { //we have if causes to return either an empty array or the user's note...
[ "0.7260754", "0.66907555", "0.64173716", "0.63408893", "0.6244676", "0.61846966", "0.6155326", "0.61534244", "0.6006113", "0.5997626", "0.59858125", "0.5924524", "0.5905387", "0.5884292", "0.5884246", "0.5876984", "0.58676535", "0.5839726", "0.5836047", "0.58165675", "0.58148...
0.6966901
1
function gets TODO lists for logged user by filtering all lists, JSON is then read and data saved into arrays of same structure, which is assigned to global variable calls function to generate link for each list
function helper_loadUserLists() { // const user = getCurrentUser(); const allTodoLists = getAllNotes(); let userJSONTodoLists = [], userTodoLists = []; let currentList = [], currentItems = [], index = 0; listOfUserListsCaptions = []; // 1. gets all lists and search for lists crea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readT_todoList() {\n var connection = datasource.getConnection();\n try {\n var result = [];\n var sql = \"SELECT * FROM TODO WHERE TODO_USER = ?\";\n \n if (limit !== null && offset !== null) {\n sql += \" \" + db.createTopAndStart(limit, offset);\n }\n...
[ "0.64227855", "0.61220986", "0.6101466", "0.6087015", "0.60847926", "0.6081589", "0.6062399", "0.60411966", "0.6007862", "0.59590185", "0.5935268", "0.59269714", "0.5921669", "0.5862364", "0.585356", "0.5841725", "0.58224875", "0.5816209", "0.5798603", "0.57749707", "0.577406...
0.7572489
0
function generates links for each TODO list at login lists created by user in the past
function helper_generateLinks(lists) { for (let i=0; i<lists.length; i++) { const listName = lists[i][1]; notesToLinks += ` <a href="javascript: " id="${(lists[i][0])}" onClick="openList(this.id)">${listName}</a>`; } return notesToLinks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function helper_loadUserLists() {\n //\n const user = getCurrentUser();\n const allTodoLists = getAllNotes();\n let userJSONTodoLists = [], userTodoLists = [];\n let currentList = [], currentItems = [], index = 0;\n \n listOfUserListsCaptions = [];\n \n // 1. gets all lists and search ...
[ "0.6494607", "0.63876885", "0.6355003", "0.6321033", "0.6215362", "0.6066709", "0.6022367", "0.5967978", "0.5956027", "0.59521043", "0.5892902", "0.58742535", "0.5858112", "0.5840969", "0.57721543", "0.5729572", "0.57194054", "0.57166636", "0.56729424", "0.567029", "0.5655843...
0.69107133
0
reads all list items and push them all to a JSON array, used at saving edited / new list
function helper_listItemsToJSON() { const currentListLi = document.getElementById ('selectedListOl').getElementsByTagName('LI'); currentListItems = []; if (currentListLi.length>0) { // reads element data and insert them to JSON, adds // JSONs to array and returns i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function populateList() {\n // adds a new element (specified JSON object) to $scope.itemsList\n $scope.itemsList.push({\"name\":\"big screen TV\", \"room\":\"Basement\"});\n $scope.itemsList.push({\"name\":\"Xbox One\", \"room\":\"Basement\"});\n $scope.itemsList.push({\"name\":\"Ice Maker\", \...
[ "0.67386657", "0.6648211", "0.6503023", "0.64812267", "0.64344615", "0.6390079", "0.6331833", "0.63313544", "0.63165706", "0.6293997", "0.6284554", "0.62764865", "0.6249089", "0.6229847", "0.6219446", "0.619215", "0.61874163", "0.617403", "0.6148669", "0.6114042", "0.60939825...
0.72902375
0
ClaimSpace() Action to assign a room to a division and department
function ClaimSpace(strSerialized) { UpdateSpace(strSerialized, strDpChangeDv, strDpChangeDp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function assignRoom(assignRoomCommand, entityState, ctx) {\n if (!entityState.added || entityState.removed) {\n ctx.fail(\"customerLocation does not exist\");\n }\n else {\n const existing = entityState.devices.find(device => {\n return device.deviceId === assignRoomCommand.deviceId;\n });\n\n ...
[ "0.5799671", "0.5305538", "0.527846", "0.5274778", "0.5215258", "0.52094066", "0.5188143", "0.5078541", "0.5063319", "0.49711105", "0.4948351", "0.4873916", "0.48485518", "0.48171633", "0.48118272", "0.48008138", "0.4780896", "0.47614413", "0.47562003", "0.47406247", "0.46719...
0.5616487
1
Gets two maybe numbers and returns two valida numbers it throws if one or both are not a valid number the returned value is an array with the new values
function getNumbers (val1, val2) { const val1Numeric = Number(val1) if (isNaN(val1Numeric)) { throw new TypeError(`val1 is not a valid number: ${val1}`) } const val2Numeric = Number(val2) if (isNaN(val2Numeric)) { throw new TypeError(`val2 is not a valid number: ${val2}`) } return [val1Numeric, va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_num_value(value1, value2){\n var loc = value1;\n var search = /[0-9]/g;\n var result = loc.match(search);\n var result3 = \"\";\n for (var j = 0; j < result.length; j++){\n result3 = result3 + result[j];\n }\n\n if (typeof value2 !== \"undefined\"){\n var loc = value2;\n var search = /...
[ "0.6406167", "0.6369527", "0.6135981", "0.60890585", "0.585052", "0.5849923", "0.5844819", "0.58363426", "0.5783785", "0.57396996", "0.56144506", "0.55867445", "0.5576405", "0.5557655", "0.5497008", "0.54834604", "0.54703295", "0.54514813", "0.5445435", "0.54410887", "0.54400...
0.7105377
0
The unifier. Attempts to match two statements in corresponding environments. Updates one environment with information from the other if they do match. Inputs: s source statement senv source environment d destination statement denv destination environment. Updated with variable bindings if s does unify with d. Returns: ...
function unify(s, senv, d, denv, f) { if (typeof(trace) != 'undefined') document.writeln('UNIFY\n' + JSON.stringify(s) + '\nWITH\n' + JSON.stringify(d) + '\n'); //If source predicate is a variable if (isVar(s.pred)) { //evaluate it in the environment var sval = evaluate(s, senv); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disunify(u, v, mks) {\n var s = mks.substitution;\n var p = mks.prefix;\n var u1 = walk(u, s);\n var v1 = walk(v, s);\n if (varp(u1) && varp(v1) && vareq(u1, v1)) { return false; }\n else if (varp(u1)) { return ext_disequality(u1, v1, mks); }\n else if (varp(v1)) { return ext_disequal...
[ "0.50476027", "0.4851678", "0.4757678", "0.47315633", "0.4456358", "0.4423932", "0.43157887", "0.43027782", "0.42633012", "0.42008802", "0.4108609", "0.40798935", "0.40324423", "0.40249616", "0.40088987", "0.39928105", "0.39515397", "0.39174443", "0.39037356", "0.38952655", "...
0.7659787
0
Environment evaluator. Determines the value of an expression within an environment. If the expression is a term we just return the term. Inputs: t term to evaluate env environment of variable bindings Returns: The term with variables replaced, if they were found in the environment. Null otherwise. Outputs: none
function evaluate(t, env) { //If the predicate is a variable if (isVar(t.pred)) { //look up the variable in environment var a = env[t.pred]; //if the variable has a value, re-evaluate with the predicate variable replaced if (a != null) return evaluate(a, env); //ot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function evaluate(expr, env) {\n switch(expr.type) {\n case \"value\":\n return expr.value;\n \n case \"word\":\n if (expr.name in env)\n return env[expr.name];\n else\n throw new ReferenceError(\"Undefined variable: \" + expr.name);\n \n case \"apply\":\n if...
[ "0.6663343", "0.599194", "0.596807", "0.5907473", "0.5896482", "0.5886087", "0.5818162", "0.5583841", "0.5570875", "0.5550244", "0.55025256", "0.53726393", "0.53726393", "0.5269958", "0.5133554", "0.5129368", "0.50975204", "0.5082029", "0.50807756", "0.5060117", "0.5043226", ...
0.72786665
0
Helper: checks if a term is a variable (if it begins with '?'. Crappy.)
function isVar(s) { return s.charAt(0) == '?'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isVariable(term) {\n return !!term && term.termType === 'Variable';\n}", "function isVar(t) { return t[0] == '$'; }", "function isVar(substr){\n console.log(\"isVar\");\n return(/^[a-zA-Z]+$/.test(substr));\n}", "function isVar(t) {\n\t\tfor (var i = 0; i < varTable.length; i++) {\n\t\t\tif (...
[ "0.8189158", "0.75718266", "0.6622869", "0.647123", "0.64527047", "0.6442981", "0.6382996", "0.6368121", "0.6368121", "0.62886894", "0.62682384", "0.62600076", "0.6243912", "0.6220571", "0.6220571", "0.61469567", "0.60679495", "0.60437286", "0.6035737", "0.6019595", "0.597504...
0.7664053
1
Add head script link
function cjAddHeadScriptLink(link) { var st = document.createElement("script"); st.type = "text/javascript"; st.src = link; var ht = document.getElementsByTagName("head")[0]; ht.appendChild(st); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addScript(src) {\r\n\t var elem = document.createElement(\"script\");\r\n\t elem.src = src;\r\n\t document.head.appendChild(elem);\r\n\t}", "function addscript(){\n var footer = document.getElementById('footer');\n var tagScript = document.createElement('script');\n tagScript.src = \"//c.fqtag.com...
[ "0.7216512", "0.72052217", "0.7103701", "0.70215654", "0.6816493", "0.6780587", "0.66654754", "0.66444033", "0.6636579", "0.6636303", "0.66244835", "0.6598658", "0.65923387", "0.65881264", "0.6582409", "0.6566175", "0.65612096", "0.65123576", "0.64966893", "0.6493768", "0.649...
0.830518
0
Add head style link tag
function cjAddHeadStyleLink(linkHref) { var st = document.createElement("link"); st.rel = "stylesheet"; st.type = "text/css"; st.href = Source; var ht = document.getElementsByTagName("head")[0]; ht.appendChild(st); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjAddHeadStyle(styles) {\n var st = document.createElement(\"style\");\n st.type = \"text/css\";\n if (st.styleSheet) {\n st.styleSheet.cssText = styles;\n } else {\n st.appendChild(document.createTextNode(styles));\n }\n //st.innerHTML=styles;\n var ht = document.getEle...
[ "0.7243363", "0.7110775", "0.69676197", "0.6929412", "0.6910382", "0.6856709", "0.68454134", "0.68454134", "0.6705531", "0.6662238", "0.66566634", "0.66265804", "0.6567447", "0.6555189", "0.65472466", "0.6494212", "0.6485607", "0.64782804", "0.64765185", "0.64739496", "0.6450...
0.7827441
0
Add head style tag
function cjAddHeadStyle(styles) { var st = document.createElement("style"); st.type = "text/css"; if (st.styleSheet) { st.styleSheet.cssText = styles; } else { st.appendChild(document.createTextNode(styles)); } //st.innerHTML=styles; var ht = document.getElementsByTagName("he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addStyleToHead(css){\n\t\tvar head = document.head || document.getElementsByTagName('head')[0],\n\t\t\tstyle = document.createElement('style');\n\n\t\tstyle.type = 'text/css';\n\t\tif (style.styleSheet){\n\t\t\tstyle.styleSheet.cssText = css;\n\t\t} else {\n\t\t\tstyle.appendChild(document.createTextNode(css));\n\...
[ "0.7642067", "0.7641976", "0.76206744", "0.75952834", "0.75952834", "0.7455737", "0.7414543", "0.7301738", "0.7237057", "0.7208004", "0.7120429", "0.70880276", "0.7011172", "0.6966294", "0.696438", "0.6956578", "0.69540215", "0.6936631", "0.6932756", "0.69323134", "0.68970186...
0.79642546
0
Do NOT call directly, call as cj.ajax.url() should be cjAjaxURL() Perform an Ajax call to a URL, and push the results into the object with ID=DestinationID LocalURL is a URL on this site (/index.asp or index.asp?a=1 for instance) FormID is the ID of a form on this page that should be submitted with the call Destination...
function cjAjaxURL(LocalURL, FormID, DestinationID, onEmptyHideID, onEmptyShowID) { var xmlHttp, fo, i, url, serverResponse, el1, pos, ret, e; var eSelected = new Array(); try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjAjaxQs(QueryString, FormID, DestinationID, onEmptyHideID, onEmptyShowID) {\n var url;\n var pos;\n // create LocalURL\n url = document.URL;\n pos = url.indexOf(\"#\");\n if (pos != -1) { url = url.substr(0, pos) }\n pos = url.indexOf(\"?\");\n if (pos != -1) { url = url.substr(0,...
[ "0.6871253", "0.63258666", "0.6268883", "0.5974536", "0.59293336", "0.5891317", "0.56782645", "0.565524", "0.56470454", "0.5638569", "0.5600259", "0.560009", "0.55597126", "0.5532148", "0.5517677", "0.5511242", "0.54691595", "0.5457283", "0.545487", "0.5441464", "0.5440224", ...
0.7907347
0
Do NOT call directly, call as cj.ajax.addon() should be cjAjaxAddon() will be renamed Perform an Ajax call, and push the results into the object with ID=DestinationID AddonName is the name of the Ajax Addon to call serverside QueryString is to be added to the current URL less its querystring FormID is the ID of a form ...
function cjAjaxAddon(AddonName, QueryString, FormID, DestinationID, onEmptyHideID, onEmptyShowID) { // // compatibility mode // var url, pos; url = document.URL; pos = url.indexOf("#"); if (pos != -1) { url = url.substr(0, pos) } pos = url.indexOf("?"); if (pos != -1) { url = url.sub...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjAjaxURL(LocalURL, FormID, DestinationID, onEmptyHideID, onEmptyShowID) {\n var xmlHttp, fo, i, url, serverResponse, el1, pos, ret, e;\n var eSelected = new Array();\n try {\n // Firefox, Opera 8.0+, Safari\n xmlHttp = new XMLHttpRequest();\n } catch (e) {\n // Internet E...
[ "0.69065464", "0.6291928", "0.62713194", "0.60311526", "0.5891071", "0.5622404", "0.5508353", "0.54736066", "0.5468185", "0.54076606", "0.539903", "0.5390902", "0.5359212", "0.5357319", "0.5357038", "0.5331585", "0.5302401", "0.52996284", "0.52991694", "0.5298248", "0.5281623...
0.7944893
0
Do NOT call directly, call as cj.ajax.addonCallback() cjAjaxAddonCallback() Perform an Ajax call, and call a callback with the results AddonName is the name of the Ajax Addon to call serverside QueryString is to be added to the current URL less its querystring Callback is a javascript function to be called when the dat...
function cjAjaxAddonCallback(AddonName, QueryString, Callback, CallbackArg) { var xmlHttp, url, pos; try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjAjaxAddon(AddonName, QueryString, FormID, DestinationID, onEmptyHideID, onEmptyShowID) {\n //\n // compatibility mode\n //\n var url, pos;\n url = document.URL;\n pos = url.indexOf(\"#\");\n if (pos != -1) { url = url.substr(0, pos) }\n pos = url.indexOf(\"?\");\n if (pos != -...
[ "0.7233734", "0.7120925", "0.69363374", "0.69178504", "0.6466639", "0.63234204", "0.61579216", "0.61356854", "0.6030062", "0.59933656", "0.5983174", "0.5976581", "0.5962189", "0.59443873", "0.59275687", "0.5886198", "0.5818041", "0.5776553", "0.5770032", "0.575303", "0.574684...
0.79528207
0
Do NOT call directly, call as cj.ajax.qs() Perform an Ajax call, and push the results into the object with ID=DestinationID QueryString is to be added to the current URL less its querystring FormID is the ID of a form on this page that should be submitted with the call DestinationID is the ID of the DIV tag where the r...
function cjAjaxQs(QueryString, FormID, DestinationID, onEmptyHideID, onEmptyShowID) { var url; var pos; // create LocalURL url = document.URL; pos = url.indexOf("#"); if (pos != -1) { url = url.substr(0, pos) } pos = url.indexOf("?"); if (pos != -1) { url = url.substr(0, pos) } pos =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjAjaxURL(LocalURL, FormID, DestinationID, onEmptyHideID, onEmptyShowID) {\n var xmlHttp, fo, i, url, serverResponse, el1, pos, ret, e;\n var eSelected = new Array();\n try {\n // Firefox, Opera 8.0+, Safari\n xmlHttp = new XMLHttpRequest();\n } catch (e) {\n // Internet E...
[ "0.7157028", "0.60117805", "0.56561375", "0.5615787", "0.5585363", "0.5500898", "0.549689", "0.54816806", "0.54799914", "0.547973", "0.5478673", "0.5459451", "0.54579157", "0.54550827", "0.5440893", "0.54234713", "0.5412956", "0.54067814", "0.54051906", "0.5389638", "0.538439...
0.7720767
0
Do NOT call directly, call as cj.ajax.qsCallback() Perform an Ajax call, and on return, calls a callback routine QueryString is to be added to the current URL less its querystring
function cjAjaxQsCallback(QueryString, Callback, CallbackArg) { cjAjaxAddonCallback("", QueryString, Callback, CallbackArg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjAjaxQs(QueryString, FormID, DestinationID, onEmptyHideID, onEmptyShowID) {\n var url;\n var pos;\n // create LocalURL\n url = document.URL;\n pos = url.indexOf(\"#\");\n if (pos != -1) { url = url.substr(0, pos) }\n pos = url.indexOf(\"?\");\n if (pos != -1) { url = url.substr(0,...
[ "0.6885623", "0.62445366", "0.6030778", "0.598444", "0.5969097", "0.596658", "0.5937567", "0.5920355", "0.59173816", "0.5912269", "0.5874128", "0.58673173", "0.58143073", "0.57952005", "0.5794757", "0.57595575", "0.5758884", "0.5746801", "0.57369137", "0.57283807", "0.5704245...
0.77139944
0
cjAjaxGetTable runs cj.ajax.data with a "jsontable" responseFormat
function cjAjaxGetTable(handler, queryKey, args, pageSize, pageNumber) { return this.data(handler, queryKey, args, pageSize, pageNumber, "jsontable", "data") }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTableData() {\n $.ajax({\n type: \"GET\",\n url: \"/api\",\n dataType: \"JSON\",\n success: function (data) {\n let table = generateTable(data.data);\n $('#tableResult').html(table);\n }, error: function (data) {\n\n }\n });\n}", "...
[ "0.68008757", "0.6764091", "0.67454886", "0.6690582", "0.66845846", "0.6667435", "0.6559168", "0.6523293", "0.64404655", "0.63847923", "0.63800997", "0.6365346", "0.6321883", "0.62959623", "0.6268804", "0.6266712", "0.6251266", "0.62325984", "0.6217481", "0.62124395", "0.6207...
0.7425737
0
cjAjaxGetNameArray runs cj.ajax.data with a "namearray" responseFormat
function cjAjaxGetNameArray(handler, queryKey, args, pageSize, pageNumber) { return this.data(handler, queryKey, args, pageSize, pageNumber, "jsonnamearray", "data") }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNamesJS() {\n\treturn data.map(function(item){\n\t\treturn item.name\n\t});\n}", "function getArrayResponse_(endpoint_name, character, opt_headers, params, authed, page) {\n var data = getData_(endpoint_name, character, page, params, authed);\n\n var result = [];\n if (opt_headers === undefi...
[ "0.6247248", "0.5950733", "0.58586967", "0.57867986", "0.5706687", "0.5695584", "0.54422206", "0.5435742", "0.5397903", "0.5375024", "0.528896", "0.52808255", "0.5264979", "0.52158546", "0.52003133", "0.51878005", "0.5179874", "0.51699466", "0.514974", "0.5104474", "0.5094036...
0.76258147
0
cjAjaxGetNameValue runs cj.ajax.data with 1 row and a "namevalue" responseFormat
function cjAjaxGetNameValue(handler, queryKey, args) { return this.data(handler, queryKey, args, 1, 1, "jsonnamevalue", "data") }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get nameValue(){\n return this.record.data ? getFieldValue(this.record.data, NAME_FIELD) : '';\n }", "function cjAjaxGetNameArray(handler, queryKey, args, pageSize, pageNumber) {\n return this.data(handler, queryKey, args, pageSize, pageNumber, \"jsonnamearray\", \"data\")\n}", "function ajax_load...
[ "0.6409759", "0.6058533", "0.60479206", "0.60193354", "0.5812444", "0.5757251", "0.5721957", "0.571194", "0.5607217", "0.5605858", "0.5575488", "0.5487054", "0.547537", "0.54733914", "0.54432845", "0.5376258", "0.5353751", "0.5342942", "0.53428996", "0.53423023", "0.53342897"...
0.74276936
0
cjAjaxSetVisitProperty sets a visit property for the current visit
function cjAjaxSetVisitProperty(handler, propertyName, propertyValue) { return this.data(handler, "", escape(propertyName) + "=" + escape(propertyValue), 0, 0, "jsonnamevalue", "setvisitproperty") }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set property(){}", "@action\n setProp(property, newVal) {\n this.set(property, newVal);\n }", "function setGeneralProperty(path, value, member) {\n if (value === 'other') {\n handleNotes();\n }\n visitUI.setGeneralProperty({ path, value, member });\n }", "set visit(visitor){\n\n if...
[ "0.64988005", "0.6320157", "0.6012967", "0.5840428", "0.56405944", "0.5542588", "0.5404949", "0.53684145", "0.53152794", "0.52806133", "0.52722067", "0.52697235", "0.5246907", "0.5245646", "0.5196052", "0.5188889", "0.518056", "0.5139864", "0.5128437", "0.51261765", "0.512334...
0.7492028
0
cjAjaxGetVisitProperty gets a visit property for the current visit it is returned in jsonnamevalue format, so you use it like jo.PropertyName=PropertyValue
function cjAjaxGetVisitProperty(handler, propertyName, propertyValueDefault) { return this.data(handler, "", escape(propertyName) + "=" + escape(propertyValueDefault), 0, 0, "jsonnamevalue", "getvisitproperty") }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjAjaxSetVisitProperty(handler, propertyName, propertyValue) {\n return this.data(handler, \"\", escape(propertyName) + \"=\" + escape(propertyValue), 0, 0, \"jsonnamevalue\", \"setvisitproperty\")\n}", "get property(){}", "get(obj, propertyName) {\n // this get(a trap of proxy api) takes two ar...
[ "0.67615324", "0.6018747", "0.5825126", "0.5646805", "0.5644279", "0.55129284", "0.54757565", "0.5406809", "0.5388648", "0.5295348", "0.5217686", "0.5211642", "0.5211642", "0.5211642", "0.5211642", "0.52115595", "0.52059245", "0.5191831", "0.518466", "0.5175186", "0.5152454",...
0.7256244
0
cjAjaxUpdate Runs a Content Update query handler the routine called when the results return queryKey the key used to lookup the query (ccLib.getAjaxQueryKey) for this update criteria sql compatible criteria setPairs array of name=value pairs formatted as: setPair=[["name0","value0"],["name1","value1"],...] where names ...
function cjAjaxUpdate(handler, queryKey, criteria, setPairs) { var nameValue, argSet, args, x; argSet = ""; for (x = 0; x < setPairs.length; x++) { argSet += "&" + escape(setPairs[x][0]) + "=" + escape(setPairs[x][1]) } args = "criteria=" + escape(criteria) + "&setpairs=" + escape(argSet); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function proc_result_set(update_hash, doc) {\n for (var i in update_hash) {\n var elem = doc.$(i);\n\n if (elem != null)\n if (elem.tagName != \"INPUT\" && elem.tagName != \"SELECT\") {\n elem.innerHTML = update_hash[i];\n } else\n elem.value = u...
[ "0.55063367", "0.53637826", "0.5342608", "0.5238263", "0.52069294", "0.5190239", "0.51558995", "0.5138846", "0.51107347", "0.5089869", "0.50896716", "0.50891626", "0.50769144", "0.5055903", "0.5053819", "0.503845", "0.50314033", "0.5015383", "0.49889082", "0.49883193", "0.495...
0.77373093
0
cj.admin save all the field names that are empty into a targetField
function cjAdminSaveEmptyFieldList(targetFieldId) { var e = document.getElementById(targetFieldId); var c = document.getElementsByTagName("input"); for (i = 0; i < c.length; i++) { if (c[i].type == "checkbox") { if (c[i].checked == false) { e.value += c[i].name + "," ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function emptyFields(that){\r\n var source_id = $(that).attr('id');\r\n //list of fields to be emptied should given coma seperated\r\n var empty_to_fields = ($('#'+source_id).attr('empty_fields')).split(',');\r\n \r\n //setting all value blank\r\n for(var i=0 ; i< empty_to_fields.length ; i++){\r...
[ "0.68653774", "0.6575997", "0.61618173", "0.59746176", "0.59575033", "0.594215", "0.57925564", "0.57616085", "0.5738468", "0.5674137", "0.5670888", "0.56644726", "0.5645027", "0.5640405", "0.56391644", "0.56157875", "0.56003207", "0.5520818", "0.55070746", "0.5501877", "0.549...
0.69778395
0
cj.xml object perform common xml tasks cj.xml.loadString()
function cjXMLClass() { this.loadString = cjXMLLoadString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjXMLLoadString(txt) {\n if (typeof DOMParser != \"undefined\") {\n // Mozilla, Firefox, and related browsers \n return (new DOMParser()).parseFromString(text, \"application/xml\");\n } else if (typeof ActiveXObject != \"undefined\") {\n // Internet Explorer. \n var doc =...
[ "0.6558818", "0.6137867", "0.6100667", "0.60383505", "0.60156405", "0.60124344", "0.5921028", "0.5915021", "0.58894867", "0.58651507", "0.5810437", "0.5770904", "0.5762182", "0.5762182", "0.5650648", "0.56376296", "0.56376296", "0.5620141", "0.56189734", "0.55774015", "0.5536...
0.74121475
0
Do NOT call directly should be cj.remote() cj.method(options) options: "name": string addonname "formId": string html Id of form to be submitted "callback": function function to call on completion, two arguments, response and callbackArg "callbackArg": object passed direction to the callback function "destinationId": s...
function cjRemote(options) { var url, fo, ptr, e, ret, pos; if (options.url) { url = options.url; } else { url = document.URL; pos = url.indexOf("#"); if (pos != -1) { url = url.substr(0, pos) } pos = url.indexOf("?"); if (pos != -1) { url = url.substr(0, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cjAjaxAddon(AddonName, QueryString, FormID, DestinationID, onEmptyHideID, onEmptyShowID) {\n //\n // compatibility mode\n //\n var url, pos;\n url = document.URL;\n pos = url.indexOf(\"#\");\n if (pos != -1) { url = url.substr(0, pos) }\n pos = url.indexOf(\"?\");\n if (pos != -...
[ "0.6877892", "0.57066226", "0.5482147", "0.5361969", "0.53547275", "0.53516275", "0.5321614", "0.5269005", "0.5265847", "0.5265847", "0.5265847", "0.5264595", "0.5243842", "0.522993", "0.522993", "0.522993", "0.5218737", "0.5218737", "0.5214108", "0.51819885", "0.51700765", ...
0.716968
0
Return the key name that corresponds to a serial code
function getKeyNameFromSerialCode(aSerialCode) { for (i in KEY_DATA) { if (KEY_DATA[i].serialCode && KEY_DATA[i].serialCode == aSerialCode) { return i; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static key(code) {\r\n return Object.key(Keyboard.keys, code).toLowerCase(); \r\n }", "function getKey() {\n // Generación de clave\n var key = names.value.substring(0, 2);\n key += lastName.value.substring(0, 3);\n key += ID.value;\n key += birthDate.value.substring(8);\n key += birthDate.valu...
[ "0.7229362", "0.6708142", "0.65532196", "0.65532196", "0.65532196", "0.6365604", "0.6144366", "0.61353403", "0.59589684", "0.59549934", "0.5914153", "0.59055614", "0.5871622", "0.5864291", "0.58630544", "0.5860431", "0.5804927", "0.5791774", "0.57852435", "0.5769246", "0.5755...
0.81793314
0
Check if an address field is being changed. If so, we will need to send an email following an update.
function CheckForAddressChange(fldNbr) { // EMP-ADDR1, EMP-ADDR2, EMP-ADDR3, EMP-ADDR4, EMP-CITY, EMP-STATE, EMP-ZIP, EMP-COUNTY, EMP-COUNTRY-CODE if (fldNbr == 5 || fldNbr == 6 || fldNbr == 157 || fldNbr == 158 || fldNbr == 7 || fldNbr == 8 || fldNbr == 9 || fldNbr == 568 || fldNbr == 10) { Rules[_RULESINDEX].Add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async _shippingAddressChange(details) {\n // TODO: emit PaymentRequestUpdateEvent with new details and\n // await `updateWith` via web-request-rpc EventEmitter.promise primitive\n }", "function user_reminder_new_address() {\n //IF ALL FIELDS OF [NEW ADDRESS] ARE SET\n if ($('#new_street').val() != \...
[ "0.6570945", "0.6428828", "0.6342737", "0.62545085", "0.62431", "0.59723765", "0.59065515", "0.5893811", "0.5840188", "0.5826523", "0.5824349", "0.5819665", "0.5804436", "0.57705176", "0.5717656", "0.56699055", "0.56698644", "0.5656734", "0.5649305", "0.5643506", "0.56432635"...
0.6568741
1
Logic to retrieve reason codes by specific action. Valid for application release 9.0.1 or newer.
function GetReasonCodes() { _RULESINDEX = self.main.document.getElementById("actionsSelect").selectedIndex - 1; if (reasonCodes.length) Perform(reasonCodes); else { reasonCodes = new Array(); var object = new DMEObject(authUser.prodline,"PAACTREAS"); object.out = "JAVASCRIPT"; object.index = "creset3"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get actionReason () {\n\t\treturn this._actionReason;\n\t}", "function getActionCodeName(type) {\n switch(type) {\n case A_NONE: return 'none';\n case A_BURN: return 'burn';\n case A_CONVERT_1PW_1C: return '1pwto1c';\n case A_CONVERT_3PW_1W: return '3pwto1w';\n case A_CONVERT_5PW_1P: return '5pwt...
[ "0.66537863", "0.60356957", "0.5940694", "0.5789992", "0.5350892", "0.5347606", "0.5331297", "0.52933216", "0.5226819", "0.52172893", "0.5188556", "0.51811427", "0.51678306", "0.5116806", "0.5111681", "0.5107526", "0.5081422", "0.50690955", "0.50690955", "0.5050335", "0.50407...
0.755678
0
Require an action code to be selected prior to selecting a reason code.
function validateActionCode() { if (emssObjInstance.emssObj.filterSelect) { if (NonSpace(self.main.document.getElementById("actionsSelect").value) == 0) { setRequiredField(self.main.document.getElementById("actionsSelect"), getSeaPhrase("SELECT_PERSONNEL_ACTION","ESS")); return false; } else clear...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function preFlowAction$AttemptContact() {\n /* retrieve data */\n var unit = pega.ui.ClientCache.find('pyWorkPage.BCU.SelectedUnitPage');\n var contactMade = unit.get('AttemptContactYesNo') ? unit.get('AttemptContactYesNo').getValue() : \"\"; \n\n /* Check if the AttemptContactYesNo property exists in memory w...
[ "0.5258262", "0.5163874", "0.51602554", "0.515582", "0.51015675", "0.5084852", "0.5084627", "0.505136", "0.50497323", "0.5036636", "0.50337225", "0.5018527", "0.5005099", "0.4989627", "0.49891675", "0.4977899", "0.4975114", "0.49730474", "0.49516279", "0.49455327", "0.4941515...
0.65181214
0
The next two functions handle parsing of userentered comments. Parse the userentered review comment text and prepare it for update on PA56. Append each line to the global CommentDtlLines array. It is assumed that the commentText parameter is an unescaped string.
function ParseCommentText(commentText) { // If the literal text %0A or %0D is found in the unescaped comment text, replace each with escaped literal characters. If we don't do this, when inquiring on this data, // the Javascript output from DME will insert a carriage return before ending the string, causing an 'unt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ChunkUpCommentString(commentText) \n{\n\t// Keep a count of what character we are at as we break up the comments string into lines for update on PA56.\n\tvar charCnt = 0;\n\tif (commentText == \"\") \n\t{\n\t\tCommentDtlLines[CommentDtlLines.length] = \"\";\n\t\treturn;\n\t}\n\twhile (charCnt < commentTex...
[ "0.7261702", "0.67567277", "0.62105167", "0.61214256", "0.5958846", "0.5949298", "0.5777927", "0.5751463", "0.5739757", "0.5631442", "0.562507", "0.561885", "0.56160516", "0.5579424", "0.55727315", "0.5538791", "0.55346495", "0.55286014", "0.54776824", "0.5474215", "0.5461131...
0.74484503
0
Chunk up the parameter string into lines which are the right size for PA56. Check to see if the string is less than a full PA56 line size. If it is, or the string takes up the full PA56 line and contains no white space, then add it as it is. Otherwise, trim the string at the word before the last space character. If the...
function ChunkUpCommentString(commentText) { // Keep a count of what character we are at as we break up the comments string into lines for update on PA56. var charCnt = 0; if (commentText == "") { CommentDtlLines[CommentDtlLines.length] = ""; return; } while (charCnt < commentText.length) { var truncate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wrapAfter40Chars(str) {\n let line = str.length;\n let i = 0;\n let maxChar = 40;\n while (line > maxChar) {\n line = line - maxChar;\n i = i + maxChar;\n str = str.substring(0, maxChar) + \"\\n\" + str.substring(maxChar);\n }\n return str;\n}", "function stringParse(string) {\n let re...
[ "0.5422693", "0.5389877", "0.5263018", "0.5255214", "0.5080846", "0.50320786", "0.5026875", "0.5022845", "0.5021984", "0.50051886", "0.50038964", "0.4977317", "0.4966651", "0.49439767", "0.48948216", "0.48852298", "0.4874164", "0.48724744", "0.48659298", "0.48659298", "0.4840...
0.6301566
0
Description: This file contains all relevant functions for sending email. TODO_AJR There is a flag in the grades sheet about whether a student has been emailed yet. So could use this rather than shortening the email loop. TODO_AJR Look for other menu handlers that can be nested. TODO_AJR some of the local vars in sendE...
function doShareGrades() { Debug.info("doShareGrades()"); var ss = SpreadsheetApp.getActiveSpreadsheet(); var dp = PropertiesService.getDocumentProperties(); var up = PropertiesService.getUserProperties(); // The object representing the grades sheet. // The send emails ui. var app = UiApp.getAc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function menuShareGrades()\n{\n Debug.info(\"menuShareGrades()\");\n \n var ss = SpreadsheetApp.getActiveSpreadsheet();\n\n // Housecleaning. Set this to false anytime a user explicitly chooses to grade\n // the assignment. It could be left set if a user quit prematurely while\n // setting autograde options,...
[ "0.7262205", "0.6648355", "0.6530048", "0.6511197", "0.6406776", "0.6250754", "0.6193631", "0.6124128", "0.6106692", "0.6067128", "0.6056719", "0.60302216", "0.60193", "0.6005844", "0.59354216", "0.590126", "0.5854906", "0.5848944", "0.58472437", "0.5837066", "0.58248466", ...
0.6926607
1
menuShareGrades Menu event handler.
function menuShareGrades() { Debug.info("menuShareGrades()"); var ss = SpreadsheetApp.getActiveSpreadsheet(); // Housecleaning. Set this to false anytime a user explicitly chooses to grade // the assignment. It could be left set if a user quit prematurely while // setting autograde options, which could in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggle_sharing_menu(e){\n clickSound.play();\n\n if (sharing_menu_state == 1){\n $('#menu_partage').animate(\n {\n height: '0'\n },\n function(){\n $('#menu_partage').hide();\n }\n );\n \n sharing_menu_state = 0;\n }\n else if (sharing_menu_state == 0){\n ...
[ "0.568446", "0.5624387", "0.5619843", "0.5600304", "0.5408257", "0.5394471", "0.535632", "0.5315394", "0.5311361", "0.5302108", "0.5268145", "0.5258338", "0.5257328", "0.5250645", "0.5238415", "0.5142672", "0.51304626", "0.5123306", "0.5083285", "0.5080479", "0.50441486", "...
0.6272126
0
menuPrintGrades Menu event handler.
function menuPrintGrades() { Debug.info("menuPrintGrades()"); var ss = SpreadsheetApp.getActiveSpreadsheet(); // Check there is a grades sheet. var grades_sheet = getSheetWithGrades(ss); if (!grades_sheet) { UI.msgBox(langstr("FLB_STR_NOTIFICATION"), langstr("FLB_STR_CANNO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function printMenu() {\n console.log(\"\\n<====== PENDAFATARAN SISWA BARU ======>\");\n console.log(\"<====== SMKN 1 RPL ======>\");\n console.log(\"\\n<====== Menu ======>\");\n console.log(\"1. Registrasi\");\n console.log(\"2. Input Nilai\");\n console.log(\"3. Lihat Profil\");\n ...
[ "0.5780319", "0.5667241", "0.54569286", "0.53210354", "0.5308128", "0.5250851", "0.52342767", "0.52294797", "0.5224886", "0.5222606", "0.52032465", "0.5198642", "0.5183041", "0.5164503", "0.51615226", "0.5146928", "0.5126946", "0.5121904", "0.51203555", "0.5116931", "0.511628...
0.6647268
0
function to get YouTube Video based on Song and Artist selected as keywords
function getYTVideo() { var ytAPI = "AIzaSyBglfIEbCdN-ZisKCm9RqzCqPKWDIKViAY" var input = song + " " + artist console.log(input); var ytURL = "https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=3&q=" + input + "&type=video&key=" + ytAPI $.ajax({ url: ytURL, me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function search() {\n var q = $('#query').val();\n var request = gapi.client.youtube.search.list({\n q: q,\n part: 'snippet',\n type: 'video'\n });\n\n request.execute(function(response) {\n var id = response.result.items[0].id.videoId;\n var title = response.result.items[0].snippet.title;\n ...
[ "0.702483", "0.6917798", "0.6898207", "0.68501204", "0.6799233", "0.67954284", "0.67954284", "0.67954284", "0.67597437", "0.6740657", "0.67014045", "0.66863656", "0.6665273", "0.6650601", "0.66358894", "0.6624486", "0.6607897", "0.6579632", "0.65531856", "0.6541272", "0.65297...
0.7221708
0
add function to retrieve upcoming events from ticketmaster API for artist
function showEvents() { var queryURL2 = "https://app.ticketmaster.com/discovery/v1/events.json?keyword=" + artist + "&apikey=e24yU8pGFGdyS4VeZAsidGfIG7yZwce1"; $.ajax({ url: queryURL2, method: "GET", }).then(function (response) { $("#upcoming-events").text("Upcoming Events for ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function getEvents(artist, zip) {\n const url = `https://app.ticketmaster.com/discovery/v2/events.json?keyword=${artist}&city=${zip}&apikey=3FhkqehgsJxNsLTInDmAyq0Oo7Vzj5j5`;\n const encode = encodeURI(url);\n const response = await fetch(encode);\n const data = await response.json();\n let eventData = ...
[ "0.73395085", "0.6634059", "0.66324836", "0.66081905", "0.6581672", "0.6526636", "0.65246856", "0.6463101", "0.64300895", "0.64125264", "0.6411974", "0.64026874", "0.63904244", "0.6381551", "0.63800323", "0.63728154", "0.6364135", "0.6361859", "0.6356351", "0.63496697", "0.63...
0.688258
1
This nested function finds any child elements of e that have a data attribute. It treats that attribute as an XPath expression and evaluates it in the context of datanode. It takes the text value of the XPath result and makes it the content of the HTML node being expanded. All other content is deleted
function expand(e, datanode, namespaces) { for (var c = e.firstChild; c != null; c = c.nextSibling) { if (c.nodeType != 1) { continue; } var dataexpr = c.getAttribute("data"); if (dataexpr) { // Evaluate ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cleanData(node) {\n element.cleanData([node]);\n if (isParentNode(node)) {\n element.cleanData(node.querySelectorAll('*'));\n }\n}", "function fillElements( data ) {\n const nodes = Array.from( document.querySelectorAll('[data-path]') );\n for( const node of nodes ) {\n const ...
[ "0.56165713", "0.5359864", "0.51439375", "0.50902355", "0.5066996", "0.5032237", "0.5032237", "0.5032237", "0.5032237", "0.5032237", "0.5032237", "0.5032237", "0.5032237", "0.5032237", "0.50126123", "0.4998257", "0.49917975", "0.49896845", "0.49893674", "0.49712408", "0.49678...
0.7240614
0
Toogles the display of chatbox by changing the margin
function chatToggle(){ if(!chatOut){ chatBox.style.margin = "0"; var e = document.getElementById("openS"); e.style.display = "none"; var e = document.getElementById("closeS"); e.style.display = "block"; } else{ chatBox.style.margin = "0 0 -420px 0"; var e = document.getElemen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showGroupChat(event)\n{\n $(app.GROUP_CHAT_SHOW).stop(true);\n $(app.GROUP_CHAT_SHOW).hide();\n $(app.GROUP_CHAT_SHOW).css(\"opacity\", \"1\");\n $(app.GROUP_CHAT).css({\"visibility\": \"visible\", \"left\": \"0px\"});\n $(app.GROUP_CHAT_IN).focus();\n}", "function openChat() {\n //document.getEl...
[ "0.6706704", "0.6589703", "0.6455512", "0.6369615", "0.63301075", "0.6277235", "0.6225983", "0.6168392", "0.6142062", "0.6126691", "0.6062457", "0.6000354", "0.5971026", "0.59699684", "0.5962237", "0.59598583", "0.59257483", "0.5881476", "0.5857489", "0.58572584", "0.58471084...
0.68452555
0
Example For a = "99" and b = "99", the output should be sumOfStrings(a, b) = "1818". The sums of both, the first and the second numbers are 18, so the answer is 1818. For a = "11" and b = "9", the output should be sumOfStrings(a, b) = "110". The sum of the first numbers from the end is 10, and the sum of the second num...
function sumOfStrings(a, b) { let strA = a.toString().split("").reverse().join(""); let strB = b.toString().split("").reverse().join(""); var sumCount = []; var countArr = {}; var isCarry = 0; let isFirstLong = strA.length < strB.length ? false : true; let numberDigits = isFirstLong ? strB.length : strA.length...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sumStrings(a, b) {\n let portionA = a === '' ? ['0'] : a.split('').reverse(),\n portionB = b === '' ? ['0'] : b.split('').reverse(),\n result = [],\n upOne = 0,\n numA,\n numB\n\n if (portionB.length > portionA.length) {\n const changing = portionB\n portionB = portionA\n portion...
[ "0.8583365", "0.82538277", "0.8128474", "0.80896616", "0.8076633", "0.76917505", "0.73710597", "0.7231061", "0.7206513", "0.7122867", "0.7121608", "0.6977268", "0.69393617", "0.6899129", "0.6839833", "0.68089306", "0.6758422", "0.67486733", "0.6744303", "0.6743106", "0.669202...
0.8626533
0
Generate buttons from 'selections' object
function generateBtns() { for (i = 0; i < selectionsKeys.length; i++) { var btn = document.createElement('button') btn.type = 'button' btn.id = selectionsKeys[i] btn.innerText = selectionsKeys[i] btn.className = 'btn' btnWrapper.appendChild(btn) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function questionsAnswers (arr) {\n for (i = 0; i < arr.length; i++) {\n var button = $(\"<button>\");;\n button.text(arr[i]);\n button.addClass(\"button\");\n button.attr({\"selection\": arr[i]});\n $(\"#choices\").append(button);\n \n }\...
[ "0.6988617", "0.6754056", "0.6549344", "0.64831424", "0.64051926", "0.63735217", "0.6368859", "0.6334337", "0.62758994", "0.62633836", "0.62365484", "0.6227369", "0.6220845", "0.621793", "0.62076825", "0.61917746", "0.61722", "0.6167129", "0.614425", "0.6142966", "0.6119683",...
0.6830978
1
We don't use remark's API because it behaves differently than the CLI
function remark(args) { const pkg = require(remarkCliPkgPath); const cliPath = require.resolve( resolve(dirname(remarkCliPkgPath), pkg.bin["remark"]) ); process.argv.push(...args); require(cliPath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init() {\n console.log(\"Starting the program ........\"); \n inquirer.prompt(questions)\n .then(response => {\n console.log(\"user answers\", response); \n //convert int oa redme friendly format \n // console.log(generateMarkdown(response));\n writeToFile(\"SampleRea...
[ "0.5771708", "0.5699908", "0.56003255", "0.5597333", "0.54546696", "0.5442257", "0.54394025", "0.54056686", "0.5382611", "0.5361051", "0.5360222", "0.5357558", "0.5356319", "0.5287857", "0.5258932", "0.5252005", "0.5243792", "0.5233657", "0.522498", "0.5218458", "0.5215954", ...
0.6593968
0
attribute to get player javascript instance
get player () { return videojs(this.playerId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createPlayer() {\n window.player = new Player(); \n}", "get WindowsPlayer() {}", "get TizenPlayer() {}", "load_player() {\n this.player = this.cookie.get(this.cookie_board_player);\n return this.player;\n }", "get SamsungTVPlayer() {}", "function GetPlayer()\n{\n\treturn docu...
[ "0.73027384", "0.7106921", "0.7100591", "0.7058907", "0.69278663", "0.6799985", "0.67573375", "0.67421675", "0.66256475", "0.66063905", "0.65946895", "0.65930307", "0.65565056", "0.6554408", "0.6530713", "0.64752495", "0.64690495", "0.6438937", "0.6434355", "0.64148617", "0.6...
0.8032088
0
attribute to get player current time
get currentTime () { return this.player.currentTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getPlayTime() {\n return this.time;\n }", "get time () {\n\t\treturn this._time;\n\t}", "get time() {\n return this._time;\n }", "getTime(){return this.time;}", "function getCurrentTime() {\n var currentTime = editor.player.prop(\"currentTime\");\n currentTime = isNaN(currentTime) ? 0 :...
[ "0.7538593", "0.7447157", "0.74246454", "0.73988557", "0.73078835", "0.71949667", "0.7187907", "0.71547055", "0.71455115", "0.70764357", "0.7064704", "0.7044696", "0.7027396", "0.7026905", "0.70214045", "0.70109457", "0.70091903", "0.6996072", "0.6991072", "0.69518256", "0.69...
0.7794195
0
set current time of player
set currentTime (time) { this.player.currentTime(time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateTime(time) {\n domVideo.currentTime = time;\n}", "function setPlayTime(t) {\n console.log(\"setPlayTime \" + t);\n pano.setPlayTime(t);\n if (PC)\n PC.sendMessage({ 'type': 'pano.control', time: t });\n}", "seekToTime(time) {\n this.videoPlayer.currentTime(time);\n }", "fu...
[ "0.73407245", "0.7169014", "0.7042572", "0.70055705", "0.69221294", "0.6907097", "0.68986005", "0.68302494", "0.6826903", "0.6804942", "0.6764101", "0.6753959", "0.6750682", "0.67349833", "0.6694939", "0.66879755", "0.66748697", "0.6648849", "0.6648849", "0.6643874", "0.66321...
0.82004976
0
Outputs to the password textbox
function UserInput(output) { document.getElementById("password").passwordText = output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writePassword() {\n var password = generatePassword();\n \n\n passwordText.value = password;\n}", "function writePassword() {\n var password = getPasswordOptions();\n var passwordText = document.querySelector('#password');\n \n passwordText.value = password;\n }", "function writePassword...
[ "0.8113225", "0.80899316", "0.805936", "0.80386436", "0.80255246", "0.8001562", "0.799184", "0.79887116", "0.79794043", "0.7968308", "0.79563856", "0.7953704", "0.7948457", "0.7948229", "0.79481035", "0.7946544", "0.7932009", "0.7932009", "0.7932009", "0.7932009", "0.7929801"...
0.81218123
0
Associate a chart instance with the extension. The chart instance will be acted upon by the extension instance.
setChart(chart) { // Prevent setting chart more than once. if (this.chart && this.chart !== chart) { throw new MonteError('An extension should only have the chart set once.'); } this.chart = chart; const layerName = this.tryInvoke(this.opts.layer); if (layerName) { this.layer = this.char...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ExtensionAPI(chartInstance) {\n zrUtil.each(echartsAPIList, function (name) {\n this[name] = zrUtil.bind(chartInstance[name], chartInstance);\n }, this);\n }", "function ExtensionAPI(chartInstance) {\n zrUtil.each(echartsAPIList, function (name) {\n this[nam...
[ "0.5942355", "0.5942355", "0.5904785", "0.58828074", "0.58828074", "0.58828074", "0.58828074", "0.58828074", "0.58828074", "0.58828074", "0.58828074", "0.58719456", "0.57983434", "0.5759189", "0.5577046", "0.54884946", "0.54884946", "0.5431", "0.5430043", "0.54286414", "0.531...
0.6525962
0
Indicates whether an option change should cause an update to occur.
_shouldOptionUpdate(prop) { // eslint-disable-line no-unused-vars return this.opts.optionsTriggerUpdate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_optionChanged(...args) {\n const prop = args[0];\n const optionMethodName = `_option${pascalCase(prop)}`;\n\n this.__notify(EV.BEFORE_OPTION_CHANGE, prop);\n\n if (this[optionMethodName]) {\n this[optionMethodName]();\n }\n else {\n this.update(...args);\n }\n\n this.__notify(EV....
[ "0.6488793", "0.62591714", "0.6156226", "0.61532396", "0.61306715", "0.6101255", "0.6101255", "0.6101255", "0.6093907", "0.6074385", "0.60714775", "0.60517305", "0.6040327", "0.59892595", "0.59854716", "0.59219193", "0.5900315", "0.58781403", "0.5867719", "0.58534056", "0.583...
0.7995403
0
Invoke `_boundsUpdate` if defined.
updateBounds(...args) { if (this._boundsUpdate) { this.__notify(EV.BEFORE_BOUNDS_UPDATE); this._boundsUpdate(...args); this.__notify(EV.BOUNDS_UPDATED); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateBounds() {\n this.bounds = getBounds(this);\n }", "function update() {\n updatePosition();\n checkBounds();\n }", "OnRebuildBounds()\n {\n sph3.fromMat4(this._boundingSphere, this._localTransform);\n box3.fromSph3(this._boundingBox, this._boundingSphere);\n ...
[ "0.7012825", "0.6938548", "0.6456421", "0.63533545", "0.6269112", "0.6108365", "0.5921295", "0.5905727", "0.5895446", "0.5830979", "0.5705949", "0.5686276", "0.5663644", "0.56465596", "0.5629778", "0.56195104", "0.56173867", "0.5613958", "0.55998725", "0.5596187", "0.5576682"...
0.746891
0
Invoke the method related directly to the option (`_option`) if defined; otherwise invoke the extension updatecycle.
_optionChanged(...args) { const prop = args[0]; const optionMethodName = `_option${pascalCase(prop)}`; this.__notify(EV.BEFORE_OPTION_CHANGE, prop); if (this[optionMethodName]) { this[optionMethodName](); } else { this.update(...args); } this.__notify(EV.OPTION_CHANGED, pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "optionsUpdateHook() { }", "_shouldOptionUpdate(prop) { // eslint-disable-line no-unused-vars\n return this.opts.optionsTriggerUpdate;\n }", "_callHandler() {\n let args = [].slice.call( arguments );\n let name = args.length ? args.shift() : '';\n\n if ( name && typeof this._options[ name ] === 'fu...
[ "0.6337073", "0.58896875", "0.58399534", "0.56922764", "0.5667033", "0.5667033", "0.5667033", "0.55696803", "0.55482805", "0.54083604", "0.53924024", "0.53559893", "0.5351632", "0.53374195", "0.5334514", "0.5305002", "0.52766246", "0.52614665", "0.52388", "0.5234911", "0.5228...
0.6823673
0
exec which throw error on nonzero exit code
function exec(cmd, options) { var res = shell.exec(cmd); if (res.code !== 0) throw new Error('Non-zero exit code: ' + res.code); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exec() {\n var defer = q.defer();\n cp.exec(this, function(err, stdout, stderr) {\n if (err) console.log('exec err: '+ err);\n console.log(stdout);\n defer.resolve(err)\n })\n return defer.promise;\n}", "function execReturn(command) {\n try {\n return execSync(comman...
[ "0.6132937", "0.60437155", "0.5886325", "0.5818901", "0.5645614", "0.5641076", "0.5579434", "0.5559756", "0.55129087", "0.55085164", "0.5500309", "0.54885536", "0.54426235", "0.54308707", "0.54261464", "0.5398931", "0.5398401", "0.53922415", "0.534556", "0.53438187", "0.53182...
0.63233703
0
This tries to find an appropriate target for trackballing The first choice is the intersect with geometry direction inline with camera center. If there is none, a point 100 units in front of camera is used.
getTarget() { //console.log("getTarget"); var isect = this.raycast(0,0); if (isect) { //console.log("setting target from intersect"); var target = isect.point; var d = this.getCamPos().distanceTo(target); if (d < this.maxTrackballDistance) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findTarget()\r\n {\r\n if (!active)\r\n {\r\n return;\r\n }\r\n var targetType = componentType.duck;\r\n target = grid.getActorsInRadius(duckling.position, callRadius, targetType)[0];\r\n }", "function findPlaneIntersect(mouseX, mouseY, mvPickMatrix, n...
[ "0.5979556", "0.59193504", "0.5840222", "0.57060844", "0.5645038", "0.5613846", "0.5608914", "0.55825704", "0.55386156", "0.55386156", "0.5501985", "0.549213", "0.5472272", "0.54556817", "0.54492885", "0.54400104", "0.5437535", "0.54367197", "0.5434672", "0.54324216", "0.5396...
0.70309037
0
Get camera forward direction (direction it is looking) in world coordinates.
getCamForward() { return this.game.camera.getWorldDirection(); /* var cam = this.game.camera; var vL = new THREE.Vector3(0,0,-1); var vW = vL.applyMatrix4(cam.matrixWorld); vW.sub(cam.position).normalize(); return vW; */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_my_direction() {\n var v, dir;\n\n v = new THREE.Vector3(0,0,-1);\n //v = WORLD.camera.matrixWorld.multiplyVector3(v); // r54\n v.applyMatrix4(WORLD.camera.matrixWorld); // r58\n\n //dir.sub(v).setLength(BULLET_VELOCITY); // r58\n dir = new THREE.Vector3(0,0,0);\n dir.copy(WORLD.p...
[ "0.71100867", "0.70227444", "0.68401855", "0.6514449", "0.648076", "0.6475676", "0.6147402", "0.6098064", "0.60499835", "0.59198296", "0.5915485", "0.58876634", "0.5882251", "0.5882251", "0.58331686", "0.5815351", "0.5809617", "0.57616794", "0.56907594", "0.5675186", "0.56207...
0.7957348
0
Return vector of given length in direction specified by spherical coordinates theta,phi.
getVec(theta, phi, d) { d = d || 1.0; theta = Math.PI/2 - theta; var v = new THREE.Vector3(); v.x = d * Math.sin( phi ) * Math.cos( theta ); v.y = d * Math.cos( phi ); v.z = d * Math.sin( phi ) * Math.sin( theta ); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static getVecFromRadians( phi ) {\n\t\tphi -= Math.PI / 2;\n\t\treturn new Vec2D(Math.cos(phi), Math.sin(phi));\n\t}", "getVecRotation( phi ) {\n\t\tif(this.x == 0 && this.y == 0) return new Vec2D(0, 0); //special case\n\t\tvar c = Math.cos(phi);\n\t\tvar s = Math.sin(phi);\n\t\tvar x = this.x * c - this.y * s;\...
[ "0.6686013", "0.6114264", "0.61033046", "0.58196497", "0.5796302", "0.5659331", "0.55359495", "0.55019444", "0.5471298", "0.54616594", "0.5450977", "0.5432981", "0.5427866", "0.5423041", "0.5423041", "0.5414231", "0.5414231", "0.5412822", "0.5400563", "0.5379777", "0.5374874"...
0.71312356
0
virus total connect and report from VIRUS TOTAL API
function virusTotalAPI(urllink){ URL = "https://www.virustotal.com/vtapi/v2/url/report?apikey=0d290ee2f641ce2e72eae2abf94b8032127818a185398d39e4a1379e9a1172fd&resource="+ urllink; $.ajax({ type: "GET", url: URL, success: reportToString, dataType: "json", }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNbVaccinsParVirus(callback){\n try{\n getConnection(function(connection){\n connection.query(\"SELECT virus.nom ,count(*) as nb_vaccin FROM vaccin INNER JOIN virus ON virus.id = vaccin.virus_id GROUP BY virus.nom\", function (error, results, fields){\n connection.end...
[ "0.5847864", "0.5476718", "0.5423572", "0.5328249", "0.5320347", "0.5217113", "0.5202781", "0.5196134", "0.5189019", "0.5182444", "0.51491845", "0.50437695", "0.50388914", "0.5019399", "0.50163037", "0.5012547", "0.50069755", "0.4997911", "0.49463904", "0.4935676", "0.4933983...
0.7155066
0
\\ MAIN FUNCTION \\ \\ a main function to produce security report on a given url
function produceReport(){ // this is were most functions are called userURL = getuserURL(); // add this into the website vertifyHttps(userURL); // check if the url is http/s googleSafeBrowsingAPI(userURL); virusTotalAPI(userURL); apilityCheck(userURL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateAbuseReport(scam) {\n let abusereport = \"\";\n abusereport += \"I would like to inform you of suspicious activities at the domain \" + url.parse(scam['url']).hostname;\n if ('ip' in scam) {\n abusereport += \" located at IP address \" + scam['ip'] + \".\";\n } else {\n a...
[ "0.5951161", "0.5543208", "0.5490576", "0.5423598", "0.5417127", "0.54134285", "0.5355294", "0.5350948", "0.53505963", "0.53247607", "0.5321877", "0.5273236", "0.5260235", "0.5214135", "0.5208398", "0.51636004", "0.51617855", "0.5156987", "0.5119942", "0.5090304", "0.5082426"...
0.76653415
0
Check rules are setup correctly, if a rule has a checkRule function
__checkRules(){ let keys = Object.keys(this.rules); for (let i=0; i<keys.length; i+=1){ let name = keys[i]; let ruleDef = Validator.ruleLibary[name]; // Check this rule exists first //if (!ruleDef){ // throw new Error(`Rule $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "verifyRules()\r\n {\r\n for (let rule of RULES) {\r\n for (let entry of this.app.entries()) {\r\n rule(this, entry);\r\n }\r\n }\r\n }", "isRule(type) { return this.rule(type)!=null }", "function setup(useRules, listener, reporter) {\n useRules = useR...
[ "0.68062896", "0.6648583", "0.63902247", "0.62891513", "0.6278621", "0.62578785", "0.6249336", "0.6213612", "0.6202604", "0.618159", "0.61500525", "0.61013335", "0.60102355", "0.60014963", "0.5952472", "0.5935496", "0.5927655", "0.5918804", "0.5915337", "0.5915337", "0.586447...
0.8078616
0
apos a exclusao das linhas inseridas por um crud o sistema atualiza as estatisticas de forma global
function atualizaEstatisticas() { zeraTabelaEstatisticas(); var tbl = ['ALI', 'AIE', 'EE', 'SE', 'CE', 'EE', 'OU']; var objPF = { "ALIPFa": Number(0), "ALIPFb": Number(0), "ALIDes": Number(0), "ALIQtd": Number(0), "AIEPFa": Number(0), "AIEPFb": Number(0), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function appSetupCreateTables() {\n\n var promiceCreateEmployees = createEmployeeTable(queries.Employees);\n var promiceCreateExperiences = createEmployeeTable(queries.Experiences);\n var promiceCreateBloodGroups = createEmployeeTable(queries.BloodGroups);\n var promiceCreateGenders = c...
[ "0.564426", "0.56150514", "0.5591064", "0.5560588", "0.5558638", "0.5527769", "0.5523748", "0.5478043", "0.5475816", "0.54462343", "0.5425305", "0.54242444", "0.5416916", "0.54061484", "0.54060984", "0.53990996", "0.53745973", "0.5371479", "0.53692454", "0.5356656", "0.535482...
0.5902917
0
funcao que altera a produtividade
function alteraEscalaProdutividade(p) { switch (p) { case 'baixa': $('#escala-baixa').removeClass('btn-default').removeClass('btn-success').addClass('btn-success'); $('#escala-media').removeClass('btn-default').removeClass('btn-success').addClass('btn-default'); $('#escal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateProductFn() {\n if (ctrl.product === null)\n return;\n\n if (ctrl.product.categories !== null || ctrl.product.categories !== undefined ||\n ctrl.product.categories.length !== 0 )\n delete ctrl.product.categories;\n\n delet...
[ "0.6182994", "0.61762506", "0.6091325", "0.6090822", "0.6039803", "0.5958845", "0.5838656", "0.57846576", "0.5757283", "0.5731745", "0.57267153", "0.5630432", "0.56219417", "0.5580065", "0.55284256", "0.55205816", "0.55182123", "0.5514771", "0.5505149", "0.54992104", "0.54818...
0.63374865
0
seleciona as linhas para validacao t = tabela b = boolean (true ou false) ... selecionar/retirar selecao quando o SEQ for clicado
function selecionaLinhasValidacao(t, b) { // entrou aqui limpa tudo zeraArrayValida(t); zeraLinhasSelecionadas(t); var seq = 1; var linha = 1; if ($(b).prop('checked')) { // inserindo a selecao $("#fix" + t + " tr:gt(0)").each(function () { if (!($(this).hasClass('tr-selecion...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Bloqueia_Linhas(actpos,div){\n\t//BLOQUEIA AS LINHAS MENOS A LINHA QUE ESTOU EDITANDO\n\t$(div + ' input').attr('disabled',true);\n\t//DESBLOQUEIA OS INPUTS DA LINHA QUE EU ESTOU EDITANDO, POREM NAO DESABILITA OS QUE TEM A CLASSE INATIVO\n\t$(div + \" tr[posicao=\"+actpos+\"] td input\").attr('disabled',f...
[ "0.5984616", "0.5839404", "0.5698303", "0.5690065", "0.5654001", "0.5610676", "0.56018144", "0.5585927", "0.557331", "0.5572193", "0.55693823", "0.5552997", "0.55525714", "0.5544314", "0.54990005", "0.548204", "0.5480487", "0.54598564", "0.5455636", "0.54546195", "0.5453501",...
0.77424127
0
injecting http service to categoryService, return type of all httpClient methods are observable events of the observable are listened using subscribe method when we receive data, onNext() is triggered
function CategoryService(http) { this.http = http; this.restURL = "http://localhost:3000/wscategories"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ctrlFunc(categoriesService) {\n const vm=this;\n vm.categorieItems = categoriesService.getCategories();\n // categoriesService.getCategories()\n // .on('data',(d)=>{\n // console.log(\"d\",d);\n // vm.categorieItems = d;\n // })\n // .on('error', (e) => {...
[ "0.6248272", "0.6010959", "0.596244", "0.59390026", "0.590235", "0.57821685", "0.57801133", "0.5764496", "0.5764496", "0.57547337", "0.56566834", "0.55702746", "0.5557193", "0.5465994", "0.5464629", "0.5461275", "0.545499", "0.54487294", "0.54393494", "0.54389864", "0.5436165...
0.72606283
0
remove active class from all links add hidden class to all addressdetails
function removeAll () { addressesLinks.forEach(function(link){ link.classList.remove('active'); }); addressDetailsBlocks.forEach(function(block){ if (!block.classList.contains('js-current')){ block.classList.add('hidden'); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggleHidden (event) {\n\n var address = this;\n var addressDetails = this.nextElementSibling;\n\n addressDetails.classList.add('js-current');\n\n event.preventDefault();\n\n\n removeAll();\n\n address.classList.toggle('active');\n addressDetails.classList.toggle('hidden');\n addre...
[ "0.6823681", "0.62318975", "0.62017554", "0.6001452", "0.5997526", "0.594683", "0.5919318", "0.58540547", "0.57875896", "0.5761796", "0.5738571", "0.56402856", "0.56398934", "0.5618686", "0.55878824", "0.55751365", "0.5560954", "0.5553007", "0.5547572", "0.5547572", "0.552291...
0.7313392
0
This function returns a WinJS.Binding.List containing only the items that belong to the provided group.
function getItemsFromGroup(group) { return list.createFiltered(function (/*@override*/ item) { return item.group.key === group.key; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getItemsFromGroup(group) {\r\n return list.createFiltered(function (item) { return item.group.key === group.key; });\r\n }", "function getItemsFromGroup(group) {\n return list.createFiltered(function (item) { return item.group.key === group.key; });\n }", "function getItemsFromGrou...
[ "0.8265077", "0.81761473", "0.81761473", "0.81761473", "0.81761473", "0.81761473", "0.81761473", "0.81761473", "0.81761473", "0.81761473", "0.78992623", "0.64289063", "0.64289063", "0.64289063", "0.64289063", "0.61776555", "0.58020747", "0.57423884", "0.57189894", "0.56641746",...
0.8222064
1
Fill circles array with as many circles as possible given the centerX which will be used as the radius of the largest circle and decreasing it by 10 at each iteration. Additianally the delay value of each circle is increased at each iteration by "delayIncrements" in order to load inner circles with delay. NOTE: We can ...
function setupCircles(){ var delay=0; var i = 0; for(var radius=canvasDiagonalFromCenter; radius>0; radius-=10){ var circle = new Circle(radius, 0*Math.PI + i , 2*Math.PI + i ,0,0,delay,inputSpeed,inputAcceleration); circles.push(circle); delay+=delayIncrements; i+= 0.3*Math...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addAnimateCenterCircles(circleRadius) {\n //add circles around center space\n var cx = $canvas.width() / 2;\n var cy = $canvas.height() / 2;\n\n var centerCirclesAttr = {\n 'stroke': '#FFF',\n 'stroke-width': '3',\n 'opacity': 0\n };\n\n var centerNum = 5;\n\n for (var ...
[ "0.6736508", "0.66958606", "0.66829765", "0.6619587", "0.65891755", "0.6510892", "0.64009666", "0.6295797", "0.6263028", "0.6261015", "0.6259345", "0.6249091", "0.62158203", "0.61134994", "0.6089322", "0.6050056", "0.5975911", "0.59640497", "0.59601516", "0.59324515", "0.5919...
0.76346886
0
function to draw circles. Each circle is drawn if its delay value is equal to zero. If not, delay is decreased by one. This is were the "delayIncrements" variable comes in the picture. The higher the delayIncrements value, the more "requestAnimationFrame" will be called in order for an inner circle to reach a delay==0 ...
function drawAndUpdateCircles(){ //clear canvas at each frame ctx.clearRect(0,0,canvas.width,canvas.height); for(var i=0; i<circles.length; i++){ if(circles[i].delay==0) circles[i].animateClockwiseCircle(); else circles[i].delay-=1; } requestAnimation...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function animate() {\n requestAnimationFrame(animate);\n ctx.clearRect(0, 0, innerWidth, innerHeight);\n circleArray.forEach((a) => a.draw());\n}", "function animate(){\n //2.use requestAnimationFrame() function that takes animate function as an argument, and that will create a loop\n requestAnima...
[ "0.75349194", "0.75158906", "0.7504944", "0.7369294", "0.7361527", "0.7349207", "0.733871", "0.71985316", "0.7177594", "0.71638703", "0.7094807", "0.7076866", "0.70244724", "0.69956386", "0.6957064", "0.69351196", "0.69201195", "0.68957496", "0.67607987", "0.6706412", "0.6640...
0.8242224
0
EXTRA STUFF A simple fibonacci counter The purpose of this is to investigate dynamic loading of HTML nodes, in this case paragraph nodes with the value of a fibonacci number as soon as its calculated
function fibonacci() { var a = 0; var b = 1; //create paragraph element var para = document.createElement("p"); //create a text node with the value of variable "a" var node = document.createTextNode(a); //append the text node as a child to the paragraph element para.appendChild(node); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fibTree(fibRecursion){\r\n var innerDiv = document.createElement('div');\r\n innerDiv.setAttribute('class', 'fib');\r\n innerDiv.setAttribute('id', 'tree');\r\n fibRecursion = parseInt(fibRecursion);\r\n var result = 0;\r\n //base cases if num == 0,1, or 2\r\n if (fibRecursion === 0){...
[ "0.6400311", "0.6149942", "0.61127627", "0.6012429", "0.5995847", "0.5986191", "0.5877854", "0.5852113", "0.58437574", "0.58388144", "0.5838569", "0.58321947", "0.5832093", "0.5816047", "0.58145875", "0.57984465", "0.5794876", "0.57938945", "0.57907975", "0.5780243", "0.57768...
0.74704486
0
Get DefectiveDamaged Details By ID
function GetDefectiveDamagedByID(id) { try { var data = { "id": id }; var ds = {}; ds = GetDataFromServer("DefectiveorDamaged/GetDefectiveDamagedByID/", data); if (ds != '') { ds = JSON.parse(ds); } if (ds.Result == "OK") { return ds.Records; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDeathReasonModifyDetails(id) {\r\n return get('/deathreason/detail', { id: id }).then(function (res) {\r\n return res.data;\r\n }).catch(function (err) {\r\n return err.response.data;\r\n });\r\n}", "function GetAllDefectiveDamaged() {\n try {\n \n var data = {};...
[ "0.6385485", "0.607682", "0.6073034", "0.5894491", "0.57640177", "0.5742741", "0.5735714", "0.57252306", "0.569307", "0.56808645", "0.56721497", "0.56720495", "0.5653773", "0.5582012", "0.55701613", "0.55677414", "0.55566204", "0.5554802", "0.55349874", "0.54978204", "0.54738...
0.77591634
0
Grabs search query from home page search bard and performs dateplan and activities search
function performSearchFromHompage(){ var queryString = new Array(); //Logic below credits go to aspdotnetcodebook-blogspot-com from StackOverflow if (queryString.length == 0) { if (window.location.search.split('?').length > 1) { var params = window.location.search.split('?')[1].split('&')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function search(q, d, nopush, all) {\n keywords = q\n current_retention = d // we use this later in the pagebuilder\n current_query = q // ditto\n var arr = xlist.split('@', 2)\n var listname = arr[0]\n var olist = listname\n var domain = arr[1]\n \n // are we checking *@foo.tld ?\n i...
[ "0.658612", "0.6489061", "0.64695907", "0.643136", "0.6371725", "0.620147", "0.6182631", "0.61752903", "0.6144619", "0.613742", "0.6134474", "0.61033756", "0.60772264", "0.60589755", "0.60149926", "0.60049057", "0.5999022", "0.5977682", "0.59622484", "0.59525114", "0.5941391"...
0.7548489
0
Gets the users favorite activites and displays them in a lit star on the searched activities
function displayFavoriteActivities(){ $.ajax({ type: 'POST', url: 'api/index.php/viewFavorites', content: 'application/json', data: JSON.stringify(user), success: function(data){ var actData = jQuery.parseJSON(data); var activitiesDiv = $("#searchResults"); for (i = 0; i < actData.length; i++)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFavorites() {\n console.log('Getting favorites');\n var favorites = localStorage.getItem('activeFavorites');\n if (favorites && favorites != '[]') {\n var json = JSON.parse(favorites);\n for (var fav in json) {\n console.log(json[fav]);\n $(\"#favs\").append(json[fav]);\n }\n a...
[ "0.64238316", "0.6258351", "0.62180644", "0.6215415", "0.6214746", "0.61607957", "0.61555576", "0.6133938", "0.5996672", "0.5985937", "0.5932396", "0.59259325", "0.5915617", "0.59059095", "0.59021515", "0.5888511", "0.588056", "0.5877907", "0.587347", "0.5833289", "0.5829408"...
0.65174747
0
Lets the user drag over activites to their date plan
function addDrag(){ var v; $( ".activity" ).draggable({ connectToSortable: "#currentDatePlan", helper: "clone", revert: "invalid", stop: function(event, ui){ if ($('.activityDatePlan').length == 0) createDatePlan(); var $elems = $('#currentDatePlan .activity[value=' + ui.helper.context.value + ']');...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onDrag({ context, event }) {\n const me = this,\n dd = me.dragData,\n start = dd.startDate;\n\n let client;\n\n if (me.constrainToTimeline) {\n client = me.client;\n } else {\n let target = event.target;\n\n // Can't detect target under a touch event\n if (/^touch/.test(ev...
[ "0.6238591", "0.6081509", "0.60229087", "0.59960186", "0.59960186", "0.5963224", "0.591725", "0.5913789", "0.5871903", "0.58697045", "0.583749", "0.583749", "0.5818368", "0.57876676", "0.57812715", "0.5767705", "0.57566994", "0.5751481", "0.5737835", "0.5737026", "0.5720097",...
0.64659774
0
Lets the user create a date plan
function createDatePlan(userDatePlanInfo){ userDatePlanInfo = new Object(); userDatePlanInfo.Name = $("#datePlanName").val(); datePlanActivity.Name = userDatePlanInfo.Name; userDatePlanInfo.UserID = user.UserID; $.ajax({ type: 'POST', url: 'api/index.php/createDatePlan', content: 'application/json', data: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async createPlan() {\n return await this.testrail.addPlan(this.projectId, {\n name: \"[#ccid - test plan]\",\n milestone_id: this.milestone_id,\n entries: [\n { suite_id: 24, name: \"[#ccid] - test suite config\" },\n { suite_id: 25, name: \"[#ccid] - test suite - user\" }\n ]\...
[ "0.6522405", "0.65025294", "0.6293351", "0.62192", "0.6107375", "0.608506", "0.59467185", "0.5885654", "0.58835965", "0.586635", "0.5851795", "0.5835836", "0.58354205", "0.5787122", "0.57727885", "0.57722795", "0.571992", "0.5711242", "0.5704575", "0.5668376", "0.56643605", ...
0.66096145
0