Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
adds points for blog posts
function updateBlogging(){ subBlogPts = ($("#substantial-blogposts").val())*5000; shortBlogPts = ($("#short-blogposts").val())*1000; blogTotalPts = blogPts + subBlogPts + shortBlogPts; if (blogTotalPts > 60000){ blogTotalPts = 60000; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addPost(post) {\n //const feedList = document.getElementById('');\n // creates list container for the post\n var img = null;\n if (post.image != null) {\n img = document.createElement('img');\n img.className = 'post image';\n img.src = 'data:image/jpeg;base64,' + post.imag...
[ "0.62765896", "0.6036533", "0.60043186", "0.5964818", "0.5925591", "0.59120744", "0.5853963", "0.57919145", "0.57334745", "0.5725142", "0.57153654", "0.5664552", "0.56514466", "0.5630682", "0.56275594", "0.5604955", "0.5596632", "0.5592778", "0.55797577", "0.5577916", "0.5573...
0.56201375
15
get slider point values
function getSliderPts(){ poster1Pts = $( "#3" ).slider( "option", "value" ); poster2Pts = $( "#2" ).slider( "option", "value" ); individualProject1Pts = $( "#5" ).slider( "option", "value" ); individualProject2Pts = $( "#6" ).slider( "option", "value" ); finalProjectPts = $( "#7" ).slider( "option", "value"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAxisValues() {\n let x = $(\"#sliderx\").val();\n let y = $(\"#slidery\").val();\n let z = $(\"#sliderz\").val();\n return { x, y, z };\n}", "function getSlidersValues() {\n return [parseInt(sliders[0].getElementsByTagName(\"input\")[0].value), \n parseInt(sliders[1].getElementsByTa...
[ "0.71014524", "0.701804", "0.70016617", "0.6613421", "0.65998846", "0.64899015", "0.6388569", "0.62809265", "0.62605995", "0.6250286", "0.624235", "0.62291265", "0.6147046", "0.6146902", "0.61418235", "0.61042595", "0.61042595", "0.60930496", "0.6064341", "0.60559815", "0.605...
0.6377058
7
add commas to large numbers
function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addComma(num) {\n var regexp = /\\B(?=(\\d{3})+(?!\\d))/g;\n return num.toString().replace(regexp, ',');\n }", "function numberWithCommas(x) {\n\t\t return x.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n\t\t}", "function numberWithCommas(x) {\n return x...
[ "0.7938075", "0.7881721", "0.7879292", "0.7877186", "0.78607297", "0.78607297", "0.78121245", "0.7809216", "0.7793024", "0.7766433", "0.77578247", "0.77523214", "0.77523214", "0.7745403", "0.7745403", "0.7732346", "0.7714448", "0.7714448", "0.7714448", "0.7714448", "0.7699903...
0.7881015
3
update the progress bar
function updateProgressBar(){ getSliderPts(); // console.log(lfpgTotalPts+", "+bossTotalPts+", "+gameSelectionPts+", "+sliderPts) assignments_score = gameSelectionPts + sliderPts // console.log(assignments_score); attendance_score = attendanceTotalPts reading_reaction_score = rxnTotalPts blogging_score = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateProgressBar() {\n pbValue+=10;\n $('.progress-bar').css('width', pbValue+'%').attr('aria-valuenow', pbValue);\n $('.progress-bar').text(pbValue + \"%\");\n }", "function updateProgress() {\n $(\"#progressBar\").css(\"width\", _progress + \"%\");\n }", "function updateProgressBar(){...
[ "0.83865", "0.8320518", "0.82711995", "0.8259007", "0.8257611", "0.8232129", "0.82124615", "0.8029845", "0.80273247", "0.7984371", "0.7911357", "0.78582627", "0.7842852", "0.7806068", "0.77777964", "0.7727215", "0.76747346", "0.7655283", "0.7637494", "0.76090693", "0.76087314...
0.0
-1
Tim Down code from
function componentToHex(c) { var hex = c.toString(16); return hex.length == 1 ? "0" + hex : hex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function I(){return a.setTimeout(function(){eb=void 0}),eb=fa.now()}", "private internal function m248() {}", "function D(){return setTimeout(function(){Ya=void 0}),Ya=_.now()}", "function I(){return _.setTimeout(function(){yt=void 0}),yt=me.now()}", "private public function m246() {}", "function slowFn(...
[ "0.6575973", "0.6494174", "0.64180577", "0.63548195", "0.60468763", "0.5879804", "0.58440137", "0.58430374", "0.575996", "0.571433", "0.57114345", "0.57038814", "0.56593794", "0.56271803", "0.5627126", "0.56251913", "0.5624333", "0.5618618", "0.55774033", "0.5569156", "0.5544...
0.0
-1
Converts the current time to a hex color and then changes the background to that color every second
function displayHexClock() { // Get the current time var clock = new Date(), h = clock.getHours(), m = clock.getMinutes(), s = clock.getSeconds(); // Make sure that hours, minutes, and seconds are all 2 digits each if(h.toString().length < 2) { h = '0' + h; } if(m.toString()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function col() {\r\n var d = new Date();\r\n var index = d.getSeconds() % 10;\r\n\r\n document.getElementById(\"clock\").style.color = '#' + color_array[index];\r\n\r\n setTimeout('col()', 1000);\r\n}", "function hexClock(){\n\tvar time = new Date();\n\t//you can do time.getHours())%12 for pm and am\n\tvar h...
[ "0.7522725", "0.7450992", "0.73533463", "0.7335436", "0.7058695", "0.7011451", "0.69950056", "0.69912094", "0.69617397", "0.6932208", "0.6891147", "0.6846207", "0.6846122", "0.6622992", "0.6596845", "0.6551094", "0.65487427", "0.6548147", "0.65169555", "0.6502189", "0.6494536...
0.7249178
4
display benchmark information receive the parameter information for the layer types
function receive_layer_params(json_object) { var layer_names = json_object.result.layer_names; // used for order layer_type_params = json_object.result.layer_params; $("#layer_type").empty(); var i; for (i = 0; i < layer_names.length; i += 1) { $("#layer_type").append( $("<optio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "bench(name, display) {\n let time = new Date().getTime() - this._time;\n\n this._benchmarks[time + 'ms'] = name;\n\n display && this.log('Bench: ', this._benchmarks);\n }", "function printBenchmark(bench) {\n var name = bench.name,\n hz = Math.round(bench.hz),\n stats = bench...
[ "0.6564494", "0.6196634", "0.5900113", "0.5537891", "0.5529539", "0.54703796", "0.54692376", "0.53612465", "0.5361152", "0.53001", "0.52640873", "0.5239648", "0.5231838", "0.5231838", "0.5194526", "0.51766896", "0.51766896", "0.5170749", "0.5159577", "0.515213", "0.51382923",...
0.0
-1
receive the names of the saved configs available on the server
function reveive_available_hinet_configs(json_object) { $("#hinet_available_config").empty(); var config_names = json_object.result; var i; for (i = 0; i < config_names.length; i += 1) { $("#hinet_available_config").append( $("<option></option>").val(config_names[i]).html(config_name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "list() {\n let config = this.readSteamerConfig();\n\n for (let key in config) {\n if (config.hasOwnProperty(key)) {\n this.info(key + '=' + config[key] || '');\n }\n }\n\n }", "get configs() {\n\t\treturn this._configs;\n\t}", "getStatus() {\r\n ...
[ "0.6508643", "0.60727066", "0.6048185", "0.5967453", "0.59485775", "0.5872289", "0.58055115", "0.57761675", "0.57189256", "0.5704836", "0.56446236", "0.5626188", "0.55692583", "0.55570245", "0.55569226", "0.55226827", "0.5504799", "0.54050267", "0.5404569", "0.53806746", "0.5...
0.52835286
33
receive one hinet config from the server and update the UI
function receive_hinet_config(json_object) { // reset all current layer layer_divs = []; layer_types = []; $("#layer_controls").empty(); // set image size if ($("#square_image").is(':checked')) { $("#square_image").get(0).checked = false; } var image_size = json_object.result.ima...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_requestConfig () {\n return this._api.requestConfig().then(config => {\n this._config = config\n this._rtc.updateIceServers(config.iceServers)\n this.emit(PeerSoxClient.EVENT_SERVER_READY)\n })\n }", "function readServerConfig(){\n var xhr = new XMLHttpRequest();\n consol...
[ "0.6188367", "0.6129973", "0.6092722", "0.60712695", "0.60380447", "0.5961498", "0.594286", "0.5902313", "0.586038", "0.5858493", "0.58445245", "0.5821779", "0.5803981", "0.5793911", "0.5756126", "0.57479167", "0.5708152", "0.570494", "0.569981", "0.56981045", "0.56897885", ...
0.6015165
5
send current network config to the server to save it there
function save_hinet_config() { var json_object = {"method": "save_hinet_config", "params": [get_hinet_config(), $("#config_name").val()], "id": "frontend"}; var json_string = JSON.stringify(json_object); $.post("frontend.xhtml", json_string, reveive_available_hi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveConfiguration() {\n\t\t\tupcApp.fancyMessage(upcApp.messages.wifiAdvConfigWindowLabel, true, upcApp.messages.waitForSave);\n\t\t\tupcApp.talk2device(null, $(\"form#mainForm\").serialize(), upcApp.defaultOnSuccessfulSave, upcApp.defaultOnSaveIsNotPossible, null);\n\t\t} // saveConfiguration", "functi...
[ "0.7116385", "0.6753029", "0.6686719", "0.6583509", "0.6505986", "0.649732", "0.6452914", "0.64380735", "0.6264575", "0.6133844", "0.61128134", "0.6066878", "0.60627145", "0.6034632", "0.60122305", "0.59721816", "0.59665775", "0.59160864", "0.5874656", "0.5873696", "0.5864714...
0.5615103
37
request a new network based on the current parameters
function request_hinet() { $("#hinet_view").html("<img src='/images/throbber.gif' />"); $("#hinet_coverage").empty(); $("#hinet_config").empty(); var json_object = {"method": "get_hinet", "params": [get_hinet_config()], "id": "frontend"}; var json_string...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeRequest(network, method, params = []){\n const { username, password, url } = network;\n return new Promise((resolve, reject) => {\n request.post(url, \n { \n headers: createRequestHeaders(username, password), \n body: JSON.stringify(\n ...
[ "0.61677957", "0.61405206", "0.60962325", "0.60962325", "0.60962325", "0.60962325", "0.60962325", "0.5875677", "0.58592266", "0.58052236", "0.57732767", "0.5767861", "0.57583755", "0.57431626", "0.5698924", "0.5679841", "0.5628846", "0.55858624", "0.55675554", "0.5560021", "0...
0.0
-1
update the UI with the received network
function receive_hinet(json_text) { json_object = JSON.parse(json_text); if (json_object.hasOwnProperty('error')) { $("#hinet_view").html('<span class="error">' + json_object.error + '</span>'); return; } // update hinet view var hinet_view_html = json_obje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateNetworkState() {\n if (navigator.onLine) {\n if (this._isOffline === true) {\n this.showMsg(this._config.msgOnline);\n this.bgSyncPolyfill();\n }\n this._isOffline = false;\n } else {\n this.showMsg(this._config.msgOffli...
[ "0.6539317", "0.6429055", "0.638173", "0.6156157", "0.6044702", "0.59716445", "0.59410805", "0.5939931", "0.5905043", "0.5900921", "0.5878582", "0.5783885", "0.57830673", "0.57735354", "0.57600695", "0.57443684", "0.573224", "0.57087016", "0.5690012", "0.5687701", "0.5656674"...
0.0
-1
add a layer in the GUI with the parameter fields
function add_layer() { var layer_num = (layer_divs.length + 1).toString(); var layer_name = "layer_" + layer_num; var layer_type = $('#layer_type').val(); layer_divs.push(layer_name); var layer_html = [ '<div id="' + layer_name + '" class="single_layer_controls">', '<span style="font...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addLayer(layer){\n\n //Initialize a bunch of variables\n layer.loadError = false;\n\tvar id = layer.legendDivID;\n layer.id = id;\n var queryID = id + '-'+layer.ID;\n\tvar containerID = id + '-container-'+layer.ID;\n\tvar opacityID = id + '-opacity-'+layer.ID;\n\tvar visibleID = id + '-visible...
[ "0.66242456", "0.6295343", "0.61815685", "0.6091531", "0.6091531", "0.60809934", "0.6074765", "0.6074765", "0.60570735", "0.6018943", "0.5976113", "0.5967615", "0.59440434", "0.5934079", "0.5915529", "0.5909549", "0.5891235", "0.588032", "0.5874561", "0.5825335", "0.5792079",...
0.66903764
0
remove the last layer
function remove_layer() { $("#" + layer_divs.pop()).slideUp('normal', function() { $(this).remove(); }); layer_types.pop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeLayer(){\n if ( $('#layer-list').children().length == 0 ) return;\n paper.project.activeLayer.remove();\n $('.selected').remove();\n var i = $('.selected').index();\n // if ( $('#layer-list').children().length == 0 ) {\n // setTimeout(function() { addListLayer(); }, 200);\n ...
[ "0.76068497", "0.7545134", "0.75031346", "0.7368234", "0.7360909", "0.72054404", "0.71634674", "0.71491647", "0.70592254", "0.7043783", "0.70301265", "0.70214987", "0.69407845", "0.68773353", "0.6844152", "0.6844152", "0.6805692", "0.6731928", "0.672565", "0.6697305", "0.6695...
0.7523572
2
extract the hinet config from the form fields
function get_hinet_config() { var image_size_x = parseInt($("#image_size_x").val()); var image_size_y = parseInt($("#image_size_y").val()); var layer_configs = []; var layer_data = {}; var layer_num; var layer_type; var layer_params; var i_layer; var i_param; for (i_layer = 0; i_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getConfigFields() {\n\t\treturn [\n\t\t\t{\n\t\t\t\ttype: 'textinput',\n\t\t\t\tid: 'host',\n\t\t\t\tlabel: 'Target IP',\n\t\t\t\twidth: 8,\n\t\t\t\tregex: Regex.IP,\n\t\t\t},\n\t\t]\n\t}", "getConfigFields() {\n\t\tlet self = this\n\n\t\treturn [\n\t\t\t{\n\t\t\t\ttype: 'textinput',\n\t\t\t\tid: 'host',\n\t\t\t...
[ "0.66840553", "0.66224205", "0.6595343", "0.64859825", "0.6080998", "0.6061829", "0.5982946", "0.5660761", "0.55035186", "0.5492536", "0.54877543", "0.5464955", "0.53295857", "0.5261122", "0.5255077", "0.5239372", "0.5225609", "0.52191854", "0.52120554", "0.51801133", "0.5134...
0.48112178
61
helper function to capture variables in closure for callback function
function _get_sync_function(field_name) { return function(){ $("#" + field_name + "_y").val($("#" + field_name + "_x").val()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function callback(){}", "function cbFoo() {\n // Let's use closure feature to sit in memory a variable\n // to use later on when the execution context of this function\n // has run\n var greetings = 'Hello';\n\n setTimeout(function() { // anonymous function requested by setTimeout\n // alert(greetings); ...
[ "0.616696", "0.6150221", "0.6124574", "0.609561", "0.6076805", "0.60440475", "0.6009823", "0.60010767", "0.60010767", "0.60010767", "0.60010767", "0.60010767", "0.59889424", "0.595869", "0.592787", "0.59143585", "0.58998466", "0.58991504", "0.58420885", "0.58420885", "0.58397...
0.0
-1
helper function to check if the string ends with the pattern string
function ends_with(thestring, pattern) { var d = thestring.length - pattern.length; return d >= 0 && thestring.lastIndexOf(pattern) === d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function endsWith(string, pattern) {\n\t\tvar d = string.length - pattern.length;\n\t\treturn d >= 0 && string.indexOf(pattern, d) === d;\n\t}", "function solution(str, ending){\nif(str.endsWith(ending)) return true\nreturn false\n}", "function strEndsWith(input, match) {\n return input.slice(-1 * match.len...
[ "0.85582083", "0.7837243", "0.7629112", "0.7607658", "0.75597876", "0.7545529", "0.7545529", "0.7539822", "0.7539822", "0.74956065", "0.74295884", "0.7411022", "0.7411022", "0.74041003", "0.74032277", "0.7393091", "0.7391002", "0.7378355", "0.7370857", "0.7366717", "0.7324415...
0.8591184
0
gets information required to render the UI for PortalHome and then initializes the UI for the page
function initUserProfile() { //get the last activity for the user logged in $.ajax({ url: window.api + "/api/" + window.token + "/Users/profile", beforeSend: function (xhr) { xhr.setRequestHeader('Authentication', window.token); }, success: function (profile) { RenderProfileD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initialize() {\n $.get(\"views/AdminHomePage.html\")\n .done(setup)\n .fail(error);\n }", "function buildUI() {\n setPageTitle();\n showMessageFormIfViewingSelf();\n fillMap();\n fetchLanguage();\n getInfo();\n// buildLanguageLinks();\n}", "function landingView() ...
[ "0.7140061", "0.7075122", "0.68656504", "0.68324894", "0.6790002", "0.6763477", "0.67314744", "0.67236537", "0.6720109", "0.6712282", "0.667197", "0.66689026", "0.66630876", "0.6629421", "0.66209847", "0.65636593", "0.65394884", "0.65014076", "0.6463665", "0.64561474", "0.644...
0.0
-1
Renders all of the UI elements accoiciated with the token currently used
function RenderProfileDataUI(profile) { $("#welcome-username").text(profile.Name); var DateLastActive_SessionID = Math.min.apply(Math, profile.previousSessions.map(function (sesh) { return sesh.SessionID; })); var DateLastActive = profile.previousSessions.find(function (session) { return session.SessionID =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "render() {\n let tokens = \"\";\n this.permissions.forEach(p => tokens = tokens + Permission.render(p));\n if(tokens === \"\") tokens = \"<h3>No tokens found for this user</h3>\";\n\n let cert = \"\";\n this.certificate.forEach(c => cert = cert + this.renderCert(c));\n if(...
[ "0.65541565", "0.632643", "0.6259303", "0.60504156", "0.60504156", "0.60504156", "0.59185886", "0.5858923", "0.58256316", "0.5805903", "0.578586", "0.5768616", "0.5753344", "0.57532924", "0.57159394", "0.5704683", "0.5676933", "0.5673878", "0.56556654", "0.56550795", "0.56514...
0.0
-1
Method to load list questions data
function loadQuestionsData(data) { questions = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadQuestionData() {\n\t\t\tquestionService.getQuestions().then(function(question) {\n\t\t\t\tapplyQuestionData(question);\n\t\t\t});\n\t\t}", "function loadQuestionData(data) {\n question = data;\n}", "static async _loadQuestions() {\n // Load TSV.\n const questionsTsv = await $.get(`data/ques...
[ "0.7479531", "0.7362695", "0.6966498", "0.6930198", "0.66989195", "0.66251034", "0.6607199", "0.6597411", "0.6591538", "0.65084285", "0.64299345", "0.64221555", "0.6421352", "0.6402849", "0.6359732", "0.6349846", "0.62752634", "0.6229442", "0.619375", "0.61657965", "0.6158597...
0.800076
0
Method to load a question data
function loadQuestionData(data) { question = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadQuestionsData(data) {\n questions = data;\n}", "function loadQuestionData() {\n\t\t\tquestionService.getQuestions().then(function(question) {\n\t\t\t\tapplyQuestionData(question);\n\t\t\t});\n\t\t}", "function loadWholeQuestion(){\n\t\tloadQuestion();\n\t\tloadChoices();\n\t\tloadHint();\n\t\tsho...
[ "0.8310436", "0.79321665", "0.7493226", "0.69787246", "0.6862359", "0.6773241", "0.6612564", "0.65833616", "0.6559101", "0.6551608", "0.6491202", "0.6475956", "0.6463691", "0.644808", "0.640571", "0.63434374", "0.63343996", "0.63321894", "0.63213897", "0.6179839", "0.6171135"...
0.85200626
0
Method to load stats data
function loadStatsData(data) { stats = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function load() {\n dashBoardService.getStats().success(function(data) {\n vm.stats = data;\n }).error( function(data, status, headers) {\n alert('Error: ' + data + '\\nHTTP-Status: ' + status);\n });\n }", "function LoadData(){\n\tLoadDataFiles();\n\tExtractDataFromFiles();\n}", ...
[ "0.7292527", "0.7187811", "0.6959292", "0.67872155", "0.6765653", "0.67112756", "0.66978055", "0.6675098", "0.66297615", "0.6608055", "0.6476211", "0.6329448", "0.63091516", "0.6285435", "0.62827796", "0.6273394", "0.6269408", "0.62195325", "0.62195325", "0.6208199", "0.61980...
0.8230981
0
Method to load category stats data
function loadCategoryStatsData(data) { category_stats = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadCategory() {\n $.ajax({\n url: 'allCategory',\n type: 'GET',\n success: function(data) {\n $('#dataTableExample1').html(data);\n }\n });\n }", "function loadCategories() {\n\t\tlet categories = new wp.api.collections.Categor...
[ "0.6680976", "0.66219103", "0.65913707", "0.65894586", "0.6532437", "0.61784345", "0.6150653", "0.60637826", "0.6019595", "0.5957676", "0.59538347", "0.59023076", "0.58905035", "0.58757675", "0.587439", "0.5872306", "0.58430713", "0.5787874", "0.57783705", "0.5772767", "0.575...
0.8415128
0
Method to load popular questions
function loadPopularQuestionsData(data) { popular_questions = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadWholeQuestion(){\n\t\tloadQuestion();\n\t\tloadChoices();\n\t\tloadHint();\n\t\tshowQuestionNumber();\n\t}", "loadQuestions(numberOfQuestions) {\n return firebase.firestore().collection(\"questions\").get()\n .then(querySnapshot => {\n return querySnapshot;\n })\n ...
[ "0.67816377", "0.6576464", "0.6393496", "0.63350046", "0.6227317", "0.6211373", "0.6142065", "0.6121645", "0.610053", "0.5983374", "0.5983374", "0.5983374", "0.59316033", "0.59296", "0.5908809", "0.58817554", "0.58739865", "0.5849437", "0.5844793", "0.5844607", "0.57742035", ...
0.7766954
0
function for drawing rounded rectangles
function roundRect(ctx, x, y, w, h, r) { ctx.beginPath(); ctx.moveTo(x+r, y); ctx.lineTo(x+w-r, y); ctx.quadraticCurveTo(x+w, y, x+w, y+r); ctx.lineTo(x+w, y+h-r); ctx.quadraticCurveTo(x+w, y+h, x+w-r, y+h); ctx.lineTo(x+r, y+h); ctx.quadraticCurveTo(x, y+h, x, y+h-r); ctx.lineTo(x,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static roundRect(ctx, x, y, w, h, r) \n\t{\n\t\t// Begin rounded rectangle path sequence of lines and curved arcs.\n ctx.beginPath();\n\t\t// straight horizontal line on top edge: moveTo top-left corner then lineTo top-right corner.\n ctx.moveTo(x + r, y);\n ctx.lineTo(x + w - r, y);\n\t\t// rounded top-r...
[ "0.74446476", "0.73898864", "0.7315533", "0.7315533", "0.7296604", "0.7272925", "0.7268948", "0.72564447", "0.72472745", "0.7211052", "0.720451", "0.71906763", "0.7188912", "0.718711", "0.71830696", "0.7104793", "0.68761927", "0.67868096", "0.67801464", "0.669178", "0.6621498...
0.7334803
4
Ajoute l id aux users
function setIdUsers(callbackMaster, users) { async.each(users, function(user, callback) { MongoClient.connect(configLocal.mongo.url, function(err, db) { if (err) throw err; const query = {email: user.email}; db.collection('myUser').find(query).toArray(function(err, result) { if (err) thr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUsersId(){\n users.forEach(function(user,index){\n user.id = index + 1\n })\n}", "_registerUser(id){\n\t\tthis.idUser = id;\n\t}", "function addUser(id,user_name,userCount,userColor){\n let newUser = {id, user_name,userCount,userColor};\n users.push(newUser);\n}", "add(state, users...
[ "0.73062", "0.72267747", "0.6720173", "0.66419667", "0.66021323", "0.6367764", "0.63425654", "0.63144344", "0.6229085", "0.62126875", "0.61648965", "0.6162716", "0.61524755", "0.613827", "0.6132515", "0.61179477", "0.6110344", "0.6107877", "0.606375", "0.60608006", "0.604161"...
0.6200449
10
A user's own creation of a list
function createList(field){ var arrItem = document.querySelector("input[name=createList]").value; if (arrItem.length > 0) { arrList.push(arrItem); } document.querySelector(field).value = ""; var showListDiv = document.getElementById('showCreatedList'); showListDiv.innerHTML = ""; //if there is any m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NewList() {\r\n}", "function createList(req,res){\n req.body.associatedUsers=req.user.sub\n let list=new List(req.body); // obtengo los valores del cuerpo de la peticion\n if(!req.body.nameList ) return res.status(500).send({message:'debe in...
[ "0.65550965", "0.6460511", "0.6458792", "0.64316815", "0.64129126", "0.63719577", "0.63059837", "0.6287449", "0.62370604", "0.62360305", "0.6208963", "0.62012714", "0.619018", "0.6183255", "0.618082", "0.61774576", "0.61230713", "0.6122715", "0.611799", "0.6096302", "0.609095...
0.0
-1
This function is called whenever the page loads. See how it reads in the cookies
function setup() { type = getCookie("practical"); option = document.getElementById("types"); window.location = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readCookies() {\n /*\n * Changing default cookie settings\n */\n var currentDate = new Date();\n currentDate.setFullYear(currentDate.getFullYear() + 1); //Cookies expire after 1 year\n var newOptions = {\n expiresAt: currentDate\n }\n jaaulde.utils.cookies.setOptions(newOp...
[ "0.7309062", "0.70684826", "0.7006422", "0.69344497", "0.6712414", "0.66659576", "0.6606066", "0.65935683", "0.6565202", "0.6453097", "0.6434363", "0.64080685", "0.6406237", "0.63600624", "0.633915", "0.63337505", "0.6331794", "0.63290346", "0.63063365", "0.6276795", "0.62757...
0.5779368
77
This function will create a cookie for you. You don't need to understand the code in here, just know how to call it
function createCookie(name, value, expiredays) { var todayDate = new Date(); todayDate.setDate(todayDate.getDate() + expiredays); document.cookie = name + "=" + value + "; expires=" + todayDate.toGMTString() + ";"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createCookie(e, t, n) {if (n) {var o = new Date;o.setTime(o.getTime() + 48 * n * 60 * 60 * 1e3);var r = \"; expires=\" + o.toGMTString()} else var r = \"\";document.cookie = e + \"=\" + t + r + \"; path=/\"}", "function createCookie(name, value) {\n var date = new Date();\n date.setTime(da...
[ "0.8284253", "0.8093958", "0.7946986", "0.7944639", "0.78239053", "0.77616143", "0.765779", "0.7649551", "0.76466125", "0.7641757", "0.7622164", "0.76157737", "0.7607047", "0.7605553", "0.7567243", "0.7540072", "0.7529681", "0.75291806", "0.7522454", "0.75055534", "0.75033027...
0.7287752
37
This function will read a cookie for you. You don't need to understand the code in here, just know how to call it
function getCookie(cookieToFind) { var myCookies = document.cookie.length; var c = getCookie("practical"); var individualCookies = document.cookie.split(';'); for (var i = 0; i < individualCookies.length; i++) { var oneCookie = individualCookies[i].split("="); var name = oneCookie[0]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _cookie_readCookie(k,r){return(r=RegExp('(^|; )'+encodeURIComponent(k)+'=([^;]*)').exec(document.cookie))?r[2]:null;}", "function readCookie() {\n\t\tvar nameEQ = escape(cookieName) + \"=\";\n\t\tvar ca = document.cookie.split(';');\n\t\tfor(var i=0;i < ca.length;i++) {\n\t\t\tvar c = ca[i];\n\t\t\twhil...
[ "0.821594", "0.8163657", "0.81341594", "0.8042631", "0.7851961", "0.78421265", "0.7828567", "0.779233", "0.773776", "0.7707492", "0.77042454", "0.7698084", "0.7676809", "0.7671681", "0.7668832", "0.7647982", "0.76358277", "0.7630755", "0.76280093", "0.76233095", "0.76220655",...
0.0
-1
Functions for parsing the four main sections
function parseFindSpec() { // find-spec = ':find' (find-rel | find-coll | find-tuple | find-scalar) if( find_section.length === 2 && find_section[ 1 ] === "." ) { // find-scalar = find-elem '.' throw new Error( "Unimplemented" ); } else if( find_sectio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parse_sections(text) {\n\n let expect_header = true,\n current_list,\n current_re,\n ret = {\n custom_aids: [],\n custom_hindrances: [],\n custom_tags: [],\n records: []\n ...
[ "0.656046", "0.6552128", "0.64159673", "0.6218225", "0.5976754", "0.5876599", "0.57836956", "0.57493484", "0.5736148", "0.56025434", "0.5569458", "0.5566986", "0.5489494", "0.5479913", "0.5475831", "0.5425019", "0.54158366", "0.5394733", "0.5383986", "0.5383986", "0.5355375",...
0.0
-1
Functions for parsing smaller elements of a query:
function parseSrcVar( thing ) { try { if( thing.startsWith( "$" ) ) { return { tag: src_var_tag, name: thing.substring( 1 ) }; } } catch( err ) {} throw new Error( "Query: Expecting variable. Found: " + thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _parseQueries(queries) {\n const allQueries = [];\n const harnessQueries = [];\n const elementQueries = [];\n const harnessTypes = new Set();\n for (const query of queries) {\n if (typeof query === 'string') {\n allQueries.push(query);\n elementQueries.push(quer...
[ "0.57479155", "0.563758", "0.5622782", "0.5464078", "0.529689", "0.52712077", "0.523961", "0.52394205", "0.5203308", "0.51875865", "0.51376283", "0.51016814", "0.50918233", "0.506759", "0.50532013", "0.50443137", "0.50443137", "0.50443137", "0.5035049", "0.5033732", "0.502646...
0.0
-1
Event Listener function to get and post the data
async function generateBtnClick() { const zipCode = document.querySelector('#zip').value; const feelings = document.querySelector('#feelings').value; try { const baseURL = `https://api.openweathermap.org/data/2.5/weather?zip=${zipCode}&appid=${apiKey}&units=metric`; const res = await f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function senGuiData()\n{\n\tvar datasend={\n\t\tevent:\"guidata\"\n\t}\n\tqueryDataGet(\"php/api_process.php\",datasend,function(res){\n\t\t//nhan du lieu tu server tra ve\n\t\talert_info(res);\n\t});\n\tqueryDataPost(\"php/api_process_post.php\",datasend,function(res){\n\t\t//nhan du lieu tu server tra ve\n\t\tal...
[ "0.6946997", "0.68130636", "0.6493039", "0.64915574", "0.64310926", "0.640911", "0.6365467", "0.63124114", "0.629461", "0.6248555", "0.62483513", "0.6243185", "0.6231909", "0.6219267", "0.6210754", "0.61944735", "0.61908245", "0.6179691", "0.6177814", "0.6170824", "0.6149013"...
0.0
-1
Initialize checking for unread messages
function activate() { if (!Authentication.user || !Authentication.user.public) { // If user wasn't authenticated or public, set up watch var activationWatch = scope.$on('userUpdated', function() { // Did user become public with that update? if (Authentication.user.pub...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "watchUnreadMessagesCount() {\n return global.window.Talk.ready.then(this.initTalkSession.bind(this));\n }", "function initUnreadPosts() {\n // First mark all posts as unread\n $('.post.reply').each( function (index, data) {\n var postId = $(this).attr('id').replace(/^reply_/, '');\n unreadPosts[unrea...
[ "0.71383613", "0.6806255", "0.6806255", "0.66864586", "0.6659123", "0.65498614", "0.6365835", "0.6146038", "0.60628164", "0.6042749", "0.6042749", "0.5969156", "0.5947369", "0.58164227", "0.58023417", "0.5758761", "0.5757915", "0.57496876", "0.57492054", "0.57441324", "0.5738...
0.0
-1
get a js date object and return a string formatted as YYYYMMDD HH:MM:SS
function formatDate(date) { var result = ''; result = result+date.getFullYear()+'-'; if(date.getMonth()+1 < 10) { result = result+'0'; } result = result+(date.getMonth()+1); result = result+'-'; if(date.getDate() < 10) { result = result+'0'; } result = result+date.getDate(); result = result+...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jsDate(date, time) {\n const jsDate = reFormatDate(date);\n const jsTime = reFormatTime(time);\n var jsDateObj = `${jsDate} ${jsTime}`;\n return jsDateObj;\n }", "function getDateString() {\n var time = new Date().getTime();\n // 32400000 is (GMT+9 Japan)\n // for your timezone jus...
[ "0.7212824", "0.7088811", "0.7021118", "0.69835", "0.69738007", "0.69638747", "0.6931861", "0.68860626", "0.6886007", "0.68674135", "0.685943", "0.6839555", "0.68040615", "0.67946637", "0.6742692", "0.67219365", "0.6718174", "0.6709889", "0.66920173", "0.6660004", "0.66576546...
0.6188133
89
Given a javascript value, return a string representation usable in sql command. For a composed object, the return value is a string representing a list of "name=value" for each property of the object.
function convert2SqlValue(value) { var result = ''; if(typeof value == 'string') { result = "'"+value.replace(/'/g, "''")+"'"; } else if(isTypeDate(value)) { result = result+"'"+formatDate(value)+"'"; } else if(value === null) { result = result + value; } else if(typeof ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSqlForValue( value ) {\n var sqlSnippet = \"\";\n //noinspection JSUnresolvedFunction\n if ( _.isString( value ) ) {\n sqlSnippet += ( \"'\" + value.replace( /\\r?\\n/g, \"&#10;\" ).replace( /'/g, \"&#39;\" ).replace( /\\\\/g, \"\" ).replace( /\"/g, \"&quot;\" ) + \"',\"...
[ "0.6685734", "0.66397893", "0.6412162", "0.64015365", "0.6345135", "0.6314574", "0.63105726", "0.6306135", "0.63052636", "0.62216985", "0.62145597", "0.62017524", "0.61938435", "0.6167616", "0.6162712", "0.6148101", "0.6136338", "0.6123784", "0.6122046", "0.6117976", "0.61178...
0.6025333
33
Given a javascript object, return a string with a list of property=value separated with comma. Value is formated to by compatible with sql. For composed object property name is prefixed with containing property.
function propEqValue2String(obj, prefix) { prefix = prefix || ''; var result= ""; var prop; for(prop in obj) { if(result.length > 0 && result.substr(result.length-2) != ", ") { result = result+", "; } if(obj[prop] !== null && obj[prop] !== undefined && typeof obj[prop] == 'object' && !isTypeDa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function objToSql(object) {\n var array = [];\n // loop through the keys and push the key/value as a string int array\n for (var key in object) {\n var value = object[key];\n // check to skip hidden properties\n if (Object.hasOwnProperty.call(object, key)) {\n // if string ...
[ "0.71368045", "0.7058412", "0.7015188", "0.69457006", "0.6833105", "0.679148", "0.6774843", "0.67640257", "0.6760499", "0.6760499", "0.6753971", "0.6747556", "0.67043203", "0.6702073", "0.6695624", "0.6695624", "0.66924167", "0.66766614", "0.66652673", "0.66643983", "0.666439...
0.60361075
52
Given a javascript object, return a string representation of all properties value separated with comma.
function propValue2String(obj) { var result = ""; var prop; for(prop in obj) { if(result.length > 0 && result.substr(result.length-2) != ", ") { result = result+", "; } if(isTypeDate(obj[prop])) { result = result+convert2SqlValue(obj[prop]); } else if(obj[prop] === null || ob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function valuesToString(object) {\n var str = \"\";\n for (var key in object)\n { if (typeof object[key] === 'string' && typeof object[key] !== 'object')\n {\n str += object[key];\n str += \" \";\n }\n }\n return str.trim();\n}", "function valuesToString(obj) ...
[ "0.75332314", "0.7457768", "0.7413507", "0.73473763", "0.72930527", "0.7289259", "0.72448194", "0.71925867", "0.7100701", "0.7066983", "0.70660305", "0.7046141", "0.7034728", "0.6957098", "0.6957098", "0.6939027", "0.6933994", "0.69312096", "0.69297725", "0.6925975", "0.69147...
0.701386
13
These functions should be accessible form anywhere is the code
function startNewGame() { const newGame = new GameLoop(); newGame.startGame(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _____SHARED_functions_____(){}", "private public function m246() {}", "private internal function m248() {}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "static private internal function m121() {}", "function Utils() {}", "function Utils() {}", "function...
[ "0.7589128", "0.667975", "0.6621786", "0.6580926", "0.6580926", "0.6580926", "0.65601796", "0.6531271", "0.6531271", "0.65125227", "0.64646626", "0.64320606", "0.6415752", "0.634991", "0.632244", "0.6309934", "0.6265577", "0.6230022", "0.62233394", "0.61861026", "0.6176719", ...
0.0
-1
Sets the element node or widget associated with this container.
set widget(aWidget) { this._widget = aWidget; // Can't use a WeakMap for _itemsByValue because keys are strings, and // can't use one for _itemsByElement either, since it needs to be iterable. XPCOMUtils.defineLazyGetter(this, "_itemsByValue", () => new Map()); XPCOMUtils.defineLazyGetter(this, "_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setElement(newElement) {\n this.#element = newElement;\n }", "setEl(el) {\n this.el = el;\n }", "setElement(element) {\n this.element = element;\n }", "setElement(elem) {\n this.element = elem;\n }", "set element(element) {}", "set element(element) {}", "setElement(selector)\r\n\t...
[ "0.6714332", "0.6399072", "0.6384515", "0.63272077", "0.5962399", "0.5962399", "0.59307694", "0.5905396", "0.5897304", "0.5856042", "0.58305836", "0.5818511", "0.5783062", "0.5635731", "0.562692", "0.5624807", "0.561015", "0.5518119", "0.54764825", "0.54706216", "0.5459945", ...
0.5360588
31
Gets the element node or widget associated with this container.
get widget() { return this._widget; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNode( ) {\n\n\t\t\treturn _widget[ \"content\" ][ \"impl\" ];\n\t\t}", "get owner() {\n return this._owner || Widget.fromElement(this.element.parentNode);\n }", "getElem() {\n return this.config.wrap ? this.$el.parentNode : this.$el;\n }", "getContainerNode() {\n return t...
[ "0.7620969", "0.7015663", "0.6959161", "0.672429", "0.67177737", "0.6674863", "0.6664215", "0.66530114", "0.6647472", "0.65969527", "0.6569542", "0.65243286", "0.6483033", "0.64716315", "0.64401513", "0.6402792", "0.63715786", "0.63574415", "0.6343896", "0.63179827", "0.62994...
0.6003311
46
If supported by the widget, the label string temporarily added to this container when there are no child items present.
set emptyText(aValue) { this._emptyText = aValue; // Apply the emptyText attribute right now if there are no child items. if (!this._itemsByElement.size) { this._widget.setAttribute("emptyText", aValue); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "render_label(ui) {\n const content = new DOM.Element(this.content_element);\n // Create the label.\n content.add(ui.render_tex(this, UI.clear_label_for_cell(this), this.label));\n // Create an empty label buffer for flicker-free rendering.\n const buffer = ui.render_tex(this, UI....
[ "0.6127035", "0.6021708", "0.6021708", "0.5949604", "0.5874926", "0.5859905", "0.5858411", "0.5858387", "0.58363116", "0.5824685", "0.5797077", "0.57816225", "0.57637745", "0.5757433", "0.5714605", "0.56986076", "0.56957", "0.5689478", "0.5681979", "0.5672637", "0.5668083", ...
0.5890215
4
If supported by the widget, the label string permanently added to this container as a header.
set headerText(aValue) { this._headerText = aValue; this._widget.setAttribute("headerText", aValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addLabel(component) {\nthis\n.addInfoToComponent(component, formEditorConstants.COMPONENT_TYPE_LABEL)\n.addProperty(component, 'name', this._componentList.findComponentText(component.type, 'name', 'Label'))\n.addProperty(component, 'zIndex', 0)\n.addProperty(component, 'fontSize', 16)\n.addProper...
[ "0.6534593", "0.6528905", "0.6361336", "0.63409907", "0.62441266", "0.6186525", "0.6169543", "0.61689603", "0.6091016", "0.6056467", "0.6039136", "0.5967905", "0.5958444", "0.5942082", "0.58912635", "0.588443", "0.58738935", "0.58540326", "0.5849398", "0.582346", "0.5822447",...
0.61721545
6
Gets the "preferred value". This is the latest selected item's value, remembered just before emptying this container.
get preferredValue() { return this._preferredValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get selectedValue() {\n let selectedElement = this._widget.selectedItem;\n if (selectedElement) {\n return this._itemsByElement.get(selectedElement)._value;\n }\n return \"\";\n }", "function getValue() {\n return selectedValue;\n }", "get selectedItem() {\n let selectedElement = t...
[ "0.67559713", "0.6172827", "0.6172257", "0.6045305", "0.6045305", "0.5951266", "0.5951266", "0.5947941", "0.5873625", "0.58714086", "0.58714086", "0.5840602", "0.5814105", "0.5783194", "0.5769573", "0.5748393", "0.5730058", "0.57239944", "0.5651157", "0.5650964", "0.5615207",...
0.7099018
0
Retrieves the item associated with the selected element.
get selectedItem() { let selectedElement = this._widget.selectedItem; if (selectedElement) { return this._itemsByElement.get(selectedElement); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSelected() {\n\t\t\t\treturn angular.element(document.getElementById(scope.selected.id));\n\t\t\t}", "get selectedValue() {\n let selectedElement = this._widget.selectedItem;\n if (selectedElement) {\n return this._itemsByElement.get(selectedElement)._value;\n }\n return \"\";\n }",...
[ "0.7183596", "0.6998925", "0.69611275", "0.6926037", "0.692457", "0.65432596", "0.6519076", "0.6517177", "0.6498615", "0.6434967", "0.63862413", "0.63587385", "0.6329458", "0.6322621", "0.631274", "0.6274475", "0.6274475", "0.62492025", "0.6234882", "0.61659294", "0.6158798",...
0.8166494
0
Retrieves the selected element's index in this container.
get selectedIndex() { let selectedElement = this._widget.selectedItem; if (selectedElement) { return this._indexOfElement(selectedElement); } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get selectedIndex() {\n var tree = this.getElement({type: \"engine_list\"});\n var treeNode = tree.getNode();\n\n return treeNode.view.selection.currentIndex;\n }", "function getIndex(select){\n\t\tvar nativeWidget = select.previousElementSibling;\n\t\treturn nativeWidget.selectedIndex;\n\t}", "get s...
[ "0.76535094", "0.71048075", "0.69651955", "0.69651955", "0.6959788", "0.69067186", "0.68951744", "0.68783605", "0.687436", "0.687436", "0.6821588", "0.6764816", "0.6762154", "0.67301834", "0.6662697", "0.66488624", "0.6638862", "0.6638862", "0.6602339", "0.6523651", "0.648712...
0.8084937
0
Retrieves the value of the selected element.
get selectedValue() { let selectedElement = this._widget.selectedItem; if (selectedElement) { return this._itemsByElement.get(selectedElement)._value; } return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getValue() {\n return selectedValue;\n }", "function getValue() {\n return element.value;\n }", "function getValue() {\n return element.value;\n }", "function getValue()\n\t{\n\t\treturn objThis.selectorElt.tagSuggest().getValue();\n\t}", ...
[ "0.8018362", "0.76479846", "0.76479846", "0.7474243", "0.7365997", "0.7176338", "0.7141646", "0.7056173", "0.70546246", "0.6996142", "0.69629997", "0.69228435", "0.68897456", "0.6881415", "0.6877608", "0.68703586", "0.68703586", "0.68232137", "0.6811654", "0.6805939", "0.6773...
0.8194444
0
Retrieves the attachment of the selected element.
get selectedAttachment() { let selectedElement = this._widget.selectedItem; if (selectedElement) { return this._itemsByElement.get(selectedElement).attachment; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get attachment () {\n\t\treturn this._attachment;\n\t}", "get attachment() {\n\t\treturn this.__attachment;\n\t}", "get pAttachment() {\n\t\treturn this.__pAttachment;\n\t}", "function fetch() {\n\t\n\t if (!filenames.length) {\n\t return null;\n\t }\n\t\n\t var filename = filen...
[ "0.68163425", "0.66213715", "0.61860836", "0.61087203", "0.6095951", "0.6095951", "0.60549", "0.6054441", "0.6043866", "0.60296375", "0.5997578", "0.59897715", "0.59897715", "0.59869957", "0.5964207", "0.59047025", "0.58129007", "0.57123953", "0.5698625", "0.5669053", "0.5525...
0.8738866
0
Selects the element with the entangled item in this container.
set selectedItem(aItem) { // A predicate is allowed to select a specific item. // If no item is matched, then the current selection is removed. if (typeof aItem == "function") { aItem = this.getItemForPredicate(aItem); } // A falsy item is allowed to invalidate the current selection. let ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "select() {\n\t\tthis.element.select();\n\t}", "select() {\n\t\tthis.element.select();\n\t}", "get selectedItem() {\n let selectedElement = this._widget.selectedItem;\n if (selectedElement) {\n return this._itemsByElement.get(selectedElement);\n }\n return null;\n }", "select(item) {\n ...
[ "0.655029", "0.655029", "0.6465967", "0.6114304", "0.60405517", "0.5986002", "0.59588563", "0.59524494", "0.594265", "0.5932556", "0.5932556", "0.58951646", "0.585715", "0.58535355", "0.58535355", "0.5849198", "0.5823518", "0.57618517", "0.5759624", "0.57491654", "0.57145447"...
0.6163291
3
Selects the element at the specified index in this container.
set selectedIndex(aIndex) { let targetElement = this._widget.getItemAtIndex(aIndex); if (targetElement) { this.selectedItem = this._itemsByElement.get(targetElement); return; } this.selectedItem = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "selectAtIndex(index) {\n if (this.options.selectable) {\n // Clear selection\n this.clearSelection();\n\n if (!isNaN(index) && index >= 0 && index < this.items.length) {\n const tag = Array.from(this.container.children).filter(child => child.classList.contains...
[ "0.7500833", "0.6676613", "0.6604043", "0.63500065", "0.63150877", "0.6270577", "0.6257467", "0.6175086", "0.61451596", "0.61215234", "0.6109234", "0.6102884", "0.59757185", "0.59757185", "0.59757185", "0.5897152", "0.5867458", "0.5827876", "0.5813245", "0.58082986", "0.57915...
0.66484666
2
Selects the element with the specified value in this container.
set selectedValue(aValue) { this.selectedItem = this._itemsByValue.get(aValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selectByValue(selector, value) {\n Reporter_1.Reporter.debug(`Select by text '${value}' from '${selector}'`);\n isExist(selector);\n tryBlock(() => $(selector).selectByAttribute('value', value), `Failed to select ${value} from ${selector}`);\n }", "selectByIndex(locator_, value_,...
[ "0.6723168", "0.6568152", "0.64972717", "0.62337434", "0.59989977", "0.59809244", "0.5952607", "0.5952607", "0.57822293", "0.5781904", "0.5769794", "0.5750141", "0.57197726", "0.56479794", "0.55822694", "0.55811477", "0.55811477", "0.5569669", "0.55396664", "0.55240566", "0.5...
0.5185908
36
Gets the command dispatcher instance associated with this container's DOM. If there are no items displayed in this container, null is returned.
get _commandDispatcher() { if (this._cachedCommandDispatcher) { return this._cachedCommandDispatcher; } let someElement = this._widget.getItemAtIndex(0); if (someElement) { let commandDispatcher = someElement.ownerDocument.commandDispatcher; return this._cachedCommandDispatcher = comma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getInstance() {\r\n\t\t\t\t// Must not interfere with Browser Modeler\r\n\r\n\t\t\t\tif (window.top.commandsDispatcher == null) {\r\n\t\t\t\t\twindow.top.commandsDispatcher = new CommandsDispatcher();\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn window.top.commandsDispatcher;\r\n\t\t\t}", "getDispatcher() {\n ...
[ "0.68170696", "0.5911807", "0.5777807", "0.575515", "0.56462204", "0.5559572", "0.5516079", "0.54639125", "0.54639125", "0.5329823", "0.5329823", "0.52774835", "0.52774835", "0.5261477", "0.5233803", "0.505212", "0.5012349", "0.49959517", "0.49853194", "0.49779496", "0.480775...
0.7851323
0
Gets the currently focused element in this container.
get _focusedElement() { let commandDispatcher = this._commandDispatcher; if (commandDispatcher) { return commandDispatcher.focusedElement; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getActiveElement() {\n try {\n return document.activeElement;\n } catch (err) {}\n }", "function getActiveElement() {\n try {\n return document.activeElement;\n } catch (err) {}\n }", "function getActiveElement() {\n try {\n return document.activeElement;\n } catch (...
[ "0.7808595", "0.7808595", "0.7808595", "0.78076357", "0.7617395", "0.75616", "0.7522624", "0.7522624", "0.7522624", "0.7522624", "0.7522624", "0.7522624", "0.7522624", "0.7522624", "0.7360527", "0.729511", "0.7181115", "0.7134408", "0.7125067", "0.71191543", "0.7111123", "0...
0.7913088
0
Gets the total number of items in this container.
get itemCount() { return this._itemsByElement.size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTotalItemCount(){\n\t\t\treturn itemCount;\n\t\t}", "get count() {\n\t\t\treturn this.items\n\t\t\t\t.map(item => item.qty)\n\t\t\t\t.reduce((total, qty) => total += qty, 0);\n\t\t}", "count() {\n let sum = this.items.length;\n return sum;\n }", "size() {\n\t\treturn this.items.l...
[ "0.7946224", "0.78630257", "0.77487504", "0.7500064", "0.7395294", "0.72763056", "0.72538245", "0.72480005", "0.71597725", "0.71147186", "0.71038747", "0.70570236", "0.69941247", "0.692245", "0.6894186", "0.68815017", "0.68433285", "0.681325", "0.67827684", "0.67478025", "0.6...
0.70019644
12
Returns a list of items in this container, in the displayed order.
get items() { let store = []; let itemCount = this.itemCount; for (let i = 0; i < itemCount; i++) { store.push(this.getItemAtIndex(i)); } return store; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getItems() {\n return this.items;\n }", "getItems() {\n return this.items;\n }", "getItems() {\n return this.items;\n }", "function displayItems(items) {\r\n const container=document.querySelector('.items');\r\n container.innerHTML=items.map(item=>createHTMLString(item)).j...
[ "0.65402454", "0.65402454", "0.65402454", "0.6483716", "0.64329344", "0.63269395", "0.6269912", "0.62423104", "0.6206113", "0.6174855", "0.6173818", "0.6157826", "0.6144918", "0.60861135", "0.6070188", "0.60307527", "0.6028476", "0.60198396", "0.60185003", "0.5980061", "0.597...
0.5790931
30
Returns a list of values in this container, in the displayed order.
get values() { return this.items.map(e => e._value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "printListValues() {\n\t\tconst array = [];\n\t\tlet currentNode = this.head;\n\t\twhile (currentNode !== null) {\n\t\t\tarray.push(currentNode.value);\n\t\t\tcurrentNode = currentNode.next;\n\t\t}\n\t\treturn array;\n\t}", "function values() {\n return this.pluck('value');\n }", "printList() {\n\t\tconst a...
[ "0.69615066", "0.65618306", "0.6455109", "0.6285381", "0.6254288", "0.60863286", "0.6070211", "0.6051684", "0.6048654", "0.6010559", "0.5993563", "0.5965103", "0.5963669", "0.594222", "0.5931835", "0.5891639", "0.57579195", "0.5719378", "0.5719378", "0.5662222", "0.5662222", ...
0.6199834
5
Returns a list of attachments in this container, in the displayed order.
get attachments() { return this.items.map(e => e.attachment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get attachments() {\n return this._attachments;\n }", "attachments() {\n return this._attachments;\n }", "get attachmentFiles() {\r\n return new AttachmentFiles(this);\r\n }", "function listAttachments(ownerCollection, ownerId, label, callback) {\n listAttachmentsMR('...
[ "0.71243477", "0.7117303", "0.63823396", "0.63094616", "0.63081086", "0.57434994", "0.5623463", "0.54921824", "0.5467028", "0.54413867", "0.53833824", "0.53556454", "0.53443545", "0.52686584", "0.523231", "0.5212454", "0.5161493", "0.5156475", "0.5138491", "0.5119939", "0.505...
0.681507
2
Returns a list of all the visible (nonhidden) items in this container, in the displayed order
get visibleItems() { return this.items.filter(e => !e._target.hidden); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hideOffscreenElements() {\n const startIndex = Math.floor(-(this.scrollContainer.y - this.y) / this.itemHeight);\n const endIndex = Math.floor(startIndex + (this.height / this.itemHeight));\n for (let i = 0; i < this.items.length; i++) {\n const item = this.items[i];\n it...
[ "0.7042586", "0.6533223", "0.6500738", "0.63605475", "0.6259302", "0.6254758", "0.6220498", "0.6220498", "0.6213299", "0.61926985", "0.6171711", "0.613703", "0.60925466", "0.60817575", "0.6048146", "0.59784627", "0.597648", "0.597648", "0.5970085", "0.5968805", "0.59631413", ...
0.7888587
0
Connection object / PUBLIC The Connection element constructor. A connection joins two Network Elements Ports with a single line. This line can be a rect between two ports or can have a middle point which describes a right or left angle. Initially a connection has no middle point. The connection implementation is made u...
function Connection(port1, port2) { if (port1.ne.id > port2.ne.id) { this.originPort = port2; this.destinationPort = port1; } else { this.originPort = port1; this.destinationPort = port2; } this.originPort.setConnection(this); this.destinationPort.setConnection(this); this.originX = null; this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Connection(object1, x1, y1, object2, x2, y2) {\n this.obj1 = object1;\n this.obj1x = x1;\n this.obj1y = y1;\n this.obj2 = object2;\n this.obj2x = x2;\n this.obj2y = y2\n}", "function Connection() {\n Base.call(this);\n /**\n * The element this connection originates from\n ...
[ "0.7158288", "0.7074505", "0.7074505", "0.7050696", "0.70426077", "0.7037928", "0.69748116", "0.6884523", "0.6747557", "0.6474517", "0.64680815", "0.6423224", "0.59348094", "0.5869422", "0.5860892", "0.56124645", "0.55770314", "0.55611086", "0.556014", "0.5558248", "0.5518554...
0.7963284
0
PRIVATE Allocates the origin coordenates of the connection at the middle point of the origin port.
function allocateOrigin() { this.originX = this.originPort.x + 3 + this.originPort.ne.x; this.originY = this.originPort.y + 3 + this.originPort.ne.y; if (this.destinationX != null && this.destinationY != null) { this.allocate(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allocateConnection() {\n\t\tif (document.getElementById(this.id) != null) {\n\t\t\tdocument.getElementById(MAP).removeChild(document.getElementById(this.id));\n\t\t}\n\t\tthis.points = this.originX + \",\" + this.originY + \" \";\n\t\tif (this.middlePoint == LEFT_CORNER) {\n\t\t\tvar x = Math.min(this.ori...
[ "0.62716216", "0.6079625", "0.57601833", "0.5757525", "0.5690473", "0.5678422", "0.5641561", "0.55404514", "0.5460679", "0.5454067", "0.54417866", "0.54262394", "0.54205847", "0.53532606", "0.5346664", "0.5265276", "0.52489066", "0.52410686", "0.5205259", "0.52037627", "0.517...
0.7739135
0
PRIVATE Allocates the destination coordenates of the connection at the middle point of the destination port.
function allocateDestination() { this.destinationX = this.destinationPort.x + 3 + this.destinationPort.ne.x; this.destinationY = this.destinationPort.y + 3 + this.destinationPort.ne.y; if (this.originX != null && this.originY != null) { this.allocate(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allocateOrigin() {\n\t\tthis.originX = this.originPort.x + 3 + this.originPort.ne.x;\n\t\tthis.originY = this.originPort.y + 3 + this.originPort.ne.y;\n\t\tif (this.destinationX != null && this.destinationY != null) {\n\t\t\tthis.allocate();\n\t\t}\n\t}", "function allocateConnection() {\n\t\tif (docume...
[ "0.7389552", "0.6949662", "0.5999647", "0.5820664", "0.57437825", "0.5586555", "0.5367981", "0.5240075", "0.51926875", "0.517695", "0.5164362", "0.5156488", "0.5086219", "0.5073438", "0.50610954", "0.4980557", "0.49756253", "0.49418107", "0.49403077", "0.49300867", "0.4923352...
0.75927114
0
PUBLIC Indicates whether this connection has a middle point at the left side, a middle point at the right side or no middle point at all.
function setConnectionMiddlePoint(middlePoint) { this.middlePoint = middlePoint; this.updatePopupMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isCenter(node) {\n return !(node.type == \"in\" || node.type == \"out\" || node.type == \"middle\");\n}", "get isInMiddle() {\n return !this.isFirst && !this.isLast;\n }", "function middleInside(a, b) {\n\t var p = a,\n\t inside = false,\n\t px = (a.x + b.x) / 2,\n\t py = ...
[ "0.6551427", "0.6322696", "0.6281744", "0.6279019", "0.6261429", "0.6261429", "0.6261429", "0.62280804", "0.6190193", "0.61411256", "0.61411256", "0.61411256", "0.61180824", "0.61180824", "0.6114152", "0.6114152", "0.6114152", "0.6114152", "0.6114152", "0.6114152", "0.6114152...
0.49386665
95
PROTECTED Allocates the origin point, the middle point and the destination point of the connection. Every time this method is invoked, the connection is removed and rewrited.
function allocateConnection() { if (document.getElementById(this.id) != null) { document.getElementById(MAP).removeChild(document.getElementById(this.id)); } this.points = this.originX + "," + this.originY + " "; if (this.middlePoint == LEFT_CORNER) { var x = Math.min(this.originX, this.destinationX); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allocateOrigin() {\n\t\tthis.originX = this.originPort.x + 3 + this.originPort.ne.x;\n\t\tthis.originY = this.originPort.y + 3 + this.originPort.ne.y;\n\t\tif (this.destinationX != null && this.destinationY != null) {\n\t\t\tthis.allocate();\n\t\t}\n\t}", "function allocateDestination() {\n\t\tthis.dest...
[ "0.68851775", "0.6721088", "0.6002381", "0.56886524", "0.5588317", "0.5533431", "0.5503702", "0.5471967", "0.5471967", "0.5471967", "0.54604447", "0.54384124", "0.53807515", "0.53792626", "0.537382", "0.5360695", "0.5333182", "0.5307572", "0.5302272", "0.5257745", "0.51698774...
0.757513
0
PROTECTED Writes the connection inside the map.
function writeConnection() { if (this.points != null) { var line = document.createElement("v:polyline"); line.setAttribute("id", this.id); line.setAttribute("points", this.points); var elem = document.getElementById(MAP).appendChild(line); elem.style.pixelTop = 0; elem.style.pixelLeft = 0; elem.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "write() {\n const statement = this.dbConnector.statements.set(this.params, this.writeBuffer);\n this.dbConnector.query(statement, this.onWriteResult.bind(this), [], true);\n }", "setConnection( conn ){\n connectionPool[this._handle] = conn;\n return conn;\n }", "function allocateConnect...
[ "0.5808657", "0.577819", "0.5424868", "0.5343491", "0.5320519", "0.52663654", "0.52601254", "0.5249757", "0.5146405", "0.51246476", "0.5110819", "0.5052174", "0.50459933", "0.49613857", "0.49613857", "0.49613857", "0.49557188", "0.4937873", "0.49348262", "0.4914334", "0.49056...
0.6449083
0
PUBLIC Sets the connection's color. The default value for each connection is "003366".
function setConnectionColor(color) { this.color = color; if (document.getElementById(this.id) != null) { document.getElementById(this.id).strokeColor = color; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set color(value) {}", "setColor(c){\n\t\tthis.color=c;\n\t}", "static resetAllConnectionHighlighting() {\n const color = null;\n infrastructureModel.setAllConnectionColors(color);\n dataFlowModel.setAllConnectionColors(color);\n }", "function changeColorScheme() {\n\n}", "function s...
[ "0.7002965", "0.69739014", "0.68227345", "0.68213785", "0.6817549", "0.6705453", "0.66541517", "0.66178507", "0.6610144", "0.6585318", "0.65471566", "0.6479949", "0.64334947", "0.6389745", "0.63864005", "0.63852537", "0.63493305", "0.6348071", "0.6339746", "0.6333506", "0.632...
0.78960127
0
PUBLIC Sets the connection's weight. The default value for each connection is 1.
function setConnectionWeight(weight) { this.weight = eval(weight); if (document.getElementById(this.id) != null) { document.getElementById(this.id).strokeWeight = eval(weight); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set weight(value) {}", "changeWeight(weight) {\n this._currentWeight = weight\n }", "setWeights(weights) {\n this.model.setWeights(weights);\n }", "get weighting() { return this._weighting; }", "function set_weight(idx) {\n\t root.nodes.forEach(function(n) {\n\t\tn.radius = n._radius[idx];...
[ "0.7720132", "0.72048557", "0.654973", "0.6485197", "0.63726324", "0.619373", "0.61903584", "0.61820865", "0.61496896", "0.6089249", "0.60854363", "0.59295076", "0.5925232", "0.5891689", "0.58760905", "0.58452475", "0.576723", "0.5758919", "0.5743525", "0.5732953", "0.5683681...
0.80077314
0
PUBLIC Attaches an action to the click event of this connection. The action must be the name of a javascript function without brackets and parameters.
function setConnectionClickAction(action) { this.onClickAction = eval(action); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onClick() {\n // const behavior = this.getAttribute('my-action');\n // const behavior = this.dataset\n // console.dir(this.dataset.action, 'action');\n const behavior = this.dataset.action;\n\n actions[behavior] && actions[behavior]();\n // console.log(this.get...
[ "0.705893", "0.6545656", "0.6507602", "0.6384759", "0.6358709", "0.61301583", "0.60612434", "0.5980503", "0.59117746", "0.5894573", "0.5893296", "0.58732533", "0.58578813", "0.5855048", "0.5852794", "0.58107567", "0.5805598", "0.5783422", "0.5782543", "0.5771912", "0.57568926...
0.8011338
0
PUBLIC Adds an item to the popup list associated to this connection. By default, every connection has two items added (see the Connection constructor).
function addConnectionPopupListItem(img, text, action) { this.popupListItems.add(new PopupMenuItem(img, text, action), false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "putin(item) {\n if (this.open = true) {\n this.item.push(item);\n alert(\"Item has been added to the backpack.\");\n }\n }", "addItem(){\n\t\tthis.showAddItemModal = true;\n\t}", "function addItem() {\n const urlBox = document.getElementById('inputBox');\n const ico...
[ "0.6603493", "0.62258357", "0.6079025", "0.600174", "0.5971503", "0.5970345", "0.5954994", "0.59149694", "0.5886137", "0.5884065", "0.5880829", "0.5878902", "0.5841419", "0.5832048", "0.5823121", "0.5814014", "0.5806142", "0.58030003", "0.576748", "0.5765655", "0.57564753", ...
0.7278367
0
PROTECTED Makes visible the popup menu associated to this connection.
function showConnectionPopupMenu(x, y) { if (this.popupListItems.getLength() > 0) { document.getElementById(MAP).map.setPopupMenu(this.popupListItems, x, y); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showPopupMenu() {\n\t\tif (document.getElementById(this.id) != null) {\n\t\t\tdocument.getElementById(this.id).style.visibility = \"visible\";\n\t\t}\n\t}", "function openMenu() {\n\n //Set the menu to be visible\n setVisibility(document.getElementById(\"menuPopup\"), true);\n\n $(\"#graphConte...
[ "0.68967855", "0.6779227", "0.6525441", "0.6446168", "0.6409899", "0.6386344", "0.63814455", "0.63368237", "0.632895", "0.6313588", "0.6288358", "0.62544", "0.6250871", "0.624565", "0.6222694", "0.61707443", "0.61627084", "0.6142159", "0.6129521", "0.60789007", "0.6075249", ...
0.68748826
1
PROTECTED Changes the "Angle to the right side", "Angle to the left side" or "No angle" items of the popup menu associated to this connection to prevent the apparition of the actual middlePoint value as an option inside the popup menu.
function updateConnectionPopupMenu() { var action = null; var i = 0; for (var found = false; i < this.popupListItems.getLength() && !found; i++) { action = this.popupListItems.get(i).action; if (action == LEFT_CORNER || action == RIGHT_CORNER || action == NO_CORNER || action == "null") { found = true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get disableOptionCentering() { return this._disableOptionCentering; }", "function setConnectionMiddlePoint(middlePoint) {\n\t\tthis.middlePoint = middlePoint;\n\t\tthis.updatePopupMenu();\n\t}", "set LeftCenter(value) {}", "set RightCenter(value) {}", "set Center(value) {}", "function checkAndFixAlign(){...
[ "0.5645785", "0.56379014", "0.56094825", "0.53819567", "0.53642756", "0.5193219", "0.5184805", "0.518288", "0.51009285", "0.5057907", "0.50383973", "0.50325674", "0.5000234", "0.4998579", "0.4997476", "0.4997476", "0.4976808", "0.49515772", "0.49305928", "0.4911975", "0.48977...
0.6576441
0
PROTECTED Executes the selected action of the popup menu.
function executeActionOnRightClickedConnection(action) { if (action == LEFT_CORNER || action == RIGHT_CORNER || action == "null") { this.setMiddlePoint(action); this.updatePopupMenu(); this.originPort.ne.updatePorts(); this.destinationPort.ne.updatePorts(); this.allocate(); } else { eval(action + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onItemActionClick(event){\r\n\t\t\t\t\r\n\t\t//var obj\r\n\t\tvar objButton = jQuery(this);\r\n\t\tvar objItem = objButton.parents(\"li\");\r\n\t\t\r\n\t\tg_objItems.selectSingleItem(objItem);\r\n\t\t\r\n\t\tvar action = objButton.data(\"action\");\r\n\t\t\r\n\t\tif(action == \"open_menu\")\r\n\t\t\tretur...
[ "0.66461706", "0.6613506", "0.6528367", "0.6525193", "0.6485731", "0.63982654", "0.62235206", "0.6201344", "0.60834354", "0.60619193", "0.60551184", "0.60201603", "0.60073143", "0.5958849", "0.5958805", "0.59152746", "0.5901688", "0.5862175", "0.58570296", "0.58542895", "0.58...
0.0
-1
PUBLIC Removes this connection from the map.
function removeConnection() { this.originPort.remove(); this.destinationPort.remove(); document.getElementById(MAP).removeChild(document.getElementById(this.id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mapRemove() {\n\n\t\tthis.map.remove();\n\n\t}", "remove() {\n this.setMap(null);\n }", "removeConnection(connection){\n self.peerConnections[connection].close();\n delete self.peerConnections[connection];\n }", "disconnect() {\n if (this.connected == true) {\n this.s...
[ "0.69843554", "0.6933064", "0.6485641", "0.6442859", "0.63782454", "0.62907314", "0.62280643", "0.61942303", "0.6056617", "0.6040882", "0.60403216", "0.60222596", "0.60221446", "0.59239626", "0.585087", "0.58399403", "0.58246946", "0.58091295", "0.580832", "0.5807366", "0.573...
0.7860499
0
Port object PUBLIC Constructor A port is a yellow circle allocated at a side of its network element owner. The position of the each port is calculated automatically, what menas that this object has any method prepared to do such things. To calculate the correct position of the port, to avoid the overlapping of ports an...
function Port(name) { this.name = name; this.ne = null; this.connection = null; this.id = null; this.x = 0; this.y = 0; this.side = null; this.color = "Yellow"; this.setId = setPortId; this.setNetworkElement = setPortNetworkElement; this.setConnection = setPortConnection; this.setColor = setPort...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Connection(port1, port2) {\n\t\tif (port1.ne.id > port2.ne.id) {\n\t\t\tthis.originPort = port2;\n\t\t\tthis.destinationPort = port1;\n\t\t} else {\n\t\t\tthis.originPort = port1;\n\t\t\tthis.destinationPort = port2;\n\t\t}\n\t\tthis.originPort.setConnection(this);\n\t\tthis.destinationPort.setConnection(...
[ "0.7520037", "0.6870885", "0.6734449", "0.6515549", "0.64603704", "0.6440503", "0.6388182", "0.63406914", "0.63296074", "0.6302692", "0.6207745", "0.6094899", "0.59993476", "0.5975664", "0.58286643", "0.56961375", "0.5605812", "0.55980533", "0.5550553", "0.55133194", "0.54980...
0.72397023
1
PROTECTED Sets the port id. Each port has an identifier similar to "port0", "port1", and so on. This identifier is used to find the HTML element inside de map.
function setPortId(id) { this.id = PORT + id + this.ne.id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get portId() {\n return this.data[3];\n }", "static set port(value) {}", "setPort(value) {\n return super.put(\"port\", value);\n }", "setPort(port) {\n if (port === undefined || port === null || port === \"\") {\n this._port = undefined;\n }\n else {\n ...
[ "0.6728035", "0.65641004", "0.6522156", "0.6491941", "0.6491941", "0.6158104", "0.6158104", "0.611945", "0.6083657", "0.6046332", "0.59800696", "0.5967124", "0.5912879", "0.5736189", "0.57229865", "0.571264", "0.57061696", "0.56944394", "0.56921774", "0.56913424", "0.5652125"...
0.83564717
0
PROTECTED Sets a pointer to the Network Element which is the owner of this port.
function setPortNetworkElement(ne) { this.ne = ne; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setOwner(_owner){\n owner = _owner;\n domAttr.set('ownerNameDiv', 'innerHTML', _owner.name);\n }", "get owner() {\n return this._owner || IdHelper.fromElement(this.element.parentNode);\n }", "get owner() {\n return this.parent || this._owner || IdHelper.fromElement(this.forElem...
[ "0.6374841", "0.6226367", "0.59502375", "0.59322023", "0.5866592", "0.5807151", "0.5668594", "0.5573366", "0.55158836", "0.54974926", "0.547802", "0.537902", "0.53384185", "0.52070224", "0.5185289", "0.51690865", "0.51314205", "0.5100548", "0.5098286", "0.5088623", "0.504721"...
0.6496961
0
PROTECTED Sets a pointer the connection that has this port as its origin or destination.
function setPortConnection(con) { this.connection = con; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Connection(port1, port2) {\n\t\tif (port1.ne.id > port2.ne.id) {\n\t\t\tthis.originPort = port2;\n\t\t\tthis.destinationPort = port1;\n\t\t} else {\n\t\t\tthis.originPort = port1;\n\t\t\tthis.destinationPort = port2;\n\t\t}\n\t\tthis.originPort.setConnection(this);\n\t\tthis.destinationPort.setConnection(...
[ "0.6012514", "0.59358156", "0.59231603", "0.590665", "0.58351713", "0.58233917", "0.5747715", "0.5735744", "0.5672246", "0.56533504", "0.56326824", "0.56326824", "0.56126845", "0.55973965", "0.55882573", "0.55802447", "0.5565742", "0.55170393", "0.5505143", "0.5476055", "0.54...
0.68106806
0
PUBLIC Sets the new port's color. The default color is yellow.
function setPortColor(color) { this.color = color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set color(value) {}", "setColor(color) {\n this.color = color;\n }", "setColor(c){\n\t\tthis.color=c;\n\t}", "function newColor() {\n this.style.background = colorPicker.value;\n }", "set nodeColor(value)\n\t{\n\t\tthis._nodeColor = value;\n\t}", "function newOutputColor() {\n switch (ou...
[ "0.73808086", "0.72043973", "0.7195564", "0.7068955", "0.6943611", "0.68982226", "0.68691355", "0.6789403", "0.67647535", "0.6688743", "0.6619853", "0.6604044", "0.65808916", "0.6574733", "0.6560186", "0.65585333", "0.65454257", "0.6537891", "0.6537689", "0.6530774", "0.65218...
0.85411066
0
PROTECTED Automatically allocates the port at the correct coordenates and at the correct side of the network element which is its owner.
function allocatePort(numberOfPortsAtSameSide, position) { var n = eval(numberOfPortsAtSameSide); var pos = eval(position); if (this.side == TOP) { this.x = Math.floor(this.ne.width / (n + 1) * pos); this.y = -3; } else if (this.side == LEFT) { this.x = -3; this.y = Math.floor(this.ne.height / (n + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allocateNePorts() {\n\t\tvar topPortList = new List();\n\t\tvar leftPortList = new List();\n\t\tvar rightPortList = new List();\n\t\tvar bottomPortList = new List();\n\t\tfor (var i = 0; i < this.ports.getLength(); i++) {\n\t\t\tvar port = this.ports.get(i);\n\t\t\tport.calculateCoords();\n\t\t\tif (port....
[ "0.6589341", "0.6284914", "0.6280063", "0.6207265", "0.6078792", "0.6005477", "0.5980292", "0.5906484", "0.5895038", "0.5796827", "0.57903403", "0.57764393", "0.57742155", "0.5769936", "0.5736062", "0.5705533", "0.56850606", "0.5680333", "0.56361055", "0.5625289", "0.560588",...
0.6962556
0
PROTECTED Calculates the correct side of the network element where the port has to be located.
function calculateCoords() { var localNE = this.ne; var remoteNE = this.connection.originPort == this ? this.connection.destinationPort.ne : this.connection.originPort.ne; if (remoteNE.x == localNE.x) { this.side = remoteNE.y > localNE.y ? BOTTOM : TOP; } else { if (this.connection.middlePoint == LEFT_COR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getDimToPort() : number {\n return this._bitField.getInt(237,6,true);\n }", "get port() {\n return this.getNumberAttribute('port');\n }", "get port() {\n return this.getNumberAttribute('port');\n }", "function getPort () {\n return _port++;\n}", "function getPort(){\n\t\treturn ...
[ "0.61928546", "0.5848218", "0.5848218", "0.58440787", "0.5670722", "0.5668356", "0.56626624", "0.5646188", "0.5645919", "0.55165094", "0.5399065", "0.5398995", "0.5357292", "0.5354413", "0.53473103", "0.5336553", "0.5270461", "0.5261126", "0.52424216", "0.52424216", "0.522617...
0.54307324
10
PROTECTED Writes the port's HTML code inside the map.
function writePort() { var oval = document.createElement("v:oval"); oval.setAttribute("id", this.id); var elem = document.getElementById(this.ne.id).appendChild(oval); elem.style.position = "absolute"; elem.style.width = 5; elem.style.height = 5; elem.style.zIndex = 10; elem.fill.color = this.color; e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render() {\n debugMap(map, 10, 20);\n }", "render(map)\n\t{\n\t\tthrow new Error(\"Not implemented\");\n\t}", "function createWorldPage_HTML () {\n // Set global variable with type of map to be opened\n local = [];\n local.push(\"world\", \"none\");\n\n // Set url\n window.his...
[ "0.60849166", "0.59678197", "0.5671555", "0.55835706", "0.54375935", "0.5435158", "0.53818846", "0.538061", "0.5371451", "0.5370228", "0.53454745", "0.5329982", "0.5327752", "0.5321358", "0.5312796", "0.5244768", "0.5210158", "0.513382", "0.513341", "0.5133079", "0.510637", ...
0.5504189
4
PUBLIC Removes this port from the network element which owned it;
function removePort() { this.ne.removePort(this); document.getElementById(this.ne.id).removeChild(document.getElementById(this.id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removePortFromNE(port) {\n\t\tthis.ports.remove(this.ports.indexOf(port));\n\t}", "function deletePort(element, data){\n $(element).parents('[data-type=\"port-group\"]').detach();\n }", "function removeConnection() {\n\t\tthis.originPort.remove();\n\t\tthis.destinationPort.remove();\n\t\tdoc...
[ "0.7792677", "0.71714723", "0.6788914", "0.66251504", "0.6144582", "0.6018916", "0.5911944", "0.58741814", "0.58404994", "0.58029485", "0.57689476", "0.5747708", "0.5733596", "0.5714124", "0.57082635", "0.5704804", "0.5627557", "0.5623223", "0.5609218", "0.5608522", "0.554238...
0.8160863
0
NetworkElement object PUBLIC Constructor The network elements are the nodes of the map. There is a predefined shape and dimension for each network element, but there are a lot of parameters which can be cofigured to give the network element different looks and change these initial shape and dimension. By default, a net...
function NetworkElement(name, xPos, yPos) { this.name = name == null || name == "null" ? "noName" : name; this.id = null; this.extendedInformation = null; this.rectid = null; this.x = xPos == null || xPos == "null" ? 0 : eval(xPos); this.y = yPos == null || yPos == "null" ? 0 : eval(yPos); this.height = 5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MwNetworkElement(id){\n\tthis.id = id\n\tthis.mwAirInterfaceArr = [];\n\n\tthis.getId = function(){\n\t\treturn this.id;\n\t}\n}", "function createNetWork(element){\n if(!isLoaded){ \n var container = element;\n var data = {\n nodes: this.nodes,\n edges: this.edges...
[ "0.66990656", "0.6626103", "0.659194", "0.64780796", "0.6170363", "0.6098633", "0.60618114", "0.60343874", "0.60343874", "0.60343874", "0.60343874", "0.60343874", "0.5932257", "0.5833009", "0.58300924", "0.5768002", "0.5752008", "0.5696884", "0.5648296", "0.56373864", "0.5607...
0.7179377
0
PROTECTED Sets the network element's identifier.
function setNeId(id) { this.id = NETWORK_ELEMENT + id; this.rectid = NETWORK_ELEMENT + id + "rect"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setIdentifier (value) {\n this._identifier = value;\n }", "set _id(value) {\n this.__id = value;\n }", "function addIdentifier() {\n $scope.dataAttributeChartID = 'chartid' + Math.floor(Math.random() * 1000000001);\n angular.element($element).attr('id', $scope.dataAttributeChartID);\n co...
[ "0.6639387", "0.6174527", "0.59202385", "0.5805669", "0.58007115", "0.57978064", "0.57978064", "0.57978064", "0.57640165", "0.57582325", "0.5634599", "0.5634599", "0.56304467", "0.56152195", "0.5607772", "0.5589355", "0.5560693", "0.55156976", "0.5501209", "0.5501209", "0.549...
0.6559965
1
PUBLIC Attaches an object to this NetworkElement as extended information.
function setExtendedInformationNE(eiObj) { this.extendedInformation = eiObj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerExtension (object) {\n // TODO dedupe to be really nice\n let ep = this._ep\n // The latest version of the list, which clients can make views of\n ep._backingArray.push(object)\n // Emit to any listeners that clients may want informed.\n delete ep._objCache\n delete this._objGroupsCach...
[ "0.55538446", "0.53967226", "0.5373945", "0.5373945", "0.5260264", "0.5242181", "0.5228512", "0.5197123", "0.50776404", "0.50728023", "0.50551045", "0.50551045", "0.5025244", "0.5006463", "0.5006463", "0.5005028", "0.49888912", "0.49768597", "0.49670213", "0.49666256", "0.494...
0.6155642
0
PUBLIC Sets the name location inside the network element's rectangle.
function setNameLocationNE(location) { this.nameLocation = location; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeNameNE() {\n\t\tvar namesp = document.createElement(\"span\");\n\t\tnamesp.setAttribute(\"id\", this.id + \"name\");\n\t\tvar elem = document.getElementById(this.id).appendChild(namesp);\n\t\telem.style.position = \"absolute\";\n\t\tif (this.nameLocation == NAME_UP) {\n\t\t\telem.style.top = 0;\n\t\t...
[ "0.6853311", "0.68241477", "0.6678794", "0.6673995", "0.66653454", "0.66475165", "0.64526844", "0.6357382", "0.6279149", "0.626294", "0.62469137", "0.6238341", "0.6201668", "0.61791193", "0.6159886", "0.6140433", "0.6135088", "0.61016333", "0.60070646", "0.5998543", "0.596718...
0.6884605
0
PUBLIC Attaches an action to the click event of this network element.
function setClickActionNE(functionName) { this.onClicked = eval(functionName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onClick() {\n // const behavior = this.getAttribute('my-action');\n // const behavior = this.dataset\n // console.dir(this.dataset.action, 'action');\n const behavior = this.dataset.action;\n\n actions[behavior] && actions[behavior]();\n // console.log(this.get...
[ "0.65870017", "0.6572933", "0.65367836", "0.6514696", "0.6277754", "0.6263175", "0.59304243", "0.58768207", "0.5874428", "0.5864297", "0.585437", "0.58230245", "0.58103514", "0.577086", "0.57664675", "0.5761172", "0.57597685", "0.57124835", "0.56883496", "0.5644727", "0.56407...
0.55306095
31
PUBLIC Sets the background form of the network element.
function setBackgroundFormNE(bgForm) { this.bgForm = bgForm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setBackground(background) {\n this.background = background\n }", "set background(value) {\n if (value === this.backgroundIn) {\n return;\n }\n this.backgroundIn = value;\n this.notifyPropertyChanged('background');\n }", "set background(value) {\n if (v...
[ "0.70392674", "0.6876336", "0.6876336", "0.6831627", "0.67228574", "0.6547865", "0.6376944", "0.6353932", "0.6353932", "0.6330092", "0.6323669", "0.63216007", "0.6309347", "0.6304187", "0.6286375", "0.62752527", "0.6249634", "0.6243559", "0.6181639", "0.6179664", "0.6179079",...
0.60764
27
PUBLIC Sets the background type of the network element.
function setBackgroundStyleNE(bgType) { this.bgType = bgType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set background(value) {\n if (value === this.backgroundIn) {\n return;\n }\n this.backgroundIn = value;\n this.notifyPropertyChanged('background');\n }", "set background(value) {\n if (value === this.backgroundIn) {\n return;\n }\n this.ba...
[ "0.6038098", "0.6038098", "0.60147434", "0.57430434", "0.5706995", "0.570086", "0.56539017", "0.564886", "0.55599576", "0.5542338", "0.5522327", "0.5513073", "0.54948837", "0.5485311", "0.5485311", "0.54778904", "0.54451025", "0.54203916", "0.5401901", "0.53722405", "0.534755...
0.76833045
0
PUBLIC Sets the background colors. If the background type is set to BG_SOLID, only the color1 is mandatory. If the background type is set to BG_NONE, these colors are irrelevant. This colors can be the hexadecimal representation or the name of the color, such as "ffffff" and "white".
function setBackgroundColorNE(color1, color2) { this.bgColor1 = color1; this.bgColor2 = color2; if (document.getElementById(this.rectid) != null && this.bgType != BG_NONE) { document.getElementById(this.rectid).fill.color = this.bgColor1; document.getElementById(this.rectid).fill.color2 = this.bgColor2; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_background (r, g, b) {\r\n red = r;\r\n green = g;\r\n blue = b;\r\n}", "function setBackground()\n{\n canvas.style.backgroundColor = 'rgb(' + [paintColor[0],paintColor[1],paintColor[2]].join(',') + ')';\n}", "function setBackgroundRGB(){\n var redHex = rgbToHex(document.getElementById(\"Back...
[ "0.674152", "0.65501016", "0.6445036", "0.6429412", "0.626795", "0.62324786", "0.6225279", "0.6172135", "0.6148225", "0.60412335", "0.60080814", "0.5999975", "0.59567493", "0.58873963", "0.5875091", "0.5829076", "0.5824873", "0.5816687", "0.5805671", "0.5791534", "0.57701063"...
0.62763715
4
PUBLIC Sets the roundness of the network element's corners.
function setRoundCornersPercentageNE(rate) { this.roundCornerPercentage = rate; if (document.getElementById(this.rectid) != null && this.bgForm == ROUNDRECT) { document.getElementById(this.id).removeChild(document.getElementById(this.rectid)); this.writeBg(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RoundCornersModifier() {\n }", "function roundCorners(element) {\r\n\tvar size = 20;\r\n\tvar settings = {\r\n\t\ttl: { radius: size },\r\n\t\ttr: { radius: size },\r\n\t\tbl: { radius: size },\r\n\t\tbr: { radius: size },\r\n\t\tantiAlias: true\r\n\t}\r\n\tcurvyCorners(settings, element);\r\n}", "...
[ "0.6388039", "0.6382131", "0.6121553", "0.60113585", "0.59100926", "0.58515006", "0.56980675", "0.5619894", "0.5534117", "0.5429007", "0.53738284", "0.5343055", "0.5337972", "0.53362364", "0.5302273", "0.5299986", "0.522548", "0.5154211", "0.5141479", "0.50998735", "0.5095444...
0.6201287
2
PUBLIC Sets the inner image of this network element. The image appears in order to the name's location of the network element. When the name location is NAME_UP, the image is displayed below the name; when it is NAME_DOWN, the image is displayed at the top; and when it is NAME_CENTER, the image is displayed centered be...
function setImageNE(img) { if (img.indexOf("/") != -1) { this.image = img; } else { this.image = URL_IMAGES + img; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeImageNE() {\n\t\tvar elem = document.getElementById(this.id).appendChild(document.createElement(\"span\"));\n\t\telem.style.position = \"absolute\";\n\t\telem.style.left = 0;\n\t\telem.style.width = this.width;\n\t\telem.style.backgroundImage = \"url(\" + this.image + \")\";\n\t\tvar pos = NAME_CENTE...
[ "0.6747656", "0.5642521", "0.5549489", "0.5469916", "0.54567", "0.5451964", "0.54376084", "0.5431866", "0.5399786", "0.5373555", "0.53586787", "0.5341804", "0.5334713", "0.5332349", "0.5306047", "0.53034663", "0.52989143", "0.52736443", "0.5219724", "0.52056473", "0.5202955",...
0.5796383
1
PUBLIC Sets the color of the network element's name.
function setTextColorNE(color) { this.textColor = color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setNameColor(color){\n\t$(\".identifier span\").css({\"color\": \"#\" + color});\n\t\n\tnewNameColor = \"#\" + color;\n}", "updateColor(color) {\n this.colorName = color;\n }", "function setStyle(node, name) {\n switch (name.toLocaleLowerCase()) {\n case \"orange\":\n ...
[ "0.74233943", "0.67897713", "0.67247087", "0.6685088", "0.65061754", "0.64122015", "0.63990766", "0.63560617", "0.6213436", "0.6192587", "0.6164742", "0.6163886", "0.6124616", "0.61028594", "0.6094721", "0.6094721", "0.60328895", "0.6023513", "0.60095143", "0.6006221", "0.599...
0.61472803
12
PUBLIC Sets whether the network element has border or not.
function setBorderNE(hasBorder) { if (!eval(hasBorder)) { this.borderColor = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMinimapBorder(hasBorder) {\n\t\tif (!eval(hasBorder)) {\n\t\t\tthis.borderColor = \"#ffffff\";\n\t\t}\n\t}", "function resetBorder(element) {\n element.style.border = \"black solid thin\";\n }", "function setBorder()\n {\n var raw_container;\n var raw_element;...
[ "0.6756697", "0.6313183", "0.62406254", "0.6201227", "0.61759025", "0.61265415", "0.60331595", "0.5972918", "0.5939648", "0.5915165", "0.58829707", "0.5855085", "0.57568973", "0.57192427", "0.571897", "0.56813514", "0.56475633", "0.5628807", "0.56274873", "0.56084865", "0.559...
0.73952794
0
PUBLIC Sets the color of the border.
function setBorderColorNE(color) { this.borderColor = color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set setBorderColor (color) {\n this.borderColor = color;\n }", "set borderColor(value)\n\t{\n\t\tthis._nodeBorderColor = value;\n\t}", "function changeColor(bg, border) {\n setBgColor(bg);\n setBorderColor(border);\n }", "function _setBorderColor(color) {\n $menuWindow.css('border-col...
[ "0.80124164", "0.80094254", "0.71342313", "0.70606136", "0.70412934", "0.70051706", "0.6971955", "0.69503164", "0.68338346", "0.6697775", "0.66674876", "0.66199327", "0.6581753", "0.65424144", "0.644708", "0.6425066", "0.6424184", "0.64077884", "0.64077884", "0.6374986", "0.6...
0.6977347
6
PUBLIC Sets the width and height of the network element rectagle. The minimum values are 20x20 pixels.
function setBoundsNE(width, height) { var w = eval(width); var h = eval(height); this.width = w < 20 ? 20 : w; this.height = h < 20 ? 20 : h; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resize() {\n const w = parseInt(container.offsetWidth);\n node.attr('width', w);\n node.attr('height', Math.round(w / aspect));\n }", "updateSize() {\n this.w = this.ent.width + this.wo;\n this.h = this.ent.height + this.ho;\n }", "function setBoundsDottedNE(width, height) {\n\t...
[ "0.6368785", "0.6276717", "0.6196228", "0.6195369", "0.61842465", "0.6171718", "0.61674666", "0.60963196", "0.60933065", "0.60933065", "0.60861164", "0.60739684", "0.6045343", "0.6040258", "0.60260665", "0.59990954", "0.5978366", "0.59660506", "0.5956834", "0.5936259", "0.592...
0.69820476
0
PROTECTED Allocates the network element at the specified coordenates inside the map.
function allocateNE(x, y) { if (x != null && y != null) { this.x = x; this.y = y; } document.getElementById(this.id).style.pixelLeft = this.x; document.getElementById(this.id).style.pixelTop = this.y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allocateConnection() {\n\t\tif (document.getElementById(this.id) != null) {\n\t\t\tdocument.getElementById(MAP).removeChild(document.getElementById(this.id));\n\t\t}\n\t\tthis.points = this.originX + \",\" + this.originY + \" \";\n\t\tif (this.middlePoint == LEFT_CORNER) {\n\t\t\tvar x = Math.min(this.ori...
[ "0.58873695", "0.5820267", "0.5803029", "0.57909834", "0.56774414", "0.5671872", "0.55421615", "0.5504963", "0.5456235", "0.5442441", "0.5440019", "0.5429529", "0.5417269", "0.5414185", "0.5404856", "0.53593427", "0.5350201", "0.53431904", "0.5327585", "0.53017914", "0.524457...
0.58388174
1
PUBLIC Adds a port to this network element.
function addPortToNe(port) { port.setNetworkElement(this); this.ports.add(port, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addPort(publishedPort, targetPort, options) {\n var _c;\n (_c = this.ports) === null || _c === void 0 ? void 0 : _c.push(DockerCompose.portMapping(publishedPort, targetPort, options));\n }", "setPort(value) {\n return super.put(\"port\", value);\n }", "static set port(value) {}", "...
[ "0.6850452", "0.6476911", "0.60493755", "0.6043632", "0.6043632", "0.5982335", "0.58728427", "0.580054", "0.5746384", "0.57067657", "0.56003404", "0.5583877", "0.5503921", "0.55038494", "0.55038494", "0.5420757", "0.5392996", "0.53662705", "0.5343898", "0.5309187", "0.5298849...
0.7030133
0
PUBLIC Removes a port from this network element.
function removePortFromNE(port) { this.ports.remove(this.ports.indexOf(port)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removePort() {\n\t\tthis.ne.removePort(this);\n\t\tdocument.getElementById(this.ne.id).removeChild(document.getElementById(this.id));\n\t}", "function deletePort(element, data){\n $(element).parents('[data-type=\"port-group\"]').detach();\n }", "function removeFirewallOnPort(port) {\n if ...
[ "0.79604155", "0.6638809", "0.6362337", "0.60185754", "0.57772803", "0.5659161", "0.55786496", "0.5397838", "0.5397838", "0.53913087", "0.538649", "0.53309095", "0.53309095", "0.5325927", "0.5274362", "0.5259691", "0.52533233", "0.5243744", "0.5243059", "0.52296776", "0.51054...
0.7613842
1
PROTECTED Writes the HTML code for this network element. A network element is created in five steps: the main span writing, the background writing, the background image writing, the name writing and the overglass writing. The overglass is an invisible layer set over all the previous layers.
function writeNE() { this.writeMainSpan(); this.writeBg(); if (this.image != null) { this.writeImage(); } this.writeName(); this.writeOverglass(); this.allocate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeImageNE() {\n\t\tvar elem = document.getElementById(this.id).appendChild(document.createElement(\"span\"));\n\t\telem.style.position = \"absolute\";\n\t\telem.style.left = 0;\n\t\telem.style.width = this.width;\n\t\telem.style.backgroundImage = \"url(\" + this.image + \")\";\n\t\tvar pos = NAME_CENTE...
[ "0.6438481", "0.6083972", "0.5927763", "0.58361167", "0.5823406", "0.5813717", "0.5716277", "0.5675039", "0.56063193", "0.55586964", "0.5410715", "0.53989166", "0.5308913", "0.5291787", "0.52897066", "0.52852863", "0.52750814", "0.5250145", "0.52461034", "0.5168461", "0.51507...
0.7098822
0
PRIVATE Writes the main span. This is only the HTML space where the network element's elements will be written.
function writeMainSpanNE() { var mainnesp = document.createElement("span"); mainnesp.setAttribute("id", this.id); var elem = document.getElementById(MAP).appendChild(mainnesp); elem.style.position = "absolute"; elem.style.width = this.width; elem.style.height = this.height; elem.style.zIndex = 5; elem.p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeDottedMainSpan() {\n\t\tvar dotsp = document.createElement(\"span\");\n\t\tdotsp.setAttribute(\"id\", this.id);\n\t\tvar elem = document.body.appendChild(dotsp);\n\t\telem.style.position = \"absolute\";\n\t\telem.style.top = 0;\n\t\telem.style.left = 0;\n\t\telem.style.width = document.body.clientWid...
[ "0.7280144", "0.6460912", "0.5911501", "0.5758377", "0.5681041", "0.5530432", "0.543263", "0.5394247", "0.5372352", "0.5360188", "0.5358735", "0.53554136", "0.53092104", "0.5295044", "0.5220478", "0.5217259", "0.5217259", "0.5217259", "0.5217259", "0.51896834", "0.51761687", ...
0.75261873
0