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
Clear the search history of a given task.
function removeSearchHistory(worker, taskId) { if (taskId) { var logEntries = datastore.readLogEntriesByTask(taskId, "search_executed"); for (let entry of logEntries) { datastore.deleteLogEntry(entry._id); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearToday(task) {\n if (task.isToday()) {\n task.setToday(false);\n task.resetTags = [\"today\"];\n task.setTags = [];\n updateTask(task);\n }\n}", "function clearsearch() {\n searchResultArray.clear();\n searchTrailArray.clear();\n}", "function clearHistory() {\n localStorage.clea...
[ "0.645901", "0.6293411", "0.6115374", "0.61017114", "0.6100792", "0.6089794", "0.5996407", "0.5919711", "0.5903406", "0.58811665", "0.5843501", "0.5784202", "0.5770136", "0.5765477", "0.57462746", "0.57462746", "0.5745545", "0.5739191", "0.5738095", "0.57165986", "0.5703505",...
0.7016039
0
Get all stored tabs for a given task.
function getTabsFromLog(worker, taskId) { if (taskId) { var logEntries = datastore.readLogEntriesByTask(taskId, "tab_stored"); worker.port.emit("TabsLoaded", logEntries); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStoredTabs() {\n\tvar stored_tabs = localStorage['tabs'];\n\tvar tabs = (stored_tabs) ? JSON.parse(stored_tabs) : [];\n\treturn tabs;\n}", "function getTabs(){\n return tabs;\n }", "function getTasks() {\n var keys = Object.keys(localStorage);\n var tasks = [];\n ...
[ "0.63851", "0.6234323", "0.6009264", "0.5724733", "0.5718518", "0.5711694", "0.5667776", "0.5647318", "0.5626987", "0.56086385", "0.559739", "0.55495", "0.54688114", "0.54128563", "0.5403088", "0.5390324", "0.5364427", "0.5334956", "0.5330643", "0.53121096", "0.5266521", "0...
0.6446458
0
Return all search queries from the log regarding a certain task.
function getSearchQueriesByTask(worker, taskId) { if (taskId) { var logEntries = datastore.readLogEntriesByTask(taskId, "search_executed"); worker.port.emit("SearchHistoryLoaded", logEntries); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSearchQueriesByTaskAndProvider(worker, taskId, provider) {\n if (taskId != null && provider != null) {\n var logEntries = datastore.readLogEntriesByTask(taskId, \"search_executed\");\n var filteredLogEntries = [];\n\n for (let entry of logEntries) {\n for (let param of entry.parameters) ...
[ "0.6901432", "0.6290858", "0.58488196", "0.5844112", "0.58101124", "0.5555122", "0.55546045", "0.554772", "0.54885983", "0.54668695", "0.5426961", "0.54005814", "0.5382755", "0.5344844", "0.5309562", "0.53090507", "0.52824473", "0.5260708", "0.5250871", "0.5237325", "0.523706...
0.78410065
0
Return all search queries from the log regarding a certain task and search provider.
function getSearchQueriesByTaskAndProvider(worker, taskId, provider) { if (taskId != null && provider != null) { var logEntries = datastore.readLogEntriesByTask(taskId, "search_executed"); var filteredLogEntries = []; for (let entry of logEntries) { for (let param of entry.parameters) { if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSearchQueriesByTask(worker, taskId) {\n if (taskId) {\n var logEntries = datastore.readLogEntriesByTask(taskId, \"search_executed\");\n worker.port.emit(\"SearchHistoryLoaded\", logEntries);\n }\n}", "function LogSearcher(cfg) {\n var db = new sqli.Database(cfg.fileName, sqli.OPEN_READONLY...
[ "0.7613302", "0.56927806", "0.5668614", "0.561844", "0.5573051", "0.5493748", "0.5491162", "0.545948", "0.5455788", "0.5433737", "0.5421021", "0.5406788", "0.53835016", "0.53575385", "0.53554296", "0.53251797", "0.52724665", "0.52693737", "0.52110636", "0.51891404", "0.516849...
0.774426
0
Return query suggestions from Google.com
function getQuerySuggestions(worker, suggestionsProvider, searchProvider, query) { if (query != null && query.length > 0) { //var q = utils.filterDuplicates(utils.filterStopwords(utils.filterIllegalCharacters(query))); var q = query; q = q.replace(/\s\s+/g, ' '); // remove all multiple spaces q = enco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "suggestions() {\r\n return this.clone(MySocialQuery_1, \"suggestions\").get().then(r => {\r\n return hOP(r, \"Suggestions\") ? r.Suggestions.results : r;\r\n });\r\n }", "suggest(query){\n const that = this;\n let maxNumber = this.maxSuggestResults;\n const promis...
[ "0.6921781", "0.6663402", "0.661607", "0.6593542", "0.6495398", "0.628145", "0.62801784", "0.62364435", "0.6230868", "0.623046", "0.6211439", "0.61823195", "0.61463124", "0.612745", "0.6108516", "0.6084493", "0.60777503", "0.60561407", "0.6054429", "0.60541606", "0.6029073", ...
0.65238327
4
Simple Function Function declaration
function greet() { console.log('Iam From Greet Function'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Func_s() {\n}", "function fuction() {\n\n}", "function functionDeclaration() {}", "function miFuncion (){}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function fun() { }", "function miFuncion(){\n\n}", "function myFunction() {}", "function fuctionPa...
[ "0.7729232", "0.7635317", "0.7551395", "0.7510109", "0.74016404", "0.74016404", "0.74016404", "0.7331341", "0.732668", "0.72819835", "0.72625613", "0.71903443", "0.7147227", "0.71180665", "0.7019896", "0.701362", "0.69511896", "0.6943933", "0.6918918", "0.6901028", "0.6891102...
0.0
-1
function with less Args
function greetLessArgs(name , age) { console.log('Hello ' + name + ' You Are ' + age + ' Years Old!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SimpleArgs() {\r\n}", "function fn1([...args]) {}", "function functionWithArgs(a,b){\n console.log(a+b);\n }", "function blau(a,b,...params){\n return params;\n}", "function greetLessArgs(name,age) {\n console.log(\"Hello \"+name+ \" you are \"+age+ \" yrs old\");\n}", "function funct...
[ "0.7006195", "0.68826485", "0.6661551", "0.65964115", "0.6555819", "0.6553333", "0.65336937", "0.6473937", "0.6456768", "0.64543694", "0.6434921", "0.642902", "0.6423228", "0.64013326", "0.64013326", "0.6395724", "0.637618", "0.63737816", "0.63724625", "0.63651127", "0.634007...
0.6572519
4
Function with More Args
function greetMoreArgs(name , age) { console.log('Hello ' + name + ' You Are ' + age + ' Years Old!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function myFun(a, b, ...manyMoreArg){\n console.log(\"a\", a);\n console.log(\"b\", b);\n console.log(\"manyMoreArg\", ...manyMoreArg);\n}", "function myFun(a, b, ...manyMoreArgs) {\n console.log(\"a\", a); \n console.log(\"b\", b);\n console.log(\"manyMoreArgs\", manyMoreArgs); \n}", "function myF...
[ "0.73187727", "0.72730905", "0.72397065", "0.7227324", "0.71608984", "0.715685", "0.7115137", "0.70819414", "0.70267564", "0.69986975", "0.69799304", "0.69799304", "0.69413424", "0.69010746", "0.69010746", "0.68683535", "0.6863231", "0.68360555", "0.68335843", "0.6826259", "0...
0.7181922
4
Function with return Types
function greetReturn(name,age) { var greeting = 'Hello ' + name + ' You Are ' + age + ' Years Old!'; return greeting; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function returnType(arg) {\n return arg;\n}", "function ReturnValue(type, value){\n this.type = type\n this.value = value\n}", "function ReturnValue(type, value){\n this.type = type\n this.value = value\n}", "function staticallyVerifyReturnType(node, types) {\n return staticallyVerifyType(node.argu...
[ "0.6606255", "0.6112404", "0.6112404", "0.6007928", "0.5978875", "0.59300035", "0.59249926", "0.5897245", "0.58845043", "0.585566", "0.58497894", "0.5829227", "0.5826095", "0.5719283", "0.5650671", "0.5641376", "0.56396115", "0.5631856", "0.56094843", "0.55733883", "0.5569894...
0.0
-1
Functions as a parameter to other function
function greet1(name) { console.log('Iam From Greet 1 ' + name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Fn($1) { return function($2) { return Function_ ([$1, $2]); }; }", "function fun1( /*parametros opcionais*/ ){ /*retorno opcional*/ }", "function foo3(f) { f(1, 2); }", "function takesFunc(f){\n\tvar a = 1;\n\tvar b = 2;\n\tconsole.log(f(a,b));\n}", "function firstFunc(funcParam){\n funcParam()...
[ "0.6740978", "0.6680042", "0.6656874", "0.6586329", "0.65524155", "0.652785", "0.65034395", "0.64791155", "0.64708966", "0.64595556", "0.6458459", "0.6440159", "0.6430925", "0.64274955", "0.64260525", "0.64209366", "0.6415009", "0.6370809", "0.63530815", "0.63526285", "0.6352...
0.0
-1
Initializes DP application > Called by onload event
function initNds() { initTOC(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onPreappinit() {\n kony.print(\"LOG : onPreappinit - START\");\n gAppData = new initAppData();\n}", "init() {\n // Action to execute on load of the app\n }", "function init() {\n\t\t//console.log(\"app.init()\");\n\t\tif(initDone) {\n\t\t\t//console.log(\"init already done.\");\n\t\t\treturn...
[ "0.76062775", "0.755635", "0.7524562", "0.7493829", "0.7408809", "0.7225977", "0.7156006", "0.7060662", "0.7043823", "0.6988036", "0.6987848", "0.69765174", "0.69339615", "0.69272053", "0.69221234", "0.69213045", "0.6909308", "0.6848279", "0.6841282", "0.68296754", "0.6826495...
0.0
-1
Used to handle message sending promises
function messageHandler(err) { console.log(err); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handleMessage(clientId, data) {\n return new Promise( (resolve, reject) => {\n log(`client ${clientId}: |${data}|`);\n if (data.match(/^\\s*subscribe\\s+/)) {\n\tconst m = data.match(/subscribe\\s+(\\w+)/);\n\tif (m) {\n\t let machine = m[1];\n\t this.subscribe(clientId, machine)\n\t .then( () =>...
[ "0.678871", "0.66996264", "0.66951406", "0.6682108", "0.6659053", "0.6656766", "0.66537297", "0.6625579", "0.6579493", "0.6523565", "0.6520503", "0.64918417", "0.64851", "0.64685726", "0.64672005", "0.64501345", "0.6435425", "0.6409921", "0.6406419", "0.63895833", "0.6388403"...
0.0
-1
Called before loading new report.
function onLoadStarted(callback) { if (options && options.onLoadStarted) { options.onLoadStarted.call(null, function() { callback.call(null); }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init(){\n getReportData();\n }", "addNewReport() {\n \n }", "function trapExcelReportGeneration(){\n\ttrapReportCreating('excelReport');\n}", "function GenerateReport(GenfromSavedFilters, Withemail) {\n //$('.loading').hide();\n //SetLoadingImageVisibility(false);\n ...
[ "0.65547824", "0.59288126", "0.5761246", "0.5745731", "0.5745731", "0.56637263", "0.56305975", "0.5585397", "0.5585397", "0.55672675", "0.55605716", "0.5549125", "0.5535163", "0.5522328", "0.5519373", "0.5519373", "0.5505304", "0.5417005", "0.5400602", "0.5399939", "0.5376636...
0.0
-1
Start of function verify
function verify() { clearErrors(); var bet = document.getElementById("bet").value; if (bet == "" || isNaN(bet)) { alert("Please place dollar amount to begin betting."); document.getElementById("bet").className="error"; document.getElementById("bet").focus(); return; } // parseFloat ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "verify() {\n // TODO\n }", "function verify() {\r\n\tif(nameCheck())\r\n\t{\r\n\t\tconsole.log(\"Name Check Verified!\");\r\n\t\tif(emailCheck())\r\n\t\t{\r\n\t\t\tconsole.log(\"Email Check Verified!\");\r\n\t\t\tif(radioCheck())\r\n\t\t\t{\r\n\t\t\t\tconsole.log(\"Radio Check Verified!\");\r\n\t\t\t\t...
[ "0.7965713", "0.68977255", "0.6845794", "0.6765039", "0.64756274", "0.6331635", "0.61753535", "0.6171342", "0.6150293", "0.61420655", "0.6141321", "0.6137481", "0.60343164", "0.60179967", "0.59498245", "0.59489655", "0.59416527", "0.5918819", "0.59109145", "0.59044415", "0.58...
0.0
-1
endregion region fetch data
fetchDataMeteor() { fetch('https://data.nasa.gov/resource/y77d-th95.geojson') .then(response => { return response.json() }) .then(result => { const meteorPoints = result.features.map(d => { return { name: d.properties.name, mass: parseInt(d.propert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_data() {}", "fetchData() {\n this.initLoading();\n\n this.setFilters(this.qs_url, this.generateBaseFilters());\n this.data.filters = this.getFilters(this.qs_url);\n\n let qs = this.setQuerySet(this.view, this.qs_url).filter(this.getFiltersP...
[ "0.6984389", "0.6879007", "0.67715424", "0.6642256", "0.6642256", "0.66342676", "0.6622372", "0.66201127", "0.65612876", "0.65544146", "0.65484935", "0.6500514", "0.6499931", "0.649669", "0.64951473", "0.6492669", "0.648948", "0.6466741", "0.64255106", "0.6424819", "0.6423535...
0.0
-1
Adapted from convertsourcemap (MIT)
function toComment(sourceMap) { // eslint-disable-next-line no-undef var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; return '/*# ' + data + ' */'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extractSourceMap(fs, logger, file) {\n var inline = convert_source_map_1.commentRegex.test(file.text);\n var external = convert_source_map_1.mapFileCommentRegex.exec(file.text);\n if (inline) {\n var inlineSourceMap = convert_source_map_1.fromSource(file.text);\n ...
[ "0.69679177", "0.69377697", "0.6766028", "0.64417124", "0.6328751", "0.6298322", "0.62560046", "0.62101054", "0.61941034", "0.61812615", "0.6174456", "0.6158464", "0.6158464", "0.6158464", "0.6154967", "0.60953844", "0.603989", "0.5989855", "0.5980601", "0.5979361", "0.597915...
0.0
-1
function that is called when the user submits their request
submit() { //if one of the fields is missing, creates error message //notifies user and returns without submitting if (!this.state.type || !this.state.startDate || !this.state.endDate) { var error = 'Please fill out all Required Fields.\n' if (!this.state.startDate){ error += 'Missing Fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function submit_fillter(){\n\n\t}", "submit() {}", "function submitClicked () {\n retrieveInput();\n changePage();\n}", "function formSubmitted(){\n getCurrentNumbers();\n setConfirmationMessage();\n}", "function POST(){\n \n}", "submit() {\n }", "function submit(event){\nconsole.log(\"st...
[ "0.7051294", "0.7023402", "0.69657725", "0.69496703", "0.6913111", "0.68758905", "0.67555016", "0.67375404", "0.67186755", "0.6611463", "0.6528387", "0.6504739", "0.65037364", "0.6493855", "0.6485505", "0.6470114", "0.643919", "0.6435987", "0.6371579", "0.6364242", "0.635175"...
0.0
-1
creates date object from the date passed to it checks to see what day of the week that day is and uses that to see whether or not a shift is scheduled in the schedule array in the Json file
getDateObject(currentDate) { var date = moment(currentDate, 'MM-DD-YYYY').format('MM-DD-YYYY'); var dayofTheWeekIndex = this.getDayOfTheWeekIndeces( moment(currentDate, 'MM-DD-YYYY').format('dddd')); var shiftDay = this.props.schedule[dayofTheWeekIndex]; var hours = 0; //if a shift is schedule...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getSchedule(location, date) {\r\n const weekday = this.weekDays[date.getDay()];\r\n return location.openingHours.weekDayOpeningList.find((weekDayOpeningListItem) => weekDayOpeningListItem.weekDay === weekday);\r\n }", "function processSchedule(schedule){\n let lastInd = 0;\n const results ...
[ "0.6349215", "0.6287248", "0.62648726", "0.6227944", "0.6192724", "0.602376", "0.6023714", "0.6021831", "0.5918501", "0.58801043", "0.58567387", "0.5836701", "0.58286023", "0.5805241", "0.58047074", "0.5780338", "0.5717737", "0.5705675", "0.5686009", "0.56729984", "0.5671876"...
0.63951594
0
every time there is a change in the date range (date picker was updated) or time range for a work day (time picker was updated) this function is called it updates the dateArray from the component level state
updateDateArray() { if (this.state.startDate !== '' && this.state.endDate !== '') { var dateArray = []; var hours = 0; var currentDate = this.state.startDate; var stopDate = this.state.endDate; //iterates through current range while (currentDate <= stopDate) { //checks ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleUpdateDates() {\n const start_date = formatTimestampToString(selectedStartDate);\n const end_date = formatTimestampToString(selectedEndDate);\n dispatch(\n setStartAndEndTime({\n start_date,\n end_date,\n })\n );\n }", "handleChange(date) {\n this.setSta...
[ "0.6705518", "0.6622088", "0.6606444", "0.6592774", "0.65796477", "0.6454288", "0.6439111", "0.64365244", "0.64347285", "0.6344816", "0.6334403", "0.6334134", "0.6302203", "0.6285264", "0.6237226", "0.6199216", "0.6194883", "0.6173097", "0.61674994", "0.6144124", "0.6114544",...
0.75644207
0
passed to children components so that if the hours of a specific day change, this component can update
updateParentState(dateObject, newDateObject) { var index = this.state.dateArray.indexOf(dateObject); this.state.dateArray[index] = newDateObject; this.updateDateArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setHour(e) {\n this.setState({ hours: e.target.value });\n let m = this.props.date\n m.hour(e.target.value)\n m.minute(this.state.minutes)\n this.props.onTimeChange(m)\n this.toggleHour()\n }", "function updateHours(dayHours) {\n var index = activityHours.dayHours....
[ "0.65755093", "0.64699405", "0.6459998", "0.6222834", "0.61607754", "0.6120157", "0.6114036", "0.60894734", "0.60894734", "0.6085934", "0.6082856", "0.5986368", "0.5979967", "0.5974679", "0.5911574", "0.58679235", "0.5862822", "0.5848038", "0.58158773", "0.57831764", "0.57806...
0.0
-1
translates days of the week to indeces
getDayOfTheWeekIndeces(dayOfTheWeek) { const dayofTheWeekIndeces = { Sunday: 0, Monday: 1, Tuesday: 2, Wednesday: 3, Thursday: 4, Friday: 5, Saturday: 6, }; return dayofTheWeekIndeces[dayOfTheWeek]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function russifyWeekDay(day) {\n if (day == 0)\n return 6;\n return day - 1;\n }", "rawDbValToDayInts (string) {\n return _.chain(moment()._locale._weekdaysShort).map((dow, index) => {\n var strContainsDay = (string.toLowerCase().indexOf(dow.toLowerCase()) >= 0...
[ "0.67382616", "0.66544026", "0.65841794", "0.6374728", "0.63191694", "0.63183224", "0.629796", "0.62742585", "0.62364", "0.62287277", "0.6211636", "0.615379", "0.61342263", "0.6107495", "0.610214", "0.60928696", "0.6091553", "0.6084597", "0.6080061", "0.60762376", "0.6070545"...
0.64658755
3
uses shift start time and end time to retreive hours
getShiftHours(shiftDay) { var startAMPM = shiftDay.start.slice(-2, -1).toLowerCase(); var endAMPM = shiftDay.end.slice(-2, -1).toLowerCase(); var startTime = moment(shiftDay.start, 'hh:mm ' + startAMPM); var endTime = moment(shiftDay.end, 'hh:mm ' + endAMPM); var duration = moment.duration(endTime.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHours(start_time, end_time){\n\t\tvar timeStart = new Date(start_time).getTime();\n\t\tvar timeEnd = new Date(end_time).getTime();\n\t\tvar hourDiff = timeEnd - timeStart; //in ms\n\t\tvar secDiff = hourDiff / 1000; //in s\n\t\tvar minDiff = hourDiff / 60 / 1000; //in minutes\n\t\tvar hDiff = hourDiff ...
[ "0.6780215", "0.65823925", "0.6428386", "0.63823396", "0.6220763", "0.61929256", "0.6146528", "0.6113986", "0.60930043", "0.60909456", "0.60535276", "0.60457313", "0.6023739", "0.6017103", "0.5944539", "0.5924958", "0.59059894", "0.5885037", "0.5878253", "0.58765596", "0.5843...
0.79254127
0
maps through date array and creates DayOffItem component for each
renderDateItems() { return this.state.dateArray.map(dateObject => { return ( <DayOffItem work={!(typeof dateObject.originalStartTime === 'undefined')} key={dateObject.date} date={dateObject.date} startTime={dateObject.startTime} endTime={dateObject.end...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildDayArray(dayCal){\n //look through the json file \"Eight Day Calendar\" and assemble arrays of each date\n for (let i = 0; i < dayCal.VCALENDAR[0].VEVENT.length; i++){\n let day = dayCal.VCALENDAR[0].VEVENT[i].SUMMARY;\n let dtStamp = dayCal.VCALENDAR[0].VEVENT[i];\n let date = dtStamp[\"D...
[ "0.61720365", "0.60679626", "0.59763235", "0.59565574", "0.58930624", "0.5875927", "0.5869499", "0.58652085", "0.5862505", "0.5839834", "0.5832777", "0.58244276", "0.58149004", "0.58014894", "0.57882595", "0.57580465", "0.5732803", "0.57141674", "0.5709889", "0.5664508", "0.5...
0.6883888
0
Get CUSTOMER DETAILS Table
function getCustomerDetailsTable() { var result; result = { table: { widths: [61, '*', 51, '*'], body: [ [{ text: 'CUSTOMER DETAILS', style: 'tableHeader', colSpan: 4, border: [false, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCustomerDetailsTable() {\n var result;\n result = {\n table: {\n widths: [70, '*', 70, '*'],\n body: [\n [{\n text: 'CUSTOMER DETAILS',\n style: 'tableHeader',\n colSpan: 4,\n b...
[ "0.74195766", "0.62578285", "0.6190693", "0.61116636", "0.6082848", "0.6015248", "0.5981792", "0.5935602", "0.58618516", "0.58517367", "0.5826155", "0.58054507", "0.5786636", "0.5772094", "0.5740778", "0.573481", "0.5725978", "0.5657152", "0.5626163", "0.5605806", "0.5605153"...
0.7702271
0
Get INSPECTION DETAILS Table
function getInspectionDetailsTable() { var result; result = { table: { widths: [100, '*', 25, '*', 40, '*'], body: [ [{ text: 'INSPECTION DETAILS', style: 'tableHeader', colSpan: 6, bo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getInspectionDetailsTable() {\n var result;\n result = {\n table: {\n widths: [100, '*', 25, '*', 40, '*'],\n body: [\n [{\n text: 'INSPECTION DETAILS',\n style: 'tableHeader',\n colSpan: 6,\n ...
[ "0.666997", "0.6155448", "0.5942278", "0.58463055", "0.58447134", "0.5821391", "0.5553214", "0.5550783", "0.5532134", "0.5476913", "0.5404722", "0.53957045", "0.53874326", "0.5353991", "0.5340454", "0.5337366", "0.52818877", "0.5279802", "0.52710813", "0.52650714", "0.5263948...
0.6678561
0
Get INSPECTOR DETAILS Table
function getInspectorDetailsTable() { var result; result = { table: { widths: [61, '*', 80, '*'], body: [ [{ text: 'ARCHITECT DETAILS', style: 'tableHeader', colSpan: 4, border: [false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getInspectorDetailsTable() {\n var result;\n result = {\n table: {\n widths: [61, '*', 80, '*'],\n body: [\n [{\n text: 'ARCHITECT DETAILS',\n style: 'tableHeader',\n colSpan: 4,\n ...
[ "0.7090436", "0.6550846", "0.65480745", "0.593273", "0.5838128", "0.5757798", "0.575176", "0.5647487", "0.5520776", "0.55106324", "0.55028147", "0.54882634", "0.54829586", "0.540178", "0.5397518", "0.5397518", "0.5397518", "0.53670937", "0.5346439", "0.53281003", "0.5290815",...
0.729894
0
Get DILAPIDATION SURVEY REPORT SUMMARY Table
function getSummaryReport() { var result; result = { table: { widths: ['*'], body: [ [{ text: 'DILAPIDATION SURVEY REPORT SUMMARY', style: 'tableHeader' }], [{ text: getIt(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getInspectionDetailsTable() {\n var result;\n result = {\n table: {\n widths: [100, '*', 25, '*', 40, '*'],\n body: [\n [{\n text: 'INSPECTION DETAILS',\n style: 'tableHeader',\n colSpan: 6,\n ...
[ "0.58512145", "0.58506924", "0.52880234", "0.5281007", "0.5278986", "0.526051", "0.5250358", "0.5229663", "0.5189121", "0.5181999", "0.51453865", "0.51435864", "0.5126007", "0.5125452", "0.50839907", "0.5044316", "0.5026169", "0.5009345", "0.5009345", "0.5009345", "0.5006702"...
0.6551536
0
Set the photo tables
function getPhotoTable() { var result; result = { table: { widths: ['*', '*'], headerRows:2, body: [ [ { text: 'DILAPIDATION SURVEY REPORT ', style: 'tableHeader' }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_setTable() {\r\n\r\n\r\n }", "function updateAlbumTable(){\n\n\tif(databaseObj){\n\t\tvar albumTable = document.getElementById(\"albumTable\");\n\t\tif(albumTable){\n\t\t\t// Clear album table\n\t\t\talbumTable.innerHTML = '';\n\t\t\tvar tdPerRow = 4;\n\t\t\tvar rowTotal = databaseObj.length/tdPerRow;\n\n\t\...
[ "0.65485924", "0.6167036", "0.5938056", "0.5822918", "0.57916176", "0.5707926", "0.5640577", "0.5550431", "0.5546925", "0.5535085", "0.5518279", "0.5496638", "0.5479532", "0.54595596", "0.5446443", "0.54428923", "0.54172033", "0.54159987", "0.53992134", "0.53923875", "0.53818...
0.63161355
1
Weather Class functions Loads new weather values into the DOM
paint(weatherData) { const tempF = weatherData.main.temp.toFixed(0), tempC = Util.tempFtoC(tempF), humidity = weatherData.main.humidity, dewPointC = Util.getDewPointCelsius(tempC, humidity), dewPointF = Util.tempCtoF(dewPointC), feelLF = weatherData.main.feels_like.toFixed(0), fe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init() {\n\n // instance of our weatherservice & node\n // _weatherService = new WeatherService();\n _weatherElementTitle = document.querySelector(\".weatherTitle\");\n _weatherElementCondition = document.querySelector(\".weatherCondition\");\n _weatherElementForecastDay...
[ "0.7495067", "0.7428941", "0.7410425", "0.7352504", "0.7301174", "0.72551334", "0.71936977", "0.7184453", "0.71441585", "0.7137662", "0.7111856", "0.7111334", "0.70787716", "0.70787424", "0.7074089", "0.7060285", "0.70457864", "0.7038787", "0.70222753", "0.70164853", "0.70127...
0.0
-1
replace icons with FontAwesome icons like above
function updatePagerIcons(table) { var replacement = { 'ui-icon-seek-first' : 'ace-icon fa fa-angle-double-left bigger-140', 'ui-icon-seek-prev' : 'ace-icon fa fa-angle-left bigger-140', 'ui-icon-seek-next' : 'ac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getIcons(text) {\n switch (text) {\n case 'Frigate':\n case 'Galleon':\n case 'Skiff':\n case 'Pinnace':\n case 'Flute':\n return 'fas fa-ship';\n case 'Tax increase':\n return 'fas fa-balance-scale';\n case 'Expedition':\n ...
[ "0.6857723", "0.660942", "0.6480685", "0.6420761", "0.6381144", "0.6375341", "0.63529575", "0.634563", "0.6340878", "0.6317268", "0.6313305", "0.6313305", "0.6313305", "0.6285106", "0.62508243", "0.62480927", "0.6237024", "0.62350476", "0.6216371", "0.62131643", "0.61826944",...
0.5782827
78
getTransactions only if user logged in.
componentDidMount() { if (this.props.user.isLoggedIn) { this.props.getTransactions(this.props.user.token) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getUserTransactions() {\n\t\tthis.userTransactions = this.appConfig.transactions.filter((transaction) => {\n\t\t\tif (transaction.userId === this.loggedInUserDetails.id) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}); // filter current user transactions from this.appConfig.transactions array\n\t\t// console.log(this.use...
[ "0.7922439", "0.68553156", "0.6105066", "0.60903025", "0.6078519", "0.6040972", "0.60210025", "0.60148203", "0.59163177", "0.58685637", "0.57912874", "0.578375", "0.5741284", "0.55607986", "0.5556436", "0.5528771", "0.5514059", "0.546336", "0.5463315", "0.54585105", "0.542080...
0.5705397
13
Resources: 'resource', 'resourcelist', 'validator', 'file' Actions: 'read', 'write', 'delete'
function getProtectedContext(path, method) { var action = 'read'; switch (method) { case 'put': case 'post': action = 'write'; break; case 'delete': action = 'delete'; break; case 'get': default: action =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_handleCommandResourceDelete(options)\n {\n options.resource.destroy({success: (model) => this._handleDeleteSuccess(model, this._collection)});\n }", "function Resource(url,params,actions,options$$1){var self=this||{},resource={};actions=assign({},Resource.actions,actions);each(actions,function(acti...
[ "0.58675665", "0.5469361", "0.5469361", "0.5359264", "0.53137064", "0.5310026", "0.52998394", "0.5287407", "0.5280993", "0.5267273", "0.5237125", "0.5234524", "0.5182864", "0.51309425", "0.512282", "0.5120223", "0.5110195", "0.5094185", "0.50856185", "0.507738", "0.5074372", ...
0.0
-1
Copyright (C) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
function o0(stdlib,o1,buffer) { try { "use asm"; }catch(e){} var o58 = -8065680838443580000; //views var o3 =new stdlib.Float64Array(buffer); function o4(){ var o5 = 0.5 var o6 = o2(1.5); try { o3[1] = o6; }catch(e){} try { return +(o3[1]) }catch(e){} } try ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "private internal function m248() {}", "static final private internal function m106() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient private protected internal function m182() {}", "createObjectContext2() {\n...
[ "0.57435924", "0.5541785", "0.5311904", "0.5296048", "0.52392644", "0.5194469", "0.5068493", "0.5057428", "0.5014754", "0.5010955", "0.49666846", "0.49255818", "0.49140283", "0.48800075", "0.48787647", "0.48764125", "0.48596087", "0.48264495", "0.48103467", "0.47961763", "0.4...
0.0
-1
deinterpolate(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1]. reinterpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding domain value x in [a,b].
function continuous(deinterpolate, reinterpolate) { var domain = unit, range = unit, interpolate = __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["a" /* interpolate */], clamp = false, piecewise, output, input; function rescale() { piecewise = Math.min(domain.length, range.len...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _interpolate(a, b, t) {\n\t return ((1 - t) * a) + (t * b);\n\t }", "function _interpolate(a, b, t) {\n return ((1 - t) * a) + (t * b);\n }", "function _interpolate(a, b, t) {\n return ((1 - t) * a) + (t * b);\n }", "function continuous(deinterpolate,reinterpolate){var ...
[ "0.6706285", "0.6662196", "0.6662196", "0.63676274", "0.63459253", "0.6336361", "0.6308024", "0.6308024", "0.6308024", "0.6308024", "0.6308024", "0.6308024", "0.6308024", "0.62603986", "0.6239831", "0.6239831", "0.6226358", "0.6226358", "0.6226358", "0.6226358", "0.62205416",...
0.62169546
23
From FvD 13.37, CSS Color Module Level 3
function hsl2rgb(h, m1, m2) { return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Colour(){\n\n /* Returns an object representing the RGBA components of this Colour. The red,\n * green, and blue components are converted to integers in the range [0,255].\n * The alpha is a value in the range [0,1].\n */\n this.getIntegerRGB = function(){\n\n // get the RGB components of this ...
[ "0.7089194", "0.7050894", "0.70180076", "0.6918326", "0.69088155", "0.6865348", "0.6787769", "0.6779162", "0.67433536", "0.6725297", "0.6723463", "0.6701248", "0.66937774", "0.66653216", "0.6639698", "0.66359454", "0.66359454", "0.66359454", "0.66295534", "0.66295534", "0.662...
0.0
-1
Compute unique columns in order of discovery.
function inferColumns(rows) { var columnSet = Object.create(null), columns = []; rows.forEach(function(row) { for (var column in row) { if (!(column in columnSet)) { columns.push(columnSet[column] = column); } } }); return columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "detectColumns (rows) {\n return rows\n .flatMap((row) => Object.keys(row))\n .filter((value, index, self) => self.indexOf(value) === index) // filter duplicates\n }", "unique() {\n return new ColumnDefinitionBuilder(ColumnDefinitionNode.cloneWith(this.#node, { unique: true }));\n }", "f...
[ "0.6173176", "0.610794", "0.590476", "0.58327276", "0.58327276", "0.58327276", "0.5797556", "0.5794667", "0.5758178", "0.5739503", "0.57260376", "0.57137597", "0.5710351", "0.5710351", "0.5710351", "0.5710351", "0.5710351", "0.5710351", "0.5710351", "0.57099915", "0.57099915"...
0.56062937
59
From FvD 13.37, CSS Color Module Level 3
function hsl2rgb(h, m1, m2) { return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Colour(){\n\n /* Returns an object representing the RGBA components of this Colour. The red,\n * green, and blue components are converted to integers in the range [0,255].\n * The alpha is a value in the range [0,1].\n */\n this.getIntegerRGB = function(){\n\n // get the RGB components of this ...
[ "0.70901304", "0.7050354", "0.7017924", "0.6917782", "0.6908611", "0.68642414", "0.6786904", "0.67798823", "0.6744557", "0.67256886", "0.6723826", "0.67006356", "0.6693938", "0.6665651", "0.6640096", "0.6636288", "0.6636288", "0.6636288", "0.66298765", "0.66298765", "0.662789...
0.0
-1
Compute unique columns in order of discovery.
function inferColumns(rows) { var columnSet = Object.create(null), columns = []; rows.forEach(function(row) { for (var column in row) { if (!(column in columnSet)) { columns.push(columnSet[column] = column); } } }); return columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "detectColumns (rows) {\n return rows\n .flatMap((row) => Object.keys(row))\n .filter((value, index, self) => self.indexOf(value) === index) // filter duplicates\n }", "unique() {\n return new ColumnDefinitionBuilder(ColumnDefinitionNode.cloneWith(this.#node, { unique: true }));\n }", "f...
[ "0.6173715", "0.6104725", "0.5904031", "0.5832267", "0.5832267", "0.5832267", "0.57971144", "0.5794229", "0.57574123", "0.5739018", "0.57257736", "0.5713465", "0.5709903", "0.5709903", "0.5709903", "0.5709903", "0.5709903", "0.5709903", "0.5709903", "0.57096964", "0.57096964"...
0.56059915
60
Export the required load_ipython_extention.
function load_ipython_extension() { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(181), __webpack_require__(178), __webpack_require__(179), __webpack_require__(180), __webpack_require__(560), __webpack_require__(182), __webpack_require__(216), __webpack_require__(349), __webpack_require__(504)], __WEBPACK_AMD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function load_ipython_extension() {\n return new Promise(function(resolve) {\n requirejs([\n 'nbextensions/noworkflow/index',\n 'base/js/namespace',\n 'base/js/events',\n 'base/js/utils',\n 'notebook/js/codecell',\n 'd3-selection',\n '@noworkflow/trial',\n '@noworkflow/h...
[ "0.71869785", "0.5488768", "0.52359253", "0.497564", "0.49605122", "0.48470658", "0.4784671", "0.47795537", "0.47681868", "0.47482154", "0.47330752", "0.46732932", "0.4669372", "0.46238455", "0.46232894", "0.46078557", "0.46000475", "0.45969087", "0.45861378", "0.45719022", "...
0.7585122
0
unused harmony export linear
function linear(t) { return +t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exports() {}", "function exports() {}", "function exports() {}", "function lt(t,i){return t(i={exports:{}},i.exports),i.exports}", "function u(t,e){return t(e={exports:{}},e.exports),e.exports}", "function _Platform_export_UNUSED(exports)\n{\n\tscope['Elm']\n\t\t? _Platform_mergeExportsProd(scop...
[ "0.612493", "0.612493", "0.612493", "0.60880035", "0.60044277", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.57926625", "0...
0.0
-1
unused harmony export quadIn / unused harmony export quadOut / unused harmony export quadInOut
function quadIn(t) { return t * t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Quad() {}", "function Quad() { return [-1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0] }", "function Quad() { return [-1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0] }", "function Quad() { return [\n -1.0, -1.0,\n 1.0, -1.0,\n -1.0, 1.0,\n\n -1.0, 1.0,\n 1.0, 1.0,\n 1.0, -1.0]\n ...
[ "0.6190526", "0.60993725", "0.60993725", "0.59590125", "0.59590125", "0.58741367", "0.5830805", "0.5811348", "0.5734026", "0.57002026", "0.5672796", "0.5506215", "0.54823214", "0.54495835", "0.54349023", "0.53993005", "0.53897995", "0.5353785", "0.5347303", "0.5328744", "0.53...
0.6200288
7
unused harmony export expIn / unused harmony export expOut / unused harmony export expInOut
function expIn(t) { return Math.pow(2, 10 * t - 10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exports() {}", "function exports() {}", "function exports() {}", "function u(t,e){return t(e={exports:{}},e.exports),e.exports}", "function o(t,e){return e={exports:{}},t(e,e.exports),e.exports}", "function lt(t,i){return t(i={exports:{}},i.exports),i.exports}", "function At(t, e) { return t(e...
[ "0.6575882", "0.6575882", "0.6575882", "0.6384221", "0.63714254", "0.61408204", "0.6027334", "0.5949855", "0.58173066", "0.5789453", "0.5781885", "0.56134355", "0.55912256", "0.5570819", "0.55659765", "0.55659765", "0.55427426", "0.55427426", "0.55427426", "0.55427426", "0.55...
0.0
-1
unused harmony export circleIn / unused harmony export circleOut / unused harmony export circleInOut
function circleIn(t) { return 1 - Math.sqrt(1 - t * t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function circle() {\n\n}", "function OrthoganalCircle(theta,dTheta) {\n \n \tlet R = 1.0/cos(dTheta);\n this.r = abs(tan(dTheta));\n // this.x = R*cos(theta);\n // this.y = R*sin(theta);\n \t//endpoints\n \tthis.p1 = createVector(cos(theta-dTheta),sin(theta-dTheta));\n this.p2 = createVector(cos(th...
[ "0.559246", "0.556082", "0.53699034", "0.53583926", "0.5278942", "0.5219953", "0.51390254", "0.51390254", "0.51390254", "0.5128762", "0.5127963", "0.5125297", "0.51149976", "0.50777864", "0.5074133", "0.5061408", "0.5033132", "0.5024158", "0.5008799", "0.5007757", "0.4998059"...
0.0
-1
This function works analogously to nextLeft.
function nextRight(v) { var children = v.children; return children ? children[children.length - 1] : v.t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n} // This function works analogously to nextLeft.", "function nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n} // This function works analogously to nextLeft.", "function nextLeft...
[ "0.7316525", "0.7316525", "0.7316525", "0.7316525", "0.7316525", "0.7316525", "0.66128993", "0.6588215", "0.6588215", "0.65769666", "0.65644085", "0.65455365", "0.65455365", "0.65455365", "0.6434973", "0.635838", "0.6329956", "0.63247436", "0.6308215", "0.62891346", "0.628913...
0.62050205
69
Shifts the current subtree rooted at w+. This is done by increasing prelim(w+) and mod(w+) by shift.
function moveSubtree(wm, wp, shift) { var change = shift / (wp.i - wm.i); wp.c -= change; wp.s += shift; wm.c += change; wp.z += shift; wp.m += shift; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n} // All other shifts, applied to the smaller subtrees between w- and w+, are", "function moveSubtree(wm, wp, shift) {\n var change = shift / ...
[ "0.7778664", "0.7778664", "0.7778664", "0.7778664", "0.7778664", "0.7778664", "0.72745264", "0.72745264", "0.72745264", "0.7244243", "0.7244243", "0.7244243", "0.7244243", "0.7240483", "0.7240483", "0.7240483", "0.7240483", "0.72212374", "0.72008884", "0.69815135", "0.6951084...
0.72387064
52
All other shifts, applied to the smaller subtrees between w and w+, are performed by this function. To prepare the shifts, we have to adjust change(w+), shift(w+), and change(w).
function executeShifts(v) { var shift = 0, change = 0, children = v.children, i = children.length, w; while (--i >= 0) { w = children[i]; w.z += shift; w.m += shift; shift += w.s + (change += w.c); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n} // All other shifts, applied to the smaller subtrees between w- and w+, are", "function moveSubtree(wm, wp, shift) {\n var change = shift / ...
[ "0.7933718", "0.7933718", "0.7933718", "0.7933718", "0.7933718", "0.7933718", "0.7038822", "0.7038333", "0.7038333", "0.7038333", "0.7038333", "0.6995497", "0.6995497", "0.6995497", "0.6995497", "0.6970147", "0.6970147", "0.6970147", "0.69557106", "0.6948519", "0.6914869", ...
0.0
-1
Computes a preliminary xcoordinate for v. Before that, FIRST WALK is applied recursively to the children of v, as well as the function APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the node v is placed to the midpoint of its outermost children.
function firstWalk(v) { var children = v.children, siblings = v.parent.children, w = v.i ? siblings[v.i - 1] : null; if (children) { executeShifts(v); var midpoint = (children[0].z + children[children.length - 1].z) / 2; if (w) { v.z = w.z + separation(v._, w._); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n\n if (w) {\n v.z = w.z + separation(...
[ "0.725337", "0.725337", "0.725337", "0.725337", "0.725337", "0.725337", "0.6770103", "0.67431307", "0.67431307", "0.6742943", "0.66977817", "0.66977817", "0.66977817", "0.66977817", "0.66371685", "0.66371685", "0.66371685", "0.66371685", "0.6509868", "0.6421684", "0.63342994"...
0.6758768
41
Computes all real xcoordinates by summing up the modifiers recursively.
function secondWalk(v) { v._.x = v.z + v.parent.m; v.m += v.parent.m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RealX() {\r\n return this.x * tileSize * -1;\r\n }", "function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.leng...
[ "0.52776736", "0.5157519", "0.5157519", "0.5157519", "0.5157519", "0.5157519", "0.5157519", "0.5099123", "0.49183115", "0.4901968", "0.4879848", "0.4863434", "0.48105094", "0.47670984", "0.47618005", "0.4715455", "0.47119963", "0.46773556", "0.46359846", "0.460093", "0.459737...
0.0
-1
The core of the algorithm. Here, a new subtree is combined with the previous subtrees. Threads are used to traverse the inside and outside contours of the left and right subtree up to the highest common level. The vertices used for the traversals are vi+, vi, vo, and vo+, where the superscript o means outside and i mea...
function apportion(v, w, ancestor) { if (w) { var vip = v, vop = v, vim = w, vom = vip.parent.children[0], sip = vip.m, sop = vop.m, sim = vim.m, som = vom.m, shift; while (vim = nextRight(vim), vip = nextLeft(vip), vim && v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "split() {\n // bottom four octants\n // -x-y-z\n this.nodes[0] = new Octree(this.bounds.x, this.bounds.y, this.bounds.z, this.bounds.subWidthX, this.bounds.subWidthY, this.bounds.subHeight, this.maxLevels, (this.level + 1));\n // +x-y-z\n this.nodes[1] = new Octree(this.bounds.frontX, this.bounds...
[ "0.6112271", "0.6087625", "0.5842328", "0.58192265", "0.55985904", "0.5530753", "0.5474737", "0.5474451", "0.5431019", "0.5393036", "0.5297986", "0.5289977", "0.5289505", "0.52474475", "0.5244265", "0.5238681", "0.52370214", "0.52370214", "0.52370214", "0.51958984", "0.519523...
0.0
-1
Ignore rightclick, since that should open the context menu.
function defaultFilter() { return !__WEBPACK_IMPORTED_MODULE_3_d3_selection__["event"].button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function noContextMenuHandler(evt) {\n evt.preventDefault();\n }", "function disable_right_click() {\n \n document.oncontextmenu = function( e ) {\n \n var t = e || window.event;\n var n = t.target || t.srcElement;\n\n if ( n.n...
[ "0.79330516", "0.7925419", "0.778965", "0.7757638", "0.7737144", "0.7660862", "0.7660862", "0.7422331", "0.73722726", "0.736227", "0.73575497", "0.73452514", "0.7338404", "0.73217976", "0.73217976", "0.7162424", "0.7046558", "0.7040056", "0.6960206", "0.69563496", "0.69362193...
0.0
-1
Ignore rightclick, since that should open the context menu.
function defaultFilter() { return !__WEBPACK_IMPORTED_MODULE_1_d3_selection__["event"].button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function noContextMenuHandler(evt) {\n evt.preventDefault();\n }", "function disable_right_click() {\n \n document.oncontextmenu = function( e ) {\n \n var t = e || window.event;\n var n = t.target || t.srcElement;\n\n if ( n.n...
[ "0.79330516", "0.7925419", "0.778965", "0.7757638", "0.7737144", "0.7660862", "0.7660862", "0.7422331", "0.73722726", "0.736227", "0.73575497", "0.73452514", "0.7338404", "0.73217976", "0.73217976", "0.7162424", "0.7046558", "0.7040056", "0.6960206", "0.69563496", "0.69362193...
0.0
-1
Create diagonal line between two nodes
function diagonal(s, d) { if (s.dy == undefined) { s.dy = 0; } if (d.dy == undefined) { d.dy = 0; } let path = `M ${s.x} ${(s.y + s.dy)} C ${(s.x + d.x) / 2} ${(s.y + s.dy)}, ${(s.x + d.x) / 2} ${(d.y + d.dy)}, ${d.x} ${(d.y + d.dy)}`; return pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "drawBothDiagonal(x, y, dim){\n const colorA = this.colors[0].toString()\n const colorB = this.colors[1].toString()\n fill(colorA)\n triangle(x, y, x+dim, y, x+(dim/2), y+(dim/2)) \n triangle(x, y+dim, x+dim/2, y+dim/2, x+dim, y+dim)\n fill(colorB)\n triangle(x, y, x+dim/2, y+dim/2, x, y+dim)...
[ "0.7047609", "0.6531547", "0.65179694", "0.643818", "0.64162815", "0.63028604", "0.62686753", "0.6248636", "0.62186724", "0.61943305", "0.61943305", "0.6179761", "0.6176423", "0.6175602", "0.61738145", "0.6158595", "0.61314833", "0.61288434", "0.6096296", "0.6083345", "0.6079...
0.5858633
44
unused harmony export linear
function linear(t) { return +t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exports() {}", "function exports() {}", "function exports() {}", "function lt(t,i){return t(i={exports:{}},i.exports),i.exports}", "function u(t,e){return t(e={exports:{}},e.exports),e.exports}", "function _Platform_export_UNUSED(exports)\n{\n\tscope['Elm']\n\t\t? _Platform_mergeExportsProd(scop...
[ "0.612493", "0.612493", "0.612493", "0.60880035", "0.60044277", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.59035856", "0.57926625", "0...
0.0
-1
unused harmony export quadIn / unused harmony export quadOut / unused harmony export quadInOut
function quadIn(t) { return t * t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Quad() {}", "function Quad() { return [-1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0] }", "function Quad() { return [-1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0] }", "function Quad() { return [\n -1.0, -1.0,\n 1.0, -1.0,\n -1.0, 1.0,\n\n -1.0, 1.0,\n 1.0, 1.0,\n 1.0, -1.0]\n ...
[ "0.61905193", "0.60994947", "0.60994947", "0.595914", "0.595914", "0.587415", "0.58309156", "0.581192", "0.57341415", "0.57003707", "0.56727815", "0.5506124", "0.5482609", "0.54494417", "0.5435175", "0.5399463", "0.53892297", "0.5353671", "0.53480136", "0.53292924", "0.532608...
0.62003905
8
unused harmony export expIn / unused harmony export expOut / unused harmony export expInOut
function expIn(t) { return Math.pow(2, 10 * t - 10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exports() {}", "function exports() {}", "function exports() {}", "function u(t,e){return t(e={exports:{}},e.exports),e.exports}", "function o(t,e){return e={exports:{}},t(e,e.exports),e.exports}", "function lt(t,i){return t(i={exports:{}},i.exports),i.exports}", "function At(t, e) { return t(e...
[ "0.6576035", "0.6576035", "0.6576035", "0.63841397", "0.63708603", "0.61406016", "0.6027007", "0.594925", "0.5819303", "0.57902193", "0.57836914", "0.56148165", "0.55887014", "0.5573079", "0.5568362", "0.5568362", "0.5543672", "0.5543672", "0.5543672", "0.5543672", "0.5543672...
0.0
-1
unused harmony export circleIn / unused harmony export circleOut / unused harmony export circleInOut
function circleIn(t) { return 1 - Math.sqrt(1 - t * t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function circle() {\n\n}", "function OrthoganalCircle(theta,dTheta) {\n \n \tlet R = 1.0/cos(dTheta);\n this.r = abs(tan(dTheta));\n // this.x = R*cos(theta);\n // this.y = R*sin(theta);\n \t//endpoints\n \tthis.p1 = createVector(cos(theta-dTheta),sin(theta-dTheta));\n this.p2 = createVector(cos(th...
[ "0.55957353", "0.5564114", "0.53720707", "0.53606087", "0.5279453", "0.5222242", "0.51369", "0.51369", "0.51369", "0.51304716", "0.5129992", "0.5125596", "0.5117756", "0.50764436", "0.50763637", "0.5064541", "0.5034995", "0.50260365", "0.5009943", "0.50075734", "0.49994007", ...
0.0
-1
Ignore rightclick, since that should open the context menu.
function defaultFilter() { return !__WEBPACK_IMPORTED_MODULE_3_d3_selection__["event"].button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function noContextMenuHandler(evt) {\n evt.preventDefault();\n }", "function disable_right_click() {\n \n document.oncontextmenu = function( e ) {\n \n var t = e || window.event;\n var n = t.target || t.srcElement;\n\n if ( n.n...
[ "0.7932511", "0.7925991", "0.7789977", "0.7758855", "0.77363247", "0.765992", "0.765992", "0.742271", "0.73715585", "0.7361144", "0.73567194", "0.7345179", "0.7337635", "0.73206264", "0.73206264", "0.71614677", "0.70480543", "0.7039149", "0.6958376", "0.69559497", "0.6934545"...
0.0
-1
Ignore rightclick, since that should open the context menu.
function defaultFilter() { return !__WEBPACK_IMPORTED_MODULE_1_d3_selection__["event"].button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function noContextMenuHandler(evt) {\n evt.preventDefault();\n }", "function disable_right_click() {\n \n document.oncontextmenu = function( e ) {\n \n var t = e || window.event;\n var n = t.target || t.srcElement;\n\n if ( n.n...
[ "0.79330516", "0.7925419", "0.778965", "0.7757638", "0.7737144", "0.7660862", "0.7660862", "0.7422331", "0.73722726", "0.736227", "0.73575497", "0.73452514", "0.7338404", "0.73217976", "0.73217976", "0.7162424", "0.7046558", "0.7040056", "0.6960206", "0.69563496", "0.69362193...
0.0
-1
Create diagonal line between two nodes
function diagonal(s, d) { if (s.dy == undefined) { s.dy = 0; } if (d.dy == undefined) { d.dy = 0; } let path = `M ${s.x} ${(s.y + s.dy)} C ${(s.x + d.x) / 2} ${(s.y + s.dy)}, ${(s.x + d.x) / 2} ${(d.y + d.dy)}, ${d.x} ${(d.y + d.dy)}`; return pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "drawBothDiagonal(x, y, dim){\n const colorA = this.colors[0].toString()\n const colorB = this.colors[1].toString()\n fill(colorA)\n triangle(x, y, x+dim, y, x+(dim/2), y+(dim/2)) \n triangle(x, y+dim, x+dim/2, y+dim/2, x+dim, y+dim)\n fill(colorB)\n triangle(x, y, x+dim/2, y+dim/2, x, y+dim)...
[ "0.7047609", "0.6531547", "0.65179694", "0.643818", "0.64162815", "0.63028604", "0.62686753", "0.6248636", "0.62186724", "0.61943305", "0.61943305", "0.6179761", "0.6176423", "0.6175602", "0.61738145", "0.6158595", "0.61314833", "0.61288434", "0.6096296", "0.6083345", "0.6079...
0.5858633
43
Adds the controller to the registered list and saves the index on the object
RegisterController(controller){ this.RegisteredControllersObj[controller.ControllerNameStr] = controller; this.ControllerNameArr.push(controller.ControllerNameStr); controller.SetRegistrationOnController(this.ControllerNameArr, this.Request, this.Resp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addController(controller) {\n var _a2, _b2;\n ((_a2 = this.__controllers) !== null && _a2 !== void 0 ? _a2 : this.__controllers = []).push(controller);\n if (this.renderRoot !== void 0 && this.isConnected) {\n (_b2 = controller.hostConnected) === null || _b2 === void 0 ? void 0 : _b2.call(controller)...
[ "0.64356613", "0.6399314", "0.61660624", "0.5712564", "0.5623296", "0.5407528", "0.5406146", "0.5406146", "0.53607893", "0.53102046", "0.5267376", "0.5265491", "0.52632636", "0.52601933", "0.52508825", "0.5238918", "0.5238299", "0.5238299", "0.52119374", "0.51886594", "0.5184...
0.6700786
0
Factored out controller logic by method into methods so not to be in the constructor This will help it be more clear that the class will handle requests by calling this instead of just running it when the class is instantiated.
HandleResponse(){ let allPathsArr = this.GetAllPathsArr(); //Check if the path has been registered as a controller first if(this.RegisteredControllersObj[allPathsArr[1]] !== undefined && allPathsArr[2] !== undefined){ let relavantPathsArr = allPathsArr.slice(2,allPathsArr.length); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "init() {\n this.router.get(\"/\", (req, res, next) => {\n res.status(200).json(this._service.defaultMethod());\n });\n }", "function Controller(){} //Extends Class (at bottom of page).", "function Controller() { }", "function Controller() {\n // route data members\n this.mid...
[ "0.6766208", "0.6668633", "0.6515669", "0.63823795", "0.63260007", "0.6298392", "0.62675375", "0.6261724", "0.6215266", "0.6215266", "0.6156328", "0.6138628", "0.6127288", "0.61228836", "0.61071914", "0.6052635", "0.60472697", "0.604108", "0.6031155", "0.602454", "0.6018698",...
0.53981423
98
Sets headers and sends response back to requester Defaults to sending back plain text
SendResponse(statusCodeNum = 404, textString = '', jsonObj = {}){ //Set up headers let contentTypeString = ''; let responsePayloadString = ''; if(Object.keys(jsonObj).length !== 0){ contentTypeString = 'application/json'; responsePayloadString = JSON.stringify(jso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showResponse(req, res, body, code) {\n //console.log(JSON.stringify(m.headers));\n res.writeHead(code,m.headers);\n res.end(body);\n }", "function respond(res, obj) {\n res.status(obj.status);\n for (let key in obj.headers) {\n res.set(key, obj.headers[key]);\n }\n res...
[ "0.64627594", "0.6427127", "0.6427127", "0.6375", "0.6299605", "0.62585866", "0.6238289", "0.62289554", "0.6206151", "0.6184661", "0.6184021", "0.61822164", "0.6171212", "0.6124233", "0.6101256", "0.6081159", "0.6077279", "0.6062263", "0.6020164", "0.59992343", "0.5996473", ...
0.6242594
6
Allows to disconnect a user
disconnect() { this.setState({ modalState: false, isNavAdmin: false, loggedIn: false, }); return sessionStorage.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "userDisconnect(req, res) {\n LiveChat.destroy(sails.sockets.getId(req)).exec(function (err) {\n if (err) return res.json({\n status: 500,\n error: err\n })\n LiveChat.publishDestroy(sails.sockets.getId(req))\n sails.broadcast(sails.sockets.getId(req), 'LiveChatDisonnect')...
[ "0.7520734", "0.7491345", "0.7306088", "0.72903985", "0.72640914", "0.72031444", "0.71671224", "0.7129124", "0.7116923", "0.6979189", "0.6953572", "0.6873485", "0.6810009", "0.67483526", "0.67454857", "0.67288613", "0.67247283", "0.6666988", "0.6645516", "0.65707266", "0.6569...
0.0
-1
Allows to connect a user
connect() { const promoId = JSON.parse(sessionStorage.getItem('promoId')); const programId = JSON.parse(sessionStorage.getItem('programId')); const role = JSON.parse(sessionStorage.getItem('userRole')); if (role === 1) this.setState({ isNavAdmin: true }); this.setState({ promoId, programId, loggedIn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "connect() {\n if(!this.username || !this.password) {\n return;\n }\n slsk.connect({\n user: this.username,\n pass: this.password,\n }, (err, client) => this.onConnected(err, client));\n }", "async connect() {\n Channel.botMessage('Welcome to Routefusion Chat!\\n\\n');\n this.use...
[ "0.7263783", "0.71634775", "0.70971733", "0.7078363", "0.70386076", "0.69217515", "0.66548187", "0.6646358", "0.6642987", "0.6575536", "0.6486867", "0.6361153", "0.63554394", "0.623928", "0.6222112", "0.6208121", "0.61631566", "0.61602056", "0.6129788", "0.6126457", "0.609223...
0.0
-1
Concatenates & uglifies JS files and sends them to './DIST'
function htmlTask(cb) { // prettier-ignore return src('app/*html') .pipe(useref()) .pipe(gulpif('*.js', uglify())) .pipe(dest('dist/')); cb(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uglifyScripts(){\n var uglified = uglify.minify(getScripts());\n fs.writeFile(path.join(__dirname, '../', 'preload/scripts.js'), uglified.code, function (err){\n if(err) {\n console.log(err);\n } else {\n console.log(\"Scripts combined, minified and saved in:\", 'scripts.js');\n }\n });\n}", ...
[ "0.75477767", "0.7360721", "0.7349808", "0.7314535", "0.719151", "0.7191244", "0.71623874", "0.7145155", "0.71303904", "0.71095246", "0.7106935", "0.7072651", "0.7063984", "0.70570517", "0.70535016", "0.7029122", "0.7022804", "0.7019591", "0.70190847", "0.69774485", "0.696707...
0.0
-1
Sass task: compiles the main.scss file into main.css
function sassTask() { return src('app/sass/**/*.scss') .pipe(plumber()) .pipe(sourcemaps.init()) // initialize sourcemaps first .pipe( sass.sync({ outputStyle: 'expanded', }) ) // compile SCSS to CSS .pipe(postcss([autoprefixer(), cssnano()])) // PostCSS runs plugins .pipe(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scssTask () {\n return src('src/assets/sass/application.scss')\n .pipe(sass())\n .pipe(postcss([cssnano()]))\n .pipe(rename('style.css'))\n .pipe(dest('output/css'))\n}", "function sass() {\n return gulp\n .src(config.src + 'styles/main.scss')\n .pipe(\n gulp_plumber({\n ...
[ "0.78990906", "0.7776988", "0.7730646", "0.769215", "0.768386", "0.7664491", "0.76509845", "0.76459223", "0.76328194", "0.75717866", "0.7570337", "0.7544921", "0.75448596", "0.7489977", "0.745009", "0.7409483", "0.7404313", "0.73899144", "0.738338", "0.73626274", "0.734934", ...
0.74959475
13
Handle events during playback
setPlaybackState(playbackState) { if (this.state.playbackState != playbackState) { this.props.debug && this.props.debug && console.log( '[playback]', this.state.playbackState, ' -> ', playbackState, ' [seek] ', this.state.seekState, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "capturePlayerEvents() {\n this.api.on(\"resume\", (e, api) => {\n // Trouble with Flowplayer autoplay, it send double plays at launch.\n if (this._socket.isConnected() && !this.api.finished) {\n this.play()\n }\n })\n\n this.api.on(\"pause\", (e, api) => {\n this.pause()\n })...
[ "0.69742906", "0.6764922", "0.66221625", "0.65469044", "0.65127164", "0.64646465", "0.6452973", "0.6452262", "0.6394256", "0.6379701", "0.63309556", "0.6329865", "0.6297979", "0.62967664", "0.6262931", "0.6225488", "0.6224934", "0.6202566", "0.6193236", "0.6161697", "0.615954...
0.0
-1
strip any filename at end of path and make relative to ../ unless we are at the root
function relativePath() { let path = window.location.pathname; let pathWithoutFile = path.substr(0, path.lastIndexOf('/')); let pathRelative = ( (pathWithoutFile === '') ? '' : '../' ) + 'hoot-services'; return pathRelative; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function relative(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n\n aRoot = aRoot.replace(/\\/$/, '');\n\n // XXX: It is possible to remove this block, and the tests still pass!\n var url = urlParse(aRoot);\n if (aPath.charAt(0) == \"/\" && url && url.path == \"/\") {\n r...
[ "0.703868", "0.703868", "0.703868", "0.703868", "0.703868", "0.703868", "0.703868", "0.703868", "0.70190454", "0.70177215", "0.7013578", "0.6946283", "0.6829554", "0.6714386", "0.670232", "0.6685764", "0.6682007", "0.6682007", "0.6682007", "0.6680653", "0.66690385", "0.6658...
0.0
-1
Copyright 2015 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS I...
function ba(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function me(e,t,a,s){var n,i=arguments.length,r=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,a):s;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,s);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(r=(i<3?n(r):i>3?n(t,a,r):n(t,a))||r);return i>3&&r&&Object.definePro...
[ "0.578241", "0.5356926", "0.5287652", "0.5282006", "0.5186779", "0.5070416", "0.5068024", "0.50493884", "0.5037672", "0.5037672", "0.501658", "0.4970232", "0.49376717", "0.49376717", "0.4935462", "0.49339563", "0.4926179", "0.4926179", "0.48664606", "0.48606187", "0.48118785"...
0.0
-1
Copyright 2015 Facebook Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS...
function Ab(a,b,c){G.call(this,c);this.c=a||0;this.b=void 0===b?Infinity:b}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function facebookLogin()\r\n{\r\n var fb = FBConnect.install();\r\n fb.connect(client_id,redir_url,\"touch\");\r\n fb.onConnect = onFBConnected;\r\n \r\n}", "componentDidMount() {\n // if this is the first time the home screen is loading\n // we must initialize Facebook\n if (!window.FB) {\n...
[ "0.589431", "0.5789937", "0.56692815", "0.5629839", "0.55707663", "0.5538998", "0.55313563", "0.55205834", "0.5506368", "0.5499677", "0.5434353", "0.5343995", "0.5343995", "0.5330893", "0.5323951", "0.53154385", "0.5304179", "0.5274594", "0.5256943", "0.52458453", "0.5226631"...
0.0
-1
1. Add a callback prop called `removeRobot` to the props that this component is expecting 2. Add an onClick handler to the remove button, that invokes the callback
function RobotCard({ robot }) { return ( <Card> <RobotCardImage id={robot.name} /> <CardBody> <CardTitle title={robot.name} /> <CardText>{robot.username}</CardText> </CardBody> <footer> <button>Remove</button> </footer> </Card> ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeTrack(){\n this.props.onRemove(this.props.track);\n }", "handleRemove() {\n this.props.removeTodo(this.props.id);\n }", "removeTrack() {\n this.props.onRemove(this.props.track);\n }", "removeTrack() {\n this.props.onRemove(this.props.track);\n }", "handleRemoveItem() {\n this...
[ "0.65628123", "0.64521426", "0.63075846", "0.6173159", "0.6138174", "0.61186564", "0.60709524", "0.6027135", "0.60105634", "0.60050637", "0.600212", "0.5949516", "0.59238017", "0.5920454", "0.5906124", "0.5886033", "0.58821845", "0.5817067", "0.5793993", "0.578379", "0.577822...
0.6723058
0
Making the map, setting it to the first coordinates in the location inputed Array
function markPlaces(name, rating, latitude, longitude, inDesLat, inDesLong, iconPix) { const options = { zoom: 11, center: {lat:parseFloat(inDesLat[0]),lng:parseFloat(inDesLong[0])}, } let map = new google.maps.Map(document.getElementById('map'), options); //Places a marker on each locat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function precal_loc() {\n buffer_loc.forEach((obj)=>{obj.x = (obj.longitude + 180) * 10; obj.y = (90 - obj.latitude) * 10;});\n}", "function edit_location_map() {\n initialize_add_location_map();\n convert_points_to_markers();\n if (typeof triangles != 'undefined') {\n createCurrentPolygons(tr...
[ "0.6677583", "0.6528072", "0.6404974", "0.6390822", "0.63580906", "0.6328372", "0.628708", "0.622346", "0.62200564", "0.613133", "0.60689646", "0.60665894", "0.6065446", "0.6049214", "0.6041899", "0.60135144", "0.600807", "0.6002047", "0.598877", "0.59752053", "0.596636", "...
0.0
-1
Start section: command_properties End section: command_properties
constructor(input) { // Start section: command_constructor super(); this.input = input; // End section: command_constructor }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static get properties() {\n return {\n title: {\n type: String\n },\n initialTool: {\n attribute: 'initialtool',\n type: String\n },\n }\n }", "function openproperties(){\n //post(\"openproperties\" + my...
[ "0.6223294", "0.6100077", "0.6081467", "0.5997686", "0.5929333", "0.585856", "0.57215655", "0.5693184", "0.5641873", "0.5578108", "0.5545067", "0.55373275", "0.5513502", "0.5507991", "0.55062795", "0.5480365", "0.5480304", "0.5435254", "0.54328007", "0.54252523", "0.54207563"...
0.0
-1
Boolean primitives are true and false.
function booleanVal(bool) { if (typeof bool === "boolean") { console.log("true") } else console.log("false"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Boolean() {}", "function Booleans(){\n return false;\n}", "function isTrue(bool){\n \n return (Object.is(true,bool));\n\n }", "function boolean (data) {\n return data === false || data === true;\n }", "function boolean() {\n return struct('boolean', value => {\n return typeof va...
[ "0.80659163", "0.7830265", "0.7527607", "0.7474244", "0.7470574", "0.7470574", "0.7366488", "0.7325993", "0.7325798", "0.7312325", "0.7303042", "0.7290218", "0.728752", "0.7263694", "0.71926844", "0.716899", "0.7158584", "0.71533287", "0.7108317", "0.7103084", "0.70895666", ...
0.70404184
23
Function to test for permutation
function isPermutation(str1, str2) { /* Clean input: remove whitespace, set to lowercase, transform to array, and sort */ str1 = str1.trim().toLowerCase().split("").sort(); str2 = str2.trim().toLowerCase().split("").sort(); /* Test to see if the strings are of the same length */ if(str1.length != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isPermutation(raw, n) {\n const digits = raw.slice(0);\n let d;\n\n while(n) {\n\td = n % 10;\n if (!digits[d]) {\n return false;\n }\n\tdigits[d]--;\n\tn = (n - d) / 10;\n }\n\n for(var i = 0; i < 10; i++) {\n\tif(digits[i]) {\n\t return false;\n\t}\n }\n ...
[ "0.6722468", "0.6657506", "0.66076475", "0.6561066", "0.6506495", "0.6430886", "0.6392037", "0.6351182", "0.63113254", "0.6306898", "0.62879217", "0.6281645", "0.62792474", "0.6270684", "0.62233835", "0.62156445", "0.6186328", "0.616131", "0.6155091", "0.6148549", "0.61394286...
0.6284573
11
Function that tests permutation using the 128 ASCII character set
function betterTestForPermutation(str1, str2) { /* Remove whitespace */ str1 = str1.trim(); str2 = str2.trim(); /* Test to see if the strings are of the same length */ if(str1.length != str2.length) { return false; } /* Create arrays to hold 0s for the 128 ascii character set */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function permPal(str) {\n\n\tlet strCopy = str.toLowerCase().slice('').split('')\n\tlet currentLetter = [strCopy.shift()]\n\tlet perms = [currentLetter];\n\n\twhile (strCopy.length) {\n\n\t\tcurrentLetter = strCopy.shift();\t\n\t\tlet newPerms = [];\n\n\t\tperms.forEach(perm => {\n\n\t\t\tlet filtered = perm.filte...
[ "0.65681124", "0.64668715", "0.6366384", "0.6332511", "0.6283325", "0.62822175", "0.6251088", "0.6209083", "0.6205898", "0.61169446", "0.611221", "0.61103934", "0.6089682", "0.6074697", "0.60629725", "0.6038821", "0.6032437", "0.60270435", "0.6023733", "0.60115814", "0.599524...
0.67878294
0
Functions Returns a random username for new users used a Shakespearean insult chart for the names
function randomUsername() { let parts = []; parts.push(["Artless","Bawdy","Beslubbering","Bootless","Churlish","Cockered","Clouted","Craven","Currish","Dankish","Dissembling","Droning","Errant","Fawning","Fobbing","Froward","Frothy","Gleeking","Goatish","Gorbellied","Impertinent","Infectious","Jarring","Loggerhead...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRandomUsername() {\r\n const vowels = \"aeiou\";\r\n const consonants = \"bcdfghjklmnpqrstvwxyz\";\r\n const name = \" \".repeat(randomBetween(3,6)).split(\"\");\r\n return name.map((c, i) => {\r\n if(i % 2 === 1) {\r\n return consonants[randomBetween(0, consonants.l...
[ "0.7892032", "0.75620437", "0.75610167", "0.7421183", "0.7359297", "0.73284346", "0.723168", "0.72266585", "0.7182504", "0.7107952", "0.7107952", "0.68976873", "0.68932104", "0.6871644", "0.6851375", "0.68444544", "0.6812972", "0.67963976", "0.6795821", "0.6772888", "0.676879...
0.7445095
3
checks if a nickname is in use
function checkIfUniqueNickname(proposed_nickname, user_list){ for(let user in user_list){ if(user_list[user].userNickname === proposed_nickname && user_list[user].status === true){ return false; }else{ continue; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async isValidAvailableNickname(nickname) {\n if (!/^[0-9a-z\\[\\]\\(\\)\\$@\\._=]{1,24}$/i.test(nickname))\n return false; // invalid nickname\n\n // Verify that there are no other players in-game with this nickname.\n for (const player of server.playerManager) {\n if (p...
[ "0.75818175", "0.660413", "0.65864897", "0.64370394", "0.63163453", "0.6131193", "0.6128937", "0.6085521", "0.6075584", "0.6067102", "0.60595244", "0.6031143", "0.602487", "0.5988762", "0.5959476", "0.59448266", "0.59437966", "0.59404016", "0.5922104", "0.5911369", "0.5874165...
0.6391629
4
adds a move to a gamestate would like to eventually return or set the lastRow and lastColumn of the move
function add_to_gamestate(gs, player, postition){ //check if the move is valid if(gs[0][postition] === 0){ //loop from bottom up. for(let i = gs.length-1; i >= 0; i--){ //if that position is empty, piece would fall there if(gs[i][postition] === 0){ gs[i][p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addMove(col) {\n this.setState({\n gameStatus: \"Bot's Move\",\n buttonsDisabled: true\n });\n \n let temp_set = this.state.currMoveSet;\n temp_set.push(col);\n this.setState({\n currMoveSet: temp_set, \n botsTurn: true\n ...
[ "0.7260033", "0.67470866", "0.66723603", "0.6405542", "0.6357576", "0.6339916", "0.6318243", "0.6284449", "0.6260111", "0.6256104", "0.62435484", "0.6198728", "0.6186567", "0.61755836", "0.61721325", "0.6160763", "0.61426693", "0.61382765", "0.6128342", "0.6118732", "0.608044...
0.6333789
6
checks to see if a player has won the game
function check_for_winning_move(gs, player){ //check horizontals for(let i = 0; i<gs.length; i++){ for(let j = 0; j<(gs[i].length)-3; j++){ if(gs[i][j] === player && gs[i][j+1] === player && gs[i][j+2] === player && gs[i][j+3] === player){ console.log("Horizontal Win!"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isGameWon () {\n console.log('checking if you won the game')\n return gameState.enemiesLeft === 0\n}", "gameWon() {\n if (this._gameBoard[0] == this._currentPlayer && this._gameBoard[1] == this._currentPlayer && this._gameBoard[2] == this._currentPlayer ||\n this._gameBoard[3] == thi...
[ "0.7920838", "0.7872336", "0.78637123", "0.7802291", "0.7759631", "0.77418256", "0.7700711", "0.76907504", "0.7687874", "0.76750964", "0.76599455", "0.76538104", "0.7642213", "0.76045644", "0.7585653", "0.75646335", "0.7562342", "0.7557497", "0.754409", "0.7534956", "0.750823...
0.0
-1
Classes constructor for a User object
function User(userID ,socketID){ this.userID = userID; this.socketID = socketID; this.userNickname = randomUsername(); this.userColour = "000000"; this.status = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function User(username, email){\n this.username = username;\n this.email = email;\n \n}", "function User () {\n this.name = 'u1';\n}", "function User(id,username) {\n this.id = id;\n this.username = username;\n}", "function User(a, b) {\n this.email = a;\n this.password = b;\n}", "funct...
[ "0.795278", "0.7903746", "0.7756943", "0.7733064", "0.7712389", "0.7711063", "0.77009106", "0.767393", "0.76523167", "0.76509833", "0.76105094", "0.75625896", "0.74736786", "0.74636614", "0.74291223", "0.7419782", "0.7398246", "0.7393037", "0.7383664", "0.7379238", "0.736724"...
0.0
-1
helper function for selectAnimation()
function setTransition(nextAnimation, playTransitionReachPoses) { var lastTransition = motion.currentTransition; var lastAnimation = avatar.currentAnimation; // if already transitioning from a blended walk need to maintain the previous walk's direction if (lastAnimation.lastDirection) { s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function modalAnimation() {}", "animation() {}", "function initAnimation() {\n}", "get importAnimation() {}", "function getAnimation(){\n const animation = document.querySelector('.select-selected')\n return animation.innerHTML;\n}", "function animation(){\n\tvar textin = document.getElementById(\"myt\...
[ "0.69515616", "0.67630833", "0.6752374", "0.6680793", "0.66046315", "0.6570129", "0.64802796", "0.64418674", "0.6348111", "0.6285314", "0.6281115", "0.62543505", "0.62522656", "0.62424594", "0.6233417", "0.6224444", "0.6189976", "0.61615086", "0.61597615", "0.615799", "0.6143...
0.0
-1
select / blend the appropriate animation for the current state of motion
function selectAnimation() { var playTransitionReachPoses = true; // select appropriate animation. create transitions where appropriate switch (motion.nextState) { case STATIC: { if (avatar.distanceFromSurface < ON_SURFACE_THRESHOLD && avatar.currentAnimation ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selectAnimation(deltaTime, speed) {\r\n\r\n var localVelocity = {x: 0, y: 0, z: 0};\r\n if (speed > 0) {\r\n localVelocity = Vec3.multiplyQbyV(Quat.inverse(MyAvatar.orientation), MyAvatar.getVelocity());\r\n }\r\n\r\n // determine principle direction of movement\r\n motion.direction ...
[ "0.69758034", "0.6745955", "0.6682913", "0.66180897", "0.65458935", "0.6416489", "0.6382111", "0.63717633", "0.63379633", "0.6337397", "0.6316465", "0.6308782", "0.62345845", "0.62312543", "0.6183515", "0.61624384", "0.6150424", "0.61189526", "0.6110996", "0.60889125", "0.607...
0.74337375
0
determine the length of stride. advance the frequency time wheels. advance frequency time wheels for any live transitions
function advanceAnimations() { var wheelAdvance = 0; // turn the frequency time wheel if (avatar.currentAnimation === avatar.selectedWalkBlend) { // Using technique described here: http://www.gdcvault.com/play/1020583/Animation-Bootcamp-An-Indie-Approach // wrap the stride length arou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setStrideLength(speed) {\r\n\r\n // if not at full speed the calculation could be wrong, as we may still be transitioning\r\n var atMaxSpeed = speed / MAX_WALK_SPEED < 0.97 ? false : true;\r\n\r\n // walking? then get the stride length\r\n if (motion.currentAnimation === motion.selectedWalk) {...
[ "0.73226464", "0.7077022", "0.66346425", "0.5917724", "0.5679375", "0.5531564", "0.55144316", "0.5417622", "0.5383865", "0.5374667", "0.5310737", "0.5273605", "0.5182059", "0.51770467", "0.51645184", "0.51590055", "0.5149257", "0.5122916", "0.5110419", "0.5104381", "0.5093562...
0.48708567
54
initialise a new transition. update progress of a live transition
function updateTransitions() { if (motion.currentTransition !== nullTransition) { // is this a new transition? if (motion.currentTransition.progress === 0) { // do we have overlapping transitions? if (motion.currentTransition.lastTransition !== nullTransition) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function startTransition() {\n clearInterval(transHandler);\n \n targetColor\t= generateRGB();\n distance\t= calculateDistance(currentColor, targetColor);\n increment\t= calculateIncrement(distance, fps, duration);\n \n transHandler = setInterval(function() {\n transition();\n }, 1000/...
[ "0.65814894", "0.6470267", "0.6429626", "0.6343207", "0.61805636", "0.60634106", "0.6011116", "0.58654606", "0.5849854", "0.5766295", "0.5742939", "0.5694165", "0.5671598", "0.56630427", "0.56528884", "0.56340176", "0.5620114", "0.56101805", "0.56074685", "0.56014454", "0.555...
0.6090505
5
animate the avatar using sine waves, geometric waveforms and harmonic generators
function renderMotion() { // leaning in response to speed and acceleration var leanPitch = motion.state === STATIC ? 0 : getLeanPitch(); var leanRoll = motion.state === STATIC ? 0 : getLeanRoll(); var lastDirection = motion.lastDirection; // hips translations from currently playing animations ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function animate() { \n console.log('animate')\n \n gsap.registerEffect({\n name: \"fadeIn\",\n effect: (targets, config) => {\n var tlEffect = gsap.timeline();\n tlEffect.from(targets, {duration: config.duration, ...
[ "0.64815855", "0.64785355", "0.6449166", "0.6395717", "0.6392902", "0.636625", "0.6364833", "0.63413006", "0.63175845", "0.62284726", "0.620468", "0.6202949", "0.61891735", "0.61849415", "0.6181608", "0.61459345", "0.61234266", "0.61199886", "0.61179346", "0.6106627", "0.6097...
0.0
-1
Reaktion auf Loslassen der Maustaste:
function reactionMouseUp (e) { drag = false; // Zugmodus deaktivieren }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "transient private protected internal function m182() {}", "protected internal function m252() {}", "private internal function m248() {}", "transient protected internal function m189() {}", "transient private internal function m185() {}", "transient private protected...
[ "0.7372014", "0.7069787", "0.70371175", "0.6979938", "0.67880994", "0.67221093", "0.6505414", "0.64813185", "0.6461243", "0.6458925", "0.63610804", "0.6304133", "0.6300393", "0.6267234", "0.62400496", "0.62331456", "0.6148304", "0.61208844", "0.6098185", "0.60843647", "0.6074...
0.0
-1
Reaktion auf Bewegen der Maus:
function reactionMouseMove (e) { if (!drag) return; // Abbrechen, falls Zugmodus nicht aktiviert reactionMove(e.clientX,e.clientY); // Position ermitteln, rechnen und neu zeichnen }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "private internal function m248() {}", "transient private protected internal function m182() {}", "protected internal function m252() {}", "transient protected internal function m189() {}", "transient private internal function m185() {}", "static private protected in...
[ "0.6828858", "0.66353494", "0.65789664", "0.6551587", "0.62779546", "0.6166799", "0.5951183", "0.5883435", "0.58624214", "0.5847024", "0.58376133", "0.574618", "0.5736461", "0.5714976", "0.5689755", "0.56838346", "0.567571", "0.56662023", "0.5648279", "0.5633086", "0.56235653...
0.0
-1
Reaktion auf Bewegung des Fingers:
function reactionTouchMove (e) { if (!drag) return; // Abbrechen, falls Zugmodus nicht aktiviert var obj = e.changedTouches[0]; // Liste der neuen Fingerpositionen reactionMove(obj.clientX,obj.clientY); // Position ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "didReflow() {\n }", "willReflow() {\n }", "function servostart(e) {\n\tx_finger_bak = e.changedTouches[0].screenX\n\ty_finger_bak = e.changedTouches[0].screenY\n\treturn false\n}", "function touchStarted() {\n dropPoke();\n}", "onDetatch() {}", "bounceBack() {\n this.bounceBack = true;\n }...
[ "0.65423715", "0.6207194", "0.618802", "0.602212", "0.5910043", "0.57376826", "0.57167244", "0.5690799", "0.5658032", "0.56496316", "0.5596563", "0.55650765", "0.5544971", "0.5527534", "0.5527534", "0.5527534", "0.5522783", "0.55039793", "0.5496014", "0.5480963", "0.547895", ...
0.0
-1
Berechnungen: Seiteneffekt xB0, yB0, xN0, yN0, xS0, yS0, xZ0, yZ0, xP1, yP1
function calculation () { var cos = Math.cos(phi), sin = Math.sin(phi); xB0 = xM0+R0*cos; yB0 = yM0-R0*sin; // Beobachtungsort (linke Skizze) xN0 = xB0-R1*sin; yN0 = yB0-R1*cos; // Norden (linke Skizze) xS0 = xB0+R1*sin; yS0 = yB0+R1*cos; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "calculatePositions() {\n this.x1 = this.from.getCenterX()\n this.y1 = this.from.getCenterY()\n this.x2 = this.to.getCenterX()\n this.y2 = this.to.getCenterY()\n }", "positionPoints() {\n const padding = this.getBoundsPadding();\n\n const centerX = (this.co...
[ "0.612825", "0.60629416", "0.604812", "0.59853834", "0.5972595", "0.59693336", "0.59282184", "0.5896329", "0.58784944", "0.58753914", "0.5848697", "0.58472806", "0.57899576", "0.5771338", "0.57198685", "0.5709393", "0.56982315", "0.569015", "0.56899846", "0.56786585", "0.5665...
0.0
-1
Neuer Grafikpfad mit Standardwerten:
function newPath(w) { ctx.beginPath(); // Neuer Pfad ctx.strokeStyle = "#000000"; // Linienfarbe schwarz ctx.lineWidth = 1; // Liniendicke }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "function karinaFaarNotifikation() {\n\n\n\n}", "transient final protected internal function m174() {}", "protected internal function m252() {}", "transient private protected internal function m182() {}", "private internal function m248() {}", "function IndicadorGrad...
[ "0.6050658", "0.565059", "0.5589753", "0.5537121", "0.5533791", "0.55272704", "0.55176955", "0.5512757", "0.5478051", "0.5478051", "0.5478051", "0.54670125", "0.54619247", "0.54501826", "0.5436343", "0.54142004", "0.5405629", "0.53919214", "0.53919214", "0.5391808", "0.538341...
0.0
-1
Linie zeichnen: x1, y1 ... Anfangspunkt x2, y2 ... Endpunkt
function line (x1, y1, x2, y2) { newPath(); // Neuer Grafikpfad (Standardwerte) ctx.moveTo(x1,y1); // Anfangspunkt ctx.lineTo(x2,y2); // Weiter zum Endpunkt ctx.stroke(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DrawLine(x1, y1, x2, y2){\n let x, y, dx, dy, dx1, dy1, px, py, xe, ye, i;\n dx = x2 - x1;\n dy = y2 - y1;\n dx1 = Math.abs(dx);\n dy1 = Math.abs(dy);\n px = 2 * dy1 - dx1;\n py = 2 * dx1 - dy1;\n if (dy1 <= dx1) {\n if (dx >= 0) {\n x = x1; y = y1; xe = x2;\n ...
[ "0.68118846", "0.67950803", "0.6771539", "0.67714936", "0.6755473", "0.6696876", "0.6647839", "0.6646085", "0.6611209", "0.65850306", "0.6488377", "0.646613", "0.6431779", "0.6415588", "0.64008796", "0.63795626", "0.6373081", "0.63704705", "0.63389885", "0.63283145", "0.63052...
0.6671437
6
Pfeil zeichnen: x1, y1 ... Anfangspunkt x2, y2 ... Endpunkt w ........ Liniendicke (optional) Zu beachten: Die Farbe wird durch ctx.strokeStyle bestimmt.
function arrow (x1, y1, x2, y2, w) { if (!w) w = 1; // Falls Liniendicke nicht definiert, Defaultwert var dx = x2-x1, dy = y2-y1; // Vektorkoordinaten var length = Math.sqrt(dx*dx+dy*dy); // L�nge ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dibujarLineas(color, x_init, y_init, x_end, y_end){\r\n\r\n\tlienzo.beginPath();\r\n\tlienzo.strokeStyle = color;\r\n\tlienzo.moveTo(x_init, y_init);\r\n\tlienzo.lineTo(x_end, y_end);\r\n\tlienzo.stroke();\r\n\tlienzo.closePath();\r\n\r\n}", "function dibujante(color, xinicial, yinicial, xfinal, yfinal)...
[ "0.6816096", "0.6813334", "0.6681908", "0.6668951", "0.6565088", "0.65419716", "0.64749473", "0.64623046", "0.6442795", "0.64341223", "0.6422208", "0.63017654", "0.62895435", "0.62770915", "0.6272547", "0.62402654", "0.62304395", "0.6223303", "0.6189634", "0.61783", "0.616817...
0.60098064
40
Linke Skizze, bezogen auf Erdkugel:
function drawLeft () { var w0 = (phi>0 ? 0 : phi); // Startwinkel f�r geographische Breite (Bogenma�) var dw = Math.abs(phi); // Betrag der geographischen Breite (Bogenma�) angle(xM0,yM0,w0,dw); //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set_lines(list_of_lines) {\n this.lines = list_of_lines;\n this.lines.sort((line1, line2) => {//Ordena las lineas según su punto más a la izquierda\n let min1 = (line1.a.x < line2.a.x) ? line1.a.x : line2.a.x;//Encuentro el minimo entre los puntos a \n let min2 = (line1.b.x < li...
[ "0.5749582", "0.5704201", "0.5700091", "0.56211156", "0.55788475", "0.55654156", "0.5535611", "0.54986507", "0.5490254", "0.5489286", "0.54823357", "0.5457065", "0.5441984", "0.54335666", "0.539473", "0.5382799", "0.53784454", "0.5351397", "0.5324212", "0.5309259", "0.5308069...
0.0
-1
Rechte Skizze, bezogen auf Horizontebene:
function drawRight () { var w0 = (phi>0 ? Math.PI-phi : 0); // Startwinkel f�r H�henwinkel (Bogenma�) var dw = Math.abs(phi); // Betrag der geographischen Breite (Bogenma�) angle(xB1,yB1,w0,dw); // Markier...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "posZahtMet()\n {\n this.posZah=!this.posZah;\n }", "handleConstraints() {\n if (this.x < 0) {\n this.x = 0;\n }\n if (this.x > width - 1) {\n this.x = width - this.size;\n }\n if (this.y < 0) {\n this.y = 0;\n }\n if (this.y > height - 1) {...
[ "0.5643345", "0.56207913", "0.5613446", "0.5564009", "0.5529097", "0.552702", "0.54765666", "0.54755247", "0.53828377", "0.53812915", "0.5350004", "0.5327176", "0.53096366", "0.53070855", "0.5272432", "0.52638704", "0.5257649", "0.5254265", "0.52340305", "0.5227413", "0.52059...
0.0
-1
The callback should return ms to tick after (not the absolute time)
function TimerInstance(timer, name, cb) { this.timer = timer; this.name = name; this.cb = cb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tick() {\n\n\n\n}", "function _tick () {\n this.time += this.interval;\n\n if ( this.countdown && (this.duration_ms - this.time < 0) ) {\n this.final_time = 0;\n this.go = false;\n this.callback(this);\n clearTimeout(this.timeout);\n this.complete(this);\n return;\n ...
[ "0.67253274", "0.6648526", "0.6626535", "0.6615415", "0.661012", "0.6560706", "0.6560413", "0.64445144", "0.6404297", "0.63609904", "0.63426214", "0.6294347", "0.6279913", "0.62001735", "0.61902326", "0.61547047", "0.6135659", "0.61178195", "0.6106429", "0.6092533", "0.609253...
0.0
-1
When we have an RNA ID, check if there is a Siret. If yes, look up Sirene. If no, look up the ID in Sirene.
async fromRNARequestOtherAPIs(dispatch, id) { if (getters.siretFromRNA()) { await store.dispatch('executeSearchBySiret', { siret: getters.siretFromRNA(), api: 'SIRENE' }) } else { await store.dispatch('executeSearchByIdAssociation', { id: id, api: 'SIRENE' }) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkIndividualEligibility(identifier, size){\n var surrogateKey = null;\n var memberId = [];\n var subscriberId = null;\n for(var j = 0; j < identifier.length; j++){\n if(identifier[j].type === 'SRK'){\n surrogateKey = identifier[j].id;\n }\n\n else if(identifier[j].type...
[ "0.54493445", "0.51590174", "0.5139171", "0.51255804", "0.5099252", "0.5070416", "0.5049279", "0.50233924", "0.5020869", "0.49939746", "0.49865487", "0.4954651", "0.4916911", "0.48956826", "0.48892784", "0.48774743", "0.48737687", "0.48680463", "0.48653665", "0.48449326", "0....
0.0
-1
When we have Siret, check if there is an RNA ID. If yes, look up RNA. If no, look up Siret in RNA.
async fromSireneRequestOtherAPIs(dispatch, siret) { if (getters.idAssociationFromSirene()) { await store.dispatch('executeSearchByIdAssociation', { id: getters.idAssociationFromSirene(), api: 'RNA' }) } else { await store.dispatch('executeSearchBySiret', { siret: siret, api: 'RNA' }) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findMatch(slicedDNA, lookup) {\n for (let i=0; i<slicedDNA.length;i++) {\n for (let j=0;j<lookup.length;j++) {\n if (slicedDNA[i]==lookup[j].codons) {\n //console.log(lookup[j].abbr, lookup[j].codons);\n matched.push(lookup[j].abbr);\n }\n ...
[ "0.51518065", "0.5102574", "0.5096165", "0.5058057", "0.5056567", "0.50174695", "0.5008072", "0.49975923", "0.4988967", "0.4984629", "0.49777934", "0.49681416", "0.49655294", "0.49326852", "0.4930867", "0.49160072", "0.49159068", "0.48966002", "0.48809442", "0.4862304", "0.48...
0.0
-1
56ms soln rather than passing params store in global , before calling recursively check condition prior to it
function dfs(x, y, newColor, oldColor){ if (this.image[x][y] === oldColor) { this.image[x][y] = newColor; } else { return; } if (x + 1 < this.xLen) dfs(x + 1, y, newColor, oldColor); if (y + 1 < this.yLen) dfs(x, y + 1, newColor, oldColor); if (x - 1 >= 0) dfs(x - 1, y, newColor,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mastercall(obj)\n{\n\n\n\n\n\n\tif (move_count==0)\n\t{\n\t\t\t\tif(movevalidate(obj))\n\t\t\t\t{\n\t\t\t\t\t\tstoredata(obj);\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t}\n\telse\n\t{\n\n\t\t\t\tif (selfcheck(obj)) \n\t\t\t\t{\n\n\t\t\t\t\t\t\t \tif(possiblemovearray.includes(parseInt...
[ "0.58302534", "0.5824628", "0.58014", "0.5573064", "0.5533058", "0.54767096", "0.5451799", "0.5446246", "0.5415223", "0.5373793", "0.5294794", "0.5290278", "0.5269011", "0.5265089", "0.52649575", "0.51897115", "0.51845783", "0.5167768", "0.51579654", "0.5139896", "0.51095504"...
0.0
-1
Push a search term into the observable stream.
search(term) { this.searchTerms.next(term); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "search(term) {\r\n this.searchTerms.next(term);\r\n }", "function searchUpdated(term) {\n setsearch(term);\n }", "onSearch() {\n try {\n const searchText = this.getSearchHash();\n if (searchText === this.priorSearchText)\n return;\n ...
[ "0.7432055", "0.650128", "0.6233664", "0.6228193", "0.6039027", "0.5883612", "0.5868071", "0.58437806", "0.5836335", "0.57901084", "0.57673824", "0.5762857", "0.56941354", "0.5680204", "0.5650807", "0.5648885", "0.5648885", "0.5645559", "0.5645523", "0.5639816", "0.56337285",...
0.75007826
0