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
Replaces an item [object] (or adds it if it wasn't there already) in a collection at the same index it was taken out from. Returns a new copy of the array passed in.
function replaceItem(arr,newItem,onProp){ let temp_arr = arr || [], temp_newItem = newItem; const item = _.findWhere(temp_arr,{[onProp]:temp_newItem[onProp]}); if(item){ // get index of item in array let i = _.findIndex(temp_arr,record=>{ return record[onProp] === temp_n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function repItem(arr, currentItem, newItem) {\n let copiedArr = arr.map((x) => x);\n let index = copiedArr.indexOf(currentItem);\n copiedArr[index] = newItem;\n return copiedArr\n}", "function replaceAt(array, idx, newItem) {\n if (array[idx] === newItem) return array;\n var len = array.length;\n ...
[ "0.7235895", "0.66511565", "0.66475445", "0.66475445", "0.6639238", "0.65967613", "0.65967613", "0.65967613", "0.65967613", "0.6544657", "0.64344186", "0.6069176", "0.6069176", "0.6000632", "0.6000632", "0.6000632", "0.6000632", "0.5957956", "0.59504414", "0.5950381", "0.5921...
0.6687244
1
Get the list of device templates returns the list of device templates within an account
function get_device_templates() { console.log("Getting device templates..."); var headers = new Headers(); headers.append("Authorization", "Bearer " + userAccountData.jwt); headers.append("Content-Type", "application/json"); fetch(xi_bp_url+'devices/templates?accountId=' + userAccoun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function appsListTemplates() {\n const subscriptionId = \"00000000-0000-0000-0000-000000000000\";\n const credential = new DefaultAzureCredential();\n const client = new IotCentralClient(credential, subscriptionId);\n const resArray = new Array();\n for await (let item of client.apps.listTemplates()) {\...
[ "0.67414033", "0.62703604", "0.62056625", "0.6071343", "0.6024608", "0.5947138", "0.5822485", "0.57779926", "0.5671247", "0.56696665", "0.55394816", "0.5502378", "0.54709595", "0.54582834", "0.53802615", "0.5338769", "0.5296434", "0.52928066", "0.5271716", "0.5235729", "0.522...
0.7101407
0
Get the list of organisations
function get_organisations() { console.log("Getting organisations..."); var headers = new Headers(); headers.append("Authorization", "Bearer " + userAccountData.jwt); headers.append("Content-Type", "application/json"); //console.log(accountObj.deviceTemplates); fetch(xi_bp_url+'organizations?accountId='...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function getOrganizations() {\n return await api.get(`/organizations`).then((res) => {\n return res.data;\n });\n}", "get organisations() {\n return this.mutateData.organisations;\n }", "function getOrganizationsList() {\n $('[restore-action]').hide();\n $('[file-remove-trash]').hide();\...
[ "0.7810027", "0.7658692", "0.7624052", "0.74691993", "0.7354989", "0.72301185", "0.7176562", "0.697922", "0.6974837", "0.6925839", "0.67985046", "0.6724614", "0.67069477", "0.6683603", "0.66654915", "0.65984446", "0.6493712", "0.6408273", "0.6340422", "0.6321025", "0.6315639"...
0.7798871
1
simplifies decklist to card names and quantities
getDeckNamesAndQuants(deck) { return JSON.stringify(deck.map(card => ({ name: card.uniqueName, quantity: card.quantity }))) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deck(){\n\tconst names = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K'];\n\tconst suits = ['H','D','S','C'];\n\n\treturn suits.reduce((deck, suit) => {\n\t deck.push(...names.map((name) => { return {\"suit\": suit, \"name\": name}}));\n\t return deck;\n\t }, []);\n}", "funct...
[ "0.65220064", "0.6089279", "0.60693365", "0.60272485", "0.6003928", "0.59814966", "0.59774995", "0.59650016", "0.59270483", "0.5854594", "0.5812488", "0.57764786", "0.5769788", "0.57619363", "0.5739289", "0.57367086", "0.5736519", "0.57314366", "0.5721514", "0.57197934", "0.5...
0.66673946
0
decides which mana picture should render based on producible mana colors
parseManaPic(ProducibleManaColors) { let manapic = (ProducibleManaColors.includes('C') || ProducibleManaColors.includes('F')) ? 'Cmana.png' : (ProducibleManaColors.split(',').join('').slice(0, Math.min(ProducibleManaColors.length, 2)) + 'mana.png') if (ProducibleManaColors.split(',').join('') === 'BGRUW') manap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateMana() {\n //Update each mana color\n for(let color in this.mana) {\n // Only display if there is some mana\n this.manaStatus[color].style.display = this.mana[color] > 0 ? 'block' : 'none';\n // Show the number of mana available\n this.manaStatus[colo...
[ "0.6511055", "0.64366233", "0.6324542", "0.6268902", "0.62310624", "0.6197689", "0.6150242", "0.60915977", "0.6024402", "0.60240775", "0.6009531", "0.5959865", "0.5941219", "0.5922197", "0.59177035", "0.5910509", "0.58761257", "0.5861077", "0.5849624", "0.5846703", "0.5839443...
0.69612134
0
Execute an arbitrary Cypher query and rerender the visualization
renderWithCypher(query) { // this._config.initial_cypher = query; this.clearNetwork(); this._query = query; this.render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function submitCustomQuery() { \r\n\tvar q = $(\"#query\").val();\r\n\t\r\n\tProvenance().cypherQuery({\r\n\t\tquery : q,\r\n\t\tsuccess: function(provGraph) {\r\n\t\t\tvar html = \"<p><strong>Results:</strong></p><ul>\";\r\n\t\t\t\r\n\t\t\tprovGraph.nodes(function (n) { \r\n\t\t\t\thtml = html + \"<li>\" + n.name...
[ "0.6553696", "0.6056682", "0.601447", "0.58783853", "0.5744195", "0.5744195", "0.57362354", "0.5527204", "0.5464416", "0.54194987", "0.534743", "0.5326153", "0.5269009", "0.5239358", "0.5239358", "0.5221603", "0.51788574", "0.5144131", "0.51362413", "0.51292825", "0.50825197"...
0.72331566
0
function to create file from base64 encoded string
function base64_decode(base64str, file) { var bitmap = new Buffer(base64str, 'base64'); fs.writeFileSync(file, bitmap); console.log('******** File created from base64 encoded string ********'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "base64StringtoFile (base64String, filename) {\n var arr = base64String.split(','), mime = arr[0].match(/:(.*?);/)[1],\n bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n)\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n)\n }\n return new File([u8arr], fi...
[ "0.8161336", "0.7445174", "0.74279857", "0.7409513", "0.7409513", "0.7409513", "0.7409513", "0.7409513", "0.7409513", "0.7409513", "0.7385658", "0.7251056", "0.71461666", "0.71461666", "0.6962518", "0.6916509", "0.6882981", "0.68635035", "0.68046254", "0.6711685", "0.67048913...
0.75031894
1
Arguments => object : id of this object is mandatory and the id will be of a DIV This DIV must content two child Div 1. Header Div for Window Title 2. Content Div for the content of the window => object.Bindings : jquery function to be binded with the content in the window(if any) => object.Position : 'center' , 'left'...
function createWindow(object){ var Height = 400, Width = 550, Position = 'center', Bindings = function(){}, Heading = "Venera Technologies"; if(IsValueNull(object.id)) return false; else{ if(!IsValueNull(object.Heading)) Heading = object.Heading; if(object.ok != "") var okbuttonID = object.ok; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scrolledObject(contentId,maxX,minX,maxY,minY,sbXId,sbYId) {\n\tthis.content = document.getElementById(contentId);\n\tthis.transX = 0;\n\tthis.transY = 0;\n\tthis.maxX = maxX;\n\tthis.minX = minX;\n\tthis.maxY = maxY;\n\tthis.minY = minY;\n\tthis.sbXId = sbXId;\n\tthis.sbYId = sbYId;\n\tthis.panActive = fa...
[ "0.60021824", "0.5916526", "0.5796287", "0.5789091", "0.5734662", "0.5665341", "0.56328696", "0.5619387", "0.5596763", "0.5515758", "0.54984593", "0.5483902", "0.5474715", "0.5455292", "0.54267985", "0.5422656", "0.54204476", "0.54132175", "0.54107904", "0.53885424", "0.53882...
0.70837986
0
Gets the list if all auctions. Removes the ones the users has created themselves. Returns just the ones they can bid on. i.e. The auctions created by other users
function listBiddableAuctions() { // Get the list of keys this person owns getAllYourPublicKeys() // Get the list of all auctions listAllAuctions(AUCTION_SCRIPT_ADDRESS) // Remove from the auction list, auctions signed by any of this users public keys // Return the resulting, filtered aution list }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAuctions() {\n const url = 'https://flop-auction-data-omega.now.sh/auctions';\n const response = UrlFetchApp.fetch(url);\n const auctions = JSON.parse(response);\n Logger.log(\"Auctions : \", auctions);\n \n const auctionsList = []\n for (auction in auctions) {\n auctionsList.push(auctions[au...
[ "0.5923555", "0.5792838", "0.5528117", "0.5455543", "0.53255075", "0.5296923", "0.52821106", "0.5270195", "0.5256886", "0.52497494", "0.5199128", "0.518744", "0.5187101", "0.5175445", "0.51632965", "0.50976056", "0.5095087", "0.5080238", "0.50787216", "0.5077302", "0.5072482"...
0.7661065
0
list all the NFTs (coinid and tokenid), listed in the auction
function listAllAuctions(auctionContractAddress) { return new Promise((resolve, reject) => { const command = 'coins address:' + auctionContractAddress Minima.cmd(command, (res) => { if (res.status && res.response && res.response.coins) { const nfts = res.response.coins.map(c => { retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllNfts() {\n fetch(`${apiUrl}/nftArt`)\n .then((res) => res.json())\n .then((allNfts) => setAllNfts(allNfts))\n .catch((error) => console.error(\"FETCH ERROR:\", error));\n }", "async function fetchTradingVariables(){\n\tweb3[selectedProvider].eth.net.isListening().then(async () =...
[ "0.58247393", "0.5808207", "0.5778292", "0.571002", "0.5609882", "0.5403723", "0.5377531", "0.5362258", "0.5297337", "0.52506506", "0.52506506", "0.5242228", "0.52372444", "0.5226781", "0.52267313", "0.52211106", "0.5217022", "0.52163935", "0.51986665", "0.51897097", "0.51855...
0.62936366
0
list all the bids (coinid and tokenid), listed in the bid contract
function listAllBids(bidsContractAddress) { const minimaTokenId = '0x00' return new Promise((resolve, reject) => { const command = `coins address:${bidsContractAddress} tokenid:${minimaTokenId}` Minima.cmd(command, (res) => { if (res.status && res.response && res.response.coins) { const bids =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function bidContract(tokenid, amount) {\n const bidder_my_address = await newAddress()\n console.log('Bidder address is ' + bidder_my_address + '. Seller will need this to accept bid')\n\n const aKey = await newKey()\n console.log('Bidder public key is ' + aKey + '. Seller will need this to accep...
[ "0.6615344", "0.63316834", "0.5926139", "0.5841344", "0.5834397", "0.5811717", "0.5785361", "0.57812417", "0.5772082", "0.561099", "0.55718505", "0.55634403", "0.5544909", "0.55423844", "0.5540756", "0.5532914", "0.55035776", "0.54563826", "0.54288316", "0.540872", "0.5373328...
0.80285686
0
Creates and returns a unique upper case GUID.
function CreateGUID() { var d = new Date().getTime(); var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var r = (d + Math.random()*16)%16 | 0; d = Math.floor(d/16); return (c=='x' ? r : (r&0x3|0x8)).toString(16); }); return uuid.toUpperCase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static createGuid() {\n return Math.random().toString(36).substring(2, 15) +\n Math.random().toString(36).substring(2, 15);\n }", "function newGuid() {\n\treturn (S4() + S4() + \"-\" + S4() + \"-4\" + S4().substr(0,3) + \"-\" + S4() + \"-\" + S4() + S4() + S4()).toLowerCase();\n\t}", "createGuid() {...
[ "0.80505735", "0.79927415", "0.78339994", "0.7816741", "0.7760816", "0.7663255", "0.76625794", "0.76201856", "0.7553048", "0.7494986", "0.74574244", "0.7445771", "0.7438657", "0.74300075", "0.7427211", "0.7414841", "0.7411897", "0.73952484", "0.7381107", "0.7378389", "0.73743...
0.79949695
1
add new Labelled sample into tfDS, return 400 sorted possible characters make sure newPositive and newNegative are both Set
putData(newPositive, newNegative) { if (newPositive.size !== this.positive.size || newNegative.size !== this.negative.size) { let positive = this.union(this.positive, newPositive); let negative = this.union(this.negative, newNegative); let repeated = this.intersection(positiv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addShortSamplesToInputBuffer(\r\n samples,\r\n numSamples)\r\n {\r\n if(numSamples == 0) {\r\n return;\r\n }\r\n enlargeInputBufferIfNeeded(numSamples);\r\n move(inputBuffer, numInputSamples, samples, 0, numSamples);\r\n numInputSamples += num...
[ "0.50311667", "0.5013601", "0.5008816", "0.49831653", "0.49751732", "0.49118394", "0.49019507", "0.49001393", "0.48191422", "0.47941062", "0.47533435", "0.4717536", "0.46786034", "0.4611412", "0.45838007", "0.45687303", "0.4564165", "0.45613703", "0.45613232", "0.45516765", "...
0.53719676
0
Getter for entry information (shr.base.Entry)
get entryInfo() { return this._entryInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get entry() {\n\t\treturn this.__entry;\n\t}", "get entry() {\n\t\treturn this.__entry;\n\t}", "get entry() {\n\t\treturn this.__entry;\n\t}", "get entry() { return this._entry; }", "getEntry() {\n return this.props.entry || {};\n }", "getDataFromEntry(entry){\n let _item = this.getFromE...
[ "0.7932794", "0.7932794", "0.7932794", "0.77772915", "0.75124544", "0.6848187", "0.6836752", "0.64660823", "0.64660823", "0.64660823", "0.64563876", "0.6439292", "0.63699895", "0.6228687", "0.61564416", "0.60719454", "0.6069108", "0.60473174", "0.601011", "0.601011", "0.60037...
0.8623744
0
Setter for entry information (shr.base.Entry)
set entryInfo(entryVal) { this._entryInfo = entryVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get entryInfo() {\n return this._entryInfo;\n }", "setEntry(entry) {\n this.stream.writeString(entry.filename);\n this.stream.writeFixedString(entry.method);\n this.stream.writeInt(entry.originalSize);\n this.stream.writeInt(entry.reserved);\n this.stream.writeInt(ent...
[ "0.71498996", "0.6946832", "0.69428855", "0.675244", "0.675244", "0.675244", "0.63926476", "0.6191387", "0.60699576", "0.6017618", "0.5995714", "0.5961975", "0.5928936", "0.59241843", "0.5920328", "0.591985", "0.59015006", "0.5883501", "0.5823994", "0.5822641", "0.57782805", ...
0.8612075
0
Place focus on the last MenuItem in the menu and set the focus origin.
focusLastItem(focusOrigin = 'program') { this._keyManager.setFocusOrigin(focusOrigin); this._keyManager.setLastItemActive(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_toggleMenuFocus(event) {\n const keyManager = this._keyManager;\n switch (event) {\n case 0 /* nextItem */:\n keyManager.setFocusOrigin('keyboard');\n keyManager.setNextItemActive();\n break;\n case 1 /* previousItem */:\n ...
[ "0.6618771", "0.6423567", "0.64003116", "0.6377991", "0.63560086", "0.6312734", "0.6247288", "0.62406003", "0.62018996", "0.61902595", "0.6173819", "0.61722535", "0.6171782", "0.61432683", "0.6056231", "0.60499454", "0.60224396", "0.59669024", "0.59669024", "0.595661", "0.595...
0.7080078
0
Register this menu with its enclosing parent menu panel
_registerWithParentPanel() { var _a; (_a = this._getMenuPanel()) === null || _a === void 0 ? void 0 : _a._registerMenu(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "didInsertElement() {\n this._super(...arguments);\n this.registerWithMenu();\n }", "async registerMenu() {\r\n this.activateDefaultMenu();\r\n // re-render menu list by changing state\r\n this.nestedMenus = [...this.getRenderedMenuItems()];\r\n }", "function onOpen() { CUSTOM_MEN...
[ "0.63493407", "0.62063813", "0.60490465", "0.594899", "0.59370875", "0.592293", "0.59047365", "0.5901592", "0.58753157", "0.5861738", "0.5820065", "0.5811434", "0.57955766", "0.5788785", "0.5744895", "0.5730214", "0.5720836", "0.56712514", "0.5627449", "0.5620492", "0.5566139...
0.8231323
0
Get the enclosing CdkMenuPanel defaulting to the injected reference over the developer provided reference.
_getMenuPanel() { return this._menuPanel || this._explicitPanel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_registerWithParentPanel() {\n var _a;\n (_a = this._getMenuPanel()) === null || _a === void 0 ? void 0 : _a._registerMenu(this);\n }", "get menuController() {\n return getOrCreateMenuController('ion-menu-controller')\n }", "get containerEl() {\n return this.element.parents('.module-nav...
[ "0.60051054", "0.59696245", "0.59457165", "0.59440976", "0.5889249", "0.586545", "0.5780408", "0.55657166", "0.55276036", "0.5524028", "0.55204755", "0.5513986", "0.5466782", "0.5461354", "0.5458993", "0.54495794", "0.54257417", "0.5387102", "0.5370653", "0.536768", "0.535413...
0.6932283
0
Complete the change emitter if there are any nested MenuGroups or register to complete the change emitter if a MenuGroup is rendered at some point
_completeChangeEmitter() { if (this._hasNestedGroups()) { this.change.complete(); } else { this._nestedGroups.changes.pipe(take(1)).subscribe(() => this.change.complete()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_transitionendHandlerCollapse() {\n let menu, container;\n\n if (arguments.length === 1) {\n if (arguments[0].propertyName === 'visibility') {\n return;\n }\n\n container = this;\n menu = container.menuItemsGroup.menu;\n }\n els...
[ "0.57791543", "0.5705455", "0.56924087", "0.56603736", "0.56259763", "0.5569844", "0.5498989", "0.5490411", "0.5423433", "0.5359813", "0.53278273", "0.5325933", "0.5303833", "0.5300844", "0.52886444", "0.52871275", "0.5276649", "0.5272565", "0.527163", "0.5266538", "0.5243830...
0.6844266
0
Return true if there are nested CdkMenuGroup elements within the Menu
_hasNestedGroups() { // view engine has a bug where @ContentChildren will return the current element // along with children if the selectors match - not just the children. // Here, if there is at least one element, we check to see if the first element is a CdkMenu in // order to ensure t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isChildItem($item) {\n return $item.classList.contains('menu-item-depth-1') || $item.classList.contains('menu-item-depth-2');\n }", "menusAreOpen() {\n const anyMenuHasOpenClass = this.querySelectorAll(`.${this.openClass}`);\n\n return (anyMenuHasOpenClass.length > 0) ? anyMenuHasOpenClass : false;\n ...
[ "0.674172", "0.6454412", "0.6324339", "0.62296146", "0.61631364", "0.6122234", "0.61097974", "0.6109007", "0.6029673", "0.6029673", "0.6029673", "0.6029673", "0.6029673", "0.59690654", "0.5964121", "0.59593546", "0.59559244", "0.5944036", "0.5943415", "0.5935698", "0.59090286...
0.8525817
0
Setup the FocusKeyManager with the correct orientation for the menu.
_setKeyManager() { var _a; this._keyManager = new FocusKeyManager(this._allItems) .withWrap() .withTypeAhead() .withHomeAndEnd(); if (this._isHorizontal()) { this._keyManager.withHorizontalOrientation(((_a = this._dir) === null || _a === void 0 ? v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_initKeyManager() {\n this._keyManager = new FocusKeyManager(this._chips)\n .withWrap()\n .withVerticalOrientation()\n .withHomeAndEnd()\n .withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');\n if (this._dir) {\n this._dir.change\n ...
[ "0.72175074", "0.72175074", "0.69187385", "0.62680763", "0.62310284", "0.6053424", "0.5695736", "0.5620803", "0.56031907", "0.5595346", "0.5555219", "0.5501042", "0.5477128", "0.54410714", "0.5430759", "0.5383096", "0.5380536", "0.533576", "0.532327", "0.5311105", "0.5281996"...
0.7567605
0
Set the PointerFocusTracker and ensure that when mouse focus changes the key manager is updated with the latest menu item under mouse focus.
_subscribeToMouseManager() { this._ngZone.runOutsideAngular(() => { this._pointerTracker = new PointerFocusTracker(this._allItems); this._pointerTracker.entered .pipe(takeUntil(this.closed)) .subscribe(item => this._keyManager.setActiveItem(item)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "beforeOp() {\n focusedNode = FocusManager.pdomFocusedNode;\n BrowserEvents.blockFocusCallbacks = true;\n }", "function eventInputManagerKeyControlHandleFocus(inputmanager, element, event)\n{\n\tinputmanager.keyStrokes = new Array();\n}", "_hoverViaKeyboard(item) {\n if (!item) {\n retu...
[ "0.6365998", "0.6321746", "0.62445855", "0.61528283", "0.60390556", "0.59413266", "0.5928663", "0.5919039", "0.5919039", "0.58693177", "0.58662176", "0.5862828", "0.585778", "0.5846046", "0.5846046", "0.58322597", "0.58221525", "0.5815891", "0.58048093", "0.57841855", "0.5784...
0.71080744
0
Subscribe to the MenuStack close and empty observables.
_subscribeToMenuStack() { this._menuStack.closed .pipe(takeUntil(this.closed)) .subscribe((item) => this._closeOpenMenu(item)); this._menuStack.emptied .pipe(takeUntil(this.closed)) .subscribe((event) => this._toggleMenuFocus(event)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_subscribeToMenuOpen() {\n const exitCondition = merge(this._allItems.changes, this.closed);\n this._allItems.changes\n .pipe(startWith(this._allItems), mergeMap((list) => list\n .filter(item => item.hasMenu())\n .map(item => item.getMenuTrigger().opened.pipe(mapTo(it...
[ "0.65135086", "0.6476033", "0.59856904", "0.5973319", "0.596762", "0.58698666", "0.5735278", "0.5695833", "0.5662838", "0.55626523", "0.55472326", "0.54254675", "0.54254675", "0.54013693", "0.5394937", "0.5377251", "0.5368084", "0.53501534", "0.53489655", "0.53256285", "0.532...
0.7785576
0
Close the open menu if the current active item opened the requested MenuStackItem.
_closeOpenMenu(menu) { var _a, _b, _c; const keyManager = this._keyManager; const trigger = this._openItem; if (menu === ((_a = trigger === null || trigger === void 0 ? void 0 : trigger.getMenuTrigger()) === null || _a === void 0 ? void 0 : _a.getMenu())) { (_b = trigger.getM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function closeMenu(e) {\n var target = e.target;\n var its_menu = target == menu || menu.contains(target);\n var its_hamburger = target == btn;\n var menu_is_active = menu.classList.contains('active');\n \n if (!its_menu && !its_hamburger && menu_is_active) {\n openMenu();\n }\n}", "function handleMenu...
[ "0.6532408", "0.64224106", "0.63673925", "0.63673925", "0.6346686", "0.63333833", "0.6256233", "0.6201081", "0.61405283", "0.6131499", "0.6111242", "0.6106957", "0.6097387", "0.6040548", "0.59876597", "0.5983963", "0.5978873", "0.5944718", "0.587006", "0.5860075", "0.5830112"...
0.64899004
1
TODO(andy9775): remove duplicate logic between menu an menu bar Subscribe to the menu trigger's open events in order to track the trigger which opened the menu and stop tracking it when the menu is closed.
_subscribeToMenuOpen() { const exitCondition = merge(this._allItems.changes, this.closed); this._allItems.changes .pipe(startWith(this._allItems), mergeMap((list) => list .filter(item => item.hasMenu()) .map(item => item.getMenuTrigger().opened.pipe(mapTo(item), takeU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleOpenMenu() {\n setOpenMenu(!openMenu);\n }", "get menuOpen() {\n return this._menuOpen;\n }", "_subscribeToMenuStack() {\n this._menuStack.closed\n .pipe(takeUntil(this.closed))\n .subscribe((item) => this._closeOpenMenu(item));\n this._menuStack...
[ "0.70395356", "0.67124945", "0.6701077", "0.6678543", "0.6660983", "0.66536444", "0.66405773", "0.65442854", "0.65420103", "0.65363467", "0.6499116", "0.6461047", "0.6411374", "0.6400323", "0.6400323", "0.6361987", "0.6332688", "0.6313126", "0.62805045", "0.62555516", "0.6248...
0.7755245
0
Return true if this menu has been configured in a horizontal orientation.
_isHorizontal() { return this.orientation === 'horizontal'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get horizontalOrientation() {\n return this.navBarLocation === 'top' || this.navBarLocation === 'bottom';\n }", "get isHorizontal() {\n return true;\n }", "get isHorizontal() {\n return true;\n }", "layoutHorizontalAlign () {\n return false;\n //return this.content.layout &&\n...
[ "0.74366826", "0.6901721", "0.6901721", "0.6762524", "0.6574816", "0.62415063", "0.60240996", "0.60224795", "0.6002042", "0.58652955", "0.5815086", "0.5808765", "0.5808271", "0.5779056", "0.57333827", "0.5684777", "0.5675727", "0.55143136", "0.54903245", "0.54750526", "0.5459...
0.7737388
0
Return true if this menu is an inline menu. That is, it does not exist in a popup and is always visible in the dom.
_isInline() { // NoopMenuStack is the default. If this menu is not inline than the NoopMenuStack is replaced // automatically. return this._menuStack instanceof NoopMenuStack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isShowMenu() {\n return _isShowTopMenu;\n }", "function activeHasMenu(menu) {\n var item = menu.items[menu.activeIndex];\n return !!(item && item.submenu);\n}", "hasSubMenuOpened() {\n return this.state.activeSubMenuIndex != null;\n }", "triggersSubmenu() {\n ...
[ "0.6687355", "0.6251083", "0.6201439", "0.61984736", "0.6190416", "0.6053821", "0.6017965", "0.5962083", "0.5788912", "0.57679355", "0.574514", "0.56915736", "0.56588733", "0.5657884", "0.5630461", "0.5627799", "0.562508", "0.5620764", "0.56102514", "0.5588904", "0.55870825",...
0.79360795
0
Emit and complete the closed event emitter
_emitClosedEvent() { this.closed.next(); this.closed.complete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function complete () {\n emitterOne.close()\n emitterTwo.close()\n }", "function emitEnd() {\n eventEmitter.emit('end');\n}", "_onClosed() {\n this.emit(\"closed\");\n }", "function closeHandler() {\n eventHandler.emit('startRead');\n}", "function emitClose() {\n socket.emit(\"close\");\n...
[ "0.74002266", "0.73358953", "0.71469635", "0.6768703", "0.6708333", "0.6694161", "0.6600113", "0.6600113", "0.6554054", "0.6554054", "0.65348494", "0.6532224", "0.6532178", "0.6500579", "0.6493845", "0.6493845", "0.6486171", "0.6486171", "0.6486171", "0.64678544", "0.6451894"...
0.7933994
0
Watch observables for changes and create notifications to our subscribers when they do change. This is necessary to provide an abstracted way to monitor all the observable and nonobservable values. The conundrum with observables, and the reason we need this and we can't just trigger the notifications from Record.protot...
function _watchObservables(record) { var observed = record.observed; _.each(observed, function(v, k) { _sync(record, k, record.data[k], v); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_notifyObservers() {\n const _this = this;\n this.observers.forEach(observer => observer(_this.getVal()));\n }", "function notifyProperty(changes) {\n $.each(changes._watchers, function() {\n notifyCall(this);\n });\n }", "observe(obj, callback) {\n return new Proxy(obj, {...
[ "0.64916277", "0.63339627", "0.591336", "0.58498096", "0.5799956", "0.57769585", "0.57769585", "0.57769585", "0.5755121", "0.5753401", "0.5677545", "0.56459665", "0.5632336", "0.56134874", "0.56119245", "0.55973923", "0.5551806", "0.55201566", "0.5485639", "0.54711", "0.54625...
0.71845293
0
This sample lists Fusion Tables that the user has access to.
function list_tables() { var tables = FusionTables.Table.list(); var result_HTML = ""; var table = ""; if (tables.items) { for (var i = 0; i < tables.items.length; i++) { table = tables.items[i]; result_HTML += " <strong>Table ID:</strong>&nbsp;&nbsp;&nbsp;" +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showTables() {\n var connStr =\n 'jdbc:google:rdbms://' +\n 'elwarbito:chapter6/contacts',\n conn,\n stmt,\n rs,\n sql;\n sql = 'SHOW TABLES';\n conn = Jdbc.getCloudSqlConnection(connStr);\n stmt = conn.createStatement();\n rs = stmt.executeQuery(sq...
[ "0.6203109", "0.6051485", "0.6044818", "0.5566445", "0.54565847", "0.5432298", "0.5254954", "0.5221125", "0.5206061", "0.5193516", "0.51830953", "0.51788205", "0.51680297", "0.5163103", "0.51570207", "0.515209", "0.5142462", "0.51370674", "0.5132186", "0.5106057", "0.5087087"...
0.6921806
0
This sample queries for the first 100 rows in the given Fusion Table and saves the results to a new spreadsheet.
function run_query(tableId, message_numbers, CURRENT_LABEL_NAME) { var sql = 'SELECT * FROM ' + tableId + ' LIMIT 100'; var result = FusionTables.Query.sqlGet(sql, { hdrs: false }); if (result.rows) { // var spreadsheet = SpreadsheetApp.create('[ TEST ] - Fusion Table Query Results'); va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeDatabasRowsToSpreadsheet() {\n var connStr = 'jdbc:google:rdbms://' +\n 'elwarbito:chapter6/contacts',\n conn,\n sql = 'SELECT * FROM person',\n stmt,\n rs,\n colCount,\n colVal,\n rowVals = [],\n i,\n ss = SpreadsheetApp.getAct...
[ "0.6127171", "0.5962434", "0.58007693", "0.5747433", "0.57319736", "0.5644878", "0.5424454", "0.5399958", "0.533984", "0.53155404", "0.5312524", "0.52769756", "0.5266847", "0.52606237", "0.52247584", "0.52225906", "0.5208209", "0.5187369", "0.5175207", "0.5172009", "0.5133144...
0.6994807
0
Adds an id to the Set of worksets
function addid(worksetid) { //worksetid.forEach( x => worksetIds.add(x.toString()); ); worksetIds.add(worksetid.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addWorkstation(id){\n\t\tthis.props.actions.addWorkstationsToWorkgroup([id]);\n\t}", "function addToData(worksetid) {\n addid(worksetid);\n var wsResponse;\n\n function wsListener () {\n wsResponse = JSON.parse(this.responseText);\n wsResponse.forEach(function (d) { \n ldinjs.createData...
[ "0.6708596", "0.6568377", "0.5948115", "0.58768916", "0.5804007", "0.5586317", "0.55703443", "0.54767203", "0.5387087", "0.5378972", "0.5319801", "0.53020865", "0.52752346", "0.52608675", "0.5234121", "0.52193236", "0.5216821", "0.5208706", "0.52027375", "0.51984274", "0.5190...
0.80039686
0
Method to handle the markup for the workset list
function markup(workids) { html = "Your Worksets<ul id='workset-id'>"; workids.forEach( function(y) { html += "<li>"+ y.value + "<input type=\"button\" class=\"removebutton\" onclick='workset.addToData([\""+y.id+"\"])' value=\"Add to Data\"></li>"; } ); html += "</ul>"; return html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initHtml () {\n\t\t\t$container.addClass(\"ibm-widget-processed\");\n\n\t\t\t$listItems = $container.find(\"li\");\n\t\t\t\n\t\t\t$listItems.each(function () {\n\t\t\t\tvar $li = $(this);\n\n\t\t\t\t// If they coded the HTML with the new way (don't put the link in there), add it.\n\t\t\t\tif ($(\" > a.ibm...
[ "0.6141896", "0.61327815", "0.60924935", "0.6089791", "0.6048444", "0.60011244", "0.599478", "0.5989123", "0.593893", "0.59139943", "0.5785142", "0.5780961", "0.5772101", "0.57707506", "0.56792545", "0.5678246", "0.5596492", "0.558513", "0.5550777", "0.5529297", "0.5528459", ...
0.687307
0
Resolve a request, letting the matching route write a response.
resolve(request, response) { let parsed = parse(request.url, true) let path = parsed.pathname request.query = parsed.query return this.routes.some(route => { let match = route.method == request.method && this.match(route.url, path) if (!match) return false let urlParts = match.map(de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function onRequest(rawReq, rawRes) {\n const startTime = Date.now()\n const reqURL = getURL(rawReq)\n\n try {\n\n logger.info(logger.cyan(rawReq.method), reqURL)\n\n const req = new Request(rawReq, upstream.getAgent(rawReq))\n const res = { statusCode: 200, headers: {}, body: '' }\n\n...
[ "0.5955061", "0.5866837", "0.5763494", "0.5756225", "0.5751062", "0.54664207", "0.5416791", "0.5405099", "0.5386757", "0.53671", "0.53602076", "0.53470504", "0.5344355", "0.5288043", "0.527408", "0.5252179", "0.5252179", "0.5247692", "0.5222376", "0.5218973", "0.5217315", "...
0.606406
0
============================================================= collect inplaces of one transition
function collectInplaces(transition,arcs1) { let inplaces = []; for (let i = 0; i < arcs1.length; i++) { if (arcs1[i].getTargetElement() === transition) { inplaces.push(arcs1[i].getSourceElement()); } } return inplaces; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function collectOutplaces(transition,arcs2) {\r\n let outplaces = [];\r\n for (let i = 0; i < arcs2.length; i++) {\r\n if (arcs2[i].getSourceElement() === transition) {\r\n outplaces.push(arcs2[i].getTargetElement());\r\n }\r\n }\r\n return outplaces...
[ "0.6794033", "0.5911904", "0.5738136", "0.5527377", "0.5502224", "0.54904604", "0.53336734", "0.53194326", "0.52320206", "0.5213532", "0.51774997", "0.5176408", "0.51297474", "0.5096505", "0.5083475", "0.5083475", "0.5080571", "0.5080571", "0.50424993", "0.50381994", "0.50283...
0.7350488
0
============================================================= collect outplaces of one transition
function collectOutplaces(transition,arcs2) { let outplaces = []; for (let i = 0; i < arcs2.length; i++) { if (arcs2[i].getSourceElement() === transition) { outplaces.push(arcs2[i].getTargetElement()); } } return outplaces; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function collectInplaces(transition,arcs1) {\r\n let inplaces = [];\r\n for (let i = 0; i < arcs1.length; i++) {\r\n if (arcs1[i].getTargetElement() === transition) {\r\n inplaces.push(arcs1[i].getSourceElement());\r\n }\r\n }\r\n return inplaces;\r\...
[ "0.68482023", "0.5619221", "0.55778646", "0.5460785", "0.54427963", "0.53238153", "0.5317528", "0.5263434", "0.52072424", "0.5192664", "0.51674294", "0.51610273", "0.51205343", "0.5092301", "0.5092301", "0.50828683", "0.5077532", "0.5060246", "0.5058705", "0.5035911", "0.5018...
0.77462333
0
============================================================= for checking if none of transitions is enabled
function checkIfNoFirableTransitions(transitions,arcs1,arcs2) { let flag = false; for (let i = 0; i < transitions.length; i++) { if (isFirable(transitions[i],arcs1,arcs2)) { flag = true; break; } } if (!flag) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DETECT_transitions() {\n var style = (document.body || document.documentElement).style;\n\n for (var i in STYLES_TRANSITION) {\n if (typeof style[STYLES_TRANSITION[i]] == 'string') { return true; }\n }\n\n return false;\n }", "function isTransitionDefined(_a) {\...
[ "0.7267994", "0.6966946", "0.6966946", "0.68461305", "0.68429565", "0.68429565", "0.6742101", "0.67124087", "0.6673072", "0.6528847", "0.6494269", "0.6427695", "0.6426296", "0.63203955", "0.62820625", "0.6259622", "0.6253567", "0.62529033", "0.62204146", "0.6217356", "0.62124...
0.722863
1
Get the path to given file belonging, optionally, to the specified LED (otherwise the green one is used)
function pathTo(file, led) { led = led || 'green:led0' return path.join(__dirname, 'fakeleds', led, file) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLedPath(ledIndex, type) {\n\tif(type === undefined) {\n\t\ttype = '';\n\t}\n\treturn leds[ledIndex] + type;\n}", "function getFilePath(outputFile) {\n\tif (outputFile) {\n\t\tif (outputFile.match(\"^/\") == \"/\") {\n\t\t\treturn outputFile;\n\t\t} else {\n\t\t\treturn path.join(cwd, \"/\", outputFil...
[ "0.6443926", "0.5546906", "0.5519563", "0.55056804", "0.5503035", "0.5358644", "0.53316545", "0.53304636", "0.5292587", "0.5277248", "0.5246205", "0.52322173", "0.51931095", "0.51844114", "0.5154008", "0.51235455", "0.5100733", "0.5078503", "0.50316244", "0.50210196", "0.5016...
0.74087673
0
Helper function that restores the /triggers file to a known state
function restoreTriggers () { var triggers = knownTriggers.slice() // Shallow copy, that's all we need triggers[0] = '[' + triggers[0] + ']' // Mark the first trigger as being active fs.writeFileSync(pathTo('trigger'), triggers.join(' ') + '\n', 'utf8') }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SaveAndReimport() {}", "loadState(state) {\n this.transformManager.RollbackTo(state.currentServerVersionNumber);\n this.unacknowledgedChanges = state.unacknowledgedChanges;\n }", "function reconfig(){\n //variables\n if(reconfigFlag === false){\n reconfigFlag = true;\n console.log('rec...
[ "0.5957102", "0.5872145", "0.5708006", "0.5383645", "0.535122", "0.53137445", "0.53015196", "0.5269467", "0.5203481", "0.5169256", "0.515935", "0.5146493", "0.5133422", "0.5130963", "0.5128782", "0.51184756", "0.5100588", "0.5077311", "0.50552064", "0.5046898", "0.5030444", ...
0.75117165
0
Helper function that restores the /brightness file to a known state
function restoreBrightness () { fs.writeFileSync(pathTo('brightness'), '0\n', 'utf8') }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setBrightness( v ) {\n\t\tthis.brightness = v;\n\t}", "changeBrightness(bright)\n {\n this.brightness = bright;\n }", "loadStateImage() {\n let stateData = path.join(this.cwd, this.USER_DATA, this.TUTORSTATE);\n this.state = JSON.parse(fs.readFileSync(stateData));\n }", "execute...
[ "0.55414736", "0.5538802", "0.54932654", "0.5347784", "0.5333721", "0.5326144", "0.52742875", "0.52326727", "0.52165985", "0.5200646", "0.51947135", "0.5177823", "0.51765275", "0.5175277", "0.5139059", "0.5134258", "0.51274925", "0.51252824", "0.51242054", "0.50930774", "0.50...
0.82434237
0
Challenge use addPromise as a function that takes two arguments
function addPromise(a, b) { return new Promise(function(resolve, reject) { if(typeof a === "number" && typeof b === 'number') { resolve(a + b); } else { reject('A & B are not numbers') } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addPromise(promise) {\n\t\t\t\tsequences.push(\n\t\t\t\t\tcancellablePromise(promise)\n\t\t\t\t)\n\t\t\t}", "function addOneAsyncPromise(value) {\n const plusOne = value + 1;\n \n // -->> Wrap the setTimeout with a new Promise (see link) \n // -->> store the new Promise object in a const 'promise'.\n...
[ "0.706613", "0.67670935", "0.6752834", "0.6605247", "0.65824705", "0.6440053", "0.6393682", "0.6376426", "0.6374264", "0.6313852", "0.6281502", "0.62659675", "0.618704", "0.6123228", "0.6081985", "0.6072748", "0.60633045", "0.6052165", "0.601417", "0.6002518", "0.5992373", ...
0.7867186
0
checks if the first and last points of a ring are equal and closes the ring
function closeRing (coordinates) { if (!pointsEqual(coordinates[0], coordinates[coordinates.length - 1])) { coordinates.push(coordinates[0]); } return coordinates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function closeRing(coordinates) {\n if (!pointsEqual(coordinates[0], coordinates[coordinates.length - 1])) {\n coordinates.push(coordinates[0]);\n }\n return coordinates;\n }", "function closeRing (coordinates) {\n if (!pointsEqual(coordinates[0], coordinates[coordinates.length - 1])) {\n coor...
[ "0.69837815", "0.6964849", "0.695321", "0.68841636", "0.62671345", "0.6266158", "0.6266158", "0.61794657", "0.61478925", "0.59632057", "0.5940109", "0.59275985", "0.5926673", "0.58917004", "0.5876442", "0.58732474", "0.5685577", "0.55894744", "0.5488829", "0.5470655", "0.5470...
0.6977513
1
determine if polygon ring coordinates are clockwise. clockwise signifies outer ring, counterclockwise an inner ring or hole. this logic was found at pointsareinclockwiseorder
function ringIsClockwise (ringToTest) { var total = 0; var i = 0; var rLength = ringToTest.length; var pt1 = ringToTest[i]; var pt2; for (i; i < rLength - 1; i++) { pt2 = ringToTest[i + 1]; total += (pt2[0] - pt1[0]) * (pt2[1] + pt1[1]); pt1 = pt2; } return (total >= 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function orientRings(poly){\n var output = [];\n var polygon = poly.slice(0);\n var outerRing = closeRing(polygon.shift().slice(0));\n if(outerRing.length >= 4){\n if(!ringIsClockwise(outerRing)){\n outerRing.reverse();\n }\n\n output.push(outerRing);\n\n for (var i = 0; i < ...
[ "0.6488403", "0.64002055", "0.6384099", "0.63838637", "0.6382609", "0.634253", "0.63408893", "0.6312781", "0.6304706", "0.6193952", "0.61098546", "0.59703946", "0.5937801", "0.5898132", "0.5869119", "0.5673929", "0.56534326", "0.5653215", "0.56469136", "0.56435907", "0.564359...
0.64013
1
foreach // N loops foreach // N loops for 50% of cases you call floodFill which marks single cell O(1) => O(N^2) 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 foreach // N loops foreach // N loops for 2 of cases you call floodFill which marks whole row O(N) not N^3 but only N^2 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 it is depth first...
function floodFill (rowNumber, columnNumber, matrix) { // count calls of floodFill // it will be 4*(N^2) const rowsLength = matrix.length; const columnsLength = rowsLength === 0 ? 0 : matrix[0].length; if ( rowNumber < 0 || rowNumber >= rowsLength ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "floodFill() {\n for(var i = 0; i < this.neighbourCells.length; i++){\n var neighbor = this.neighbourCells[i];\n if(neighbor != undefined){\n if (!neighbor.revealed && !neighbor.isFlag) {\n neighbor.reveal();\n }\n }\n } \n }", "floodFill (cols, rows, tiles, x, y, new_...
[ "0.7163418", "0.7126514", "0.7117742", "0.69789344", "0.6971832", "0.6911205", "0.6875998", "0.6735553", "0.66928613", "0.66239357", "0.6602049", "0.655903", "0.65468276", "0.6504308", "0.6472372", "0.6449347", "0.6410706", "0.6356745", "0.6339657", "0.6267157", "0.62524384",...
0.7816195
0
component that is going to display a list of expense items with their corresponding amount.
function List({expenses}) { return ( <div key={expenses.id}> <ListGroup> {expenses.map(item => ( <ListGroupItem key={item.id}> {item.name} - $ {item.amount} </ListGroupItem> ))} </ListGroup> </div> ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "renderExpense() {\n const expensesContainer = document.getElementById('expenses-container')\n\n const expenseHTML = this.expenses.map(expense => {\n const itemHTML = expense.items.map(i => i.tableHTML).join('')\n\n return expense.html(itemHTML)\n }).join('')\n expe...
[ "0.69176006", "0.6859366", "0.6691519", "0.66330856", "0.65359795", "0.6304801", "0.6122287", "0.6090452", "0.60217184", "0.5954601", "0.5953174", "0.5903667", "0.5897679", "0.5886625", "0.5847629", "0.5828215", "0.5803589", "0.57880163", "0.5765008", "0.5764018", "0.576262",...
0.72462183
0
saves a hypothesis (concept map) to firebase. based on ones condition, there may be more than one hypothesis, so there is a 'whichHypo' param
function logData2(ivBubble, whichHypo) { let log = {}; let currentPrediction; let currentPredictionValue; if ("initial" === whichHypo) { currentPrediction = "first"; currentPredictionValue = firstPrediction; } else if ("opposite" === whichHypo) { currentPrediction = "opposite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function savePhrase (app, phrase) {\n setData(app, Object.assign({}, getData(app), {\n lastPhrase: Object.assign({}, getLastPhrase(app), _.omitBy(phrase, _.isUndefined)),\n }));\n}", "function saveSituation(req, res){\n\t//check if referenced id of thing exists\n\tqueryThingAndTemplate(req.body.thing,\n\t\t...
[ "0.54448044", "0.5385643", "0.50809264", "0.5031052", "0.5023263", "0.49540004", "0.48055553", "0.47818452", "0.4770181", "0.47397655", "0.4736174", "0.47300756", "0.4729492", "0.4725941", "0.47195247", "0.47144532", "0.4698205", "0.4678333", "0.46646392", "0.46512544", "0.46...
0.60950106
0
perhaps a bad name. a button with an arrow image, not to be confused with actual arrows
function createArrowButton(x, name, direction) { let scaling = 0.5; let normal = new createjs.Bitmap(queue.getResult("orangeBtn")).set({ scaleX: scaling, scaleY: scaling }); let imgHeight = normal.image.height * scaling; let hover = new createjs.Bitmap(queue.getResult("yellowBtn")).set({ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addArrow(dir, right, top, offset) {\n $(\"<img class='button' src='../static/arrow-\" + dir + \".gif' style='right:\" + right + \"px;top:\" + top + \"px'>\")\n .appendTo(placeholder)\n .click(function (e) {\n e.preventDefault();\n plot.pan(offset);\n });\n}", ...
[ "0.67824954", "0.65855426", "0.6341641", "0.62986195", "0.62836796", "0.625777", "0.62235296", "0.622029", "0.6184994", "0.6169441", "0.6125584", "0.6118095", "0.6108771", "0.6069183", "0.6061732", "0.60548073", "0.6050674", "0.6043342", "0.60427594", "0.60392857", "0.6037736...
0.7146468
0
remove an arrow with its label
function removeArrowAndLabel(arrow) { if (arrow != null && arrow != undefined) { arrowz = arrowz.filter((item) => item !== arrow); stage.removeChild(arrow); //stage.removeChild(arrow.label); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteSelectedArrow() {\n // TODO diagram: delete selected arrow\n if (selectArrow != null) {\n //set selectedArrow unselected (css)\n selectArrow == null;\n }\n }", "static removeArrow(element /*: number */) {\n $('#remove-arrow-button').prop('disabled...
[ "0.6973262", "0.69462115", "0.68515116", "0.68041223", "0.6449545", "0.6358104", "0.6329552", "0.62418795", "0.62121767", "0.615061", "0.59755886", "0.59579843", "0.595613", "0.59413165", "0.5889385", "0.58551335", "0.5844989", "0.5843931", "0.579486", "0.5775243", "0.5768159...
0.7973121
0
Called when the college is changed. Loads the departments for the school from the browse ajax handler.
function collegeOnChange() { // Clear out the list of departments var departments = $("#department"); departments.children().remove(); var school = $("#college").val(); var term = $("#term").val(); // If the school selected is 'all', then back out if(school == 'any') { $("<option va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showDepartments( facult ) \n{ \n\tvar ajax = new XMLHttpRequest();\t \n\tajax.onreadystatechange = function() \n\t{\n\t\t\n\t\tif (ajax.readyState == 4) \n\t\t{\n\t\t\tif (ajax.status == 200) \n\t\t\t{\n\t\t\t\t//----------------------------------- Update goes here -----------------------------\n\t\...
[ "0.6485558", "0.61632615", "0.6162418", "0.60755414", "0.59996796", "0.5832345", "0.58025706", "0.5667891", "0.5608234", "0.5603723", "0.55681896", "0.55652255", "0.5530171", "0.55269223", "0.5522669", "0.5496396", "0.5462863", "0.54366994", "0.54340076", "0.5425229", "0.5402...
0.720309
0
Called when the term field changes. Reloads the list of schools.
function termOnChange() { // Do we have a list of schools cached? if(schoolCache == null) { // Schools haven't been cached. Grab them then call back here $.post("./js/browseAjax.php", {action: "getSchools"}, function(d) { // Error check if(d.error != undefined && data.err...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSchools() {\n document.getElementById(\"places-list\").innerHTML = \"\";\n searchWord = \"school\";\n initMap()\n}", "function getSchools() {\n setLoading(true)\n ref.onSnapshot((querySnapshot) => {\n const items = []\n querySnapshot.forEach((document) => {\n items.pus...
[ "0.57438326", "0.5698144", "0.52835774", "0.5233471", "0.523292", "0.5196886", "0.5194061", "0.5170969", "0.50604373", "0.504992", "0.5045877", "0.49689454", "0.49429938", "0.4935542", "0.49120948", "0.48963198", "0.48604724", "0.48462734", "0.48250556", "0.4788737", "0.47852...
0.6423026
0
Sorts schools based on the property given Adapted from code at:
function sortSchools(prop) { schoolCache = schoolCache.sort(function(a, b) { return (a[prop] > b[prop]); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sortsch(sch){\n\tsch.sort(function(a, b){if(b.d < a.d || (b.d == a.d && b.s < a.s)) return 1; return -1;});\n\treturn sch;\n}", "function GetSortOrder(prop) {\n return function (a, b) {\n if (a.district[prop] > b.district[prop]) {\n return -1;\n } else if (a.d...
[ "0.6148854", "0.5750809", "0.5745352", "0.57147074", "0.56609553", "0.5639495", "0.56079966", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", "0.5593234", ...
0.7848091
0
Called when the anyDays checkbox is checked/unchecked. Toggles the enabled status of the specific day checkboxes
function toggleDaysAny(field) { // Grab the days checkboxes var days = $(".days"); // Are we hiding or showing if(field.checked) { // Hide them all! days.attr("disabled", "disabled"); } else { // Show them all! days.removeAttr("disabled"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function event_day_status() {\n\tif( $(\"#event_all_day\").is(\":checked\")){\n\t\tblock_hours_event();\n\t} else {\n\t\tunblock_hours_event();\n\t}\n\n\tfunction unblock_hours_event(){\n\t\t$('#event_starts_at_4i').attr('disabled', false);\n\t\t$('#event_starts_at_5i').attr('disabled', false);\n\t\t$('#event_ends...
[ "0.68664265", "0.648683", "0.64466536", "0.6390497", "0.6300356", "0.62197053", "0.62190837", "0.6152257", "0.61442673", "0.6135004", "0.61074054", "0.60605645", "0.60375184", "0.5989403", "0.59717417", "0.59570295", "0.5956766", "0.595205", "0.5949958", "0.5939956", "0.59380...
0.73634595
0
Called when the anyTimes checkbox is checked/unchecked. Toggles the enabled status of the specific time checkboxes
function toggleTimesAny(field) { var times = $(".times"); // Are we hiding or showing? if(field.checked) { // Hide them all! times.attr("disabled", "disabled"); } else { // Show them all! times.removeAttr("disabled"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function f_toggle_real_time(real_time, real_unit, real_checkbox, graphs_div, date_from, time_from, date_until, time_until, checkbox_class, interval_array){\n $(real_time).attr('disabled','disabled');\n $(real_unit).attr('disabled','disabled');\n $(real_checkbox).click(function() {\n var $this = $(this);\n ...
[ "0.66147107", "0.6566306", "0.6534556", "0.6531169", "0.646911", "0.6330451", "0.6208456", "0.61949736", "0.6178201", "0.6160158", "0.61401105", "0.6137843", "0.612874", "0.6124215", "0.6115571", "0.61019206", "0.6089908", "0.60856366", "0.60731095", "0.6059125", "0.5973795",...
0.7203133
0
Returns promise containing an integer which should be a new key for the soon to be added book.
async function getNewKey(){ let db = firebase.database(); let ref = db.ref("books"); let result = await ref.once("value") .then ( snap => { return newKey = snap.numChildren(); }) .catch( error => { console.log(error); }) return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function newKey() {\n return new Promise(function(resolve) {\n Minima.cmd('keys new', function(res) {\n if (res.status) {\n let key = res.response.key.publickey;\n resolve(key); \n }\n })\n });\n}", "add (key, promise) {\n let self = this\n self.pending +...
[ "0.6346839", "0.62341607", "0.61883503", "0.61781126", "0.5999449", "0.57529545", "0.5718093", "0.5678772", "0.56513995", "0.56284726", "0.5530141", "0.5498408", "0.5446051", "0.5393409", "0.5384482", "0.5382156", "0.5373768", "0.536119", "0.5351243", "0.5340582", "0.53356385...
0.66717106
0
Update book with given existing isbn in database, property and value
function updateBook(isbn, property, value){ let db = firebase.database(); let ref = db.ref("books"); getBookObj(isbn) .then(result => { let bookId = Object.keys(result)[0] console.log(bookId) let data = result[bookId]; data[property] = value ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update(userId, data) {\n\tvar query = { creator: userId, isbn: data.isbn };\n\treturn CommonService.findOneAndUpdate(Book, query, data);\t\n}", "function linkBookDataToISBN(book) {\n const isbn = 97812300333; // dummy for now. in the future this'll use a library or package to get ibsn data\n book.isbn...
[ "0.6654364", "0.64518976", "0.6434429", "0.6395621", "0.63160664", "0.6308665", "0.6276079", "0.61650926", "0.6091036", "0.6048134", "0.6035753", "0.60064846", "0.5964413", "0.5915949", "0.5909324", "0.59016156", "0.5854359", "0.57613593", "0.5714837", "0.5682346", "0.5668385...
0.7092565
0
Check if an object exists
function exists(obj){ if (obj){ return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function objectExists(obj)\n{\n if (obj == null || typeof(obj) == \"undefined\")\n return false;\n\n return true;\n}", "function exists (obj){\n if (typeof (obj) != \"undefined\" && obj != null)\n return true;\n\n return false;\n}", "function doesObjectExists(obj) {\n\treturn ...
[ "0.8051905", "0.77397764", "0.7524251", "0.7286148", "0.6904596", "0.68300074", "0.6806214", "0.6769282", "0.66442865", "0.662964", "0.66218466", "0.65606236", "0.65606236", "0.65606236", "0.65606236", "0.65606236", "0.65606236", "0.65606236", "0.65606236", "0.65606236", "0.6...
0.82406974
0
Gets copy of ctrl.version without `ui` property
function getVersionCopy() { return angular.copy(lodash.omit(ctrl.version, 'ui')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get version() {\n return this._version;\n }", "get version() {\n\t\treturn this.__version;\n\t}", "get version() {\n\t\treturn this.__version;\n\t}", "get version() {\n\t\treturn this.__version;\n\t}", "get version () {\n\t\treturn this._version;\n\t}", "get version () {\n\t\treturn this._version;\n\...
[ "0.57127064", "0.560373", "0.560373", "0.560373", "0.5592441", "0.5592441", "0.5592441", "0.5592441", "0.5592441", "0.5592441", "0.5544222", "0.5544222", "0.5543798", "0.5543198", "0.5494449", "0.5449677", "0.5449677", "0.5420901", "0.5416769", "0.5416155", "0.54043067", "0...
0.86345947
0
Pulls function status. Periodically sends request to get function's state, until state will not be 'ready' or 'error'
function pullFunctionState() { lodash.set(lodash.find(ctrl.navigationTabsConfig, 'status'), 'status', 'building'); interval = $interval(function () { ctrl.getFunction({metadata: ctrl.version.metadata, projectID: ctrl.project.metadata.name}) .then(function (re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async main() {\n const statusUrl = this.apiVersion === 'v2' ? `http://${this.ip}/api/v2/status` : `http://${this.ip}:8080/api/v1/status`;\n // create objects\n const promises = [];\n for (const obj of utils_1.generalAPIStates) {\n const id = obj._id;\n // use exten...
[ "0.6498002", "0.6375608", "0.6344021", "0.62060976", "0.61345", "0.6096986", "0.6028244", "0.60011125", "0.5977452", "0.5949609", "0.5940612", "0.5931261", "0.5915406", "0.58988506", "0.5882329", "0.5877124", "0.58665943", "0.58617383", "0.5852189", "0.58501583", "0.58500123"...
0.75484884
0
Sets function event as selected by name
function setEventAsSelected(name) { ctrl.selectedFunctionEvent = lodash.find(ctrl.functionEvents, ['name', name]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onSelect(event) {}", "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() { }", "function SelectionChange() { }", "selectionChangeHandler (event) {\n const target = this.activeElement;\n ...
[ "0.6668895", "0.66064566", "0.66064566", "0.66064566", "0.66064566", "0.6454385", "0.6454385", "0.6051531", "0.6039129", "0.5998093", "0.59811103", "0.59425664", "0.5870264", "0.5820955", "0.5801517", "0.57990944", "0.5785068", "0.57446", "0.57300067", "0.57179874", "0.570860...
0.8346712
0
Authenticate user to find out the user's final WebID string account ( bool dom (append info to dom)
function authWebID(account, dom) { if (dom) { var d = document.querySelector("webid-signup"); } if (account.lastIndexOf('/') < 0 || account.lastIndexOf('/') < account.length - 1) { account = account + '/'; } var xhr = new XMLHttpRequest(); xhr.open("HEAD", account, true); xhr.withCredentials = tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function populate(user,pass) {\r\n if(document.URL.indexOf('https://auth.ucla.edu/index.php') > -1) {\r\n if(document.getElementsByTagName('input').item(0).value=='') {\r\n document.getElementsByTagName('input').item(0).value=user;\r\n document.getElementsByTagName('input').item(1)....
[ "0.59497446", "0.5795712", "0.5735997", "0.5735687", "0.56901276", "0.56275177", "0.56261116", "0.56074417", "0.5598768", "0.55866766", "0.55675673", "0.55400217", "0.5521265", "0.5495148", "0.54807323", "0.54579616", "0.5455558", "0.5437263", "0.539061", "0.53723335", "0.536...
0.7524641
0
Finish setting up the account string WebID ( string account ( bool dom (append info to dom)
function finishAccount(webid, account, dom) { if (dom) { var d = document.querySelector("webid-signup"); d.$.finishlogin.hidden = true; } var wsCount = { counter: 0, webid: webid, account: account }; workspaces.forEach(function(ws) { if (dom) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function authWebID(account, dom) {\n if (dom) {\n var d = document.querySelector(\"webid-signup\");\n }\n if (account.lastIndexOf('/') < 0 || account.lastIndexOf('/') < account.length - 1) {\n account = account + '/';\n }\n\n var xhr = new XMLHttpRequest();\n xhr.open(\"HEAD\", account, true);\n xhr.w...
[ "0.6787668", "0.5907191", "0.5877989", "0.58728844", "0.5809372", "0.5673237", "0.56451213", "0.55702454", "0.5526727", "0.54897", "0.5466822", "0.54247576", "0.5411756", "0.54002225", "0.5359526", "0.5350763", "0.533134", "0.52982146", "0.5288204", "0.52800906", "0.52800643"...
0.7406837
0
Set acls for a given resource string uri ( string aclURI ( string WebID ( bool dom (append info to dom)
function setACL(uri, aclURI, webid, ws, dom) { if (dom) { var d = document.querySelector("webid-signup"); d.$.profilestatus.querySelector('#acl'+ws).hidden = false; } var g = new $rdf.graph(); // Owner ACLs g.add($rdf.sym("#owner"), RDF("type"), WAC('Authorization')); g.add($rdf.sym("#owner"), WAC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function setAgentAccess(resourceUrl, webId, access, options) {\n // TODO: Change the standard getAgentAccess signatures to all take a T extends WithAcl\n const resourceInfo = await getResourceInfo(resourceUrl, options);\n const acr = await getResourceAcr(resourceInfo, options);\n if (acr === null) {\n ...
[ "0.50055844", "0.48900002", "0.48057833", "0.48030937", "0.47793207", "0.47671703", "0.4665652", "0.46217367", "0.46024013", "0.45891738", "0.45682397", "0.4560782", "0.4546548", "0.45396847", "0.4519128", "0.44968766", "0.44709924", "0.44554093", "0.44358033", "0.442399", "0...
0.6674466
0
Create a new workspace string ws (workspace name e.g. Friends) object wsCount (workspace counter object) string WebID ( string account ( bool dom (append info to dom)
function createWS(ws, wsCount, webid, account, dom) { if (dom) { var d = document.querySelector("webid-signup"); d.$.profilestatus.querySelector('#'+ws).hidden = false; } var uri = account+ws+'/'; var xhr = new XMLHttpRequest(); xhr.open("PUT", uri, true); xhr.setRequestHeader("Content-Type", "text...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createNewWorkspace(wsName) {\n\t$.ajax({\n\t\turl : serverURL + \"workspaces/\",\n\t\tmethod : 'POST',\n\t\tcontentType : \"application/json; charset=utf-8\",\n\t\tdataType : 'json',\n\t\txhrFields : {\n\t\t\twithCredentials : true\n\t\t},\n\t\tdata : JSON.stringify({\n\t\t\t\"name\" : wsName\n\t\t}),\n\t...
[ "0.6560316", "0.6314583", "0.587164", "0.5810842", "0.5709898", "0.5683646", "0.5456723", "0.5410312", "0.5369463", "0.5337855", "0.5251659", "0.51190275", "0.5092196", "0.50845784", "0.50772005", "0.50547355", "0.50451356", "0.500023", "0.49692506", "0.4948963", "0.49473998"...
0.78241473
0
Create the preferences file string WebID ( string account ( bool dom (append info to dom)
function createPref(webid, account, dom) { console.log("Creating preferences"); var exists = false; if (dom) { var d = document.querySelector("webid-signup"); d.appendElement(d.$.profilestatus, '<p>Updating preferences file...<core-icon id="prefdone" icon="done" class="greencolor" hidden></core-icon></p>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writePref(webid, prefURI, graph, exists, account, dom) {\n if (dom) {\n var d = document.querySelector(\"webid-signup\"); \n }\n var xhr = new XMLHttpRequest();\n xhr.open(\"PUT\", prefURI, true);\n xhr.setRequestHeader(\"Content-Type\", \"text/turtle\");\n xhr.withCredentials = true;\n xhr.s...
[ "0.7215902", "0.64827913", "0.6456684", "0.6453301", "0.6434961", "0.62849855", "0.59681165", "0.59270155", "0.59176856", "0.5798054", "0.5794138", "0.57654524", "0.5715872", "0.5696866", "0.5695039", "0.5690748", "0.56888384", "0.5668175", "0.5662354", "0.56347865", "0.56290...
0.7936192
0
update WebID profile to include the preferences file string WebID ( string prefURI ( bool dom (append info to dom)
function updateProfile(webid, prefURI, account, dom) { if (dom) { var d = document.querySelector("webid-signup"); d.appendElement(d.$.profilestatus, '<p>Updating WebID profile...<core-icon id="profdone" icon="done" class="greencolor" hidden></core-icon></p>'); } var g = new $rdf.graph(); var kb = new $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createPref(webid, account, dom) {\n console.log(\"Creating preferences\");\n\n var exists = false;\n if (dom) {\n var d = document.querySelector(\"webid-signup\");\n d.appendElement(d.$.profilestatus, '<p>Updating preferences file...<core-icon id=\"prefdone\" icon=\"done\" class=\"greencolor\" hi...
[ "0.76784724", "0.7257478", "0.5829992", "0.58004415", "0.56804687", "0.56389016", "0.5616219", "0.55869263", "0.5555636", "0.5534816", "0.55322784", "0.5510124", "0.5491619", "0.5478548", "0.5429031", "0.53840125", "0.53203773", "0.5319796", "0.52788126", "0.52621996", "0.525...
0.8139104
0
parse a Link header
function parseLinkHeader(header) { var linkexp = /<[^>]*>\s*(\s*;\s*[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*")))*(,|$)/g; var paramexp = /[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*"))/g; var matches = header.match(linkexp); var rels = new Object(); fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parse_link_header(header) {\n if (header.length == 0) {\n throw new Error(\"input must not be of zero length\");\n }\n\n // Split parts by comma\n var parts = header.split(',');\n var links = {};\n // Parse each part into a named link\n _.each(parts, function(p) {\n var section = p.split(';')...
[ "0.7758018", "0.76994115", "0.76932997", "0.7682356", "0.7463413", "0.7430544", "0.7304047", "0.6598767", "0.62597436", "0.62597436", "0.6220257", "0.61616313", "0.6068079", "0.6068079", "0.6068079", "0.6068079", "0.6039143", "0.6030388", "0.5803479", "0.57749486", "0.5696497...
0.7911967
0
postBlog function gotBlog This method is called when the XML file representing a posted blog is retrieved from the database. Input: xmlDoc response from web server as XML document
function gotBlog(xmlDoc) { var evtForm = document.evtForm; var root = xmlDoc.documentElement; var messageElt = document.getElementById('PostBlog'); var msg = ""; if (root && root.nodeName == 'blog') { for(var i = 0; i < root.childNodes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getBlog(bid, callback) {\n var request = gapi.client.request({\n method: 'GET',\n path: pathBlogs + '/' + bid\n })\n // Execute the API request.\n request.execute((result) => {\n\n const blog = new Blog(result.id, result.name, result.posts.totalItems, result.published, resu...
[ "0.6340995", "0.63234544", "0.6244981", "0.62443936", "0.6240316", "0.6175653", "0.5987401", "0.5940906", "0.5797016", "0.5721362", "0.56966317", "0.56621724", "0.5643447", "0.5635933", "0.5550684", "0.5526032", "0.552234", "0.5485573", "0.54578304", "0.5449696", "0.54453367"...
0.7741634
0
function gotBlog function noBlog This method is called if there is no blog script on the web server.
function noBlog() { alert('Names.js: noBlog: ' + 'script "postBlogXml.php" not found on web server'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addBlog() {\n\t\t\t//Check if there is a blog module on the page\n\t\t\tif( $('#modRotatingBlog').length ) {\n\t\t\t\tvar blogPosts = new Array();\n\t\t\t\tvar blogURL = $('#modRotatingBlog div.viewall a').attr('href');\n\t\t\t\t/* TODO: Check if a trailing / is on the href */\n\t\t\t\tblogURL += \"feed/j...
[ "0.66966933", "0.6457332", "0.64024013", "0.6349183", "0.6060238", "0.59530926", "0.5925362", "0.5919763", "0.59073305", "0.58351153", "0.5814151", "0.5805276", "0.57636636", "0.57444626", "0.5723599", "0.57174885", "0.57013893", "0.57013893", "0.56674486", "0.56638503", "0.5...
0.67684865
0
function noBlog function noDelBlog This method is called if there is no blog script on the web server.
function noDelBlog() { alert('Names.js: noDelBlog: ' + 'script "deleteBlogXml.php" not found on web server'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function noBlog()\n{\n alert('Names.js: noBlog: ' +\n 'script \"postBlogXml.php\" not found on web server');\n}", "function delBlog()\n{\n var form = this.form;\n var blid = this.id.substring(5);\n\n var parms = {\"blid\"\t: blid};\n\n // invoke script to update ...
[ "0.6766886", "0.6550673", "0.6334167", "0.62430614", "0.6066718", "0.59043247", "0.57305056", "0.5712631", "0.5690453", "0.56854934", "0.56498206", "0.5586672", "0.55783755", "0.5479623", "0.5453069", "0.5445524", "0.5424013", "0.542338", "0.54122573", "0.5404197", "0.5382401...
0.6561536
1
function noDelBlog function changePattern This method is called if the user changes the regular expression pattern. Input: this
function changePattern() { var pattern = this.value; if (pattern.length > 0) { // invoke script to validate regular expression pattern var options = {"timeout" : false}; var url = '/validateSqlRegexpPatternJSON.php?pattern=' + pattern; HTTP.get(url, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Pattern() {\n }", "function RegExpPattern(){\n\t//\n}", "function HRchangePattern(e) {\r\n var pattern = $(this).attr('rel');\r\n HRapplyPattern(pattern);\r\n\r\n // Higlight item\r\n HRhighlightPatternItem(pattern);\r\n\r\n // Save theme in a cookie\r\n HRsetHrConfig('pattern', pattern);...
[ "0.6285877", "0.6166523", "0.5870007", "0.58256423", "0.56477934", "0.5631415", "0.5615913", "0.5546615", "0.55284244", "0.55284244", "0.55284244", "0.5527274", "0.5527274", "0.550791", "0.550791", "0.5474236", "0.5453418", "0.54273456", "0.5413456", "0.53393835", "0.53034586...
0.6541045
0
function changePattern function gotTestPattern This method is called to process the response to testing the name pattern against the SQL server implementation. Parameters: obj Javascript object returned from server
function gotTestPattern(obj) { if (obj === null) { alert('Names.js:gotTestPattern: error response object is null'); return; } if (obj.msg) { let pattern = obj.parms.pattern; let message = document.getElementById('invalidPattern').innerHTML; message ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changePattern()\n{\n var pattern = this.value;\n if (pattern.length > 0)\n {\t\t// invoke script to validate regular expression pattern\n var options = {\"timeout\" : false};\n var url = '/validateSqlRegexpPatternJSON.php?pattern=' + pattern;\n HTTP.g...
[ "0.6773667", "0.5136888", "0.508923", "0.49918696", "0.49514058", "0.49345195", "0.49026573", "0.48547608", "0.4830587", "0.46615458", "0.46571925", "0.46358925", "0.46358925", "0.46153703", "0.46110672", "0.4608803", "0.460847", "0.46046945", "0.45791632", "0.4569774", "0.45...
0.7015581
0
function editBlog function delBlog This method is called if the user requests to delete the blog message. Input: this
function delBlog() { var form = this.form; var blid = this.id.substring(5); var parms = {"blid" : blid}; // invoke script to update blog and return XML result HTTP.post('/deleteBlogXml.php', parms, gotBlog, noDelBlog); } // function de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteBlog()\n{\n var form = this.form;\n var blid = this.id.substring(6);\n // get the subdistrict information file\n parms = {'id' : blid};\n\n HTTP.post(\"deleteBlogXml.php\",\n parms,\n gotDelete,\n noDelete);\n return true;\n}", "function DeleteBlo...
[ "0.7194625", "0.70990705", "0.68654734", "0.6708351", "0.6665636", "0.6649088", "0.6614516", "0.64765203", "0.64762336", "0.64615744", "0.6445992", "0.6386545", "0.6379367", "0.62433016", "0.6094247", "0.6071231", "0.60681033", "0.6051659", "0.60465956", "0.60274297", "0.5998...
0.795838
0
returns the symbol name for the detected OS (font awesome)
function get_symbol(bot){ var symbol = "fa-question"; if (bot.OS){ if (bot.OS.toLowerCase().indexOf("linux") >= 0){ symbol = "fa-linux"; } if (bot.OS.toLowerCase().indexOf("unix") >= 0){ symbol = "fa-terminal"; } if (bot.OS.toLowerCase().indexOf("w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getIconForDevice(system) {\n if (system == \"WIN\") {\n return \"fa-windows\";\n } else if (system == \"LINUX\") {\n return \"fa-linux\";\n } else {\n return \"fa-question-circle\";\n }\n}", "static mojangFriendlyOS(){\n const opSys = process.platform\n if ...
[ "0.73090035", "0.6631723", "0.64582646", "0.61408937", "0.6079787", "0.60009724", "0.5928949", "0.5816119", "0.5813086", "0.58125436", "0.5783732", "0.57496965", "0.571349", "0.5683831", "0.5683402", "0.5667167", "0.5660771", "0.56589293", "0.5657289", "0.56542695", "0.555627...
0.8036188
0
sets the data in the single bot modal. Is set on popup and every second when the modal is up
function set_modal_data(i, bot){ var q = ""; $.each(bot.cmd_queue, function(j, cmd){ q += j+1 + ". " + cmd + "\n"; }); $('#cmdq').html(q); $('#botid').val(i); $('#lastResponse').html("Current Command: " + bot.current_command + "\nLast Command: " + bot.last_command + "\nResponse:\n" + bot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setModalTimestamp(timestamp) {\n document.querySelector(\".modal\").dataset.timestamp = timestamp;\n}", "async function createInvAdminModal() {\n const modal = await modalController.create({\n component: \"inv-admin-modal\",\n cssClass: \"invAdminModal\",\n });\n\n var settings = {\n \"ur...
[ "0.6399822", "0.6352963", "0.62802917", "0.6206077", "0.61722064", "0.61598164", "0.6126572", "0.61215985", "0.6037787", "0.6032013", "0.6029678", "0.5995191", "0.5988799", "0.5986599", "0.59787697", "0.59647644", "0.59515226", "0.592438", "0.59174293", "0.589613", "0.5880173...
0.67681986
0
get request to kill bot
function kill_bot(e){ $.ajax({ url: '/api/clients/kill/' + $('#botid').val(), type: 'GET', success: function (data, textStatus, xhr) { $('#modal-pop').modal('toggle'); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async kill() {\n // This currently doesn't do anything.\n }", "closeRequest () {\n\n let options = {\n hostname: this.hostname,\n port: this.port,\n agent: this.agent,\n path: '/close', \n method: 'GET',\n }\n let result = th...
[ "0.6525817", "0.6175701", "0.5976618", "0.5910508", "0.5883009", "0.5879605", "0.5825217", "0.5757616", "0.56914675", "0.5676838", "0.5653249", "0.564351", "0.56050056", "0.5592511", "0.5562089", "0.5535059", "0.5516891", "0.54548705", "0.5431254", "0.53986067", "0.53727734",...
0.6410148
1
run a get request for each checked bot to delete them
function delete_all_checked(e){ if (!confirm("Are you sure you want to delete all checked bots?")){ return; } $('input:checkbox[name="botcb"]:checked').each(function(){ $.ajax({ url: '/api/clients/delete/' + $(this).prop("value"), type: 'GET', }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function delete_cargoes(req) {\n\n let cargoes = await get_cargoes(req);\n console.log(cargoes);\n cargoes.items.forEach( async cargo => {\n console.log(\"deleting id: \" + cargo.id);\n const cargo_key = datastore.key([CARGO , parseInt(cargo.id, 10)]);\n return await datastore....
[ "0.65817153", "0.64274657", "0.6341908", "0.63270724", "0.6192523", "0.6060416", "0.604248", "0.5985545", "0.59400326", "0.58475155", "0.5739214", "0.56961864", "0.56940913", "0.56890315", "0.56811446", "0.56688756", "0.5667591", "0.56605494", "0.56199944", "0.5604078", "0.56...
0.6767474
0
run a get request for each checked bot to kill them
function kill_all_checked(e){ if (!confirm("Are you sure you want to kill all checked bots?")){ return; } $('input:checkbox[name="botcb"]:checked').each(function(){ $.ajax({ url: '/api/clients/kill/' + $(this).prop("value"), type: 'GET', }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function kill_bot(e){\n $.ajax({\n url: '/api/clients/kill/' + $('#botid').val(),\n type: 'GET',\n success: function (data, textStatus, xhr) {\n $('#modal-pop').modal('toggle');\n }\n });\n}", "function kill() {\n require('async-each')(kill.hooks, function each(fn, n...
[ "0.58769286", "0.5575871", "0.5558798", "0.55096054", "0.5502753", "0.54508644", "0.5438052", "0.5437344", "0.5386141", "0.53733736", "0.5336409", "0.53241223", "0.5323304", "0.5271545", "0.52706015", "0.5269888", "0.52492917", "0.5235835", "0.52259284", "0.5201479", "0.51865...
0.66332805
0
run a get request for each checked bot to clear their queues
function clearq_all_checked(e){ if (!confirm("Are you sure you want to clear the command queue of all checked bots?")){ return; } $('input:checkbox[name="botcb"]:checked').each(function(){ $.ajax({ url: '/api/clients/clearq/' + $(this).prop("value"), type: 'GET', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearAll() {\n catQueue = new Queue();\n dogQueue = new Queue();\n userQueue = new Queue();\n }", "_clean() {\n const queues = Object.values(this._queues);\n queues.forEach(dialQueue => {\n // Clear if the queue has reached max blacklist\n if (dialQueue.blackListed === Infinity...
[ "0.6497157", "0.6244256", "0.6228897", "0.6020381", "0.6001268", "0.5967716", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "0.5910903", "...
0.6690948
0
run a get request for each checked bot to run a command on all of them
function command_all_checked(e){ var cmd = prompt("What command would you like to run?"); $('input:checkbox[name="botcb"]:checked').each(function(){ $.ajax({ url: '/api/clients/cmd/' + $(this).prop("value"), type: 'POST', dataType: 'text', contentType: "ap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function updateAllByBot(bot, commands) {\n let oldCommands = await bot.getCommands(optActions);\n // console.log('WE GOT COMMANDS ~ SERVICE', commands);\n // console.log('OLD COMMANDS:', oldCommands[0].get());\n for (let i = 0; i < commands.length; i++){\n let command = commands[i];\n /...
[ "0.6111202", "0.60176265", "0.5970161", "0.5608891", "0.5577713", "0.5416839", "0.54141355", "0.54038906", "0.5402601", "0.539984", "0.53969216", "0.5395028", "0.5391799", "0.53678626", "0.53669673", "0.53498024", "0.53353155", "0.53103966", "0.53008455", "0.52980137", "0.529...
0.6399821
0
Move stars when the mouse moves
function mouseMove(event) { drawStarsMove(event.clientX, event.clientY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawStarsMove(mX, mY) {\r\n // Clear Canvas\r\n ctx.clearRect(0, 0, winWidth, winHeight);\r\n\r\n // Redraw all stars\r\n for(i=0; i<starCnt; i++) {\r\n // Calculate distance to mouse pointer\r\n xDist = mX - stars[i].x;\r\n yDist = mY - stars[i].y;\r\n xDist2 = xDi...
[ "0.7583829", "0.6926401", "0.6923636", "0.69215906", "0.689258", "0.6839603", "0.68264556", "0.6805493", "0.67225116", "0.6704211", "0.6685213", "0.65858084", "0.657068", "0.6522033", "0.64888334", "0.648229", "0.6455147", "0.64512366", "0.644405", "0.6438391", "0.64321446", ...
0.7401375
1
Draw stars dynamic with mouse movement
function drawStarsMove(mX, mY) { // Clear Canvas ctx.clearRect(0, 0, winWidth, winHeight); // Redraw all stars for(i=0; i<starCnt; i++) { // Calculate distance to mouse pointer xDist = mX - stars[i].x; yDist = mY - stars[i].y; xDist2 = xDist * xDist; yD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawStars() {\n translate(width / 2, height / 2);\n for (var i = 0; i < stars.length; i++) {\n stars[i].update();\n stars[i].show();\n }\n}", "function drawloop() {\n if (secondflag) {\n //allows the speed of the stars to increase depending on the y co-ordinates of the mouse ...
[ "0.7717083", "0.7407336", "0.7276333", "0.7216009", "0.7139461", "0.6979725", "0.6920747", "0.6860514", "0.6850513", "0.6821246", "0.6792892", "0.6773628", "0.6758398", "0.67334956", "0.67327976", "0.67174166", "0.6689382", "0.66850287", "0.66775167", "0.6675232", "0.6624789"...
0.77318424
0
Poll server for changes to the talks.
function waitForChanges () { request({ pathname: "talks?changesSince=" + lastServerTime }, function (error, response) { if (error) { setTimeout(waitForChanges, 2500); console.log(error.stack); } else { response = JSON.parse(response); displ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pollMessages() {\n getNewMessages();\n setTimeout(pollMessage, pollInterval);\n }", "function notifyObservers() {\n var properties = getProperties();\n if (hasUpdate) {\n powerResource.properties = properties;\n hasUpdate = false;\n\n debuglog('Send observe respon...
[ "0.6241986", "0.6135711", "0.6095827", "0.60710675", "0.5963956", "0.59513813", "0.5936128", "0.59283906", "0.5919839", "0.5892782", "0.58536315", "0.5820619", "0.57864106", "0.5779625", "0.5757232", "0.57509065", "0.57426625", "0.5722118", "0.57203", "0.5704201", "0.5702706"...
0.75781393
0
commonly used functions are defined here. /This function is used in users view and new_task view to sort project people before displaying them for selection in watchers view and in assignee dropdown
function sortProjectPeople(people) { //Build the collection and sort var userCollection = new Collections.Users; var cv = 0; var projectUsers = new Array(); _(people).each(function (person) { var user = Bkg.users.get(person.get('user_id')); if(user) { //Strange, user model is undefined for some of the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createTaskTable () {\n\ttasksOfInterest = new Array();\n\tlet selector = $('#taskSelector').val();\n\tconsole.log(\"taskSelector EQUALS \" , selector);\n\tconsole.log(\"TASKS WHILE CREATING TABLE == \", tasks);\n\ttasks.sort(function(a,b){\n\t\tif(a.assignee.name < b.assignee.name) return -1;\n\t\tif(a.as...
[ "0.6607032", "0.6587229", "0.6375745", "0.6243499", "0.6164529", "0.61599934", "0.61532265", "0.610601", "0.5956098", "0.59366286", "0.5892197", "0.5885631", "0.58838934", "0.5870199", "0.5869377", "0.58631134", "0.58480245", "0.58474326", "0.5839857", "0.5839857", "0.5838956...
0.6674716
0
Specifies a concept to be included or excluded.
get concept () { return this._concept; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get concept() {\n\t\treturn this.__concept;\n\t}", "function setRequiring(d) {\r\n config.requiring = d;\r\n // config.showModal = d;\r\n confirmChanges(true);\r\n }", "function shouldIncludeFeature(annotations, tags) {\n if (annotations.pending) return true;\n if (isTagged(tags.ignore, annotations...
[ "0.5303294", "0.44756252", "0.44558465", "0.4385689", "0.4354377", "0.42902952", "0.42879662", "0.42539698", "0.4134222", "0.411695", "0.4114937", "0.41126475", "0.4111083", "0.40656236", "0.40369582", "0.40361017", "0.4021746", "0.40098605", "0.39888817", "0.39497426", "0.39...
0.5374962
0
CMMN specific modeling rule
function CmmnRules(eventBus) { RuleProvider.call(this, eventBus); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function compileModel(){\n\tmodel.compile({\n\t\toptimizer: tf.train.sgd(0.1),\n\t\tloss: 'categoricalCrossentropy',\n\t\tmetrics: ['accuracy']\n\t});\n}", "function DesignModel(apc,seq,lab) {\n this.apc = apc;\n this.seq = seq;\n this.lab = lab||null;\n this.me1 = 0.0; // mfe for state 1\n this.me2 = 0.0; ...
[ "0.5446554", "0.5413265", "0.5319845", "0.5308117", "0.5306838", "0.52517813", "0.5081386", "0.50786614", "0.5073625", "0.5069952", "0.5052235", "0.5041471", "0.5002535", "0.49987277", "0.4998124", "0.4990005", "0.4929621", "0.4906617", "0.4867432", "0.48560512", "0.4831501",...
0.5528119
0
function to set bar charts function barChartSettings()
function barChartSettings(skillArr) { //console.log("setting the barchart...."); //svgcMargin = 40; //svgcSpace = 100; svgcMargin = 60; svgcSpace = 40; //svgcHeight = svg.height.baseVal.value - 2 * svgcMargin - svgcSpace; svgcHeight = svg.height.baseVal.value - 2 * svgcMargin - svgcSpace; svgcWidth = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function defineBarChart() {\n resetBarGlobalValues();\n //displaySavedCharts();\n $(\"#barchart_help_start\").addClass(\"hidden_toggle\");\n $(\"#bar_chart_define\").removeClass(\"hidden_toggle\");\n resetBarInputBooleanvalues();\n setupBarKeyEvents();\n}", "function barChartData(){\n barChartConfig = {\n\...
[ "0.7376327", "0.73137754", "0.72178763", "0.70023364", "0.69559515", "0.67144334", "0.66885096", "0.6617112", "0.6617089", "0.65159285", "0.64787096", "0.6468182", "0.6436318", "0.64329624", "0.64176863", "0.6415695", "0.6403031", "0.63868773", "0.6357861", "0.63467306", "0.6...
0.80225545
0
End of document.ready function Load all concept code records from sever via AJAX
function loadAllConceptCodes(){ var responseObj = {}; $.ajax({url: "conceptCode/ajaxGetAllConceptCodes", success: function(response){ responseObj = response; var responseLength = responseObj.length; if(responseLength > 0){ conceptCodeListDataStore.emptyConceptCodeArray(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadRDFAll_SchemaOrg() {\n $.ajax({\n url:\"/php/getschemaorg.php\",\n success:function(data){\n schemaorgComments = JSON.parse(data);\n\n console.log(\"Loaded RDF Schemaorg\");\n }\n }); \n}", "function loadTermsOfUseDetails() {\n $.ajax({...
[ "0.6532756", "0.6397419", "0.6261377", "0.62104744", "0.61603856", "0.61275685", "0.6075439", "0.6070837", "0.6057789", "0.6031632", "0.59602374", "0.59579915", "0.5941809", "0.59395254", "0.5925213", "0.5910283", "0.5910277", "0.59061503", "0.59038424", "0.58909667", "0.5879...
0.73703325
0
Filter concept codes by code system name selected in select input element
function filterCodeSysNameFromSelect(){ var selVal = $("select#select_filter_on_cs").val(); filterCodeSysName(selVal); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function searchCallingCode() {\n let filter = document.querySelector(\".divSeccondSelect\") //selecionando a div\n let select = document.querySelector('#inputSeccondSelect') //selecionando o campo select\n filter.style.display = 'block' //deixando a div visivel\n\n filter.querySelector('.labelText').innerHTML ...
[ "0.6570991", "0.6406708", "0.63561714", "0.61755544", "0.6148313", "0.6147914", "0.6011553", "0.6009006", "0.59361404", "0.5916691", "0.58426905", "0.58348256", "0.58273697", "0.5802217", "0.57855225", "0.57567686", "0.57532346", "0.575321", "0.5751877", "0.57115954", "0.5659...
0.6814393
0
Filter concept codes by code system version name selected in select input element
function filterCodeSysVersionNameFromSelect(){ var selVal = $("select#select_filter_on_cs_vs").val(); filterCodeSysVersionName(selVal); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filterCodeSysNameFromSelect(){\n\tvar selVal = $(\"select#select_filter_on_cs\").val();\n\tfilterCodeSysName(selVal);\n}", "function searchCallingCode() {\n let filter = document.querySelector(\".divSeccondSelect\") //selecionando a div\n let select = document.querySelector('#inputSeccondSelect') //se...
[ "0.63772184", "0.608807", "0.6008362", "0.5685407", "0.5656921", "0.5610278", "0.558553", "0.5579229", "0.55388737", "0.55079645", "0.5478469", "0.5462649", "0.54388833", "0.53811693", "0.53655756", "0.5358056", "0.5355535", "0.53283334", "0.53050107", "0.5278676", "0.5277493...
0.7261373
0
Filter concept codes by value set name selected in select input element
function filterValueSetNameFromSelect(){ var selVal = $("select#select_filter_on_valset_name").val(); filterValueSetName(selVal); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filterCodeSysNameFromSelect(){\n\tvar selVal = $(\"select#select_filter_on_cs\").val();\n\tfilterCodeSysName(selVal);\n}", "function filter_lijst(e) {\n var in_val = $x.trim($x(e.currentTarget).val().replace(/\\s+/g, '').toUpperCase()); // waarde een input element getrimmed\n var classnm = e.currentTa...
[ "0.6191639", "0.6162068", "0.6051402", "0.59934866", "0.59301084", "0.5862709", "0.5821212", "0.5795876", "0.5758611", "0.5750798", "0.5666329", "0.562918", "0.5627526", "0.55899924", "0.55853814", "0.5575845", "0.55660814", "0.55567896", "0.5540065", "0.5536694", "0.5529659"...
0.6657214
0
Change table header to indicate filtered results
function setHeaderForFilter(){ //Change table header text $('tr#conceptcodes_table_header').addClass("hidden"); $('tr#conceptcodes_filter_table_header').removeClass("hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setHeaderForNoFilter(){\n\t//Change table header text\n\t$('tr#conceptcodes_filter_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_table_header').removeClass(\"hidden\");\n}", "function setHeaderForSearchName(){\n\t//Change table header text\n\t$('tr#conceptcodes_table_header').addClass(\"hid...
[ "0.8008492", "0.753712", "0.7314922", "0.7248692", "0.7117722", "0.7084524", "0.6975627", "0.69160485", "0.6873479", "0.68088794", "0.68076116", "0.66702664", "0.6659934", "0.6636029", "0.6636029", "0.66035837", "0.6537138", "0.6537138", "0.6537138", "0.6537138", "0.6537138",...
0.830102
0
Change table header to indicate search by code results
function setHeaderForSearchCode(){ //Change table header text $('tr#conceptcodes_table_header').addClass("hidden"); $('tr#conceptcodes_filter_table_header').addClass("hidden"); $('tr#conceptcodes_namesearch_table_header').addClass("hidden"); $('tr#conceptcodes_codesearch_table_header').removeClass("hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setHeaderForSearchName(){\n\t//Change table header text\n\t$('tr#conceptcodes_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_filter_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_codesearch_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_namesearch_table_header').removeC...
[ "0.7984102", "0.75281185", "0.7472858", "0.6998958", "0.66925097", "0.6342136", "0.6325312", "0.6235151", "0.6188227", "0.6183849", "0.61828053", "0.6178651", "0.6178651", "0.6178651", "0.6178651", "0.6178651", "0.6178651", "0.6178651", "0.6178651", "0.6178651", "0.6178651", ...
0.82012796
0
Change table header to indicate search by name results
function setHeaderForSearchName(){ //Change table header text $('tr#conceptcodes_table_header').addClass("hidden"); $('tr#conceptcodes_filter_table_header').addClass("hidden"); $('tr#conceptcodes_codesearch_table_header').addClass("hidden"); $('tr#conceptcodes_namesearch_table_header').removeClass("hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setHeaderForSearchCode(){\n\t//Change table header text\n\t$('tr#conceptcodes_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_filter_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_namesearch_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_codesearch_table_header').removeC...
[ "0.70998615", "0.7048454", "0.70341206", "0.69135016", "0.6530692", "0.64521", "0.631665", "0.6316518", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.631416", "0.63033754", ...
0.79651135
0
Change table header to remove indication that table contains filtered results
function setHeaderForNoFilter(){ //Change table header text $('tr#conceptcodes_filter_table_header').addClass("hidden"); $('tr#conceptcodes_table_header').removeClass("hidden"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setHeaderForFilter(){\n\t//Change table header text\n\t$('tr#conceptcodes_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_filter_table_header').removeClass(\"hidden\");\n}", "function setHeaderForNoSearch(){\n\t//Change table header text\n\t$('tr#conceptcodes_codesearch_table_header').addClas...
[ "0.82367146", "0.7744183", "0.73606575", "0.72086835", "0.717495", "0.7159183", "0.70896155", "0.7072489", "0.700127", "0.6970434", "0.68527937", "0.6832613", "0.68164283", "0.65746003", "0.65327716", "0.647428", "0.6460133", "0.64594036", "0.6449922", "0.63851094", "0.638510...
0.8471697
0
Change table header to remove indication that table contains search results
function setHeaderForNoSearch(){ //Change table header text $('tr#conceptcodes_codesearch_table_header').addClass("hidden"); $('tr#conceptcodes_namesearch_table_header').addClass("hidden"); setHeaderForNoFilter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setHeaderForNoFilter(){\n\t//Change table header text\n\t$('tr#conceptcodes_filter_table_header').addClass(\"hidden\");\n\t$('tr#conceptcodes_table_header').removeClass(\"hidden\");\n}", "function setHeaderForSearchName(){\n\t//Change table header text\n\t$('tr#conceptcodes_table_header').addClass(\"hid...
[ "0.7785752", "0.7783054", "0.7516779", "0.7516531", "0.6838597", "0.68324834", "0.68069774", "0.67613316", "0.6594547", "0.6570096", "0.6500636", "0.64993095", "0.64865273", "0.6475626", "0.6458369", "0.6458369", "0.6458369", "0.6458369", "0.6458369", "0.6458369", "0.6458369"...
0.8158683
0
Reset BATCH UPLOAD select version dropdown
function resetBatchSelectVersionDropdown(){ $('select#batch_select_version').empty(); appendOptionToSelect("batch_select_version", "", "- Please Select -", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hi_reset_builder() {\n var data = $.parseJSON($('#hi-def-tpl').text());\n $('#hi-tpl-id').val('');\n $('#hi-tpl-id-title').empty().text($('#hi-tpl-id-title').data('text'));\n $('.hi-preview-sizes').find('option:selected').removeAttr('selected');\n $('.hi-preview-sizes')....
[ "0.620607", "0.61486864", "0.61350083", "0.6082133", "0.60420036", "0.6019684", "0.60116446", "0.5946095", "0.58845747", "0.5840519", "0.5806672", "0.58018154", "0.57893646", "0.57008433", "0.5700732", "0.5674228", "0.5655968", "0.5646831", "0.5632332", "0.56248224", "0.56186...
0.77697605
0
Reset select filter on code system dropdown
function resetSelectFilterOnCs(){ $('select#select_filter_on_cs').val(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetSelectFilterOnCsVs(){\n\t$('select#select_filter_on_cs_vs').empty();\n\tappendOptionToSelect(\"select_filter_on_cs_vs\", \"\", \"- Please Select -\");\n}", "resetDropdown(){\r\n this.filterString = this.currentTextValue;\r\n this.unfilter();\r\n if ( this.isOpened ){\r\n ...
[ "0.8024635", "0.7579005", "0.7556585", "0.7441496", "0.72942173", "0.72710055", "0.720931", "0.7027372", "0.6933379", "0.6880645", "0.6878327", "0.6864909", "0.6766395", "0.67477685", "0.67026377", "0.666353", "0.6661335", "0.66347045", "0.6627049", "0.66000307", "0.6593491",...
0.83379495
0
Reset select filter on code system version dropdown
function resetSelectFilterOnCsVs(){ $('select#select_filter_on_cs_vs').empty(); appendOptionToSelect("select_filter_on_cs_vs", "", "- Please Select -"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetBatchSelectVersionDropdown(){\n\t$('select#batch_select_version').empty();\n\tappendOptionToSelect(\"batch_select_version\", \"\", \"- Please Select -\", true);\n}", "function resetSelectFilterOnCs(){\n\t$('select#select_filter_on_cs').val(\"\");\n}", "function filterCodeSysVersionNameFromSelect(...
[ "0.73455083", "0.7290905", "0.71045905", "0.65159494", "0.6489226", "0.6414901", "0.64059174", "0.63880163", "0.63504225", "0.6288766", "0.62224925", "0.6125926", "0.6115475", "0.60531104", "0.6028758", "0.59833646", "0.59812057", "0.59693533", "0.5945992", "0.5944496", "0.59...
0.7506585
0
Reset select filter on value set name dropdown
function resetSelectFilterOnValSetName(){ $('select#select_filter_on_valset_name').val(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetSelectFilterOnCs(){\n\t$('select#select_filter_on_cs').val(\"\");\n}", "function resetSelectFilterOnCsVs(){\n\t$('select#select_filter_on_cs_vs').empty();\n\tappendOptionToSelect(\"select_filter_on_cs_vs\", \"\", \"- Please Select -\");\n}", "function resetFilters() {\n $(\"#category_price_fil...
[ "0.7837587", "0.7602014", "0.7438269", "0.73271984", "0.7284683", "0.69826496", "0.6906897", "0.6872618", "0.68150294", "0.67722523", "0.67671704", "0.673991", "0.66732043", "0.66677326", "0.6650999", "0.6633305", "0.66120064", "0.66117525", "0.65938646", "0.655667", "0.65254...
0.84535646
0
Clear search by concept code code input box
function clearSearchConceptCodeCodeInput(){ $('input#txt_search_conceptcode_code').val(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearSearchConceptCodeNameInput(){\n\t$('input#txt_search_conceptcode_name').val(\"\");\n}", "function clearSearchContents() {\n\tconsole.log(\"**> ClearSearchContents\");\n\tsearchInput.value = \"\";\n}", "function clear () {\n self.searchTerm = '';\n search();\n }", "f...
[ "0.79327947", "0.7417881", "0.724225", "0.72301435", "0.722626", "0.720872", "0.71933055", "0.7114727", "0.70881337", "0.70736194", "0.706124", "0.7047497", "0.69578344", "0.6953709", "0.6946397", "0.69366086", "0.69362813", "0.69173", "0.6900239", "0.68966734", "0.68961227",...
0.8207645
0